modernc.org/libc@v1.24.1/pthread/pthread_freebsd_arm.go (about)

     1  // Code generated by 'ccgo pthread/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 pthread/pthread_freebsd_arm.go -pkgname pthread', DO NOT EDIT.
     2  
     3  package pthread
     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  	CLK_TCK                       = 128        // time.h:56:1:
    21  	CLOCKS_PER_SEC                = 128        // time.h:60:1:
    22  	CLOCK_BOOTTIME                = 5          // _clock_id.h:92:1:
    23  	CLOCK_MONOTONIC               = 4          // _clock_id.h:67:1:
    24  	CLOCK_MONOTONIC_COARSE        = 12         // _clock_id.h:94:1:
    25  	CLOCK_MONOTONIC_FAST          = 12         // _clock_id.h:79:1:
    26  	CLOCK_MONOTONIC_PRECISE       = 11         // _clock_id.h:78:1:
    27  	CLOCK_PROCESS_CPUTIME_ID      = 15         // _clock_id.h:85:1:
    28  	CLOCK_PROF                    = 2          // _clock_id.h:64:1:
    29  	CLOCK_REALTIME                = 0          // _clock_id.h:60:1:
    30  	CLOCK_REALTIME_COARSE         = 10         // _clock_id.h:93:1:
    31  	CLOCK_REALTIME_FAST           = 10         // _clock_id.h:77:1:
    32  	CLOCK_REALTIME_PRECISE        = 9          // _clock_id.h:76:1:
    33  	CLOCK_SECOND                  = 13         // _clock_id.h:80:1:
    34  	CLOCK_THREAD_CPUTIME_ID       = 14         // _clock_id.h:84:1:
    35  	CLOCK_UPTIME                  = 5          // _clock_id.h:74:1:
    36  	CLOCK_UPTIME_FAST             = 8          // _clock_id.h:68:1:
    37  	CLOCK_UPTIME_PRECISE          = 7          // _clock_id.h:75:1:
    38  	CLOCK_VIRTUAL                 = 1          // _clock_id.h:63:1:
    39  	CPUSET_DEFAULT                = 0          // cpuset.h:119:1:
    40  	CPUSET_INVALID                = -1         // cpuset.h:118:1:
    41  	CPU_LEVEL_CPUSET              = 2          // cpuset.h:100:1:
    42  	CPU_LEVEL_ROOT                = 1          // cpuset.h:99:1:
    43  	CPU_LEVEL_WHICH               = 3          // cpuset.h:101:1:
    44  	CPU_MAXSIZE                   = 256        // _cpuset.h:43:1:
    45  	CPU_SETSIZE                   = 256        // _cpuset.h:46:1:
    46  	CPU_WHICH_CPUSET              = 3          // cpuset.h:108:1:
    47  	CPU_WHICH_DOMAIN              = 6          // cpuset.h:111:1:
    48  	CPU_WHICH_INTRHANDLER         = 7          // cpuset.h:112:1:
    49  	CPU_WHICH_IRQ                 = 4          // cpuset.h:109:1:
    50  	CPU_WHICH_ITHREAD             = 8          // cpuset.h:113:1:
    51  	CPU_WHICH_JAIL                = 5          // cpuset.h:110:1:
    52  	CPU_WHICH_PID                 = 2          // cpuset.h:107:1:
    53  	CPU_WHICH_TID                 = 1          // cpuset.h:106:1:
    54  	FD_SETSIZE                    = 1024       // select.h:61:1:
    55  	LITTLE_ENDIAN                 = 1234       // _endian.h:69:1:
    56  	PDP_ENDIAN                    = 3412       // _endian.h:71:1:
    57  	PTHREAD_BARRIER_SERIAL_THREAD = -1         // pthread.h:58:1:
    58  	PTHREAD_CANCEL_ASYNCHRONOUS   = 2          // pthread.h:85:1:
    59  	PTHREAD_CANCEL_DEFERRED       = 0          // pthread.h:84:1:
    60  	PTHREAD_CANCEL_DISABLE        = 1          // pthread.h:83:1:
    61  	PTHREAD_CANCEL_ENABLE         = 0          // pthread.h:82:1:
    62  	PTHREAD_CREATE_DETACHED       = 1          // pthread.h:68:1:
    63  	PTHREAD_CREATE_JOINABLE       = 0          // pthread.h:69:1:
    64  	PTHREAD_DESTRUCTOR_ITERATIONS = 4          // pthread.h:54:1:
    65  	PTHREAD_DETACHED              = 0x1        // pthread.h:63:1:
    66  	PTHREAD_DONE_INIT             = 1          // pthread.h:92:1:
    67  	PTHREAD_EXPLICIT_SCHED        = 0          // pthread.h:71:1:
    68  	PTHREAD_INHERIT_SCHED         = 0x4        // pthread.h:65:1:
    69  	PTHREAD_KEYS_MAX              = 256        // pthread.h:55:1:
    70  	PTHREAD_MUTEX_ROBUST          = 1          // pthread.h:141:1:
    71  	PTHREAD_MUTEX_STALLED         = 0          // pthread.h:140:1:
    72  	PTHREAD_NEEDS_INIT            = 0          // pthread.h:91:1:
    73  	PTHREAD_NOFLOAT               = 0x8        // pthread.h:66:1:
    74  	PTHREAD_PRIO_INHERIT          = 1          // pthread.h:117:1:
    75  	PTHREAD_PRIO_NONE             = 0          // pthread.h:116:1:
    76  	PTHREAD_PRIO_PROTECT          = 2          // pthread.h:118:1:
    77  	PTHREAD_PROCESS_PRIVATE       = 0          // pthread.h:76:1:
    78  	PTHREAD_PROCESS_SHARED        = 1          // pthread.h:77:1:
    79  	PTHREAD_SCOPE_PROCESS         = 0          // pthread.h:70:1:
    80  	PTHREAD_SCOPE_SYSTEM          = 0x2        // pthread.h:64:1:
    81  	PTHREAD_STACK_MIN             = 4096       // pthread.h:56:1:
    82  	PTHREAD_THREADS_MAX           = 4294967295 // pthread.h:57:1:
    83  	SCHED_FIFO                    = 1          // sched.h:241:1:
    84  	SCHED_OTHER                   = 2          // sched.h:242:1:
    85  	SCHED_RR                      = 3          // sched.h:243:1:
    86  	TIMER_ABSTIME                 = 0x1        // _clock_id.h:101:1:
    87  	TIMER_RELTIME                 = 0x0        // _clock_id.h:98:1:
    88  	TIME_UTC                      = 1          // time.h:188:1:
    89  	X_ACCMODE_T_DECLARED          = 0          // types.h:166:1:
    90  	X_BIG_ENDIAN                  = 4321       // _endian.h:47:1:
    91  	X_BLKCNT_T_DECLARED           = 0          // types.h:90:1:
    92  	X_BLKSIZE_T_DECLARED          = 0          // types.h:81:1:
    93  	X_BYTE_ORDER                  = 1234       // _endian.h:40:1:
    94  	X_CAP_IOCTL_T_DECLARED        = 0          // types.h:243:1:
    95  	X_CAP_RIGHTS_T_DECLARED       = 0          // types.h:248:1:
    96  	X_CLOCKID_T_DECLARED          = 0          // types.h:100:1:
    97  	X_CLOCK_T_DECLARED            = 0          // types.h:95:1:
    98  	X_DEV_T_DECLARED              = 0          // types.h:108:1:
    99  	X_FFLAGS_T_DECLARED           = 0          // types.h:113:1:
   100  	X_FILE_OFFSET_BITS            = 64         // <builtin>:25:1:
   101  	X_FSBLKCNT_T_DECLARED         = 0          // types.h:121:1:
   102  	X_FTRUNCATE_DECLARED          = 0          // types.h:417:1:
   103  	X_GID_T_DECLARED              = 0          // types.h:126:1:
   104  	X_ID_T_DECLARED               = 0          // types.h:141:1:
   105  	X_ILP32                       = 1          // <predefined>:1:1:
   106  	X_INO_T_DECLARED              = 0          // types.h:146:1:
   107  	X_INT16_T_DECLARED            = 0          // _stdint.h:42:1:
   108  	X_INT32_T_DECLARED            = 0          // _stdint.h:47:1:
   109  	X_INT64_T_DECLARED            = 0          // _stdint.h:52:1:
   110  	X_INT8_T_DECLARED             = 0          // _stdint.h:37:1:
   111  	X_INTMAX_T_DECLARED           = 0          // _stdint.h:85:1:
   112  	X_INTPTR_T_DECLARED           = 0          // _stdint.h:77:1:
   113  	X_IN_ADDR_T_DECLARED          = 0          // types.h:131:1:
   114  	X_IN_PORT_T_DECLARED          = 0          // types.h:136:1:
   115  	X_KEY_T_DECLARED              = 0          // types.h:151:1:
   116  	X_LITTLE_ENDIAN               = 1234       // _endian.h:46:1:
   117  	X_LOCALE_T_DEFINED            = 0          // _time.h:34:1:
   118  	X_LSEEK_DECLARED              = 0          // types.h:421:1:
   119  	X_LWPID_T_DECLARED            = 0          // types.h:156:1:
   120  	X_MACHINE_ENDIAN_H_           = 0          // endian.h:36:1:
   121  	X_MACHINE__LIMITS_H_          = 0          // _limits.h:36:1:
   122  	X_MACHINE__TYPES_H_           = 0          // _types.h:42:1:
   123  	X_MMAP_DECLARED               = 0          // types.h:425:1:
   124  	X_MODE_T_DECLARED             = 0          // types.h:161:1:
   125  	X_MQD_T_DECLARED              = 0          // types.h:227:1:
   126  	X_NLINK_T_DECLARED            = 0          // types.h:171:1:
   127  	X_Nonnull                     = 0          // cdefs.h:790:1:
   128  	X_Null_unspecified            = 0          // cdefs.h:792:1:
   129  	X_Nullable                    = 0          // cdefs.h:791:1:
   130  	X_OFF64_T_DECLARED            = 0          // types.h:181:1:
   131  	X_OFF_T_DECLARED              = 0          // types.h:176:1:
   132  	X_PDP_ENDIAN                  = 3412       // _endian.h:48:1:
   133  	X_PID_T_DECLARED              = 0          // types.h:186:1:
   134  	X_PTHREAD_H_                  = 0          // pthread.h:38:1:
   135  	X_PTHREAD_T_DECLARED          = 0          // _pthreadtypes.h:68:1:
   136  	X_QUAD_HIGHWORD               = 1          // _endian.h:55:1:
   137  	X_QUAD_LOWWORD                = 0          // _endian.h:56:1:
   138  	X_RLIM_T_DECLARED             = 0          // types.h:193:1:
   139  	X_SCHED_H_                    = 0          // sched.h:65:1:
   140  	X_SELECT_DECLARED             = 0          // select.h:103:1:
   141  	X_SIGSET_T_DECLARED           = 0          // select.h:50:1:
   142  	X_SIG_MAXSIG                  = 128        // _sigset.h:47:1:
   143  	X_SIG_WORDS                   = 4          // _sigset.h:46:1:
   144  	X_SIZE_T_DECLARED             = 0          // types.h:202:1:
   145  	X_SSIZE_T_DECLARED            = 0          // types.h:207:1:
   146  	X_SUSECONDS_T_DECLARED        = 0          // types.h:212:1:
   147  	X_SYS_BITSET_H_               = 0          // bitset.h:35:1:
   148  	X_SYS_CDEFS_H_                = 0          // cdefs.h:39:1:
   149  	X_SYS_CPUSET_H_               = 0          // cpuset.h:35:1:
   150  	X_SYS_SELECT_H_               = 0          // select.h:35:1:
   151  	X_SYS_SYS__CLOCK_ID_H         = 0          // _clock_id.h:40:1:
   152  	X_SYS_TIMESPEC_H_             = 0          // timespec.h:37:1:
   153  	X_SYS_TYPES_H_                = 0          // types.h:41:1:
   154  	X_SYS__BITSET_H_              = 0          // _bitset.h:35:1:
   155  	X_SYS__CPUSET_H_              = 0          // _cpuset.h:35:1:
   156  	X_SYS__ENDIAN_H_              = 0          // _endian.h:33:1:
   157  	X_SYS__PTHREADTYPES_H_        = 0          // _pthreadtypes.h:39:1:
   158  	X_SYS__SIGSET_H_              = 0          // _sigset.h:41:1:
   159  	X_SYS__STDINT_H_              = 0          // _stdint.h:33:1:
   160  	X_SYS__TIMESPEC_H_            = 0          // _timespec.h:37:1:
   161  	X_SYS__TIMEVAL_H_             = 0          // _timeval.h:32:1:
   162  	X_SYS__TYPES_H_               = 0          // _types.h:32:1:
   163  	X_TIMER_T_DECLARED            = 0          // types.h:222:1:
   164  	X_TIME_H_                     = 0          // time.h:44:1:
   165  	X_TIME_T_DECLARED             = 0          // types.h:217:1:
   166  	X_TRUNCATE_DECLARED           = 0          // types.h:429:1:
   167  	X_UID_T_DECLARED              = 0          // types.h:234:1:
   168  	X_UINT16_T_DECLARED           = 0          // _stdint.h:62:1:
   169  	X_UINT32_T_DECLARED           = 0          // _stdint.h:67:1:
   170  	X_UINT64_T_DECLARED           = 0          // _stdint.h:72:1:
   171  	X_UINT8_T_DECLARED            = 0          // _stdint.h:57:1:
   172  	X_UINTMAX_T_DECLARED          = 0          // _stdint.h:89:1:
   173  	X_UINTPTR_T_DECLARED          = 0          // _stdint.h:81:1:
   174  	X_USECONDS_T_DECLARED         = 0          // types.h:239:1:
   175  	X_XLOCALE_LOCALE1_H           = 0          // _time.h:44:1:
   176  	Unix                          = 1          // <predefined>:367:1:
   177  )
   178  
   179  // Run-time invariant values:
   180  
   181  // Flags for threads and thread attributes.
   182  
   183  // Values for process shared/private attributes.
   184  
   185  // Flags for cancelling threads
   186  
   187  // Flags for once initialization.
   188  
   189  // Static once initialization values.
   190  
   191  // Static initialization values.
   192  
   193  // Default attribute arguments (draft 4, deprecated).
   194  
   195  // Mutex types (Single UNIX Specification, Version 2, 1997).
   196  //
   197  // Note that a mutex attribute with one of the following types:
   198  //
   199  //	PTHREAD_MUTEX_NORMAL
   200  //	PTHREAD_MUTEX_RECURSIVE
   201  //
   202  // will deviate from POSIX specified semantics.
   203  const ( /* pthread.h:130:1: */
   204  	PTHREAD_MUTEX_ERRORCHECK  = 1 // Default POSIX mutex
   205  	PTHREAD_MUTEX_RECURSIVE   = 2 // Recursive mutex
   206  	PTHREAD_MUTEX_NORMAL      = 3 // No error checking
   207  	PTHREAD_MUTEX_ADAPTIVE_NP = 4 // Adaptive mutex, spins briefly before blocking on lock
   208  	PTHREAD_MUTEX_TYPE_MAX    = 5
   209  )
   210  
   211  type Ptrdiff_t = int32 /* <builtin>:3:26 */
   212  
   213  type Size_t = uint32 /* <builtin>:9:23 */
   214  
   215  type Wchar_t = uint32 /* <builtin>:15:24 */
   216  
   217  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   218  type X__float128 = float64        /* <builtin>:47:21 */
   219  type Pthread_once = struct {
   220  	Fstate int32
   221  	Fmutex Pthread_mutex_t
   222  } /* _pthreadtypes.h:52:1 */
   223  
   224  // Primitive system data type definitions required by P1003.1c.
   225  //
   226  // Note that P1003.1c specifies that there are no defined comparison
   227  // or assignment operators for the types pthread_attr_t, pthread_cond_t,
   228  // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t.
   229  type Pthread_t = uintptr             /* _pthreadtypes.h:67:26 */
   230  type Pthread_attr_t = uintptr        /* _pthreadtypes.h:70:30 */
   231  type Pthread_mutex_t = uintptr       /* _pthreadtypes.h:71:31 */
   232  type Pthread_mutexattr_t = uintptr   /* _pthreadtypes.h:72:35 */
   233  type Pthread_cond_t = uintptr        /* _pthreadtypes.h:73:30 */
   234  type Pthread_condattr_t = uintptr    /* _pthreadtypes.h:74:34 */
   235  type Pthread_key_t = int32           /* _pthreadtypes.h:75:20 */
   236  type Pthread_once_t = Pthread_once   /* _pthreadtypes.h:76:30 */
   237  type Pthread_rwlock_t = uintptr      /* _pthreadtypes.h:77:32 */
   238  type Pthread_rwlockattr_t = uintptr  /* _pthreadtypes.h:78:35 */
   239  type Pthread_barrier_t = uintptr     /* _pthreadtypes.h:79:33 */
   240  type Pthread_barrierattr_t = uintptr /* _pthreadtypes.h:80:36 */
   241  type Pthread_spinlock_t = uintptr    /* _pthreadtypes.h:81:33 */
   242  
   243  // Additional type definitions:
   244  //
   245  // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for
   246  // use in header symbols.
   247  type Pthread_addr_t = uintptr         /* _pthreadtypes.h:89:14 */
   248  type Pthread_startroutine_t = uintptr /* _pthreadtypes.h:90:14 */
   249  
   250  // -
   251  // SPDX-License-Identifier: BSD-3-Clause
   252  //
   253  // Copyright (c) 1988, 1993
   254  //	The Regents of the University of California.  All rights reserved.
   255  //
   256  // Redistribution and use in source and binary forms, with or without
   257  // modification, are permitted provided that the following conditions
   258  // are met:
   259  // 1. Redistributions of source code must retain the above copyright
   260  //    notice, this list of conditions and the following disclaimer.
   261  // 2. Redistributions in binary form must reproduce the above copyright
   262  //    notice, this list of conditions and the following disclaimer in the
   263  //    documentation and/or other materials provided with the distribution.
   264  // 3. Neither the name of the University nor the names of its contributors
   265  //    may be used to endorse or promote products derived from this software
   266  //    without specific prior written permission.
   267  //
   268  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   269  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   270  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   271  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   272  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   273  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   274  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   275  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   276  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   277  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   278  // SUCH DAMAGE.
   279  //
   280  //	@(#)limits.h	8.3 (Berkeley) 1/4/94
   281  // $FreeBSD$
   282  
   283  // According to ANSI (section 2.2.4.2), the values below must be usable by
   284  // #if preprocessing directives.  Additionally, the expression must have the
   285  // same type as would an expression that is an object of the corresponding
   286  // type converted according to the integral promotions.  The subtraction for
   287  // INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
   288  // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
   289  
   290  // max value for an unsigned long long
   291  
   292  // Quads and long longs are the same size.  Ensure they stay in sync.
   293  
   294  // Minimum signal stack size.
   295  
   296  // -
   297  // SPDX-License-Identifier: BSD-4-Clause
   298  //
   299  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   300  // Copyright (c) 1990, 1993
   301  //	The Regents of the University of California.  All rights reserved.
   302  //
   303  // Redistribution and use in source and binary forms, with or without
   304  // modification, are permitted provided that the following conditions
   305  // are met:
   306  // 1. Redistributions of source code must retain the above copyright
   307  //    notice, this list of conditions and the following disclaimer.
   308  // 2. Redistributions in binary form must reproduce the above copyright
   309  //    notice, this list of conditions and the following disclaimer in the
   310  //    documentation and/or other materials provided with the distribution.
   311  // 3. All advertising materials mentioning features or use of this software
   312  //    must display the following acknowledgement:
   313  //	This product includes software developed by the University of
   314  //	California, Berkeley and its contributors.
   315  // 4. Neither the name of the University nor the names of its contributors
   316  //    may be used to endorse or promote products derived from this software
   317  //    without specific prior written permission.
   318  //
   319  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   320  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   321  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   322  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   323  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   324  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   325  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   326  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   327  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   328  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   329  // SUCH DAMAGE.
   330  //
   331  //	From: @(#)ansi.h	8.2 (Berkeley) 1/4/94
   332  //	From: @(#)types.h	8.3 (Berkeley) 1/5/94
   333  // $FreeBSD$
   334  
   335  // Basic types upon which most other types are built.
   336  type X__int8_t = int8     /* _types.h:51:22 */
   337  type X__uint8_t = uint8   /* _types.h:52:24 */
   338  type X__int16_t = int16   /* _types.h:53:17 */
   339  type X__uint16_t = uint16 /* _types.h:54:25 */
   340  type X__int32_t = int32   /* _types.h:55:15 */
   341  type X__uint32_t = uint32 /* _types.h:56:23 */
   342  
   343  // LONGLONG
   344  type X__int64_t = int64 /* _types.h:61:20 */
   345  
   346  // LONGLONG
   347  type X__uint64_t = uint64 /* _types.h:66:28 */
   348  
   349  // Standard type definitions.
   350  type X__clock_t = X__uint32_t        /* _types.h:71:20 */ // clock()...
   351  type X__critical_t = X__int32_t      /* _types.h:72:19 */
   352  type X__double_t = float64           /* _types.h:74:17 */
   353  type X__float_t = float32            /* _types.h:75:16 */
   354  type X__intfptr_t = X__int32_t       /* _types.h:77:19 */
   355  type X__intmax_t = X__int64_t        /* _types.h:78:19 */
   356  type X__intptr_t = X__int32_t        /* _types.h:79:19 */
   357  type X__int_fast8_t = X__int32_t     /* _types.h:80:19 */
   358  type X__int_fast16_t = X__int32_t    /* _types.h:81:19 */
   359  type X__int_fast32_t = X__int32_t    /* _types.h:82:19 */
   360  type X__int_fast64_t = X__int64_t    /* _types.h:83:19 */
   361  type X__int_least8_t = X__int8_t     /* _types.h:84:18 */
   362  type X__int_least16_t = X__int16_t   /* _types.h:85:19 */
   363  type X__int_least32_t = X__int32_t   /* _types.h:86:19 */
   364  type X__int_least64_t = X__int64_t   /* _types.h:87:19 */
   365  type X__ptrdiff_t = X__int32_t       /* _types.h:88:19 */ // ptr1 - ptr2
   366  type X__register_t = X__int32_t      /* _types.h:89:19 */
   367  type X__segsz_t = X__int32_t         /* _types.h:90:19 */ // segment size (in pages)
   368  type X__size_t = X__uint32_t         /* _types.h:91:20 */ // sizeof()
   369  type X__ssize_t = X__int32_t         /* _types.h:92:19 */ // byte count or error
   370  type X__time_t = X__int64_t          /* _types.h:93:19 */ // time()...
   371  type X__uintfptr_t = X__uint32_t     /* _types.h:94:20 */
   372  type X__uintmax_t = X__uint64_t      /* _types.h:95:20 */
   373  type X__uintptr_t = X__uint32_t      /* _types.h:96:20 */
   374  type X__uint_fast8_t = X__uint32_t   /* _types.h:97:20 */
   375  type X__uint_fast16_t = X__uint32_t  /* _types.h:98:20 */
   376  type X__uint_fast32_t = X__uint32_t  /* _types.h:99:20 */
   377  type X__uint_fast64_t = X__uint64_t  /* _types.h:100:20 */
   378  type X__uint_least8_t = X__uint8_t   /* _types.h:101:19 */
   379  type X__uint_least16_t = X__uint16_t /* _types.h:102:20 */
   380  type X__uint_least32_t = X__uint32_t /* _types.h:103:20 */
   381  type X__uint_least64_t = X__uint64_t /* _types.h:104:20 */
   382  type X__u_register_t = X__uint32_t   /* _types.h:105:20 */
   383  type X__vm_offset_t = X__uint32_t    /* _types.h:106:20 */
   384  type X__vm_paddr_t = X__uint32_t     /* _types.h:107:20 */
   385  type X__vm_size_t = X__uint32_t      /* _types.h:108:20 */
   386  
   387  type X___wchar_t = uint32 /* _types.h:110:22 */
   388  
   389  // -
   390  // SPDX-License-Identifier: BSD-3-Clause
   391  //
   392  // Copyright (c) 1982, 1986, 1989, 1991, 1993
   393  //	The Regents of the University of California.  All rights reserved.
   394  // (c) UNIX System Laboratories, Inc.
   395  // All or some portions of this file are derived from material licensed
   396  // to the University of California by American Telephone and Telegraph
   397  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   398  // the permission of UNIX System Laboratories, Inc.
   399  //
   400  // Redistribution and use in source and binary forms, with or without
   401  // modification, are permitted provided that the following conditions
   402  // are met:
   403  // 1. Redistributions of source code must retain the above copyright
   404  //    notice, this list of conditions and the following disclaimer.
   405  // 2. Redistributions in binary form must reproduce the above copyright
   406  //    notice, this list of conditions and the following disclaimer in the
   407  //    documentation and/or other materials provided with the distribution.
   408  // 3. Neither the name of the University nor the names of its contributors
   409  //    may be used to endorse or promote products derived from this software
   410  //    without specific prior written permission.
   411  //
   412  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   413  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   414  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   415  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   416  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   417  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   418  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   419  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   420  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   421  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   422  // SUCH DAMAGE.
   423  //
   424  //	@(#)signal.h	8.4 (Berkeley) 5/4/95
   425  // $FreeBSD$
   426  
   427  // sigset_t macros.
   428  
   429  type X__sigset = struct{ F__bits [4]X__uint32_t } /* _sigset.h:53:9 */
   430  
   431  // -
   432  // SPDX-License-Identifier: BSD-3-Clause
   433  //
   434  // Copyright (c) 1982, 1986, 1989, 1991, 1993
   435  //	The Regents of the University of California.  All rights reserved.
   436  // (c) UNIX System Laboratories, Inc.
   437  // All or some portions of this file are derived from material licensed
   438  // to the University of California by American Telephone and Telegraph
   439  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   440  // the permission of UNIX System Laboratories, Inc.
   441  //
   442  // Redistribution and use in source and binary forms, with or without
   443  // modification, are permitted provided that the following conditions
   444  // are met:
   445  // 1. Redistributions of source code must retain the above copyright
   446  //    notice, this list of conditions and the following disclaimer.
   447  // 2. Redistributions in binary form must reproduce the above copyright
   448  //    notice, this list of conditions and the following disclaimer in the
   449  //    documentation and/or other materials provided with the distribution.
   450  // 3. Neither the name of the University nor the names of its contributors
   451  //    may be used to endorse or promote products derived from this software
   452  //    without specific prior written permission.
   453  //
   454  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   455  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   456  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   457  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   458  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   459  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   460  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   461  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   462  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   463  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   464  // SUCH DAMAGE.
   465  //
   466  //	@(#)signal.h	8.4 (Berkeley) 5/4/95
   467  // $FreeBSD$
   468  
   469  // sigset_t macros.
   470  
   471  type X__sigset_t = X__sigset /* _sigset.h:55:3 */
   472  
   473  // -
   474  // Copyright (c) 2021 The FreeBSD Foundation
   475  //
   476  // This software were developed by Konstantin Belousov <kib@FreeBSD.org>
   477  // under sponsorship from the FreeBSD Foundation.
   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  //
   488  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   489  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   490  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   491  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   492  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   493  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   494  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   495  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   496  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   497  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   498  // SUCH DAMAGE.
   499  
   500  // -
   501  // SPDX-License-Identifier: BSD-3-Clause
   502  //
   503  // Copyright (c) 1991, 1993
   504  //	The Regents of the University of California.  All rights reserved.
   505  //
   506  // This code is derived from software contributed to Berkeley by
   507  // Berkeley Software Design, Inc.
   508  //
   509  // Redistribution and use in source and binary forms, with or without
   510  // modification, are permitted provided that the following conditions
   511  // are met:
   512  // 1. Redistributions of source code must retain the above copyright
   513  //    notice, this list of conditions and the following disclaimer.
   514  // 2. Redistributions in binary form must reproduce the above copyright
   515  //    notice, this list of conditions and the following disclaimer in the
   516  //    documentation and/or other materials provided with the distribution.
   517  // 3. Neither the name of the University nor the names of its contributors
   518  //    may be used to endorse or promote products derived from this software
   519  //    without specific prior written permission.
   520  //
   521  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   522  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   523  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   524  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   525  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   526  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   527  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   528  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   529  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   530  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   531  // SUCH DAMAGE.
   532  //
   533  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   534  // $FreeBSD$
   535  
   536  // -
   537  // SPDX-License-Identifier: BSD-3-Clause
   538  //
   539  // Copyright (c) 1982, 1986, 1991, 1993, 1994
   540  //	The Regents of the University of California.  All rights reserved.
   541  // (c) UNIX System Laboratories, Inc.
   542  // All or some portions of this file are derived from material licensed
   543  // to the University of California by American Telephone and Telegraph
   544  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   545  // the permission of UNIX System Laboratories, Inc.
   546  //
   547  // Redistribution and use in source and binary forms, with or without
   548  // modification, are permitted provided that the following conditions
   549  // are met:
   550  // 1. Redistributions of source code must retain the above copyright
   551  //    notice, this list of conditions and the following disclaimer.
   552  // 2. Redistributions in binary form must reproduce the above copyright
   553  //    notice, this list of conditions and the following disclaimer in the
   554  //    documentation and/or other materials provided with the distribution.
   555  // 3. Neither the name of the University nor the names of its contributors
   556  //    may be used to endorse or promote products derived from this software
   557  //    without specific prior written permission.
   558  //
   559  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   560  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   561  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   562  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   563  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   564  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   565  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   566  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   567  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   568  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   569  // SUCH DAMAGE.
   570  //
   571  //	@(#)types.h	8.6 (Berkeley) 2/19/95
   572  // $FreeBSD$
   573  
   574  // -
   575  // SPDX-License-Identifier: BSD-3-Clause
   576  //
   577  // Copyright (c) 1991, 1993
   578  //	The Regents of the University of California.  All rights reserved.
   579  //
   580  // This code is derived from software contributed to Berkeley by
   581  // Berkeley Software Design, Inc.
   582  //
   583  // Redistribution and use in source and binary forms, with or without
   584  // modification, are permitted provided that the following conditions
   585  // are met:
   586  // 1. Redistributions of source code must retain the above copyright
   587  //    notice, this list of conditions and the following disclaimer.
   588  // 2. Redistributions in binary form must reproduce the above copyright
   589  //    notice, this list of conditions and the following disclaimer in the
   590  //    documentation and/or other materials provided with the distribution.
   591  // 3. Neither the name of the University nor the names of its contributors
   592  //    may be used to endorse or promote products derived from this software
   593  //    without specific prior written permission.
   594  //
   595  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   596  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   597  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   598  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   599  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   600  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   601  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   602  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   603  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   604  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   605  // SUCH DAMAGE.
   606  //
   607  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   608  // $FreeBSD$
   609  
   610  // Machine type dependent parameters.
   611  // -
   612  // SPDX-License-Identifier: BSD-3-Clause
   613  //
   614  // Copyright (c) 2001 David E. O'Brien
   615  //
   616  // Redistribution and use in source and binary forms, with or without
   617  // modification, are permitted provided that the following conditions
   618  // are met:
   619  // 1. Redistributions of source code must retain the above copyright
   620  //    notice, this list of conditions and the following disclaimer.
   621  // 2. Redistributions in binary form must reproduce the above copyright
   622  //    notice, this list of conditions and the following disclaimer in the
   623  //    documentation and/or other materials provided with the distribution.
   624  // 3. Neither the name of the University nor the names of its contributors
   625  //    may be used to endorse or promote products derived from this software
   626  //    without specific prior written permission.
   627  //
   628  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   629  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   630  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   631  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   632  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   633  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   634  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   635  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   636  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   637  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   638  // SUCH DAMAGE.
   639  //
   640  //	@(#)endian.h	8.1 (Berkeley) 6/10/93
   641  // $NetBSD: endian.h,v 1.7 1999/08/21 05:53:51 simonb Exp $
   642  // $FreeBSD$
   643  
   644  // -
   645  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   646  //
   647  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   648  // All rights reserved.
   649  //
   650  // Redistribution and use in source and binary forms, with or without
   651  // modification, are permitted provided that the following conditions
   652  // are met:
   653  // 1. Redistributions of source code must retain the above copyright
   654  //    notice, this list of conditions and the following disclaimer.
   655  // 2. Redistributions in binary form must reproduce the above copyright
   656  //    notice, this list of conditions and the following disclaimer in the
   657  //    documentation and/or other materials provided with the distribution.
   658  //
   659  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   660  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   661  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   662  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   663  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   664  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   665  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   666  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   667  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   668  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   669  // SUCH DAMAGE.
   670  //
   671  // $FreeBSD$
   672  
   673  // -
   674  // SPDX-License-Identifier: BSD-3-Clause
   675  //
   676  // Copyright (c) 1991, 1993
   677  //	The Regents of the University of California.  All rights reserved.
   678  //
   679  // This code is derived from software contributed to Berkeley by
   680  // Berkeley Software Design, Inc.
   681  //
   682  // Redistribution and use in source and binary forms, with or without
   683  // modification, are permitted provided that the following conditions
   684  // are met:
   685  // 1. Redistributions of source code must retain the above copyright
   686  //    notice, this list of conditions and the following disclaimer.
   687  // 2. Redistributions in binary form must reproduce the above copyright
   688  //    notice, this list of conditions and the following disclaimer in the
   689  //    documentation and/or other materials provided with the distribution.
   690  // 3. Neither the name of the University nor the names of its contributors
   691  //    may be used to endorse or promote products derived from this software
   692  //    without specific prior written permission.
   693  //
   694  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   695  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   696  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   697  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   698  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   699  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   700  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   701  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   702  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   703  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   704  // SUCH DAMAGE.
   705  //
   706  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   707  // $FreeBSD$
   708  
   709  // -
   710  // SPDX-License-Identifier: BSD-4-Clause
   711  //
   712  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   713  // Copyright (c) 1990, 1993
   714  //	The Regents of the University of California.  All rights reserved.
   715  //
   716  // Redistribution and use in source and binary forms, with or without
   717  // modification, are permitted provided that the following conditions
   718  // are met:
   719  // 1. Redistributions of source code must retain the above copyright
   720  //    notice, this list of conditions and the following disclaimer.
   721  // 2. Redistributions in binary form must reproduce the above copyright
   722  //    notice, this list of conditions and the following disclaimer in the
   723  //    documentation and/or other materials provided with the distribution.
   724  // 3. All advertising materials mentioning features or use of this software
   725  //    must display the following acknowledgement:
   726  //	This product includes software developed by the University of
   727  //	California, Berkeley and its contributors.
   728  // 4. Neither the name of the University nor the names of its contributors
   729  //    may be used to endorse or promote products derived from this software
   730  //    without specific prior written permission.
   731  //
   732  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   733  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   734  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   735  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   736  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   737  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   738  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   739  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   740  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   741  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   742  // SUCH DAMAGE.
   743  //
   744  //	From: @(#)ansi.h	8.2 (Berkeley) 1/4/94
   745  //	From: @(#)types.h	8.3 (Berkeley) 1/5/94
   746  // $FreeBSD$
   747  
   748  // Standard type definitions.
   749  type X__blksize_t = X__int32_t   /* _types.h:40:19 */ // file block size
   750  type X__blkcnt_t = X__int64_t    /* _types.h:41:19 */ // file block count
   751  type X__clockid_t = X__int32_t   /* _types.h:42:19 */ // clock_gettime()...
   752  type X__fflags_t = X__uint32_t   /* _types.h:43:20 */ // file flags
   753  type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
   754  type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
   755  type X__gid_t = X__uint32_t      /* _types.h:46:20 */
   756  type X__id_t = X__int64_t        /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
   757  type X__ino_t = X__uint64_t      /* _types.h:48:20 */ // inode number
   758  type X__key_t = int32            /* _types.h:49:15 */ // IPC key (for Sys V IPC)
   759  type X__lwpid_t = X__int32_t     /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
   760  type X__mode_t = X__uint16_t     /* _types.h:51:20 */ // permissions
   761  type X__accmode_t = int32        /* _types.h:52:14 */ // access permissions
   762  type X__nl_item = int32          /* _types.h:53:14 */
   763  type X__nlink_t = X__uint64_t    /* _types.h:54:20 */ // link count
   764  type X__off_t = X__int64_t       /* _types.h:55:19 */ // file offset
   765  type X__off64_t = X__int64_t     /* _types.h:56:19 */ // file offset (alias)
   766  type X__pid_t = X__int32_t       /* _types.h:57:19 */ // process [group]
   767  type X__rlim_t = X__int64_t      /* _types.h:58:19 */ // resource limit - intentionally
   768  // signed, because of legacy code
   769  // that uses -1 for RLIM_INFINITY
   770  type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
   771  type X__socklen_t = X__uint32_t  /* _types.h:62:20 */
   772  type X__suseconds_t = int32      /* _types.h:63:15 */ // microseconds (signed)
   773  type X__timer_t = uintptr        /* _types.h:64:24 */ // timer_gettime()...
   774  type X__mqd_t = uintptr          /* _types.h:65:21 */ // mq_open()...
   775  type X__uid_t = X__uint32_t      /* _types.h:66:20 */
   776  type X__useconds_t = uint32      /* _types.h:67:22 */ // microseconds (unsigned)
   777  type X__cpuwhich_t = int32       /* _types.h:68:14 */ // which parameter for cpuset.
   778  type X__cpulevel_t = int32       /* _types.h:69:14 */ // level parameter for cpuset.
   779  type X__cpusetid_t = int32       /* _types.h:70:14 */ // cpuset identifier.
   780  type X__daddr_t = X__int64_t     /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
   781  
   782  // Unusual type definitions.
   783  // rune_t is declared to be an “int” instead of the more natural
   784  // “unsigned long” or “long”.  Two things are happening here.  It is not
   785  // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
   786  // it looks like 10646 will be a 31 bit standard.  This means that if your
   787  // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
   788  // chosen over a long is that the is*() and to*() routines take ints (says
   789  // ANSI C), but they use __ct_rune_t instead of int.
   790  //
   791  // NOTE: rune_t is not covered by ANSI nor other standards, and should not
   792  // be instantiated outside of lib/libc/locale.  Use wchar_t.  wint_t and
   793  // rune_t must be the same type.  Also, wint_t should be able to hold all
   794  // members of the largest character set plus one extra value (WEOF), and
   795  // must be at least 16 bits.
   796  type X__ct_rune_t = int32     /* _types.h:91:14 */ // arg type for ctype funcs
   797  type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
   798  type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
   799  
   800  // Clang already provides these types as built-ins, but only in C++ mode.
   801  type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
   802  type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
   803  // In C++11, char16_t and char32_t are built-in types.
   804  
   805  type X__max_align_t = struct {
   806  	F__max_align1 int64
   807  	F__max_align2 float64
   808  } /* _types.h:111:3 */
   809  
   810  type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
   811  
   812  type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
   813  
   814  // mbstate_t is an opaque object to keep conversion state during multibyte
   815  // stream conversions.
   816  type X__mbstate_t = struct {
   817  	F__ccgo_pad1 [0]uint64
   818  	F__mbstate8  [128]uint8
   819  } /* _types.h:124:3 */
   820  
   821  type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
   822  
   823  // Types for varargs. These are all provided by builtin types these
   824  // days, so centralize their definition.
   825  type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
   826  type X__gnuc_va_list = X__va_list    /* _types.h:140:20 */ // compatibility w/GNU headers
   827  
   828  // When the following macro is defined, the system uses 64-bit inode numbers.
   829  // Programs can use this to avoid including <sys/param.h>, with its associated
   830  // namespace pollution.
   831  
   832  // -
   833  // SPDX-License-Identifier: BSD-3-Clause
   834  //
   835  // Copyright (c) 1987, 1991 Regents of the University of California.
   836  // All rights reserved.
   837  //
   838  // Redistribution and use in source and binary forms, with or without
   839  // modification, are permitted provided that the following conditions
   840  // are met:
   841  // 1. Redistributions of source code must retain the above copyright
   842  //    notice, this list of conditions and the following disclaimer.
   843  // 2. Redistributions in binary form must reproduce the above copyright
   844  //    notice, this list of conditions and the following disclaimer in the
   845  //    documentation and/or other materials provided with the distribution.
   846  // 3. Neither the name of the University nor the names of its contributors
   847  //    may be used to endorse or promote products derived from this software
   848  //    without specific prior written permission.
   849  //
   850  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   851  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   852  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   853  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   854  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   855  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   856  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   857  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   858  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   859  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   860  // SUCH DAMAGE.
   861  
   862  // BSD Compatiblity
   863  
   864  // Definitions for byte order, according to byte significance from low
   865  // address to high.
   866  
   867  // Define the order of 32-bit words in 64-bit words.
   868  
   869  // Deprecated variants that don't have enough underscores to be useful in more
   870  // strict namespaces.
   871  
   872  // bswap primitives, based on compiler builtins
   873  
   874  // -
   875  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   876  //
   877  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   878  // All rights reserved.
   879  //
   880  // Redistribution and use in source and binary forms, with or without
   881  // modification, are permitted provided that the following conditions
   882  // are met:
   883  // 1. Redistributions of source code must retain the above copyright
   884  //    notice, this list of conditions and the following disclaimer.
   885  // 2. Redistributions in binary form must reproduce the above copyright
   886  //    notice, this list of conditions and the following disclaimer in the
   887  //    documentation and/or other materials provided with the distribution.
   888  //
   889  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   890  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   891  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   892  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   893  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   894  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   895  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   896  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   897  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   898  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   899  // SUCH DAMAGE.
   900  //
   901  // $FreeBSD$
   902  
   903  // -
   904  // SPDX-License-Identifier: BSD-3-Clause
   905  //
   906  // Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
   907  // Copyright (c) 1995-1998 by John Birrell <jb@cimlogic.com.au>
   908  // All rights reserved.
   909  //
   910  // Redistribution and use in source and binary forms, with or without
   911  // modification, are permitted provided that the following conditions
   912  // are met:
   913  // 1. Redistributions of source code must retain the above copyright
   914  //    notice, this list of conditions and the following disclaimer.
   915  // 2. Redistributions in binary form must reproduce the above copyright
   916  //    notice, this list of conditions and the following disclaimer in the
   917  //    documentation and/or other materials provided with the distribution.
   918  // 3. All advertising materials mentioning features or use of this software
   919  //    must display the following acknowledgement:
   920  //  This product includes software developed by Chris Provenzano.
   921  // 4. The name of Chris Provenzano may not be used to endorse or promote
   922  //	  products derived from this software without specific prior written
   923  //	  permission.
   924  //
   925  // THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND
   926  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   927  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   928  // ARE DISCLAIMED.  IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY
   929  // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   930  // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   931  // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
   932  // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   933  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   934  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   935  // SUCH DAMAGE.
   936  //
   937  // $FreeBSD$
   938  
   939  type U_char = uint8   /* types.h:52:23 */
   940  type U_short = uint16 /* types.h:53:24 */
   941  type U_int = uint32   /* types.h:54:22 */
   942  type U_long = uint32  /* types.h:55:23 */
   943  type Ushort = uint16  /* types.h:57:24 */ // Sys V compatibility
   944  type Uint = uint32    /* types.h:58:22 */ // Sys V compatibility
   945  
   946  // XXX POSIX sized integrals that should appear only in <sys/stdint.h>.
   947  // -
   948  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   949  //
   950  // Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org>
   951  // Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
   952  // All rights reserved.
   953  //
   954  // Redistribution and use in source and binary forms, with or without
   955  // modification, are permitted provided that the following conditions
   956  // are met:
   957  // 1. Redistributions of source code must retain the above copyright
   958  //    notice, this list of conditions and the following disclaimer.
   959  // 2. Redistributions in binary form must reproduce the above copyright
   960  //    notice, this list of conditions and the following disclaimer in the
   961  //    documentation and/or other materials provided with the distribution.
   962  //
   963  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   964  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   965  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   966  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   967  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   968  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   969  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   970  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   971  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   972  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   973  // SUCH DAMAGE.
   974  //
   975  // $FreeBSD$
   976  
   977  type Int8_t = X__int8_t /* _stdint.h:36:19 */
   978  
   979  type Int16_t = X__int16_t /* _stdint.h:41:20 */
   980  
   981  type Int32_t = X__int32_t /* _stdint.h:46:20 */
   982  
   983  type Int64_t = X__int64_t /* _stdint.h:51:20 */
   984  
   985  type Uint8_t = X__uint8_t /* _stdint.h:56:20 */
   986  
   987  type Uint16_t = X__uint16_t /* _stdint.h:61:21 */
   988  
   989  type Uint32_t = X__uint32_t /* _stdint.h:66:21 */
   990  
   991  type Uint64_t = X__uint64_t /* _stdint.h:71:21 */
   992  
   993  type Intptr_t = X__intptr_t   /* _stdint.h:76:21 */
   994  type Uintptr_t = X__uintptr_t /* _stdint.h:80:22 */
   995  type Intmax_t = X__intmax_t   /* _stdint.h:84:21 */
   996  type Uintmax_t = X__uintmax_t /* _stdint.h:88:22 */
   997  
   998  type U_int8_t = X__uint8_t   /* types.h:67:19 */ // unsigned integrals (deprecated)
   999  type U_int16_t = X__uint16_t /* types.h:68:20 */
  1000  type U_int32_t = X__uint32_t /* types.h:69:20 */
  1001  type U_int64_t = X__uint64_t /* types.h:70:20 */
  1002  
  1003  type U_quad_t = X__uint64_t /* types.h:72:20 */ // quads (deprecated)
  1004  type Quad_t = X__int64_t    /* types.h:73:19 */
  1005  type Qaddr_t = uintptr      /* types.h:74:16 */
  1006  
  1007  type Caddr_t = uintptr   /* types.h:76:14 */ // core address
  1008  type C_caddr_t = uintptr /* types.h:77:20 */ // core address, pointer to const
  1009  
  1010  type Blksize_t = X__blksize_t /* types.h:80:21 */
  1011  
  1012  type Cpuwhich_t = X__cpuwhich_t /* types.h:84:22 */
  1013  type Cpulevel_t = X__cpulevel_t /* types.h:85:22 */
  1014  type Cpusetid_t = X__cpusetid_t /* types.h:86:22 */
  1015  
  1016  type Blkcnt_t = X__blkcnt_t /* types.h:89:20 */
  1017  
  1018  type Clock_t = X__clock_t /* types.h:94:19 */
  1019  
  1020  type Clockid_t = X__clockid_t /* types.h:99:21 */
  1021  
  1022  type Critical_t = X__critical_t /* types.h:103:22 */ // Critical section value
  1023  type Daddr_t = X__daddr_t       /* types.h:104:19 */ // disk address
  1024  
  1025  type Dev_t = X__dev_t /* types.h:107:18 */ // device number or struct cdev
  1026  
  1027  type Fflags_t = X__fflags_t /* types.h:112:20 */ // file flags
  1028  
  1029  type Fixpt_t = X__fixpt_t /* types.h:116:19 */ // fixed point number
  1030  
  1031  type Fsblkcnt_t = X__fsblkcnt_t /* types.h:119:22 */
  1032  type Fsfilcnt_t = X__fsfilcnt_t /* types.h:120:22 */
  1033  
  1034  type Gid_t = X__gid_t /* types.h:125:18 */ // group id
  1035  
  1036  type In_addr_t = X__uint32_t /* types.h:130:20 */ // base type for internet address
  1037  
  1038  type In_port_t = X__uint16_t /* types.h:135:20 */
  1039  
  1040  type Id_t = X__id_t /* types.h:140:17 */ // can hold a uid_t or pid_t
  1041  
  1042  type Ino_t = X__ino_t /* types.h:145:18 */ // inode number
  1043  
  1044  type Key_t = X__key_t /* types.h:150:18 */ // IPC key (for Sys V IPC)
  1045  
  1046  type Lwpid_t = X__lwpid_t /* types.h:155:19 */ // Thread ID (a.k.a. LWP)
  1047  
  1048  type Mode_t = X__mode_t /* types.h:160:18 */ // permissions
  1049  
  1050  type Accmode_t = X__accmode_t /* types.h:165:21 */ // access permissions
  1051  
  1052  type Nlink_t = X__nlink_t /* types.h:170:19 */ // link count
  1053  
  1054  type Off_t = X__off_t /* types.h:175:18 */ // file offset
  1055  
  1056  type Off64_t = X__off64_t /* types.h:180:19 */ // file offset (alias)
  1057  
  1058  type Pid_t = X__pid_t /* types.h:185:18 */ // process id
  1059  
  1060  type Register_t = X__register_t /* types.h:189:22 */
  1061  
  1062  type Rlim_t = X__rlim_t /* types.h:192:18 */ // resource limit
  1063  
  1064  type Sbintime_t = X__int64_t /* types.h:196:19 */
  1065  
  1066  type Segsz_t = X__segsz_t /* types.h:198:19 */
  1067  
  1068  type Ssize_t = X__ssize_t /* types.h:206:19 */
  1069  
  1070  type Suseconds_t = X__suseconds_t /* types.h:211:23 */ // microseconds (signed)
  1071  
  1072  type Time_t = X__time_t /* types.h:216:18 */
  1073  
  1074  type Timer_t = X__timer_t /* types.h:221:19 */
  1075  
  1076  type Mqd_t = X__mqd_t /* types.h:226:17 */
  1077  
  1078  type U_register_t = X__u_register_t /* types.h:230:24 */
  1079  
  1080  type Uid_t = X__uid_t /* types.h:233:18 */ // user id
  1081  
  1082  type Useconds_t = X__useconds_t /* types.h:238:22 */ // microseconds (unsigned)
  1083  
  1084  type Cap_ioctl_t = uint32 /* types.h:244:23 */
  1085  
  1086  // Types suitable for exporting physical addresses, virtual addresses
  1087  // (pointers), and memory object sizes from the kernel independent of native
  1088  // word size.  These should be used in place of vm_paddr_t, (u)intptr_t, and
  1089  // size_t in structs which contain such types that are shared with userspace.
  1090  type Kpaddr_t = X__uint64_t /* types.h:260:20 */
  1091  type Kvaddr_t = X__uint64_t /* types.h:261:20 */
  1092  type Ksize_t = X__uint64_t  /* types.h:262:20 */
  1093  type Kssize_t = X__int64_t  /* types.h:263:19 */
  1094  
  1095  type Vm_offset_t = X__vm_offset_t /* types.h:265:23 */
  1096  type Vm_ooffset_t = X__uint64_t   /* types.h:266:20 */
  1097  type Vm_paddr_t = X__vm_paddr_t   /* types.h:267:22 */
  1098  type Vm_pindex_t = X__uint64_t    /* types.h:268:20 */
  1099  type Vm_size_t = X__vm_size_t     /* types.h:269:21 */
  1100  
  1101  type Rman_res_t = X__rman_res_t /* types.h:271:25 */
  1102  
  1103  // -
  1104  // SPDX-License-Identifier: BSD-3-Clause
  1105  //
  1106  // Copyright (c) 1992, 1993
  1107  //	The Regents of the University of California.  All rights reserved.
  1108  //
  1109  // Redistribution and use in source and binary forms, with or without
  1110  // modification, are permitted provided that the following conditions
  1111  // are met:
  1112  // 1. Redistributions of source code must retain the above copyright
  1113  //    notice, this list of conditions and the following disclaimer.
  1114  // 2. Redistributions in binary form must reproduce the above copyright
  1115  //    notice, this list of conditions and the following disclaimer in the
  1116  //    documentation and/or other materials provided with the distribution.
  1117  // 3. Neither the name of the University nor the names of its contributors
  1118  //    may be used to endorse or promote products derived from this software
  1119  //    without specific prior written permission.
  1120  //
  1121  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1122  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1123  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1124  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1125  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1126  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1127  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1128  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1129  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1130  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1131  // SUCH DAMAGE.
  1132  //
  1133  // $FreeBSD$
  1134  
  1135  // -
  1136  // SPDX-License-Identifier: BSD-3-Clause
  1137  //
  1138  // Copyright (c) 1991, 1993
  1139  //	The Regents of the University of California.  All rights reserved.
  1140  //
  1141  // This code is derived from software contributed to Berkeley by
  1142  // Berkeley Software Design, Inc.
  1143  //
  1144  // Redistribution and use in source and binary forms, with or without
  1145  // modification, are permitted provided that the following conditions
  1146  // are met:
  1147  // 1. Redistributions of source code must retain the above copyright
  1148  //    notice, this list of conditions and the following disclaimer.
  1149  // 2. Redistributions in binary form must reproduce the above copyright
  1150  //    notice, this list of conditions and the following disclaimer in the
  1151  //    documentation and/or other materials provided with the distribution.
  1152  // 3. Neither the name of the University nor the names of its contributors
  1153  //    may be used to endorse or promote products derived from this software
  1154  //    without specific prior written permission.
  1155  //
  1156  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1157  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1158  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1159  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1160  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1161  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1162  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1163  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1164  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1165  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1166  // SUCH DAMAGE.
  1167  //
  1168  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1169  // $FreeBSD$
  1170  
  1171  // -
  1172  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1173  //
  1174  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1175  // All rights reserved.
  1176  //
  1177  // Redistribution and use in source and binary forms, with or without
  1178  // modification, are permitted provided that the following conditions
  1179  // are met:
  1180  // 1. Redistributions of source code must retain the above copyright
  1181  //    notice, this list of conditions and the following disclaimer.
  1182  // 2. Redistributions in binary form must reproduce the above copyright
  1183  //    notice, this list of conditions and the following disclaimer in the
  1184  //    documentation and/or other materials provided with the distribution.
  1185  //
  1186  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1187  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1188  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1189  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1190  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1191  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1192  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1193  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1194  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1195  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1196  // SUCH DAMAGE.
  1197  //
  1198  // $FreeBSD$
  1199  
  1200  // -
  1201  // SPDX-License-Identifier: BSD-3-Clause
  1202  //
  1203  // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1204  //	The Regents of the University of California.  All rights reserved.
  1205  // (c) UNIX System Laboratories, Inc.
  1206  // All or some portions of this file are derived from material licensed
  1207  // to the University of California by American Telephone and Telegraph
  1208  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1209  // the permission of UNIX System Laboratories, Inc.
  1210  //
  1211  // Redistribution and use in source and binary forms, with or without
  1212  // modification, are permitted provided that the following conditions
  1213  // are met:
  1214  // 1. Redistributions of source code must retain the above copyright
  1215  //    notice, this list of conditions and the following disclaimer.
  1216  // 2. Redistributions in binary form must reproduce the above copyright
  1217  //    notice, this list of conditions and the following disclaimer in the
  1218  //    documentation and/or other materials provided with the distribution.
  1219  // 3. Neither the name of the University nor the names of its contributors
  1220  //    may be used to endorse or promote products derived from this software
  1221  //    without specific prior written permission.
  1222  //
  1223  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1224  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1225  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1226  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1227  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1228  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1229  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1230  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1231  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1232  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1233  // SUCH DAMAGE.
  1234  //
  1235  //	@(#)signal.h	8.4 (Berkeley) 5/4/95
  1236  // $FreeBSD$
  1237  
  1238  // -
  1239  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1240  //
  1241  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1242  // All rights reserved.
  1243  //
  1244  // Redistribution and use in source and binary forms, with or without
  1245  // modification, are permitted provided that the following conditions
  1246  // are met:
  1247  // 1. Redistributions of source code must retain the above copyright
  1248  //    notice, this list of conditions and the following disclaimer.
  1249  // 2. Redistributions in binary form must reproduce the above copyright
  1250  //    notice, this list of conditions and the following disclaimer in the
  1251  //    documentation and/or other materials provided with the distribution.
  1252  //
  1253  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1254  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1255  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1256  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1257  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1258  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1259  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1260  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1261  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1262  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1263  // SUCH DAMAGE.
  1264  //
  1265  // $FreeBSD$
  1266  
  1267  // -
  1268  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1269  //
  1270  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1271  // All rights reserved.
  1272  //
  1273  // Redistribution and use in source and binary forms, with or without
  1274  // modification, are permitted provided that the following conditions
  1275  // are met:
  1276  // 1. Redistributions of source code must retain the above copyright
  1277  //    notice, this list of conditions and the following disclaimer.
  1278  // 2. Redistributions in binary form must reproduce the above copyright
  1279  //    notice, this list of conditions and the following disclaimer in the
  1280  //    documentation and/or other materials provided with the distribution.
  1281  //
  1282  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1283  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1284  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1285  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1286  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1287  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1288  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1289  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1290  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1291  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1292  // SUCH DAMAGE.
  1293  //
  1294  // $FreeBSD$
  1295  
  1296  // Structure returned by gettimeofday(2) system call, and used in other calls.
  1297  type Timeval = struct {
  1298  	Ftv_sec      Time_t
  1299  	Ftv_usec     Suseconds_t
  1300  	F__ccgo_pad1 [4]byte
  1301  } /* _timeval.h:49:1 */
  1302  
  1303  // -
  1304  // SPDX-License-Identifier: BSD-3-Clause
  1305  //
  1306  // Copyright (c) 1982, 1986, 1993
  1307  //	The Regents of the University of California.  All rights reserved.
  1308  //
  1309  // Redistribution and use in source and binary forms, with or without
  1310  // modification, are permitted provided that the following conditions
  1311  // are met:
  1312  // 1. Redistributions of source code must retain the above copyright
  1313  //    notice, this list of conditions and the following disclaimer.
  1314  // 2. Redistributions in binary form must reproduce the above copyright
  1315  //    notice, this list of conditions and the following disclaimer in the
  1316  //    documentation and/or other materials provided with the distribution.
  1317  // 3. Neither the name of the University nor the names of its contributors
  1318  //    may be used to endorse or promote products derived from this software
  1319  //    without specific prior written permission.
  1320  //
  1321  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1322  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1323  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1324  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1325  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1326  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1327  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1328  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1329  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1330  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1331  // SUCH DAMAGE.
  1332  //
  1333  //	@(#)time.h	8.5 (Berkeley) 5/4/95
  1334  // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1335  //	$FreeBSD$
  1336  
  1337  // -
  1338  // SPDX-License-Identifier: BSD-3-Clause
  1339  //
  1340  // Copyright (c) 1991, 1993
  1341  //	The Regents of the University of California.  All rights reserved.
  1342  //
  1343  // This code is derived from software contributed to Berkeley by
  1344  // Berkeley Software Design, Inc.
  1345  //
  1346  // Redistribution and use in source and binary forms, with or without
  1347  // modification, are permitted provided that the following conditions
  1348  // are met:
  1349  // 1. Redistributions of source code must retain the above copyright
  1350  //    notice, this list of conditions and the following disclaimer.
  1351  // 2. Redistributions in binary form must reproduce the above copyright
  1352  //    notice, this list of conditions and the following disclaimer in the
  1353  //    documentation and/or other materials provided with the distribution.
  1354  // 3. Neither the name of the University nor the names of its contributors
  1355  //    may be used to endorse or promote products derived from this software
  1356  //    without specific prior written permission.
  1357  //
  1358  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1359  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1360  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1361  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1362  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1363  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1364  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1365  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1366  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1367  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1368  // SUCH DAMAGE.
  1369  //
  1370  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1371  // $FreeBSD$
  1372  
  1373  // -
  1374  // SPDX-License-Identifier: BSD-3-Clause
  1375  //
  1376  // Copyright (c) 1982, 1986, 1993
  1377  //	The Regents of the University of California.  All rights reserved.
  1378  //
  1379  // Redistribution and use in source and binary forms, with or without
  1380  // modification, are permitted provided that the following conditions
  1381  // are met:
  1382  // 1. Redistributions of source code must retain the above copyright
  1383  //    notice, this list of conditions and the following disclaimer.
  1384  // 2. Redistributions in binary form must reproduce the above copyright
  1385  //    notice, this list of conditions and the following disclaimer in the
  1386  //    documentation and/or other materials provided with the distribution.
  1387  // 3. Neither the name of the University nor the names of its contributors
  1388  //    may be used to endorse or promote products derived from this software
  1389  //    without specific prior written permission.
  1390  //
  1391  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1392  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1393  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1394  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1395  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1396  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1397  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1398  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1399  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1400  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1401  // SUCH DAMAGE.
  1402  //
  1403  //	@(#)time.h	8.5 (Berkeley) 5/4/95
  1404  // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1405  //	$FreeBSD$
  1406  
  1407  // -
  1408  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1409  //
  1410  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1411  // All rights reserved.
  1412  //
  1413  // Redistribution and use in source and binary forms, with or without
  1414  // modification, are permitted provided that the following conditions
  1415  // are met:
  1416  // 1. Redistributions of source code must retain the above copyright
  1417  //    notice, this list of conditions and the following disclaimer.
  1418  // 2. Redistributions in binary form must reproduce the above copyright
  1419  //    notice, this list of conditions and the following disclaimer in the
  1420  //    documentation and/or other materials provided with the distribution.
  1421  //
  1422  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1423  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1424  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1425  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1426  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1427  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1428  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1429  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1430  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1431  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1432  // SUCH DAMAGE.
  1433  //
  1434  // $FreeBSD$
  1435  
  1436  type Timespec = struct {
  1437  	Ftv_sec      Time_t
  1438  	Ftv_nsec     int32
  1439  	F__ccgo_pad1 [4]byte
  1440  } /* _timespec.h:46:1 */
  1441  
  1442  // Structure defined by POSIX.1b to be like a itimerval, but with
  1443  // timespecs. Used in the timer_*() system calls.
  1444  type Itimerspec = struct {
  1445  	Fit_interval struct {
  1446  		Ftv_sec      Time_t
  1447  		Ftv_nsec     int32
  1448  		F__ccgo_pad1 [4]byte
  1449  	}
  1450  	Fit_value struct {
  1451  		Ftv_sec      Time_t
  1452  		Ftv_nsec     int32
  1453  		F__ccgo_pad1 [4]byte
  1454  	}
  1455  } /* timespec.h:60:1 */
  1456  
  1457  type X__fd_mask = uint32  /* select.h:44:23 */
  1458  type Fd_mask = X__fd_mask /* select.h:46:19 */
  1459  
  1460  type Sigset_t = X__sigset_t /* select.h:51:20 */
  1461  
  1462  // Select uses bit masks of file descriptors in longs.  These macros
  1463  // manipulate such bit fields (the filesystem macros use chars).
  1464  // FD_SETSIZE may be defined by the user, but the default here should
  1465  // be enough for most uses.
  1466  
  1467  type Fd_set1 = struct{ F__fds_bits [32]X__fd_mask } /* select.h:73:9 */
  1468  
  1469  // Select uses bit masks of file descriptors in longs.  These macros
  1470  // manipulate such bit fields (the filesystem macros use chars).
  1471  // FD_SETSIZE may be defined by the user, but the default here should
  1472  // be enough for most uses.
  1473  
  1474  type Fd_set = Fd_set1 /* select.h:75:3 */
  1475  
  1476  // -
  1477  // SPDX-License-Identifier: (BSD-4-Clause AND BSD-2-Clause-FreeBSD)
  1478  //
  1479  // Copyright (c) 1996, 1997
  1480  //      HD Associates, Inc.  All rights reserved.
  1481  //
  1482  // Redistribution and use in source and binary forms, with or without
  1483  // modification, are permitted provided that the following conditions
  1484  // are met:
  1485  // 1. Redistributions of source code must retain the above copyright
  1486  //    notice, this list of conditions and the following disclaimer.
  1487  // 2. Redistributions in binary form must reproduce the above copyright
  1488  //    notice, this list of conditions and the following disclaimer in the
  1489  //    documentation and/or other materials provided with the distribution.
  1490  // 3. All advertising materials mentioning features or use of this software
  1491  //    must display the following acknowledgement:
  1492  //      This product includes software developed by HD Associates, Inc
  1493  //      and Jukka Antero Ukkonen.
  1494  // 4. Neither the name of the author nor the names of any co-contributors
  1495  //    may be used to endorse or promote products derived from this software
  1496  //    without specific prior written permission.
  1497  //
  1498  // THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES AND CONTRIBUTORS ``AS IS'' AND
  1499  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1500  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1501  // ARE DISCLAIMED.  IN NO EVENT SHALL HD ASSOCIATES OR CONTRIBUTORS BE LIABLE
  1502  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1503  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1504  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1505  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1506  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1507  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1508  // SUCH DAMAGE.
  1509  
  1510  // -
  1511  // Copyright (c) 2002-2008, Jeffrey Roberson <jeff@freebsd.org>
  1512  // All rights reserved.
  1513  //
  1514  // Redistribution and use in source and binary forms, with or without
  1515  // modification, are permitted provided that the following conditions
  1516  // are met:
  1517  // 1. Redistributions of source code must retain the above copyright
  1518  //    notice unmodified, this list of conditions, and the following
  1519  //    disclaimer.
  1520  // 2. Redistributions in binary form must reproduce the above copyright
  1521  //    notice, this list of conditions and the following disclaimer in the
  1522  //    documentation and/or other materials provided with the distribution.
  1523  //
  1524  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1525  // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1526  // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1527  // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1528  // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1529  // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1530  // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1531  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1532  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1533  // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1534  //
  1535  // $FreeBSD$
  1536  
  1537  // POSIX 1003.1b Process Scheduling
  1538  
  1539  // POSIX scheduling policies
  1540  
  1541  type Sched_param = struct{ Fsched_priority int32 } /* sched.h:245:1 */
  1542  
  1543  // -
  1544  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1545  //
  1546  // Copyright (c) 2008,	Jeffrey Roberson <jeff@freebsd.org>
  1547  // All rights reserved.
  1548  //
  1549  // Copyright (c) 2008 Nokia Corporation
  1550  // All rights reserved.
  1551  //
  1552  // Redistribution and use in source and binary forms, with or without
  1553  // modification, are permitted provided that the following conditions
  1554  // are met:
  1555  // 1. Redistributions of source code must retain the above copyright
  1556  //    notice unmodified, this list of conditions, and the following
  1557  //    disclaimer.
  1558  // 2. Redistributions in binary form must reproduce the above copyright
  1559  //    notice, this list of conditions and the following disclaimer in the
  1560  //    documentation and/or other materials provided with the distribution.
  1561  //
  1562  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1563  // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1564  // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1565  // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1566  // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1567  // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1568  // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1569  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1570  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1571  // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1572  //
  1573  // $FreeBSD$
  1574  
  1575  // -
  1576  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1577  //
  1578  // Copyright (c) 2008,	Jeffrey Roberson <jeff@freebsd.org>
  1579  // All rights reserved.
  1580  //
  1581  // Copyright (c) 2008 Nokia Corporation
  1582  // All rights reserved.
  1583  //
  1584  // Redistribution and use in source and binary forms, with or without
  1585  // modification, are permitted provided that the following conditions
  1586  // are met:
  1587  // 1. Redistributions of source code must retain the above copyright
  1588  //    notice unmodified, this list of conditions, and the following
  1589  //    disclaimer.
  1590  // 2. Redistributions in binary form must reproduce the above copyright
  1591  //    notice, this list of conditions and the following disclaimer in the
  1592  //    documentation and/or other materials provided with the distribution.
  1593  //
  1594  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1595  // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1596  // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1597  // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1598  // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1599  // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1600  // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1601  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1602  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1603  // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1604  //
  1605  // $FreeBSD$
  1606  
  1607  // -
  1608  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1609  //
  1610  // Copyright (c) 2008, Jeffrey Roberson <jeff@freebsd.org>
  1611  // All rights reserved.
  1612  //
  1613  // Copyright (c) 2008 Nokia Corporation
  1614  // All rights reserved.
  1615  //
  1616  // Redistribution and use in source and binary forms, with or without
  1617  // modification, are permitted provided that the following conditions
  1618  // are met:
  1619  // 1. Redistributions of source code must retain the above copyright
  1620  //    notice unmodified, this list of conditions, and the following
  1621  //    disclaimer.
  1622  // 2. Redistributions in binary form must reproduce the above copyright
  1623  //    notice, this list of conditions and the following disclaimer in the
  1624  //    documentation and/or other materials provided with the distribution.
  1625  //
  1626  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1627  // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1628  // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1629  // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1630  // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1631  // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1632  // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1633  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1634  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1635  // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1636  //
  1637  // $FreeBSD$
  1638  
  1639  // Macros addressing word and bit within it, tuned to make compiler
  1640  // optimize cases when SETSIZE fits into single machine word.
  1641  
  1642  // Helper to declare a bitset without it's size being a constant.
  1643  //
  1644  // Sadly we cannot declare a bitset struct with 'bits[]', because it's
  1645  // the only member of the struct and the compiler complains.
  1646  
  1647  // Define a default type that can be used while manually specifying size
  1648  // to every call.
  1649  
  1650  type X_cpuset = struct{ F__bits [8]int32 } /* _cpuset.h:49:1 */
  1651  
  1652  type Cpuset_t = X_cpuset  /* _cpuset.h:50:24 */
  1653  type Cpu_set_t = X_cpuset /* sched.h:38:24 */
  1654  
  1655  // -
  1656  // SPDX-License-Identifier: BSD-3-Clause
  1657  //
  1658  // Copyright (c) 1989, 1993
  1659  //	The Regents of the University of California.  All rights reserved.
  1660  // (c) UNIX System Laboratories, Inc.
  1661  // All or some portions of this file are derived from material licensed
  1662  // to the University of California by American Telephone and Telegraph
  1663  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1664  // the permission of UNIX System Laboratories, Inc.
  1665  //
  1666  // Redistribution and use in source and binary forms, with or without
  1667  // modification, are permitted provided that the following conditions
  1668  // are met:
  1669  // 1. Redistributions of source code must retain the above copyright
  1670  //    notice, this list of conditions and the following disclaimer.
  1671  // 2. Redistributions in binary form must reproduce the above copyright
  1672  //    notice, this list of conditions and the following disclaimer in the
  1673  //    documentation and/or other materials provided with the distribution.
  1674  // 3. Neither the name of the University nor the names of its contributors
  1675  //    may be used to endorse or promote products derived from this software
  1676  //    without specific prior written permission.
  1677  //
  1678  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1679  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1680  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1681  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1682  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1683  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1684  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1685  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1686  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1687  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1688  // SUCH DAMAGE.
  1689  //
  1690  //	@(#)time.h	8.3 (Berkeley) 1/21/94
  1691  
  1692  // $FreeBSD$
  1693  
  1694  // -
  1695  // SPDX-License-Identifier: BSD-3-Clause
  1696  //
  1697  // Copyright (c) 1991, 1993
  1698  //	The Regents of the University of California.  All rights reserved.
  1699  //
  1700  // This code is derived from software contributed to Berkeley by
  1701  // Berkeley Software Design, Inc.
  1702  //
  1703  // Redistribution and use in source and binary forms, with or without
  1704  // modification, are permitted provided that the following conditions
  1705  // are met:
  1706  // 1. Redistributions of source code must retain the above copyright
  1707  //    notice, this list of conditions and the following disclaimer.
  1708  // 2. Redistributions in binary form must reproduce the above copyright
  1709  //    notice, this list of conditions and the following disclaimer in the
  1710  //    documentation and/or other materials provided with the distribution.
  1711  // 3. Neither the name of the University nor the names of its contributors
  1712  //    may be used to endorse or promote products derived from this software
  1713  //    without specific prior written permission.
  1714  //
  1715  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1716  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1717  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1718  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1719  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1720  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1721  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1722  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1723  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1724  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1725  // SUCH DAMAGE.
  1726  //
  1727  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1728  // $FreeBSD$
  1729  
  1730  // -
  1731  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1732  //
  1733  // Copyright (c) 2003 Marcel Moolenaar
  1734  // All rights reserved.
  1735  //
  1736  // Redistribution and use in source and binary forms, with or without
  1737  // modification, are permitted provided that the following conditions
  1738  // are met:
  1739  //
  1740  // 1. Redistributions of source code must retain the above copyright
  1741  //    notice, this list of conditions and the following disclaimer.
  1742  // 2. Redistributions in binary form must reproduce the above copyright
  1743  //    notice, this list of conditions and the following disclaimer in the
  1744  //    documentation and/or other materials provided with the distribution.
  1745  //
  1746  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1747  // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1748  // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1749  // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1750  // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1751  // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1752  // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1753  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1754  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1755  // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1756  //
  1757  // $FreeBSD$
  1758  
  1759  // -
  1760  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1761  //
  1762  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1763  // All rights reserved.
  1764  //
  1765  // Redistribution and use in source and binary forms, with or without
  1766  // modification, are permitted provided that the following conditions
  1767  // are met:
  1768  // 1. Redistributions of source code must retain the above copyright
  1769  //    notice, this list of conditions and the following disclaimer.
  1770  // 2. Redistributions in binary form must reproduce the above copyright
  1771  //    notice, this list of conditions and the following disclaimer in the
  1772  //    documentation and/or other materials provided with the distribution.
  1773  //
  1774  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1775  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1776  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1777  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1778  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1779  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1780  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1781  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1782  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1783  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1784  // SUCH DAMAGE.
  1785  //
  1786  // $FreeBSD$
  1787  
  1788  // -
  1789  // SPDX-License-Identifier: BSD-3-Clause
  1790  //
  1791  // Copyright (c) 1989, 1993
  1792  //	The Regents of the University of California.  All rights reserved.
  1793  // (c) UNIX System Laboratories, Inc.
  1794  // All or some portions of this file are derived from material licensed
  1795  // to the University of California by American Telephone and Telegraph
  1796  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1797  // the permission of UNIX System Laboratories, Inc.
  1798  //
  1799  // Redistribution and use in source and binary forms, with or without
  1800  // modification, are permitted provided that the following conditions
  1801  // are met:
  1802  // 1. Redistributions of source code must retain the above copyright
  1803  //    notice, this list of conditions and the following disclaimer.
  1804  // 2. Redistributions in binary form must reproduce the above copyright
  1805  //    notice, this list of conditions and the following disclaimer in the
  1806  //    documentation and/or other materials provided with the distribution.
  1807  // 3. Neither the name of the University nor the names of its contributors
  1808  //    may be used to endorse or promote products derived from this software
  1809  //    without specific prior written permission.
  1810  //
  1811  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1812  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1813  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1814  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1815  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1816  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1817  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1818  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1819  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1820  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1821  // SUCH DAMAGE.
  1822  //
  1823  //	@(#)time.h	8.3 (Berkeley) 1/21/94
  1824  
  1825  // These macros are shared between time.h and sys/time.h.
  1826  
  1827  // Note: The values shown below as a comment for the __POSIX_VISIBLE values are
  1828  // the ones FreeBSD traditionally used based on our reading of the POSIX
  1829  // standards. However, glibc uses 199309 for all of them, even those many were
  1830  // not defined there. To remain bug compatible with glibc means more software
  1831  // that relied on the glibc behavior will compile easily on FreeBSD.
  1832  //
  1833  // Also, CLOCK_UPTIME_FAST is improperly visible temporarily for the lang/pocl
  1834  // port until it can be updated properly. It incorrectly assumes that this was a
  1835  // standard value. It will be moved back to the __BSD_VISIBLE section once the
  1836  // issue is corrected.
  1837  
  1838  // FreeBSD-specific clocks.
  1839  
  1840  // Linux compatible names.
  1841  
  1842  // Frequency of the clock ticks reported by times().  Deprecated - use
  1843  // sysconf(_SC_CLK_TCK) instead.  (Removed in 1003.1-2001.)
  1844  
  1845  // Frequency of the clock ticks reported by clock().
  1846  
  1847  // New in POSIX 1003.1b-1993.
  1848  
  1849  // -
  1850  // SPDX-License-Identifier: BSD-3-Clause
  1851  //
  1852  // Copyright (c) 1982, 1986, 1993
  1853  //	The Regents of the University of California.  All rights reserved.
  1854  //
  1855  // Redistribution and use in source and binary forms, with or without
  1856  // modification, are permitted provided that the following conditions
  1857  // are met:
  1858  // 1. Redistributions of source code must retain the above copyright
  1859  //    notice, this list of conditions and the following disclaimer.
  1860  // 2. Redistributions in binary form must reproduce the above copyright
  1861  //    notice, this list of conditions and the following disclaimer in the
  1862  //    documentation and/or other materials provided with the distribution.
  1863  // 3. Neither the name of the University nor the names of its contributors
  1864  //    may be used to endorse or promote products derived from this software
  1865  //    without specific prior written permission.
  1866  //
  1867  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1868  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1869  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1870  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1871  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1872  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1873  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1874  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1875  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1876  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1877  // SUCH DAMAGE.
  1878  //
  1879  //	@(#)time.h	8.5 (Berkeley) 5/4/95
  1880  // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1881  //	$FreeBSD$
  1882  
  1883  type Tm = struct {
  1884  	Ftm_sec    int32
  1885  	Ftm_min    int32
  1886  	Ftm_hour   int32
  1887  	Ftm_mday   int32
  1888  	Ftm_mon    int32
  1889  	Ftm_year   int32
  1890  	Ftm_wday   int32
  1891  	Ftm_yday   int32
  1892  	Ftm_isdst  int32
  1893  	Ftm_gmtoff int32
  1894  	Ftm_zone   uintptr
  1895  } /* time.h:101:1 */
  1896  
  1897  // -
  1898  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1899  //
  1900  // Copyright (c) 2011, 2012 The FreeBSD Foundation
  1901  //
  1902  // This software was developed by David Chisnall under sponsorship from
  1903  // the FreeBSD Foundation.
  1904  //
  1905  // Redistribution and use in source and binary forms, with or without
  1906  // modification, are permitted provided that the following conditions
  1907  // are met:
  1908  // 1. Redistributions of source code must retain the above copyright
  1909  //    notice, this list of conditions and the following disclaimer.
  1910  // 2. Redistributions in binary form must reproduce the above copyright
  1911  //    notice, this list of conditions and the following disclaimer in the
  1912  //    documentation and/or other materials provided with the distribution.
  1913  //
  1914  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1915  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1916  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1917  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1918  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1919  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1920  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1921  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1922  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1923  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1924  // SUCH DAMAGE.
  1925  //
  1926  // $FreeBSD$
  1927  
  1928  type Locale_t = uintptr /* _time.h:35:25 */
  1929  
  1930  type X_pthread_cleanup_info = struct{ Fpthread_cleanup_pad [8]X__uintptr_t } /* pthread.h:143:1 */
  1931  
  1932  var _ uint8 /* gen.c:2:13: */