equal
deleted
inserted
replaced
|
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 /* These are also defined in stdio.h. */ |
|
18 #ifndef SEEK_SET |
|
19 #define SEEK_SET 0 |
|
20 #endif |
|
21 |
|
22 #ifndef SEEK_CUR |
|
23 #define SEEK_CUR 1 |
|
24 #endif |
|
25 |
|
26 #ifndef SEEK_END |
|
27 #define SEEK_END 2 |
|
28 #endif |
|
29 |
|
30 #ifdef __cplusplus |
|
31 extern "C" { |
|
32 #endif |
|
33 |
|
34 |
|
35 /* This is defined as a real library function to allow autoconf |
|
36 to verify its existence. */ |
|
37 int ftruncate(int, off_t); |
|
38 __CRT_INLINE int ftruncate(int __fd, off_t __length) |
|
39 { |
|
40 return _chsize (__fd, __length); |
|
41 } |
|
42 |
|
43 #ifdef __cplusplus |
|
44 } |
|
45 #endif |
|
46 |
|
47 #endif /* _UNISTD_H */ |