pthread_freebsd_arm.go 92 KB

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