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

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