gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

signal_freebsd_386.go (77274B)


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