unistd_windows_386.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. // Code generated by 'ccgo unistd/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o unistd/unistd_windows_386.go -pkgname unistd', DO NOT EDIT.
  2. package unistd
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. DUMMYSTRUCTNAME = 0 // _mingw.h:519:1:
  15. DUMMYSTRUCTNAME1 = 0 // _mingw.h:520:1:
  16. DUMMYSTRUCTNAME2 = 0 // _mingw.h:521:1:
  17. DUMMYSTRUCTNAME3 = 0 // _mingw.h:522:1:
  18. DUMMYSTRUCTNAME4 = 0 // _mingw.h:523:1:
  19. DUMMYSTRUCTNAME5 = 0 // _mingw.h:524:1:
  20. DUMMYUNIONNAME = 0 // _mingw.h:497:1:
  21. DUMMYUNIONNAME1 = 0 // _mingw.h:498:1:
  22. DUMMYUNIONNAME2 = 0 // _mingw.h:499:1:
  23. DUMMYUNIONNAME3 = 0 // _mingw.h:500:1:
  24. DUMMYUNIONNAME4 = 0 // _mingw.h:501:1:
  25. DUMMYUNIONNAME5 = 0 // _mingw.h:502:1:
  26. DUMMYUNIONNAME6 = 0 // _mingw.h:503:1:
  27. DUMMYUNIONNAME7 = 0 // _mingw.h:504:1:
  28. DUMMYUNIONNAME8 = 0 // _mingw.h:505:1:
  29. DUMMYUNIONNAME9 = 0 // _mingw.h:506:1:
  30. FTRUNCATE_DEFINED = 0 // unistd.h:56:1:
  31. F_OK = 0 // io.h:182:1:
  32. MINGW_DDK_H = 0 // _mingw_ddk.h:2:1:
  33. MINGW_HAS_DDK_H = 1 // _mingw_ddk.h:4:1:
  34. MINGW_HAS_SECURE_API = 1 // _mingw.h:602:1:
  35. MINGW_SDK_INIT = 0 // _mingw.h:598:1:
  36. OLD_P_OVERLAY = 2 // process.h:149:1:
  37. P_DETACH = 4 // process.h:151:1:
  38. P_NOWAIT = 1 // process.h:147:1:
  39. P_NOWAITO = 3 // process.h:150:1:
  40. P_OVERLAY = 2 // process.h:148:1:
  41. P_WAIT = 0 // process.h:146:1:
  42. R_OK = 4 // io.h:185:1:
  43. SEEK_CUR = 1 // unistd.h:17:1:
  44. SEEK_END = 2 // unistd.h:18:1:
  45. SEEK_SET = 0 // unistd.h:16:1:
  46. STDERR_FILENO = 2 // unistd.h:25:1:
  47. STDIN_FILENO = 0 // unistd.h:23:1:
  48. STDOUT_FILENO = 1 // unistd.h:24:1:
  49. UNALIGNED = 0 // _mingw.h:384:1:
  50. USE___UUIDOF = 0 // _mingw.h:77:1:
  51. WAIT_CHILD = 0 // process.h:152:1:
  52. WAIT_GRANDCHILD = 1 // process.h:153:1:
  53. WIN32 = 1 // <predefined>:258:1:
  54. WINNT = 1 // <predefined>:306:1:
  55. WIN_PTHREADS_UNISTD_H = 0 // pthread_unistd.h:24:1:
  56. W_OK = 2 // io.h:184:1:
  57. X_OK = 1 // io.h:183:1:
  58. X_AGLOBAL = 0 // _mingw.h:346:1:
  59. X_ANONYMOUS_STRUCT = 0 // _mingw.h:474:1:
  60. X_ANONYMOUS_UNION = 0 // _mingw.h:473:1:
  61. X_ARGMAX = 100 // _mingw.h:402:1:
  62. X_A_ARCH = 0x20 // io.h:156:1:
  63. X_A_HIDDEN = 0x02 // io.h:153:1:
  64. X_A_NORMAL = 0x00 // io.h:151:1:
  65. X_A_RDONLY = 0x01 // io.h:152:1:
  66. X_A_SUBDIR = 0x10 // io.h:155:1:
  67. X_A_SYSTEM = 0x04 // io.h:154:1:
  68. X_CONST_RETURN = 0 // _mingw.h:377:1:
  69. X_CRTNOALIAS = 0 // corecrt.h:29:1:
  70. X_CRTRESTRICT = 0 // corecrt.h:33:1:
  71. X_CRT_ALTERNATIVE_IMPORTED = 0 // _mingw.h:313:1:
  72. X_CRT_DIRECTORY_DEFINED = 0 // io.h:214:1:
  73. X_CRT_GETPID_DEFINED = 0 // process.h:157:1:
  74. X_CRT_MANAGED_HEAP_DEPRECATE = 0 // _mingw.h:361:1:
  75. X_CRT_MEMORY_DEFINED = 0 // string.h:44:1:
  76. X_CRT_PACKING = 8 // corecrt.h:14:1:
  77. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0 // _mingw_secapi.h:34:1:
  78. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0 // _mingw_secapi.h:35:1:
  79. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0 // _mingw_secapi.h:36:1:
  80. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0 // _mingw_secapi.h:37:1:
  81. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0 // _mingw_secapi.h:38:1:
  82. X_CRT_SWAB_DEFINED = 0 // unistd.h:92:1:
  83. X_CRT_SYSTEM_DEFINED = 0 // process.h:91:1:
  84. X_CRT_TERMINATE_DEFINED = 0 // process.h:41:1:
  85. X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0 // corecrt.h:501:1:
  86. X_CRT_WSYSTEM_DEFINED = 0 // process.h:120:1:
  87. X_DEV_T_DEFINED = 0 // types.h:50:1:
  88. X_DLL = 0 // _mingw.h:326:1:
  89. X_ERRCODE_DEFINED = 0 // corecrt.h:117:1:
  90. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  91. X_FILE_OFFSET_BITS_SET_FTRUNCATE = 0 // unistd.h:85:1:
  92. X_FILE_OFFSET_BITS_SET_LSEEK = 0 // io.h:350:1:
  93. X_FILE_OFFSET_BITS_SET_OFFT = 0 // _mingw_off_t.h:21:1:
  94. X_FINDDATA_T_DEFINED = 0 // io.h:89:1:
  95. X_FSIZE_T_DEFINED = 0 // io.h:30:1:
  96. X_ILP32 = 1 // <predefined>:211:1:
  97. X_INC_CORECRT = 0 // corecrt.h:8:1:
  98. X_INC_CORECRT_STARTUP = 0 // corecrt_startup.h:8:1:
  99. X_INC_CRTDEFS = 0 // crtdefs.h:8:1:
  100. X_INC_CRTDEFS_MACRO = 0 // _mingw_mac.h:8:1:
  101. X_INC_MINGW_SECAPI = 0 // _mingw_secapi.h:8:1:
  102. X_INC_PROCESS = 0 // process.h:7:1:
  103. X_INC_STRING = 0 // string.h:7:1:
  104. X_INC_STRING_S = 0 // string_s.h:7:1:
  105. X_INC_TYPES = 0 // types.h:7:1:
  106. X_INC_VADEFS = 0 // vadefs.h:7:1:
  107. X_INC__MINGW_H = 0 // _mingw.h:8:1:
  108. X_INO_T_DEFINED = 0 // types.h:42:1:
  109. X_INT128_DEFINED = 0 // _mingw.h:237:1:
  110. X_INTEGRAL_MAX_BITS = 64 // <predefined>:320:1:
  111. X_INTPTR_T_DEFINED = 0 // corecrt.h:62:1:
  112. X_IO_H_ = 0 // io.h:7:1:
  113. X_MODE_T_ = 0 // types.h:73:1:
  114. X_MT = 0 // _mingw.h:330:1:
  115. X_M_IX86 = 600 // _mingw_mac.h:54:1:
  116. X_NLSCMPERROR = 2147483647 // string.h:26:1:
  117. X_NLSCMP_DEFINED = 0 // string.h:25:1:
  118. X_OFF64_T_DEFINED = 0 // _mingw_off_t.h:12:1:
  119. X_OFF_T_ = 0 // _mingw_off_t.h:4:1:
  120. X_OFF_T_DEFINED = 0 // _mingw_off_t.h:2:1:
  121. X_OLD_P_OVERLAY = 2 // process.h:23:1:
  122. X_PGLOBAL = 0 // _mingw.h:342:1:
  123. X_PID_T_ = 0 // types.h:58:1:
  124. X_POSIX_BARRIERS = 200112 // pthread_unistd.h:130:1:
  125. X_POSIX_CLOCK_SELECTION = 200112 // pthread_unistd.h:173:1:
  126. X_POSIX_READER_WRITER_LOCKS = 200112 // pthread_unistd.h:101:1:
  127. X_POSIX_SEMAPHORES = 200112 // pthread_unistd.h:190:1:
  128. X_POSIX_SPIN_LOCKS = 200112 // pthread_unistd.h:115:1:
  129. X_POSIX_THREADS = 200112 // pthread_unistd.h:81:1:
  130. X_POSIX_TIMEOUTS = 200112 // pthread_unistd.h:145:1:
  131. X_PTRDIFF_T_ = 0 // corecrt.h:90:1:
  132. X_PTRDIFF_T_DEFINED = 0 // corecrt.h:88:1:
  133. X_P_DETACH = 4 // process.h:25:1:
  134. X_P_NOWAIT = 1 // process.h:22:1:
  135. X_P_NOWAITO = 3 // process.h:24:1:
  136. X_P_OVERLAY = 2 // process.h:26:1:
  137. X_P_WAIT = 0 // process.h:21:1:
  138. X_RSIZE_T_DEFINED = 0 // corecrt.h:58:1:
  139. X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD // _mingw.h:349:1:
  140. X_SIGSET_T_ = 0 // types.h:101:1:
  141. X_SIZE_T_DEFINED = 0 // corecrt.h:37:1:
  142. X_SPAWNV_DEFINED = 0 // process.h:83:1:
  143. X_SSIZE_T_DEFINED = 0 // corecrt.h:47:1:
  144. X_TAGLC_ID_DEFINED = 0 // corecrt.h:447:1:
  145. X_THREADLOCALEINFO = 0 // corecrt.h:456:1:
  146. X_TIME32_T_DEFINED = 0 // corecrt.h:122:1:
  147. X_TIME64_T_DEFINED = 0 // corecrt.h:127:1:
  148. X_TIMESPEC_DEFINED = 0 // types.h:88:1:
  149. X_TIME_T_DEFINED = 0 // corecrt.h:139:1:
  150. X_UINTPTR_T_DEFINED = 0 // corecrt.h:75:1:
  151. X_UNISTD_H = 0 // unistd.h:7:1:
  152. X_USE_32BIT_TIME_T = 0 // _mingw.h:372:1:
  153. X_VA_LIST_DEFINED = 0 // <builtin>:55:1:
  154. X_W64 = 0 // _mingw.h:296:1:
  155. X_WAIT_CHILD = 0 // process.h:28:1:
  156. X_WAIT_GRANDCHILD = 1 // process.h:29:1:
  157. X_WCHAR_T_DEFINED = 0 // corecrt.h:101:1:
  158. X_WCTYPE_T_DEFINED = 0 // corecrt.h:108:1:
  159. X_WConst_return = 0 // string.h:41:1:
  160. X_WEXEC_DEFINED = 0 // process.h:96:1:
  161. X_WFINDDATA_T_DEFINED = 0 // io.h:148:1:
  162. X_WIN32 = 1 // <predefined>:164:1:
  163. X_WIN32_WINNT = 0x502 // _mingw.h:233:1:
  164. X_WINT_T = 0 // corecrt.h:110:1:
  165. X_WIO_DEFINED = 0 // io.h:295:1:
  166. X_WSPAWN_DEFINED = 0 // process.h:108:1:
  167. X_WSTRING_DEFINED = 0 // string.h:129:1:
  168. X_WSTRING_S_DEFINED = 0 // string_s.h:48:1:
  169. X_X86_ = 1 // <predefined>:169:1:
  170. I386 = 1 // <predefined>:171:1:
  171. )
  172. type Ptrdiff_t = int32 /* <builtin>:3:26 */
  173. type Size_t = uint32 /* <builtin>:9:23 */
  174. type Wchar_t = uint16 /* <builtin>:15:24 */
  175. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  176. type X__float128 = float64 /* <builtin>:47:21 */
  177. type Va_list = X__builtin_va_list /* <builtin>:50:27 */
  178. // *
  179. // This file has no copyright assigned and is placed in the Public Domain.
  180. // This file is part of the mingw-w64 runtime package.
  181. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  182. // *
  183. // This file has no copyright assigned and is placed in the Public Domain.
  184. // This file is part of the mingw-w64 runtime package.
  185. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  186. // *
  187. // This file has no copyright assigned and is placed in the Public Domain.
  188. // This file is part of the mingw-w64 runtime package.
  189. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  190. // *
  191. // This file has no copyright assigned and is placed in the Public Domain.
  192. // This file is part of the mingw-w64 runtime package.
  193. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  194. // *
  195. // This file has no copyright assigned and is placed in the Public Domain.
  196. // This file is part of the mingw-w64 runtime package.
  197. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  198. // *
  199. // This file has no copyright assigned and is placed in the Public Domain.
  200. // This file is part of the mingw-w64 runtime package.
  201. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  202. // This macro holds an monotonic increasing value, which indicates
  203. // a specific fix/patch is present on trunk. This value isn't related to
  204. // minor/major version-macros. It is increased on demand, if a big
  205. // fix was applied to trunk. This macro gets just increased on trunk. For
  206. // other branches its value won't be modified.
  207. // mingw.org's version macros: these make gcc to define
  208. // MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
  209. // and the __mingwthr_key_dtor() function from the MinGW
  210. // CRT in its private gthr-win32.h header.
  211. // Set VC specific compiler target macros.
  212. // For x86 we have always to prefix by underscore.
  213. // Special case nameless struct/union.
  214. // MinGW-w64 has some additional C99 printf/scanf feature support.
  215. // So we add some helper macros to ease recognition of them.
  216. // If _FORTIFY_SOURCE is enabled, some inline functions may use
  217. // __builtin_va_arg_pack(). GCC may report an error if the address
  218. // of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
  219. // Enable workaround for ABI incompatibility on affected platforms
  220. // *
  221. // This file has no copyright assigned and is placed in the Public Domain.
  222. // This file is part of the mingw-w64 runtime package.
  223. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  224. // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
  225. // Templates won't work in C, will break if secure API is not enabled, disabled
  226. // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
  227. // fallback on default implementation if we can't know the size of the destination
  228. // Include _cygwin.h if we're building a Cygwin application.
  229. // Target specific macro replacement for type "long". In the Windows API,
  230. // the type long is always 32 bit, even if the target is 64 bit (LLP64).
  231. // On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
  232. // sized definitions and declarations, all usage of type long in the Windows
  233. // headers have to be replaced by the below defined macro __LONG32.
  234. // C/C++ specific language defines.
  235. // Note the extern. This is needed to work around GCC's
  236. // limitations in handling dllimport attribute.
  237. // Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
  238. // variadiac macro facility, because variadic macros cause syntax
  239. // errors with --traditional-cpp.
  240. // High byte is the major version, low byte is the minor.
  241. // *
  242. // This file has no copyright assigned and is placed in the Public Domain.
  243. // This file is part of the mingw-w64 runtime package.
  244. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  245. // *
  246. // This file has no copyright assigned and is placed in the Public Domain.
  247. // This file is part of the mingw-w64 runtime package.
  248. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  249. // for backward compatibility
  250. type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
  251. type Ssize_t = int32 /* corecrt.h:52:13 */
  252. type Rsize_t = Size_t /* corecrt.h:57:16 */
  253. type Intptr_t = int32 /* corecrt.h:69:13 */
  254. type Uintptr_t = uint32 /* corecrt.h:82:22 */
  255. type Wint_t = uint16 /* corecrt.h:111:24 */
  256. type Wctype_t = uint16 /* corecrt.h:112:24 */
  257. type Errno_t = int32 /* corecrt.h:118:13 */
  258. type X__time32_t = int32 /* corecrt.h:123:14 */
  259. type X__time64_t = int64 /* corecrt.h:128:35 */
  260. type Time_t = X__time32_t /* corecrt.h:141:20 */
  261. type Threadlocaleinfostruct = struct {
  262. Frefcount int32
  263. Flc_codepage uint32
  264. Flc_collate_cp uint32
  265. Flc_handle [6]uint32
  266. Flc_id [6]LC_ID
  267. Flc_category [6]struct {
  268. Flocale uintptr
  269. Fwlocale uintptr
  270. Frefcount uintptr
  271. Fwrefcount uintptr
  272. }
  273. Flc_clike int32
  274. Fmb_cur_max int32
  275. Flconv_intl_refcount uintptr
  276. Flconv_num_refcount uintptr
  277. Flconv_mon_refcount uintptr
  278. Flconv uintptr
  279. Fctype1_refcount uintptr
  280. Fctype1 uintptr
  281. Fpctype uintptr
  282. Fpclmap uintptr
  283. Fpcumap uintptr
  284. Flc_time_curr uintptr
  285. } /* corecrt.h:435:1 */
  286. type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
  287. type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
  288. type Localeinfo_struct = struct {
  289. Flocinfo Pthreadlocinfo
  290. Fmbcinfo Pthreadmbcinfo
  291. } /* corecrt.h:441:9 */
  292. type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
  293. type X_locale_t = uintptr /* corecrt.h:444:19 */
  294. type TagLC_ID = struct {
  295. FwLanguage uint16
  296. FwCountry uint16
  297. FwCodePage uint16
  298. } /* corecrt.h:435:1 */
  299. type LC_ID = TagLC_ID /* corecrt.h:452:3 */
  300. type LPLC_ID = uintptr /* corecrt.h:452:9 */
  301. type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
  302. type X_fsize_t = uint32 /* io.h:29:25 */
  303. type X_finddata32_t = struct {
  304. Fattrib uint32
  305. Ftime_create X__time32_t
  306. Ftime_access X__time32_t
  307. Ftime_write X__time32_t
  308. Fsize X_fsize_t
  309. Fname [260]int8
  310. } /* io.h:35:3 */
  311. type X_finddata32i64_t = struct {
  312. Fattrib uint32
  313. Ftime_create X__time32_t
  314. Ftime_access X__time32_t
  315. Ftime_write X__time32_t
  316. Fsize int64
  317. Fname [260]int8
  318. F__ccgo_pad1 [4]byte
  319. } /* io.h:44:3 */
  320. type X_finddata64i32_t = struct {
  321. Fattrib uint32
  322. F__ccgo_pad1 [4]byte
  323. Ftime_create X__time64_t
  324. Ftime_access X__time64_t
  325. Ftime_write X__time64_t
  326. Fsize X_fsize_t
  327. Fname [260]int8
  328. } /* io.h:53:3 */
  329. type X__finddata64_t = struct {
  330. Fattrib uint32
  331. F__ccgo_pad1 [4]byte
  332. Ftime_create X__time64_t
  333. Ftime_access X__time64_t
  334. Ftime_write X__time64_t
  335. Fsize int64
  336. Fname [260]int8
  337. F__ccgo_pad2 [4]byte
  338. } /* io.h:62:3 */
  339. type X_wfinddata32_t = struct {
  340. Fattrib uint32
  341. Ftime_create X__time32_t
  342. Ftime_access X__time32_t
  343. Ftime_write X__time32_t
  344. Fsize X_fsize_t
  345. Fname [260]Wchar_t
  346. } /* io.h:94:3 */
  347. type X_wfinddata32i64_t = struct {
  348. Fattrib uint32
  349. Ftime_create X__time32_t
  350. Ftime_access X__time32_t
  351. Ftime_write X__time32_t
  352. Fsize int64
  353. Fname [260]Wchar_t
  354. } /* io.h:103:3 */
  355. type X_wfinddata64i32_t = struct {
  356. Fattrib uint32
  357. F__ccgo_pad1 [4]byte
  358. Ftime_create X__time64_t
  359. Ftime_access X__time64_t
  360. Ftime_write X__time64_t
  361. Fsize X_fsize_t
  362. Fname [260]Wchar_t
  363. F__ccgo_pad2 [4]byte
  364. } /* io.h:112:3 */
  365. type X_wfinddata64_t = struct {
  366. Fattrib uint32
  367. F__ccgo_pad1 [4]byte
  368. Ftime_create X__time64_t
  369. Ftime_access X__time64_t
  370. Ftime_write X__time64_t
  371. Fsize int64
  372. Fname [260]Wchar_t
  373. } /* io.h:121:3 */
  374. type X_off_t = int32 /* _mingw_off_t.h:5:16 */
  375. type Off32_t = int32 /* _mingw_off_t.h:7:16 */
  376. type X_off64_t = int64 /* _mingw_off_t.h:13:39 */
  377. type Off64_t = int64 /* _mingw_off_t.h:15:39 */
  378. type Off_t = Off64_t /* _mingw_off_t.h:24:17 */
  379. type X_PVFV = uintptr /* corecrt_startup.h:20:14 */
  380. type X_PIFV = uintptr /* corecrt_startup.h:21:13 */
  381. type X_PVFI = uintptr /* corecrt_startup.h:22:14 */
  382. type X_onexit_table_t1 = struct {
  383. F_first uintptr
  384. F_last uintptr
  385. F_end uintptr
  386. } /* corecrt_startup.h:24:9 */
  387. type X_onexit_table_t = X_onexit_table_t1 /* corecrt_startup.h:28:3 */
  388. type X_onexit_t = uintptr /* corecrt_startup.h:30:13 */
  389. // Includes a definition of _pid_t and pid_t
  390. // *
  391. // This file has no copyright assigned and is placed in the Public Domain.
  392. // This file is part of the mingw-w64 runtime package.
  393. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  394. // *
  395. // This file has no copyright assigned and is placed in the Public Domain.
  396. // This file is part of the mingw-w64 runtime package.
  397. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  398. type X_ino_t = uint16 /* types.h:43:24 */
  399. type Ino_t = uint16 /* types.h:45:24 */
  400. type X_dev_t = uint32 /* types.h:51:22 */
  401. type Dev_t = uint32 /* types.h:53:22 */
  402. type X_pid_t = int32 /* types.h:60:13 */
  403. type Pid_t = X_pid_t /* types.h:68:16 */
  404. type X_mode_t = uint16 /* types.h:74:24 */
  405. type Mode_t = X_mode_t /* types.h:77:17 */
  406. type Useconds_t = uint32 /* types.h:84:22 */
  407. type Timespec = struct {
  408. Ftv_sec Time_t
  409. Ftv_nsec int32
  410. } /* types.h:89:1 */
  411. type Itimerspec = struct {
  412. Fit_interval struct {
  413. Ftv_sec Time_t
  414. Ftv_nsec int32
  415. }
  416. Fit_value struct {
  417. Ftv_sec Time_t
  418. Ftv_nsec int32
  419. }
  420. } /* types.h:94:1 */
  421. type X_sigset_t = uint32 /* types.h:106:23 */
  422. type X_beginthread_proc_type = uintptr /* process.h:32:16 */
  423. type X_beginthreadex_proc_type = uintptr /* process.h:33:20 */
  424. type X_tls_callback_type = uintptr /* process.h:61:16 */
  425. //
  426. // Copyright (c) 2011-2016 mingw-w64 project
  427. //
  428. // Permission is hereby granted, free of charge, to any person obtaining a
  429. // copy of this software and associated documentation files (the "Software"),
  430. // to deal in the Software without restriction, including without limitation
  431. // the rights to use, copy, modify, merge, publish, distribute, sublicense,
  432. // and/or sell copies of the Software, and to permit persons to whom the
  433. // Software is furnished to do so, subject to the following conditions:
  434. //
  435. // The above copyright notice and this permission notice shall be included in
  436. // all copies or substantial portions of the Software.
  437. //
  438. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  439. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  440. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  441. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  442. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  443. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  444. // DEALINGS IN THE SOFTWARE.
  445. // Set defines described by the POSIX Threads Extension (1003.1c-1995)
  446. // _SC_THREADS
  447. // Basic support for POSIX threads is available. The functions
  448. //
  449. // pthread_atfork(),
  450. // pthread_attr_destroy(),
  451. // pthread_attr_getdetachstate(),
  452. // pthread_attr_getschedparam(),
  453. // pthread_attr_init(),
  454. // pthread_attr_setdetachstate(),
  455. // pthread_attr_setschedparam(),
  456. // pthread_cancel(),
  457. // pthread_cleanup_push(),
  458. // pthread_cleanup_pop(),
  459. // pthread_cond_broadcast(),
  460. // pthread_cond_destroy(),
  461. // pthread_cond_init(),
  462. // pthread_cond_signal(),
  463. // pthread_cond_timedwait(),
  464. // pthread_cond_wait(),
  465. // pthread_condattr_destroy(),
  466. // pthread_condattr_init(),
  467. // pthread_create(),
  468. // pthread_detach(),
  469. // pthread_equal(),
  470. // pthread_exit(),
  471. // pthread_getspecific(),
  472. // pthread_join(,
  473. // pthread_key_create(),
  474. // pthread_key_delete(),
  475. // pthread_mutex_destroy(),
  476. // pthread_mutex_init(),
  477. // pthread_mutex_lock(),
  478. // pthread_mutex_trylock(),
  479. // pthread_mutex_unlock(),
  480. // pthread_mutexattr_destroy(),
  481. // pthread_mutexattr_init(),
  482. // pthread_once(),
  483. // pthread_rwlock_destroy(),
  484. // pthread_rwlock_init(),
  485. // pthread_rwlock_rdlock(),
  486. // pthread_rwlock_tryrdlock(),
  487. // pthread_rwlock_trywrlock(),
  488. // pthread_rwlock_unlock(),
  489. // pthread_rwlock_wrlock(),
  490. // pthread_rwlockattr_destroy(),
  491. // pthread_rwlockattr_init(),
  492. // pthread_self(),
  493. // pthread_setcancelstate(),
  494. // pthread_setcanceltype(),
  495. // pthread_setspecific(),
  496. // pthread_testcancel()
  497. //
  498. // are present.
  499. // _SC_READER_WRITER_LOCKS
  500. // This option implies the _POSIX_THREADS option. Conversely, under
  501. // POSIX 1003.1-2001 the _POSIX_THREADS option implies this option.
  502. //
  503. // The functions
  504. // pthread_rwlock_destroy(),
  505. // pthread_rwlock_init(),
  506. // pthread_rwlock_rdlock(),
  507. // pthread_rwlock_tryrdlock(),
  508. // pthread_rwlock_trywrlock(),
  509. // pthread_rwlock_unlock(),
  510. // pthread_rwlock_wrlock(),
  511. // pthread_rwlockattr_destroy(),
  512. // pthread_rwlockattr_init()
  513. //
  514. // are present.
  515. // _SC_SPIN_LOCKS
  516. // This option implies the _POSIX_THREADS and _POSIX_THREAD_SAFE_FUNCTIONS
  517. // options. The functions
  518. //
  519. // pthread_spin_destroy(),
  520. // pthread_spin_init(),
  521. // pthread_spin_lock(),
  522. // pthread_spin_trylock(),
  523. // pthread_spin_unlock()
  524. //
  525. // are present.
  526. // _SC_BARRIERS
  527. // This option implies the _POSIX_THREADS and _POSIX_THREAD_SAFE_FUNCTIONS
  528. // options. The functions
  529. //
  530. // pthread_barrier_destroy(),
  531. // pthread_barrier_init(),
  532. // pthread_barrier_wait(),
  533. // pthread_barrierattr_destroy(),
  534. // pthread_barrierattr_init()
  535. //
  536. // are present.
  537. // _SC_TIMEOUTS
  538. // The functions
  539. //
  540. // mq_timedreceive(), - not supported
  541. // mq_timedsend(), - not supported
  542. // posix_trace_timedgetnext_event(), - not supported
  543. // pthread_mutex_timedlock(),
  544. // pthread_rwlock_timedrdlock(),
  545. // pthread_rwlock_timedwrlock(),
  546. // sem_timedwait(),
  547. //
  548. // are present.
  549. // _SC_TIMERS - not supported
  550. // The functions
  551. //
  552. // clock_getres(),
  553. // clock_gettime(),
  554. // clock_settime(),
  555. // nanosleep(),
  556. // timer_create(),
  557. // timer_delete(),
  558. // timer_gettime(),
  559. // timer_getoverrun(),
  560. // timer_settime()
  561. //
  562. // are present.
  563. // #undef _POSIX_TIMERS
  564. // _SC_CLOCK_SELECTION
  565. // This option implies the _POSIX_TIMERS option. The functions
  566. //
  567. // pthread_condattr_getclock(),
  568. // pthread_condattr_setclock(),
  569. // clock_nanosleep()
  570. //
  571. // are present.
  572. // _SC_SEMAPHORES
  573. // The include file <semaphore.h> is present. The functions
  574. //
  575. // sem_close(),
  576. // sem_destroy(),
  577. // sem_getvalue(),
  578. // sem_init(),
  579. // sem_open(),
  580. // sem_post(),
  581. // sem_trywait(),
  582. // sem_unlink(),
  583. // sem_wait()
  584. //
  585. // are present.
  586. var _ int8 /* gen.c:2:13: */