00001
00002
00003
00004 #ifndef _LIBU_OS_H_
00005 #define _LIBU_OS_H_
00006 #include "libu_conf.h"
00007 #include <u/syslog.h>
00008 #include <u/strtok_r.h>
00009 #include <u/unlink.h>
00010 #include <u/getpid.h>
00011 #include <u/fnmatch.h>
00012 #include <u/timegm.h>
00013 #include <u/strsep.h>
00014 #include <u/gettimeofday.h>
00015 #include <u/daemon.h>
00016
00017 #ifdef OS_WIN
00018 #include <windows.h>
00019 #define strcasecmp _stricmp
00020 #define sleep(secs) Sleep( (secs) * 1000 )
00021 #endif
00022
00023 #ifndef HAVE_SSIZE_T
00024 typedef int ssize_t;
00025 #endif
00026
00027
00028
00029 extern char *optarg;
00030 extern int optind;
00031
00032 #endif