Ignore mingw-get's downloaded files
[msysgit.git] / mingw / include / unistd.h
blob3e7f2364a7ae213c1539d62c40a1a581dcb0531c
1 #ifndef _UNISTD_H
2 /*
3 * This file is part of the Mingw32 package.
5 * unistd.h maps (roughly) to io.h
6 * Other headers included by unistd.h may be selectively processed;
7 * __UNISTD_H_SOURCED__ enables such selective processing.
8 */
9 #define _UNISTD_H
10 #define __UNISTD_H_SOURCED__ 1
12 #include <io.h>
13 #include <process.h>
14 #include <getopt.h>
16 /* These are also defined in stdio.h. */
17 #ifndef SEEK_SET
18 #define SEEK_SET 0
19 #endif
21 #ifndef SEEK_CUR
22 #define SEEK_CUR 1
23 #endif
25 #ifndef SEEK_END
26 #define SEEK_END 2
27 #endif
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
33 #if !defined __NO_ISOCEXT
34 #include <sys/types.h> /* For useconds_t. */
36 int __cdecl __MINGW_NOTHROW usleep(useconds_t useconds);
37 #endif /* Not __NO_ISOCEXT */
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)
44 return _chsize (__fd, __length);
47 #ifdef __cplusplus
49 #endif
51 #undef __UNISTD_H_SOURCED__
52 #endif /* _UNISTD_H */