Main Page | Modules | Data Structures | File List | Data Fields

os.h

00001 /* 
00002  * Copyright (c) 2005, 2006 by KoanLogic s.r.l. - All rights reserved.  
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 /* on VxWorks/DCC there's not extern declaration (even if the var is available
00028    into library files) */
00029 extern char *optarg;
00030 extern int optind;
00031 
00032 #endif 

←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved