Mercurial > games > semicongine
comparison fuhtark_test/include/unistd.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 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 #ifndef _UNISTD_H | |
| 7 #define _UNISTD_H | |
| 8 #define __UNISTD_H_SOURCED__ 1 | |
| 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 #ifndef __NO_ISOCEXT | |
| 22 #include <sys/types.h> /* For useconds_t. */ | |
| 23 | |
| 24 int __cdecl __MINGW_NOTHROW usleep(useconds_t useconds); | |
| 25 #endif | |
| 26 | |
| 27 #ifndef FTRUNCATE_DEFINED | |
| 28 #define FTRUNCATE_DEFINED | |
| 29 /* This is defined as a real library function to allow autoconf | |
| 30 to verify its existence. */ | |
| 31 #if !defined(NO_OLDNAMES) || defined(_POSIX) | |
| 32 int ftruncate(int, off_t); | |
| 33 #ifndef __CRT__NO_INLINE | |
| 34 __CRT_INLINE int ftruncate(int __fd, off_t __length) | |
| 35 { | |
| 36 return _chsize (__fd, __length); | |
| 37 } | |
| 38 #endif /* !__CRT__NO_INLINE */ | |
| 39 #else | |
| 40 int ftruncate(int, _off_t); | |
| 41 #ifndef __CRT__NO_INLINE | |
| 42 __CRT_INLINE int ftruncate(int __fd, _off_t __length) | |
| 43 { | |
| 44 return _chsize (__fd, __length); | |
| 45 } | |
| 46 #endif /* !__CRT__NO_INLINE */ | |
| 47 #endif | |
| 48 #endif | |
| 49 | |
| 50 #ifdef __cplusplus | |
| 51 } | |
| 52 #endif | |
| 53 | |
| 54 #undef __UNISTD_H_SOURCED__ | |
| 55 #endif /* _UNISTD_H */ | |
| 56 |
