x86-64: use uplong for symbol values
[tinycc/kirr.git] / win32 / include / unistd.h
blob6065a918db5b008a77e611024fdee32ad4c36e36
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 /*
7 * This file is part of the Mingw32 package.
9 * unistd.h maps (roughly) to io.h
12 #ifndef __STRICT_ANSI__
14 #include <io.h>
15 #include <process.h>
17 #define __UNISTD_GETOPT__
18 #include <getopt.h>
19 #undef __UNISTD_GETOPT__
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 #ifndef FTRUNCATE_DEFINED
26 #define FTRUNCATE_DEFINED
27 /* This is defined as a real library function to allow autoconf
28 to verify its existence. */
29 int ftruncate(int, off_t);
30 __CRT_INLINE int ftruncate(int __fd, off_t __length)
32 return _chsize (__fd, __length);
34 #endif
36 #ifdef __cplusplus
38 #endif
40 #endif