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