pthread_freebsd_386.go 94 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977
  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_freebsd_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. BIG_ENDIAN = 4321 // _endian.h:70:1:
  15. BYTE_ORDER = 1234 // _endian.h:72:1:
  16. CLK_TCK = 128 // time.h:56:1:
  17. CLOCKS_PER_SEC = 128 // time.h:60:1:
  18. CLOCK_BOOTTIME = 5 // _clock_id.h:92:1:
  19. CLOCK_MONOTONIC = 4 // _clock_id.h:67:1:
  20. CLOCK_MONOTONIC_COARSE = 12 // _clock_id.h:94:1:
  21. CLOCK_MONOTONIC_FAST = 12 // _clock_id.h:79:1:
  22. CLOCK_MONOTONIC_PRECISE = 11 // _clock_id.h:78:1:
  23. CLOCK_PROCESS_CPUTIME_ID = 15 // _clock_id.h:85:1:
  24. CLOCK_PROF = 2 // _clock_id.h:64:1:
  25. CLOCK_REALTIME = 0 // _clock_id.h:60:1:
  26. CLOCK_REALTIME_COARSE = 10 // _clock_id.h:93:1:
  27. CLOCK_REALTIME_FAST = 10 // _clock_id.h:77:1:
  28. CLOCK_REALTIME_PRECISE = 9 // _clock_id.h:76:1:
  29. CLOCK_SECOND = 13 // _clock_id.h:80:1:
  30. CLOCK_THREAD_CPUTIME_ID = 14 // _clock_id.h:84:1:
  31. CLOCK_UPTIME = 5 // _clock_id.h:74:1:
  32. CLOCK_UPTIME_FAST = 8 // _clock_id.h:68:1:
  33. CLOCK_UPTIME_PRECISE = 7 // _clock_id.h:75:1:
  34. CLOCK_VIRTUAL = 1 // _clock_id.h:63:1:
  35. CPUSET_DEFAULT = 0 // cpuset.h:119:1:
  36. CPUSET_INVALID = -1 // cpuset.h:118:1:
  37. CPU_LEVEL_CPUSET = 2 // cpuset.h:100:1:
  38. CPU_LEVEL_ROOT = 1 // cpuset.h:99:1:
  39. CPU_LEVEL_WHICH = 3 // cpuset.h:101:1:
  40. CPU_MAXSIZE = 256 // _cpuset.h:43:1:
  41. CPU_SETSIZE = 256 // _cpuset.h:46:1:
  42. CPU_WHICH_CPUSET = 3 // cpuset.h:108:1:
  43. CPU_WHICH_DOMAIN = 6 // cpuset.h:111:1:
  44. CPU_WHICH_INTRHANDLER = 7 // cpuset.h:112:1:
  45. CPU_WHICH_IRQ = 4 // cpuset.h:109:1:
  46. CPU_WHICH_ITHREAD = 8 // cpuset.h:113:1:
  47. CPU_WHICH_JAIL = 5 // cpuset.h:110:1:
  48. CPU_WHICH_PID = 2 // cpuset.h:107:1:
  49. CPU_WHICH_TID = 1 // cpuset.h:106:1:
  50. FD_SETSIZE = 1024 // select.h:61:1:
  51. LITTLE_ENDIAN = 1234 // _endian.h:69:1:
  52. PDP_ENDIAN = 3412 // _endian.h:71:1:
  53. PTHREAD_BARRIER_SERIAL_THREAD = -1 // pthread.h:58:1:
  54. PTHREAD_CANCEL_ASYNCHRONOUS = 2 // pthread.h:85:1:
  55. PTHREAD_CANCEL_DEFERRED = 0 // pthread.h:84:1:
  56. PTHREAD_CANCEL_DISABLE = 1 // pthread.h:83:1:
  57. PTHREAD_CANCEL_ENABLE = 0 // pthread.h:82:1:
  58. PTHREAD_CREATE_DETACHED = 1 // pthread.h:68:1:
  59. PTHREAD_CREATE_JOINABLE = 0 // pthread.h:69:1:
  60. PTHREAD_DESTRUCTOR_ITERATIONS = 4 // pthread.h:54:1:
  61. PTHREAD_DETACHED = 0x1 // pthread.h:63:1:
  62. PTHREAD_DONE_INIT = 1 // pthread.h:92:1:
  63. PTHREAD_EXPLICIT_SCHED = 0 // pthread.h:71:1:
  64. PTHREAD_INHERIT_SCHED = 0x4 // pthread.h:65:1:
  65. PTHREAD_KEYS_MAX = 256 // pthread.h:55:1:
  66. PTHREAD_MUTEX_ROBUST = 1 // pthread.h:141:1:
  67. PTHREAD_MUTEX_STALLED = 0 // pthread.h:140:1:
  68. PTHREAD_NEEDS_INIT = 0 // pthread.h:91:1:
  69. PTHREAD_NOFLOAT = 0x8 // pthread.h:66:1:
  70. PTHREAD_PRIO_INHERIT = 1 // pthread.h:117:1:
  71. PTHREAD_PRIO_NONE = 0 // pthread.h:116:1:
  72. PTHREAD_PRIO_PROTECT = 2 // pthread.h:118:1:
  73. PTHREAD_PROCESS_PRIVATE = 0 // pthread.h:76:1:
  74. PTHREAD_PROCESS_SHARED = 1 // pthread.h:77:1:
  75. PTHREAD_SCOPE_PROCESS = 0 // pthread.h:70:1:
  76. PTHREAD_SCOPE_SYSTEM = 0x2 // pthread.h:64:1:
  77. PTHREAD_STACK_MIN = 2048 // pthread.h:56:1:
  78. PTHREAD_THREADS_MAX = 4294967295 // pthread.h:57:1:
  79. SCHED_FIFO = 1 // sched.h:241:1:
  80. SCHED_OTHER = 2 // sched.h:242:1:
  81. SCHED_RR = 3 // sched.h:243:1:
  82. TIMER_ABSTIME = 0x1 // _clock_id.h:101:1:
  83. TIMER_RELTIME = 0x0 // _clock_id.h:98:1:
  84. TIME_UTC = 1 // time.h:188:1:
  85. X_ACCMODE_T_DECLARED = 0 // types.h:166:1:
  86. X_BIG_ENDIAN = 4321 // _endian.h:47:1:
  87. X_BLKCNT_T_DECLARED = 0 // types.h:90:1:
  88. X_BLKSIZE_T_DECLARED = 0 // types.h:81:1:
  89. X_BYTE_ORDER = 1234 // _endian.h:40:1:
  90. X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1:
  91. X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1:
  92. X_CLOCKID_T_DECLARED = 0 // types.h:100:1:
  93. X_CLOCK_T_DECLARED = 0 // types.h:95:1:
  94. X_DEV_T_DECLARED = 0 // types.h:108:1:
  95. X_FFLAGS_T_DECLARED = 0 // types.h:113:1:
  96. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  97. X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1:
  98. X_FTRUNCATE_DECLARED = 0 // types.h:417:1:
  99. X_GID_T_DECLARED = 0 // types.h:126:1:
  100. X_ID_T_DECLARED = 0 // types.h:141:1:
  101. X_ILP32 = 1 // <predefined>:1:1:
  102. X_INO_T_DECLARED = 0 // types.h:146:1:
  103. X_INT16_T_DECLARED = 0 // _stdint.h:42:1:
  104. X_INT32_T_DECLARED = 0 // _stdint.h:47:1:
  105. X_INT64_T_DECLARED = 0 // _stdint.h:52:1:
  106. X_INT8_T_DECLARED = 0 // _stdint.h:37:1:
  107. X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1:
  108. X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1:
  109. X_IN_ADDR_T_DECLARED = 0 // types.h:131:1:
  110. X_IN_PORT_T_DECLARED = 0 // types.h:136:1:
  111. X_KEY_T_DECLARED = 0 // types.h:151:1:
  112. X_LITTLE_ENDIAN = 1234 // _endian.h:46:1:
  113. X_LOCALE_T_DEFINED = 0 // _time.h:34:1:
  114. X_LSEEK_DECLARED = 0 // types.h:421:1:
  115. X_LWPID_T_DECLARED = 0 // types.h:156:1:
  116. X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1:
  117. X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
  118. X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
  119. X_MMAP_DECLARED = 0 // types.h:425:1:
  120. X_MODE_T_DECLARED = 0 // types.h:161:1:
  121. X_MQD_T_DECLARED = 0 // types.h:227:1:
  122. X_NLINK_T_DECLARED = 0 // types.h:171:1:
  123. X_Nonnull = 0 // cdefs.h:790:1:
  124. X_Null_unspecified = 0 // cdefs.h:792:1:
  125. X_Nullable = 0 // cdefs.h:791:1:
  126. X_OFF64_T_DECLARED = 0 // types.h:181:1:
  127. X_OFF_T_DECLARED = 0 // types.h:176:1:
  128. X_PDP_ENDIAN = 3412 // _endian.h:48:1:
  129. X_PID_T_DECLARED = 0 // types.h:186:1:
  130. X_PTHREAD_H_ = 0 // pthread.h:38:1:
  131. X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
  132. X_QUAD_HIGHWORD = 1 // _endian.h:55:1:
  133. X_QUAD_LOWWORD = 0 // _endian.h:56:1:
  134. X_RLIM_T_DECLARED = 0 // types.h:193:1:
  135. X_SCHED_H_ = 0 // sched.h:65:1:
  136. X_SELECT_DECLARED = 0 // select.h:103:1:
  137. X_SIGSET_T_DECLARED = 0 // select.h:50:1:
  138. X_SIG_MAXSIG = 128 // _sigset.h:47:1:
  139. X_SIG_WORDS = 4 // _sigset.h:46:1:
  140. X_SIZE_T_DECLARED = 0 // types.h:202:1:
  141. X_SSIZE_T_DECLARED = 0 // types.h:207:1:
  142. X_SUSECONDS_T_DECLARED = 0 // types.h:212:1:
  143. X_SYS_BITSET_H_ = 0 // bitset.h:35:1:
  144. X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
  145. X_SYS_CPUSET_H_ = 0 // cpuset.h:35:1:
  146. X_SYS_SELECT_H_ = 0 // select.h:35:1:
  147. X_SYS_SYS__CLOCK_ID_H = 0 // _clock_id.h:40:1:
  148. X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1:
  149. X_SYS_TYPES_H_ = 0 // types.h:41:1:
  150. X_SYS__BITSET_H_ = 0 // _bitset.h:35:1:
  151. X_SYS__CPUSET_H_ = 0 // _cpuset.h:35:1:
  152. X_SYS__ENDIAN_H_ = 0 // _endian.h:33:1:
  153. X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
  154. X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
  155. X_SYS__STDINT_H_ = 0 // _stdint.h:33:1:
  156. X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
  157. X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1:
  158. X_SYS__TYPES_H_ = 0 // _types.h:32:1:
  159. X_TIMER_T_DECLARED = 0 // types.h:222:1:
  160. X_TIME_H_ = 0 // time.h:44:1:
  161. X_TIME_T_DECLARED = 0 // types.h:217:1:
  162. X_TRUNCATE_DECLARED = 0 // types.h:429:1:
  163. X_UID_T_DECLARED = 0 // types.h:234:1:
  164. X_UINT16_T_DECLARED = 0 // _stdint.h:62:1:
  165. X_UINT32_T_DECLARED = 0 // _stdint.h:67:1:
  166. X_UINT64_T_DECLARED = 0 // _stdint.h:72:1:
  167. X_UINT8_T_DECLARED = 0 // _stdint.h:57:1:
  168. X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1:
  169. X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1:
  170. X_USECONDS_T_DECLARED = 0 // types.h:239:1:
  171. X_XLOCALE_LOCALE1_H = 0 // _time.h:44:1:
  172. I386 = 1 // <predefined>:335:1:
  173. Unix = 1 // <predefined>:336:1:
  174. )
  175. // Run-time invariant values:
  176. // Flags for threads and thread attributes.
  177. // Values for process shared/private attributes.
  178. // Flags for cancelling threads
  179. // Flags for once initialization.
  180. // Static once initialization values.
  181. // Static initialization values.
  182. // Default attribute arguments (draft 4, deprecated).
  183. // Mutex types (Single UNIX Specification, Version 2, 1997).
  184. //
  185. // Note that a mutex attribute with one of the following types:
  186. //
  187. // PTHREAD_MUTEX_NORMAL
  188. // PTHREAD_MUTEX_RECURSIVE
  189. //
  190. // will deviate from POSIX specified semantics.
  191. const ( /* pthread.h:130:1: */
  192. PTHREAD_MUTEX_ERRORCHECK = 1 // Default POSIX mutex
  193. PTHREAD_MUTEX_RECURSIVE = 2 // Recursive mutex
  194. PTHREAD_MUTEX_NORMAL = 3 // No error checking
  195. PTHREAD_MUTEX_ADAPTIVE_NP = 4 // Adaptive mutex, spins briefly before blocking on lock
  196. PTHREAD_MUTEX_TYPE_MAX = 5
  197. )
  198. type Ptrdiff_t = int32 /* <builtin>:3:26 */
  199. type Size_t = uint32 /* <builtin>:9:23 */
  200. type Wchar_t = int32 /* <builtin>:15:24 */
  201. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  202. type X__float128 = float64 /* <builtin>:47:21 */
  203. type Pthread_once = struct {
  204. Fstate int32
  205. Fmutex Pthread_mutex_t
  206. } /* _pthreadtypes.h:52:1 */
  207. // Primitive system data type definitions required by P1003.1c.
  208. //
  209. // Note that P1003.1c specifies that there are no defined comparison
  210. // or assignment operators for the types pthread_attr_t, pthread_cond_t,
  211. // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t.
  212. type Pthread_t = uintptr /* _pthreadtypes.h:67:26 */
  213. type Pthread_attr_t = uintptr /* _pthreadtypes.h:70:30 */
  214. type Pthread_mutex_t = uintptr /* _pthreadtypes.h:71:31 */
  215. type Pthread_mutexattr_t = uintptr /* _pthreadtypes.h:72:35 */
  216. type Pthread_cond_t = uintptr /* _pthreadtypes.h:73:30 */
  217. type Pthread_condattr_t = uintptr /* _pthreadtypes.h:74:34 */
  218. type Pthread_key_t = int32 /* _pthreadtypes.h:75:20 */
  219. type Pthread_once_t = Pthread_once /* _pthreadtypes.h:76:30 */
  220. type Pthread_rwlock_t = uintptr /* _pthreadtypes.h:77:32 */
  221. type Pthread_rwlockattr_t = uintptr /* _pthreadtypes.h:78:35 */
  222. type Pthread_barrier_t = uintptr /* _pthreadtypes.h:79:33 */
  223. type Pthread_barrierattr_t = uintptr /* _pthreadtypes.h:80:36 */
  224. type Pthread_spinlock_t = uintptr /* _pthreadtypes.h:81:33 */
  225. // Additional type definitions:
  226. //
  227. // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for
  228. // use in header symbols.
  229. type Pthread_addr_t = uintptr /* _pthreadtypes.h:89:14 */
  230. type Pthread_startroutine_t = uintptr /* _pthreadtypes.h:90:14 */
  231. // -
  232. // This file is in the public domain.
  233. // $FreeBSD$
  234. // -
  235. // SPDX-License-Identifier: BSD-3-Clause
  236. //
  237. // Copyright (c) 1988, 1993
  238. // The Regents of the University of California. All rights reserved.
  239. //
  240. // Redistribution and use in source and binary forms, with or without
  241. // modification, are permitted provided that the following conditions
  242. // are met:
  243. // 1. Redistributions of source code must retain the above copyright
  244. // notice, this list of conditions and the following disclaimer.
  245. // 2. Redistributions in binary form must reproduce the above copyright
  246. // notice, this list of conditions and the following disclaimer in the
  247. // documentation and/or other materials provided with the distribution.
  248. // 3. Neither the name of the University nor the names of its contributors
  249. // may be used to endorse or promote products derived from this software
  250. // without specific prior written permission.
  251. //
  252. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  253. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  254. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  255. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  256. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  257. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  258. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  259. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  260. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  261. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  262. // SUCH DAMAGE.
  263. //
  264. // @(#)limits.h 8.3 (Berkeley) 1/4/94
  265. // $FreeBSD$
  266. // According to ANSI (section 2.2.4.2), the values below must be usable by
  267. // #if preprocessing directives. Additionally, the expression must have the
  268. // same type as would an expression that is an object of the corresponding
  269. // type converted according to the integral promotions. The subtraction for
  270. // INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
  271. // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
  272. // max value for an unsigned long long
  273. // Minimum signal stack size.
  274. // -
  275. // This file is in the public domain.
  276. // $FreeBSD$
  277. // -
  278. // SPDX-License-Identifier: BSD-4-Clause
  279. //
  280. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  281. // Copyright (c) 1990, 1993
  282. // The Regents of the University of California. All rights reserved.
  283. //
  284. // Redistribution and use in source and binary forms, with or without
  285. // modification, are permitted provided that the following conditions
  286. // are met:
  287. // 1. Redistributions of source code must retain the above copyright
  288. // notice, this list of conditions and the following disclaimer.
  289. // 2. Redistributions in binary form must reproduce the above copyright
  290. // notice, this list of conditions and the following disclaimer in the
  291. // documentation and/or other materials provided with the distribution.
  292. // 3. All advertising materials mentioning features or use of this software
  293. // must display the following acknowledgement:
  294. // This product includes software developed by the University of
  295. // California, Berkeley and its contributors.
  296. // 4. Neither the name of the University nor the names of its contributors
  297. // may be used to endorse or promote products derived from this software
  298. // without specific prior written permission.
  299. //
  300. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  301. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  302. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  303. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  304. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  305. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  306. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  307. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  308. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  309. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  310. // SUCH DAMAGE.
  311. //
  312. // From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
  313. // From: @(#)types.h 8.3 (Berkeley) 1/5/94
  314. // $FreeBSD$
  315. // -
  316. // This file is in the public domain.
  317. // $FreeBSD$
  318. // -
  319. // SPDX-License-Identifier: BSD-3-Clause
  320. //
  321. // Copyright (c) 1988, 1993
  322. // The Regents of the University of California. All rights reserved.
  323. //
  324. // Redistribution and use in source and binary forms, with or without
  325. // modification, are permitted provided that the following conditions
  326. // are met:
  327. // 1. Redistributions of source code must retain the above copyright
  328. // notice, this list of conditions and the following disclaimer.
  329. // 2. Redistributions in binary form must reproduce the above copyright
  330. // notice, this list of conditions and the following disclaimer in the
  331. // documentation and/or other materials provided with the distribution.
  332. // 3. Neither the name of the University nor the names of its contributors
  333. // may be used to endorse or promote products derived from this software
  334. // without specific prior written permission.
  335. //
  336. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  337. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  338. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  339. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  340. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  341. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  342. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  343. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  344. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  345. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  346. // SUCH DAMAGE.
  347. //
  348. // @(#)limits.h 8.3 (Berkeley) 1/4/94
  349. // $FreeBSD$
  350. // Basic types upon which most other types are built.
  351. type X__int8_t = int8 /* _types.h:55:22 */
  352. type X__uint8_t = uint8 /* _types.h:56:24 */
  353. type X__int16_t = int16 /* _types.h:57:17 */
  354. type X__uint16_t = uint16 /* _types.h:58:25 */
  355. type X__int32_t = int32 /* _types.h:59:15 */
  356. type X__uint32_t = uint32 /* _types.h:60:23 */
  357. type X__int64_t = int64 /* _types.h:66:20 */
  358. type X__uint64_t = uint64 /* _types.h:68:28 */
  359. // Standard type definitions.
  360. type X__clock_t = uint32 /* _types.h:84:23 */
  361. type X__critical_t = X__int32_t /* _types.h:85:19 */
  362. type X__double_t = float64 /* _types.h:87:21 */
  363. type X__float_t = float64 /* _types.h:88:21 */
  364. type X__intfptr_t = X__int32_t /* _types.h:90:19 */
  365. type X__intptr_t = X__int32_t /* _types.h:91:19 */
  366. type X__intmax_t = X__int64_t /* _types.h:93:19 */
  367. type X__int_fast8_t = X__int32_t /* _types.h:94:19 */
  368. type X__int_fast16_t = X__int32_t /* _types.h:95:19 */
  369. type X__int_fast32_t = X__int32_t /* _types.h:96:19 */
  370. type X__int_fast64_t = X__int64_t /* _types.h:97:19 */
  371. type X__int_least8_t = X__int8_t /* _types.h:98:18 */
  372. type X__int_least16_t = X__int16_t /* _types.h:99:19 */
  373. type X__int_least32_t = X__int32_t /* _types.h:100:19 */
  374. type X__int_least64_t = X__int64_t /* _types.h:101:19 */
  375. type X__ptrdiff_t = X__int32_t /* _types.h:112:19 */
  376. type X__register_t = X__int32_t /* _types.h:113:19 */
  377. type X__segsz_t = X__int32_t /* _types.h:114:19 */
  378. type X__size_t = X__uint32_t /* _types.h:115:20 */
  379. type X__ssize_t = X__int32_t /* _types.h:116:19 */
  380. type X__time_t = X__int32_t /* _types.h:117:19 */
  381. type X__uintfptr_t = X__uint32_t /* _types.h:118:20 */
  382. type X__uintptr_t = X__uint32_t /* _types.h:119:20 */
  383. type X__uintmax_t = X__uint64_t /* _types.h:121:20 */
  384. type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */
  385. type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */
  386. type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */
  387. type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */
  388. type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */
  389. type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
  390. type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
  391. type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
  392. type X__u_register_t = X__uint32_t /* _types.h:136:20 */
  393. type X__vm_offset_t = X__uint32_t /* _types.h:137:20 */
  394. type X__vm_paddr_t = X__uint64_t /* _types.h:138:20 */
  395. type X__vm_size_t = X__uint32_t /* _types.h:139:20 */
  396. type X___wchar_t = int32 /* _types.h:141:14 */
  397. // -
  398. // SPDX-License-Identifier: BSD-3-Clause
  399. //
  400. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  401. // The Regents of the University of California. All rights reserved.
  402. // (c) UNIX System Laboratories, Inc.
  403. // All or some portions of this file are derived from material licensed
  404. // to the University of California by American Telephone and Telegraph
  405. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  406. // the permission of UNIX System Laboratories, 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. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  433. // $FreeBSD$
  434. // sigset_t macros.
  435. type X__sigset = struct{ F__bits [4]X__uint32_t } /* _sigset.h:53:9 */
  436. // -
  437. // SPDX-License-Identifier: BSD-3-Clause
  438. //
  439. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  440. // The Regents of the University of California. All rights reserved.
  441. // (c) UNIX System Laboratories, Inc.
  442. // All or some portions of this file are derived from material licensed
  443. // to the University of California by American Telephone and Telegraph
  444. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  445. // the permission of UNIX System Laboratories, Inc.
  446. //
  447. // Redistribution and use in source and binary forms, with or without
  448. // modification, are permitted provided that the following conditions
  449. // are met:
  450. // 1. Redistributions of source code must retain the above copyright
  451. // notice, this list of conditions and the following disclaimer.
  452. // 2. Redistributions in binary form must reproduce the above copyright
  453. // notice, this list of conditions and the following disclaimer in the
  454. // documentation and/or other materials provided with the distribution.
  455. // 3. Neither the name of the University nor the names of its contributors
  456. // may be used to endorse or promote products derived from this software
  457. // without specific prior written permission.
  458. //
  459. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  460. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  461. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  462. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  463. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  464. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  465. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  466. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  467. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  468. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  469. // SUCH DAMAGE.
  470. //
  471. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  472. // $FreeBSD$
  473. // sigset_t macros.
  474. type X__sigset_t = X__sigset /* _sigset.h:55:3 */
  475. // -
  476. // Copyright (c) 2021 The FreeBSD Foundation
  477. //
  478. // This software were developed by Konstantin Belousov <kib@FreeBSD.org>
  479. // under sponsorship from the FreeBSD Foundation.
  480. //
  481. // Redistribution and use in source and binary forms, with or without
  482. // modification, are permitted provided that the following conditions
  483. // are met:
  484. // 1. Redistributions of source code must retain the above copyright
  485. // notice, this list of conditions and the following disclaimer.
  486. // 2. Redistributions in binary form must reproduce the above copyright
  487. // notice, this list of conditions and the following disclaimer in the
  488. // documentation and/or other materials provided with the distribution.
  489. //
  490. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  491. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  492. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  493. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  494. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  495. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  496. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  497. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  498. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  499. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  500. // SUCH DAMAGE.
  501. // -
  502. // SPDX-License-Identifier: BSD-3-Clause
  503. //
  504. // Copyright (c) 1991, 1993
  505. // The Regents of the University of California. All rights reserved.
  506. //
  507. // This code is derived from software contributed to Berkeley by
  508. // Berkeley Software Design, Inc.
  509. //
  510. // Redistribution and use in source and binary forms, with or without
  511. // modification, are permitted provided that the following conditions
  512. // are met:
  513. // 1. Redistributions of source code must retain the above copyright
  514. // notice, this list of conditions and the following disclaimer.
  515. // 2. Redistributions in binary form must reproduce the above copyright
  516. // notice, this list of conditions and the following disclaimer in the
  517. // documentation and/or other materials provided with the distribution.
  518. // 3. Neither the name of the University nor the names of its contributors
  519. // may be used to endorse or promote products derived from this software
  520. // without specific prior written permission.
  521. //
  522. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  523. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  524. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  525. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  526. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  527. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  528. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  529. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  530. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  531. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  532. // SUCH DAMAGE.
  533. //
  534. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  535. // $FreeBSD$
  536. // -
  537. // SPDX-License-Identifier: BSD-3-Clause
  538. //
  539. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  540. // The Regents of the University of California. All rights reserved.
  541. // (c) UNIX System Laboratories, Inc.
  542. // All or some portions of this file are derived from material licensed
  543. // to the University of California by American Telephone and Telegraph
  544. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  545. // the permission of UNIX System Laboratories, Inc.
  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. // 3. Neither the name of the University nor the names of its contributors
  556. // may be used to endorse or promote products derived from this software
  557. // without specific prior written permission.
  558. //
  559. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  560. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  561. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  562. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  563. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  564. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  565. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  566. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  567. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  568. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  569. // SUCH DAMAGE.
  570. //
  571. // @(#)types.h 8.6 (Berkeley) 2/19/95
  572. // $FreeBSD$
  573. // -
  574. // SPDX-License-Identifier: BSD-3-Clause
  575. //
  576. // Copyright (c) 1991, 1993
  577. // The Regents of the University of California. All rights reserved.
  578. //
  579. // This code is derived from software contributed to Berkeley by
  580. // Berkeley Software Design, Inc.
  581. //
  582. // Redistribution and use in source and binary forms, with or without
  583. // modification, are permitted provided that the following conditions
  584. // are met:
  585. // 1. Redistributions of source code must retain the above copyright
  586. // notice, this list of conditions and the following disclaimer.
  587. // 2. Redistributions in binary form must reproduce the above copyright
  588. // notice, this list of conditions and the following disclaimer in the
  589. // documentation and/or other materials provided with the distribution.
  590. // 3. Neither the name of the University nor the names of its contributors
  591. // may be used to endorse or promote products derived from this software
  592. // without specific prior written permission.
  593. //
  594. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  595. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  596. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  597. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  598. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  599. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  600. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  601. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  602. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  603. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  604. // SUCH DAMAGE.
  605. //
  606. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  607. // $FreeBSD$
  608. // Machine type dependent parameters.
  609. // -
  610. // This file is in the public domain.
  611. // $FreeBSD$
  612. // -
  613. // SPDX-License-Identifier: BSD-3-Clause
  614. //
  615. // Copyright (c) 1987, 1991 Regents of the University of California.
  616. // All rights reserved.
  617. //
  618. // Redistribution and use in source and binary forms, with or without
  619. // modification, are permitted provided that the following conditions
  620. // are met:
  621. // 1. Redistributions of source code must retain the above copyright
  622. // notice, this list of conditions and the following disclaimer.
  623. // 2. Redistributions in binary form must reproduce the above copyright
  624. // notice, this list of conditions and the following disclaimer in the
  625. // documentation and/or other materials provided with the distribution.
  626. // 3. Neither the name of the University nor the names of its contributors
  627. // may be used to endorse or promote products derived from this software
  628. // without specific prior written permission.
  629. //
  630. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  631. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  632. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  633. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  634. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  635. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  636. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  637. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  638. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  639. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  640. // SUCH DAMAGE.
  641. //
  642. // @(#)endian.h 7.8 (Berkeley) 4/3/91
  643. // $FreeBSD$
  644. // -
  645. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  646. //
  647. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  648. // All rights reserved.
  649. //
  650. // Redistribution and use in source and binary forms, with or without
  651. // modification, are permitted provided that the following conditions
  652. // are met:
  653. // 1. Redistributions of source code must retain the above copyright
  654. // notice, this list of conditions and the following disclaimer.
  655. // 2. Redistributions in binary form must reproduce the above copyright
  656. // notice, this list of conditions and the following disclaimer in the
  657. // documentation and/or other materials provided with the distribution.
  658. //
  659. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  660. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  661. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  662. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  663. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  664. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  665. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  666. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  667. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  668. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  669. // SUCH DAMAGE.
  670. //
  671. // $FreeBSD$
  672. // -
  673. // SPDX-License-Identifier: BSD-3-Clause
  674. //
  675. // Copyright (c) 1991, 1993
  676. // The Regents of the University of California. All rights reserved.
  677. //
  678. // This code is derived from software contributed to Berkeley by
  679. // Berkeley Software Design, Inc.
  680. //
  681. // Redistribution and use in source and binary forms, with or without
  682. // modification, are permitted provided that the following conditions
  683. // are met:
  684. // 1. Redistributions of source code must retain the above copyright
  685. // notice, this list of conditions and the following disclaimer.
  686. // 2. Redistributions in binary form must reproduce the above copyright
  687. // notice, this list of conditions and the following disclaimer in the
  688. // documentation and/or other materials provided with the distribution.
  689. // 3. Neither the name of the University nor the names of its contributors
  690. // may be used to endorse or promote products derived from this software
  691. // without specific prior written permission.
  692. //
  693. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  694. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  695. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  696. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  697. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  698. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  699. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  700. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  701. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  702. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  703. // SUCH DAMAGE.
  704. //
  705. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  706. // $FreeBSD$
  707. // -
  708. // This file is in the public domain.
  709. // $FreeBSD$
  710. // -
  711. // SPDX-License-Identifier: BSD-4-Clause
  712. //
  713. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  714. // Copyright (c) 1990, 1993
  715. // The Regents of the University of California. All rights reserved.
  716. //
  717. // Redistribution and use in source and binary forms, with or without
  718. // modification, are permitted provided that the following conditions
  719. // are met:
  720. // 1. Redistributions of source code must retain the above copyright
  721. // notice, this list of conditions and the following disclaimer.
  722. // 2. Redistributions in binary form must reproduce the above copyright
  723. // notice, this list of conditions and the following disclaimer in the
  724. // documentation and/or other materials provided with the distribution.
  725. // 3. All advertising materials mentioning features or use of this software
  726. // must display the following acknowledgement:
  727. // This product includes software developed by the University of
  728. // California, Berkeley and its contributors.
  729. // 4. Neither the name of the University nor the names of its contributors
  730. // may be used to endorse or promote products derived from this software
  731. // without specific prior written permission.
  732. //
  733. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  734. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  735. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  736. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  737. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  738. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  739. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  740. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  741. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  742. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  743. // SUCH DAMAGE.
  744. //
  745. // From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
  746. // From: @(#)types.h 8.3 (Berkeley) 1/5/94
  747. // $FreeBSD$
  748. // Standard type definitions.
  749. type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
  750. type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
  751. type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
  752. type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
  753. type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
  754. type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
  755. type X__gid_t = X__uint32_t /* _types.h:46:20 */
  756. type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
  757. type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
  758. type X__key_t = int32 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
  759. type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
  760. type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
  761. type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
  762. type X__nl_item = int32 /* _types.h:53:14 */
  763. type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
  764. type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
  765. type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
  766. type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
  767. type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
  768. // signed, because of legacy code
  769. // that uses -1 for RLIM_INFINITY
  770. type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
  771. type X__socklen_t = X__uint32_t /* _types.h:62:20 */
  772. type X__suseconds_t = int32 /* _types.h:63:15 */ // microseconds (signed)
  773. type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
  774. type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
  775. type X__uid_t = X__uint32_t /* _types.h:66:20 */
  776. type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
  777. type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
  778. type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
  779. type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
  780. type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
  781. // Unusual type definitions.
  782. // rune_t is declared to be an “int” instead of the more natural
  783. // “unsigned long” or “long”. Two things are happening here. It is not
  784. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  785. // it looks like 10646 will be a 31 bit standard. This means that if your
  786. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  787. // chosen over a long is that the is*() and to*() routines take ints (says
  788. // ANSI C), but they use __ct_rune_t instead of int.
  789. //
  790. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  791. // be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and
  792. // rune_t must be the same type. Also, wint_t should be able to hold all
  793. // members of the largest character set plus one extra value (WEOF), and
  794. // must be at least 16 bits.
  795. type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs
  796. type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
  797. type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
  798. // Clang already provides these types as built-ins, but only in C++ mode.
  799. type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
  800. type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
  801. // In C++11, char16_t and char32_t are built-in types.
  802. type X__max_align_t = struct {
  803. F__max_align1 int64
  804. F__max_align2 float64
  805. } /* _types.h:111:3 */
  806. type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
  807. type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
  808. // mbstate_t is an opaque object to keep conversion state during multibyte
  809. // stream conversions.
  810. type X__mbstate_t = struct {
  811. F__ccgo_pad1 [0]uint32
  812. F__mbstate8 [128]int8
  813. } /* _types.h:124:3 */
  814. type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
  815. // Types for varargs. These are all provided by builtin types these
  816. // days, so centralize their definition.
  817. type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
  818. type X__gnuc_va_list = X__va_list /* _types.h:140:20 */ // compatibility w/GNU headers
  819. // When the following macro is defined, the system uses 64-bit inode numbers.
  820. // Programs can use this to avoid including <sys/param.h>, with its associated
  821. // namespace pollution.
  822. // -
  823. // SPDX-License-Identifier: BSD-3-Clause
  824. //
  825. // Copyright (c) 1987, 1991 Regents of the University of California.
  826. // All rights reserved.
  827. //
  828. // Redistribution and use in source and binary forms, with or without
  829. // modification, are permitted provided that the following conditions
  830. // are met:
  831. // 1. Redistributions of source code must retain the above copyright
  832. // notice, this list of conditions and the following disclaimer.
  833. // 2. Redistributions in binary form must reproduce the above copyright
  834. // notice, this list of conditions and the following disclaimer in the
  835. // documentation and/or other materials provided with the distribution.
  836. // 3. Neither the name of the University nor the names of its contributors
  837. // may be used to endorse or promote products derived from this software
  838. // without specific prior written permission.
  839. //
  840. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  841. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  842. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  843. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  844. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  845. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  846. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  847. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  848. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  849. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  850. // SUCH DAMAGE.
  851. // BSD Compatiblity
  852. // Definitions for byte order, according to byte significance from low
  853. // address to high.
  854. // Define the order of 32-bit words in 64-bit words.
  855. // Deprecated variants that don't have enough underscores to be useful in more
  856. // strict namespaces.
  857. // bswap primitives, based on compiler builtins
  858. // -
  859. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  860. //
  861. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  862. // 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. //
  873. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  874. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  875. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  876. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  877. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  878. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  879. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  880. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  881. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  882. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  883. // SUCH DAMAGE.
  884. //
  885. // $FreeBSD$
  886. // -
  887. // SPDX-License-Identifier: BSD-3-Clause
  888. //
  889. // Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
  890. // Copyright (c) 1995-1998 by John Birrell <jb@cimlogic.com.au>
  891. // All rights reserved.
  892. //
  893. // Redistribution and use in source and binary forms, with or without
  894. // modification, are permitted provided that the following conditions
  895. // are met:
  896. // 1. Redistributions of source code must retain the above copyright
  897. // notice, this list of conditions and the following disclaimer.
  898. // 2. Redistributions in binary form must reproduce the above copyright
  899. // notice, this list of conditions and the following disclaimer in the
  900. // documentation and/or other materials provided with the distribution.
  901. // 3. All advertising materials mentioning features or use of this software
  902. // must display the following acknowledgement:
  903. // This product includes software developed by Chris Provenzano.
  904. // 4. The name of Chris Provenzano may not be used to endorse or promote
  905. // products derived from this software without specific prior written
  906. // permission.
  907. //
  908. // THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND
  909. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  910. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  911. // ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY
  912. // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  913. // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  914. // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  915. // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  916. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  917. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  918. // SUCH DAMAGE.
  919. //
  920. // $FreeBSD$
  921. type U_char = uint8 /* types.h:52:23 */
  922. type U_short = uint16 /* types.h:53:24 */
  923. type U_int = uint32 /* types.h:54:22 */
  924. type U_long = uint32 /* types.h:55:23 */
  925. type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility
  926. type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility
  927. // XXX POSIX sized integrals that should appear only in <sys/stdint.h>.
  928. // -
  929. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  930. //
  931. // Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org>
  932. // Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
  933. // All rights reserved.
  934. //
  935. // Redistribution and use in source and binary forms, with or without
  936. // modification, are permitted provided that the following conditions
  937. // are met:
  938. // 1. Redistributions of source code must retain the above copyright
  939. // notice, this list of conditions and the following disclaimer.
  940. // 2. Redistributions in binary form must reproduce the above copyright
  941. // notice, this list of conditions and the following disclaimer in the
  942. // documentation and/or other materials provided with the distribution.
  943. //
  944. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  945. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  946. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  947. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  948. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  949. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  950. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  951. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  952. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  953. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  954. // SUCH DAMAGE.
  955. //
  956. // $FreeBSD$
  957. type Int8_t = X__int8_t /* _stdint.h:36:19 */
  958. type Int16_t = X__int16_t /* _stdint.h:41:20 */
  959. type Int32_t = X__int32_t /* _stdint.h:46:20 */
  960. type Int64_t = X__int64_t /* _stdint.h:51:20 */
  961. type Uint8_t = X__uint8_t /* _stdint.h:56:20 */
  962. type Uint16_t = X__uint16_t /* _stdint.h:61:21 */
  963. type Uint32_t = X__uint32_t /* _stdint.h:66:21 */
  964. type Uint64_t = X__uint64_t /* _stdint.h:71:21 */
  965. type Intptr_t = X__intptr_t /* _stdint.h:76:21 */
  966. type Uintptr_t = X__uintptr_t /* _stdint.h:80:22 */
  967. type Intmax_t = X__intmax_t /* _stdint.h:84:21 */
  968. type Uintmax_t = X__uintmax_t /* _stdint.h:88:22 */
  969. type U_int8_t = X__uint8_t /* types.h:67:19 */ // unsigned integrals (deprecated)
  970. type U_int16_t = X__uint16_t /* types.h:68:20 */
  971. type U_int32_t = X__uint32_t /* types.h:69:20 */
  972. type U_int64_t = X__uint64_t /* types.h:70:20 */
  973. type U_quad_t = X__uint64_t /* types.h:72:20 */ // quads (deprecated)
  974. type Quad_t = X__int64_t /* types.h:73:19 */
  975. type Qaddr_t = uintptr /* types.h:74:16 */
  976. type Caddr_t = uintptr /* types.h:76:14 */ // core address
  977. type C_caddr_t = uintptr /* types.h:77:20 */ // core address, pointer to const
  978. type Blksize_t = X__blksize_t /* types.h:80:21 */
  979. type Cpuwhich_t = X__cpuwhich_t /* types.h:84:22 */
  980. type Cpulevel_t = X__cpulevel_t /* types.h:85:22 */
  981. type Cpusetid_t = X__cpusetid_t /* types.h:86:22 */
  982. type Blkcnt_t = X__blkcnt_t /* types.h:89:20 */
  983. type Clock_t = X__clock_t /* types.h:94:19 */
  984. type Clockid_t = X__clockid_t /* types.h:99:21 */
  985. type Critical_t = X__critical_t /* types.h:103:22 */ // Critical section value
  986. type Daddr_t = X__daddr_t /* types.h:104:19 */ // disk address
  987. type Dev_t = X__dev_t /* types.h:107:18 */ // device number or struct cdev
  988. type Fflags_t = X__fflags_t /* types.h:112:20 */ // file flags
  989. type Fixpt_t = X__fixpt_t /* types.h:116:19 */ // fixed point number
  990. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:119:22 */
  991. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:120:22 */
  992. type Gid_t = X__gid_t /* types.h:125:18 */ // group id
  993. type In_addr_t = X__uint32_t /* types.h:130:20 */ // base type for internet address
  994. type In_port_t = X__uint16_t /* types.h:135:20 */
  995. type Id_t = X__id_t /* types.h:140:17 */ // can hold a uid_t or pid_t
  996. type Ino_t = X__ino_t /* types.h:145:18 */ // inode number
  997. type Key_t = X__key_t /* types.h:150:18 */ // IPC key (for Sys V IPC)
  998. type Lwpid_t = X__lwpid_t /* types.h:155:19 */ // Thread ID (a.k.a. LWP)
  999. type Mode_t = X__mode_t /* types.h:160:18 */ // permissions
  1000. type Accmode_t = X__accmode_t /* types.h:165:21 */ // access permissions
  1001. type Nlink_t = X__nlink_t /* types.h:170:19 */ // link count
  1002. type Off_t = X__off_t /* types.h:175:18 */ // file offset
  1003. type Off64_t = X__off64_t /* types.h:180:19 */ // file offset (alias)
  1004. type Pid_t = X__pid_t /* types.h:185:18 */ // process id
  1005. type Register_t = X__register_t /* types.h:189:22 */
  1006. type Rlim_t = X__rlim_t /* types.h:192:18 */ // resource limit
  1007. type Sbintime_t = X__int64_t /* types.h:196:19 */
  1008. type Segsz_t = X__segsz_t /* types.h:198:19 */
  1009. type Ssize_t = X__ssize_t /* types.h:206:19 */
  1010. type Suseconds_t = X__suseconds_t /* types.h:211:23 */ // microseconds (signed)
  1011. type Time_t = X__time_t /* types.h:216:18 */
  1012. type Timer_t = X__timer_t /* types.h:221:19 */
  1013. type Mqd_t = X__mqd_t /* types.h:226:17 */
  1014. type U_register_t = X__u_register_t /* types.h:230:24 */
  1015. type Uid_t = X__uid_t /* types.h:233:18 */ // user id
  1016. type Useconds_t = X__useconds_t /* types.h:238:22 */ // microseconds (unsigned)
  1017. type Cap_ioctl_t = uint32 /* types.h:244:23 */
  1018. // Types suitable for exporting physical addresses, virtual addresses
  1019. // (pointers), and memory object sizes from the kernel independent of native
  1020. // word size. These should be used in place of vm_paddr_t, (u)intptr_t, and
  1021. // size_t in structs which contain such types that are shared with userspace.
  1022. type Kpaddr_t = X__uint64_t /* types.h:260:20 */
  1023. type Kvaddr_t = X__uint64_t /* types.h:261:20 */
  1024. type Ksize_t = X__uint64_t /* types.h:262:20 */
  1025. type Kssize_t = X__int64_t /* types.h:263:19 */
  1026. type Vm_offset_t = X__vm_offset_t /* types.h:265:23 */
  1027. type Vm_ooffset_t = X__uint64_t /* types.h:266:20 */
  1028. type Vm_paddr_t = X__vm_paddr_t /* types.h:267:22 */
  1029. type Vm_pindex_t = X__uint64_t /* types.h:268:20 */
  1030. type Vm_size_t = X__vm_size_t /* types.h:269:21 */
  1031. type Rman_res_t = X__rman_res_t /* types.h:271:25 */
  1032. // -
  1033. // SPDX-License-Identifier: BSD-3-Clause
  1034. //
  1035. // Copyright (c) 1992, 1993
  1036. // The Regents of the University of California. All rights reserved.
  1037. //
  1038. // Redistribution and use in source and binary forms, with or without
  1039. // modification, are permitted provided that the following conditions
  1040. // are met:
  1041. // 1. Redistributions of source code must retain the above copyright
  1042. // notice, this list of conditions and the following disclaimer.
  1043. // 2. Redistributions in binary form must reproduce the above copyright
  1044. // notice, this list of conditions and the following disclaimer in the
  1045. // documentation and/or other materials provided with the distribution.
  1046. // 3. Neither the name of the University nor the names of its contributors
  1047. // may be used to endorse or promote products derived from this software
  1048. // without specific prior written permission.
  1049. //
  1050. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1051. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1052. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1053. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1054. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1055. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1056. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1057. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1058. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1059. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1060. // SUCH DAMAGE.
  1061. //
  1062. // $FreeBSD$
  1063. // -
  1064. // SPDX-License-Identifier: BSD-3-Clause
  1065. //
  1066. // Copyright (c) 1991, 1993
  1067. // The Regents of the University of California. All rights reserved.
  1068. //
  1069. // This code is derived from software contributed to Berkeley by
  1070. // Berkeley Software Design, Inc.
  1071. //
  1072. // Redistribution and use in source and binary forms, with or without
  1073. // modification, are permitted provided that the following conditions
  1074. // are met:
  1075. // 1. Redistributions of source code must retain the above copyright
  1076. // notice, this list of conditions and the following disclaimer.
  1077. // 2. Redistributions in binary form must reproduce the above copyright
  1078. // notice, this list of conditions and the following disclaimer in the
  1079. // documentation and/or other materials provided with the distribution.
  1080. // 3. Neither the name of the University nor the names of its contributors
  1081. // may be used to endorse or promote products derived from this software
  1082. // without specific prior written permission.
  1083. //
  1084. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1085. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1086. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1087. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1088. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1089. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1090. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1091. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1092. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1093. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1094. // SUCH DAMAGE.
  1095. //
  1096. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1097. // $FreeBSD$
  1098. // -
  1099. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1100. //
  1101. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1102. // All rights reserved.
  1103. //
  1104. // Redistribution and use in source and binary forms, with or without
  1105. // modification, are permitted provided that the following conditions
  1106. // are met:
  1107. // 1. Redistributions of source code must retain the above copyright
  1108. // notice, this list of conditions and the following disclaimer.
  1109. // 2. Redistributions in binary form must reproduce the above copyright
  1110. // notice, this list of conditions and the following disclaimer in the
  1111. // documentation and/or other materials provided with the distribution.
  1112. //
  1113. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1114. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1115. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1116. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1117. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1118. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1119. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1120. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1121. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1122. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1123. // SUCH DAMAGE.
  1124. //
  1125. // $FreeBSD$
  1126. // -
  1127. // SPDX-License-Identifier: BSD-3-Clause
  1128. //
  1129. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1130. // The Regents of the University of California. All rights reserved.
  1131. // (c) UNIX System Laboratories, Inc.
  1132. // All or some portions of this file are derived from material licensed
  1133. // to the University of California by American Telephone and Telegraph
  1134. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1135. // the permission of UNIX System Laboratories, Inc.
  1136. //
  1137. // Redistribution and use in source and binary forms, with or without
  1138. // modification, are permitted provided that the following conditions
  1139. // are met:
  1140. // 1. Redistributions of source code must retain the above copyright
  1141. // notice, this list of conditions and the following disclaimer.
  1142. // 2. Redistributions in binary form must reproduce the above copyright
  1143. // notice, this list of conditions and the following disclaimer in the
  1144. // documentation and/or other materials provided with the distribution.
  1145. // 3. Neither the name of the University nor the names of its contributors
  1146. // may be used to endorse or promote products derived from this software
  1147. // without specific prior written permission.
  1148. //
  1149. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1150. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1151. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1152. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1153. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1154. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1155. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1156. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1157. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1158. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1159. // SUCH DAMAGE.
  1160. //
  1161. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  1162. // $FreeBSD$
  1163. // -
  1164. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1165. //
  1166. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1167. // All rights reserved.
  1168. //
  1169. // Redistribution and use in source and binary forms, with or without
  1170. // modification, are permitted provided that the following conditions
  1171. // are met:
  1172. // 1. Redistributions of source code must retain the above copyright
  1173. // notice, this list of conditions and the following disclaimer.
  1174. // 2. Redistributions in binary form must reproduce the above copyright
  1175. // notice, this list of conditions and the following disclaimer in the
  1176. // documentation and/or other materials provided with the distribution.
  1177. //
  1178. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1179. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1180. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1181. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1182. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1183. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1184. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1185. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1186. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1187. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1188. // SUCH DAMAGE.
  1189. //
  1190. // $FreeBSD$
  1191. // -
  1192. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1193. //
  1194. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  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. //
  1206. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1207. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1208. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1209. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1210. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1211. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1212. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1213. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1214. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1215. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1216. // SUCH DAMAGE.
  1217. //
  1218. // $FreeBSD$
  1219. // Structure returned by gettimeofday(2) system call, and used in other calls.
  1220. type Timeval = struct {
  1221. Ftv_sec Time_t
  1222. Ftv_usec Suseconds_t
  1223. } /* _timeval.h:49:1 */
  1224. // -
  1225. // SPDX-License-Identifier: BSD-3-Clause
  1226. //
  1227. // Copyright (c) 1982, 1986, 1993
  1228. // The Regents of the University of California. All rights reserved.
  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. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1255. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1256. // $FreeBSD$
  1257. // -
  1258. // SPDX-License-Identifier: BSD-3-Clause
  1259. //
  1260. // Copyright (c) 1991, 1993
  1261. // The Regents of the University of California. All rights reserved.
  1262. //
  1263. // This code is derived from software contributed to Berkeley by
  1264. // Berkeley Software Design, Inc.
  1265. //
  1266. // Redistribution and use in source and binary forms, with or without
  1267. // modification, are permitted provided that the following conditions
  1268. // are met:
  1269. // 1. Redistributions of source code must retain the above copyright
  1270. // notice, this list of conditions and the following disclaimer.
  1271. // 2. Redistributions in binary form must reproduce the above copyright
  1272. // notice, this list of conditions and the following disclaimer in the
  1273. // documentation and/or other materials provided with the distribution.
  1274. // 3. Neither the name of the University nor the names of its contributors
  1275. // may be used to endorse or promote products derived from this software
  1276. // without specific prior written permission.
  1277. //
  1278. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1279. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1280. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1281. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1282. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1283. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1284. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1285. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1286. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1287. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1288. // SUCH DAMAGE.
  1289. //
  1290. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1291. // $FreeBSD$
  1292. // -
  1293. // SPDX-License-Identifier: BSD-3-Clause
  1294. //
  1295. // Copyright (c) 1982, 1986, 1993
  1296. // The Regents of the University of California. All rights reserved.
  1297. //
  1298. // Redistribution and use in source and binary forms, with or without
  1299. // modification, are permitted provided that the following conditions
  1300. // are met:
  1301. // 1. Redistributions of source code must retain the above copyright
  1302. // notice, this list of conditions and the following disclaimer.
  1303. // 2. Redistributions in binary form must reproduce the above copyright
  1304. // notice, this list of conditions and the following disclaimer in the
  1305. // documentation and/or other materials provided with the distribution.
  1306. // 3. Neither the name of the University nor the names of its contributors
  1307. // may be used to endorse or promote products derived from this software
  1308. // without specific prior written permission.
  1309. //
  1310. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1311. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1312. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1313. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1314. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1315. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1316. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1317. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1318. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1319. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1320. // SUCH DAMAGE.
  1321. //
  1322. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1323. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1324. // $FreeBSD$
  1325. // -
  1326. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1327. //
  1328. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1329. // All rights reserved.
  1330. //
  1331. // Redistribution and use in source and binary forms, with or without
  1332. // modification, are permitted provided that the following conditions
  1333. // are met:
  1334. // 1. Redistributions of source code must retain the above copyright
  1335. // notice, this list of conditions and the following disclaimer.
  1336. // 2. Redistributions in binary form must reproduce the above copyright
  1337. // notice, this list of conditions and the following disclaimer in the
  1338. // documentation and/or other materials provided with the distribution.
  1339. //
  1340. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1341. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1342. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1343. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1344. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1345. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1346. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1347. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1348. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1349. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1350. // SUCH DAMAGE.
  1351. //
  1352. // $FreeBSD$
  1353. type Timespec = struct {
  1354. Ftv_sec Time_t
  1355. Ftv_nsec int32
  1356. } /* _timespec.h:46:1 */
  1357. // Structure defined by POSIX.1b to be like a itimerval, but with
  1358. // timespecs. Used in the timer_*() system calls.
  1359. type Itimerspec = struct {
  1360. Fit_interval struct {
  1361. Ftv_sec Time_t
  1362. Ftv_nsec int32
  1363. }
  1364. Fit_value struct {
  1365. Ftv_sec Time_t
  1366. Ftv_nsec int32
  1367. }
  1368. } /* timespec.h:60:1 */
  1369. type X__fd_mask = uint32 /* select.h:44:23 */
  1370. type Fd_mask = X__fd_mask /* select.h:46:19 */
  1371. type Sigset_t = X__sigset_t /* select.h:51:20 */
  1372. // Select uses bit masks of file descriptors in longs. These macros
  1373. // manipulate such bit fields (the filesystem macros use chars).
  1374. // FD_SETSIZE may be defined by the user, but the default here should
  1375. // be enough for most uses.
  1376. type Fd_set1 = struct{ F__fds_bits [32]X__fd_mask } /* select.h:73:9 */
  1377. // Select uses bit masks of file descriptors in longs. These macros
  1378. // manipulate such bit fields (the filesystem macros use chars).
  1379. // FD_SETSIZE may be defined by the user, but the default here should
  1380. // be enough for most uses.
  1381. type Fd_set = Fd_set1 /* select.h:75:3 */
  1382. // -
  1383. // SPDX-License-Identifier: (BSD-4-Clause AND BSD-2-Clause-FreeBSD)
  1384. //
  1385. // Copyright (c) 1996, 1997
  1386. // HD Associates, Inc. All rights reserved.
  1387. //
  1388. // Redistribution and use in source and binary forms, with or without
  1389. // modification, are permitted provided that the following conditions
  1390. // are met:
  1391. // 1. Redistributions of source code must retain the above copyright
  1392. // notice, this list of conditions and the following disclaimer.
  1393. // 2. Redistributions in binary form must reproduce the above copyright
  1394. // notice, this list of conditions and the following disclaimer in the
  1395. // documentation and/or other materials provided with the distribution.
  1396. // 3. All advertising materials mentioning features or use of this software
  1397. // must display the following acknowledgement:
  1398. // This product includes software developed by HD Associates, Inc
  1399. // and Jukka Antero Ukkonen.
  1400. // 4. Neither the name of the author nor the names of any co-contributors
  1401. // may be used to endorse or promote products derived from this software
  1402. // without specific prior written permission.
  1403. //
  1404. // THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES AND CONTRIBUTORS ``AS IS'' AND
  1405. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1406. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1407. // ARE DISCLAIMED. IN NO EVENT SHALL HD ASSOCIATES OR CONTRIBUTORS BE LIABLE
  1408. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1409. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1410. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1411. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1412. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1413. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1414. // SUCH DAMAGE.
  1415. // -
  1416. // Copyright (c) 2002-2008, Jeffrey Roberson <jeff@freebsd.org>
  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 unmodified, this list of conditions, and the following
  1424. // disclaimer.
  1425. // 2. Redistributions in binary form must reproduce the above copyright
  1426. // notice, this list of conditions and the following disclaimer in the
  1427. // documentation and/or other materials provided with the distribution.
  1428. //
  1429. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1430. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1431. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1432. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1433. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1434. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1435. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1436. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1437. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1438. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1439. //
  1440. // $FreeBSD$
  1441. // POSIX 1003.1b Process Scheduling
  1442. // POSIX scheduling policies
  1443. type Sched_param = struct{ Fsched_priority int32 } /* sched.h:245:1 */
  1444. // -
  1445. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1446. //
  1447. // Copyright (c) 2008, Jeffrey Roberson <jeff@freebsd.org>
  1448. // All rights reserved.
  1449. //
  1450. // Copyright (c) 2008 Nokia Corporation
  1451. // All rights reserved.
  1452. //
  1453. // Redistribution and use in source and binary forms, with or without
  1454. // modification, are permitted provided that the following conditions
  1455. // are met:
  1456. // 1. Redistributions of source code must retain the above copyright
  1457. // notice unmodified, this list of conditions, and the following
  1458. // disclaimer.
  1459. // 2. Redistributions in binary form must reproduce the above copyright
  1460. // notice, this list of conditions and the following disclaimer in the
  1461. // documentation and/or other materials provided with the distribution.
  1462. //
  1463. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1464. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1465. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1466. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1467. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1468. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1469. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1470. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1471. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1472. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1473. //
  1474. // $FreeBSD$
  1475. // -
  1476. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1477. //
  1478. // Copyright (c) 2008, Jeffrey Roberson <jeff@freebsd.org>
  1479. // All rights reserved.
  1480. //
  1481. // Copyright (c) 2008 Nokia Corporation
  1482. // All rights reserved.
  1483. //
  1484. // Redistribution and use in source and binary forms, with or without
  1485. // modification, are permitted provided that the following conditions
  1486. // are met:
  1487. // 1. Redistributions of source code must retain the above copyright
  1488. // notice unmodified, this list of conditions, and the following
  1489. // disclaimer.
  1490. // 2. Redistributions in binary form must reproduce the above copyright
  1491. // notice, this list of conditions and the following disclaimer in the
  1492. // documentation and/or other materials provided with the distribution.
  1493. //
  1494. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1495. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1496. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1497. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1498. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1499. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1500. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1501. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1502. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1503. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1504. //
  1505. // $FreeBSD$
  1506. // -
  1507. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1508. //
  1509. // Copyright (c) 2008, Jeffrey Roberson <jeff@freebsd.org>
  1510. // All rights reserved.
  1511. //
  1512. // Copyright (c) 2008 Nokia Corporation
  1513. // All rights reserved.
  1514. //
  1515. // Redistribution and use in source and binary forms, with or without
  1516. // modification, are permitted provided that the following conditions
  1517. // are met:
  1518. // 1. Redistributions of source code must retain the above copyright
  1519. // notice unmodified, this list of conditions, and the following
  1520. // disclaimer.
  1521. // 2. Redistributions in binary form must reproduce the above copyright
  1522. // notice, this list of conditions and the following disclaimer in the
  1523. // documentation and/or other materials provided with the distribution.
  1524. //
  1525. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1526. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1527. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1528. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1529. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1530. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1531. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1532. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1533. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1534. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1535. //
  1536. // $FreeBSD$
  1537. // Macros addressing word and bit within it, tuned to make compiler
  1538. // optimize cases when SETSIZE fits into single machine word.
  1539. // Helper to declare a bitset without it's size being a constant.
  1540. //
  1541. // Sadly we cannot declare a bitset struct with 'bits[]', because it's
  1542. // the only member of the struct and the compiler complains.
  1543. // Define a default type that can be used while manually specifying size
  1544. // to every call.
  1545. type X_cpuset = struct{ F__bits [8]int32 } /* _cpuset.h:49:1 */
  1546. type Cpuset_t = X_cpuset /* _cpuset.h:50:24 */
  1547. type Cpu_set_t = X_cpuset /* sched.h:38:24 */
  1548. // -
  1549. // SPDX-License-Identifier: BSD-3-Clause
  1550. //
  1551. // Copyright (c) 1989, 1993
  1552. // The Regents of the University of California. All rights reserved.
  1553. // (c) UNIX System Laboratories, Inc.
  1554. // All or some portions of this file are derived from material licensed
  1555. // to the University of California by American Telephone and Telegraph
  1556. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1557. // the permission of UNIX System Laboratories, Inc.
  1558. //
  1559. // Redistribution and use in source and binary forms, with or without
  1560. // modification, are permitted provided that the following conditions
  1561. // are met:
  1562. // 1. Redistributions of source code must retain the above copyright
  1563. // notice, this list of conditions and the following disclaimer.
  1564. // 2. Redistributions in binary form must reproduce the above copyright
  1565. // notice, this list of conditions and the following disclaimer in the
  1566. // documentation and/or other materials provided with the distribution.
  1567. // 3. Neither the name of the University nor the names of its contributors
  1568. // may be used to endorse or promote products derived from this software
  1569. // without specific prior written permission.
  1570. //
  1571. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1572. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1573. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1574. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1575. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1576. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1577. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1578. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1579. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1580. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1581. // SUCH DAMAGE.
  1582. //
  1583. // @(#)time.h 8.3 (Berkeley) 1/21/94
  1584. // $FreeBSD$
  1585. // -
  1586. // SPDX-License-Identifier: BSD-3-Clause
  1587. //
  1588. // Copyright (c) 1991, 1993
  1589. // The Regents of the University of California. All rights reserved.
  1590. //
  1591. // This code is derived from software contributed to Berkeley by
  1592. // Berkeley Software Design, Inc.
  1593. //
  1594. // Redistribution and use in source and binary forms, with or without
  1595. // modification, are permitted provided that the following conditions
  1596. // are met:
  1597. // 1. Redistributions of source code must retain the above copyright
  1598. // notice, this list of conditions and the following disclaimer.
  1599. // 2. Redistributions in binary form must reproduce the above copyright
  1600. // notice, this list of conditions and the following disclaimer in the
  1601. // documentation and/or other materials provided with the distribution.
  1602. // 3. Neither the name of the University nor the names of its contributors
  1603. // may be used to endorse or promote products derived from this software
  1604. // without specific prior written permission.
  1605. //
  1606. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1607. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1608. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1609. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1610. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1611. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1612. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1613. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1614. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1615. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1616. // SUCH DAMAGE.
  1617. //
  1618. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1619. // $FreeBSD$
  1620. // -
  1621. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1622. //
  1623. // Copyright (c) 2003 Marcel Moolenaar
  1624. // All rights reserved.
  1625. //
  1626. // Redistribution and use in source and binary forms, with or without
  1627. // modification, are permitted provided that the following conditions
  1628. // are met:
  1629. //
  1630. // 1. Redistributions of source code must retain the above copyright
  1631. // notice, this list of conditions and the following disclaimer.
  1632. // 2. Redistributions in binary form must reproduce the above copyright
  1633. // notice, this list of conditions and the following disclaimer in the
  1634. // documentation and/or other materials provided with the distribution.
  1635. //
  1636. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1637. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1638. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1639. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1640. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1641. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1642. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1643. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1644. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1645. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1646. //
  1647. // $FreeBSD$
  1648. // -
  1649. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1650. //
  1651. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1652. // All rights reserved.
  1653. //
  1654. // Redistribution and use in source and binary forms, with or without
  1655. // modification, are permitted provided that the following conditions
  1656. // are met:
  1657. // 1. Redistributions of source code must retain the above copyright
  1658. // notice, this list of conditions and the following disclaimer.
  1659. // 2. Redistributions in binary form must reproduce the above copyright
  1660. // notice, this list of conditions and the following disclaimer in the
  1661. // documentation and/or other materials provided with the distribution.
  1662. //
  1663. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1664. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1665. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1666. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1667. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1668. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1669. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1670. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1671. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1672. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1673. // SUCH DAMAGE.
  1674. //
  1675. // $FreeBSD$
  1676. // -
  1677. // SPDX-License-Identifier: BSD-3-Clause
  1678. //
  1679. // Copyright (c) 1989, 1993
  1680. // The Regents of the University of California. All rights reserved.
  1681. // (c) UNIX System Laboratories, Inc.
  1682. // All or some portions of this file are derived from material licensed
  1683. // to the University of California by American Telephone and Telegraph
  1684. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1685. // the permission of UNIX System Laboratories, Inc.
  1686. //
  1687. // Redistribution and use in source and binary forms, with or without
  1688. // modification, are permitted provided that the following conditions
  1689. // are met:
  1690. // 1. Redistributions of source code must retain the above copyright
  1691. // notice, this list of conditions and the following disclaimer.
  1692. // 2. Redistributions in binary form must reproduce the above copyright
  1693. // notice, this list of conditions and the following disclaimer in the
  1694. // documentation and/or other materials provided with the distribution.
  1695. // 3. Neither the name of the University nor the names of its contributors
  1696. // may be used to endorse or promote products derived from this software
  1697. // without specific prior written permission.
  1698. //
  1699. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1700. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1701. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1702. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1703. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1704. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1705. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1706. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1707. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1708. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1709. // SUCH DAMAGE.
  1710. //
  1711. // @(#)time.h 8.3 (Berkeley) 1/21/94
  1712. // These macros are shared between time.h and sys/time.h.
  1713. // Note: The values shown below as a comment for the __POSIX_VISIBLE values are
  1714. // the ones FreeBSD traditionally used based on our reading of the POSIX
  1715. // standards. However, glibc uses 199309 for all of them, even those many were
  1716. // not defined there. To remain bug compatible with glibc means more software
  1717. // that relied on the glibc behavior will compile easily on FreeBSD.
  1718. //
  1719. // Also, CLOCK_UPTIME_FAST is improperly visible temporarily for the lang/pocl
  1720. // port until it can be updated properly. It incorrectly assumes that this was a
  1721. // standard value. It will be moved back to the __BSD_VISIBLE section once the
  1722. // issue is corrected.
  1723. // FreeBSD-specific clocks.
  1724. // Linux compatible names.
  1725. // Frequency of the clock ticks reported by times(). Deprecated - use
  1726. // sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.)
  1727. // Frequency of the clock ticks reported by clock().
  1728. // New in POSIX 1003.1b-1993.
  1729. // -
  1730. // SPDX-License-Identifier: BSD-3-Clause
  1731. //
  1732. // Copyright (c) 1982, 1986, 1993
  1733. // The Regents of the University of California. All rights reserved.
  1734. //
  1735. // Redistribution and use in source and binary forms, with or without
  1736. // modification, are permitted provided that the following conditions
  1737. // are met:
  1738. // 1. Redistributions of source code must retain the above copyright
  1739. // notice, this list of conditions and the following disclaimer.
  1740. // 2. Redistributions in binary form must reproduce the above copyright
  1741. // notice, this list of conditions and the following disclaimer in the
  1742. // documentation and/or other materials provided with the distribution.
  1743. // 3. Neither the name of the University nor the names of its contributors
  1744. // may be used to endorse or promote products derived from this software
  1745. // without specific prior written permission.
  1746. //
  1747. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1748. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1749. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1750. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1751. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1752. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1753. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1754. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1755. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1756. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1757. // SUCH DAMAGE.
  1758. //
  1759. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1760. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1761. // $FreeBSD$
  1762. type Tm = struct {
  1763. Ftm_sec int32
  1764. Ftm_min int32
  1765. Ftm_hour int32
  1766. Ftm_mday int32
  1767. Ftm_mon int32
  1768. Ftm_year int32
  1769. Ftm_wday int32
  1770. Ftm_yday int32
  1771. Ftm_isdst int32
  1772. Ftm_gmtoff int32
  1773. Ftm_zone uintptr
  1774. } /* time.h:101:1 */
  1775. // -
  1776. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1777. //
  1778. // Copyright (c) 2011, 2012 The FreeBSD Foundation
  1779. //
  1780. // This software was developed by David Chisnall under sponsorship from
  1781. // the FreeBSD Foundation.
  1782. //
  1783. // Redistribution and use in source and binary forms, with or without
  1784. // modification, are permitted provided that the following conditions
  1785. // are met:
  1786. // 1. Redistributions of source code must retain the above copyright
  1787. // notice, this list of conditions and the following disclaimer.
  1788. // 2. Redistributions in binary form must reproduce the above copyright
  1789. // notice, this list of conditions and the following disclaimer in the
  1790. // documentation and/or other materials provided with the distribution.
  1791. //
  1792. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1793. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1794. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1795. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1796. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1797. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1798. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1799. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1800. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1801. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1802. // SUCH DAMAGE.
  1803. //
  1804. // $FreeBSD$
  1805. type Locale_t = uintptr /* _time.h:35:25 */
  1806. type X_pthread_cleanup_info = struct{ Fpthread_cleanup_pad [8]X__uintptr_t } /* pthread.h:143:1 */
  1807. var _ int8 /* gen.c:2:13: */