github.com/afumu/libc@v0.0.6/sys/types/types_freebsd_amd64.go (about)

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