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