pthread_openbsd_386.go 102 KB

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