github.com/afumu/libc@v0.0.6/sys/random/random_freebsd_amd64.go (about)

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