pthread_openbsd_amd64.go 102 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019
  1. // Code generated by 'ccgo pthread/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 pthread/pthread_openbsd_amd64.go -pkgname pthread', DO NOT EDIT.
  2. package pthread
  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. ARG_MAX = 524288 // syslimits.h:38:1:
  15. BC_BASE_MAX = 2147483647 // syslimits.h:51:1:
  16. BC_DIM_MAX = 65535 // syslimits.h:52:1:
  17. BC_SCALE_MAX = 2147483647 // syslimits.h:53:1:
  18. BC_STRING_MAX = 2147483647 // syslimits.h:54:1:
  19. BIG_ENDIAN = 4321 // endian.h:45:1:
  20. BUS_ADRALN = 1 // siginfo.h:83:1:
  21. BUS_ADRERR = 2 // siginfo.h:84:1:
  22. BUS_OBJERR = 3 // siginfo.h:85:1:
  23. BYTE_ORDER = 1234 // endian.h:47:1:
  24. CHAR_BIT = 8 // limits.h:36:1:
  25. CHAR_MAX = 0x7f // limits.h:46:1:
  26. CHAR_MIN = -128 // limits.h:47:1:
  27. CHILD_MAX = 80 // syslimits.h:39:1:
  28. CLD_CONTINUED = 6 // siginfo.h:105:1:
  29. CLD_DUMPED = 3 // siginfo.h:102:1:
  30. CLD_EXITED = 1 // siginfo.h:100:1:
  31. CLD_KILLED = 2 // siginfo.h:101:1:
  32. CLD_STOPPED = 5 // siginfo.h:104:1:
  33. CLD_TRAPPED = 4 // siginfo.h:103:1:
  34. CLK_TCK = 100 // time.h:68:1:
  35. CLOCKS_PER_SEC = 100 // time.h:71:1:
  36. CLOCK_BOOTTIME = 6 // _time.h:40:1:
  37. CLOCK_MONOTONIC = 3 // _time.h:37:1:
  38. CLOCK_PROCESS_CPUTIME_ID = 2 // _time.h:36:1:
  39. CLOCK_REALTIME = 0 // _time.h:35:1:
  40. CLOCK_THREAD_CPUTIME_ID = 4 // _time.h:38:1:
  41. CLOCK_UPTIME = 5 // _time.h:39:1:
  42. COLL_WEIGHTS_MAX = 2 // syslimits.h:55:1:
  43. DST_AUST = 2 // time.h:78:1:
  44. DST_CAN = 6 // time.h:82:1:
  45. DST_EET = 5 // time.h:81:1:
  46. DST_MET = 4 // time.h:80:1:
  47. DST_NONE = 0 // time.h:76:1:
  48. DST_USA = 1 // time.h:77:1:
  49. DST_WET = 3 // time.h:79:1:
  50. EMT_TAGOVF = 1 // siginfo.h:66:1:
  51. EXPR_NEST_MAX = 32 // syslimits.h:56:1:
  52. FD_SETSIZE = 1024 // select.h:62:1:
  53. FPE_FLTDIV = 3 // siginfo.h:71:1:
  54. FPE_FLTINV = 7 // siginfo.h:75:1:
  55. FPE_FLTOVF = 4 // siginfo.h:72:1:
  56. FPE_FLTRES = 6 // siginfo.h:74:1:
  57. FPE_FLTSUB = 8 // siginfo.h:76:1:
  58. FPE_FLTUND = 5 // siginfo.h:73:1:
  59. FPE_INTDIV = 1 // siginfo.h:69:1:
  60. FPE_INTOVF = 2 // siginfo.h:70:1:
  61. GID_MAX = 4294967295 // limits.h:84:1:
  62. HOST_NAME_MAX = 255 // syslimits.h:76:1:
  63. ILL_BADSTK = 8 // siginfo.h:63:1:
  64. ILL_COPROC = 7 // siginfo.h:62:1:
  65. ILL_ILLADR = 3 // siginfo.h:58:1:
  66. ILL_ILLOPC = 1 // siginfo.h:56:1:
  67. ILL_ILLOPN = 2 // siginfo.h:57:1:
  68. ILL_ILLTRP = 4 // siginfo.h:59:1:
  69. ILL_PRVOPC = 5 // siginfo.h:60:1:
  70. ILL_PRVREG = 6 // siginfo.h:61:1:
  71. INT_MAX = 0x7fffffff // limits.h:57:1:
  72. INT_MIN = -2147483648 // limits.h:58:1:
  73. IOV_MAX = 1024 // syslimits.h:64:1:
  74. ITIMER_PROF = 2 // time.h:146:1:
  75. ITIMER_REAL = 0 // time.h:144:1:
  76. ITIMER_VIRTUAL = 1 // time.h:145:1:
  77. LINE_MAX = 2048 // syslimits.h:57:1:
  78. LINK_MAX = 32767 // syslimits.h:40:1:
  79. LITTLE_ENDIAN = 1234 // endian.h:44:1:
  80. LLONG_MAX = 0x7fffffffffffffff // limits.h:76:1:
  81. LLONG_MIN = -9223372036854775808 // limits.h:78:1:
  82. LOGIN_NAME_MAX = 32 // syslimits.h:72:1:
  83. LONG_BIT = 64 // limits.h:89:1:
  84. LONG_MAX = 0x7fffffffffffffff // limits.h:63:1:
  85. LONG_MIN = -9223372036854775808 // limits.h:65:1:
  86. MAX_CANON = 255 // syslimits.h:41:1:
  87. MAX_INPUT = 255 // syslimits.h:42:1:
  88. MB_LEN_MAX = 4 // limits.h:50:1:
  89. MINSIGSTKSZ = 12288 // signal.h:183:1:
  90. NAME_MAX = 255 // syslimits.h:43:1:
  91. NBBY = 8 // select.h:111:1:
  92. NGROUPS_MAX = 16 // syslimits.h:44:1:
  93. NL_ARGMAX = 9 // limits.h:89:1:
  94. NL_LANGMAX = 14 // limits.h:90:1:
  95. NL_MSGMAX = 32767 // limits.h:91:1:
  96. NL_SETMAX = 255 // limits.h:92:1:
  97. NL_TEXTMAX = 255 // limits.h:93:1:
  98. NSIG = 33 // signal.h:48:1:
  99. NSIGBUS = 3 // siginfo.h:86:1:
  100. NSIGCLD = 6 // siginfo.h:106:1:
  101. NSIGEMT = 1 // siginfo.h:67:1:
  102. NSIGFPE = 8 // siginfo.h:77:1:
  103. NSIGILL = 8 // siginfo.h:64:1:
  104. NSIGSEGV = 2 // siginfo.h:81:1:
  105. NSIGTRAP = 2 // siginfo.h:95:1:
  106. NZERO = 20 // syslimits.h:65:1:
  107. OPEN_MAX = 64 // syslimits.h:45:1:
  108. PATH_MAX = 1024 // syslimits.h:46:1:
  109. PDP_ENDIAN = 3412 // endian.h:46:1:
  110. PIPE_BUF = 512 // syslimits.h:47:1:
  111. PTHREAD_BARRIER_SERIAL_THREAD = -1 // pthread.h:88:1:
  112. PTHREAD_CANCEL_ASYNCHRONOUS = 2 // pthread.h:82:1:
  113. PTHREAD_CANCEL_DEFERRED = 0 // pthread.h:81:1:
  114. PTHREAD_CANCEL_DISABLE = 1 // pthread.h:80:1:
  115. PTHREAD_CANCEL_ENABLE = 0 // pthread.h:79:1:
  116. PTHREAD_CREATE_DETACHED = 1 // pthread.h:65:1:
  117. PTHREAD_CREATE_JOINABLE = 0 // pthread.h:66:1:
  118. PTHREAD_DESTRUCTOR_ITERATIONS = 4 // pthread.h:52:1:
  119. PTHREAD_DETACHED = 0x1 // pthread.h:60:1:
  120. PTHREAD_DONE_INIT = 1 // pthread.h:147:1:
  121. PTHREAD_EXPLICIT_SCHED = 0 // pthread.h:68:1:
  122. PTHREAD_INHERIT_SCHED = 0x4 // pthread.h:62:1:
  123. PTHREAD_KEYS_MAX = 256 // pthread.h:53:1:
  124. PTHREAD_NEEDS_INIT = 0 // pthread.h:146:1:
  125. PTHREAD_NOFLOAT = 0x8 // pthread.h:63:1:
  126. PTHREAD_PRIO_INHERIT = 1 // pthread.h:162:1:
  127. PTHREAD_PRIO_NONE = 0 // pthread.h:161:1:
  128. PTHREAD_PRIO_PROTECT = 2 // pthread.h:163:1:
  129. PTHREAD_PROCESS_PRIVATE = 0 // pthread.h:73:1:
  130. PTHREAD_PROCESS_SHARED = 1 // pthread.h:74:1:
  131. PTHREAD_SCOPE_PROCESS = 0 // pthread.h:67:1:
  132. PTHREAD_SCOPE_SYSTEM = 0x2 // pthread.h:61:1:
  133. PTHREAD_STACK_MIN = 4096 // pthread.h:54:1:
  134. PTHREAD_THREADS_MAX = 18446744073709551615 // pthread.h:55:1:
  135. QUAD_MAX = 0x7fffffffffffffff // limits.h:47:1:
  136. QUAD_MIN = -9223372036854775808 // limits.h:48:1:
  137. RE_DUP_MAX = 255 // syslimits.h:59:1:
  138. SA_NOCLDSTOP = 0x0008 // signal.h:132:1:
  139. SA_NOCLDWAIT = 0x0020 // signal.h:130:1:
  140. SA_NODEFER = 0x0010 // signal.h:129:1:
  141. SA_ONSTACK = 0x0001 // signal.h:126:1:
  142. SA_RESETHAND = 0x0004 // signal.h:128:1:
  143. SA_RESTART = 0x0002 // signal.h:127:1:
  144. SA_SIGINFO = 0x0040 // signal.h:134:1:
  145. SCHAR_MAX = 0x7f // limits.h:38:1:
  146. SCHAR_MIN = -128 // limits.h:39:1:
  147. SCHED_FIFO = 1 // sched.h:47:1:
  148. SCHED_OTHER = 2 // sched.h:48:1:
  149. SCHED_RR = 3 // sched.h:49:1:
  150. SEGV_ACCERR = 2 // siginfo.h:80:1:
  151. SEGV_MAPERR = 1 // siginfo.h:79:1:
  152. SEM_VALUE_MAX = 4294967295 // syslimits.h:60:1:
  153. SHRT_MAX = 0x7fff // limits.h:53:1:
  154. SHRT_MIN = -32768 // limits.h:54:1:
  155. SIGABRT = 6 // signal.h:56:1:
  156. SIGALRM = 14 // signal.h:67:1:
  157. SIGBUS = 10 // signal.h:63:1:
  158. SIGCHLD = 20 // signal.h:73:1:
  159. SIGCONT = 19 // signal.h:72:1:
  160. SIGEMT = 7 // signal.h:59:1:
  161. SIGFPE = 8 // signal.h:61:1:
  162. SIGHUP = 1 // signal.h:51:1:
  163. SIGILL = 4 // signal.h:54:1:
  164. SIGINFO = 29 // signal.h:85:1:
  165. SIGINT = 2 // signal.h:52:1:
  166. SIGIO = 23 // signal.h:77:1:
  167. SIGIOT = 6 // signal.h:58:1:
  168. SIGKILL = 9 // signal.h:62:1:
  169. SIGPIPE = 13 // signal.h:66:1:
  170. SIGPROF = 27 // signal.h:82:1:
  171. SIGQUIT = 3 // signal.h:53:1:
  172. SIGSEGV = 11 // signal.h:64:1:
  173. SIGSTKSZ = 28672 // signal.h:185:1:
  174. SIGSTOP = 17 // signal.h:70:1:
  175. SIGSYS = 12 // signal.h:65:1:
  176. SIGTERM = 15 // signal.h:68:1:
  177. SIGTHR = 32 // signal.h:90:1:
  178. SIGTRAP = 5 // signal.h:55:1:
  179. SIGTSTP = 18 // signal.h:71:1:
  180. SIGTTIN = 21 // signal.h:74:1:
  181. SIGTTOU = 22 // signal.h:75:1:
  182. SIGURG = 16 // signal.h:69:1:
  183. SIGUSR1 = 30 // signal.h:87:1:
  184. SIGUSR2 = 31 // signal.h:88:1:
  185. SIGVTALRM = 26 // signal.h:81:1:
  186. SIGWINCH = 28 // signal.h:84:1:
  187. SIGXCPU = 24 // signal.h:79:1:
  188. SIGXFSZ = 25 // signal.h:80:1:
  189. SIG_BLOCK = 1 // signal.h:140:1:
  190. SIG_SETMASK = 3 // signal.h:142:1:
  191. SIG_UNBLOCK = 2 // signal.h:141:1:
  192. SIZE_T_MAX = 18446744073709551615 // limits.h:44:1:
  193. SI_LWP = -1 // siginfo.h:47:1:
  194. SI_MAXSZ = 128 // siginfo.h:127:1:
  195. SI_NOINFO = 32767 // siginfo.h:45:1:
  196. SI_QUEUE = -2 // siginfo.h:48:1:
  197. SI_TIMER = -3 // siginfo.h:49:1:
  198. SI_USER = 0 // siginfo.h:46:1:
  199. SSIZE_MAX = 9223372036854775807 // limits.h:40:1:
  200. SS_DISABLE = 0x0004 // signal.h:182:1:
  201. SS_ONSTACK = 0x0001 // signal.h:181:1:
  202. SV_INTERRUPT = 2 // signal.h:158:1:
  203. SV_ONSTACK = 1 // signal.h:157:1:
  204. SV_RESETHAND = 4 // signal.h:159:1:
  205. SYMLINK_MAX = 1024 // syslimits.h:48:1:
  206. SYMLOOP_MAX = 32 // syslimits.h:49:1:
  207. TIMER_ABSTIME = 0x1 // _time.h:62:1:
  208. TIMER_RELTIME = 0x0 // _time.h:61:1:
  209. TIME_UTC = 1 // time.h:179:1:
  210. TRAP_BRKPT = 1 // siginfo.h:93:1:
  211. TRAP_TRACE = 2 // siginfo.h:94:1:
  212. TTY_NAME_MAX = 260 // syslimits.h:71:1:
  213. UCHAR_MAX = 0xff // limits.h:41:1:
  214. UID_MAX = 4294967295 // limits.h:83:1:
  215. UINT_MAX = 0xffffffff // limits.h:56:1:
  216. ULLONG_MAX = 0xffffffffffffffff // limits.h:74:1:
  217. ULONG_MAX = 0xffffffffffffffff // limits.h:61:1:
  218. UQUAD_MAX = 0xffffffffffffffff // limits.h:46:1:
  219. USHRT_MAX = 0xffff // limits.h:52:1:
  220. WORD_BIT = 32 // limits.h:93:1:
  221. X_BIG_ENDIAN = 4321 // _endian.h:43:1:
  222. X_BYTE_ORDER = 1234 // endian.h:58:1:
  223. X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1:
  224. X_CLOCK_T_DEFINED_ = 0 // types.h:157:1:
  225. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  226. X_INT16_T_DEFINED_ = 0 // types.h:84:1:
  227. X_INT32_T_DEFINED_ = 0 // types.h:94:1:
  228. X_INT64_T_DEFINED_ = 0 // types.h:104:1:
  229. X_INT8_T_DEFINED_ = 0 // types.h:74:1:
  230. X_LIMITS_H_ = 0 // limits.h:36:1:
  231. X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
  232. X_LOCALE_T_DEFINED_ = 0 // time.h:106:1:
  233. X_LP64 = 1 // <predefined>:1:1:
  234. X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
  235. X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1:
  236. X_MACHINE_LIMITS_H_ = 0 // limits.h:35:1:
  237. X_MACHINE_SIGNAL_H_ = 0 // signal.h:36:1:
  238. X_MACHINE__TYPES_H_ = 0 // _types.h:36:1:
  239. X_MAXCOMLEN = 24 // syslimits.h:79:1:
  240. X_MAX_PAGE_SHIFT = 12 // _types.h:52:1:
  241. X_NSIG = 33 // signal.h:45:1:
  242. X_OFF_T_DEFINED_ = 0 // types.h:192:1:
  243. X_PDP_ENDIAN = 3412 // _endian.h:44:1:
  244. X_PID_T_DEFINED_ = 0 // types.h:167:1:
  245. X_POSIX2_BC_BASE_MAX = 99 // limits.h:71:1:
  246. X_POSIX2_BC_DIM_MAX = 2048 // limits.h:72:1:
  247. X_POSIX2_BC_SCALE_MAX = 99 // limits.h:73:1:
  248. X_POSIX2_BC_STRING_MAX = 1000 // limits.h:74:1:
  249. X_POSIX2_CHARCLASS_NAME_MAX = 14 // limits.h:79:1:
  250. X_POSIX2_COLL_WEIGHTS_MAX = 2 // limits.h:75:1:
  251. X_POSIX2_EXPR_NEST_MAX = 32 // limits.h:76:1:
  252. X_POSIX2_LINE_MAX = 2048 // limits.h:77:1:
  253. X_POSIX2_RE_DUP_MAX = 255 // limits.h:78:1:
  254. X_POSIX_ARG_MAX = 4096 // limits.h:41:1:
  255. X_POSIX_CHILD_MAX = 25 // limits.h:42:1:
  256. X_POSIX_CLOCKRES_MIN = 20000000 // limits.h:61:1:
  257. X_POSIX_HOST_NAME_MAX = 255 // limits.h:82:1:
  258. X_POSIX_LINK_MAX = 8 // limits.h:43:1:
  259. X_POSIX_LOGIN_NAME_MAX = 9 // limits.h:83:1:
  260. X_POSIX_MAX_CANON = 255 // limits.h:44:1:
  261. X_POSIX_MAX_INPUT = 255 // limits.h:45:1:
  262. X_POSIX_NAME_MAX = 14 // limits.h:46:1:
  263. X_POSIX_NGROUPS_MAX = 8 // limits.h:62:1:
  264. X_POSIX_OPEN_MAX = 20 // limits.h:63:1:
  265. X_POSIX_PATH_MAX = 256 // limits.h:47:1:
  266. X_POSIX_PIPE_BUF = 512 // limits.h:48:1:
  267. X_POSIX_RE_DUP_MAX = 255 // limits.h:49:1:
  268. X_POSIX_SEM_NSEMS_MAX = 256 // limits.h:50:1:
  269. X_POSIX_SEM_VALUE_MAX = 32767 // limits.h:51:1:
  270. X_POSIX_SSIZE_MAX = 32767 // limits.h:52:1:
  271. X_POSIX_STREAM_MAX = 8 // limits.h:53:1:
  272. X_POSIX_SYMLINK_MAX = 255 // limits.h:54:1:
  273. X_POSIX_SYMLOOP_MAX = 8 // limits.h:55:1:
  274. X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:56:1:
  275. X_POSIX_THREAD_KEYS_MAX = 128 // limits.h:57:1:
  276. X_POSIX_THREAD_THREADS_MAX = 4 // limits.h:58:1:
  277. X_POSIX_TTY_NAME_MAX = 9 // limits.h:84:1:
  278. X_POSIX_TZNAME_MAX = 6 // limits.h:64:1:
  279. X_PTHREAD_H_ = 0 // pthread.h:38:1:
  280. X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
  281. X_QUAD_LOWWORD = 0 // _endian.h:96:1:
  282. X_RET_PROTECTOR = 1 // <predefined>:2:1:
  283. X_SCHED_H_ = 0 // sched.h:40:1:
  284. X_SELECT_DEFINED_ = 0 // select.h:126:1:
  285. X_SIGSET_T_DEFINED_ = 0 // select.h:121:1:
  286. X_SIZE_T_DEFINED_ = 0 // types.h:172:1:
  287. X_SSIZE_T_DEFINED_ = 0 // types.h:177:1:
  288. X_STACKALIGNBYTES = 15 // _types.h:49:1:
  289. X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
  290. X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
  291. X_SYS_LIMITS_H_ = 0 // limits.h:27:1:
  292. X_SYS_SELECT_H_ = 0 // select.h:35:1:
  293. X_SYS_SIGINFO_H = 0 // siginfo.h:29:1:
  294. X_SYS_SIGNAL_H_ = 0 // signal.h:41:1:
  295. X_SYS_TIME_H_ = 0 // time.h:36:1:
  296. X_SYS_TYPES_H_ = 0 // types.h:41:1:
  297. X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
  298. X_SYS__TIME_H_ = 0 // _time.h:33:1:
  299. X_SYS__TYPES_H_ = 0 // _types.h:35:1:
  300. X_TIMER_T_DEFINED_ = 0 // types.h:187:1:
  301. X_TIMESPEC_DECLARED = 0 // select.h:48:1:
  302. X_TIMEVAL_DECLARED = 0 // select.h:40:1:
  303. X_TIME_H_ = 0 // time.h:42:1:
  304. X_TIME_T_DEFINED_ = 0 // types.h:182:1:
  305. X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
  306. X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
  307. X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
  308. X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
  309. X_XOPEN_IOV_MAX = 16 // limits.h:106:1:
  310. X_XOPEN_NAME_MAX = 255 // limits.h:107:1:
  311. X_XOPEN_PATH_MAX = 1024 // limits.h:108:1:
  312. Unix = 1 // <predefined>:344:1:
  313. )
  314. // Flags for once initialization.
  315. // Static once initialization values.
  316. // Static initialization values.
  317. // Mutex types.
  318. const ( /* pthread.h:168:1: */
  319. PTHREAD_MUTEX_ERRORCHECK = 1 // Error checking mutex
  320. PTHREAD_MUTEX_RECURSIVE = 2 // Recursive mutex
  321. PTHREAD_MUTEX_NORMAL = 3 // No error checking
  322. PTHREAD_MUTEX_STRICT_NP = 4 // Strict error checking
  323. PTHREAD_MUTEX_TYPE_MAX = 5
  324. )
  325. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  326. type Size_t = uint64 /* <builtin>:9:23 */
  327. type Wchar_t = int32 /* <builtin>:15:24 */
  328. type X__int128_t = struct {
  329. Flo int64
  330. Fhi int64
  331. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  332. type X__uint128_t = struct {
  333. Flo uint64
  334. Fhi uint64
  335. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  336. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  337. type X__float128 = float64 /* <builtin>:47:21 */
  338. // $OpenBSD: pthread.h,v 1.4 2018/03/05 01:15:26 deraadt Exp $
  339. // Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
  340. // Copyright (c) 1995-1998 by John Birrell <jb@cimlogic.com.au>
  341. // All rights reserved.
  342. //
  343. // Redistribution and use in source and binary forms, with or without
  344. // modification, are permitted provided that the following conditions
  345. // are met:
  346. // 1. Redistributions of source code must retain the above copyright
  347. // notice, this list of conditions and the following disclaimer.
  348. // 2. Redistributions in binary form must reproduce the above copyright
  349. // notice, this list of conditions and the following disclaimer in the
  350. // documentation and/or other materials provided with the distribution.
  351. // 3. All advertising materials mentioning features or use of this software
  352. // must display the following acknowledgement:
  353. // This product includes software developed by Chris Provenzano.
  354. // 4. The name of Chris Provenzano may not be used to endorse or promote
  355. // products derived from this software without specific prior written
  356. // permission.
  357. //
  358. // THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND
  359. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  360. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  361. // ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY
  362. // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  363. // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  364. // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  365. // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  366. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  367. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  368. // SUCH DAMAGE.
  369. //
  370. // $FreeBSD: pthread.h,v 1.13 1999/07/31 08:36:07 rse Exp $
  371. // Header files.
  372. // $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
  373. // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
  374. // -
  375. // Copyright (c) 1982, 1986, 1991, 1993
  376. // The Regents of the University of California. All rights reserved.
  377. // (c) UNIX System Laboratories, Inc.
  378. // All or some portions of this file are derived from material licensed
  379. // to the University of California by American Telephone and Telegraph
  380. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  381. // the permission of UNIX System Laboratories, Inc.
  382. //
  383. // Redistribution and use in source and binary forms, with or without
  384. // modification, are permitted provided that the following conditions
  385. // are met:
  386. // 1. Redistributions of source code must retain the above copyright
  387. // notice, this list of conditions and the following disclaimer.
  388. // 2. Redistributions in binary form must reproduce the above copyright
  389. // notice, this list of conditions and the following disclaimer in the
  390. // documentation and/or other materials provided with the distribution.
  391. // 3. Neither the name of the University nor the names of its contributors
  392. // may be used to endorse or promote products derived from this software
  393. // without specific prior written permission.
  394. //
  395. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  396. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  397. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  398. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  399. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  400. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  401. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  402. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  403. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  404. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  405. // SUCH DAMAGE.
  406. //
  407. // @(#)types.h 8.4 (Berkeley) 1/21/94
  408. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  409. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  410. // Copyright (c) 1991, 1993
  411. // The Regents of the University of California. All rights reserved.
  412. //
  413. // This code is derived from software contributed to Berkeley by
  414. // Berkeley Software Design, Inc.
  415. //
  416. // Redistribution and use in source and binary forms, with or without
  417. // modification, are permitted provided that the following conditions
  418. // are met:
  419. // 1. Redistributions of source code must retain the above copyright
  420. // notice, this list of conditions and the following disclaimer.
  421. // 2. Redistributions in binary form must reproduce the above copyright
  422. // notice, this list of conditions and the following disclaimer in the
  423. // documentation and/or other materials provided with the distribution.
  424. // 3. Neither the name of the University nor the names of its contributors
  425. // may be used to endorse or promote products derived from this software
  426. // without specific prior written permission.
  427. //
  428. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  429. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  430. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  431. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  432. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  433. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  434. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  435. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  436. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  437. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  438. // SUCH DAMAGE.
  439. //
  440. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  441. // $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $
  442. // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
  443. // Public domain.
  444. // Macro to test if we're using a specific version of gcc or later.
  445. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  446. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  447. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  448. // in between its arguments. Do not use __CONCAT on double-quoted strings,
  449. // such as those from the __STRING macro: to concatenate strings just put
  450. // them next to each other.
  451. // GCC1 and some versions of GCC2 declare dead (non-returning) and
  452. // pure (no side effects) functions using "volatile" and "const";
  453. // unfortunately, these then cause warnings under "-ansi -pedantic".
  454. // GCC >= 2.5 uses the __attribute__((attrs)) style. All of these
  455. // work for GNU C++ (modulo a slight glitch in the C++ grammar in
  456. // the distribution version of 2.5.5).
  457. // __returns_twice makes the compiler not assume the function
  458. // only returns once. This affects registerisation of variables:
  459. // even local variables need to be in memory across such a call.
  460. // Example: setjmp()
  461. // __only_inline makes the compiler only use this function definition
  462. // for inlining; references that can't be inlined will be left as
  463. // external references instead of generating a local copy. The
  464. // matching library should include a simple extern definition for
  465. // the function to handle those references. c.f. ctype.h
  466. // GNU C version 2.96 adds explicit branch prediction so that
  467. // the CPU back-end can hint the processor and also so that
  468. // code blocks can be reordered such that the predicted path
  469. // sees a more linear flow, thus improving cache behavior, etc.
  470. //
  471. // The following two macros provide us with a way to utilize this
  472. // compiler feature. Use __predict_true() if you expect the expression
  473. // to evaluate to true, and __predict_false() if you expect the
  474. // expression to evaluate to false.
  475. //
  476. // A few notes about usage:
  477. //
  478. // * Generally, __predict_false() error condition checks (unless
  479. // you have some _strong_ reason to do otherwise, in which case
  480. // document it), and/or __predict_true() `no-error' condition
  481. // checks, assuming you want to optimize for the no-error case.
  482. //
  483. // * Other than that, if you don't know the likelihood of a test
  484. // succeeding from empirical or other `hard' evidence, don't
  485. // make predictions.
  486. //
  487. // * These are meant to be used in places that are run `a lot'.
  488. // It is wasteful to make predictions in code that is run
  489. // seldomly (e.g. at subsystem initialization time) as the
  490. // basic block reordering that this affects can often generate
  491. // larger code.
  492. // Delete pseudo-keywords wherever they are not available or needed.
  493. // The __packed macro indicates that a variable or structure members
  494. // should have the smallest possible alignment, despite any host CPU
  495. // alignment requirements.
  496. //
  497. // The __aligned(x) macro specifies the minimum alignment of a
  498. // variable or structure.
  499. //
  500. // These macros together are useful for describing the layout and
  501. // alignment of messages exchanged with hardware or other systems.
  502. // "The nice thing about standards is that there are so many to choose from."
  503. // There are a number of "feature test macros" specified by (different)
  504. // standards that determine which interfaces and types the header files
  505. // should expose.
  506. //
  507. // Because of inconsistencies in these macros, we define our own
  508. // set in the private name space that end in _VISIBLE. These are
  509. // always defined and so headers can test their values easily.
  510. // Things can get tricky when multiple feature macros are defined.
  511. // We try to take the union of all the features requested.
  512. //
  513. // The following macros are guaranteed to have a value after cdefs.h
  514. // has been included:
  515. // __POSIX_VISIBLE
  516. // __XPG_VISIBLE
  517. // __ISO_C_VISIBLE
  518. // __BSD_VISIBLE
  519. // X/Open Portability Guides and Single Unix Specifications.
  520. // _XOPEN_SOURCE XPG3
  521. // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
  522. // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
  523. // _XOPEN_SOURCE == 500 XPG5
  524. // _XOPEN_SOURCE == 520 XPG5v2
  525. // _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI
  526. // _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI
  527. //
  528. // The XPG spec implies a specific value for _POSIX_C_SOURCE.
  529. // POSIX macros, these checks must follow the XOPEN ones above.
  530. //
  531. // _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE)
  532. // _POSIX_C_SOURCE == 1 1003.1-1990
  533. // _POSIX_C_SOURCE == 2 1003.2-1992
  534. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  535. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  536. // and the omnibus ISO/IEC 9945-1:1996
  537. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  538. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  539. //
  540. // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
  541. // this may be overridden by the _ISOC99_SOURCE macro later.
  542. // _ANSI_SOURCE means to expose ANSI C89 interfaces only.
  543. // If the user defines it in addition to one of the POSIX or XOPEN
  544. // macros, assume the POSIX/XOPEN macro(s) should take precedence.
  545. // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
  546. // override any of the other macros since they are non-exclusive.
  547. // Finally deal with BSD-specific interfaces that are not covered
  548. // by any standards. We expose these when none of the POSIX or XPG
  549. // macros is defined or if the user explicitly asks for them.
  550. // Default values.
  551. // $OpenBSD: endian.h,v 1.25 2014/12/21 04:49:00 guenther Exp $
  552. // -
  553. // Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
  554. //
  555. // Redistribution and use in source and binary forms, with or without
  556. // modification, are permitted provided that the following conditions
  557. // are met:
  558. // 1. Redistributions of source code must retain the above copyright
  559. // notice, this list of conditions and the following disclaimer.
  560. // 2. Redistributions in binary form must reproduce the above copyright
  561. // notice, this list of conditions and the following disclaimer in the
  562. // documentation and/or other materials provided with the distribution.
  563. //
  564. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  565. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  566. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  567. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  568. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  569. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  570. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  571. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  572. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  573. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  574. // Public definitions for little- and big-endian systems.
  575. // This file should be included as <endian.h> in userspace and as
  576. // <sys/endian.h> in the kernel.
  577. //
  578. // System headers that need endian information but that can't or don't
  579. // want to export the public names here should include <sys/_endian.h>
  580. // and use the internal names: _BYTE_ORDER, _*_ENDIAN, etc.
  581. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  582. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  583. // Copyright (c) 1991, 1993
  584. // The Regents of the University of California. All rights reserved.
  585. //
  586. // This code is derived from software contributed to Berkeley by
  587. // Berkeley Software Design, Inc.
  588. //
  589. // Redistribution and use in source and binary forms, with or without
  590. // modification, are permitted provided that the following conditions
  591. // are met:
  592. // 1. Redistributions of source code must retain the above copyright
  593. // notice, this list of conditions and the following disclaimer.
  594. // 2. Redistributions in binary form must reproduce the above copyright
  595. // notice, this list of conditions and the following disclaimer in the
  596. // documentation and/or other materials provided with the distribution.
  597. // 3. Neither the name of the University nor the names of its contributors
  598. // may be used to endorse or promote products derived from this software
  599. // without specific prior written permission.
  600. //
  601. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  602. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  603. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  604. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  605. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  606. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  607. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  608. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  609. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  610. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  611. // SUCH DAMAGE.
  612. //
  613. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  614. // $OpenBSD: _endian.h,v 1.8 2018/01/11 23:13:37 dlg Exp $
  615. // -
  616. // Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
  617. //
  618. // Redistribution and use in source and binary forms, with or without
  619. // modification, are permitted provided that the following conditions
  620. // are met:
  621. // 1. Redistributions of source code must retain the above copyright
  622. // notice, this list of conditions and the following disclaimer.
  623. // 2. Redistributions in binary form must reproduce the above copyright
  624. // notice, this list of conditions and the following disclaimer in the
  625. // documentation and/or other materials provided with the distribution.
  626. //
  627. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  628. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  629. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  630. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  631. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  632. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  633. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  634. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  635. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  636. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  637. // Internal endianness macros. This pulls in <machine/endian.h> to
  638. // get the correct setting direction for the platform and sets internal
  639. // ('__' prefix) macros appropriately.
  640. // $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $
  641. // -
  642. // Copyright (c) 1990, 1993
  643. // The Regents of the University of California. All rights reserved.
  644. //
  645. // Redistribution and use in source and binary forms, with or without
  646. // modification, are permitted provided that the following conditions
  647. // are met:
  648. // 1. Redistributions of source code must retain the above copyright
  649. // notice, this list of conditions and the following disclaimer.
  650. // 2. Redistributions in binary form must reproduce the above copyright
  651. // notice, this list of conditions and the following disclaimer in the
  652. // documentation and/or other materials provided with the distribution.
  653. // 3. Neither the name of the University nor the names of its contributors
  654. // may be used to endorse or promote products derived from this software
  655. // without specific prior written permission.
  656. //
  657. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  658. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  659. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  660. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  661. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  662. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  663. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  664. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  665. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  666. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  667. // SUCH DAMAGE.
  668. //
  669. // @(#)types.h 8.3 (Berkeley) 1/5/94
  670. // $OpenBSD: _types.h,v 1.17 2018/03/05 01:15:25 deraadt Exp $
  671. // -
  672. // Copyright (c) 1990, 1993
  673. // The Regents of the University of California. All rights reserved.
  674. //
  675. // Redistribution and use in source and binary forms, with or without
  676. // modification, are permitted provided that the following conditions
  677. // are met:
  678. // 1. Redistributions of source code must retain the above copyright
  679. // notice, this list of conditions and the following disclaimer.
  680. // 2. Redistributions in binary form must reproduce the above copyright
  681. // notice, this list of conditions and the following disclaimer in the
  682. // documentation and/or other materials provided with the distribution.
  683. // 3. Neither the name of the University nor the names of its contributors
  684. // may be used to endorse or promote products derived from this software
  685. // without specific prior written permission.
  686. //
  687. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  688. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  689. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  690. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  691. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  692. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  693. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  694. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  695. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  696. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  697. // SUCH DAMAGE.
  698. //
  699. // @(#)types.h 8.3 (Berkeley) 1/5/94
  700. // @(#)ansi.h 8.2 (Berkeley) 1/4/94
  701. // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
  702. // value for all data types (int, long, ...). The result is an
  703. // unsigned long and must be cast to any desired pointer type.
  704. //
  705. // _ALIGNED_POINTER is a boolean macro that checks whether an address
  706. // is valid to fetch data elements of type t from on this architecture.
  707. // This does not reflect the optimal alignment, just the possibility
  708. // (within reasonable limits).
  709. // 7.18.1.1 Exact-width integer types
  710. type X__int8_t = int8 /* _types.h:61:22 */
  711. type X__uint8_t = uint8 /* _types.h:62:24 */
  712. type X__int16_t = int16 /* _types.h:63:17 */
  713. type X__uint16_t = uint16 /* _types.h:64:25 */
  714. type X__int32_t = int32 /* _types.h:65:15 */
  715. type X__uint32_t = uint32 /* _types.h:66:23 */
  716. type X__int64_t = int64 /* _types.h:67:20 */
  717. type X__uint64_t = uint64 /* _types.h:68:28 */
  718. // 7.18.1.2 Minimum-width integer types
  719. type X__int_least8_t = X__int8_t /* _types.h:71:19 */
  720. type X__uint_least8_t = X__uint8_t /* _types.h:72:20 */
  721. type X__int_least16_t = X__int16_t /* _types.h:73:20 */
  722. type X__uint_least16_t = X__uint16_t /* _types.h:74:21 */
  723. type X__int_least32_t = X__int32_t /* _types.h:75:20 */
  724. type X__uint_least32_t = X__uint32_t /* _types.h:76:21 */
  725. type X__int_least64_t = X__int64_t /* _types.h:77:20 */
  726. type X__uint_least64_t = X__uint64_t /* _types.h:78:21 */
  727. // 7.18.1.3 Fastest minimum-width integer types
  728. type X__int_fast8_t = X__int32_t /* _types.h:81:20 */
  729. type X__uint_fast8_t = X__uint32_t /* _types.h:82:21 */
  730. type X__int_fast16_t = X__int32_t /* _types.h:83:20 */
  731. type X__uint_fast16_t = X__uint32_t /* _types.h:84:21 */
  732. type X__int_fast32_t = X__int32_t /* _types.h:85:20 */
  733. type X__uint_fast32_t = X__uint32_t /* _types.h:86:21 */
  734. type X__int_fast64_t = X__int64_t /* _types.h:87:20 */
  735. type X__uint_fast64_t = X__uint64_t /* _types.h:88:21 */
  736. // 7.18.1.4 Integer types capable of holding object pointers
  737. type X__intptr_t = int64 /* _types.h:103:16 */
  738. type X__uintptr_t = uint64 /* _types.h:104:24 */
  739. // 7.18.1.5 Greatest-width integer types
  740. type X__intmax_t = X__int64_t /* _types.h:107:20 */
  741. type X__uintmax_t = X__uint64_t /* _types.h:108:21 */
  742. // Register size
  743. type X__register_t = int64 /* _types.h:111:16 */
  744. // VM system types
  745. type X__vaddr_t = uint64 /* _types.h:114:24 */
  746. type X__paddr_t = uint64 /* _types.h:115:24 */
  747. type X__vsize_t = uint64 /* _types.h:116:24 */
  748. type X__psize_t = uint64 /* _types.h:117:24 */
  749. // Standard system types
  750. type X__double_t = float64 /* _types.h:120:18 */
  751. type X__float_t = float32 /* _types.h:121:17 */
  752. type X__ptrdiff_t = int64 /* _types.h:122:16 */
  753. type X__size_t = uint64 /* _types.h:123:24 */
  754. type X__ssize_t = int64 /* _types.h:124:16 */
  755. type X__va_list = X__builtin_va_list /* _types.h:126:27 */
  756. // Wide character support types
  757. type X__wchar_t = int32 /* _types.h:133:15 */
  758. type X__wint_t = int32 /* _types.h:135:15 */
  759. type X__rune_t = int32 /* _types.h:136:15 */
  760. type X__wctrans_t = uintptr /* _types.h:137:14 */
  761. type X__wctype_t = uintptr /* _types.h:138:14 */
  762. type X__blkcnt_t = X__int64_t /* _types.h:39:19 */ // blocks allocated for file
  763. type X__blksize_t = X__int32_t /* _types.h:40:19 */ // optimal blocksize for I/O
  764. type X__clock_t = X__int64_t /* _types.h:41:19 */ // ticks in CLOCKS_PER_SEC
  765. type X__clockid_t = X__int32_t /* _types.h:42:19 */ // CLOCK_* identifiers
  766. type X__cpuid_t = uint64 /* _types.h:43:23 */ // CPU id
  767. type X__dev_t = X__int32_t /* _types.h:44:19 */ // device number
  768. type X__fixpt_t = X__uint32_t /* _types.h:45:20 */ // fixed point number
  769. type X__fsblkcnt_t = X__uint64_t /* _types.h:46:20 */ // file system block count
  770. type X__fsfilcnt_t = X__uint64_t /* _types.h:47:20 */ // file system file count
  771. type X__gid_t = X__uint32_t /* _types.h:48:20 */ // group id
  772. type X__id_t = X__uint32_t /* _types.h:49:20 */ // may contain pid, uid or gid
  773. type X__in_addr_t = X__uint32_t /* _types.h:50:20 */ // base type for internet address
  774. type X__in_port_t = X__uint16_t /* _types.h:51:20 */ // IP port type
  775. type X__ino_t = X__uint64_t /* _types.h:52:20 */ // inode number
  776. type X__key_t = int64 /* _types.h:53:15 */ // IPC key (for Sys V IPC)
  777. type X__mode_t = X__uint32_t /* _types.h:54:20 */ // permissions
  778. type X__nlink_t = X__uint32_t /* _types.h:55:20 */ // link count
  779. type X__off_t = X__int64_t /* _types.h:56:19 */ // file offset or size
  780. type X__pid_t = X__int32_t /* _types.h:57:19 */ // process id
  781. type X__rlim_t = X__uint64_t /* _types.h:58:20 */ // resource limit
  782. type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type
  783. type X__segsz_t = X__int32_t /* _types.h:60:19 */ // segment size
  784. type X__socklen_t = X__uint32_t /* _types.h:61:20 */ // length type for network syscalls
  785. type X__suseconds_t = int64 /* _types.h:62:15 */ // microseconds (signed)
  786. type X__time_t = X__int64_t /* _types.h:63:19 */ // epoch time
  787. type X__timer_t = X__int32_t /* _types.h:64:19 */ // POSIX timer identifiers
  788. type X__uid_t = X__uint32_t /* _types.h:65:20 */ // user id
  789. type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds
  790. // mbstate_t is an opaque object to keep conversion state, during multibyte
  791. // stream conversions. The content must not be referenced by user programs.
  792. type X__mbstate_t = struct {
  793. F__ccgo_pad1 [0]uint64
  794. F__mbstate8 [128]int8
  795. } /* _types.h:75:3 */
  796. // Tell sys/endian.h we have MD variants of the swap macros.
  797. // Note that these macros evaluate their arguments several times.
  798. // Public names
  799. // These are specified to be function-like macros to match the spec
  800. // POSIX names
  801. // original BSD names
  802. // these were exposed here before
  803. // ancient stuff
  804. type U_char = uint8 /* types.h:51:23 */
  805. type U_short = uint16 /* types.h:52:24 */
  806. type U_int = uint32 /* types.h:53:22 */
  807. type U_long = uint64 /* types.h:54:23 */
  808. type Unchar = uint8 /* types.h:56:23 */ // Sys V compatibility
  809. type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility
  810. type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility
  811. type Ulong = uint64 /* types.h:59:23 */ // Sys V compatibility
  812. type Cpuid_t = X__cpuid_t /* types.h:61:19 */ // CPU id
  813. type Register_t = X__register_t /* types.h:62:22 */ // register-sized type
  814. // XXX The exact-width bit types should only be exposed if __BSD_VISIBLE
  815. // but the rest of the includes are not ready for that yet.
  816. type Int8_t = X__int8_t /* types.h:75:19 */
  817. type Uint8_t = X__uint8_t /* types.h:80:20 */
  818. type Int16_t = X__int16_t /* types.h:85:20 */
  819. type Uint16_t = X__uint16_t /* types.h:90:21 */
  820. type Int32_t = X__int32_t /* types.h:95:20 */
  821. type Uint32_t = X__uint32_t /* types.h:100:21 */
  822. type Int64_t = X__int64_t /* types.h:105:20 */
  823. type Uint64_t = X__uint64_t /* types.h:110:21 */
  824. // BSD-style unsigned bits types
  825. type U_int8_t = X__uint8_t /* types.h:114:19 */
  826. type U_int16_t = X__uint16_t /* types.h:115:20 */
  827. type U_int32_t = X__uint32_t /* types.h:116:20 */
  828. type U_int64_t = X__uint64_t /* types.h:117:20 */
  829. // quads, deprecated in favor of 64 bit int types
  830. type Quad_t = X__int64_t /* types.h:120:19 */
  831. type U_quad_t = X__uint64_t /* types.h:121:20 */
  832. // VM system types
  833. type Vaddr_t = X__vaddr_t /* types.h:125:19 */
  834. type Paddr_t = X__paddr_t /* types.h:126:19 */
  835. type Vsize_t = X__vsize_t /* types.h:127:19 */
  836. type Psize_t = X__psize_t /* types.h:128:19 */
  837. // Standard system types
  838. type Blkcnt_t = X__blkcnt_t /* types.h:132:20 */ // blocks allocated for file
  839. type Blksize_t = X__blksize_t /* types.h:133:21 */ // optimal blocksize for I/O
  840. type Caddr_t = uintptr /* types.h:134:14 */ // core address
  841. type Daddr32_t = X__int32_t /* types.h:135:19 */ // 32-bit disk address
  842. type Daddr_t = X__int64_t /* types.h:136:19 */ // 64-bit disk address
  843. type Dev_t = X__dev_t /* types.h:137:18 */ // device number
  844. type Fixpt_t = X__fixpt_t /* types.h:138:19 */ // fixed point number
  845. type Gid_t = X__gid_t /* types.h:139:18 */ // group id
  846. type Id_t = X__id_t /* types.h:140:17 */ // may contain pid, uid or gid
  847. type Ino_t = X__ino_t /* types.h:141:18 */ // inode number
  848. type Key_t = X__key_t /* types.h:142:18 */ // IPC key (for Sys V IPC)
  849. type Mode_t = X__mode_t /* types.h:143:18 */ // permissions
  850. type Nlink_t = X__nlink_t /* types.h:144:19 */ // link count
  851. type Rlim_t = X__rlim_t /* types.h:145:18 */ // resource limit
  852. type Segsz_t = X__segsz_t /* types.h:146:19 */ // segment size
  853. type Uid_t = X__uid_t /* types.h:147:18 */ // user id
  854. type Useconds_t = X__useconds_t /* types.h:148:22 */ // microseconds
  855. type Suseconds_t = X__suseconds_t /* types.h:149:23 */ // microseconds (signed)
  856. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:150:22 */ // file system block count
  857. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:151:22 */ // file system file count
  858. // The following types may be defined in multiple header files.
  859. type Clock_t = X__clock_t /* types.h:158:19 */
  860. type Clockid_t = X__clockid_t /* types.h:163:21 */
  861. type Pid_t = X__pid_t /* types.h:168:18 */
  862. type Ssize_t = X__ssize_t /* types.h:178:19 */
  863. type Time_t = X__time_t /* types.h:183:18 */
  864. type Timer_t = X__timer_t /* types.h:188:19 */
  865. type Off_t = X__off_t /* types.h:193:18 */
  866. // Major, minor numbers, dev_t's.
  867. // $OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $
  868. // $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $
  869. // Copyright (c) 1982, 1986, 1993
  870. // The Regents of the University of California. All rights reserved.
  871. //
  872. // Redistribution and use in source and binary forms, with or without
  873. // modification, are permitted provided that the following conditions
  874. // are met:
  875. // 1. Redistributions of source code must retain the above copyright
  876. // notice, this list of conditions and the following disclaimer.
  877. // 2. Redistributions in binary form must reproduce the above copyright
  878. // notice, this list of conditions and the following disclaimer in the
  879. // documentation and/or other materials provided with the distribution.
  880. // 3. Neither the name of the University nor the names of its contributors
  881. // may be used to endorse or promote products derived from this software
  882. // without specific prior written permission.
  883. //
  884. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  885. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  886. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  887. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  888. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  889. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  890. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  891. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  892. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  893. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  894. // SUCH DAMAGE.
  895. //
  896. // @(#)time.h 8.2 (Berkeley) 7/10/94
  897. // $OpenBSD: select.h,v 1.17 2016/09/12 19:41:20 guenther Exp $
  898. // -
  899. // Copyright (c) 1992, 1993
  900. // The Regents of the University of California. All rights reserved.
  901. //
  902. // Redistribution and use in source and binary forms, with or without
  903. // modification, are permitted provided that the following conditions
  904. // are met:
  905. // 1. Redistributions of source code must retain the above copyright
  906. // notice, this list of conditions and the following disclaimer.
  907. // 2. Redistributions in binary form must reproduce the above copyright
  908. // notice, this list of conditions and the following disclaimer in the
  909. // documentation and/or other materials provided with the distribution.
  910. // 3. Neither the name of the University nor the names of its contributors
  911. // may be used to endorse or promote products derived from this software
  912. // without specific prior written permission.
  913. //
  914. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  915. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  916. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  917. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  918. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  919. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  920. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  921. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  922. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  923. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  924. // SUCH DAMAGE.
  925. //
  926. // @(#)select.h 8.2 (Berkeley) 1/4/94
  927. // $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
  928. // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
  929. // -
  930. // Copyright (c) 1982, 1986, 1991, 1993
  931. // The Regents of the University of California. All rights reserved.
  932. // (c) UNIX System Laboratories, Inc.
  933. // All or some portions of this file are derived from material licensed
  934. // to the University of California by American Telephone and Telegraph
  935. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  936. // the permission of UNIX System Laboratories, Inc.
  937. //
  938. // Redistribution and use in source and binary forms, with or without
  939. // modification, are permitted provided that the following conditions
  940. // are met:
  941. // 1. Redistributions of source code must retain the above copyright
  942. // notice, this list of conditions and the following disclaimer.
  943. // 2. Redistributions in binary form must reproduce the above copyright
  944. // notice, this list of conditions and the following disclaimer in the
  945. // documentation and/or other materials provided with the distribution.
  946. // 3. Neither the name of the University nor the names of its contributors
  947. // may be used to endorse or promote products derived from this software
  948. // without specific prior written permission.
  949. //
  950. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  951. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  952. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  953. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  954. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  955. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  956. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  957. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  958. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  959. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  960. // SUCH DAMAGE.
  961. //
  962. // @(#)types.h 8.4 (Berkeley) 1/21/94
  963. type Timeval = struct {
  964. Ftv_sec Time_t
  965. Ftv_usec Suseconds_t
  966. } /* select.h:41:1 */
  967. type Timespec = struct {
  968. Ftv_sec Time_t
  969. Ftv_nsec int64
  970. } /* select.h:49:1 */
  971. // Select uses bit masks of file descriptors in longs. These macros
  972. // manipulate such bit fields (the filesystem macros use chars).
  973. // FD_SETSIZE may be defined by the user, but the default here should
  974. // be enough for most uses.
  975. // We don't want to pollute the namespace with select(2) internals.
  976. // Non-underscore versions are exposed later #if __BSD_VISIBLE
  977. type X__fd_mask = Uint32_t /* select.h:70:18 */
  978. type Fd_set1 = struct{ Ffds_bits [32]X__fd_mask } /* select.h:74:9 */
  979. type Fd_set = Fd_set1 /* select.h:76:3 */
  980. type Sigset_t = uint32 /* select.h:122:22 */
  981. type Timezone = struct {
  982. Ftz_minuteswest int32
  983. Ftz_dsttime int32
  984. } /* time.h:72:1 */
  985. // Operations on timevals.
  986. // Operations on timespecs.
  987. // Names of the interval timers, and structure
  988. // defining a timer setting.
  989. type Itimerval = struct {
  990. Fit_interval struct {
  991. Ftv_sec Time_t
  992. Ftv_usec Suseconds_t
  993. }
  994. Fit_value struct {
  995. Ftv_sec Time_t
  996. Ftv_usec Suseconds_t
  997. }
  998. } /* time.h:148:1 */
  999. // clock information structure for sysctl({CTL_KERN, KERN_CLOCKRATE})
  1000. type Clockinfo = struct {
  1001. Fhz int32
  1002. Ftick int32
  1003. Fstathz int32
  1004. Fprofhz int32
  1005. } /* time.h:157:1 */
  1006. // $OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $
  1007. // $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $
  1008. // Copyright (c) 1989 The Regents of the University of California.
  1009. // All rights reserved.
  1010. //
  1011. // (c) UNIX System Laboratories, Inc.
  1012. // All or some portions of this file are derived from material licensed
  1013. // to the University of California by American Telephone and Telegraph
  1014. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1015. // the permission of UNIX System Laboratories, Inc.
  1016. //
  1017. // Redistribution and use in source and binary forms, with or without
  1018. // modification, are permitted provided that the following conditions
  1019. // are met:
  1020. // 1. Redistributions of source code must retain the above copyright
  1021. // notice, this list of conditions and the following disclaimer.
  1022. // 2. Redistributions in binary form must reproduce the above copyright
  1023. // notice, this list of conditions and the following disclaimer in the
  1024. // documentation and/or other materials provided with the distribution.
  1025. // 3. Neither the name of the University nor the names of its contributors
  1026. // may be used to endorse or promote products derived from this software
  1027. // without specific prior written permission.
  1028. //
  1029. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1030. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1031. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1032. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1033. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1034. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1035. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1036. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1037. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1038. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1039. // SUCH DAMAGE.
  1040. //
  1041. // @(#)time.h 5.12 (Berkeley) 3/9/91
  1042. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  1043. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  1044. // Copyright (c) 1991, 1993
  1045. // The Regents of the University of California. All rights reserved.
  1046. //
  1047. // This code is derived from software contributed to Berkeley by
  1048. // Berkeley Software Design, Inc.
  1049. //
  1050. // Redistribution and use in source and binary forms, with or without
  1051. // modification, are permitted provided that the following conditions
  1052. // are met:
  1053. // 1. Redistributions of source code must retain the above copyright
  1054. // notice, this list of conditions and the following disclaimer.
  1055. // 2. Redistributions in binary form must reproduce the above copyright
  1056. // notice, this list of conditions and the following disclaimer in the
  1057. // documentation and/or other materials provided with the distribution.
  1058. // 3. Neither the name of the University nor the names of its contributors
  1059. // may be used to endorse or promote products derived from this software
  1060. // without specific prior written permission.
  1061. //
  1062. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1063. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1064. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1065. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1066. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1067. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1068. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1069. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1070. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1071. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1072. // SUCH DAMAGE.
  1073. //
  1074. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  1075. // $OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $
  1076. // Written by Todd C. Miller, September 9, 2016
  1077. // Public domain.
  1078. // $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $
  1079. // -
  1080. // Copyright (c) 1990, 1993
  1081. // The Regents of the University of California. All rights reserved.
  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.3 (Berkeley) 1/5/94
  1108. // Frequency of the clock ticks reported by times(). Deprecated - use
  1109. // sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.)
  1110. // $OpenBSD: _time.h,v 1.9 2017/12/18 05:51:53 cheloha Exp $
  1111. // Copyright (c) 1982, 1986, 1993
  1112. // The Regents of the University of California. All rights reserved.
  1113. //
  1114. // Redistribution and use in source and binary forms, with or without
  1115. // modification, are permitted provided that the following conditions
  1116. // are met:
  1117. // 1. Redistributions of source code must retain the above copyright
  1118. // notice, this list of conditions and the following disclaimer.
  1119. // 2. Redistributions in binary form must reproduce the above copyright
  1120. // notice, this list of conditions and the following disclaimer in the
  1121. // documentation and/or other materials provided with the distribution.
  1122. // 3. Neither the name of the University nor the names of its contributors
  1123. // may be used to endorse or promote products derived from this software
  1124. // without specific prior written permission.
  1125. //
  1126. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1127. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1128. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1129. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1130. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1131. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1132. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1133. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1134. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1135. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1136. // SUCH DAMAGE.
  1137. // Per-process and per-thread clocks encode the PID or TID into the
  1138. // high bits, with the type in the bottom bits
  1139. // Structure defined by POSIX 1003.1b to be like a itimerval,
  1140. // but with timespecs. Used in the timer_*() system calls.
  1141. type Itimerspec = struct {
  1142. Fit_interval struct {
  1143. Ftv_sec Time_t
  1144. Ftv_nsec int64
  1145. }
  1146. Fit_value struct {
  1147. Ftv_sec Time_t
  1148. Ftv_nsec int64
  1149. }
  1150. } /* _time.h:56:1 */
  1151. type Locale_t = uintptr /* time.h:107:14 */
  1152. type Tm = struct {
  1153. Ftm_sec int32
  1154. Ftm_min int32
  1155. Ftm_hour int32
  1156. Ftm_mday int32
  1157. Ftm_mon int32
  1158. Ftm_year int32
  1159. Ftm_wday int32
  1160. Ftm_yday int32
  1161. Ftm_isdst int32
  1162. F__ccgo_pad1 [4]byte
  1163. Ftm_gmtoff int64
  1164. Ftm_zone uintptr
  1165. } /* time.h:111:1 */
  1166. // $OpenBSD: signal.h,v 1.29 2018/04/18 16:05:20 deraadt Exp $
  1167. // $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $
  1168. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1169. // The Regents of the University of California. All rights reserved.
  1170. // (c) UNIX System Laboratories, Inc.
  1171. // All or some portions of this file are derived from material licensed
  1172. // to the University of California by American Telephone and Telegraph
  1173. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1174. // the permission of UNIX System Laboratories, Inc.
  1175. //
  1176. // Redistribution and use in source and binary forms, with or without
  1177. // modification, are permitted provided that the following conditions
  1178. // are met:
  1179. // 1. Redistributions of source code must retain the above copyright
  1180. // notice, this list of conditions and the following disclaimer.
  1181. // 2. Redistributions in binary form must reproduce the above copyright
  1182. // notice, this list of conditions and the following disclaimer in the
  1183. // documentation and/or other materials provided with the distribution.
  1184. // 3. Neither the name of the University nor the names of its contributors
  1185. // may be used to endorse or promote products derived from this software
  1186. // without specific prior written permission.
  1187. //
  1188. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1189. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1190. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1191. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1192. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1193. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1194. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1195. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1196. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1197. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1198. // SUCH DAMAGE.
  1199. //
  1200. // @(#)signal.h 8.2 (Berkeley) 1/21/94
  1201. // $OpenBSD: signal.h,v 1.9 2016/05/10 18:39:42 deraadt Exp $
  1202. // $NetBSD: signal.h,v 1.2 2003/04/28 23:16:17 bjh21 Exp $
  1203. // Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
  1204. // All rights reserved.
  1205. //
  1206. // Redistribution and use in source and binary forms, with or without
  1207. // modification, are permitted provided that the following conditions
  1208. // are met:
  1209. // 1. Redistributions of source code must retain the above copyright
  1210. // notice, this list of conditions and the following disclaimer.
  1211. // 2. Redistributions in binary form must reproduce the above copyright
  1212. // notice, this list of conditions and the following disclaimer in the
  1213. // documentation and/or other materials provided with the distribution.
  1214. // 3. Neither the name of the University nor the names of its contributors
  1215. // may be used to endorse or promote products derived from this software
  1216. // without specific prior written permission.
  1217. //
  1218. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1219. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1220. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1221. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1222. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1223. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1224. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1225. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1226. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1227. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1228. // SUCH DAMAGE.
  1229. //
  1230. // @(#)signal.h 7.16 (Berkeley) 3/17/91
  1231. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  1232. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  1233. // Copyright (c) 1991, 1993
  1234. // The Regents of the University of California. All rights reserved.
  1235. //
  1236. // This code is derived from software contributed to Berkeley by
  1237. // Berkeley Software Design, Inc.
  1238. //
  1239. // Redistribution and use in source and binary forms, with or without
  1240. // modification, are permitted provided that the following conditions
  1241. // are met:
  1242. // 1. Redistributions of source code must retain the above copyright
  1243. // notice, this list of conditions and the following disclaimer.
  1244. // 2. Redistributions in binary form must reproduce the above copyright
  1245. // notice, this list of conditions and the following disclaimer in the
  1246. // documentation and/or other materials provided with the distribution.
  1247. // 3. Neither the name of the University nor the names of its contributors
  1248. // may be used to endorse or promote products derived from this software
  1249. // without specific prior written permission.
  1250. //
  1251. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1252. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1253. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1254. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1255. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1256. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1257. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1258. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1259. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1260. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1261. // SUCH DAMAGE.
  1262. //
  1263. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  1264. type Sig_atomic_t = int32 /* signal.h:40:13 */
  1265. // Information pushed on stack when a signal is delivered.
  1266. // This is used by the kernel to restore state following
  1267. // execution of the signal handler. It is also made available
  1268. // to the handler to allow it to restore state properly if
  1269. // a non-standard exit is performed.
  1270. type Sigcontext = struct {
  1271. Fsc_rdi int64
  1272. Fsc_rsi int64
  1273. Fsc_rdx int64
  1274. Fsc_rcx int64
  1275. Fsc_r8 int64
  1276. Fsc_r9 int64
  1277. Fsc_r10 int64
  1278. Fsc_r11 int64
  1279. Fsc_r12 int64
  1280. Fsc_r13 int64
  1281. Fsc_r14 int64
  1282. Fsc_r15 int64
  1283. Fsc_rbp int64
  1284. Fsc_rbx int64
  1285. Fsc_rax int64
  1286. Fsc_gs int64
  1287. Fsc_fs int64
  1288. Fsc_es int64
  1289. Fsc_ds int64
  1290. Fsc_trapno int64
  1291. Fsc_err int64
  1292. Fsc_rip int64
  1293. Fsc_cs int64
  1294. Fsc_rflags int64
  1295. Fsc_rsp int64
  1296. Fsc_ss int64
  1297. Fsc_fpstate uintptr
  1298. F__sc_unused int32
  1299. Fsc_mask int32
  1300. Fsc_cookie int64
  1301. } /* signal.h:54:1 */
  1302. // Language spec says we must list exactly one parameter, even though we
  1303. // actually supply three. Ugh!
  1304. // $OpenBSD: siginfo.h,v 1.12 2017/04/07 04:48:44 guenther Exp $
  1305. // Copyright (c) 1997 Theo de Raadt
  1306. // All rights reserved.
  1307. //
  1308. // Redistribution and use in source and binary forms, with or without
  1309. // modification, are permitted provided that the following conditions
  1310. // are met:
  1311. // 1. Redistributions of source code must retain the above copyright
  1312. // notice, this list of conditions and the following disclaimer.
  1313. // 2. Redistributions in binary form must reproduce the above copyright
  1314. // notice, this list of conditions and the following disclaimer in the
  1315. // documentation and/or other materials provided with the distribution.
  1316. //
  1317. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1318. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1319. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1320. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1321. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1322. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1323. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1324. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1325. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1326. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1327. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  1328. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  1329. // Copyright (c) 1991, 1993
  1330. // The Regents of the University of California. All rights reserved.
  1331. //
  1332. // This code is derived from software contributed to Berkeley by
  1333. // Berkeley Software Design, Inc.
  1334. //
  1335. // Redistribution and use in source and binary forms, with or without
  1336. // modification, are permitted provided that the following conditions
  1337. // are met:
  1338. // 1. Redistributions of source code must retain the above copyright
  1339. // notice, this list of conditions and the following disclaimer.
  1340. // 2. Redistributions in binary form must reproduce the above copyright
  1341. // notice, this list of conditions and the following disclaimer in the
  1342. // documentation and/or other materials provided with the distribution.
  1343. // 3. Neither the name of the University nor the names of its contributors
  1344. // may be used to endorse or promote products derived from this software
  1345. // without specific prior written permission.
  1346. //
  1347. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1348. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1349. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1350. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1351. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1352. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1353. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1354. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1355. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1356. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1357. // SUCH DAMAGE.
  1358. //
  1359. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  1360. type Sigval = struct {
  1361. F__ccgo_pad1 [0]uint64
  1362. Fsival_int int32
  1363. F__ccgo_pad2 [4]byte
  1364. } /* siginfo.h:33:1 */
  1365. // Negative signal codes are reserved for future use for
  1366. // user generated signals.
  1367. // The machine dependent signal codes (SIGILL, SIGFPE,
  1368. // SIGSEGV, and SIGBUS)
  1369. // SIGTRAP signal codes
  1370. // SIGCHLD signal codes
  1371. // $OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $
  1372. // $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $
  1373. // Copyright (c) 1982, 1986, 1993
  1374. // The Regents of the University of California. All rights reserved.
  1375. //
  1376. // Redistribution and use in source and binary forms, with or without
  1377. // modification, are permitted provided that the following conditions
  1378. // are met:
  1379. // 1. Redistributions of source code must retain the above copyright
  1380. // notice, this list of conditions and the following disclaimer.
  1381. // 2. Redistributions in binary form must reproduce the above copyright
  1382. // notice, this list of conditions and the following disclaimer in the
  1383. // documentation and/or other materials provided with the distribution.
  1384. // 3. Neither the name of the University nor the names of its contributors
  1385. // may be used to endorse or promote products derived from this software
  1386. // without specific prior written permission.
  1387. //
  1388. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1389. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1390. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1391. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1392. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1393. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1394. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1395. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1396. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1397. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1398. // SUCH DAMAGE.
  1399. //
  1400. // @(#)time.h 8.2 (Berkeley) 7/10/94
  1401. type Siginfo_t = struct {
  1402. Fsi_signo int32
  1403. Fsi_code int32
  1404. Fsi_errno int32
  1405. F__ccgo_pad1 [4]byte
  1406. F_data struct {
  1407. F__ccgo_pad1 [0]uint64
  1408. F_pad [29]int32
  1409. F__ccgo_pad2 [4]byte
  1410. }
  1411. } /* siginfo.h:173:3 */
  1412. // Signal vector "template" used in sigaction call.
  1413. type Sigaction = struct {
  1414. F__sigaction_u struct{ F__sa_handler uintptr }
  1415. Fsa_mask Sigset_t
  1416. Fsa_flags int32
  1417. } /* signal.h:112:1 */
  1418. // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler.
  1419. // Flags for sigprocmask:
  1420. type Sig_t = uintptr /* signal.h:146:14 */ // type of signal function
  1421. // 4.3 compatibility:
  1422. // Signal vector "template" used in sigvec call.
  1423. type Sigvec = struct {
  1424. Fsv_handler uintptr
  1425. Fsv_mask int32
  1426. Fsv_flags int32
  1427. } /* signal.h:152:1 */
  1428. // Macro for converting signal number to a mask suitable for
  1429. // sigblock().
  1430. // Structure used in sigaltstack call.
  1431. type Sigaltstack = struct {
  1432. Fss_sp uintptr
  1433. Fss_size Size_t
  1434. Fss_flags int32
  1435. F__ccgo_pad1 [4]byte
  1436. } /* signal.h:176:9 */
  1437. // Macro for converting signal number to a mask suitable for
  1438. // sigblock().
  1439. // Structure used in sigaltstack call.
  1440. type Stack_t = Sigaltstack /* signal.h:180:3 */
  1441. type Ucontext_t = Sigcontext /* signal.h:190:27 */
  1442. // $OpenBSD: limits.h,v 1.19 2015/01/20 22:09:50 tedu Exp $
  1443. // $NetBSD: limits.h,v 1.7 1994/10/26 00:56:00 cgd Exp $
  1444. // Copyright (c) 1988 The Regents of the University of California.
  1445. // All rights reserved.
  1446. //
  1447. // Redistribution and use in source and binary forms, with or without
  1448. // modification, are permitted provided that the following conditions
  1449. // are met:
  1450. // 1. Redistributions of source code must retain the above copyright
  1451. // notice, this list of conditions and the following disclaimer.
  1452. // 2. Redistributions in binary form must reproduce the above copyright
  1453. // notice, this list of conditions and the following disclaimer in the
  1454. // documentation and/or other materials provided with the distribution.
  1455. // 3. Neither the name of the University nor the names of its contributors
  1456. // may be used to endorse or promote products derived from this software
  1457. // without specific prior written permission.
  1458. //
  1459. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1460. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1461. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1462. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1463. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1464. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1465. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1466. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1467. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1468. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1469. // SUCH DAMAGE.
  1470. //
  1471. // @(#)limits.h 5.9 (Berkeley) 4/3/91
  1472. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  1473. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  1474. // Copyright (c) 1991, 1993
  1475. // The Regents of the University of California. All rights reserved.
  1476. //
  1477. // This code is derived from software contributed to Berkeley by
  1478. // Berkeley Software Design, Inc.
  1479. //
  1480. // Redistribution and use in source and binary forms, with or without
  1481. // modification, are permitted provided that the following conditions
  1482. // are met:
  1483. // 1. Redistributions of source code must retain the above copyright
  1484. // notice, this list of conditions and the following disclaimer.
  1485. // 2. Redistributions in binary form must reproduce the above copyright
  1486. // notice, this list of conditions and the following disclaimer in the
  1487. // documentation and/or other materials provided with the distribution.
  1488. // 3. Neither the name of the University nor the names of its contributors
  1489. // may be used to endorse or promote products derived from this software
  1490. // without specific prior written permission.
  1491. //
  1492. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1493. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1494. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1495. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1496. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1497. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1498. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1499. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1500. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1501. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1502. // SUCH DAMAGE.
  1503. //
  1504. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  1505. // $OpenBSD: limits.h,v 1.10 2012/06/30 20:21:10 guenther Exp $
  1506. // Copyright (c) 2002 Marc Espie.
  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 OPENBSD PROJECT AND CONTRIBUTORS
  1518. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  1519. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  1520. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENBSD
  1521. // PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  1522. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  1523. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1524. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1525. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1526. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  1527. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1528. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  1529. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  1530. // Copyright (c) 1991, 1993
  1531. // The Regents of the University of California. All rights reserved.
  1532. //
  1533. // This code is derived from software contributed to Berkeley by
  1534. // Berkeley Software Design, Inc.
  1535. //
  1536. // Redistribution and use in source and binary forms, with or without
  1537. // modification, are permitted provided that the following conditions
  1538. // are met:
  1539. // 1. Redistributions of source code must retain the above copyright
  1540. // notice, this list of conditions and the following disclaimer.
  1541. // 2. Redistributions in binary form must reproduce the above copyright
  1542. // notice, this list of conditions and the following disclaimer in the
  1543. // documentation and/or other materials provided with the distribution.
  1544. // 3. Neither the name of the University nor the names of its contributors
  1545. // may be used to endorse or promote products derived from this software
  1546. // without specific prior written permission.
  1547. //
  1548. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1549. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1550. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1551. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1552. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1553. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1554. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1555. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1556. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1557. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1558. // SUCH DAMAGE.
  1559. //
  1560. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  1561. // Common definitions for limits.h.
  1562. // Legacy
  1563. // $OpenBSD: limits.h,v 1.6 2015/04/30 13:42:08 millert Exp $
  1564. // Copyright (c) 1988 The Regents of the University of California.
  1565. // All rights reserved.
  1566. //
  1567. // Redistribution and use in source and binary forms, with or without
  1568. // modification, are permitted provided that the following conditions
  1569. // are met:
  1570. // 1. Redistributions of source code must retain the above copyright
  1571. // notice, this list of conditions and the following disclaimer.
  1572. // 2. Redistributions in binary form must reproduce the above copyright
  1573. // notice, this list of conditions and the following disclaimer in the
  1574. // documentation and/or other materials provided with the distribution.
  1575. // 3. Neither the name of the University nor the names of its contributors
  1576. // may be used to endorse or promote products derived from this software
  1577. // without specific prior written permission.
  1578. //
  1579. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1580. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1581. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1582. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1583. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1584. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1585. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1586. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1587. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1588. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1589. // SUCH DAMAGE.
  1590. //
  1591. // @(#)limits.h 7.2 (Berkeley) 6/28/90
  1592. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  1593. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  1594. // Copyright (c) 1991, 1993
  1595. // The Regents of the University of California. All rights reserved.
  1596. //
  1597. // This code is derived from software contributed to Berkeley by
  1598. // Berkeley Software Design, Inc.
  1599. //
  1600. // Redistribution and use in source and binary forms, with or without
  1601. // modification, are permitted provided that the following conditions
  1602. // are met:
  1603. // 1. Redistributions of source code must retain the above copyright
  1604. // notice, this list of conditions and the following disclaimer.
  1605. // 2. Redistributions in binary form must reproduce the above copyright
  1606. // notice, this list of conditions and the following disclaimer in the
  1607. // documentation and/or other materials provided with the distribution.
  1608. // 3. Neither the name of the University nor the names of its contributors
  1609. // may be used to endorse or promote products derived from this software
  1610. // without specific prior written permission.
  1611. //
  1612. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1613. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1614. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1615. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1616. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1617. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1618. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1619. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1620. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1621. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1622. // SUCH DAMAGE.
  1623. //
  1624. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  1625. // max value for unsigned long
  1626. // max value for a signed long
  1627. // min value for a signed long
  1628. // max value for unsigned long long
  1629. // max value for a signed long long
  1630. // min value for a signed long long
  1631. // $OpenBSD: syslimits.h,v 1.15 2022/02/22 16:58:08 deraadt Exp $
  1632. // $NetBSD: syslimits.h,v 1.12 1995/10/05 05:26:19 thorpej Exp $
  1633. // Copyright (c) 1988, 1993
  1634. // The Regents of the University of California. All rights reserved.
  1635. //
  1636. // Redistribution and use in source and binary forms, with or without
  1637. // modification, are permitted provided that the following conditions
  1638. // are met:
  1639. // 1. Redistributions of source code must retain the above copyright
  1640. // notice, this list of conditions and the following disclaimer.
  1641. // 2. Redistributions in binary form must reproduce the above copyright
  1642. // notice, this list of conditions and the following disclaimer in the
  1643. // documentation and/or other materials provided with the distribution.
  1644. // 3. Neither the name of the University nor the names of its contributors
  1645. // may be used to endorse or promote products derived from this software
  1646. // without specific prior written permission.
  1647. //
  1648. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1649. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1650. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1651. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1652. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1653. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1654. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1655. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1656. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1657. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1658. // SUCH DAMAGE.
  1659. //
  1660. // @(#)syslimits.h 8.1 (Berkeley) 6/2/93
  1661. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  1662. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  1663. // Copyright (c) 1991, 1993
  1664. // The Regents of the University of California. All rights reserved.
  1665. //
  1666. // This code is derived from software contributed to Berkeley by
  1667. // Berkeley Software Design, Inc.
  1668. //
  1669. // Redistribution and use in source and binary forms, with or without
  1670. // modification, are permitted provided that the following conditions
  1671. // are met:
  1672. // 1. Redistributions of source code must retain the above copyright
  1673. // notice, this list of conditions and the following disclaimer.
  1674. // 2. Redistributions in binary form must reproduce the above copyright
  1675. // notice, this list of conditions and the following disclaimer in the
  1676. // documentation and/or other materials provided with the distribution.
  1677. // 3. Neither the name of the University nor the names of its contributors
  1678. // may be used to endorse or promote products derived from this software
  1679. // without specific prior written permission.
  1680. //
  1681. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1682. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1683. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1684. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1685. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1686. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1687. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1688. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1689. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1690. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1691. // SUCH DAMAGE.
  1692. //
  1693. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  1694. // $OpenBSD: sched.h,v 1.1 2017/10/15 23:40:33 guenther Exp $
  1695. // sched.h: POSIX 1003.1b Process Scheduling header
  1696. // -
  1697. // Copyright (c) 1996, 1997
  1698. // HD Associates, Inc. All rights reserved.
  1699. //
  1700. // Redistribution and use in source and binary forms, with or without
  1701. // modification, are permitted provided that the following conditions
  1702. // are met:
  1703. // 1. Redistributions of source code must retain the above copyright
  1704. // notice, this list of conditions and the following disclaimer.
  1705. // 2. Redistributions in binary form must reproduce the above copyright
  1706. // notice, this list of conditions and the following disclaimer in the
  1707. // documentation and/or other materials provided with the distribution.
  1708. // 3. All advertising materials mentioning features or use of this software
  1709. // must display the following acknowledgement:
  1710. // This product includes software developed by HD Associates, Inc
  1711. // and Jukka Antero Ukkonen.
  1712. // 4. Neither the name of the author nor the names of any co-contributors
  1713. // may be used to endorse or promote products derived from this software
  1714. // without specific prior written permission.
  1715. //
  1716. // THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES AND CONTRIBUTORS ``AS IS'' AND
  1717. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1718. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1719. // ARE DISCLAIMED. IN NO EVENT SHALL HD ASSOCIATES OR CONTRIBUTORS BE LIABLE
  1720. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1721. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1722. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1723. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1724. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1725. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1726. // SUCH DAMAGE.
  1727. //
  1728. // $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
  1729. // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
  1730. // -
  1731. // Copyright (c) 1982, 1986, 1991, 1993
  1732. // The Regents of the University of California. All rights reserved.
  1733. // (c) UNIX System Laboratories, Inc.
  1734. // All or some portions of this file are derived from material licensed
  1735. // to the University of California by American Telephone and Telegraph
  1736. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1737. // the permission of UNIX System Laboratories, Inc.
  1738. //
  1739. // Redistribution and use in source and binary forms, with or without
  1740. // modification, are permitted provided that the following conditions
  1741. // are met:
  1742. // 1. Redistributions of source code must retain the above copyright
  1743. // notice, this list of conditions and the following disclaimer.
  1744. // 2. Redistributions in binary form must reproduce the above copyright
  1745. // notice, this list of conditions and the following disclaimer in the
  1746. // documentation and/or other materials provided with the distribution.
  1747. // 3. Neither the name of the University nor the names of its contributors
  1748. // may be used to endorse or promote products derived from this software
  1749. // without specific prior written permission.
  1750. //
  1751. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1752. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1753. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1754. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1755. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1756. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1757. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1758. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1759. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1760. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1761. // SUCH DAMAGE.
  1762. //
  1763. // @(#)types.h 8.4 (Berkeley) 1/21/94
  1764. // $OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $
  1765. // $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $
  1766. // Copyright (c) 1989 The Regents of the University of California.
  1767. // All rights reserved.
  1768. //
  1769. // (c) UNIX System Laboratories, Inc.
  1770. // All or some portions of this file are derived from material licensed
  1771. // to the University of California by American Telephone and Telegraph
  1772. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1773. // the permission of UNIX System Laboratories, Inc.
  1774. //
  1775. // Redistribution and use in source and binary forms, with or without
  1776. // modification, are permitted provided that the following conditions
  1777. // are met:
  1778. // 1. Redistributions of source code must retain the above copyright
  1779. // notice, this list of conditions and the following disclaimer.
  1780. // 2. Redistributions in binary form must reproduce the above copyright
  1781. // notice, this list of conditions and the following disclaimer in the
  1782. // documentation and/or other materials provided with the distribution.
  1783. // 3. Neither the name of the University nor the names of its contributors
  1784. // may be used to endorse or promote products derived from this software
  1785. // without specific prior written permission.
  1786. //
  1787. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1788. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1789. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1790. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1791. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1792. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1793. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1794. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1795. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1796. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1797. // SUCH DAMAGE.
  1798. //
  1799. // @(#)time.h 5.12 (Berkeley) 3/9/91
  1800. // Scheduling policies
  1801. type Sched_param = struct{ Fsched_priority int32 } /* sched.h:51:1 */
  1802. type Pthread_once = struct {
  1803. Fstate int32
  1804. F__ccgo_pad1 [4]byte
  1805. Fmutex Pthread_mutex_t
  1806. } /* pthread.h:101:1 */
  1807. // Primitive system data type definitions required by P1003.1c.
  1808. //
  1809. // Note that P1003.1c specifies that there are no defined comparison
  1810. // or assignment operators for the types pthread_attr_t, pthread_cond_t,
  1811. // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t.
  1812. type Pthread_t = uintptr /* pthread.h:112:26 */
  1813. type Pthread_attr_t = uintptr /* pthread.h:113:30 */
  1814. type Pthread_mutex_t = uintptr /* pthread.h:114:39 */
  1815. type Pthread_mutexattr_t = uintptr /* pthread.h:115:35 */
  1816. type Pthread_cond_t = uintptr /* pthread.h:116:30 */
  1817. type Pthread_condattr_t = uintptr /* pthread.h:117:34 */
  1818. type Pthread_key_t = int32 /* pthread.h:118:16 */
  1819. type Pthread_once_t = Pthread_once /* pthread.h:119:30 */
  1820. type Pthread_rwlock_t = uintptr /* pthread.h:120:32 */
  1821. type Pthread_rwlockattr_t = uintptr /* pthread.h:121:35 */
  1822. type Pthread_barrier_t = uintptr /* pthread.h:122:33 */
  1823. type Pthread_barrierattr_t = uintptr /* pthread.h:123:36 */
  1824. type Pthread_spinlock_t = uintptr /* pthread.h:124:33 */
  1825. // Additional type definitions:
  1826. //
  1827. // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for
  1828. // use in header symbols.
  1829. type Pthread_addr_t = uintptr /* pthread.h:132:14 */
  1830. type Pthread_startroutine_t = uintptr /* pthread.h:133:14 */
  1831. var _ int8 /* gen.c:2:13: */