unistd_windows_amd64.go 24 KB

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