pthread_openbsd_arm64.go 102 KB

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