Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (42 sloc) 1.012 kb
a1dbb9f @dscho Install mingwrt-3.15.2-mingw32-dev.tar.gz
dscho authored
1 #ifndef _UNISTD_H
2914373 @dscho Start anew
dscho authored
2 /*
3 * This file is part of the Mingw32 package.
4 *
5 * unistd.h maps (roughly) to io.h
a1dbb9f @dscho Install mingwrt-3.15.2-mingw32-dev.tar.gz
dscho authored
6 * Other headers included by unistd.h may be selectively processed;
7 * __UNISTD_H_SOURCED__ enables such selective processing.
2914373 @dscho Start anew
dscho authored
8 */
9 #define _UNISTD_H
a1dbb9f @dscho Install mingwrt-3.15.2-mingw32-dev.tar.gz
dscho authored
10 #define __UNISTD_H_SOURCED__ 1
2914373 @dscho Start anew
dscho authored
11
12 #include <io.h>
13 #include <process.h>
14 #include <getopt.h>
15
16 /* These are also defined in stdio.h. */
17 #ifndef SEEK_SET
18 #define SEEK_SET 0
19 #endif
20
21 #ifndef SEEK_CUR
22 #define SEEK_CUR 1
23 #endif
24
25 #ifndef SEEK_END
26 #define SEEK_END 2
27 #endif
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
a1dbb9f @dscho Install mingwrt-3.15.2-mingw32-dev.tar.gz
dscho authored
33 #if !defined __NO_ISOCEXT
34 #include <sys/types.h> /* For useconds_t. */
35
36 int __cdecl __MINGW_NOTHROW usleep(useconds_t useconds);
37 #endif /* Not __NO_ISOCEXT */
2914373 @dscho Start anew
dscho authored
38
39 /* This is defined as a real library function to allow autoconf
40 to verify its existence. */
41 int ftruncate(int, off_t);
42 __CRT_INLINE int ftruncate(int __fd, off_t __length)
43 {
44 return _chsize (__fd, __length);
45 }
46
47 #ifdef __cplusplus
48 }
49 #endif
50
a1dbb9f @dscho Install mingwrt-3.15.2-mingw32-dev.tar.gz
dscho authored
51 #undef __UNISTD_H_SOURCED__
2914373 @dscho Start anew
dscho authored
52 #endif /* _UNISTD_H */
Something went wrong with that request. Please try again.