pthread_freebsd_arm64.go 96 KB

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