gtsocial-umbx

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

signal_freebsd_arm.go (66396B)


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