- Cleanup the /lib directory, by putting more 3rd-party libs in /3rdparty, and by...
[reactos.git] / reactos / lib / 3rdparty / mingw / include / unistd.h
1 /*
2 * This file is part of the Mingw32 package.
3 *
4 * unistd.h maps (roughly) to io.h
5 */
6
7 #ifndef _UNISTD_H
8 #define _UNISTD_H
9
10 #include <io.h>
11 #include <process.h>
12
13 #define __UNISTD_GETOPT__
14 #include <getopt.h>
15 #undef __UNISTD_GETOPT__
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 /* This is defined as a real library function to allow autoconf
22 to verify its existence. */
23 int ftruncate(int, off_t);
24 __CRT_INLINE int ftruncate(int __fd, off_t __length)
25 {
26 return _chsize (__fd, __length);
27 }
28
29 #ifdef __cplusplus
30 }
31 #endif
32
33 #endif /* _UNISTD_H */