github.com/afumu/libc@v0.0.6/signal/signal_freebsd_amd64.go (about)

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