github.com/afumu/libc@v0.0.6/fts/fts_freebsd_386.go (about)

     1  // Code generated by 'ccgo fts/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 fts/fts_freebsd_386.go -pkgname fts', DO NOT EDIT.
     2  
     3  package fts
     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  	ACCESSPERMS              = 511                // stat.h:298:1:
    19  	ALLPERMS                 = 4095               // stat.h:300:1:
    20  	BIG_ENDIAN               = 4321               // _endian.h:70:1:
    21  	BYTE_ORDER               = 1234               // _endian.h:72:1:
    22  	CLK_TCK                  = 128                // time.h:56:1:
    23  	CLOCKS_PER_SEC           = 128                // time.h:60:1:
    24  	CLOCK_BOOTTIME           = 5                  // _clock_id.h:92:1:
    25  	CLOCK_MONOTONIC          = 4                  // _clock_id.h:67:1:
    26  	CLOCK_MONOTONIC_COARSE   = 12                 // _clock_id.h:94:1:
    27  	CLOCK_MONOTONIC_FAST     = 12                 // _clock_id.h:79:1:
    28  	CLOCK_MONOTONIC_PRECISE  = 11                 // _clock_id.h:78:1:
    29  	CLOCK_PROCESS_CPUTIME_ID = 15                 // _clock_id.h:85:1:
    30  	CLOCK_PROF               = 2                  // _clock_id.h:64:1:
    31  	CLOCK_REALTIME           = 0                  // _clock_id.h:60:1:
    32  	CLOCK_REALTIME_COARSE    = 10                 // _clock_id.h:93:1:
    33  	CLOCK_REALTIME_FAST      = 10                 // _clock_id.h:77:1:
    34  	CLOCK_REALTIME_PRECISE   = 9                  // _clock_id.h:76:1:
    35  	CLOCK_SECOND             = 13                 // _clock_id.h:80:1:
    36  	CLOCK_THREAD_CPUTIME_ID  = 14                 // _clock_id.h:84:1:
    37  	CLOCK_UPTIME             = 5                  // _clock_id.h:74:1:
    38  	CLOCK_UPTIME_FAST        = 8                  // _clock_id.h:68:1:
    39  	CLOCK_UPTIME_PRECISE     = 7                  // _clock_id.h:75:1:
    40  	CLOCK_VIRTUAL            = 1                  // _clock_id.h:63:1:
    41  	CPUCLOCK_WHICH_PID       = 0                  // time.h:476:1:
    42  	CPUCLOCK_WHICH_TID       = 1                  // time.h:477:1:
    43  	DEFFILEMODE              = 438                // stat.h:302:1:
    44  	DST_AUST                 = 2                  // time.h:49:1:
    45  	DST_CAN                  = 6                  // time.h:53:1:
    46  	DST_EET                  = 5                  // time.h:52:1:
    47  	DST_MET                  = 4                  // time.h:51:1:
    48  	DST_NONE                 = 0                  // time.h:47:1:
    49  	DST_USA                  = 1                  // time.h:48:1:
    50  	DST_WET                  = 3                  // time.h:50:1:
    51  	FD_SETSIZE               = 1024               // select.h:61:1:
    52  	FTS_AGAIN                = 1                  // fts.h:111:1:
    53  	FTS_COMFOLLOW            = 0x001              // fts.h:52:1:
    54  	FTS_D                    = 1                  // fts.h:90:1:
    55  	FTS_DC                   = 2                  // fts.h:91:1:
    56  	FTS_DEFAULT              = 3                  // fts.h:92:1:
    57  	FTS_DNR                  = 4                  // fts.h:93:1:
    58  	FTS_DONTCHDIR            = 0x01               // fts.h:106:1:
    59  	FTS_DOT                  = 5                  // fts.h:94:1:
    60  	FTS_DP                   = 6                  // fts.h:95:1:
    61  	FTS_ERR                  = 7                  // fts.h:96:1:
    62  	FTS_F                    = 8                  // fts.h:97:1:
    63  	FTS_FOLLOW               = 2                  // fts.h:112:1:
    64  	FTS_INIT                 = 9                  // fts.h:98:1:
    65  	FTS_ISW                  = 0x04               // fts.h:108:1:
    66  	FTS_LOGICAL              = 0x002              // fts.h:53:1:
    67  	FTS_NAMEONLY             = 0x100              // fts.h:62:1:
    68  	FTS_NOCHDIR              = 0x004              // fts.h:54:1:
    69  	FTS_NOINSTR              = 3                  // fts.h:113:1:
    70  	FTS_NOSTAT               = 0x008              // fts.h:55:1:
    71  	FTS_NS                   = 10                 // fts.h:99:1:
    72  	FTS_NSOK                 = 11                 // fts.h:100:1:
    73  	FTS_OPTIONMASK           = 0x0ff              // fts.h:60:1:
    74  	FTS_PHYSICAL             = 0x010              // fts.h:56:1:
    75  	FTS_ROOTLEVEL            = 0                  // fts.h:87:1:
    76  	FTS_ROOTPARENTLEVEL      = -1                 // fts.h:86:1:
    77  	FTS_SEEDOT               = 0x020              // fts.h:57:1:
    78  	FTS_SKIP                 = 4                  // fts.h:114:1:
    79  	FTS_SL                   = 12                 // fts.h:101:1:
    80  	FTS_SLNONE               = 13                 // fts.h:102:1:
    81  	FTS_STOP                 = 0x200              // fts.h:63:1:
    82  	FTS_SYMFOLLOW            = 0x02               // fts.h:107:1:
    83  	FTS_W                    = 14                 // fts.h:103:1:
    84  	FTS_WHITEOUT             = 0x080              // fts.h:59:1:
    85  	FTS_XDEV                 = 0x040              // fts.h:58:1:
    86  	ITIMER_PROF              = 2                  // time.h:457:1:
    87  	ITIMER_REAL              = 0                  // time.h:455:1:
    88  	ITIMER_VIRTUAL           = 1                  // time.h:456:1:
    89  	LITTLE_ENDIAN            = 1234               // _endian.h:69:1:
    90  	PDP_ENDIAN               = 3412               // _endian.h:71:1:
    91  	SBT_MAX                  = 0x7fffffffffffffff // time.h:135:1:
    92  	SF_APPEND                = 0x00040000         // stat.h:341:1:
    93  	SF_ARCHIVED              = 0x00010000         // stat.h:339:1:
    94  	SF_IMMUTABLE             = 0x00020000         // stat.h:340:1:
    95  	SF_NOUNLINK              = 0x00100000         // stat.h:342:1:
    96  	SF_SETTABLE              = 0xffff0000         // stat.h:338:1:
    97  	SF_SNAPSHOT              = 0x00200000         // stat.h:343:1:
    98  	S_BLKSIZE                = 512                // stat.h:304:1:
    99  	S_IEXEC                  = 64                 // stat.h:256:1:
   100  	S_IFBLK                  = 0060000            // stat.h:274:1:
   101  	S_IFCHR                  = 0020000            // stat.h:272:1:
   102  	S_IFDIR                  = 0040000            // stat.h:273:1:
   103  	S_IFIFO                  = 0010000            // stat.h:271:1:
   104  	S_IFLNK                  = 0120000            // stat.h:276:1:
   105  	S_IFMT                   = 0170000            // stat.h:270:1:
   106  	S_IFREG                  = 0100000            // stat.h:275:1:
   107  	S_IFSOCK                 = 0140000            // stat.h:277:1:
   108  	S_IFWHT                  = 0160000            // stat.h:281:1:
   109  	S_IREAD                  = 256                // stat.h:254:1:
   110  	S_IRGRP                  = 0000040            // stat.h:260:1:
   111  	S_IROTH                  = 0000004            // stat.h:265:1:
   112  	S_IRUSR                  = 0000400            // stat.h:249:1:
   113  	S_IRWXG                  = 0000070            // stat.h:259:1:
   114  	S_IRWXO                  = 0000007            // stat.h:264:1:
   115  	S_IRWXU                  = 0000700            // stat.h:248:1:
   116  	S_ISGID                  = 0002000            // stat.h:243:1:
   117  	S_ISTXT                  = 0001000            // stat.h:245:1:
   118  	S_ISUID                  = 0004000            // stat.h:242:1:
   119  	S_ISVTX                  = 0001000            // stat.h:278:1:
   120  	S_IWGRP                  = 0000020            // stat.h:261:1:
   121  	S_IWOTH                  = 0000002            // stat.h:266:1:
   122  	S_IWRITE                 = 128                // stat.h:255:1:
   123  	S_IWUSR                  = 0000200            // stat.h:250:1:
   124  	S_IXGRP                  = 0000010            // stat.h:262:1:
   125  	S_IXOTH                  = 0000001            // stat.h:267:1:
   126  	S_IXUSR                  = 0000100            // stat.h:251:1:
   127  	TIMER_ABSTIME            = 0x1                // _clock_id.h:101:1:
   128  	TIMER_RELTIME            = 0x0                // _clock_id.h:98:1:
   129  	TIME_UTC                 = 1                  // time.h:188:1:
   130  	UF_APPEND                = 0x00000004         // stat.h:314:1:
   131  	UF_ARCHIVE               = 0x00000800         // stat.h:330:1:
   132  	UF_HIDDEN                = 0x00008000         // stat.h:333:1:
   133  	UF_IMMUTABLE             = 0x00000002         // stat.h:313:1:
   134  	UF_NODUMP                = 0x00000001         // stat.h:312:1:
   135  	UF_NOUNLINK              = 0x00000010         // stat.h:316:1:
   136  	UF_OFFLINE               = 0x00000200         // stat.h:328:1:
   137  	UF_OPAQUE                = 0x00000008         // stat.h:315:1:
   138  	UF_READONLY              = 0x00001000         // stat.h:331:1:
   139  	UF_REPARSE               = 0x00000400         // stat.h:329:1:
   140  	UF_SETTABLE              = 0x0000ffff         // stat.h:311:1:
   141  	UF_SPARSE                = 0x00000100         // stat.h:327:1:
   142  	UF_SYSTEM                = 0x00000080         // stat.h:326:1:
   143  	UTIME_NOW                = -1                 // stat.h:358:1:
   144  	UTIME_OMIT               = -2                 // stat.h:359:1:
   145  	X_ACCMODE_T_DECLARED     = 0                  // types.h:166:1:
   146  	X_BIG_ENDIAN             = 4321               // _endian.h:47:1:
   147  	X_BLKCNT_T_DECLARED      = 0                  // types.h:90:1:
   148  	X_BLKSIZE_T_DECLARED     = 0                  // types.h:81:1:
   149  	X_BYTE_ORDER             = 1234               // _endian.h:40:1:
   150  	X_CAP_IOCTL_T_DECLARED   = 0                  // types.h:243:1:
   151  	X_CAP_RIGHTS_T_DECLARED  = 0                  // types.h:248:1:
   152  	X_CLOCKID_T_DECLARED     = 0                  // types.h:100:1:
   153  	X_CLOCK_T_DECLARED       = 0                  // types.h:95:1:
   154  	X_DEV_T_DECLARED         = 0                  // types.h:108:1:
   155  	X_FFLAGS_T_DECLARED      = 0                  // types.h:113:1:
   156  	X_FILE_OFFSET_BITS       = 64                 // <builtin>:25:1:
   157  	X_FSBLKCNT_T_DECLARED    = 0                  // types.h:121:1:
   158  	X_FTRUNCATE_DECLARED     = 0                  // types.h:417:1:
   159  	X_FTS_H_                 = 0                  // fts.h:36:1:
   160  	X_GID_T_DECLARED         = 0                  // types.h:126:1:
   161  	X_ID_T_DECLARED          = 0                  // types.h:141:1:
   162  	X_ILP32                  = 1                  // <predefined>:1:1:
   163  	X_INO_T_DECLARED         = 0                  // types.h:146:1:
   164  	X_INT16_T_DECLARED       = 0                  // _stdint.h:42:1:
   165  	X_INT32_T_DECLARED       = 0                  // _stdint.h:47:1:
   166  	X_INT64_T_DECLARED       = 0                  // _stdint.h:52:1:
   167  	X_INT8_T_DECLARED        = 0                  // _stdint.h:37:1:
   168  	X_INTMAX_T_DECLARED      = 0                  // _stdint.h:85:1:
   169  	X_INTPTR_T_DECLARED      = 0                  // _stdint.h:77:1:
   170  	X_IN_ADDR_T_DECLARED     = 0                  // types.h:131:1:
   171  	X_IN_PORT_T_DECLARED     = 0                  // types.h:136:1:
   172  	X_KEY_T_DECLARED         = 0                  // types.h:151:1:
   173  	X_LITTLE_ENDIAN          = 1234               // _endian.h:46:1:
   174  	X_LOCALE_T_DEFINED       = 0                  // _time.h:34:1:
   175  	X_LSEEK_DECLARED         = 0                  // types.h:421:1:
   176  	X_LWPID_T_DECLARED       = 0                  // types.h:156:1:
   177  	X_MACHINE_ENDIAN_H_      = 0                  // endian.h:36:1:
   178  	X_MACHINE__LIMITS_H_     = 0                  // _limits.h:36:1:
   179  	X_MACHINE__TYPES_H_      = 0                  // _types.h:42:1:
   180  	X_MKNOD_DECLARED         = 0                  // stat.h:393:1:
   181  	X_MMAP_DECLARED          = 0                  // types.h:425:1:
   182  	X_MODE_T_DECLARED        = 0                  // types.h:161:1:
   183  	X_MQD_T_DECLARED         = 0                  // types.h:227:1:
   184  	X_NLINK_T_DECLARED       = 0                  // types.h:171:1:
   185  	X_Nonnull                = 0                  // cdefs.h:790:1:
   186  	X_Null_unspecified       = 0                  // cdefs.h:792:1:
   187  	X_Nullable               = 0                  // cdefs.h:791:1:
   188  	X_OFF64_T_DECLARED       = 0                  // types.h:181:1:
   189  	X_OFF_T_DECLARED         = 0                  // types.h:176:1:
   190  	X_PDP_ENDIAN             = 3412               // _endian.h:48:1:
   191  	X_PID_T_DECLARED         = 0                  // types.h:186:1:
   192  	X_PTHREAD_T_DECLARED     = 0                  // _pthreadtypes.h:68:1:
   193  	X_QUAD_HIGHWORD          = 1                  // _endian.h:55:1:
   194  	X_QUAD_LOWWORD           = 0                  // _endian.h:56:1:
   195  	X_RLIM_T_DECLARED        = 0                  // types.h:193:1:
   196  	X_SELECT_DECLARED        = 0                  // select.h:103:1:
   197  	X_SIGSET_T_DECLARED      = 0                  // select.h:50:1:
   198  	X_SIG_MAXSIG             = 128                // _sigset.h:47:1:
   199  	X_SIG_WORDS              = 4                  // _sigset.h:46:1:
   200  	X_SIZE_T_DECLARED        = 0                  // types.h:202:1:
   201  	X_SSIZE_T_DECLARED       = 0                  // types.h:207:1:
   202  	X_SUSECONDS_T_DECLARED   = 0                  // types.h:212:1:
   203  	X_SYS_CDEFS_H_           = 0                  // cdefs.h:39:1:
   204  	X_SYS_SELECT_H_          = 0                  // select.h:35:1:
   205  	X_SYS_STAT_H_            = 0                  // stat.h:41:1:
   206  	X_SYS_SYS__CLOCK_ID_H    = 0                  // _clock_id.h:40:1:
   207  	X_SYS_TIMESPEC_H_        = 0                  // timespec.h:37:1:
   208  	X_SYS_TIME_H_            = 0                  // time.h:36:1:
   209  	X_SYS_TYPES_H_           = 0                  // types.h:41:1:
   210  	X_SYS__ENDIAN_H_         = 0                  // _endian.h:33:1:
   211  	X_SYS__PTHREADTYPES_H_   = 0                  // _pthreadtypes.h:39:1:
   212  	X_SYS__SIGSET_H_         = 0                  // _sigset.h:41:1:
   213  	X_SYS__STDINT_H_         = 0                  // _stdint.h:33:1:
   214  	X_SYS__TIMESPEC_H_       = 0                  // _timespec.h:37:1:
   215  	X_SYS__TIMEVAL_H_        = 0                  // _timeval.h:32:1:
   216  	X_SYS__TYPES_H_          = 0                  // _types.h:32:1:
   217  	X_TIMER_T_DECLARED       = 0                  // types.h:222:1:
   218  	X_TIME_H_                = 0                  // time.h:44:1:
   219  	X_TIME_T_DECLARED        = 0                  // types.h:217:1:
   220  	X_TRUNCATE_DECLARED      = 0                  // types.h:429:1:
   221  	X_UID_T_DECLARED         = 0                  // types.h:234:1:
   222  	X_UINT16_T_DECLARED      = 0                  // _stdint.h:62:1:
   223  	X_UINT32_T_DECLARED      = 0                  // _stdint.h:67:1:
   224  	X_UINT64_T_DECLARED      = 0                  // _stdint.h:72:1:
   225  	X_UINT8_T_DECLARED       = 0                  // _stdint.h:57:1:
   226  	X_UINTMAX_T_DECLARED     = 0                  // _stdint.h:89:1:
   227  	X_UINTPTR_T_DECLARED     = 0                  // _stdint.h:81:1:
   228  	X_USECONDS_T_DECLARED    = 0                  // types.h:239:1:
   229  	X_XLOCALE_LOCALE1_H      = 0                  // _time.h:44:1:
   230  	I386                     = 1                  // <predefined>:335:1:
   231  	Unix                     = 1                  // <predefined>:336:1:
   232  )
   233  
   234  type Ptrdiff_t = int32 /* <builtin>:3:26 */
   235  
   236  type Size_t = uint32 /* <builtin>:9:23 */
   237  
   238  type Wchar_t = int32 /* <builtin>:15:24 */
   239  
   240  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   241  type X__float128 = float64        /* <builtin>:47:21 */
   242  
   243  // -
   244  // SPDX-License-Identifier: BSD-3-Clause
   245  //
   246  // Copyright (c) 1982, 1986, 1991, 1993, 1994
   247  //	The Regents of the University of California.  All rights reserved.
   248  // (c) UNIX System Laboratories, Inc.
   249  // All or some portions of this file are derived from material licensed
   250  // to the University of California by American Telephone and Telegraph
   251  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   252  // the permission of UNIX System Laboratories, Inc.
   253  //
   254  // Redistribution and use in source and binary forms, with or without
   255  // modification, are permitted provided that the following conditions
   256  // are met:
   257  // 1. Redistributions of source code must retain the above copyright
   258  //    notice, this list of conditions and the following disclaimer.
   259  // 2. Redistributions in binary form must reproduce the above copyright
   260  //    notice, this list of conditions and the following disclaimer in the
   261  //    documentation and/or other materials provided with the distribution.
   262  // 3. Neither the name of the University nor the names of its contributors
   263  //    may be used to endorse or promote products derived from this software
   264  //    without specific prior written permission.
   265  //
   266  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   267  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   268  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   269  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   270  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   271  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   272  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   273  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   274  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   275  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   276  // SUCH DAMAGE.
   277  //
   278  //	@(#)types.h	8.6 (Berkeley) 2/19/95
   279  // $FreeBSD$
   280  
   281  // -
   282  // SPDX-License-Identifier: BSD-3-Clause
   283  //
   284  // Copyright (c) 1991, 1993
   285  //	The Regents of the University of California.  All rights reserved.
   286  //
   287  // This code is derived from software contributed to Berkeley by
   288  // Berkeley Software Design, Inc.
   289  //
   290  // Redistribution and use in source and binary forms, with or without
   291  // modification, are permitted provided that the following conditions
   292  // are met:
   293  // 1. Redistributions of source code must retain the above copyright
   294  //    notice, this list of conditions and the following disclaimer.
   295  // 2. Redistributions in binary form must reproduce the above copyright
   296  //    notice, this list of conditions and the following disclaimer in the
   297  //    documentation and/or other materials provided with the distribution.
   298  // 3. Neither the name of the University nor the names of its contributors
   299  //    may be used to endorse or promote products derived from this software
   300  //    without specific prior written permission.
   301  //
   302  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   303  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   304  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   305  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   306  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   307  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   308  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   309  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   310  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   311  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   312  // SUCH DAMAGE.
   313  //
   314  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   315  // $FreeBSD$
   316  
   317  // Testing against Clang-specific extensions.
   318  
   319  // This code has been put in place to help reduce the addition of
   320  // compiler specific defines in FreeBSD code.  It helps to aid in
   321  // having a compiler-agnostic source tree.
   322  
   323  // Compiler memory barriers, specific to gcc and clang.
   324  
   325  // XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
   326  
   327  // Macro to test if we're using a specific version of gcc or later.
   328  
   329  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
   330  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
   331  // The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
   332  // mode -- there must be no spaces between its arguments, and for nested
   333  // __CONCAT's, all the __CONCAT's must be at the left.  __CONCAT can also
   334  // concatenate double-quoted strings produced by the __STRING macro, but
   335  // this only works with ANSI C.
   336  //
   337  // __XSTRING is like __STRING, but it expands any macros in its argument
   338  // first.  It is only available with ANSI C.
   339  
   340  // Compiler-dependent macros to help declare dead (non-returning) and
   341  // pure (no side effects) functions, and unused variables.  They are
   342  // null except for versions of gcc that are known to support the features
   343  // properly (old versions of gcc-2 supported the dead and pure features
   344  // in a different (wrong) way).  If we do not provide an implementation
   345  // for a given compiler, let the compile fail if it is told to use
   346  // a feature that we cannot live without.
   347  
   348  // Keywords added in C11.
   349  
   350  // Emulation of C11 _Generic().  Unlike the previously defined C11
   351  // keywords, it is not possible to implement this using exactly the same
   352  // syntax.  Therefore implement something similar under the name
   353  // __generic().  Unlike _Generic(), this macro can only distinguish
   354  // between a single type, so it requires nested invocations to
   355  // distinguish multiple cases.
   356  
   357  // C99 Static array indices in function parameter declarations.  Syntax such as:
   358  // void bar(int myArray[static 10]);
   359  // is allowed in C99 but not in C++.  Define __min_size appropriately so
   360  // headers using it can be compiled in either language.  Use like this:
   361  // void bar(int myArray[__min_size(10)]);
   362  
   363  // XXX: should use `#if __STDC_VERSION__ < 199901'.
   364  
   365  // C++11 exposes a load of C99 stuff
   366  
   367  // GCC 2.95 provides `__restrict' as an extension to C90 to support the
   368  // C99-specific `restrict' type qualifier.  We happen to use `__restrict' as
   369  // a way to define the `restrict' type qualifier without disturbing older
   370  // software that is unaware of C99 keywords.
   371  
   372  // GNU C version 2.96 adds explicit branch prediction so that
   373  // the CPU back-end can hint the processor and also so that
   374  // code blocks can be reordered such that the predicted path
   375  // sees a more linear flow, thus improving cache behavior, etc.
   376  //
   377  // The following two macros provide us with a way to utilize this
   378  // compiler feature.  Use __predict_true() if you expect the expression
   379  // to evaluate to true, and __predict_false() if you expect the
   380  // expression to evaluate to false.
   381  //
   382  // A few notes about usage:
   383  //
   384  //	* Generally, __predict_false() error condition checks (unless
   385  //	  you have some _strong_ reason to do otherwise, in which case
   386  //	  document it), and/or __predict_true() `no-error' condition
   387  //	  checks, assuming you want to optimize for the no-error case.
   388  //
   389  //	* Other than that, if you don't know the likelihood of a test
   390  //	  succeeding from empirical or other `hard' evidence, don't
   391  //	  make predictions.
   392  //
   393  //	* These are meant to be used in places that are run `a lot'.
   394  //	  It is wasteful to make predictions in code that is run
   395  //	  seldomly (e.g. at subsystem initialization time) as the
   396  //	  basic block reordering that this affects can often generate
   397  //	  larger code.
   398  
   399  // We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
   400  // require it.
   401  
   402  // Given the pointer x to the member m of the struct s, return
   403  // a pointer to the containing structure.  When using GCC, we first
   404  // assign pointer x to a local variable, to check that its type is
   405  // compatible with member m.
   406  
   407  // Compiler-dependent macros to declare that functions take printf-like
   408  // or scanf-like arguments.  They are null except for versions of gcc
   409  // that are known to support the features properly (old versions of gcc-2
   410  // didn't permit keeping the keywords out of the application namespace).
   411  
   412  // Compiler-dependent macros that rely on FreeBSD-specific extensions.
   413  
   414  // Embed the rcs id of a source file in the resulting library.  Note that in
   415  // more recent ELF binutils, we use .ident allowing the ID to be stripped.
   416  // Usage:
   417  //	__FBSDID("$FreeBSD$");
   418  
   419  // -
   420  // The following definitions are an extension of the behavior originally
   421  // implemented in <sys/_posix.h>, but with a different level of granularity.
   422  // POSIX.1 requires that the macros we test be defined before any standard
   423  // header file is included.
   424  //
   425  // Here's a quick run-down of the versions:
   426  //  defined(_POSIX_SOURCE)		1003.1-1988
   427  //  _POSIX_C_SOURCE == 1		1003.1-1990
   428  //  _POSIX_C_SOURCE == 2		1003.2-1992 C Language Binding Option
   429  //  _POSIX_C_SOURCE == 199309		1003.1b-1993
   430  //  _POSIX_C_SOURCE == 199506		1003.1c-1995, 1003.1i-1995,
   431  //					and the omnibus ISO/IEC 9945-1: 1996
   432  //  _POSIX_C_SOURCE == 200112		1003.1-2001
   433  //  _POSIX_C_SOURCE == 200809		1003.1-2008
   434  //
   435  // In addition, the X/Open Portability Guide, which is now the Single UNIX
   436  // Specification, defines a feature-test macro which indicates the version of
   437  // that specification, and which subsumes _POSIX_C_SOURCE.
   438  //
   439  // Our macros begin with two underscores to avoid namespace screwage.
   440  
   441  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
   442  
   443  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
   444  
   445  // Deal with various X/Open Portability Guides and Single UNIX Spec.
   446  
   447  // Deal with all versions of POSIX.  The ordering relative to the tests above is
   448  // important.
   449  // -
   450  // Deal with _ANSI_SOURCE:
   451  // If it is defined, and no other compilation environment is explicitly
   452  // requested, then define our internal feature-test macros to zero.  This
   453  // makes no difference to the preprocessor (undefined symbols in preprocessing
   454  // expressions are defined to have value zero), but makes it more convenient for
   455  // a test program to print out the values.
   456  //
   457  // If a program mistakenly defines _ANSI_SOURCE and some other macro such as
   458  // _POSIX_C_SOURCE, we will assume that it wants the broader compilation
   459  // environment (and in fact we will never get here).
   460  
   461  // User override __EXT1_VISIBLE
   462  
   463  // Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
   464  // translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
   465  
   466  // Nullability qualifiers: currently only supported by Clang.
   467  
   468  // Type Safety Checking
   469  //
   470  // Clang provides additional attributes to enable checking type safety
   471  // properties that cannot be enforced by the C type system.
   472  
   473  // Lock annotations.
   474  //
   475  // Clang provides support for doing basic thread-safety tests at
   476  // compile-time, by marking which locks will/should be held when
   477  // entering/leaving a functions.
   478  //
   479  // Furthermore, it is also possible to annotate variables and structure
   480  // members to enforce that they are only accessed when certain locks are
   481  // held.
   482  
   483  // Structure implements a lock.
   484  
   485  // Function acquires an exclusive or shared lock.
   486  
   487  // Function attempts to acquire an exclusive or shared lock.
   488  
   489  // Function releases a lock.
   490  
   491  // Function asserts that an exclusive or shared lock is held.
   492  
   493  // Function requires that an exclusive or shared lock is or is not held.
   494  
   495  // Function should not be analyzed.
   496  
   497  // Function or variable should not be sanitized, e.g., by AddressSanitizer.
   498  // GCC has the nosanitize attribute, but as a function attribute only, and
   499  // warns on use as a variable attribute.
   500  
   501  // Guard variables and structure members by lock.
   502  
   503  // Alignment builtins for better type checking and improved code generation.
   504  // Provide fallback versions for other compilers (GCC/Clang < 10):
   505  
   506  // Machine type dependent parameters.
   507  // -
   508  // This file is in the public domain.
   509  // $FreeBSD$
   510  
   511  // -
   512  // SPDX-License-Identifier: BSD-3-Clause
   513  //
   514  // Copyright (c) 1987, 1991 Regents of the University of California.
   515  // All rights reserved.
   516  //
   517  // Redistribution and use in source and binary forms, with or without
   518  // modification, are permitted provided that the following conditions
   519  // are met:
   520  // 1. Redistributions of source code must retain the above copyright
   521  //    notice, this list of conditions and the following disclaimer.
   522  // 2. Redistributions in binary form must reproduce the above copyright
   523  //    notice, this list of conditions and the following disclaimer in the
   524  //    documentation and/or other materials provided with the distribution.
   525  // 3. Neither the name of the University nor the names of its contributors
   526  //    may be used to endorse or promote products derived from this software
   527  //    without specific prior written permission.
   528  //
   529  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   530  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   531  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   532  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   533  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   534  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   535  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   536  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   537  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   538  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   539  // SUCH DAMAGE.
   540  //
   541  //	@(#)endian.h	7.8 (Berkeley) 4/3/91
   542  // $FreeBSD$
   543  
   544  // -
   545  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   546  //
   547  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   548  // All rights reserved.
   549  //
   550  // Redistribution and use in source and binary forms, with or without
   551  // modification, are permitted provided that the following conditions
   552  // are met:
   553  // 1. Redistributions of source code must retain the above copyright
   554  //    notice, this list of conditions and the following disclaimer.
   555  // 2. Redistributions in binary form must reproduce the above copyright
   556  //    notice, this list of conditions and the following disclaimer in the
   557  //    documentation and/or other materials provided with the distribution.
   558  //
   559  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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  // $FreeBSD$
   572  
   573  // -
   574  // SPDX-License-Identifier: BSD-3-Clause
   575  //
   576  // Copyright (c) 1991, 1993
   577  //	The Regents of the University of California.  All rights reserved.
   578  //
   579  // This code is derived from software contributed to Berkeley by
   580  // Berkeley Software Design, Inc.
   581  //
   582  // Redistribution and use in source and binary forms, with or without
   583  // modification, are permitted provided that the following conditions
   584  // are met:
   585  // 1. Redistributions of source code must retain the above copyright
   586  //    notice, this list of conditions and the following disclaimer.
   587  // 2. Redistributions in binary form must reproduce the above copyright
   588  //    notice, this list of conditions and the following disclaimer in the
   589  //    documentation and/or other materials provided with the distribution.
   590  // 3. Neither the name of the University nor the names of its contributors
   591  //    may be used to endorse or promote products derived from this software
   592  //    without specific prior written permission.
   593  //
   594  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   595  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   596  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   597  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   598  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   599  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   600  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   601  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   602  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   603  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   604  // SUCH DAMAGE.
   605  //
   606  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   607  // $FreeBSD$
   608  
   609  // -
   610  // This file is in the public domain.
   611  // $FreeBSD$
   612  
   613  // -
   614  // SPDX-License-Identifier: BSD-4-Clause
   615  //
   616  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   617  // Copyright (c) 1990, 1993
   618  //	The Regents of the University of California.  All rights reserved.
   619  //
   620  // Redistribution and use in source and binary forms, with or without
   621  // modification, are permitted provided that the following conditions
   622  // are met:
   623  // 1. Redistributions of source code must retain the above copyright
   624  //    notice, this list of conditions and the following disclaimer.
   625  // 2. Redistributions in binary form must reproduce the above copyright
   626  //    notice, this list of conditions and the following disclaimer in the
   627  //    documentation and/or other materials provided with the distribution.
   628  // 3. All advertising materials mentioning features or use of this software
   629  //    must display the following acknowledgement:
   630  //	This product includes software developed by the University of
   631  //	California, Berkeley and its contributors.
   632  // 4. Neither the name of the University nor the names of its contributors
   633  //    may be used to endorse or promote products derived from this software
   634  //    without specific prior written permission.
   635  //
   636  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   637  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   638  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   639  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   640  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   641  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   642  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   643  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   644  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   645  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   646  // SUCH DAMAGE.
   647  //
   648  //	From: @(#)ansi.h	8.2 (Berkeley) 1/4/94
   649  //	From: @(#)types.h	8.3 (Berkeley) 1/5/94
   650  // $FreeBSD$
   651  
   652  // -
   653  // This file is in the public domain.
   654  // $FreeBSD$
   655  
   656  // -
   657  // SPDX-License-Identifier: BSD-3-Clause
   658  //
   659  // Copyright (c) 1988, 1993
   660  //	The Regents of the University of California.  All rights reserved.
   661  //
   662  // Redistribution and use in source and binary forms, with or without
   663  // modification, are permitted provided that the following conditions
   664  // are met:
   665  // 1. Redistributions of source code must retain the above copyright
   666  //    notice, this list of conditions and the following disclaimer.
   667  // 2. Redistributions in binary form must reproduce the above copyright
   668  //    notice, this list of conditions and the following disclaimer in the
   669  //    documentation and/or other materials provided with the distribution.
   670  // 3. Neither the name of the University nor the names of its contributors
   671  //    may be used to endorse or promote products derived from this software
   672  //    without specific prior written permission.
   673  //
   674  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   675  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   676  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   677  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   678  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   679  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   680  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   681  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   682  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   683  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   684  // SUCH DAMAGE.
   685  //
   686  //	@(#)limits.h	8.3 (Berkeley) 1/4/94
   687  // $FreeBSD$
   688  
   689  // According to ANSI (section 2.2.4.2), the values below must be usable by
   690  // #if preprocessing directives.  Additionally, the expression must have the
   691  // same type as would an expression that is an object of the corresponding
   692  // type converted according to the integral promotions.  The subtraction for
   693  // INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
   694  // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
   695  
   696  // max value for an unsigned long long
   697  
   698  // Minimum signal stack size.
   699  
   700  // Basic types upon which most other types are built.
   701  type X__int8_t = int8     /* _types.h:55:22 */
   702  type X__uint8_t = uint8   /* _types.h:56:24 */
   703  type X__int16_t = int16   /* _types.h:57:17 */
   704  type X__uint16_t = uint16 /* _types.h:58:25 */
   705  type X__int32_t = int32   /* _types.h:59:15 */
   706  type X__uint32_t = uint32 /* _types.h:60:23 */
   707  
   708  type X__int64_t = int64 /* _types.h:66:20 */
   709  
   710  type X__uint64_t = uint64 /* _types.h:68:28 */
   711  
   712  // Standard type definitions.
   713  type X__clock_t = uint32             /* _types.h:84:23 */
   714  type X__critical_t = X__int32_t      /* _types.h:85:19 */
   715  type X__double_t = float64           /* _types.h:87:21 */
   716  type X__float_t = float64            /* _types.h:88:21 */
   717  type X__intfptr_t = X__int32_t       /* _types.h:90:19 */
   718  type X__intptr_t = X__int32_t        /* _types.h:91:19 */
   719  type X__intmax_t = X__int64_t        /* _types.h:93:19 */
   720  type X__int_fast8_t = X__int32_t     /* _types.h:94:19 */
   721  type X__int_fast16_t = X__int32_t    /* _types.h:95:19 */
   722  type X__int_fast32_t = X__int32_t    /* _types.h:96:19 */
   723  type X__int_fast64_t = X__int64_t    /* _types.h:97:19 */
   724  type X__int_least8_t = X__int8_t     /* _types.h:98:18 */
   725  type X__int_least16_t = X__int16_t   /* _types.h:99:19 */
   726  type X__int_least32_t = X__int32_t   /* _types.h:100:19 */
   727  type X__int_least64_t = X__int64_t   /* _types.h:101:19 */
   728  type X__ptrdiff_t = X__int32_t       /* _types.h:112:19 */
   729  type X__register_t = X__int32_t      /* _types.h:113:19 */
   730  type X__segsz_t = X__int32_t         /* _types.h:114:19 */
   731  type X__size_t = X__uint32_t         /* _types.h:115:20 */
   732  type X__ssize_t = X__int32_t         /* _types.h:116:19 */
   733  type X__time_t = X__int32_t          /* _types.h:117:19 */
   734  type X__uintfptr_t = X__uint32_t     /* _types.h:118:20 */
   735  type X__uintptr_t = X__uint32_t      /* _types.h:119:20 */
   736  type X__uintmax_t = X__uint64_t      /* _types.h:121:20 */
   737  type X__uint_fast8_t = X__uint32_t   /* _types.h:122:20 */
   738  type X__uint_fast16_t = X__uint32_t  /* _types.h:123:20 */
   739  type X__uint_fast32_t = X__uint32_t  /* _types.h:124:20 */
   740  type X__uint_fast64_t = X__uint64_t  /* _types.h:125:20 */
   741  type X__uint_least8_t = X__uint8_t   /* _types.h:126:19 */
   742  type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
   743  type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
   744  type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
   745  type X__u_register_t = X__uint32_t   /* _types.h:136:20 */
   746  type X__vm_offset_t = X__uint32_t    /* _types.h:137:20 */
   747  type X__vm_paddr_t = X__uint64_t     /* _types.h:138:20 */
   748  type X__vm_size_t = X__uint32_t      /* _types.h:139:20 */
   749  type X___wchar_t = int32             /* _types.h:141:14 */
   750  
   751  // Standard type definitions.
   752  type X__blksize_t = X__int32_t   /* _types.h:40:19 */ // file block size
   753  type X__blkcnt_t = X__int64_t    /* _types.h:41:19 */ // file block count
   754  type X__clockid_t = X__int32_t   /* _types.h:42:19 */ // clock_gettime()...
   755  type X__fflags_t = X__uint32_t   /* _types.h:43:20 */ // file flags
   756  type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
   757  type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
   758  type X__gid_t = X__uint32_t      /* _types.h:46:20 */
   759  type X__id_t = X__int64_t        /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
   760  type X__ino_t = X__uint64_t      /* _types.h:48:20 */ // inode number
   761  type X__key_t = int32            /* _types.h:49:15 */ // IPC key (for Sys V IPC)
   762  type X__lwpid_t = X__int32_t     /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
   763  type X__mode_t = X__uint16_t     /* _types.h:51:20 */ // permissions
   764  type X__accmode_t = int32        /* _types.h:52:14 */ // access permissions
   765  type X__nl_item = int32          /* _types.h:53:14 */
   766  type X__nlink_t = X__uint64_t    /* _types.h:54:20 */ // link count
   767  type X__off_t = X__int64_t       /* _types.h:55:19 */ // file offset
   768  type X__off64_t = X__int64_t     /* _types.h:56:19 */ // file offset (alias)
   769  type X__pid_t = X__int32_t       /* _types.h:57:19 */ // process [group]
   770  type X__rlim_t = X__int64_t      /* _types.h:58:19 */ // resource limit - intentionally
   771  // signed, because of legacy code
   772  // that uses -1 for RLIM_INFINITY
   773  type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
   774  type X__socklen_t = X__uint32_t  /* _types.h:62:20 */
   775  type X__suseconds_t = int32      /* _types.h:63:15 */ // microseconds (signed)
   776  type X__timer_t = uintptr        /* _types.h:64:24 */ // timer_gettime()...
   777  type X__mqd_t = uintptr          /* _types.h:65:21 */ // mq_open()...
   778  type X__uid_t = X__uint32_t      /* _types.h:66:20 */
   779  type X__useconds_t = uint32      /* _types.h:67:22 */ // microseconds (unsigned)
   780  type X__cpuwhich_t = int32       /* _types.h:68:14 */ // which parameter for cpuset.
   781  type X__cpulevel_t = int32       /* _types.h:69:14 */ // level parameter for cpuset.
   782  type X__cpusetid_t = int32       /* _types.h:70:14 */ // cpuset identifier.
   783  type X__daddr_t = X__int64_t     /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
   784  
   785  // Unusual type definitions.
   786  // rune_t is declared to be an “int” instead of the more natural
   787  // “unsigned long” or “long”.  Two things are happening here.  It is not
   788  // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
   789  // it looks like 10646 will be a 31 bit standard.  This means that if your
   790  // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
   791  // chosen over a long is that the is*() and to*() routines take ints (says
   792  // ANSI C), but they use __ct_rune_t instead of int.
   793  //
   794  // NOTE: rune_t is not covered by ANSI nor other standards, and should not
   795  // be instantiated outside of lib/libc/locale.  Use wchar_t.  wint_t and
   796  // rune_t must be the same type.  Also, wint_t should be able to hold all
   797  // members of the largest character set plus one extra value (WEOF), and
   798  // must be at least 16 bits.
   799  type X__ct_rune_t = int32     /* _types.h:91:14 */ // arg type for ctype funcs
   800  type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
   801  type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
   802  
   803  // Clang already provides these types as built-ins, but only in C++ mode.
   804  type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
   805  type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
   806  // In C++11, char16_t and char32_t are built-in types.
   807  
   808  type X__max_align_t = struct {
   809  	F__max_align1 int64
   810  	F__max_align2 float64
   811  } /* _types.h:111:3 */
   812  
   813  type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
   814  
   815  type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
   816  
   817  // mbstate_t is an opaque object to keep conversion state during multibyte
   818  // stream conversions.
   819  type X__mbstate_t = struct {
   820  	F__ccgo_pad1 [0]uint32
   821  	F__mbstate8  [128]int8
   822  } /* _types.h:124:3 */
   823  
   824  type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
   825  
   826  // Types for varargs. These are all provided by builtin types these
   827  // days, so centralize their definition.
   828  type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
   829  type X__gnuc_va_list = X__va_list    /* _types.h:140:20 */
   830  type Pthread_once = struct {
   831  	Fstate int32
   832  	Fmutex Pthread_mutex_t
   833  } /* _pthreadtypes.h:52:1 */
   834  
   835  // Primitive system data type definitions required by P1003.1c.
   836  //
   837  // Note that P1003.1c specifies that there are no defined comparison
   838  // or assignment operators for the types pthread_attr_t, pthread_cond_t,
   839  // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t.
   840  type Pthread_t = uintptr             /* _pthreadtypes.h:67:26 */
   841  type Pthread_attr_t = uintptr        /* _pthreadtypes.h:70:30 */
   842  type Pthread_mutex_t = uintptr       /* _pthreadtypes.h:71:31 */
   843  type Pthread_mutexattr_t = uintptr   /* _pthreadtypes.h:72:35 */
   844  type Pthread_cond_t = uintptr        /* _pthreadtypes.h:73:30 */
   845  type Pthread_condattr_t = uintptr    /* _pthreadtypes.h:74:34 */
   846  type Pthread_key_t = int32           /* _pthreadtypes.h:75:20 */
   847  type Pthread_once_t = Pthread_once   /* _pthreadtypes.h:76:30 */
   848  type Pthread_rwlock_t = uintptr      /* _pthreadtypes.h:77:32 */
   849  type Pthread_rwlockattr_t = uintptr  /* _pthreadtypes.h:78:35 */
   850  type Pthread_barrier_t = uintptr     /* _pthreadtypes.h:79:33 */
   851  type Pthread_barrierattr_t = uintptr /* _pthreadtypes.h:80:36 */
   852  type Pthread_spinlock_t = uintptr    /* _pthreadtypes.h:81:33 */
   853  
   854  // Additional type definitions:
   855  //
   856  // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for
   857  // use in header symbols.
   858  type Pthread_addr_t = uintptr         /* _pthreadtypes.h:89:14 */
   859  type Pthread_startroutine_t = uintptr /* _pthreadtypes.h:90:14 */
   860  
   861  type U_char = uint8   /* types.h:52:23 */
   862  type U_short = uint16 /* types.h:53:24 */
   863  type U_int = uint32   /* types.h:54:22 */
   864  type U_long = uint32  /* types.h:55:23 */
   865  type Ushort = uint16  /* types.h:57:24 */ // Sys V compatibility
   866  type Uint = uint32    /* types.h:58:22 */ // Sys V compatibility
   867  
   868  // XXX POSIX sized integrals that should appear only in <sys/stdint.h>.
   869  // -
   870  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   871  //
   872  // Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org>
   873  // Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
   874  // All rights reserved.
   875  //
   876  // Redistribution and use in source and binary forms, with or without
   877  // modification, are permitted provided that the following conditions
   878  // are met:
   879  // 1. Redistributions of source code must retain the above copyright
   880  //    notice, this list of conditions and the following disclaimer.
   881  // 2. Redistributions in binary form must reproduce the above copyright
   882  //    notice, this list of conditions and the following disclaimer in the
   883  //    documentation and/or other materials provided with the distribution.
   884  //
   885  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   886  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   887  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   888  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   889  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   890  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   891  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   892  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   893  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   894  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   895  // SUCH DAMAGE.
   896  //
   897  // $FreeBSD$
   898  
   899  type Int8_t = X__int8_t /* _stdint.h:36:19 */
   900  
   901  type Int16_t = X__int16_t /* _stdint.h:41:20 */
   902  
   903  type Int32_t = X__int32_t /* _stdint.h:46:20 */
   904  
   905  type Int64_t = X__int64_t /* _stdint.h:51:20 */
   906  
   907  type Uint8_t = X__uint8_t /* _stdint.h:56:20 */
   908  
   909  type Uint16_t = X__uint16_t /* _stdint.h:61:21 */
   910  
   911  type Uint32_t = X__uint32_t /* _stdint.h:66:21 */
   912  
   913  type Uint64_t = X__uint64_t /* _stdint.h:71:21 */
   914  
   915  type Intptr_t = X__intptr_t   /* _stdint.h:76:21 */
   916  type Uintptr_t = X__uintptr_t /* _stdint.h:80:22 */
   917  type Intmax_t = X__intmax_t   /* _stdint.h:84:21 */
   918  type Uintmax_t = X__uintmax_t /* _stdint.h:88:22 */
   919  
   920  type U_int8_t = X__uint8_t   /* types.h:67:19 */ // unsigned integrals (deprecated)
   921  type U_int16_t = X__uint16_t /* types.h:68:20 */
   922  type U_int32_t = X__uint32_t /* types.h:69:20 */
   923  type U_int64_t = X__uint64_t /* types.h:70:20 */
   924  
   925  type U_quad_t = X__uint64_t /* types.h:72:20 */ // quads (deprecated)
   926  type Quad_t = X__int64_t    /* types.h:73:19 */
   927  type Qaddr_t = uintptr      /* types.h:74:16 */
   928  
   929  type Caddr_t = uintptr   /* types.h:76:14 */ // core address
   930  type C_caddr_t = uintptr /* types.h:77:20 */ // core address, pointer to const
   931  
   932  type Blksize_t = X__blksize_t /* types.h:80:21 */
   933  
   934  type Cpuwhich_t = X__cpuwhich_t /* types.h:84:22 */
   935  type Cpulevel_t = X__cpulevel_t /* types.h:85:22 */
   936  type Cpusetid_t = X__cpusetid_t /* types.h:86:22 */
   937  
   938  type Blkcnt_t = X__blkcnt_t /* types.h:89:20 */
   939  
   940  type Clock_t = X__clock_t /* types.h:94:19 */
   941  
   942  type Clockid_t = X__clockid_t /* types.h:99:21 */
   943  
   944  type Critical_t = X__critical_t /* types.h:103:22 */ // Critical section value
   945  type Daddr_t = X__daddr_t       /* types.h:104:19 */ // disk address
   946  
   947  type Dev_t = X__dev_t /* types.h:107:18 */ // device number or struct cdev
   948  
   949  type Fflags_t = X__fflags_t /* types.h:112:20 */ // file flags
   950  
   951  type Fixpt_t = X__fixpt_t /* types.h:116:19 */ // fixed point number
   952  
   953  type Fsblkcnt_t = X__fsblkcnt_t /* types.h:119:22 */
   954  type Fsfilcnt_t = X__fsfilcnt_t /* types.h:120:22 */
   955  
   956  type Gid_t = X__gid_t /* types.h:125:18 */ // group id
   957  
   958  type In_addr_t = X__uint32_t /* types.h:130:20 */ // base type for internet address
   959  
   960  type In_port_t = X__uint16_t /* types.h:135:20 */
   961  
   962  type Id_t = X__id_t /* types.h:140:17 */ // can hold a uid_t or pid_t
   963  
   964  type Ino_t = X__ino_t /* types.h:145:18 */ // inode number
   965  
   966  type Key_t = X__key_t /* types.h:150:18 */ // IPC key (for Sys V IPC)
   967  
   968  type Lwpid_t = X__lwpid_t /* types.h:155:19 */ // Thread ID (a.k.a. LWP)
   969  
   970  type Mode_t = X__mode_t /* types.h:160:18 */ // permissions
   971  
   972  type Accmode_t = X__accmode_t /* types.h:165:21 */ // access permissions
   973  
   974  type Nlink_t = X__nlink_t /* types.h:170:19 */ // link count
   975  
   976  type Off_t = X__off_t /* types.h:175:18 */ // file offset
   977  
   978  type Off64_t = X__off64_t /* types.h:180:19 */ // file offset (alias)
   979  
   980  type Pid_t = X__pid_t /* types.h:185:18 */ // process id
   981  
   982  type Register_t = X__register_t /* types.h:189:22 */
   983  
   984  type Rlim_t = X__rlim_t /* types.h:192:18 */ // resource limit
   985  
   986  type Sbintime_t = X__int64_t /* types.h:196:19 */
   987  
   988  type Segsz_t = X__segsz_t /* types.h:198:19 */
   989  
   990  type Ssize_t = X__ssize_t /* types.h:206:19 */
   991  
   992  type Suseconds_t = X__suseconds_t /* types.h:211:23 */ // microseconds (signed)
   993  
   994  type Time_t = X__time_t /* types.h:216:18 */
   995  
   996  type Timer_t = X__timer_t /* types.h:221:19 */
   997  
   998  type Mqd_t = X__mqd_t /* types.h:226:17 */
   999  
  1000  type U_register_t = X__u_register_t /* types.h:230:24 */
  1001  
  1002  type Uid_t = X__uid_t /* types.h:233:18 */ // user id
  1003  
  1004  type Useconds_t = X__useconds_t /* types.h:238:22 */ // microseconds (unsigned)
  1005  
  1006  type Cap_ioctl_t = uint32 /* types.h:244:23 */
  1007  
  1008  // Types suitable for exporting physical addresses, virtual addresses
  1009  // (pointers), and memory object sizes from the kernel independent of native
  1010  // word size.  These should be used in place of vm_paddr_t, (u)intptr_t, and
  1011  // size_t in structs which contain such types that are shared with userspace.
  1012  type Kpaddr_t = X__uint64_t /* types.h:260:20 */
  1013  type Kvaddr_t = X__uint64_t /* types.h:261:20 */
  1014  type Ksize_t = X__uint64_t  /* types.h:262:20 */
  1015  type Kssize_t = X__int64_t  /* types.h:263:19 */
  1016  
  1017  type Vm_offset_t = X__vm_offset_t /* types.h:265:23 */
  1018  type Vm_ooffset_t = X__uint64_t   /* types.h:266:20 */
  1019  type Vm_paddr_t = X__vm_paddr_t   /* types.h:267:22 */
  1020  type Vm_pindex_t = X__uint64_t    /* types.h:268:20 */
  1021  type Vm_size_t = X__vm_size_t     /* types.h:269:21 */
  1022  
  1023  type Rman_res_t = X__rman_res_t /* types.h:271:25 */
  1024  
  1025  // -
  1026  // SPDX-License-Identifier: BSD-3-Clause
  1027  //
  1028  // Copyright (c) 1992, 1993
  1029  //	The Regents of the University of California.  All rights reserved.
  1030  //
  1031  // Redistribution and use in source and binary forms, with or without
  1032  // modification, are permitted provided that the following conditions
  1033  // are met:
  1034  // 1. Redistributions of source code must retain the above copyright
  1035  //    notice, this list of conditions and the following disclaimer.
  1036  // 2. Redistributions in binary form must reproduce the above copyright
  1037  //    notice, this list of conditions and the following disclaimer in the
  1038  //    documentation and/or other materials provided with the distribution.
  1039  // 3. Neither the name of the University nor the names of its contributors
  1040  //    may be used to endorse or promote products derived from this software
  1041  //    without specific prior written permission.
  1042  //
  1043  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1044  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1045  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1046  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1047  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1048  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1049  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1050  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1051  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1052  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1053  // SUCH DAMAGE.
  1054  //
  1055  // $FreeBSD$
  1056  
  1057  // -
  1058  // SPDX-License-Identifier: BSD-3-Clause
  1059  //
  1060  // Copyright (c) 1991, 1993
  1061  //	The Regents of the University of California.  All rights reserved.
  1062  //
  1063  // This code is derived from software contributed to Berkeley by
  1064  // Berkeley Software Design, Inc.
  1065  //
  1066  // Redistribution and use in source and binary forms, with or without
  1067  // modification, are permitted provided that the following conditions
  1068  // are met:
  1069  // 1. Redistributions of source code must retain the above copyright
  1070  //    notice, this list of conditions and the following disclaimer.
  1071  // 2. Redistributions in binary form must reproduce the above copyright
  1072  //    notice, this list of conditions and the following disclaimer in the
  1073  //    documentation and/or other materials provided with the distribution.
  1074  // 3. Neither the name of the University nor the names of its contributors
  1075  //    may be used to endorse or promote products derived from this software
  1076  //    without specific prior written permission.
  1077  //
  1078  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1079  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1080  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1081  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1082  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1083  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1084  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1085  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1086  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1087  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1088  // SUCH DAMAGE.
  1089  //
  1090  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1091  // $FreeBSD$
  1092  
  1093  // -
  1094  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1095  //
  1096  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1097  // All rights reserved.
  1098  //
  1099  // Redistribution and use in source and binary forms, with or without
  1100  // modification, are permitted provided that the following conditions
  1101  // are met:
  1102  // 1. Redistributions of source code must retain the above copyright
  1103  //    notice, this list of conditions and the following disclaimer.
  1104  // 2. Redistributions in binary form must reproduce the above copyright
  1105  //    notice, this list of conditions and the following disclaimer in the
  1106  //    documentation and/or other materials provided with the distribution.
  1107  //
  1108  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1109  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1110  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1111  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1112  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1113  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1114  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1115  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1116  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1117  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1118  // SUCH DAMAGE.
  1119  //
  1120  // $FreeBSD$
  1121  
  1122  // -
  1123  // SPDX-License-Identifier: BSD-3-Clause
  1124  //
  1125  // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1126  //	The Regents of the University of California.  All rights reserved.
  1127  // (c) UNIX System Laboratories, Inc.
  1128  // All or some portions of this file are derived from material licensed
  1129  // to the University of California by American Telephone and Telegraph
  1130  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1131  // the permission of UNIX System Laboratories, Inc.
  1132  //
  1133  // Redistribution and use in source and binary forms, with or without
  1134  // modification, are permitted provided that the following conditions
  1135  // are met:
  1136  // 1. Redistributions of source code must retain the above copyright
  1137  //    notice, this list of conditions and the following disclaimer.
  1138  // 2. Redistributions in binary form must reproduce the above copyright
  1139  //    notice, this list of conditions and the following disclaimer in the
  1140  //    documentation and/or other materials provided with the distribution.
  1141  // 3. Neither the name of the University nor the names of its contributors
  1142  //    may be used to endorse or promote products derived from this software
  1143  //    without specific prior written permission.
  1144  //
  1145  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1146  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1147  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1148  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1149  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1150  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1151  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1152  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1153  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1154  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1155  // SUCH DAMAGE.
  1156  //
  1157  //	@(#)signal.h	8.4 (Berkeley) 5/4/95
  1158  // $FreeBSD$
  1159  
  1160  // sigset_t macros.
  1161  
  1162  type X__sigset = struct{ F__bits [4]X__uint32_t } /* _sigset.h:53:9 */
  1163  
  1164  // -
  1165  // SPDX-License-Identifier: BSD-3-Clause
  1166  //
  1167  // Copyright (c) 1992, 1993
  1168  //	The Regents of the University of California.  All rights reserved.
  1169  //
  1170  // Redistribution and use in source and binary forms, with or without
  1171  // modification, are permitted provided that the following conditions
  1172  // are met:
  1173  // 1. Redistributions of source code must retain the above copyright
  1174  //    notice, this list of conditions and the following disclaimer.
  1175  // 2. Redistributions in binary form must reproduce the above copyright
  1176  //    notice, this list of conditions and the following disclaimer in the
  1177  //    documentation and/or other materials provided with the distribution.
  1178  // 3. Neither the name of the University nor the names of its contributors
  1179  //    may be used to endorse or promote products derived from this software
  1180  //    without specific prior written permission.
  1181  //
  1182  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1183  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1184  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1185  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1186  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1187  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1188  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1189  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1190  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1191  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1192  // SUCH DAMAGE.
  1193  //
  1194  // $FreeBSD$
  1195  
  1196  // -
  1197  // SPDX-License-Identifier: BSD-3-Clause
  1198  //
  1199  // Copyright (c) 1991, 1993
  1200  //	The Regents of the University of California.  All rights reserved.
  1201  //
  1202  // This code is derived from software contributed to Berkeley by
  1203  // Berkeley Software Design, Inc.
  1204  //
  1205  // Redistribution and use in source and binary forms, with or without
  1206  // modification, are permitted provided that the following conditions
  1207  // are met:
  1208  // 1. Redistributions of source code must retain the above copyright
  1209  //    notice, this list of conditions and the following disclaimer.
  1210  // 2. Redistributions in binary form must reproduce the above copyright
  1211  //    notice, this list of conditions and the following disclaimer in the
  1212  //    documentation and/or other materials provided with the distribution.
  1213  // 3. Neither the name of the University nor the names of its contributors
  1214  //    may be used to endorse or promote products derived from this software
  1215  //    without specific prior written permission.
  1216  //
  1217  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1218  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1219  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1220  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1221  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1222  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1223  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1224  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1225  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1226  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1227  // SUCH DAMAGE.
  1228  //
  1229  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1230  // $FreeBSD$
  1231  
  1232  // -
  1233  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1234  //
  1235  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1236  // All rights reserved.
  1237  //
  1238  // Redistribution and use in source and binary forms, with or without
  1239  // modification, are permitted provided that the following conditions
  1240  // are met:
  1241  // 1. Redistributions of source code must retain the above copyright
  1242  //    notice, this list of conditions and the following disclaimer.
  1243  // 2. Redistributions in binary form must reproduce the above copyright
  1244  //    notice, this list of conditions and the following disclaimer in the
  1245  //    documentation and/or other materials provided with the distribution.
  1246  //
  1247  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1248  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1249  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1250  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1251  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1252  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1253  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1254  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1255  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1256  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1257  // SUCH DAMAGE.
  1258  //
  1259  // $FreeBSD$
  1260  
  1261  // -
  1262  // SPDX-License-Identifier: BSD-3-Clause
  1263  //
  1264  // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1265  //	The Regents of the University of California.  All rights reserved.
  1266  // (c) UNIX System Laboratories, Inc.
  1267  // All or some portions of this file are derived from material licensed
  1268  // to the University of California by American Telephone and Telegraph
  1269  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1270  // the permission of UNIX System Laboratories, Inc.
  1271  //
  1272  // Redistribution and use in source and binary forms, with or without
  1273  // modification, are permitted provided that the following conditions
  1274  // are met:
  1275  // 1. Redistributions of source code must retain the above copyright
  1276  //    notice, this list of conditions and the following disclaimer.
  1277  // 2. Redistributions in binary form must reproduce the above copyright
  1278  //    notice, this list of conditions and the following disclaimer in the
  1279  //    documentation and/or other materials provided with the distribution.
  1280  // 3. Neither the name of the University nor the names of its contributors
  1281  //    may be used to endorse or promote products derived from this software
  1282  //    without specific prior written permission.
  1283  //
  1284  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1285  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1286  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1287  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1288  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1289  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1290  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1291  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1292  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1293  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1294  // SUCH DAMAGE.
  1295  //
  1296  //	@(#)signal.h	8.4 (Berkeley) 5/4/95
  1297  // $FreeBSD$
  1298  
  1299  // sigset_t macros.
  1300  
  1301  type X__sigset_t = X__sigset /* _sigset.h:55:3 */
  1302  
  1303  // -
  1304  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1305  //
  1306  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1307  // 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  //
  1318  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1319  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1320  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1321  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1322  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1323  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1324  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1325  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1326  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1327  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1328  // SUCH DAMAGE.
  1329  //
  1330  // $FreeBSD$
  1331  
  1332  // -
  1333  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1334  //
  1335  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1336  // All rights reserved.
  1337  //
  1338  // Redistribution and use in source and binary forms, with or without
  1339  // modification, are permitted provided that the following conditions
  1340  // are met:
  1341  // 1. Redistributions of source code must retain the above copyright
  1342  //    notice, this list of conditions and the following disclaimer.
  1343  // 2. Redistributions in binary form must reproduce the above copyright
  1344  //    notice, this list of conditions and the following disclaimer in the
  1345  //    documentation and/or other materials provided with the distribution.
  1346  //
  1347  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1348  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1349  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1350  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1351  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1352  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1353  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1354  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1355  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1356  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1357  // SUCH DAMAGE.
  1358  //
  1359  // $FreeBSD$
  1360  
  1361  // Structure returned by gettimeofday(2) system call, and used in other calls.
  1362  type Timeval = struct {
  1363  	Ftv_sec  Time_t
  1364  	Ftv_usec Suseconds_t
  1365  } /* _timeval.h:49:1 */
  1366  
  1367  // -
  1368  // SPDX-License-Identifier: BSD-3-Clause
  1369  //
  1370  // Copyright (c) 1982, 1986, 1993
  1371  //	The Regents of the University of California.  All rights reserved.
  1372  //
  1373  // Redistribution and use in source and binary forms, with or without
  1374  // modification, are permitted provided that the following conditions
  1375  // are met:
  1376  // 1. Redistributions of source code must retain the above copyright
  1377  //    notice, this list of conditions and the following disclaimer.
  1378  // 2. Redistributions in binary form must reproduce the above copyright
  1379  //    notice, this list of conditions and the following disclaimer in the
  1380  //    documentation and/or other materials provided with the distribution.
  1381  // 3. Neither the name of the University nor the names of its contributors
  1382  //    may be used to endorse or promote products derived from this software
  1383  //    without specific prior written permission.
  1384  //
  1385  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1386  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1387  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1388  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1389  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1390  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1391  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1392  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1393  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1394  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1395  // SUCH DAMAGE.
  1396  //
  1397  //	@(#)time.h	8.5 (Berkeley) 5/4/95
  1398  // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1399  //	$FreeBSD$
  1400  
  1401  // -
  1402  // SPDX-License-Identifier: BSD-3-Clause
  1403  //
  1404  // Copyright (c) 1991, 1993
  1405  //	The Regents of the University of California.  All rights reserved.
  1406  //
  1407  // This code is derived from software contributed to Berkeley by
  1408  // Berkeley Software Design, Inc.
  1409  //
  1410  // Redistribution and use in source and binary forms, with or without
  1411  // modification, are permitted provided that the following conditions
  1412  // are met:
  1413  // 1. Redistributions of source code must retain the above copyright
  1414  //    notice, this list of conditions and the following disclaimer.
  1415  // 2. Redistributions in binary form must reproduce the above copyright
  1416  //    notice, this list of conditions and the following disclaimer in the
  1417  //    documentation and/or other materials provided with the distribution.
  1418  // 3. Neither the name of the University nor the names of its contributors
  1419  //    may be used to endorse or promote products derived from this software
  1420  //    without specific prior written permission.
  1421  //
  1422  // THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1435  // $FreeBSD$
  1436  
  1437  // -
  1438  // SPDX-License-Identifier: BSD-3-Clause
  1439  //
  1440  // Copyright (c) 1982, 1986, 1993
  1441  //	The Regents of the University of California.  All rights reserved.
  1442  //
  1443  // Redistribution and use in source and binary forms, with or without
  1444  // modification, are permitted provided that the following conditions
  1445  // are met:
  1446  // 1. Redistributions of source code must retain the above copyright
  1447  //    notice, this list of conditions and the following disclaimer.
  1448  // 2. Redistributions in binary form must reproduce the above copyright
  1449  //    notice, this list of conditions and the following disclaimer in the
  1450  //    documentation and/or other materials provided with the distribution.
  1451  // 3. Neither the name of the University nor the names of its contributors
  1452  //    may be used to endorse or promote products derived from this software
  1453  //    without specific prior written permission.
  1454  //
  1455  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1456  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1457  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1458  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1459  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1460  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1461  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1462  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1463  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1464  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1465  // SUCH DAMAGE.
  1466  //
  1467  //	@(#)time.h	8.5 (Berkeley) 5/4/95
  1468  // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1469  //	$FreeBSD$
  1470  
  1471  // -
  1472  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1473  //
  1474  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1475  // All rights reserved.
  1476  //
  1477  // Redistribution and use in source and binary forms, with or without
  1478  // modification, are permitted provided that the following conditions
  1479  // are met:
  1480  // 1. Redistributions of source code must retain the above copyright
  1481  //    notice, this list of conditions and the following disclaimer.
  1482  // 2. Redistributions in binary form must reproduce the above copyright
  1483  //    notice, this list of conditions and the following disclaimer in the
  1484  //    documentation and/or other materials provided with the distribution.
  1485  //
  1486  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1487  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1488  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1489  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1490  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1491  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1492  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1493  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1494  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1495  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1496  // SUCH DAMAGE.
  1497  //
  1498  // $FreeBSD$
  1499  
  1500  type Timespec = struct {
  1501  	Ftv_sec  Time_t
  1502  	Ftv_nsec int32
  1503  } /* _timespec.h:46:1 */
  1504  
  1505  // Structure defined by POSIX.1b to be like a itimerval, but with
  1506  // timespecs. Used in the timer_*() system calls.
  1507  type Itimerspec = struct {
  1508  	Fit_interval struct {
  1509  		Ftv_sec  Time_t
  1510  		Ftv_nsec int32
  1511  	}
  1512  	Fit_value struct {
  1513  		Ftv_sec  Time_t
  1514  		Ftv_nsec int32
  1515  	}
  1516  } /* timespec.h:60:1 */
  1517  
  1518  type X__fd_mask = uint32  /* select.h:44:23 */
  1519  type Fd_mask = X__fd_mask /* select.h:46:19 */
  1520  
  1521  type Sigset_t = X__sigset_t /* select.h:51:20 */
  1522  
  1523  // Select uses bit masks of file descriptors in longs.  These macros
  1524  // manipulate such bit fields (the filesystem macros use chars).
  1525  // FD_SETSIZE may be defined by the user, but the default here should
  1526  // be enough for most uses.
  1527  
  1528  type Fd_set1 = struct{ F__fds_bits [32]X__fd_mask } /* select.h:73:9 */
  1529  
  1530  // Select uses bit masks of file descriptors in longs.  These macros
  1531  // manipulate such bit fields (the filesystem macros use chars).
  1532  // FD_SETSIZE may be defined by the user, but the default here should
  1533  // be enough for most uses.
  1534  
  1535  type Fd_set = Fd_set1 /* select.h:75:3 */
  1536  
  1537  // -
  1538  // SPDX-License-Identifier: BSD-3-Clause
  1539  //
  1540  // Copyright (c) 1982, 1986, 1989, 1993
  1541  //	The Regents of the University of California.  All rights reserved.
  1542  // (c) UNIX System Laboratories, Inc.
  1543  // All or some portions of this file are derived from material licensed
  1544  // to the University of California by American Telephone and Telegraph
  1545  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1546  // the permission of UNIX System Laboratories, Inc.
  1547  //
  1548  // Redistribution and use in source and binary forms, with or without
  1549  // modification, are permitted provided that the following conditions
  1550  // are met:
  1551  // 1. Redistributions of source code must retain the above copyright
  1552  //    notice, this list of conditions and the following disclaimer.
  1553  // 2. Redistributions in binary form must reproduce the above copyright
  1554  //    notice, this list of conditions and the following disclaimer in the
  1555  //    documentation and/or other materials provided with the distribution.
  1556  // 3. Neither the name of the University nor the names of its contributors
  1557  //    may be used to endorse or promote products derived from this software
  1558  //    without specific prior written permission.
  1559  //
  1560  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1561  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1562  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1563  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1564  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1565  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1566  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1567  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1568  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1569  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1570  // SUCH DAMAGE.
  1571  //
  1572  //	@(#)stat.h	8.12 (Berkeley) 6/16/95
  1573  // $FreeBSD$
  1574  
  1575  // -
  1576  // SPDX-License-Identifier: BSD-3-Clause
  1577  //
  1578  // Copyright (c) 1991, 1993
  1579  //	The Regents of the University of California.  All rights reserved.
  1580  //
  1581  // This code is derived from software contributed to Berkeley by
  1582  // Berkeley Software Design, Inc.
  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, this list of conditions and the following disclaimer.
  1589  // 2. Redistributions in binary form must reproduce the above copyright
  1590  //    notice, this list of conditions and the following disclaimer in the
  1591  //    documentation and/or other materials provided with the distribution.
  1592  // 3. Neither the name of the University nor the names of its contributors
  1593  //    may be used to endorse or promote products derived from this software
  1594  //    without specific prior written permission.
  1595  //
  1596  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1597  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1598  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1599  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1600  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1601  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1602  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1603  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1604  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1605  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1606  // SUCH DAMAGE.
  1607  //
  1608  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1609  // $FreeBSD$
  1610  
  1611  // -
  1612  // SPDX-License-Identifier: BSD-3-Clause
  1613  //
  1614  // Copyright (c) 1982, 1986, 1993
  1615  //	The Regents of the University of California.  All rights reserved.
  1616  //
  1617  // Redistribution and use in source and binary forms, with or without
  1618  // modification, are permitted provided that the following conditions
  1619  // are met:
  1620  // 1. Redistributions of source code must retain the above copyright
  1621  //    notice, this list of conditions and the following 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  // 3. Neither the name of the University nor the names of its contributors
  1626  //    may be used to endorse or promote products derived from this software
  1627  //    without specific prior written permission.
  1628  //
  1629  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1630  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1631  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1632  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1633  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1634  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1635  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1636  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1637  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1638  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1639  // SUCH DAMAGE.
  1640  //
  1641  //	@(#)time.h	8.5 (Berkeley) 5/4/95
  1642  // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1643  //	$FreeBSD$
  1644  
  1645  // -
  1646  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1647  //
  1648  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1649  // All rights reserved.
  1650  //
  1651  // Redistribution and use in source and binary forms, with or without
  1652  // modification, are permitted provided that the following conditions
  1653  // are met:
  1654  // 1. Redistributions of source code must retain the above copyright
  1655  //    notice, this list of conditions and the following disclaimer.
  1656  // 2. Redistributions in binary form must reproduce the above copyright
  1657  //    notice, this list of conditions and the following disclaimer in the
  1658  //    documentation and/or other materials provided with the distribution.
  1659  //
  1660  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1661  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1662  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1663  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1664  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1665  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1666  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1667  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1668  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1669  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1670  // SUCH DAMAGE.
  1671  //
  1672  // $FreeBSD$
  1673  
  1674  // XXX We get miscellaneous namespace pollution with this.
  1675  // -
  1676  // SPDX-License-Identifier: BSD-3-Clause
  1677  //
  1678  // Copyright (c) 1982, 1986, 1993
  1679  //	The Regents of the University of California.  All rights reserved.
  1680  //
  1681  // Redistribution and use in source and binary forms, with or without
  1682  // modification, are permitted provided that the following conditions
  1683  // are met:
  1684  // 1. Redistributions of source code must retain the above copyright
  1685  //    notice, this list of conditions and the following disclaimer.
  1686  // 2. Redistributions in binary form must reproduce the above copyright
  1687  //    notice, this list of conditions and the following disclaimer in the
  1688  //    documentation and/or other materials provided with the distribution.
  1689  // 3. Neither the name of the University nor the names of its contributors
  1690  //    may be used to endorse or promote products derived from this software
  1691  //    without specific prior written permission.
  1692  //
  1693  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1694  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1695  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1696  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1697  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1698  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1699  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1700  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1701  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1702  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1703  // SUCH DAMAGE.
  1704  //
  1705  //	@(#)time.h	8.5 (Berkeley) 5/4/95
  1706  // $FreeBSD$
  1707  
  1708  // -
  1709  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1710  //
  1711  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1712  // All rights reserved.
  1713  //
  1714  // Redistribution and use in source and binary forms, with or without
  1715  // modification, are permitted provided that the following conditions
  1716  // are met:
  1717  // 1. Redistributions of source code must retain the above copyright
  1718  //    notice, this list of conditions and the following disclaimer.
  1719  // 2. Redistributions in binary form must reproduce the above copyright
  1720  //    notice, this list of conditions and the following disclaimer in the
  1721  //    documentation and/or other materials provided with the distribution.
  1722  //
  1723  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1724  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1725  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1726  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1727  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1728  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1729  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1730  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1731  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1732  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1733  // SUCH DAMAGE.
  1734  //
  1735  // $FreeBSD$
  1736  
  1737  // -
  1738  // SPDX-License-Identifier: BSD-3-Clause
  1739  //
  1740  // Copyright (c) 1982, 1986, 1991, 1993, 1994
  1741  //	The Regents of the University of California.  All rights reserved.
  1742  // (c) UNIX System Laboratories, Inc.
  1743  // All or some portions of this file are derived from material licensed
  1744  // to the University of California by American Telephone and Telegraph
  1745  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1746  // the permission of UNIX System Laboratories, Inc.
  1747  //
  1748  // Redistribution and use in source and binary forms, with or without
  1749  // modification, are permitted provided that the following conditions
  1750  // are met:
  1751  // 1. Redistributions of source code must retain the above copyright
  1752  //    notice, this list of conditions and the following disclaimer.
  1753  // 2. Redistributions in binary form must reproduce the above copyright
  1754  //    notice, this list of conditions and the following disclaimer in the
  1755  //    documentation and/or other materials provided with the distribution.
  1756  // 3. Neither the name of the University nor the names of its contributors
  1757  //    may be used to endorse or promote products derived from this software
  1758  //    without specific prior written permission.
  1759  //
  1760  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1761  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1762  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1763  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1764  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1765  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1766  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1767  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1768  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1769  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1770  // SUCH DAMAGE.
  1771  //
  1772  //	@(#)types.h	8.6 (Berkeley) 2/19/95
  1773  // $FreeBSD$
  1774  
  1775  // -
  1776  // SPDX-License-Identifier: BSD-3-Clause
  1777  //
  1778  // Copyright (c) 1982, 1986, 1993
  1779  //	The Regents of the University of California.  All rights reserved.
  1780  //
  1781  // Redistribution and use in source and binary forms, with or without
  1782  // modification, are permitted provided that the following conditions
  1783  // are met:
  1784  // 1. Redistributions of source code must retain the above copyright
  1785  //    notice, this list of conditions and the following disclaimer.
  1786  // 2. Redistributions in binary form must reproduce the above copyright
  1787  //    notice, this list of conditions and the following disclaimer in the
  1788  //    documentation and/or other materials provided with the distribution.
  1789  // 3. Neither the name of the University nor the names of its contributors
  1790  //    may be used to endorse or promote products derived from this software
  1791  //    without specific prior written permission.
  1792  //
  1793  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1794  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1795  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1796  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1797  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1798  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1799  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1800  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1801  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1802  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1803  // SUCH DAMAGE.
  1804  //
  1805  //	@(#)time.h	8.5 (Berkeley) 5/4/95
  1806  // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1807  //	$FreeBSD$
  1808  
  1809  // -
  1810  // SPDX-License-Identifier: BSD-3-Clause
  1811  //
  1812  // Copyright (c) 1989, 1993
  1813  //	The Regents of the University of California.  All rights reserved.
  1814  // (c) UNIX System Laboratories, Inc.
  1815  // All or some portions of this file are derived from material licensed
  1816  // to the University of California by American Telephone and Telegraph
  1817  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1818  // the permission of UNIX System Laboratories, Inc.
  1819  //
  1820  // Redistribution and use in source and binary forms, with or without
  1821  // modification, are permitted provided that the following conditions
  1822  // are met:
  1823  // 1. Redistributions of source code must retain the above copyright
  1824  //    notice, this list of conditions and the following disclaimer.
  1825  // 2. Redistributions in binary form must reproduce the above copyright
  1826  //    notice, this list of conditions and the following disclaimer in the
  1827  //    documentation and/or other materials provided with the distribution.
  1828  // 3. Neither the name of the University nor the names of its contributors
  1829  //    may be used to endorse or promote products derived from this software
  1830  //    without specific prior written permission.
  1831  //
  1832  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1833  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1834  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1835  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1836  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1837  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1838  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1839  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1840  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1841  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1842  // SUCH DAMAGE.
  1843  //
  1844  //	@(#)time.h	8.3 (Berkeley) 1/21/94
  1845  
  1846  // These macros are shared between time.h and sys/time.h.
  1847  
  1848  // Note: The values shown below as a comment for the __POSIX_VISIBLE values are
  1849  // the ones FreeBSD traditionally used based on our reading of the POSIX
  1850  // standards. However, glibc uses 199309 for all of them, even those many were
  1851  // not defined there. To remain bug compatible with glibc means more software
  1852  // that relied on the glibc behavior will compile easily on FreeBSD.
  1853  //
  1854  // Also, CLOCK_UPTIME_FAST is improperly visible temporarily for the lang/pocl
  1855  // port until it can be updated properly. It incorrectly assumes that this was a
  1856  // standard value. It will be moved back to the __BSD_VISIBLE section once the
  1857  // issue is corrected.
  1858  
  1859  // FreeBSD-specific clocks.
  1860  
  1861  // Linux compatible names.
  1862  
  1863  type Timezone = struct {
  1864  	Ftz_minuteswest int32
  1865  	Ftz_dsttime     int32
  1866  } /* time.h:43:1 */
  1867  
  1868  type Bintime = struct {
  1869  	Fsec  Time_t
  1870  	Ffrac Uint64_t
  1871  } /* time.h:56:1 */
  1872  
  1873  // Operations on timespecs
  1874  
  1875  // Names of the interval timers, and structure
  1876  // defining a timer setting.
  1877  
  1878  type Itimerval = struct {
  1879  	Fit_interval struct {
  1880  		Ftv_sec  Time_t
  1881  		Ftv_usec Suseconds_t
  1882  	}
  1883  	Fit_value struct {
  1884  		Ftv_sec  Time_t
  1885  		Ftv_usec Suseconds_t
  1886  	}
  1887  } /* time.h:459:1 */
  1888  
  1889  // Getkerninfo clock information structure
  1890  type Clockinfo = struct {
  1891  	Fhz     int32
  1892  	Ftick   int32
  1893  	Fspare  int32
  1894  	Fstathz int32
  1895  	Fprofhz int32
  1896  } /* time.h:467:1 */
  1897  
  1898  // -
  1899  // SPDX-License-Identifier: BSD-3-Clause
  1900  //
  1901  // Copyright (c) 1989, 1993
  1902  //	The Regents of the University of California.  All rights reserved.
  1903  // (c) UNIX System Laboratories, Inc.
  1904  // All or some portions of this file are derived from material licensed
  1905  // to the University of California by American Telephone and Telegraph
  1906  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1907  // the permission of UNIX System Laboratories, Inc.
  1908  //
  1909  // Redistribution and use in source and binary forms, with or without
  1910  // modification, are permitted provided that the following conditions
  1911  // are met:
  1912  // 1. Redistributions of source code must retain the above copyright
  1913  //    notice, this list of conditions and the following disclaimer.
  1914  // 2. Redistributions in binary form must reproduce the above copyright
  1915  //    notice, this list of conditions and the following disclaimer in the
  1916  //    documentation and/or other materials provided with the distribution.
  1917  // 3. Neither the name of the University nor the names of its contributors
  1918  //    may be used to endorse or promote products derived from this software
  1919  //    without specific prior written permission.
  1920  //
  1921  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1922  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1923  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1924  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1925  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1926  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1927  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1928  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1929  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1930  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1931  // SUCH DAMAGE.
  1932  //
  1933  //	@(#)time.h	8.3 (Berkeley) 1/21/94
  1934  
  1935  // $FreeBSD$
  1936  
  1937  // -
  1938  // SPDX-License-Identifier: BSD-3-Clause
  1939  //
  1940  // Copyright (c) 1991, 1993
  1941  //	The Regents of the University of California.  All rights reserved.
  1942  //
  1943  // This code is derived from software contributed to Berkeley by
  1944  // Berkeley Software Design, Inc.
  1945  //
  1946  // Redistribution and use in source and binary forms, with or without
  1947  // modification, are permitted provided that the following conditions
  1948  // are met:
  1949  // 1. Redistributions of source code must retain the above copyright
  1950  //    notice, this list of conditions and the following disclaimer.
  1951  // 2. Redistributions in binary form must reproduce the above copyright
  1952  //    notice, this list of conditions and the following disclaimer in the
  1953  //    documentation and/or other materials provided with the distribution.
  1954  // 3. Neither the name of the University nor the names of its contributors
  1955  //    may be used to endorse or promote products derived from this software
  1956  //    without specific prior written permission.
  1957  //
  1958  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1959  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1960  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1961  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1962  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1963  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1964  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1965  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1966  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1967  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1968  // SUCH DAMAGE.
  1969  //
  1970  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1971  // $FreeBSD$
  1972  
  1973  // -
  1974  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1975  //
  1976  // Copyright (c) 2003 Marcel Moolenaar
  1977  // All rights reserved.
  1978  //
  1979  // Redistribution and use in source and binary forms, with or without
  1980  // modification, are permitted provided that the following conditions
  1981  // are met:
  1982  //
  1983  // 1. Redistributions of source code must retain the above copyright
  1984  //    notice, this list of conditions and the following disclaimer.
  1985  // 2. Redistributions in binary form must reproduce the above copyright
  1986  //    notice, this list of conditions and the following disclaimer in the
  1987  //    documentation and/or other materials provided with the distribution.
  1988  //
  1989  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1990  // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1991  // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1992  // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1993  // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1994  // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1995  // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1996  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1997  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1998  // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1999  //
  2000  // $FreeBSD$
  2001  
  2002  // -
  2003  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  2004  //
  2005  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  2006  // All rights reserved.
  2007  //
  2008  // Redistribution and use in source and binary forms, with or without
  2009  // modification, are permitted provided that the following conditions
  2010  // are met:
  2011  // 1. Redistributions of source code must retain the above copyright
  2012  //    notice, this list of conditions and the following disclaimer.
  2013  // 2. Redistributions in binary form must reproduce the above copyright
  2014  //    notice, this list of conditions and the following disclaimer in the
  2015  //    documentation and/or other materials provided with the distribution.
  2016  //
  2017  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  2018  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2019  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2020  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  2021  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2022  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2023  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2024  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2025  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2026  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2027  // SUCH DAMAGE.
  2028  //
  2029  // $FreeBSD$
  2030  
  2031  // -
  2032  // SPDX-License-Identifier: BSD-3-Clause
  2033  //
  2034  // Copyright (c) 1989, 1993
  2035  //	The Regents of the University of California.  All rights reserved.
  2036  // (c) UNIX System Laboratories, Inc.
  2037  // All or some portions of this file are derived from material licensed
  2038  // to the University of California by American Telephone and Telegraph
  2039  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  2040  // the permission of UNIX System Laboratories, Inc.
  2041  //
  2042  // Redistribution and use in source and binary forms, with or without
  2043  // modification, are permitted provided that the following conditions
  2044  // are met:
  2045  // 1. Redistributions of source code must retain the above copyright
  2046  //    notice, this list of conditions and the following disclaimer.
  2047  // 2. Redistributions in binary form must reproduce the above copyright
  2048  //    notice, this list of conditions and the following disclaimer in the
  2049  //    documentation and/or other materials provided with the distribution.
  2050  // 3. Neither the name of the University nor the names of its contributors
  2051  //    may be used to endorse or promote products derived from this software
  2052  //    without specific prior written permission.
  2053  //
  2054  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2055  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2056  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2057  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2058  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2059  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2060  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2061  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2062  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2063  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2064  // SUCH DAMAGE.
  2065  //
  2066  //	@(#)time.h	8.3 (Berkeley) 1/21/94
  2067  
  2068  // Frequency of the clock ticks reported by times().  Deprecated - use
  2069  // sysconf(_SC_CLK_TCK) instead.  (Removed in 1003.1-2001.)
  2070  
  2071  // Frequency of the clock ticks reported by clock().
  2072  
  2073  // New in POSIX 1003.1b-1993.
  2074  
  2075  // -
  2076  // SPDX-License-Identifier: BSD-3-Clause
  2077  //
  2078  // Copyright (c) 1982, 1986, 1993
  2079  //	The Regents of the University of California.  All rights reserved.
  2080  //
  2081  // Redistribution and use in source and binary forms, with or without
  2082  // modification, are permitted provided that the following conditions
  2083  // are met:
  2084  // 1. Redistributions of source code must retain the above copyright
  2085  //    notice, this list of conditions and the following disclaimer.
  2086  // 2. Redistributions in binary form must reproduce the above copyright
  2087  //    notice, this list of conditions and the following disclaimer in the
  2088  //    documentation and/or other materials provided with the distribution.
  2089  // 3. Neither the name of the University nor the names of its contributors
  2090  //    may be used to endorse or promote products derived from this software
  2091  //    without specific prior written permission.
  2092  //
  2093  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2094  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2095  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2096  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2097  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2098  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2099  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2100  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2101  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2102  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2103  // SUCH DAMAGE.
  2104  //
  2105  //	@(#)time.h	8.5 (Berkeley) 5/4/95
  2106  // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  2107  //	$FreeBSD$
  2108  
  2109  type Tm = struct {
  2110  	Ftm_sec    int32
  2111  	Ftm_min    int32
  2112  	Ftm_hour   int32
  2113  	Ftm_mday   int32
  2114  	Ftm_mon    int32
  2115  	Ftm_year   int32
  2116  	Ftm_wday   int32
  2117  	Ftm_yday   int32
  2118  	Ftm_isdst  int32
  2119  	Ftm_gmtoff int32
  2120  	Ftm_zone   uintptr
  2121  } /* time.h:101:1 */
  2122  
  2123  // -
  2124  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  2125  //
  2126  // Copyright (c) 2011, 2012 The FreeBSD Foundation
  2127  //
  2128  // This software was developed by David Chisnall under sponsorship from
  2129  // the FreeBSD Foundation.
  2130  //
  2131  // Redistribution and use in source and binary forms, with or without
  2132  // modification, are permitted provided that the following conditions
  2133  // are met:
  2134  // 1. Redistributions of source code must retain the above copyright
  2135  //    notice, this list of conditions and the following disclaimer.
  2136  // 2. Redistributions in binary form must reproduce the above copyright
  2137  //    notice, this list of conditions and the following disclaimer in the
  2138  //    documentation and/or other materials provided with the distribution.
  2139  //
  2140  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  2141  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2142  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2143  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  2144  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2145  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2146  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2147  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2148  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2149  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2150  // SUCH DAMAGE.
  2151  //
  2152  // $FreeBSD$
  2153  
  2154  type Locale_t = uintptr /* _time.h:35:25 */
  2155  
  2156  type Stat = struct {
  2157  	Fst_dev      Dev_t
  2158  	Fst_ino      Ino_t
  2159  	Fst_nlink    Nlink_t
  2160  	Fst_mode     Mode_t
  2161  	Fst_padding0 X__int16_t
  2162  	Fst_uid      Uid_t
  2163  	Fst_gid      Gid_t
  2164  	Fst_padding1 X__int32_t
  2165  	Fst_rdev     Dev_t
  2166  	Fst_atim_ext X__int32_t
  2167  	Fst_atim     struct {
  2168  		Ftv_sec  Time_t
  2169  		Ftv_nsec int32
  2170  	}
  2171  	Fst_mtim_ext X__int32_t
  2172  	Fst_mtim     struct {
  2173  		Ftv_sec  Time_t
  2174  		Ftv_nsec int32
  2175  	}
  2176  	Fst_ctim_ext X__int32_t
  2177  	Fst_ctim     struct {
  2178  		Ftv_sec  Time_t
  2179  		Ftv_nsec int32
  2180  	}
  2181  	Fst_btim_ext X__int32_t
  2182  	Fst_birthtim struct {
  2183  		Ftv_sec  Time_t
  2184  		Ftv_nsec int32
  2185  	}
  2186  	Fst_size    Off_t
  2187  	Fst_blocks  Blkcnt_t
  2188  	Fst_blksize Blksize_t
  2189  	Fst_flags   Fflags_t
  2190  	Fst_gen     X__uint64_t
  2191  	Fst_spare   [10]X__uint64_t
  2192  } /* stat.h:160:1 */
  2193  
  2194  // -
  2195  // SPDX-License-Identifier: BSD-3-Clause
  2196  //
  2197  // Copyright (c) 1989, 1993
  2198  //	The Regents of the University of California.  All rights reserved.
  2199  //
  2200  // Redistribution and use in source and binary forms, with or without
  2201  // modification, are permitted provided that the following conditions
  2202  // are met:
  2203  // 1. Redistributions of source code must retain the above copyright
  2204  //    notice, this list of conditions and the following disclaimer.
  2205  // 2. Redistributions in binary form must reproduce the above copyright
  2206  //    notice, this list of conditions and the following disclaimer in the
  2207  //    documentation and/or other materials provided with the distribution.
  2208  // 3. Neither the name of the University nor the names of its contributors
  2209  //    may be used to endorse or promote products derived from this software
  2210  //    without specific prior written permission.
  2211  //
  2212  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2213  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2214  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2215  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2216  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2217  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2218  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2219  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2220  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2221  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2222  // SUCH DAMAGE.
  2223  //
  2224  //	@(#)fts.h	8.3 (Berkeley) 8/14/94
  2225  // $FreeBSD$
  2226  
  2227  // -
  2228  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  2229  //
  2230  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  2231  // All rights reserved.
  2232  //
  2233  // Redistribution and use in source and binary forms, with or without
  2234  // modification, are permitted provided that the following conditions
  2235  // are met:
  2236  // 1. Redistributions of source code must retain the above copyright
  2237  //    notice, this list of conditions and the following disclaimer.
  2238  // 2. Redistributions in binary form must reproduce the above copyright
  2239  //    notice, this list of conditions and the following disclaimer in the
  2240  //    documentation and/or other materials provided with the distribution.
  2241  //
  2242  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  2243  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2244  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2245  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  2246  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2247  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2248  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2249  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2250  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2251  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2252  // SUCH DAMAGE.
  2253  //
  2254  // $FreeBSD$
  2255  
  2256  type X_ftsent = struct {
  2257  	Ffts_cycle   uintptr
  2258  	Ffts_parent  uintptr
  2259  	Ffts_link    uintptr
  2260  	Ffts_number  int64
  2261  	Ffts_pointer uintptr
  2262  	Ffts_accpath uintptr
  2263  	Ffts_path    uintptr
  2264  	Ffts_errno   int32
  2265  	Ffts_symfd   int32
  2266  	Ffts_pathlen X__size_t
  2267  	Ffts_namelen X__size_t
  2268  	Ffts_ino     X__ino_t
  2269  	Ffts_dev     X__dev_t
  2270  	Ffts_nlink   X__nlink_t
  2271  	Ffts_level   int32
  2272  	Ffts_info    int32
  2273  	Ffts_flags   uint32
  2274  	Ffts_instr   int32
  2275  	Ffts_statp   uintptr
  2276  	Ffts_name    uintptr
  2277  	Ffts_fts     uintptr
  2278  } /* fts.h:41:2 */
  2279  
  2280  // -
  2281  // SPDX-License-Identifier: BSD-3-Clause
  2282  //
  2283  // Copyright (c) 1989, 1993
  2284  //	The Regents of the University of California.  All rights reserved.
  2285  //
  2286  // Redistribution and use in source and binary forms, with or without
  2287  // modification, are permitted provided that the following conditions
  2288  // are met:
  2289  // 1. Redistributions of source code must retain the above copyright
  2290  //    notice, this list of conditions and the following disclaimer.
  2291  // 2. Redistributions in binary form must reproduce the above copyright
  2292  //    notice, this list of conditions and the following disclaimer in the
  2293  //    documentation and/or other materials provided with the distribution.
  2294  // 3. Neither the name of the University nor the names of its contributors
  2295  //    may be used to endorse or promote products derived from this software
  2296  //    without specific prior written permission.
  2297  //
  2298  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2299  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2300  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2301  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2302  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2303  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2304  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2305  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2306  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2307  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2308  // SUCH DAMAGE.
  2309  //
  2310  //	@(#)fts.h	8.3 (Berkeley) 8/14/94
  2311  // $FreeBSD$
  2312  
  2313  // -
  2314  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  2315  //
  2316  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  2317  // All rights reserved.
  2318  //
  2319  // Redistribution and use in source and binary forms, with or without
  2320  // modification, are permitted provided that the following conditions
  2321  // are met:
  2322  // 1. Redistributions of source code must retain the above copyright
  2323  //    notice, this list of conditions and the following disclaimer.
  2324  // 2. Redistributions in binary form must reproduce the above copyright
  2325  //    notice, this list of conditions and the following disclaimer in the
  2326  //    documentation and/or other materials provided with the distribution.
  2327  //
  2328  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  2329  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2330  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2331  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  2332  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2333  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2334  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2335  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2336  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2337  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2338  // SUCH DAMAGE.
  2339  //
  2340  // $FreeBSD$
  2341  
  2342  type FTS = struct {
  2343  	Ffts_cur       uintptr
  2344  	Ffts_child     uintptr
  2345  	Ffts_array     uintptr
  2346  	Ffts_dev       X__dev_t
  2347  	Ffts_path      uintptr
  2348  	Ffts_rfd       int32
  2349  	Ffts_pathlen   X__size_t
  2350  	Ffts_nitems    X__size_t
  2351  	Ffts_compar    uintptr
  2352  	Ffts_options   int32
  2353  	Ffts_clientptr uintptr
  2354  } /* fts.h:66:3 */
  2355  
  2356  type FTSENT = X_ftsent /* fts.h:120:3 */
  2357  
  2358  var _ int8 /* gen.c:5:13: */