signal_freebsd_amd64.go 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624
  1. // Code generated by 'ccgo signal/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 signal/signal_freebsd_amd64.go -pkgname signal', DO NOT EDIT.
  2. package signal
  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. BUS_ADRALN = 1 // signal.h:315:1:
  15. BUS_ADRERR = 2 // signal.h:316:1:
  16. BUS_OBJERR = 3 // signal.h:317:1:
  17. BUS_OOMERR = 100 // signal.h:318:1:
  18. CLD_CONTINUED = 6 // signal.h:350:1:
  19. CLD_DUMPED = 3 // signal.h:346:1:
  20. CLD_EXITED = 1 // signal.h:343:1:
  21. CLD_KILLED = 2 // signal.h:344:1:
  22. CLD_STOPPED = 5 // signal.h:349:1:
  23. CLD_TRAPPED = 4 // signal.h:348:1:
  24. FPE_FLTDIV = 3 // signal.h:329:1:
  25. FPE_FLTINV = 7 // signal.h:333:1:
  26. FPE_FLTOVF = 4 // signal.h:330:1:
  27. FPE_FLTRES = 6 // signal.h:332:1:
  28. FPE_FLTSUB = 8 // signal.h:334:1:
  29. FPE_FLTUND = 5 // signal.h:331:1:
  30. FPE_INTDIV = 2 // signal.h:328:1:
  31. FPE_INTOVF = 1 // signal.h:327:1:
  32. ILL_BADSTK = 8 // signal.h:312:1:
  33. ILL_COPROC = 7 // signal.h:311:1:
  34. ILL_ILLADR = 3 // signal.h:307:1:
  35. ILL_ILLOPC = 1 // signal.h:305:1:
  36. ILL_ILLOPN = 2 // signal.h:306:1:
  37. ILL_ILLTRP = 4 // signal.h:308:1:
  38. ILL_PRVOPC = 5 // signal.h:309:1:
  39. ILL_PRVREG = 6 // signal.h:310:1:
  40. MINSIGSTKSZ = 2048 // signal.h:432:1:
  41. NSIG = 32 // signal.h:399:1:
  42. POLL_ERR = 4 // signal.h:356:1:
  43. POLL_HUP = 6 // signal.h:358:1:
  44. POLL_IN = 1 // signal.h:353:1:
  45. POLL_MSG = 3 // signal.h:355:1:
  46. POLL_OUT = 2 // signal.h:354:1:
  47. POLL_PRI = 5 // signal.h:357:1:
  48. SA_NOCLDSTOP = 0x0008 // signal.h:386:1:
  49. SA_NOCLDWAIT = 0x0020 // signal.h:394:1:
  50. SA_NODEFER = 0x0010 // signal.h:393:1:
  51. SA_ONSTACK = 0x0001 // signal.h:390:1:
  52. SA_RESETHAND = 0x0004 // signal.h:392:1:
  53. SA_RESTART = 0x0002 // signal.h:391:1:
  54. SA_SIGINFO = 0x0040 // signal.h:395:1:
  55. SEGV_ACCERR = 2 // signal.h:322:1:
  56. SEGV_MAPERR = 1 // signal.h:321:1:
  57. SEGV_PKUERR = 100 // signal.h:324:1:
  58. SIGABRT = 6 // signal.h:81:1:
  59. SIGALRM = 14 // signal.h:99:1:
  60. SIGBUS = 10 // signal.h:91:1:
  61. SIGCHLD = 20 // signal.h:109:1:
  62. SIGCONT = 19 // signal.h:108:1:
  63. SIGEMT = 7 // signal.h:84:1:
  64. SIGEV_KEVENT = 3 // signal.h:222:1:
  65. SIGEV_NONE = 0 // signal.h:218:1:
  66. SIGEV_SIGNAL = 1 // signal.h:219:1:
  67. SIGEV_THREAD = 2 // signal.h:220:1:
  68. SIGEV_THREAD_ID = 4 // signal.h:223:1:
  69. SIGFPE = 8 // signal.h:86:1:
  70. SIGHUP = 1 // signal.h:71:1:
  71. SIGILL = 4 // signal.h:77:1:
  72. SIGINFO = 29 // signal.h:124:1:
  73. SIGINT = 2 // signal.h:73:1:
  74. SIGIO = 23 // signal.h:114:1:
  75. SIGIOT = 6 // signal.h:83:1:
  76. SIGKILL = 9 // signal.h:88:1:
  77. SIGLIBRT = 33 // signal.h:133:1:
  78. SIGLWP = 32 // signal.h:132:1:
  79. SIGPIPE = 13 // signal.h:98:1:
  80. SIGPROF = 27 // signal.h:120:1:
  81. SIGQUIT = 3 // signal.h:75:1:
  82. SIGRTMAX = 126 // signal.h:137:1:
  83. SIGRTMIN = 65 // signal.h:136:1:
  84. SIGSEGV = 11 // signal.h:93:1:
  85. SIGSTKSZ = 34816 // signal.h:433:1:
  86. SIGSTOP = 17 // signal.h:106:1:
  87. SIGSYS = 12 // signal.h:95:1:
  88. SIGTERM = 15 // signal.h:101:1:
  89. SIGTHR = 32 // signal.h:131:1:
  90. SIGTRAP = 5 // signal.h:79:1:
  91. SIGTSTP = 18 // signal.h:107:1:
  92. SIGTTIN = 21 // signal.h:110:1:
  93. SIGTTOU = 22 // signal.h:111:1:
  94. SIGURG = 16 // signal.h:103:1:
  95. SIGUSR1 = 30 // signal.h:127:1:
  96. SIGUSR2 = 31 // signal.h:128:1:
  97. SIGVTALRM = 26 // signal.h:119:1:
  98. SIGWINCH = 28 // signal.h:123:1:
  99. SIGXCPU = 24 // signal.h:117:1:
  100. SIGXFSZ = 25 // signal.h:118:1:
  101. SIG_BLOCK = 1 // signal.h:501:1:
  102. SIG_SETMASK = 3 // signal.h:503:1:
  103. SIG_UNBLOCK = 2 // signal.h:502:1:
  104. SI_ASYNCIO = 0x10004 // signal.h:408:1:
  105. SI_KERNEL = 0x10006 // signal.h:412:1:
  106. SI_LWP = 0x10007 // signal.h:413:1:
  107. SI_MESGQ = 0x10005 // signal.h:410:1:
  108. SI_NOINFO = 0 // signal.h:403:1:
  109. SI_QUEUE = 0x10002 // signal.h:405:1:
  110. SI_TIMER = 0x10003 // signal.h:406:1:
  111. SI_UNDEFINED = 0 // signal.h:416:1:
  112. SI_USER = 0x10001 // signal.h:404:1:
  113. SS_DISABLE = 0x0004 // signal.h:431:1:
  114. SS_ONSTACK = 0x0001 // signal.h:430:1:
  115. SV_INTERRUPT = 2 // signal.h:459:1:
  116. SV_NOCLDSTOP = 8 // signal.h:462:1:
  117. SV_NODEFER = 16 // signal.h:461:1:
  118. SV_ONSTACK = 1 // signal.h:458:1:
  119. SV_RESETHAND = 4 // signal.h:460:1:
  120. SV_SIGINFO = 64 // signal.h:463:1:
  121. TRAP_BRKPT = 1 // signal.h:337:1:
  122. TRAP_CAP = 4 // signal.h:340:1:
  123. TRAP_DTRACE = 3 // signal.h:339:1:
  124. TRAP_TRACE = 2 // signal.h:338:1:
  125. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  126. X_LP64 = 1 // <predefined>:1:1:
  127. X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
  128. X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
  129. X_MC_FLAG_MASK = 7 // ucontext.h:104:1:
  130. X_MC_FPFMT_NODEV = 0x10000 // ucontext.h:145:1:
  131. X_MC_FPFMT_XMM = 0x10002 // ucontext.h:146:1:
  132. X_MC_FPOWNED_FPU = 0x20001 // ucontext.h:149:1:
  133. X_MC_FPOWNED_NONE = 0x20000 // ucontext.h:148:1:
  134. X_MC_FPOWNED_PCB = 0x20002 // ucontext.h:150:1:
  135. X_MC_HASBASES = 0x2 // ucontext.h:102:1:
  136. X_MC_HASFPXSTATE = 0x4 // ucontext.h:103:1:
  137. X_MC_HASSEGS = 0x1 // ucontext.h:101:1:
  138. X_Nonnull = 0 // cdefs.h:790:1:
  139. X_Null_unspecified = 0 // cdefs.h:792:1:
  140. X_Nullable = 0 // cdefs.h:791:1:
  141. X_PID_T_DECLARED = 0 // signal.h:61:1:
  142. X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
  143. X_SIGNAL_H_ = 0 // signal.h:36:1:
  144. X_SIGSET_T_DECLARED = 0 // signal.h:165:1:
  145. X_SIG_MAXSIG = 128 // _sigset.h:47:1:
  146. X_SIG_WORDS = 4 // _sigset.h:46:1:
  147. X_SIZE_T_DECLARED = 0 // signal.h:57:1:
  148. X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
  149. X_SYS_SIGNAL_H_ = 0 // signal.h:41:1:
  150. X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
  151. X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
  152. X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
  153. X_SYS__TYPES_H_ = 0 // _types.h:32:1:
  154. X_SYS__UCONTEXT_H_ = 0 // _ucontext.h:34:1:
  155. X_TIME_T_DECLARED = 0 // _timespec.h:43:1:
  156. X_UID_T_DECLARED = 0 // signal.h:62:1:
  157. X_X86_SIGNAL_H = 1 // signal.h:37:1:
  158. X_X86_UCONTEXT_H_ = 0 // ucontext.h:35:1:
  159. Unix = 1 // <predefined>:340:1:
  160. )
  161. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  162. type Size_t = uint64 /* <builtin>:9:23 */
  163. type Wchar_t = int32 /* <builtin>:15:24 */
  164. type X__int128_t = struct {
  165. Flo int64
  166. Fhi int64
  167. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  168. type X__uint128_t = struct {
  169. Flo uint64
  170. Fhi uint64
  171. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  172. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  173. type X__float128 = float64 /* <builtin>:47:21 */
  174. // -
  175. // SPDX-License-Identifier: BSD-3-Clause
  176. //
  177. // Copyright (c) 1991, 1993
  178. // The Regents of the University of California. All rights reserved.
  179. //
  180. // Redistribution and use in source and binary forms, with or without
  181. // modification, are permitted provided that the following conditions
  182. // are met:
  183. // 1. Redistributions of source code must retain the above copyright
  184. // notice, this list of conditions and the following disclaimer.
  185. // 2. Redistributions in binary form must reproduce the above copyright
  186. // notice, this list of conditions and the following disclaimer in the
  187. // documentation and/or other materials provided with the distribution.
  188. // 3. Neither the name of the University nor the names of its contributors
  189. // may be used to endorse or promote products derived from this software
  190. // without specific prior written permission.
  191. //
  192. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  193. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  194. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  195. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  196. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  197. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  198. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  199. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  200. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  201. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  202. // SUCH DAMAGE.
  203. //
  204. // @(#)signal.h 8.3 (Berkeley) 3/30/94
  205. // $FreeBSD$
  206. // -
  207. // SPDX-License-Identifier: BSD-3-Clause
  208. //
  209. // Copyright (c) 1991, 1993
  210. // The Regents of the University of California. All rights reserved.
  211. //
  212. // This code is derived from software contributed to Berkeley by
  213. // Berkeley Software Design, Inc.
  214. //
  215. // Redistribution and use in source and binary forms, with or without
  216. // modification, are permitted provided that the following conditions
  217. // are met:
  218. // 1. Redistributions of source code must retain the above copyright
  219. // notice, this list of conditions and the following disclaimer.
  220. // 2. Redistributions in binary form must reproduce the above copyright
  221. // notice, this list of conditions and the following disclaimer in the
  222. // documentation and/or other materials provided with the distribution.
  223. // 3. Neither the name of the University nor the names of its contributors
  224. // may be used to endorse or promote products derived from this software
  225. // without specific prior written permission.
  226. //
  227. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  228. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  229. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  230. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  231. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  232. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  233. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  234. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  235. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  236. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  237. // SUCH DAMAGE.
  238. //
  239. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  240. // $FreeBSD$
  241. // Testing against Clang-specific extensions.
  242. // This code has been put in place to help reduce the addition of
  243. // compiler specific defines in FreeBSD code. It helps to aid in
  244. // having a compiler-agnostic source tree.
  245. // Compiler memory barriers, specific to gcc and clang.
  246. // XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
  247. // Macro to test if we're using a specific version of gcc or later.
  248. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  249. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  250. // The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
  251. // mode -- there must be no spaces between its arguments, and for nested
  252. // __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
  253. // concatenate double-quoted strings produced by the __STRING macro, but
  254. // this only works with ANSI C.
  255. //
  256. // __XSTRING is like __STRING, but it expands any macros in its argument
  257. // first. It is only available with ANSI C.
  258. // Compiler-dependent macros to help declare dead (non-returning) and
  259. // pure (no side effects) functions, and unused variables. They are
  260. // null except for versions of gcc that are known to support the features
  261. // properly (old versions of gcc-2 supported the dead and pure features
  262. // in a different (wrong) way). If we do not provide an implementation
  263. // for a given compiler, let the compile fail if it is told to use
  264. // a feature that we cannot live without.
  265. // Keywords added in C11.
  266. // Emulation of C11 _Generic(). Unlike the previously defined C11
  267. // keywords, it is not possible to implement this using exactly the same
  268. // syntax. Therefore implement something similar under the name
  269. // __generic(). Unlike _Generic(), this macro can only distinguish
  270. // between a single type, so it requires nested invocations to
  271. // distinguish multiple cases.
  272. // C99 Static array indices in function parameter declarations. Syntax such as:
  273. // void bar(int myArray[static 10]);
  274. // is allowed in C99 but not in C++. Define __min_size appropriately so
  275. // headers using it can be compiled in either language. Use like this:
  276. // void bar(int myArray[__min_size(10)]);
  277. // XXX: should use `#if __STDC_VERSION__ < 199901'.
  278. // C++11 exposes a load of C99 stuff
  279. // GCC 2.95 provides `__restrict' as an extension to C90 to support the
  280. // C99-specific `restrict' type qualifier. We happen to use `__restrict' as
  281. // a way to define the `restrict' type qualifier without disturbing older
  282. // software that is unaware of C99 keywords.
  283. // GNU C version 2.96 adds explicit branch prediction so that
  284. // the CPU back-end can hint the processor and also so that
  285. // code blocks can be reordered such that the predicted path
  286. // sees a more linear flow, thus improving cache behavior, etc.
  287. //
  288. // The following two macros provide us with a way to utilize this
  289. // compiler feature. Use __predict_true() if you expect the expression
  290. // to evaluate to true, and __predict_false() if you expect the
  291. // expression to evaluate to false.
  292. //
  293. // A few notes about usage:
  294. //
  295. // * Generally, __predict_false() error condition checks (unless
  296. // you have some _strong_ reason to do otherwise, in which case
  297. // document it), and/or __predict_true() `no-error' condition
  298. // checks, assuming you want to optimize for the no-error case.
  299. //
  300. // * Other than that, if you don't know the likelihood of a test
  301. // succeeding from empirical or other `hard' evidence, don't
  302. // make predictions.
  303. //
  304. // * These are meant to be used in places that are run `a lot'.
  305. // It is wasteful to make predictions in code that is run
  306. // seldomly (e.g. at subsystem initialization time) as the
  307. // basic block reordering that this affects can often generate
  308. // larger code.
  309. // We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
  310. // require it.
  311. // Given the pointer x to the member m of the struct s, return
  312. // a pointer to the containing structure. When using GCC, we first
  313. // assign pointer x to a local variable, to check that its type is
  314. // compatible with member m.
  315. // Compiler-dependent macros to declare that functions take printf-like
  316. // or scanf-like arguments. They are null except for versions of gcc
  317. // that are known to support the features properly (old versions of gcc-2
  318. // didn't permit keeping the keywords out of the application namespace).
  319. // Compiler-dependent macros that rely on FreeBSD-specific extensions.
  320. // Embed the rcs id of a source file in the resulting library. Note that in
  321. // more recent ELF binutils, we use .ident allowing the ID to be stripped.
  322. // Usage:
  323. // __FBSDID("$FreeBSD$");
  324. // -
  325. // The following definitions are an extension of the behavior originally
  326. // implemented in <sys/_posix.h>, but with a different level of granularity.
  327. // POSIX.1 requires that the macros we test be defined before any standard
  328. // header file is included.
  329. //
  330. // Here's a quick run-down of the versions:
  331. // defined(_POSIX_SOURCE) 1003.1-1988
  332. // _POSIX_C_SOURCE == 1 1003.1-1990
  333. // _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
  334. // _POSIX_C_SOURCE == 199309 1003.1b-1993
  335. // _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
  336. // and the omnibus ISO/IEC 9945-1: 1996
  337. // _POSIX_C_SOURCE == 200112 1003.1-2001
  338. // _POSIX_C_SOURCE == 200809 1003.1-2008
  339. //
  340. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  341. // Specification, defines a feature-test macro which indicates the version of
  342. // that specification, and which subsumes _POSIX_C_SOURCE.
  343. //
  344. // Our macros begin with two underscores to avoid namespace screwage.
  345. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
  346. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
  347. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  348. // Deal with all versions of POSIX. The ordering relative to the tests above is
  349. // important.
  350. // -
  351. // Deal with _ANSI_SOURCE:
  352. // If it is defined, and no other compilation environment is explicitly
  353. // requested, then define our internal feature-test macros to zero. This
  354. // makes no difference to the preprocessor (undefined symbols in preprocessing
  355. // expressions are defined to have value zero), but makes it more convenient for
  356. // a test program to print out the values.
  357. //
  358. // If a program mistakenly defines _ANSI_SOURCE and some other macro such as
  359. // _POSIX_C_SOURCE, we will assume that it wants the broader compilation
  360. // environment (and in fact we will never get here).
  361. // User override __EXT1_VISIBLE
  362. // Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
  363. // translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
  364. // Nullability qualifiers: currently only supported by Clang.
  365. // Type Safety Checking
  366. //
  367. // Clang provides additional attributes to enable checking type safety
  368. // properties that cannot be enforced by the C type system.
  369. // Lock annotations.
  370. //
  371. // Clang provides support for doing basic thread-safety tests at
  372. // compile-time, by marking which locks will/should be held when
  373. // entering/leaving a functions.
  374. //
  375. // Furthermore, it is also possible to annotate variables and structure
  376. // members to enforce that they are only accessed when certain locks are
  377. // held.
  378. // Structure implements a lock.
  379. // Function acquires an exclusive or shared lock.
  380. // Function attempts to acquire an exclusive or shared lock.
  381. // Function releases a lock.
  382. // Function asserts that an exclusive or shared lock is held.
  383. // Function requires that an exclusive or shared lock is or is not held.
  384. // Function should not be analyzed.
  385. // Function or variable should not be sanitized, e.g., by AddressSanitizer.
  386. // GCC has the nosanitize attribute, but as a function attribute only, and
  387. // warns on use as a variable attribute.
  388. // Guard variables and structure members by lock.
  389. // Alignment builtins for better type checking and improved code generation.
  390. // Provide fallback versions for other compilers (GCC/Clang < 10):
  391. // -
  392. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  393. //
  394. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  395. // All rights reserved.
  396. //
  397. // Redistribution and use in source and binary forms, with or without
  398. // modification, are permitted provided that the following conditions
  399. // are met:
  400. // 1. Redistributions of source code must retain the above copyright
  401. // notice, this list of conditions and the following disclaimer.
  402. // 2. Redistributions in binary form must reproduce the above copyright
  403. // notice, this list of conditions and the following disclaimer in the
  404. // documentation and/or other materials provided with the distribution.
  405. //
  406. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  407. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  408. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  409. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  410. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  411. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  412. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  413. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  414. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  415. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  416. // SUCH DAMAGE.
  417. //
  418. // $FreeBSD$
  419. // -
  420. // SPDX-License-Identifier: BSD-3-Clause
  421. //
  422. // Copyright (c) 1991, 1993
  423. // The Regents of the University of California. All rights reserved.
  424. //
  425. // This code is derived from software contributed to Berkeley by
  426. // Berkeley Software Design, Inc.
  427. //
  428. // Redistribution and use in source and binary forms, with or without
  429. // modification, are permitted provided that the following conditions
  430. // are met:
  431. // 1. Redistributions of source code must retain the above copyright
  432. // notice, this list of conditions and the following disclaimer.
  433. // 2. Redistributions in binary form must reproduce the above copyright
  434. // notice, this list of conditions and the following disclaimer in the
  435. // documentation and/or other materials provided with the distribution.
  436. // 3. Neither the name of the University nor the names of its contributors
  437. // may be used to endorse or promote products derived from this software
  438. // without specific prior written permission.
  439. //
  440. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  441. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  442. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  443. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  444. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  445. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  446. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  447. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  448. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  449. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  450. // SUCH DAMAGE.
  451. //
  452. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  453. // $FreeBSD$
  454. // -
  455. // This file is in the public domain.
  456. // $FreeBSD$
  457. // -
  458. // SPDX-License-Identifier: BSD-4-Clause
  459. //
  460. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  461. // Copyright (c) 1990, 1993
  462. // The Regents of the University of California. All rights reserved.
  463. //
  464. // Redistribution and use in source and binary forms, with or without
  465. // modification, are permitted provided that the following conditions
  466. // are met:
  467. // 1. Redistributions of source code must retain the above copyright
  468. // notice, this list of conditions and the following disclaimer.
  469. // 2. Redistributions in binary form must reproduce the above copyright
  470. // notice, this list of conditions and the following disclaimer in the
  471. // documentation and/or other materials provided with the distribution.
  472. // 3. All advertising materials mentioning features or use of this software
  473. // must display the following acknowledgement:
  474. // This product includes software developed by the University of
  475. // California, Berkeley and its contributors.
  476. // 4. Neither the name of the University nor the names of its contributors
  477. // may be used to endorse or promote products derived from this software
  478. // without specific prior written permission.
  479. //
  480. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  481. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  482. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  483. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  484. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  485. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  486. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  487. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  488. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  489. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  490. // SUCH DAMAGE.
  491. //
  492. // From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
  493. // From: @(#)types.h 8.3 (Berkeley) 1/5/94
  494. // $FreeBSD$
  495. // -
  496. // This file is in the public domain.
  497. // $FreeBSD$
  498. // -
  499. // SPDX-License-Identifier: BSD-3-Clause
  500. //
  501. // Copyright (c) 1988, 1993
  502. // The Regents of the University of California. All rights reserved.
  503. //
  504. // Redistribution and use in source and binary forms, with or without
  505. // modification, are permitted provided that the following conditions
  506. // are met:
  507. // 1. Redistributions of source code must retain the above copyright
  508. // notice, this list of conditions and the following disclaimer.
  509. // 2. Redistributions in binary form must reproduce the above copyright
  510. // notice, this list of conditions and the following disclaimer in the
  511. // documentation and/or other materials provided with the distribution.
  512. // 3. Neither the name of the University nor the names of its contributors
  513. // may be used to endorse or promote products derived from this software
  514. // without specific prior written permission.
  515. //
  516. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  517. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  518. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  519. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  520. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  521. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  522. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  523. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  524. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  525. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  526. // SUCH DAMAGE.
  527. //
  528. // @(#)limits.h 8.3 (Berkeley) 1/4/94
  529. // $FreeBSD$
  530. // According to ANSI (section 2.2.4.2), the values below must be usable by
  531. // #if preprocessing directives. Additionally, the expression must have the
  532. // same type as would an expression that is an object of the corresponding
  533. // type converted according to the integral promotions. The subtraction for
  534. // INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
  535. // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
  536. // max value for an unsigned long long
  537. // Quads and longs are the same on the amd64. Ensure they stay in sync.
  538. // Minimum signal stack size.
  539. // Basic types upon which most other types are built.
  540. type X__int8_t = int8 /* _types.h:55:22 */
  541. type X__uint8_t = uint8 /* _types.h:56:24 */
  542. type X__int16_t = int16 /* _types.h:57:17 */
  543. type X__uint16_t = uint16 /* _types.h:58:25 */
  544. type X__int32_t = int32 /* _types.h:59:15 */
  545. type X__uint32_t = uint32 /* _types.h:60:23 */
  546. type X__int64_t = int64 /* _types.h:62:16 */
  547. type X__uint64_t = uint64 /* _types.h:63:24 */
  548. // Standard type definitions.
  549. type X__clock_t = X__int32_t /* _types.h:75:19 */ // clock()...
  550. type X__critical_t = X__int64_t /* _types.h:76:19 */
  551. type X__double_t = float64 /* _types.h:78:17 */
  552. type X__float_t = float32 /* _types.h:79:16 */
  553. type X__intfptr_t = X__int64_t /* _types.h:81:19 */
  554. type X__intptr_t = X__int64_t /* _types.h:82:19 */
  555. type X__intmax_t = X__int64_t /* _types.h:93:19 */
  556. type X__int_fast8_t = X__int32_t /* _types.h:94:19 */
  557. type X__int_fast16_t = X__int32_t /* _types.h:95:19 */
  558. type X__int_fast32_t = X__int32_t /* _types.h:96:19 */
  559. type X__int_fast64_t = X__int64_t /* _types.h:97:19 */
  560. type X__int_least8_t = X__int8_t /* _types.h:98:18 */
  561. type X__int_least16_t = X__int16_t /* _types.h:99:19 */
  562. type X__int_least32_t = X__int32_t /* _types.h:100:19 */
  563. type X__int_least64_t = X__int64_t /* _types.h:101:19 */
  564. type X__ptrdiff_t = X__int64_t /* _types.h:103:19 */ // ptr1 - ptr2
  565. type X__register_t = X__int64_t /* _types.h:104:19 */
  566. type X__segsz_t = X__int64_t /* _types.h:105:19 */ // segment size (in pages)
  567. type X__size_t = X__uint64_t /* _types.h:106:20 */ // sizeof()
  568. type X__ssize_t = X__int64_t /* _types.h:107:19 */ // byte count or error
  569. type X__time_t = X__int64_t /* _types.h:108:19 */ // time()...
  570. type X__uintfptr_t = X__uint64_t /* _types.h:109:20 */
  571. type X__uintptr_t = X__uint64_t /* _types.h:110:20 */
  572. type X__uintmax_t = X__uint64_t /* _types.h:121:20 */
  573. type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */
  574. type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */
  575. type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */
  576. type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */
  577. type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */
  578. type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
  579. type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
  580. type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
  581. type X__u_register_t = X__uint64_t /* _types.h:131:20 */
  582. type X__vm_offset_t = X__uint64_t /* _types.h:132:20 */
  583. type X__vm_paddr_t = X__uint64_t /* _types.h:133:20 */
  584. type X__vm_size_t = X__uint64_t /* _types.h:134:20 */
  585. type X___wchar_t = int32 /* _types.h:141:14 */
  586. // Standard type definitions.
  587. type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
  588. type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
  589. type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
  590. type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
  591. type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
  592. type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
  593. type X__gid_t = X__uint32_t /* _types.h:46:20 */
  594. type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
  595. type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
  596. type X__key_t = int64 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
  597. type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
  598. type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
  599. type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
  600. type X__nl_item = int32 /* _types.h:53:14 */
  601. type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
  602. type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
  603. type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
  604. type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
  605. type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
  606. // signed, because of legacy code
  607. // that uses -1 for RLIM_INFINITY
  608. type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
  609. type X__socklen_t = X__uint32_t /* _types.h:62:20 */
  610. type X__suseconds_t = int64 /* _types.h:63:15 */ // microseconds (signed)
  611. type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
  612. type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
  613. type X__uid_t = X__uint32_t /* _types.h:66:20 */
  614. type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
  615. type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
  616. type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
  617. type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
  618. type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
  619. // Unusual type definitions.
  620. // rune_t is declared to be an “int” instead of the more natural
  621. // “unsigned long” or “long”. Two things are happening here. It is not
  622. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  623. // it looks like 10646 will be a 31 bit standard. This means that if your
  624. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  625. // chosen over a long is that the is*() and to*() routines take ints (says
  626. // ANSI C), but they use __ct_rune_t instead of int.
  627. //
  628. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  629. // be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and
  630. // rune_t must be the same type. Also, wint_t should be able to hold all
  631. // members of the largest character set plus one extra value (WEOF), and
  632. // must be at least 16 bits.
  633. type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs
  634. type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
  635. type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
  636. // Clang already provides these types as built-ins, but only in C++ mode.
  637. type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
  638. type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
  639. // In C++11, char16_t and char32_t are built-in types.
  640. type X__max_align_t = struct {
  641. F__max_align1 int64
  642. F__max_align2 float64
  643. } /* _types.h:111:3 */
  644. type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
  645. type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
  646. // mbstate_t is an opaque object to keep conversion state during multibyte
  647. // stream conversions.
  648. type X__mbstate_t = struct {
  649. F__ccgo_pad1 [0]uint64
  650. F__mbstate8 [128]int8
  651. } /* _types.h:124:3 */
  652. type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
  653. // Types for varargs. These are all provided by builtin types these
  654. // days, so centralize their definition.
  655. type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
  656. type X__gnuc_va_list = X__va_list /* _types.h:140:20 */ // compatibility w/GNU headers
  657. // When the following macro is defined, the system uses 64-bit inode numbers.
  658. // Programs can use this to avoid including <sys/param.h>, with its associated
  659. // namespace pollution.
  660. // -
  661. // SPDX-License-Identifier: BSD-3-Clause
  662. //
  663. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  664. // The Regents of the University of California. All rights reserved.
  665. // (c) UNIX System Laboratories, Inc.
  666. // All or some portions of this file are derived from material licensed
  667. // to the University of California by American Telephone and Telegraph
  668. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  669. // the permission of UNIX System Laboratories, Inc.
  670. //
  671. // Redistribution and use in source and binary forms, with or without
  672. // modification, are permitted provided that the following conditions
  673. // are met:
  674. // 1. Redistributions of source code must retain the above copyright
  675. // notice, this list of conditions and the following disclaimer.
  676. // 2. Redistributions in binary form must reproduce the above copyright
  677. // notice, this list of conditions and the following disclaimer in the
  678. // documentation and/or other materials provided with the distribution.
  679. // 3. Neither the name of the University nor the names of its contributors
  680. // may be used to endorse or promote products derived from this software
  681. // without specific prior written permission.
  682. //
  683. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  684. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  685. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  686. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  687. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  688. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  689. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  690. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  691. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  692. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  693. // SUCH DAMAGE.
  694. //
  695. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  696. // $FreeBSD$
  697. // -
  698. // SPDX-License-Identifier: BSD-3-Clause
  699. //
  700. // Copyright (c) 1991, 1993
  701. // The Regents of the University of California. All rights reserved.
  702. //
  703. // This code is derived from software contributed to Berkeley by
  704. // Berkeley Software Design, Inc.
  705. //
  706. // Redistribution and use in source and binary forms, with or without
  707. // modification, are permitted provided that the following conditions
  708. // are met:
  709. // 1. Redistributions of source code must retain the above copyright
  710. // notice, this list of conditions and the following disclaimer.
  711. // 2. Redistributions in binary form must reproduce the above copyright
  712. // notice, this list of conditions and the following disclaimer in the
  713. // documentation and/or other materials provided with the distribution.
  714. // 3. Neither the name of the University nor the names of its contributors
  715. // may be used to endorse or promote products derived from this software
  716. // without specific prior written permission.
  717. //
  718. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  719. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  720. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  721. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  722. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  723. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  724. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  725. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  726. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  727. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  728. // SUCH DAMAGE.
  729. //
  730. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  731. // $FreeBSD$
  732. // -
  733. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  734. //
  735. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  736. // All rights reserved.
  737. //
  738. // Redistribution and use in source and binary forms, with or without
  739. // modification, are permitted provided that the following conditions
  740. // are met:
  741. // 1. Redistributions of source code must retain the above copyright
  742. // notice, this list of conditions and the following disclaimer.
  743. // 2. Redistributions in binary form must reproduce the above copyright
  744. // notice, this list of conditions and the following disclaimer in the
  745. // documentation and/or other materials provided with the distribution.
  746. //
  747. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  748. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  749. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  750. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  751. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  752. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  753. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  754. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  755. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  756. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  757. // SUCH DAMAGE.
  758. //
  759. // $FreeBSD$
  760. // -
  761. // SPDX-License-Identifier: BSD-3-Clause
  762. //
  763. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  764. // The Regents of the University of California. All rights reserved.
  765. // (c) UNIX System Laboratories, Inc.
  766. // All or some portions of this file are derived from material licensed
  767. // to the University of California by American Telephone and Telegraph
  768. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  769. // the permission of UNIX System Laboratories, Inc.
  770. //
  771. // Redistribution and use in source and binary forms, with or without
  772. // modification, are permitted provided that the following conditions
  773. // are met:
  774. // 1. Redistributions of source code must retain the above copyright
  775. // notice, this list of conditions and the following disclaimer.
  776. // 2. Redistributions in binary form must reproduce the above copyright
  777. // notice, this list of conditions and the following disclaimer in the
  778. // documentation and/or other materials provided with the distribution.
  779. // 3. Neither the name of the University nor the names of its contributors
  780. // may be used to endorse or promote products derived from this software
  781. // without specific prior written permission.
  782. //
  783. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  784. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  785. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  786. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  787. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  788. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  789. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  790. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  791. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  792. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  793. // SUCH DAMAGE.
  794. //
  795. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  796. // $FreeBSD$
  797. // sigset_t macros.
  798. type X__sigset = struct{ F__bits [4]X__uint32_t } /* _sigset.h:53:9 */
  799. // compatibility w/GNU headers
  800. // When the following macro is defined, the system uses 64-bit inode numbers.
  801. // Programs can use this to avoid including <sys/param.h>, with its associated
  802. // namespace pollution.
  803. // -
  804. // SPDX-License-Identifier: BSD-3-Clause
  805. //
  806. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  807. // The Regents of the University of California. All rights reserved.
  808. // (c) UNIX System Laboratories, Inc.
  809. // All or some portions of this file are derived from material licensed
  810. // to the University of California by American Telephone and Telegraph
  811. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  812. // the permission of UNIX System Laboratories, Inc.
  813. //
  814. // Redistribution and use in source and binary forms, with or without
  815. // modification, are permitted provided that the following conditions
  816. // are met:
  817. // 1. Redistributions of source code must retain the above copyright
  818. // notice, this list of conditions and the following disclaimer.
  819. // 2. Redistributions in binary form must reproduce the above copyright
  820. // notice, this list of conditions and the following disclaimer in the
  821. // documentation and/or other materials provided with the distribution.
  822. // 3. Neither the name of the University nor the names of its contributors
  823. // may be used to endorse or promote products derived from this software
  824. // without specific prior written permission.
  825. //
  826. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  827. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  828. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  829. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  830. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  831. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  832. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  833. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  834. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  835. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  836. // SUCH DAMAGE.
  837. //
  838. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  839. // $FreeBSD$
  840. // -
  841. // SPDX-License-Identifier: BSD-3-Clause
  842. //
  843. // Copyright (c) 1991, 1993
  844. // The Regents of the University of California. All rights reserved.
  845. //
  846. // This code is derived from software contributed to Berkeley by
  847. // Berkeley Software Design, Inc.
  848. //
  849. // Redistribution and use in source and binary forms, with or without
  850. // modification, are permitted provided that the following conditions
  851. // are met:
  852. // 1. Redistributions of source code must retain the above copyright
  853. // notice, this list of conditions and the following disclaimer.
  854. // 2. Redistributions in binary form must reproduce the above copyright
  855. // notice, this list of conditions and the following disclaimer in the
  856. // documentation and/or other materials provided with the distribution.
  857. // 3. Neither the name of the University nor the names of its contributors
  858. // may be used to endorse or promote products derived from this software
  859. // without specific prior written permission.
  860. //
  861. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  862. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  863. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  864. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  865. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  866. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  867. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  868. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  869. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  870. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  871. // SUCH DAMAGE.
  872. //
  873. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  874. // $FreeBSD$
  875. // -
  876. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  877. //
  878. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  879. // All rights reserved.
  880. //
  881. // Redistribution and use in source and binary forms, with or without
  882. // modification, are permitted provided that the following conditions
  883. // are met:
  884. // 1. Redistributions of source code must retain the above copyright
  885. // notice, this list of conditions and the following disclaimer.
  886. // 2. Redistributions in binary form must reproduce the above copyright
  887. // notice, this list of conditions and the following disclaimer in the
  888. // documentation and/or other materials provided with the distribution.
  889. //
  890. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  891. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  892. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  893. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  894. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  895. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  896. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  897. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  898. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  899. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  900. // SUCH DAMAGE.
  901. //
  902. // $FreeBSD$
  903. // -
  904. // SPDX-License-Identifier: BSD-3-Clause
  905. //
  906. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  907. // The Regents of the University of California. All rights reserved.
  908. // (c) UNIX System Laboratories, Inc.
  909. // All or some portions of this file are derived from material licensed
  910. // to the University of California by American Telephone and Telegraph
  911. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  912. // the permission of UNIX System Laboratories, Inc.
  913. //
  914. // Redistribution and use in source and binary forms, with or without
  915. // modification, are permitted provided that the following conditions
  916. // are met:
  917. // 1. Redistributions of source code must retain the above copyright
  918. // notice, this list of conditions and the following disclaimer.
  919. // 2. Redistributions in binary form must reproduce the above copyright
  920. // notice, this list of conditions and the following disclaimer in the
  921. // documentation and/or other materials provided with the distribution.
  922. // 3. Neither the name of the University nor the names of its contributors
  923. // may be used to endorse or promote products derived from this software
  924. // without specific prior written permission.
  925. //
  926. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  927. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  928. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  929. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  930. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  931. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  932. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  933. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  934. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  935. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  936. // SUCH DAMAGE.
  937. //
  938. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  939. // $FreeBSD$
  940. // sigset_t macros.
  941. type X__sigset_t = X__sigset /* _sigset.h:55:3 */
  942. // -
  943. // This file is in the public domain.
  944. // $FreeBSD$
  945. // -
  946. // SPDX-License-Identifier: BSD-3-Clause
  947. //
  948. // Copyright (c) 1988, 1993
  949. // The Regents of the University of California. All rights reserved.
  950. //
  951. // Redistribution and use in source and binary forms, with or without
  952. // modification, are permitted provided that the following conditions
  953. // are met:
  954. // 1. Redistributions of source code must retain the above copyright
  955. // notice, this list of conditions and the following disclaimer.
  956. // 2. Redistributions in binary form must reproduce the above copyright
  957. // notice, this list of conditions and the following disclaimer in the
  958. // documentation and/or other materials provided with the distribution.
  959. // 3. Neither the name of the University nor the names of its contributors
  960. // may be used to endorse or promote products derived from this software
  961. // without specific prior written permission.
  962. //
  963. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  964. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  965. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  966. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  967. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  968. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  969. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  970. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  971. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  972. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  973. // SUCH DAMAGE.
  974. //
  975. // @(#)limits.h 8.3 (Berkeley) 1/4/94
  976. // $FreeBSD$
  977. // -
  978. // This file is in the public domain.
  979. // $FreeBSD$
  980. // -
  981. // SPDX-License-Identifier: BSD-3-Clause
  982. //
  983. // Copyright (c) 1986, 1989, 1991, 1993
  984. // The Regents of the University of California. All rights reserved.
  985. // Copyright (c) 2003 Peter Wemm.
  986. //
  987. // Redistribution and use in source and binary forms, with or without
  988. // modification, are permitted provided that the following conditions
  989. // are met:
  990. // 1. Redistributions of source code must retain the above copyright
  991. // notice, this list of conditions and the following disclaimer.
  992. // 2. Redistributions in binary form must reproduce the above copyright
  993. // notice, this list of conditions and the following disclaimer in the
  994. // documentation and/or other materials provided with the distribution.
  995. // 3. Neither the name of the University nor the names of its contributors
  996. // may be used to endorse or promote products derived from this software
  997. // without specific prior written permission.
  998. //
  999. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1000. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1001. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1002. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1003. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1004. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1005. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1006. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1007. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1008. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1009. // SUCH DAMAGE.
  1010. //
  1011. // @(#)signal.h 8.1 (Berkeley) 6/11/93
  1012. // $FreeBSD$
  1013. // Machine-dependent signal definitions
  1014. // -
  1015. // SPDX-License-Identifier: BSD-3-Clause
  1016. //
  1017. // Copyright (c) 1991, 1993
  1018. // The Regents of the University of California. All rights reserved.
  1019. //
  1020. // This code is derived from software contributed to Berkeley by
  1021. // Berkeley Software Design, Inc.
  1022. //
  1023. // Redistribution and use in source and binary forms, with or without
  1024. // modification, are permitted provided that the following conditions
  1025. // are met:
  1026. // 1. Redistributions of source code must retain the above copyright
  1027. // notice, this list of conditions and the following disclaimer.
  1028. // 2. Redistributions in binary form must reproduce the above copyright
  1029. // notice, this list of conditions and the following disclaimer in the
  1030. // documentation and/or other materials provided with the distribution.
  1031. // 3. Neither the name of the University nor the names of its contributors
  1032. // may be used to endorse or promote products derived from this software
  1033. // without specific prior written permission.
  1034. //
  1035. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1036. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1037. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1038. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1039. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1040. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1041. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1042. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1043. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1044. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1045. // SUCH DAMAGE.
  1046. //
  1047. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1048. // $FreeBSD$
  1049. // -
  1050. // SPDX-License-Identifier: BSD-3-Clause
  1051. //
  1052. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1053. // The Regents of the University of California. All rights reserved.
  1054. // (c) UNIX System Laboratories, Inc.
  1055. // All or some portions of this file are derived from material licensed
  1056. // to the University of California by American Telephone and Telegraph
  1057. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1058. // the permission of UNIX System Laboratories, Inc.
  1059. //
  1060. // Redistribution and use in source and binary forms, with or without
  1061. // modification, are permitted provided that the following conditions
  1062. // are met:
  1063. // 1. Redistributions of source code must retain the above copyright
  1064. // notice, this list of conditions and the following disclaimer.
  1065. // 2. Redistributions in binary form must reproduce the above copyright
  1066. // notice, this list of conditions and the following disclaimer in the
  1067. // documentation and/or other materials provided with the distribution.
  1068. // 3. Neither the name of the University nor the names of its contributors
  1069. // may be used to endorse or promote products derived from this software
  1070. // without specific prior written permission.
  1071. //
  1072. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1073. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1074. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1075. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1076. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1077. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1078. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1079. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1080. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1081. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1082. // SUCH DAMAGE.
  1083. //
  1084. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  1085. // $FreeBSD$
  1086. type Sig_atomic_t = int64 /* signal.h:101:14 */
  1087. // Information pushed on stack when a signal is delivered.
  1088. // This is used by the kernel to restore state following
  1089. // execution of the signal handler. It is also made available
  1090. // to the handler to allow it to restore state properly if
  1091. // a non-standard exit is performed.
  1092. //
  1093. // The sequence of the fields/registers after sc_mask in struct
  1094. // sigcontext must match those in mcontext_t and struct trapframe.
  1095. type Sigcontext = struct {
  1096. Fsc_mask struct{ F__bits [4]X__uint32_t }
  1097. Fsc_onstack int64
  1098. Fsc_rdi int64
  1099. Fsc_rsi int64
  1100. Fsc_rdx int64
  1101. Fsc_rcx int64
  1102. Fsc_r8 int64
  1103. Fsc_r9 int64
  1104. Fsc_rax int64
  1105. Fsc_rbx int64
  1106. Fsc_rbp int64
  1107. Fsc_r10 int64
  1108. Fsc_r11 int64
  1109. Fsc_r12 int64
  1110. Fsc_r13 int64
  1111. Fsc_r14 int64
  1112. Fsc_r15 int64
  1113. Fsc_trapno int32
  1114. Fsc_fs int16
  1115. Fsc_gs int16
  1116. Fsc_addr int64
  1117. Fsc_flags int32
  1118. Fsc_es int16
  1119. Fsc_ds int16
  1120. Fsc_err int64
  1121. Fsc_rip int64
  1122. Fsc_cs int64
  1123. Fsc_rflags int64
  1124. Fsc_rsp int64
  1125. Fsc_ss int64
  1126. Fsc_len int64
  1127. Fsc_fpformat int64
  1128. Fsc_ownedfp int64
  1129. Fsc_fpstate [64]int64
  1130. Fsc_fsbase int64
  1131. Fsc_gsbase int64
  1132. Fsc_xfpustate int64
  1133. Fsc_xfpustate_len int64
  1134. Fsc_spare [4]int64
  1135. } /* signal.h:114:1 */
  1136. type Pthread_once = struct {
  1137. Fstate int32
  1138. F__ccgo_pad1 [4]byte
  1139. Fmutex Pthread_mutex_t
  1140. } /* _pthreadtypes.h:52:1 */
  1141. // Primitive system data type definitions required by P1003.1c.
  1142. //
  1143. // Note that P1003.1c specifies that there are no defined comparison
  1144. // or assignment operators for the types pthread_attr_t, pthread_cond_t,
  1145. // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t.
  1146. type Pthread_t = uintptr /* _pthreadtypes.h:67:26 */
  1147. type Pthread_attr_t = uintptr /* _pthreadtypes.h:70:30 */
  1148. type Pthread_mutex_t = uintptr /* _pthreadtypes.h:71:31 */
  1149. type Pthread_mutexattr_t = uintptr /* _pthreadtypes.h:72:35 */
  1150. type Pthread_cond_t = uintptr /* _pthreadtypes.h:73:30 */
  1151. type Pthread_condattr_t = uintptr /* _pthreadtypes.h:74:34 */
  1152. type Pthread_key_t = int32 /* _pthreadtypes.h:75:20 */
  1153. type Pthread_once_t = Pthread_once /* _pthreadtypes.h:76:30 */
  1154. type Pthread_rwlock_t = uintptr /* _pthreadtypes.h:77:32 */
  1155. type Pthread_rwlockattr_t = uintptr /* _pthreadtypes.h:78:35 */
  1156. type Pthread_barrier_t = uintptr /* _pthreadtypes.h:79:33 */
  1157. type Pthread_barrierattr_t = uintptr /* _pthreadtypes.h:80:36 */
  1158. type Pthread_spinlock_t = uintptr /* _pthreadtypes.h:81:33 */
  1159. // Additional type definitions:
  1160. //
  1161. // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for
  1162. // use in header symbols.
  1163. type Pthread_addr_t = uintptr /* _pthreadtypes.h:89:14 */
  1164. type Pthread_startroutine_t = uintptr /* _pthreadtypes.h:90:14 */
  1165. // -
  1166. // SPDX-License-Identifier: BSD-3-Clause
  1167. //
  1168. // Copyright (c) 1982, 1986, 1993
  1169. // The Regents of the University of California. All rights reserved.
  1170. //
  1171. // Redistribution and use in source and binary forms, with or without
  1172. // modification, are permitted provided that the following conditions
  1173. // are met:
  1174. // 1. Redistributions of source code must retain the above copyright
  1175. // notice, this list of conditions and the following disclaimer.
  1176. // 2. Redistributions in binary form must reproduce the above copyright
  1177. // notice, this list of conditions and the following disclaimer in the
  1178. // documentation and/or other materials provided with the distribution.
  1179. // 3. Neither the name of the University nor the names of its contributors
  1180. // may be used to endorse or promote products derived from this software
  1181. // without specific prior written permission.
  1182. //
  1183. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1184. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1185. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1186. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1187. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1188. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1189. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1190. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1191. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1192. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1193. // SUCH DAMAGE.
  1194. //
  1195. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1196. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1197. // $FreeBSD$
  1198. // -
  1199. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1200. //
  1201. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1202. // All rights reserved.
  1203. //
  1204. // Redistribution and use in source and binary forms, with or without
  1205. // modification, are permitted provided that the following conditions
  1206. // are met:
  1207. // 1. Redistributions of source code must retain the above copyright
  1208. // notice, this list of conditions and the following disclaimer.
  1209. // 2. Redistributions in binary form must reproduce the above copyright
  1210. // notice, this list of conditions and the following disclaimer in the
  1211. // documentation and/or other materials provided with the distribution.
  1212. //
  1213. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1214. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1215. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1216. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1217. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1218. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1219. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1220. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1221. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1222. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1223. // SUCH DAMAGE.
  1224. //
  1225. // $FreeBSD$
  1226. type Time_t = X__time_t /* _timespec.h:42:18 */
  1227. type Timespec = struct {
  1228. Ftv_sec Time_t
  1229. Ftv_nsec int64
  1230. } /* _timespec.h:46:1 */
  1231. type Uid_t = X__uid_t /* signal.h:61:18 */
  1232. type Sigset_t = X__sigset_t /* signal.h:166:20 */
  1233. type Sigval = struct {
  1234. F__ccgo_pad1 [0]uint64
  1235. Fsival_int int32
  1236. F__ccgo_pad2 [4]byte
  1237. } /* signal.h:171:1 */
  1238. type Sigevent = struct {
  1239. Fsigev_notify int32
  1240. Fsigev_signo int32
  1241. Fsigev_value struct {
  1242. F__ccgo_pad1 [0]uint64
  1243. Fsival_int int32
  1244. F__ccgo_pad2 [4]byte
  1245. }
  1246. F_sigev_un struct {
  1247. F__ccgo_pad1 [0]uint64
  1248. F_threadid X__lwpid_t
  1249. F__ccgo_pad2 [60]byte
  1250. }
  1251. } /* signal.h:195:1 */
  1252. type X__siginfo = struct {
  1253. Fsi_signo int32
  1254. Fsi_errno int32
  1255. Fsi_code int32
  1256. Fsi_pid X__pid_t
  1257. Fsi_uid X__uid_t
  1258. Fsi_status int32
  1259. Fsi_addr uintptr
  1260. Fsi_value struct {
  1261. F__ccgo_pad1 [0]uint64
  1262. Fsival_int int32
  1263. F__ccgo_pad2 [4]byte
  1264. }
  1265. F_reason struct {
  1266. F__ccgo_pad1 [0]uint64
  1267. F_fault struct{ F_trapno int32 }
  1268. F__ccgo_pad2 [36]byte
  1269. }
  1270. } /* signal.h:229:9 */
  1271. type Siginfo_t = X__siginfo /* signal.h:263:3 */
  1272. // Signal vector "template" used in sigaction call.
  1273. type Sigaction = struct {
  1274. F__sigaction_u struct{ F__sa_handler uintptr }
  1275. Fsa_flags int32
  1276. Fsa_mask Sigset_t
  1277. F__ccgo_pad1 [4]byte
  1278. } /* signal.h:368:1 */
  1279. // If SA_SIGINFO is set, sa_sigaction must be used instead of sa_handler.
  1280. // a timer set by timer_settime().
  1281. // an asynchronous I/O request.
  1282. // message on an empty message queue.
  1283. type Sig_t = uintptr /* signal.h:420:24 */
  1284. type Sigaltstack = struct {
  1285. Fss_sp uintptr
  1286. Fss_size X__size_t
  1287. Fss_flags int32
  1288. F__ccgo_pad1 [4]byte
  1289. } /* signal.h:428:9 */
  1290. type Stack_t = Sigaltstack /* signal.h:428:26 */
  1291. // 4.3 compatibility:
  1292. // Signal vector "template" used in sigvec call.
  1293. type Sigvec = struct {
  1294. Fsv_handler uintptr
  1295. Fsv_mask int32
  1296. Fsv_flags int32
  1297. } /* signal.h:452:1 */
  1298. // Keep this in one place only
  1299. // Structure used in sigstack call.
  1300. type Sigstack = struct {
  1301. Fss_sp uintptr
  1302. Fss_onstack int32
  1303. F__ccgo_pad1 [4]byte
  1304. } /* signal.h:479:1 */
  1305. // -
  1306. // This file is in the public domain.
  1307. // $FreeBSD$
  1308. // -
  1309. // SPDX-License-Identifier: BSD-3-Clause
  1310. //
  1311. // Copyright (c) 2003 Peter Wemm
  1312. // Copyright (c) 1999 Marcel Moolenaar
  1313. // All rights reserved.
  1314. //
  1315. // Redistribution and use in source and binary forms, with or without
  1316. // modification, are permitted provided that the following conditions
  1317. // are met:
  1318. // 1. Redistributions of source code must retain the above copyright
  1319. // notice, this list of conditions and the following disclaimer
  1320. // in this position and unchanged.
  1321. // 2. Redistributions in binary form must reproduce the above copyright
  1322. // notice, this list of conditions and the following disclaimer in the
  1323. // documentation and/or other materials provided with the distribution.
  1324. // 3. The name of the author may not be used to endorse or promote products
  1325. // derived from this software without specific prior written permission.
  1326. //
  1327. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1328. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1329. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1330. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1331. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1332. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1333. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1334. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1335. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1336. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1337. //
  1338. // $FreeBSD$
  1339. // mc_flags bits. Shall be in sync with TF_XXX.
  1340. type X__mcontext = struct {
  1341. Fmc_onstack X__register_t
  1342. Fmc_rdi X__register_t
  1343. Fmc_rsi X__register_t
  1344. Fmc_rdx X__register_t
  1345. Fmc_rcx X__register_t
  1346. Fmc_r8 X__register_t
  1347. Fmc_r9 X__register_t
  1348. Fmc_rax X__register_t
  1349. Fmc_rbx X__register_t
  1350. Fmc_rbp X__register_t
  1351. Fmc_r10 X__register_t
  1352. Fmc_r11 X__register_t
  1353. Fmc_r12 X__register_t
  1354. Fmc_r13 X__register_t
  1355. Fmc_r14 X__register_t
  1356. Fmc_r15 X__register_t
  1357. Fmc_trapno X__uint32_t
  1358. Fmc_fs X__uint16_t
  1359. Fmc_gs X__uint16_t
  1360. Fmc_addr X__register_t
  1361. Fmc_flags X__uint32_t
  1362. Fmc_es X__uint16_t
  1363. Fmc_ds X__uint16_t
  1364. Fmc_err X__register_t
  1365. Fmc_rip X__register_t
  1366. Fmc_cs X__register_t
  1367. Fmc_rflags X__register_t
  1368. Fmc_rsp X__register_t
  1369. Fmc_ss X__register_t
  1370. Fmc_len int64
  1371. Fmc_fpformat int64
  1372. Fmc_ownedfp int64
  1373. Fmc_fpstate [64]int64
  1374. Fmc_fsbase X__register_t
  1375. Fmc_gsbase X__register_t
  1376. Fmc_xfpustate X__register_t
  1377. Fmc_xfpustate_len X__register_t
  1378. Fmc_spare [4]int64
  1379. } /* ucontext.h:106:9 */
  1380. // -
  1381. // This file is in the public domain.
  1382. // $FreeBSD$
  1383. // -
  1384. // SPDX-License-Identifier: BSD-3-Clause
  1385. //
  1386. // Copyright (c) 2003 Peter Wemm
  1387. // Copyright (c) 1999 Marcel Moolenaar
  1388. // All rights reserved.
  1389. //
  1390. // Redistribution and use in source and binary forms, with or without
  1391. // modification, are permitted provided that the following conditions
  1392. // are met:
  1393. // 1. Redistributions of source code must retain the above copyright
  1394. // notice, this list of conditions and the following disclaimer
  1395. // in this position and unchanged.
  1396. // 2. Redistributions in binary form must reproduce the above copyright
  1397. // notice, this list of conditions and the following disclaimer in the
  1398. // documentation and/or other materials provided with the distribution.
  1399. // 3. The name of the author may not be used to endorse or promote products
  1400. // derived from this software without specific prior written permission.
  1401. //
  1402. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1403. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1404. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1405. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1406. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1407. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1408. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1409. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1410. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1411. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1412. //
  1413. // $FreeBSD$
  1414. // mc_flags bits. Shall be in sync with TF_XXX.
  1415. type Mcontext_t = X__mcontext /* ucontext.h:164:3 */
  1416. // -
  1417. // SPDX-License-Identifier: BSD-3-Clause
  1418. //
  1419. // Copyright (c) 1999 Marcel Moolenaar
  1420. // All rights reserved.
  1421. //
  1422. // Redistribution and use in source and binary forms, with or without
  1423. // modification, are permitted provided that the following conditions
  1424. // are met:
  1425. // 1. Redistributions of source code must retain the above copyright
  1426. // notice, this list of conditions and the following disclaimer
  1427. // in this position and unchanged.
  1428. // 2. Redistributions in binary form must reproduce the above copyright
  1429. // notice, this list of conditions and the following disclaimer in the
  1430. // documentation and/or other materials provided with the distribution.
  1431. // 3. The name of the author may not be used to endorse or promote products
  1432. // derived from this software without specific prior written permission.
  1433. //
  1434. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1435. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1436. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1437. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1438. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1439. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1440. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1441. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1442. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1443. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1444. //
  1445. // $FreeBSD$
  1446. type X__ucontext = struct {
  1447. Fuc_sigmask X__sigset_t
  1448. Fuc_mcontext Mcontext_t
  1449. Fuc_link uintptr
  1450. Fuc_stack struct {
  1451. Fss_sp uintptr
  1452. Fss_size X__size_t
  1453. Fss_flags int32
  1454. F__ccgo_pad1 [4]byte
  1455. }
  1456. Fuc_flags int32
  1457. F__spare__ [4]int32
  1458. F__ccgo_pad1 [4]byte
  1459. } /* _ucontext.h:36:9 */
  1460. // -
  1461. // SPDX-License-Identifier: BSD-3-Clause
  1462. //
  1463. // Copyright (c) 1999 Marcel Moolenaar
  1464. // All rights reserved.
  1465. //
  1466. // Redistribution and use in source and binary forms, with or without
  1467. // modification, are permitted provided that the following conditions
  1468. // are met:
  1469. // 1. Redistributions of source code must retain the above copyright
  1470. // notice, this list of conditions and the following disclaimer
  1471. // in this position and unchanged.
  1472. // 2. Redistributions in binary form must reproduce the above copyright
  1473. // notice, this list of conditions and the following disclaimer in the
  1474. // documentation and/or other materials provided with the distribution.
  1475. // 3. The name of the author may not be used to endorse or promote products
  1476. // derived from this software without specific prior written permission.
  1477. //
  1478. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1479. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1480. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1481. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1482. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1483. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1484. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1485. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1486. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1487. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1488. //
  1489. // $FreeBSD$
  1490. type Ucontext_t = X__ucontext /* _ucontext.h:52:3 */
  1491. type Pid_t = X__pid_t /* signal.h:60:18 */ // XXX
  1492. type X__pthread_t = uintptr /* signal.h:67:24 */
  1493. var _ int8 /* gen.c:2:13: */