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