Navit SVN

/work/compile/navit/src/navit/support/libc/unistd.h

00001 #ifndef _UNISTD_H
00002 /*
00003  * This file is part of the Mingw32 package.
00004  *
00005  * unistd.h maps (roughly) to io.h
00006  * Other headers included by unistd.h may be selectively processed;
00007  * __UNISTD_H_SOURCED__ enables such selective processing.
00008  */
00009 #define _UNISTD_H
00010 #define __UNISTD_H_SOURCED__ 1
00011 
00012 #include <io.h>
00013 #include <process.h>
00014 #include <getopt.h>
00015 
00016 /* These are also defined in stdio.h. */
00017 #ifndef SEEK_SET
00018 #define SEEK_SET 0
00019 #endif
00020 
00021 #ifndef SEEK_CUR
00022 #define SEEK_CUR 1
00023 #endif
00024 
00025 #ifndef SEEK_END
00026 #define SEEK_END 2
00027 #endif
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033 #if !defined __NO_ISOCEXT
00034 #include <sys/types.h> /* For useconds_t. */
00035 
00036 int __cdecl __MINGW_NOTHROW usleep(useconds_t useconds);
00037 #endif  /* Not __NO_ISOCEXT */
00038 
00039 /* This is defined as a real library function to allow autoconf
00040    to verify its existence. */
00041 int ftruncate(int, off_t);
00042 
00043 #ifdef __cplusplus
00044 }
00045 #endif
00046 
00047 #undef __UNISTD_H_SOURCED__
00048 #endif /* _UNISTD_H */