unistd_netbsd_amd64.go 91 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804
  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_netbsd_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. BIG_ENDIAN = 4321 // endian.h:101:1:
  15. BYTE_ORDER = 1234 // endian.h:103:1:
  16. FDATASYNC = 0x0010 // unistd.h:196:1:
  17. FDISKSYNC = 0x0040 // unistd.h:198:1:
  18. FD_SETSIZE = 256 // fd_set.h:59:1:
  19. FFILESYNC = 0x0020 // unistd.h:197:1:
  20. F_LOCK = 1 // unistd.h:253:1:
  21. F_OK = 0 // unistd.h:172:1:
  22. F_TEST = 3 // unistd.h:255:1:
  23. F_TLOCK = 2 // unistd.h:254:1:
  24. F_ULOCK = 0 // unistd.h:252:1:
  25. GETPASS_7BIT = 0x080 // unistd.h:351:1:
  26. GETPASS_BUF_LIMIT = 0x004 // unistd.h:346:1:
  27. GETPASS_ECHO = 0x020 // unistd.h:349:1:
  28. GETPASS_ECHO_NL = 0x400 // unistd.h:354:1:
  29. GETPASS_ECHO_STAR = 0x040 // unistd.h:350:1:
  30. GETPASS_FAIL_EOF = 0x002 // unistd.h:345:1:
  31. GETPASS_FORCE_LOWER = 0x100 // unistd.h:352:1:
  32. GETPASS_FORCE_UPPER = 0x200 // unistd.h:353:1:
  33. GETPASS_NEED_TTY = 0x001 // unistd.h:344:1:
  34. GETPASS_NO_BEEP = 0x010 // unistd.h:348:1:
  35. GETPASS_NO_SIGNAL = 0x008 // unistd.h:347:1:
  36. INT16_MAX = 32767 // common_int_limits.h:53:1:
  37. INT16_MIN = -32768 // common_int_limits.h:47:1:
  38. INT32_MAX = 2147483647 // common_int_limits.h:54:1:
  39. INT32_MIN = -2147483648 // common_int_limits.h:48:1:
  40. INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
  41. INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
  42. INT8_MAX = 127 // common_int_limits.h:52:1:
  43. INT8_MIN = -128 // common_int_limits.h:46:1:
  44. INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
  45. INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
  46. INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
  47. INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
  48. INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
  49. INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
  50. INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
  51. INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
  52. INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
  53. INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
  54. INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
  55. INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
  56. INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
  57. INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
  58. INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
  59. INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
  60. INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
  61. INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
  62. INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
  63. INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
  64. LITTLE_ENDIAN = 1234 // endian.h:100:1:
  65. L_INCR = 1 // unistd.h:185:1:
  66. L_SET = 0 // unistd.h:184:1:
  67. L_XTND = 2 // unistd.h:186:1:
  68. NBBY = 8 // types.h:316:1:
  69. NFDBITS = 32 // fd_set.h:93:1:
  70. NODEVMAJOR = -1 // types.h:258:1:
  71. PDP_ENDIAN = 3412 // endian.h:102:1:
  72. PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
  73. PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
  74. R_OK = 0x04 // unistd.h:175:1:
  75. SEEK_CUR = 1 // unistd.h:179:1:
  76. SEEK_END = 2 // unistd.h:180:1:
  77. SEEK_SET = 0 // unistd.h:178:1:
  78. SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
  79. SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
  80. SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
  81. STDERR_FILENO = 2 // unistd.h:82:1:
  82. STDIN_FILENO = 0 // unistd.h:80:1:
  83. STDOUT_FILENO = 1 // unistd.h:81:1:
  84. UINT16_MAX = 65535 // common_int_limits.h:59:1:
  85. UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
  86. UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
  87. UINT8_MAX = 255 // common_int_limits.h:58:1:
  88. UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
  89. UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
  90. UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
  91. UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
  92. UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
  93. UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
  94. UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
  95. UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
  96. UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
  97. UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
  98. WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
  99. WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
  100. WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
  101. WINT_MIN = -2147483648 // wchar_limits.h:44:1:
  102. W_OK = 0x02 // unistd.h:174:1:
  103. X_OK = 0x01 // unistd.h:173:1:
  104. X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
  105. X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
  106. X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
  107. X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
  108. X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
  109. X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
  110. X_BIG_ENDIAN = 4321 // endian.h:44:1:
  111. X_BSD_INT16_T_ = 0 // types.h:65:1:
  112. X_BSD_INT32_T_ = 0 // types.h:75:1:
  113. X_BSD_INT64_T_ = 0 // types.h:85:1:
  114. X_BSD_INT8_T_ = 0 // types.h:55:1:
  115. X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
  116. X_BSD_UINT16_T_ = 0 // types.h:70:1:
  117. X_BSD_UINT32_T_ = 0 // types.h:80:1:
  118. X_BSD_UINT64_T_ = 0 // types.h:90:1:
  119. X_BSD_UINT8_T_ = 0 // types.h:60:1:
  120. X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
  121. X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
  122. X_CS_PATH = 1 // unistd.h:338:1:
  123. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  124. X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
  125. X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
  126. X_LP64 = 1 // <predefined>:268:1:
  127. X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
  128. X_O_SC_CLK_TCK = 3 // unistd.h:227:1:
  129. X_PC_2_SYMLINKS = 13 // unistd.h:214:1:
  130. X_PC_ACL_EXTENDED = 14 // unistd.h:215:1:
  131. X_PC_CHOWN_RESTRICTED = 7 // unistd.h:208:1:
  132. X_PC_FILESIZEBITS = 11 // unistd.h:212:1:
  133. X_PC_LINK_MAX = 1 // unistd.h:202:1:
  134. X_PC_MAX_CANON = 2 // unistd.h:203:1:
  135. X_PC_MAX_INPUT = 3 // unistd.h:204:1:
  136. X_PC_MIN_HOLE_SIZE = 15 // unistd.h:218:1:
  137. X_PC_NAME_MAX = 4 // unistd.h:205:1:
  138. X_PC_NO_TRUNC = 8 // unistd.h:209:1:
  139. X_PC_PATH_MAX = 5 // unistd.h:206:1:
  140. X_PC_PIPE_BUF = 6 // unistd.h:207:1:
  141. X_PC_SYMLINK_MAX = 12 // unistd.h:213:1:
  142. X_PC_SYNC_IO = 10 // unistd.h:211:1:
  143. X_PC_VDISABLE = 9 // unistd.h:210:1:
  144. X_PDP_ENDIAN = 3412 // endian.h:45:1:
  145. X_POSIX2_C_BIND = 200112 // unistd.h:166:1:
  146. X_POSIX2_VERSION = 200112 // unistd.h:63:1:
  147. X_POSIX_ASYNCHRONOUS_IO = 200112 // unistd.h:89:1:
  148. X_POSIX_BARRIERS = 200112 // unistd.h:91:1:
  149. X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:93:1:
  150. X_POSIX_CLOCK_SELECTION = -1 // unistd.h:95:1:
  151. X_POSIX_CPUTIME = 200112 // unistd.h:97:1:
  152. X_POSIX_FSYNC = 1 // unistd.h:101:1:
  153. X_POSIX_IPV6 = 0 // unistd.h:103:1:
  154. X_POSIX_JOB_CONTROL = 1 // unistd.h:105:1:
  155. X_POSIX_MAPPED_FILES = 1 // unistd.h:107:1:
  156. X_POSIX_MEMLOCK = 1 // unistd.h:109:1:
  157. X_POSIX_MEMLOCK_RANGE = 1 // unistd.h:111:1:
  158. X_POSIX_MEMORY_PROTECTION = 1 // unistd.h:113:1:
  159. X_POSIX_MESSAGE_PASSING = 200112 // unistd.h:115:1:
  160. X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:117:1:
  161. X_POSIX_NO_TRUNC = 1 // unistd.h:119:1:
  162. X_POSIX_PRIORITIZED_IO = -1 // unistd.h:121:1:
  163. X_POSIX_PRIORITY_SCHEDULING = 200112 // unistd.h:123:1:
  164. X_POSIX_RAW_SOCKETS = 200112 // unistd.h:125:1:
  165. X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:127:1:
  166. X_POSIX_REGEXP = 1 // unistd.h:131:1:
  167. X_POSIX_SEMAPHORES = 0 // unistd.h:133:1:
  168. X_POSIX_SHARED_MEMORY_OBJECTS = 0 // unistd.h:135:1:
  169. X_POSIX_SHELL = 1 // unistd.h:137:1:
  170. X_POSIX_SPAWN = 200809 // unistd.h:68:1:
  171. X_POSIX_SPIN_LOCKS = 200112 // unistd.h:139:1:
  172. X_POSIX_SYNCHRONIZED_IO = 1 // unistd.h:143:1:
  173. X_POSIX_THREADS = 200112 // unistd.h:145:1:
  174. X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:149:1:
  175. X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:147:1:
  176. X_POSIX_THREAD_CPUTIME = 200112 // unistd.h:151:1:
  177. X_POSIX_THREAD_PRIO_PROTECT = 200112 // unistd.h:153:1:
  178. X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 // unistd.h:155:1:
  179. X_POSIX_TIMERS = 200112 // unistd.h:159:1:
  180. X_POSIX_VERSION = 200112 // unistd.h:62:1:
  181. X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
  182. X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
  183. X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
  184. X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
  185. X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
  186. X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
  187. X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
  188. X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
  189. X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
  190. X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
  191. X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
  192. X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
  193. X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
  194. X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
  195. X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
  196. X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
  197. X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
  198. X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
  199. X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
  200. X_QUAD_HIGHWORD = 1 // endian.h:84:1:
  201. X_QUAD_LOWWORD = 0 // endian.h:85:1:
  202. X_SC_2_CHAR_TERM = 20 // unistd.h:244:1:
  203. X_SC_2_C_BIND = 18 // unistd.h:242:1:
  204. X_SC_2_C_DEV = 19 // unistd.h:243:1:
  205. X_SC_2_FORT_DEV = 21 // unistd.h:245:1:
  206. X_SC_2_FORT_RUN = 22 // unistd.h:246:1:
  207. X_SC_2_LOCALEDEF = 23 // unistd.h:247:1:
  208. X_SC_2_PBS = 80 // unistd.h:305:1:
  209. X_SC_2_PBS_ACCOUNTING = 81 // unistd.h:306:1:
  210. X_SC_2_PBS_CHECKPOINT = 82 // unistd.h:307:1:
  211. X_SC_2_PBS_LOCATE = 83 // unistd.h:308:1:
  212. X_SC_2_PBS_MESSAGE = 84 // unistd.h:309:1:
  213. X_SC_2_PBS_TRACK = 85 // unistd.h:310:1:
  214. X_SC_2_SW_DEV = 24 // unistd.h:248:1:
  215. X_SC_2_UPE = 25 // unistd.h:249:1:
  216. X_SC_2_VERSION = 17 // unistd.h:241:1:
  217. X_SC_AIO_LISTIO_MAX = 51 // unistd.h:276:1:
  218. X_SC_AIO_MAX = 52 // unistd.h:277:1:
  219. X_SC_ARG_MAX = 1 // unistd.h:225:1:
  220. X_SC_ASYNCHRONOUS_IO = 50 // unistd.h:275:1:
  221. X_SC_ATEXIT_MAX = 40 // unistd.h:265:1:
  222. X_SC_BARRIERS = 43 // unistd.h:268:1:
  223. X_SC_BC_BASE_MAX = 9 // unistd.h:233:1:
  224. X_SC_BC_DIM_MAX = 10 // unistd.h:234:1:
  225. X_SC_BC_SCALE_MAX = 11 // unistd.h:235:1:
  226. X_SC_BC_STRING_MAX = 12 // unistd.h:236:1:
  227. X_SC_CHILD_MAX = 2 // unistd.h:226:1:
  228. X_SC_CLK_TCK = 39 // unistd.h:264:1:
  229. X_SC_CLOCK_SELECTION = 49 // unistd.h:274:1:
  230. X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:237:1:
  231. X_SC_CPUTIME = 90 // unistd.h:318:1:
  232. X_SC_DELAYTIMER_MAX = 92 // unistd.h:320:1:
  233. X_SC_EXPR_NEST_MAX = 14 // unistd.h:238:1:
  234. X_SC_FSYNC = 29 // unistd.h:254:1:
  235. X_SC_GETGR_R_SIZE_MAX = 47 // unistd.h:272:1:
  236. X_SC_GETPW_R_SIZE_MAX = 48 // unistd.h:273:1:
  237. X_SC_HOST_NAME_MAX = 69 // unistd.h:294:1:
  238. X_SC_IOV_MAX = 32 // unistd.h:257:1:
  239. X_SC_JOB_CONTROL = 6 // unistd.h:230:1:
  240. X_SC_LINE_MAX = 15 // unistd.h:239:1:
  241. X_SC_LOGIN_NAME_MAX = 37 // unistd.h:262:1:
  242. X_SC_MAPPED_FILES = 33 // unistd.h:258:1:
  243. X_SC_MEMLOCK = 34 // unistd.h:259:1:
  244. X_SC_MEMLOCK_RANGE = 35 // unistd.h:260:1:
  245. X_SC_MEMORY_PROTECTION = 36 // unistd.h:261:1:
  246. X_SC_MESSAGE_PASSING = 53 // unistd.h:278:1:
  247. X_SC_MONOTONIC_CLOCK = 38 // unistd.h:263:1:
  248. X_SC_MQ_OPEN_MAX = 54 // unistd.h:279:1:
  249. X_SC_MQ_PRIO_MAX = 55 // unistd.h:280:1:
  250. X_SC_NGROUPS_MAX = 4 // unistd.h:228:1:
  251. X_SC_NPROCESSORS_CONF = 1001 // unistd.h:329:1:
  252. X_SC_NPROCESSORS_ONLN = 1002 // unistd.h:330:1:
  253. X_SC_OPEN_MAX = 5 // unistd.h:229:1:
  254. X_SC_PAGESIZE = 28 // unistd.h:252:1:
  255. X_SC_PAGE_SIZE = 28 // unistd.h:253:1:
  256. X_SC_PASS_MAX = 70 // unistd.h:295:1:
  257. X_SC_PHYS_PAGES = 121 // unistd.h:325:1:
  258. X_SC_PRIORITY_SCHEDULING = 56 // unistd.h:281:1:
  259. X_SC_READER_WRITER_LOCKS = 46 // unistd.h:271:1:
  260. X_SC_REALTIME_SIGNALS = 94 // unistd.h:322:1:
  261. X_SC_REGEXP = 71 // unistd.h:296:1:
  262. X_SC_RE_DUP_MAX = 16 // unistd.h:240:1:
  263. X_SC_SAVED_IDS = 7 // unistd.h:231:1:
  264. X_SC_SCHED_PRI_MAX = 2003 // unistd.h:334:1:
  265. X_SC_SCHED_PRI_MIN = 2002 // unistd.h:333:1:
  266. X_SC_SCHED_RT_TS = 2001 // unistd.h:332:1:
  267. X_SC_SEMAPHORES = 42 // unistd.h:267:1:
  268. X_SC_SEM_NSEMS_MAX = 89 // unistd.h:317:1:
  269. X_SC_SHARED_MEMORY_OBJECTS = 87 // unistd.h:314:1:
  270. X_SC_SHELL = 72 // unistd.h:297:1:
  271. X_SC_SIGQUEUE_MAX = 93 // unistd.h:321:1:
  272. X_SC_SPAWN = 86 // unistd.h:313:1:
  273. X_SC_SPIN_LOCKS = 45 // unistd.h:270:1:
  274. X_SC_STREAM_MAX = 26 // unistd.h:250:1:
  275. X_SC_SYMLOOP_MAX = 73 // unistd.h:298:1:
  276. X_SC_SYNCHRONIZED_IO = 31 // unistd.h:256:1:
  277. X_SC_THREADS = 41 // unistd.h:266:1:
  278. X_SC_THREAD_ATTR_STACKADDR = 61 // unistd.h:286:1:
  279. X_SC_THREAD_ATTR_STACKSIZE = 62 // unistd.h:287:1:
  280. X_SC_THREAD_CPUTIME = 91 // unistd.h:319:1:
  281. X_SC_THREAD_DESTRUCTOR_ITERATIONS = 57 // unistd.h:282:1:
  282. X_SC_THREAD_KEYS_MAX = 58 // unistd.h:283:1:
  283. X_SC_THREAD_PRIORITY_SCHEDULING = 63 // unistd.h:288:1:
  284. X_SC_THREAD_PRIO_INHERIT = 64 // unistd.h:289:1:
  285. X_SC_THREAD_PRIO_PROTECT = 65 // unistd.h:290:1:
  286. X_SC_THREAD_PROCESS_SHARED = 66 // unistd.h:291:1:
  287. X_SC_THREAD_SAFE_FUNCTIONS = 67 // unistd.h:292:1:
  288. X_SC_THREAD_STACK_MIN = 59 // unistd.h:284:1:
  289. X_SC_THREAD_THREADS_MAX = 60 // unistd.h:285:1:
  290. X_SC_TIMERS = 44 // unistd.h:269:1:
  291. X_SC_TIMER_MAX = 88 // unistd.h:316:1:
  292. X_SC_TTY_NAME_MAX = 68 // unistd.h:293:1:
  293. X_SC_TZNAME_MAX = 27 // unistd.h:251:1:
  294. X_SC_V6_ILP32_OFF32 = 74 // unistd.h:301:1:
  295. X_SC_V6_ILP32_OFFBIG = 75 // unistd.h:302:1:
  296. X_SC_V6_LP64_OFF64 = 76 // unistd.h:303:1:
  297. X_SC_V6_LPBIG_OFFBIG = 77 // unistd.h:304:1:
  298. X_SC_VERSION = 8 // unistd.h:232:1:
  299. X_SC_XOPEN_SHM = 30 // unistd.h:255:1:
  300. X_SIZE_T = 0 // types.h:279:1:
  301. X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
  302. X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
  303. X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
  304. X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
  305. X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
  306. X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
  307. X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
  308. X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
  309. X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
  310. X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
  311. X_SYS_NULL_H_ = 0 // null.h:9:1:
  312. X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
  313. X_SYS_TYPES_H_ = 0 // types.h:40:1:
  314. X_SYS_UNISTD_H_ = 0 // unistd.h:35:1:
  315. X_UNISTD_H_ = 0 // unistd.h:64:1:
  316. X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
  317. X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
  318. X_X86_64_TYPES_H_ = 0 // types.h:35:1:
  319. X_XOPEN_SHM = 0 // unistd.h:169:1:
  320. )
  321. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  322. type Size_t = uint64 /* <builtin>:9:23 */
  323. type Wchar_t = int32 /* <builtin>:15:24 */
  324. type X__int128_t = struct {
  325. Flo int64
  326. Fhi int64
  327. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  328. type X__uint128_t = struct {
  329. Flo uint64
  330. Fhi uint64
  331. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  332. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  333. type X__float128 = float64 /* <builtin>:47:21 */
  334. // return true if value 'a' fits in type 't'
  335. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  336. // -
  337. // Copyright (c) 1990 The Regents of the University of California.
  338. // All rights reserved.
  339. //
  340. // Redistribution and use in source and binary forms, with or without
  341. // modification, are permitted provided that the following conditions
  342. // are met:
  343. // 1. Redistributions of source code must retain the above copyright
  344. // notice, this list of conditions and the following disclaimer.
  345. // 2. Redistributions in binary form must reproduce the above copyright
  346. // notice, this list of conditions and the following disclaimer in the
  347. // documentation and/or other materials provided with the distribution.
  348. // 3. Neither the name of the University nor the names of its contributors
  349. // may be used to endorse or promote products derived from this software
  350. // without specific prior written permission.
  351. //
  352. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  353. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  354. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  355. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  356. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  357. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  358. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  359. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  360. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  361. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  362. // SUCH DAMAGE.
  363. //
  364. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  365. // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  366. // -
  367. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  368. // All rights reserved.
  369. //
  370. // This code is derived from software contributed to The NetBSD Foundation
  371. // by Joerg Sonnenberger.
  372. //
  373. // Redistribution and use in source and binary forms, with or without
  374. // modification, are permitted provided that the following conditions
  375. // are met:
  376. // 1. Redistributions of source code must retain the above copyright
  377. // notice, this list of conditions and the following disclaimer.
  378. // 2. Redistributions in binary form must reproduce the above copyright
  379. // notice, this list of conditions and the following disclaimer in the
  380. // documentation and/or other materials provided with the distribution.
  381. //
  382. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  383. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  384. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  385. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  386. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  387. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  388. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  389. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  390. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  391. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  392. // POSSIBILITY OF SUCH DAMAGE.
  393. // 7.18.1 Integer types
  394. // 7.18.1.1 Exact-width integer types
  395. type X__int8_t = int8 /* common_int_types.h:45:27 */
  396. type X__uint8_t = uint8 /* common_int_types.h:46:27 */
  397. type X__int16_t = int16 /* common_int_types.h:47:27 */
  398. type X__uint16_t = uint16 /* common_int_types.h:48:27 */
  399. type X__int32_t = int32 /* common_int_types.h:49:27 */
  400. type X__uint32_t = uint32 /* common_int_types.h:50:27 */
  401. type X__int64_t = int64 /* common_int_types.h:51:27 */
  402. type X__uint64_t = uint64 /* common_int_types.h:52:27 */
  403. // 7.18.1.4 Integer types capable of holding object pointers
  404. type X__intptr_t = int64 /* common_int_types.h:58:27 */
  405. type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
  406. // Types which are fundamental to the implementation and may appear in
  407. // more than one standard header are defined here. Standard headers
  408. // then use:
  409. // #ifdef _BSD_SIZE_T_
  410. // typedef _BSD_SIZE_T_ size_t;
  411. // #undef _BSD_SIZE_T_
  412. // #endif
  413. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  414. // -
  415. // Copyright (c) 1990 The Regents of the University of California.
  416. // All rights reserved.
  417. //
  418. // Redistribution and use in source and binary forms, with or without
  419. // modification, are permitted provided that the following conditions
  420. // are met:
  421. // 1. Redistributions of source code must retain the above copyright
  422. // notice, this list of conditions and the following disclaimer.
  423. // 2. Redistributions in binary form must reproduce the above copyright
  424. // notice, this list of conditions and the following disclaimer in the
  425. // documentation and/or other materials provided with the distribution.
  426. // 3. Neither the name of the University nor the names of its contributors
  427. // may be used to endorse or promote products derived from this software
  428. // without specific prior written permission.
  429. //
  430. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  431. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  432. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  433. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  434. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  435. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  436. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  437. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  438. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  439. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  440. // SUCH DAMAGE.
  441. //
  442. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  443. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  444. // * Copyright (c) 1991, 1993
  445. // The Regents of the University of California. All rights reserved.
  446. //
  447. // This code is derived from software contributed to Berkeley by
  448. // Berkeley Software Design, Inc.
  449. //
  450. // Redistribution and use in source and binary forms, with or without
  451. // modification, are permitted provided that the following conditions
  452. // are met:
  453. // 1. Redistributions of source code must retain the above copyright
  454. // notice, this list of conditions and the following disclaimer.
  455. // 2. Redistributions in binary form must reproduce the above copyright
  456. // notice, this list of conditions and the following disclaimer in the
  457. // documentation and/or other materials provided with the distribution.
  458. // 3. Neither the name of the University nor the names of its contributors
  459. // may be used to endorse or promote products derived from this software
  460. // without specific prior written permission.
  461. //
  462. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  463. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  464. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  465. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  466. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  467. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  468. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  469. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  470. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  471. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  472. // SUCH DAMAGE.
  473. //
  474. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  475. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  476. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  477. // Public domain.
  478. //
  479. // NOTE: Do not protect this header against multiple inclusion. Doing
  480. // so can have subtle side-effects due to header file inclusion order
  481. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  482. // protect each CPP macro that we want to supply.
  483. // Feature-test macros are defined by several standards, and allow an
  484. // application to specify what symbols they want the system headers to
  485. // expose, and hence what standard they want them to conform to.
  486. // There are two classes of feature-test macros. The first class
  487. // specify complete standards, and if one of these is defined, header
  488. // files will try to conform to the relevant standard. They are:
  489. //
  490. // ANSI macros:
  491. // _ANSI_SOURCE ANSI C89
  492. //
  493. // POSIX macros:
  494. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  495. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  496. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  497. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  498. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  499. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  500. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  501. //
  502. // X/Open macros:
  503. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  504. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  505. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  506. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  507. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  508. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  509. //
  510. // NetBSD macros:
  511. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  512. //
  513. // If more than one of these "major" feature-test macros is defined,
  514. // then the set of facilities provided (and namespace used) is the
  515. // union of that specified by the relevant standards, and in case of
  516. // conflict, the earlier standard in the above list has precedence (so
  517. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  518. // of rename() that's used is the POSIX one). If none of the "major"
  519. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  520. //
  521. // There are also "minor" feature-test macros, which enable extra
  522. // functionality in addition to some base standard. They should be
  523. // defined along with one of the "major" macros. The "minor" macros
  524. // are:
  525. //
  526. // _REENTRANT
  527. // _ISOC99_SOURCE
  528. // _ISOC11_SOURCE
  529. // _LARGEFILE_SOURCE Large File Support
  530. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  531. // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
  532. // -
  533. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  534. // The Regents of the University of California. All rights reserved.
  535. // (c) UNIX System Laboratories, Inc.
  536. // All or some portions of this file are derived from material licensed
  537. // to the University of California by American Telephone and Telegraph
  538. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  539. // the permission of UNIX System Laboratories, Inc.
  540. //
  541. // Redistribution and use in source and binary forms, with or without
  542. // modification, are permitted provided that the following conditions
  543. // are met:
  544. // 1. Redistributions of source code must retain the above copyright
  545. // notice, this list of conditions and the following disclaimer.
  546. // 2. Redistributions in binary form must reproduce the above copyright
  547. // notice, this list of conditions and the following disclaimer in the
  548. // documentation and/or other materials provided with the distribution.
  549. // 3. Neither the name of the University nor the names of its contributors
  550. // may be used to endorse or promote products derived from this software
  551. // without specific prior written permission.
  552. //
  553. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  554. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  555. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  556. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  557. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  558. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  559. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  560. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  561. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  562. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  563. // SUCH DAMAGE.
  564. //
  565. // @(#)types.h 8.4 (Berkeley) 1/21/94
  566. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  567. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  568. // Public domain.
  569. //
  570. // NOTE: Do not protect this header against multiple inclusion. Doing
  571. // so can have subtle side-effects due to header file inclusion order
  572. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  573. // protect each CPP macro that we want to supply.
  574. // Feature-test macros are defined by several standards, and allow an
  575. // application to specify what symbols they want the system headers to
  576. // expose, and hence what standard they want them to conform to.
  577. // There are two classes of feature-test macros. The first class
  578. // specify complete standards, and if one of these is defined, header
  579. // files will try to conform to the relevant standard. They are:
  580. //
  581. // ANSI macros:
  582. // _ANSI_SOURCE ANSI C89
  583. //
  584. // POSIX macros:
  585. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  586. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  587. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  588. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  589. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  590. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  591. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  592. //
  593. // X/Open macros:
  594. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  595. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  596. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  597. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  598. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  599. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  600. //
  601. // NetBSD macros:
  602. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  603. //
  604. // If more than one of these "major" feature-test macros is defined,
  605. // then the set of facilities provided (and namespace used) is the
  606. // union of that specified by the relevant standards, and in case of
  607. // conflict, the earlier standard in the above list has precedence (so
  608. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  609. // of rename() that's used is the POSIX one). If none of the "major"
  610. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  611. //
  612. // There are also "minor" feature-test macros, which enable extra
  613. // functionality in addition to some base standard. They should be
  614. // defined along with one of the "major" macros. The "minor" macros
  615. // are:
  616. //
  617. // _REENTRANT
  618. // _ISOC99_SOURCE
  619. // _ISOC11_SOURCE
  620. // _LARGEFILE_SOURCE Large File Support
  621. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  622. // Machine type dependent parameters.
  623. // $NetBSD: types.h,v 1.60 2019/04/06 03:06:24 thorpej Exp $
  624. // -
  625. // Copyright (c) 1990 The Regents of the University of California.
  626. // All rights reserved.
  627. //
  628. // Redistribution and use in source and binary forms, with or without
  629. // modification, are permitted provided that the following conditions
  630. // are met:
  631. // 1. Redistributions of source code must retain the above copyright
  632. // notice, this list of conditions and the following disclaimer.
  633. // 2. Redistributions in binary form must reproduce the above copyright
  634. // notice, this list of conditions and the following disclaimer in the
  635. // documentation and/or other materials provided with the distribution.
  636. // 3. Neither the name of the University nor the names of its contributors
  637. // may be used to endorse or promote products derived from this software
  638. // without specific prior written permission.
  639. //
  640. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  641. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  642. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  643. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  644. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  645. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  646. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  647. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  648. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  649. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  650. // SUCH DAMAGE.
  651. //
  652. // @(#)types.h 7.5 (Berkeley) 3/9/91
  653. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  654. // * Copyright (c) 1991, 1993
  655. // The Regents of the University of California. All rights reserved.
  656. //
  657. // This code is derived from software contributed to Berkeley by
  658. // Berkeley Software Design, Inc.
  659. //
  660. // Redistribution and use in source and binary forms, with or without
  661. // modification, are permitted provided that the following conditions
  662. // are met:
  663. // 1. Redistributions of source code must retain the above copyright
  664. // notice, this list of conditions and the following disclaimer.
  665. // 2. Redistributions in binary form must reproduce the above copyright
  666. // notice, this list of conditions and the following disclaimer in the
  667. // documentation and/or other materials provided with the distribution.
  668. // 3. Neither the name of the University nor the names of its contributors
  669. // may be used to endorse or promote products derived from this software
  670. // without specific prior written permission.
  671. //
  672. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  673. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  674. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  675. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  676. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  677. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  678. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  679. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  680. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  681. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  682. // SUCH DAMAGE.
  683. //
  684. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  685. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  686. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  687. // Public domain.
  688. //
  689. // NOTE: Do not protect this header against multiple inclusion. Doing
  690. // so can have subtle side-effects due to header file inclusion order
  691. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  692. // protect each CPP macro that we want to supply.
  693. // Feature-test macros are defined by several standards, and allow an
  694. // application to specify what symbols they want the system headers to
  695. // expose, and hence what standard they want them to conform to.
  696. // There are two classes of feature-test macros. The first class
  697. // specify complete standards, and if one of these is defined, header
  698. // files will try to conform to the relevant standard. They are:
  699. //
  700. // ANSI macros:
  701. // _ANSI_SOURCE ANSI C89
  702. //
  703. // POSIX macros:
  704. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  705. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  706. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  707. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  708. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  709. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  710. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  711. //
  712. // X/Open macros:
  713. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  714. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  715. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  716. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  717. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  718. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  719. //
  720. // NetBSD macros:
  721. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  722. //
  723. // If more than one of these "major" feature-test macros is defined,
  724. // then the set of facilities provided (and namespace used) is the
  725. // union of that specified by the relevant standards, and in case of
  726. // conflict, the earlier standard in the above list has precedence (so
  727. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  728. // of rename() that's used is the POSIX one). If none of the "major"
  729. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  730. //
  731. // There are also "minor" feature-test macros, which enable extra
  732. // functionality in addition to some base standard. They should be
  733. // defined along with one of the "major" macros. The "minor" macros
  734. // are:
  735. //
  736. // _REENTRANT
  737. // _ISOC99_SOURCE
  738. // _ISOC11_SOURCE
  739. // _LARGEFILE_SOURCE Large File Support
  740. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  741. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  742. // -
  743. // Copyright (c) 1990 The Regents of the University of California.
  744. // All rights reserved.
  745. //
  746. // Redistribution and use in source and binary forms, with or without
  747. // modification, are permitted provided that the following conditions
  748. // are met:
  749. // 1. Redistributions of source code must retain the above copyright
  750. // notice, this list of conditions and the following disclaimer.
  751. // 2. Redistributions in binary form must reproduce the above copyright
  752. // notice, this list of conditions and the following disclaimer in the
  753. // documentation and/or other materials provided with the distribution.
  754. // 3. Neither the name of the University nor the names of its contributors
  755. // may be used to endorse or promote products derived from this software
  756. // without specific prior written permission.
  757. //
  758. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  759. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  760. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  761. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  762. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  763. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  764. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  765. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  766. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  767. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  768. // SUCH DAMAGE.
  769. //
  770. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  771. type X__register_t = int64 /* types.h:68:19 */
  772. type X__cpu_simple_lock_nv_t = uint8 /* types.h:69:24 */
  773. // __cpu_simple_lock_t used to be a full word.
  774. // The amd64 does not have strict alignment requirements.
  775. // $NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
  776. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  777. // -
  778. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  779. // All rights reserved.
  780. //
  781. // This code is derived from software contributed to The NetBSD Foundation
  782. // by Matt Thomas of 3am Software Foundry.
  783. //
  784. // Redistribution and use in source and binary forms, with or without
  785. // modification, are permitted provided that the following conditions
  786. // are met:
  787. // 1. Redistributions of source code must retain the above copyright
  788. // notice, this list of conditions and the following disclaimer.
  789. // 2. Redistributions in binary form must reproduce the above copyright
  790. // notice, this list of conditions and the following disclaimer in the
  791. // documentation and/or other materials provided with the distribution.
  792. //
  793. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  794. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  795. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  796. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  797. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  798. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  799. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  800. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  801. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  802. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  803. // POSSIBILITY OF SUCH DAMAGE.
  804. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  805. // -
  806. // Copyright (c) 1990 The Regents of the University of California.
  807. // All rights reserved.
  808. //
  809. // Redistribution and use in source and binary forms, with or without
  810. // modification, are permitted provided that the following conditions
  811. // are met:
  812. // 1. Redistributions of source code must retain the above copyright
  813. // notice, this list of conditions and the following disclaimer.
  814. // 2. Redistributions in binary form must reproduce the above copyright
  815. // notice, this list of conditions and the following disclaimer in the
  816. // documentation and/or other materials provided with the distribution.
  817. // 3. Neither the name of the University nor the names of its contributors
  818. // may be used to endorse or promote products derived from this software
  819. // without specific prior written permission.
  820. //
  821. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  822. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  823. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  824. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  825. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  826. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  827. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  828. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  829. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  830. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  831. // SUCH DAMAGE.
  832. //
  833. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  834. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  835. // -
  836. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  837. // All rights reserved.
  838. //
  839. // This code is derived from software contributed to The NetBSD Foundation
  840. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  841. //
  842. // Redistribution and use in source and binary forms, with or without
  843. // modification, are permitted provided that the following conditions
  844. // are met:
  845. // 1. Redistributions of source code must retain the above copyright
  846. // notice, this list of conditions and the following disclaimer.
  847. // 2. Redistributions in binary form must reproduce the above copyright
  848. // notice, this list of conditions and the following disclaimer in the
  849. // documentation and/or other materials provided with the distribution.
  850. //
  851. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  852. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  853. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  854. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  855. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  856. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  857. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  858. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  859. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  860. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  861. // POSSIBILITY OF SUCH DAMAGE.
  862. // $NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
  863. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  864. // -
  865. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  866. // All rights reserved.
  867. //
  868. // This code is derived from software contributed to The NetBSD Foundation
  869. // by Matt Thomas of 3am Software Foundry.
  870. //
  871. // Redistribution and use in source and binary forms, with or without
  872. // modification, are permitted provided that the following conditions
  873. // are met:
  874. // 1. Redistributions of source code must retain the above copyright
  875. // notice, this list of conditions and the following disclaimer.
  876. // 2. Redistributions in binary form must reproduce the above copyright
  877. // notice, this list of conditions and the following disclaimer in the
  878. // documentation and/or other materials provided with the distribution.
  879. //
  880. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  881. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  882. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  883. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  884. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  885. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  886. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  887. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  888. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  889. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  890. // POSSIBILITY OF SUCH DAMAGE.
  891. type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address
  892. type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id
  893. type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address
  894. type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number
  895. type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions
  896. type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset
  897. type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id
  898. type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
  899. type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length
  900. type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id
  901. type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
  902. type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
  903. type X__wctrans_t = uintptr /* ansi.h:51:32 */
  904. type X__wctype_t = uintptr /* ansi.h:54:31 */
  905. // mbstate_t is an opaque object to keep conversion state, during multibyte
  906. // stream conversions. The content must not be referenced by user programs.
  907. type X__mbstate_t = struct {
  908. F__mbstateL X__int64_t
  909. F__ccgo_pad1 [120]byte
  910. } /* ansi.h:63:3 */
  911. type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
  912. type Int8_t = X__int8_t /* types.h:54:18 */
  913. type Uint8_t = X__uint8_t /* types.h:59:19 */
  914. type Int16_t = X__int16_t /* types.h:64:19 */
  915. type Uint16_t = X__uint16_t /* types.h:69:20 */
  916. type Int32_t = X__int32_t /* types.h:74:19 */
  917. type Uint32_t = X__uint32_t /* types.h:79:20 */
  918. type Int64_t = X__int64_t /* types.h:84:19 */
  919. type Uint64_t = X__uint64_t /* types.h:89:20 */
  920. type U_int8_t = Uint8_t /* types.h:93:18 */
  921. type U_int16_t = Uint16_t /* types.h:94:18 */
  922. type U_int32_t = Uint32_t /* types.h:95:18 */
  923. type U_int64_t = Uint64_t /* types.h:96:18 */
  924. // $NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
  925. // $NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $
  926. // Copyright (c) 1987, 1991, 1993
  927. // The Regents of the University of California. All rights reserved.
  928. //
  929. // Redistribution and use in source and binary forms, with or without
  930. // modification, are permitted provided that the following conditions
  931. // are met:
  932. // 1. Redistributions of source code must retain the above copyright
  933. // notice, this list of conditions and the following disclaimer.
  934. // 2. Redistributions in binary form must reproduce the above copyright
  935. // notice, this list of conditions and the following disclaimer in the
  936. // documentation and/or other materials provided with the distribution.
  937. // 3. Neither the name of the University nor the names of its contributors
  938. // may be used to endorse or promote products derived from this software
  939. // without specific prior written permission.
  940. //
  941. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  942. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  943. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  944. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  945. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  946. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  947. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  948. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  949. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  950. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  951. // SUCH DAMAGE.
  952. //
  953. // @(#)endian.h 8.1 (Berkeley) 6/11/93
  954. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  955. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  956. // Public domain.
  957. //
  958. // NOTE: Do not protect this header against multiple inclusion. Doing
  959. // so can have subtle side-effects due to header file inclusion order
  960. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  961. // protect each CPP macro that we want to supply.
  962. // Feature-test macros are defined by several standards, and allow an
  963. // application to specify what symbols they want the system headers to
  964. // expose, and hence what standard they want them to conform to.
  965. // There are two classes of feature-test macros. The first class
  966. // specify complete standards, and if one of these is defined, header
  967. // files will try to conform to the relevant standard. They are:
  968. //
  969. // ANSI macros:
  970. // _ANSI_SOURCE ANSI C89
  971. //
  972. // POSIX macros:
  973. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  974. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  975. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  976. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  977. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  978. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  979. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  980. //
  981. // X/Open macros:
  982. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  983. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  984. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  985. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  986. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  987. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  988. //
  989. // NetBSD macros:
  990. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  991. //
  992. // If more than one of these "major" feature-test macros is defined,
  993. // then the set of facilities provided (and namespace used) is the
  994. // union of that specified by the relevant standards, and in case of
  995. // conflict, the earlier standard in the above list has precedence (so
  996. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  997. // of rename() that's used is the POSIX one). If none of the "major"
  998. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  999. //
  1000. // There are also "minor" feature-test macros, which enable extra
  1001. // functionality in addition to some base standard. They should be
  1002. // defined along with one of the "major" macros. The "minor" macros
  1003. // are:
  1004. //
  1005. // _REENTRANT
  1006. // _ISOC99_SOURCE
  1007. // _ISOC11_SOURCE
  1008. // _LARGEFILE_SOURCE Large File Support
  1009. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1010. // Definitions for byte order, according to byte significance from low
  1011. // address to high.
  1012. // C-family endian-ness definitions
  1013. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  1014. // -
  1015. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  1016. // All rights reserved.
  1017. //
  1018. // This code is derived from software contributed to The NetBSD Foundation
  1019. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  1020. //
  1021. // Redistribution and use in source and binary forms, with or without
  1022. // modification, are permitted provided that the following conditions
  1023. // are met:
  1024. // 1. Redistributions of source code must retain the above copyright
  1025. // notice, this list of conditions and the following disclaimer.
  1026. // 2. Redistributions in binary form must reproduce the above copyright
  1027. // notice, this list of conditions and the following disclaimer in the
  1028. // documentation and/or other materials provided with the distribution.
  1029. //
  1030. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1031. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1032. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1033. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1034. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1035. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1036. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1037. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1038. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1039. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1040. // POSSIBILITY OF SUCH DAMAGE.
  1041. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1042. // * Copyright (c) 1991, 1993
  1043. // The Regents of the University of California. All rights reserved.
  1044. //
  1045. // This code is derived from software contributed to Berkeley by
  1046. // Berkeley Software Design, Inc.
  1047. //
  1048. // Redistribution and use in source and binary forms, with or without
  1049. // modification, are permitted provided that the following conditions
  1050. // are met:
  1051. // 1. Redistributions of source code must retain the above copyright
  1052. // notice, this list of conditions and the following disclaimer.
  1053. // 2. Redistributions in binary form must reproduce the above copyright
  1054. // notice, this list of conditions and the following disclaimer in the
  1055. // documentation and/or other materials provided with the distribution.
  1056. // 3. Neither the name of the University nor the names of its contributors
  1057. // may be used to endorse or promote products derived from this software
  1058. // without specific prior written permission.
  1059. //
  1060. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1061. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1062. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1063. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1064. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1065. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1066. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1067. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1068. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1069. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1070. // SUCH DAMAGE.
  1071. //
  1072. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1073. // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
  1074. // -
  1075. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  1076. // The Regents of the University of California. All rights reserved.
  1077. // (c) UNIX System Laboratories, Inc.
  1078. // All or some portions of this file are derived from material licensed
  1079. // to the University of California by American Telephone and Telegraph
  1080. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1081. // the permission of UNIX System Laboratories, Inc.
  1082. //
  1083. // Redistribution and use in source and binary forms, with or without
  1084. // modification, are permitted provided that the following conditions
  1085. // are met:
  1086. // 1. Redistributions of source code must retain the above copyright
  1087. // notice, this list of conditions and the following disclaimer.
  1088. // 2. Redistributions in binary form must reproduce the above copyright
  1089. // notice, this list of conditions and the following disclaimer in the
  1090. // documentation and/or other materials provided with the distribution.
  1091. // 3. Neither the name of the University nor the names of its contributors
  1092. // may be used to endorse or promote products derived from this software
  1093. // without specific prior written permission.
  1094. //
  1095. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1096. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1097. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1098. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1099. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1100. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1101. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1102. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1103. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1104. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1105. // SUCH DAMAGE.
  1106. //
  1107. // @(#)types.h 8.4 (Berkeley) 1/21/94
  1108. type In_addr_t = X__in_addr_t /* endian.h:58:21 */
  1109. type In_port_t = X__in_port_t /* endian.h:63:21 */
  1110. // $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $
  1111. // Written by Manuel Bouyer. Public domain
  1112. // $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $
  1113. // -
  1114. // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
  1115. // All rights reserved.
  1116. //
  1117. // This code is derived from software contributed to The NetBSD Foundation
  1118. // by Klaus Klein.
  1119. //
  1120. // Redistribution and use in source and binary forms, with or without
  1121. // modification, are permitted provided that the following conditions
  1122. // are met:
  1123. // 1. Redistributions of source code must retain the above copyright
  1124. // notice, this list of conditions and the following disclaimer.
  1125. // 2. Redistributions in binary form must reproduce the above copyright
  1126. // notice, this list of conditions and the following disclaimer in the
  1127. // documentation and/or other materials provided with the distribution.
  1128. //
  1129. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1130. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1131. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1132. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1133. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1134. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1135. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1136. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1137. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1138. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1139. // POSSIBILITY OF SUCH DAMAGE.
  1140. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1141. // * Copyright (c) 1991, 1993
  1142. // The Regents of the University of California. All rights reserved.
  1143. //
  1144. // This code is derived from software contributed to Berkeley by
  1145. // Berkeley Software Design, Inc.
  1146. //
  1147. // Redistribution and use in source and binary forms, with or without
  1148. // modification, are permitted provided that the following conditions
  1149. // are met:
  1150. // 1. Redistributions of source code must retain the above copyright
  1151. // notice, this list of conditions and the following disclaimer.
  1152. // 2. Redistributions in binary form must reproduce the above copyright
  1153. // notice, this list of conditions and the following disclaimer in the
  1154. // documentation and/or other materials provided with the distribution.
  1155. // 3. Neither the name of the University nor the names of its contributors
  1156. // may be used to endorse or promote products derived from this software
  1157. // without specific prior written permission.
  1158. //
  1159. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1160. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1161. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1162. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1163. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1164. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1165. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1166. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1167. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1168. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1169. // SUCH DAMAGE.
  1170. //
  1171. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1172. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1173. // -
  1174. // Copyright (c) 1990 The Regents of the University of California.
  1175. // All rights reserved.
  1176. //
  1177. // Redistribution and use in source and binary forms, with or without
  1178. // modification, are permitted provided that the following conditions
  1179. // are met:
  1180. // 1. Redistributions of source code must retain the above copyright
  1181. // notice, this list of conditions and the following disclaimer.
  1182. // 2. Redistributions in binary form must reproduce the above copyright
  1183. // notice, this list of conditions and the following disclaimer in the
  1184. // documentation and/or other materials provided with the distribution.
  1185. // 3. Neither the name of the University nor the names of its contributors
  1186. // may be used to endorse or promote products derived from this software
  1187. // without specific prior written permission.
  1188. //
  1189. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1190. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1191. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1192. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1193. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1194. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1195. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1196. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1197. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1198. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1199. // SUCH DAMAGE.
  1200. //
  1201. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  1202. type Intptr_t = X__intptr_t /* stdint.h:79:20 */
  1203. type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
  1204. // $NetBSD: int_mwgwtypes.h,v 1.8 2014/07/25 21:43:13 joerg Exp $
  1205. // -
  1206. // Copyright (c) 2001 The NetBSD Foundation, Inc.
  1207. // All rights reserved.
  1208. //
  1209. // This code is derived from software contributed to The NetBSD Foundation
  1210. // by Klaus Klein.
  1211. //
  1212. // Redistribution and use in source and binary forms, with or without
  1213. // modification, are permitted provided that the following conditions
  1214. // are met:
  1215. // 1. Redistributions of source code must retain the above copyright
  1216. // notice, this list of conditions and the following disclaimer.
  1217. // 2. Redistributions in binary form must reproduce the above copyright
  1218. // notice, this list of conditions and the following disclaimer in the
  1219. // documentation and/or other materials provided with the distribution.
  1220. //
  1221. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1222. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1223. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1224. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1225. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1226. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1227. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1228. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1229. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1230. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1231. // POSSIBILITY OF SUCH DAMAGE.
  1232. // $NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  1233. // -
  1234. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1235. // All rights reserved.
  1236. //
  1237. // This code is derived from software contributed to The NetBSD Foundation
  1238. // by Joerg Sonnenberger.
  1239. //
  1240. // Redistribution and use in source and binary forms, with or without
  1241. // modification, are permitted provided that the following conditions
  1242. // are met:
  1243. // 1. Redistributions of source code must retain the above copyright
  1244. // notice, this list of conditions and the following disclaimer.
  1245. // 2. Redistributions in binary form must reproduce the above copyright
  1246. // notice, this list of conditions and the following disclaimer in the
  1247. // documentation and/or other materials provided with the distribution.
  1248. //
  1249. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1250. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1251. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1252. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1253. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1254. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1255. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1256. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1257. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1258. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1259. // POSSIBILITY OF SUCH DAMAGE.
  1260. // 7.18.1 Integer types
  1261. // 7.18.1.2 Minimum-width integer types
  1262. type Int_least8_t = int8 /* common_int_mwgwtypes.h:45:32 */
  1263. type Uint_least8_t = uint8 /* common_int_mwgwtypes.h:46:32 */
  1264. type Int_least16_t = int16 /* common_int_mwgwtypes.h:47:32 */
  1265. type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
  1266. type Int_least32_t = int32 /* common_int_mwgwtypes.h:49:32 */
  1267. type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
  1268. type Int_least64_t = int64 /* common_int_mwgwtypes.h:51:32 */
  1269. type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
  1270. // 7.18.1.3 Fastest minimum-width integer types
  1271. type Int_fast8_t = int32 /* common_int_mwgwtypes.h:55:32 */
  1272. type Uint_fast8_t = uint32 /* common_int_mwgwtypes.h:56:32 */
  1273. type Int_fast16_t = int32 /* common_int_mwgwtypes.h:57:32 */
  1274. type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
  1275. type Int_fast32_t = int32 /* common_int_mwgwtypes.h:59:32 */
  1276. type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
  1277. type Int_fast64_t = int64 /* common_int_mwgwtypes.h:61:32 */
  1278. type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
  1279. // 7.18.1.5 Greatest-width integer types
  1280. type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
  1281. type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
  1282. type U_char = uint8 /* types.h:101:23 */
  1283. type U_short = uint16 /* types.h:102:24 */
  1284. type U_int = uint32 /* types.h:103:22 */
  1285. type U_long = uint64 /* types.h:104:23 */
  1286. type Unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
  1287. type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
  1288. type Uint = uint32 /* types.h:108:22 */ // Sys V compatibility
  1289. type Ulong = uint64 /* types.h:109:23 */ // Sys V compatibility
  1290. type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
  1291. type Quad_t = Int64_t /* types.h:113:18 */
  1292. type Qaddr_t = uintptr /* types.h:114:16 */
  1293. // The types longlong_t and u_longlong_t exist for use with the
  1294. // Sun-derived XDR routines involving these types, and their usage
  1295. // in other contexts is discouraged. Further note that these types
  1296. // may not be equivalent to "long long" and "unsigned long long",
  1297. // they are only guaranteed to be signed and unsigned 64-bit types
  1298. // respectively. Portable programs that need 64-bit types should use
  1299. // the C99 types int64_t and uint64_t instead.
  1300. type Longlong_t = Int64_t /* types.h:126:18 */ // for XDR
  1301. type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
  1302. type Blkcnt_t = Int64_t /* types.h:129:18 */ // fs block count
  1303. type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
  1304. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
  1305. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
  1306. // We don't and shouldn't use caddr_t in the kernel anymore
  1307. type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
  1308. type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
  1309. type Dev_t = Uint64_t /* types.h:157:18 */ // device number
  1310. type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
  1311. type Gid_t = X__gid_t /* types.h:161:18 */ // group id
  1312. type Id_t = Uint32_t /* types.h:165:18 */ // group id, process id or user id
  1313. type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
  1314. type Key_t = int64 /* types.h:167:15 */ // IPC key (for Sys V IPC)
  1315. type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
  1316. type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
  1317. type Off_t = X__off_t /* types.h:177:18 */ // file offset
  1318. type Pid_t = X__pid_t /* types.h:182:18 */ // process id
  1319. type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
  1320. type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
  1321. type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
  1322. type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
  1323. type Uid_t = X__uid_t /* types.h:191:18 */ // user id
  1324. type Mqd_t = int32 /* types.h:195:14 */
  1325. type Cpuid_t = uint64 /* types.h:197:23 */
  1326. type Psetid_t = int32 /* types.h:199:14 */
  1327. type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
  1328. // Major, minor numbers, dev_t's.
  1329. type X__devmajor_t = Int32_t /* types.h:255:17 */
  1330. type X__devminor_t = Int32_t /* types.h:255:31 */
  1331. type Clock_t = uint32 /* types.h:268:24 */
  1332. type Ssize_t = int64 /* types.h:284:24 */
  1333. type Time_t = X__int64_t /* types.h:289:23 */
  1334. type Clockid_t = int32 /* types.h:294:26 */
  1335. type Timer_t = int32 /* types.h:299:24 */
  1336. type Suseconds_t = int32 /* types.h:304:27 */
  1337. type Useconds_t = uint32 /* types.h:309:26 */
  1338. // $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
  1339. // -
  1340. // Copyright (c) 1992, 1993
  1341. // The Regents of the University of California. All rights reserved.
  1342. //
  1343. // Redistribution and use in source and binary forms, with or without
  1344. // modification, are permitted provided that the following conditions
  1345. // are met:
  1346. // 1. Redistributions of source code must retain the above copyright
  1347. // notice, this list of conditions and the following disclaimer.
  1348. // 2. Redistributions in binary form must reproduce the above copyright
  1349. // notice, this list of conditions and the following disclaimer in the
  1350. // documentation and/or other materials provided with the distribution.
  1351. // 3. Neither the name of the University nor the names of its contributors
  1352. // may be used to endorse or promote products derived from this software
  1353. // without specific prior written permission.
  1354. //
  1355. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1356. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1357. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1358. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1359. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1360. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1361. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1362. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1363. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1364. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1365. // SUCH DAMAGE.
  1366. //
  1367. // from: @(#)types.h 8.4 (Berkeley) 1/21/94
  1368. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1369. // * Copyright (c) 1991, 1993
  1370. // The Regents of the University of California. All rights reserved.
  1371. //
  1372. // This code is derived from software contributed to Berkeley by
  1373. // Berkeley Software Design, Inc.
  1374. //
  1375. // Redistribution and use in source and binary forms, with or without
  1376. // modification, are permitted provided that the following conditions
  1377. // are met:
  1378. // 1. Redistributions of source code must retain the above copyright
  1379. // notice, this list of conditions and the following disclaimer.
  1380. // 2. Redistributions in binary form must reproduce the above copyright
  1381. // notice, this list of conditions and the following disclaimer in the
  1382. // documentation and/or other materials provided with the distribution.
  1383. // 3. Neither the name of the University nor the names of its contributors
  1384. // may be used to endorse or promote products derived from this software
  1385. // without specific prior written permission.
  1386. //
  1387. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1388. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1389. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1390. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1391. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1392. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1393. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1394. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1395. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1396. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1397. // SUCH DAMAGE.
  1398. //
  1399. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1400. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1401. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1402. // Public domain.
  1403. //
  1404. // NOTE: Do not protect this header against multiple inclusion. Doing
  1405. // so can have subtle side-effects due to header file inclusion order
  1406. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  1407. // protect each CPP macro that we want to supply.
  1408. // Feature-test macros are defined by several standards, and allow an
  1409. // application to specify what symbols they want the system headers to
  1410. // expose, and hence what standard they want them to conform to.
  1411. // There are two classes of feature-test macros. The first class
  1412. // specify complete standards, and if one of these is defined, header
  1413. // files will try to conform to the relevant standard. They are:
  1414. //
  1415. // ANSI macros:
  1416. // _ANSI_SOURCE ANSI C89
  1417. //
  1418. // POSIX macros:
  1419. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1420. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1421. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1422. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1423. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1424. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1425. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1426. //
  1427. // X/Open macros:
  1428. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1429. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1430. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1431. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1432. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1433. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1434. //
  1435. // NetBSD macros:
  1436. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1437. //
  1438. // If more than one of these "major" feature-test macros is defined,
  1439. // then the set of facilities provided (and namespace used) is the
  1440. // union of that specified by the relevant standards, and in case of
  1441. // conflict, the earlier standard in the above list has precedence (so
  1442. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1443. // of rename() that's used is the POSIX one). If none of the "major"
  1444. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1445. //
  1446. // There are also "minor" feature-test macros, which enable extra
  1447. // functionality in addition to some base standard. They should be
  1448. // defined along with one of the "major" macros. The "minor" macros
  1449. // are:
  1450. //
  1451. // _REENTRANT
  1452. // _ISOC99_SOURCE
  1453. // _ISOC11_SOURCE
  1454. // _LARGEFILE_SOURCE Large File Support
  1455. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1456. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1457. // -
  1458. // Copyright (c) 1990 The Regents of the University of California.
  1459. // All rights reserved.
  1460. //
  1461. // Redistribution and use in source and binary forms, with or without
  1462. // modification, are permitted provided that the following conditions
  1463. // are met:
  1464. // 1. Redistributions of source code must retain the above copyright
  1465. // notice, this list of conditions and the following disclaimer.
  1466. // 2. Redistributions in binary form must reproduce the above copyright
  1467. // notice, this list of conditions and the following disclaimer in the
  1468. // documentation and/or other materials provided with the distribution.
  1469. // 3. Neither the name of the University nor the names of its contributors
  1470. // may be used to endorse or promote products derived from this software
  1471. // without specific prior written permission.
  1472. //
  1473. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1474. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1475. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1476. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1477. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1478. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1479. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1480. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1481. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1482. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1483. // SUCH DAMAGE.
  1484. //
  1485. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  1486. // Implementation dependent defines, hidden from user space.
  1487. // POSIX does not specify them.
  1488. type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */
  1489. // 32 = 2 ^ 5
  1490. // Select uses bit fields of file descriptors. These macros manipulate
  1491. // such bit fields. Note: FD_SETSIZE may be defined by the user.
  1492. type Fd_set1 = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */
  1493. // 32 = 2 ^ 5
  1494. // Select uses bit fields of file descriptors. These macros manipulate
  1495. // such bit fields. Note: FD_SETSIZE may be defined by the user.
  1496. type Fd_set = Fd_set1 /* fd_set.h:68:3 */
  1497. // Expose our internals if we are not required to hide them.
  1498. type Kauth_cred_t = uintptr /* types.h:318:27 */
  1499. type Pri_t = int32 /* types.h:320:13 */
  1500. // $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
  1501. // -
  1502. // Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
  1503. // All rights reserved.
  1504. //
  1505. // This code is derived from software contributed to The NetBSD Foundation
  1506. // by Nathan J. Williams.
  1507. //
  1508. // Redistribution and use in source and binary forms, with or without
  1509. // modification, are permitted provided that the following conditions
  1510. // are met:
  1511. // 1. Redistributions of source code must retain the above copyright
  1512. // notice, this list of conditions and the following disclaimer.
  1513. // 2. Redistributions in binary form must reproduce the above copyright
  1514. // notice, this list of conditions and the following disclaimer in the
  1515. // documentation and/or other materials provided with the distribution.
  1516. //
  1517. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1518. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1519. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1520. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1521. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1522. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1523. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1524. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1525. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1526. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1527. // POSSIBILITY OF SUCH DAMAGE.
  1528. // We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
  1529. // POSIX spinlock object.
  1530. //
  1531. // C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer.
  1532. // This does not work for volatile types. Since C++ does not touch the guts
  1533. // of those types, we do not include volatile in the C++ definitions.
  1534. type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */
  1535. type X__pthread_spin_t = Pthread_spin_t /* pthread_types.h:48:24 */
  1536. // Copied from PTQ_HEAD in pthread_queue.h
  1537. type Pthread_queue_struct_t = struct {
  1538. Fptqh_first uintptr
  1539. Fptqh_last uintptr
  1540. } /* pthread_types.h:61:1 */
  1541. type Pthread_queue_t = Pthread_queue_struct_t /* pthread_types.h:62:39 */
  1542. type X__pthread_attr_st = struct {
  1543. Fpta_magic uint32
  1544. Fpta_flags int32
  1545. Fpta_private uintptr
  1546. } /* pthread_types.h:65:1 */
  1547. type X__pthread_mutex_st = struct {
  1548. Fptm_magic uint32
  1549. Fptm_errorcheck X__pthread_spin_t
  1550. Fptm_pad1 [3]Uint8_t
  1551. F__8 struct{ Fptm_ceiling uint8 }
  1552. Fptm_pad2 [3]Uint8_t
  1553. F__ccgo_pad1 [4]byte
  1554. Fptm_owner Pthread_t
  1555. Fptm_waiters uintptr
  1556. Fptm_recursed uint32
  1557. F__ccgo_pad2 [4]byte
  1558. Fptm_spare2 uintptr
  1559. } /* pthread_types.h:66:1 */
  1560. type X__pthread_mutexattr_st = struct {
  1561. Fptma_magic uint32
  1562. F__ccgo_pad1 [4]byte
  1563. Fptma_private uintptr
  1564. } /* pthread_types.h:67:1 */
  1565. type X__pthread_cond_st = struct {
  1566. Fptc_magic uint32
  1567. Fptc_lock X__pthread_spin_t
  1568. F__ccgo_pad1 [3]byte
  1569. Fptc_waiters Pthread_queue_t
  1570. Fptc_mutex uintptr
  1571. Fptc_private uintptr
  1572. } /* pthread_types.h:68:1 */
  1573. type X__pthread_condattr_st = struct {
  1574. Fptca_magic uint32
  1575. F__ccgo_pad1 [4]byte
  1576. Fptca_private uintptr
  1577. } /* pthread_types.h:69:1 */
  1578. type X__pthread_rwlock_st = struct {
  1579. Fptr_magic uint32
  1580. Fptr_interlock X__pthread_spin_t
  1581. F__ccgo_pad1 [3]byte
  1582. Fptr_rblocked Pthread_queue_t
  1583. Fptr_wblocked Pthread_queue_t
  1584. Fptr_nreaders uint32
  1585. F__ccgo_pad2 [4]byte
  1586. Fptr_owner Pthread_t
  1587. Fptr_private uintptr
  1588. } /* pthread_types.h:71:1 */
  1589. type X__pthread_rwlockattr_st = struct {
  1590. Fptra_magic uint32
  1591. F__ccgo_pad1 [4]byte
  1592. Fptra_private uintptr
  1593. } /* pthread_types.h:72:1 */
  1594. type X__pthread_barrier_st = struct {
  1595. Fptb_magic uint32
  1596. Fptb_lock Pthread_spin_t
  1597. F__ccgo_pad1 [3]byte
  1598. Fptb_waiters Pthread_queue_t
  1599. Fptb_initcount uint32
  1600. Fptb_curcount uint32
  1601. Fptb_generation uint32
  1602. F__ccgo_pad2 [4]byte
  1603. Fptb_private uintptr
  1604. } /* pthread_types.h:73:1 */
  1605. type X__pthread_barrierattr_st = struct {
  1606. Fptba_magic uint32
  1607. F__ccgo_pad1 [4]byte
  1608. Fptba_private uintptr
  1609. } /* pthread_types.h:74:1 */
  1610. type Pthread_t = uintptr /* pthread_types.h:76:29 */
  1611. type Pthread_attr_t = X__pthread_attr_st /* pthread_types.h:77:34 */
  1612. type Pthread_mutex_t = X__pthread_mutex_st /* pthread_types.h:78:35 */
  1613. type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
  1614. type Pthread_cond_t = X__pthread_cond_st /* pthread_types.h:80:34 */
  1615. type Pthread_condattr_t = X__pthread_condattr_st /* pthread_types.h:81:38 */
  1616. type X__pthread_once_st = struct {
  1617. Fpto_mutex Pthread_mutex_t
  1618. Fpto_done int32
  1619. F__ccgo_pad1 [4]byte
  1620. } /* pthread_types.h:82:9 */
  1621. type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
  1622. type X__pthread_spinlock_st = struct {
  1623. Fpts_magic uint32
  1624. Fpts_spin X__pthread_spin_t
  1625. F__ccgo_pad1 [3]byte
  1626. Fpts_flags int32
  1627. } /* pthread_types.h:83:9 */
  1628. type Pthread_spinlock_t = X__pthread_spinlock_st /* pthread_types.h:83:38 */
  1629. type Pthread_rwlock_t = X__pthread_rwlock_st /* pthread_types.h:84:36 */
  1630. type Pthread_rwlockattr_t = X__pthread_rwlockattr_st /* pthread_types.h:85:40 */
  1631. type Pthread_barrier_t = X__pthread_barrier_st /* pthread_types.h:86:37 */
  1632. type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41 */
  1633. type Pthread_key_t = int32 /* pthread_types.h:88:13 */ // getsubopt(3) external variable
  1634. var _ int8 /* gen.c:2:13: */