gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

fts_openbsd_arm64.go (58738B)


      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_openbsd_arm64.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:151:1:
     19 	ALLPERMS                 = 4095       // stat.h:153:1:
     20 	BIG_ENDIAN               = 4321       // endian.h:45:1:
     21 	BYTE_ORDER               = 1234       // endian.h:47:1:
     22 	CLK_TCK                  = 100        // time.h:68:1:
     23 	CLOCKS_PER_SEC           = 100        // time.h:71:1:
     24 	CLOCK_BOOTTIME           = 6          // _time.h:40:1:
     25 	CLOCK_MONOTONIC          = 3          // _time.h:37:1:
     26 	CLOCK_PROCESS_CPUTIME_ID = 2          // _time.h:36:1:
     27 	CLOCK_REALTIME           = 0          // _time.h:35:1:
     28 	CLOCK_THREAD_CPUTIME_ID  = 4          // _time.h:38:1:
     29 	CLOCK_UPTIME             = 5          // _time.h:39:1:
     30 	DEFFILEMODE              = 438        // stat.h:155:1:
     31 	DST_AUST                 = 2          // time.h:78:1:
     32 	DST_CAN                  = 6          // time.h:82:1:
     33 	DST_EET                  = 5          // time.h:81:1:
     34 	DST_MET                  = 4          // time.h:80:1:
     35 	DST_NONE                 = 0          // time.h:76:1:
     36 	DST_USA                  = 1          // time.h:77:1:
     37 	DST_WET                  = 3          // time.h:79:1:
     38 	FD_SETSIZE               = 1024       // select.h:62:1:
     39 	FTS_AGAIN                = 1          // fts.h:104:1:
     40 	FTS_COMFOLLOW            = 0x0001     // fts.h:49:1:
     41 	FTS_D                    = 1          // fts.h:85:1:
     42 	FTS_DC                   = 2          // fts.h:86:1:
     43 	FTS_DEFAULT              = 3          // fts.h:87:1:
     44 	FTS_DNR                  = 4          // fts.h:88:1:
     45 	FTS_DONTCHDIR            = 0x01       // fts.h:100:1:
     46 	FTS_DOT                  = 5          // fts.h:89:1:
     47 	FTS_DP                   = 6          // fts.h:90:1:
     48 	FTS_ERR                  = 7          // fts.h:91:1:
     49 	FTS_F                    = 8          // fts.h:92:1:
     50 	FTS_FOLLOW               = 2          // fts.h:105:1:
     51 	FTS_INIT                 = 9          // fts.h:93:1:
     52 	FTS_LOGICAL              = 0x0002     // fts.h:50:1:
     53 	FTS_MAXLEVEL             = 0x7fffffff // fts.h:82:1:
     54 	FTS_NAMEONLY             = 0x1000     // fts.h:58:1:
     55 	FTS_NOCHDIR              = 0x0004     // fts.h:51:1:
     56 	FTS_NOINSTR              = 3          // fts.h:106:1:
     57 	FTS_NOSTAT               = 0x0008     // fts.h:52:1:
     58 	FTS_NS                   = 10         // fts.h:94:1:
     59 	FTS_NSOK                 = 11         // fts.h:95:1:
     60 	FTS_OPTIONMASK           = 0x00ff     // fts.h:56:1:
     61 	FTS_PHYSICAL             = 0x0010     // fts.h:53:1:
     62 	FTS_ROOTLEVEL            = 0          // fts.h:81:1:
     63 	FTS_ROOTPARENTLEVEL      = -1         // fts.h:80:1:
     64 	FTS_SEEDOT               = 0x0020     // fts.h:54:1:
     65 	FTS_SKIP                 = 4          // fts.h:107:1:
     66 	FTS_SL                   = 12         // fts.h:96:1:
     67 	FTS_SLNONE               = 13         // fts.h:97:1:
     68 	FTS_STOP                 = 0x2000     // fts.h:59:1:
     69 	FTS_SYMFOLLOW            = 0x02       // fts.h:101:1:
     70 	FTS_XDEV                 = 0x0040     // fts.h:55:1:
     71 	ITIMER_PROF              = 2          // time.h:146:1:
     72 	ITIMER_REAL              = 0          // time.h:144:1:
     73 	ITIMER_VIRTUAL           = 1          // time.h:145:1:
     74 	LITTLE_ENDIAN            = 1234       // endian.h:44:1:
     75 	NBBY                     = 8          // select.h:111:1:
     76 	PDP_ENDIAN               = 3412       // endian.h:46:1:
     77 	SF_APPEND                = 0x00040000 // stat.h:175:1:
     78 	SF_ARCHIVED              = 0x00010000 // stat.h:173:1:
     79 	SF_IMMUTABLE             = 0x00020000 // stat.h:174:1:
     80 	SF_SETTABLE              = 0xffff0000 // stat.h:172:1:
     81 	S_BLKSIZE                = 512        // stat.h:157:1:
     82 	S_IEXEC                  = 64         // stat.h:108:1:
     83 	S_IFBLK                  = 0060000    // stat.h:126:1:
     84 	S_IFCHR                  = 0020000    // stat.h:124:1:
     85 	S_IFDIR                  = 0040000    // stat.h:125:1:
     86 	S_IFIFO                  = 0010000    // stat.h:123:1:
     87 	S_IFLNK                  = 0120000    // stat.h:128:1:
     88 	S_IFMT                   = 0170000    // stat.h:122:1:
     89 	S_IFREG                  = 0100000    // stat.h:127:1:
     90 	S_IFSOCK                 = 0140000    // stat.h:129:1:
     91 	S_IREAD                  = 256        // stat.h:106:1:
     92 	S_IRGRP                  = 0000040    // stat.h:112:1:
     93 	S_IROTH                  = 0000004    // stat.h:117:1:
     94 	S_IRUSR                  = 0000400    // stat.h:101:1:
     95 	S_IRWXG                  = 0000070    // stat.h:111:1:
     96 	S_IRWXO                  = 0000007    // stat.h:116:1:
     97 	S_IRWXU                  = 0000700    // stat.h:100:1:
     98 	S_ISGID                  = 0002000    // stat.h:95:1:
     99 	S_ISTXT                  = 0001000    // stat.h:97:1:
    100 	S_ISUID                  = 0004000    // stat.h:94:1:
    101 	S_ISVTX                  = 0001000    // stat.h:130:1:
    102 	S_IWGRP                  = 0000020    // stat.h:113:1:
    103 	S_IWOTH                  = 0000002    // stat.h:118:1:
    104 	S_IWRITE                 = 128        // stat.h:107:1:
    105 	S_IWUSR                  = 0000200    // stat.h:102:1:
    106 	S_IXGRP                  = 0000010    // stat.h:114:1:
    107 	S_IXOTH                  = 0000001    // stat.h:119:1:
    108 	S_IXUSR                  = 0000100    // stat.h:103:1:
    109 	TIMER_ABSTIME            = 0x1        // _time.h:62:1:
    110 	TIMER_RELTIME            = 0x0        // _time.h:61:1:
    111 	TIME_UTC                 = 1          // time.h:179:1:
    112 	UF_APPEND                = 0x00000004 // stat.h:167:1:
    113 	UF_IMMUTABLE             = 0x00000002 // stat.h:166:1:
    114 	UF_NODUMP                = 0x00000001 // stat.h:165:1:
    115 	UF_OPAQUE                = 0x00000008 // stat.h:168:1:
    116 	UF_SETTABLE              = 0x0000ffff // stat.h:164:1:
    117 	UTIME_NOW                = -2         // stat.h:188:1:
    118 	UTIME_OMIT               = -1         // stat.h:189:1:
    119 	X_BIG_ENDIAN             = 4321       // _endian.h:43:1:
    120 	X_BYTE_ORDER             = 1234       // endian.h:60:1:
    121 	X_CLOCKID_T_DEFINED_     = 0          // types.h:162:1:
    122 	X_CLOCK_T_DEFINED_       = 0          // types.h:157:1:
    123 	X_FILE_OFFSET_BITS       = 64         // <builtin>:25:1:
    124 	X_FTS_H_                 = 0          // fts.h:36:1:
    125 	X_INT16_T_DEFINED_       = 0          // types.h:84:1:
    126 	X_INT32_T_DEFINED_       = 0          // types.h:94:1:
    127 	X_INT64_T_DEFINED_       = 0          // types.h:104:1:
    128 	X_INT8_T_DEFINED_        = 0          // types.h:74:1:
    129 	X_LITTLE_ENDIAN          = 1234       // _endian.h:42:1:
    130 	X_LOCALE_T_DEFINED_      = 0          // time.h:106:1:
    131 	X_LP64                   = 1          // <predefined>:1:1:
    132 	X_MACHINE_CDEFS_H_       = 0          // cdefs.h:4:1:
    133 	X_MACHINE_ENDIAN_H_      = 0          // endian.h:20:1:
    134 	X_MACHINE__TYPES_H_      = 0          // _types.h:35:1:
    135 	X_MAX_PAGE_SHIFT         = 12         // _types.h:57:1:
    136 	X_OFF_T_DEFINED_         = 0          // types.h:192:1:
    137 	X_PDP_ENDIAN             = 3412       // _endian.h:44:1:
    138 	X_PID_T_DEFINED_         = 0          // types.h:167:1:
    139 	X_QUAD_HIGHWORD          = 1          // _endian.h:95:1:
    140 	X_QUAD_LOWWORD           = 0          // _endian.h:96:1:
    141 	X_RET_PROTECTOR          = 1          // <predefined>:2:1:
    142 	X_SELECT_DEFINED_        = 0          // select.h:126:1:
    143 	X_SIGSET_T_DEFINED_      = 0          // select.h:121:1:
    144 	X_SIZE_T_DEFINED_        = 0          // types.h:172:1:
    145 	X_SSIZE_T_DEFINED_       = 0          // types.h:177:1:
    146 	X_STACKALIGNBYTES        = 15         // _types.h:54:1:
    147 	X_SYS_CDEFS_H_           = 0          // cdefs.h:39:1:
    148 	X_SYS_ENDIAN_H_          = 0          // endian.h:38:1:
    149 	X_SYS_SELECT_H_          = 0          // select.h:35:1:
    150 	X_SYS_STAT_H_            = 0          // stat.h:41:1:
    151 	X_SYS_TIME_H_            = 0          // time.h:36:1:
    152 	X_SYS_TYPES_H_           = 0          // types.h:41:1:
    153 	X_SYS__ENDIAN_H_         = 0          // _endian.h:34:1:
    154 	X_SYS__TIME_H_           = 0          // _time.h:33:1:
    155 	X_SYS__TYPES_H_          = 0          // _types.h:35:1:
    156 	X_TIMER_T_DEFINED_       = 0          // types.h:187:1:
    157 	X_TIMESPEC_DECLARED      = 0          // select.h:48:1:
    158 	X_TIMEVAL_DECLARED       = 0          // select.h:40:1:
    159 	X_TIME_H_                = 0          // time.h:42:1:
    160 	X_TIME_T_DEFINED_        = 0          // types.h:182:1:
    161 	X_UINT16_T_DEFINED_      = 0          // types.h:89:1:
    162 	X_UINT32_T_DEFINED_      = 0          // types.h:99:1:
    163 	X_UINT64_T_DEFINED_      = 0          // types.h:109:1:
    164 	X_UINT8_T_DEFINED_       = 0          // types.h:79:1:
    165 	Unix                     = 1          // <predefined>:360:1:
    166 )
    167 
    168 type Ptrdiff_t = int64 /* <builtin>:3:26 */
    169 
    170 type Size_t = uint64 /* <builtin>:9:23 */
    171 
    172 type Wchar_t = int32 /* <builtin>:15:24 */
    173 
    174 type X__int128_t = struct {
    175 	Flo int64
    176 	Fhi int64
    177 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    178 type X__uint128_t = struct {
    179 	Flo uint64
    180 	Fhi uint64
    181 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    182 
    183 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    184 type X__float128 = float64        /* <builtin>:47:21 */
    185 
    186 //	$OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
    187 //	$NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
    188 
    189 // -
    190 // Copyright (c) 1982, 1986, 1991, 1993
    191 //	The Regents of the University of California.  All rights reserved.
    192 // (c) UNIX System Laboratories, Inc.
    193 // All or some portions of this file are derived from material licensed
    194 // to the University of California by American Telephone and Telegraph
    195 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    196 // the permission of UNIX System Laboratories, Inc.
    197 //
    198 // Redistribution and use in source and binary forms, with or without
    199 // modification, are permitted provided that the following conditions
    200 // are met:
    201 // 1. Redistributions of source code must retain the above copyright
    202 //    notice, this list of conditions and the following disclaimer.
    203 // 2. Redistributions in binary form must reproduce the above copyright
    204 //    notice, this list of conditions and the following disclaimer in the
    205 //    documentation and/or other materials provided with the distribution.
    206 // 3. Neither the name of the University nor the names of its contributors
    207 //    may be used to endorse or promote products derived from this software
    208 //    without specific prior written permission.
    209 //
    210 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    211 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    212 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    213 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    214 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    215 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    216 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    217 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    218 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    219 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    220 // SUCH DAMAGE.
    221 //
    222 //	@(#)types.h	8.4 (Berkeley) 1/21/94
    223 
    224 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
    225 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
    226 
    227 // Copyright (c) 1991, 1993
    228 //	The Regents of the University of California.  All rights reserved.
    229 //
    230 // This code is derived from software contributed to Berkeley by
    231 // Berkeley Software Design, Inc.
    232 //
    233 // Redistribution and use in source and binary forms, with or without
    234 // modification, are permitted provided that the following conditions
    235 // are met:
    236 // 1. Redistributions of source code must retain the above copyright
    237 //    notice, this list of conditions and the following disclaimer.
    238 // 2. Redistributions in binary form must reproduce the above copyright
    239 //    notice, this list of conditions and the following disclaimer in the
    240 //    documentation and/or other materials provided with the distribution.
    241 // 3. Neither the name of the University nor the names of its contributors
    242 //    may be used to endorse or promote products derived from this software
    243 //    without specific prior written permission.
    244 //
    245 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    246 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    247 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    248 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    249 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    250 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    251 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    252 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    253 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    254 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    255 // SUCH DAMAGE.
    256 //
    257 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
    258 
    259 //	$OpenBSD: cdefs.h,v 1.1 2016/12/17 23:38:33 patrick Exp $
    260 
    261 // Macro to test if we're using a specific version of gcc or later.
    262 
    263 // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
    264 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
    265 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
    266 // in between its arguments.  Do not use __CONCAT on double-quoted strings,
    267 // such as those from the __STRING macro: to concatenate strings just put
    268 // them next to each other.
    269 
    270 // GCC1 and some versions of GCC2 declare dead (non-returning) and
    271 // pure (no side effects) functions using "volatile" and "const";
    272 // unfortunately, these then cause warnings under "-ansi -pedantic".
    273 // GCC >= 2.5 uses the __attribute__((attrs)) style.  All of these
    274 // work for GNU C++ (modulo a slight glitch in the C++ grammar in
    275 // the distribution version of 2.5.5).
    276 
    277 // __returns_twice makes the compiler not assume the function
    278 // only returns once.  This affects registerisation of variables:
    279 // even local variables need to be in memory across such a call.
    280 // Example: setjmp()
    281 
    282 // __only_inline makes the compiler only use this function definition
    283 // for inlining; references that can't be inlined will be left as
    284 // external references instead of generating a local copy.  The
    285 // matching library should include a simple extern definition for
    286 // the function to handle those references.  c.f. ctype.h
    287 
    288 // GNU C version 2.96 adds explicit branch prediction so that
    289 // the CPU back-end can hint the processor and also so that
    290 // code blocks can be reordered such that the predicted path
    291 // sees a more linear flow, thus improving cache behavior, etc.
    292 //
    293 // The following two macros provide us with a way to utilize this
    294 // compiler feature.  Use __predict_true() if you expect the expression
    295 // to evaluate to true, and __predict_false() if you expect the
    296 // expression to evaluate to false.
    297 //
    298 // A few notes about usage:
    299 //
    300 //	* Generally, __predict_false() error condition checks (unless
    301 //	  you have some _strong_ reason to do otherwise, in which case
    302 //	  document it), and/or __predict_true() `no-error' condition
    303 //	  checks, assuming you want to optimize for the no-error case.
    304 //
    305 //	* Other than that, if you don't know the likelihood of a test
    306 //	  succeeding from empirical or other `hard' evidence, don't
    307 //	  make predictions.
    308 //
    309 //	* These are meant to be used in places that are run `a lot'.
    310 //	  It is wasteful to make predictions in code that is run
    311 //	  seldomly (e.g. at subsystem initialization time) as the
    312 //	  basic block reordering that this affects can often generate
    313 //	  larger code.
    314 
    315 // Delete pseudo-keywords wherever they are not available or needed.
    316 
    317 // The __packed macro indicates that a variable or structure members
    318 // should have the smallest possible alignment, despite any host CPU
    319 // alignment requirements.
    320 //
    321 // The __aligned(x) macro specifies the minimum alignment of a
    322 // variable or structure.
    323 //
    324 // These macros together are useful for describing the layout and
    325 // alignment of messages exchanged with hardware or other systems.
    326 
    327 // "The nice thing about standards is that there are so many to choose from."
    328 // There are a number of "feature test macros" specified by (different)
    329 // standards that determine which interfaces and types the header files
    330 // should expose.
    331 //
    332 // Because of inconsistencies in these macros, we define our own
    333 // set in the private name space that end in _VISIBLE.  These are
    334 // always defined and so headers can test their values easily.
    335 // Things can get tricky when multiple feature macros are defined.
    336 // We try to take the union of all the features requested.
    337 //
    338 // The following macros are guaranteed to have a value after cdefs.h
    339 // has been included:
    340 //	__POSIX_VISIBLE
    341 //	__XPG_VISIBLE
    342 //	__ISO_C_VISIBLE
    343 //	__BSD_VISIBLE
    344 
    345 // X/Open Portability Guides and Single Unix Specifications.
    346 // _XOPEN_SOURCE				XPG3
    347 // _XOPEN_SOURCE && _XOPEN_VERSION = 4		XPG4
    348 // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1	XPG4v2
    349 // _XOPEN_SOURCE == 500				XPG5
    350 // _XOPEN_SOURCE == 520				XPG5v2
    351 // _XOPEN_SOURCE == 600				POSIX 1003.1-2001 with XSI
    352 // _XOPEN_SOURCE == 700				POSIX 1003.1-2008 with XSI
    353 //
    354 // The XPG spec implies a specific value for _POSIX_C_SOURCE.
    355 
    356 // POSIX macros, these checks must follow the XOPEN ones above.
    357 //
    358 // _POSIX_SOURCE == 1		1003.1-1988 (superseded by _POSIX_C_SOURCE)
    359 // _POSIX_C_SOURCE == 1		1003.1-1990
    360 // _POSIX_C_SOURCE == 2		1003.2-1992
    361 // _POSIX_C_SOURCE == 199309L	1003.1b-1993
    362 // _POSIX_C_SOURCE == 199506L   1003.1c-1995, 1003.1i-1995,
    363 //				and the omnibus ISO/IEC 9945-1:1996
    364 // _POSIX_C_SOURCE == 200112L   1003.1-2001
    365 // _POSIX_C_SOURCE == 200809L   1003.1-2008
    366 //
    367 // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
    368 // this may be overridden by the _ISOC99_SOURCE macro later.
    369 
    370 // _ANSI_SOURCE means to expose ANSI C89 interfaces only.
    371 // If the user defines it in addition to one of the POSIX or XOPEN
    372 // macros, assume the POSIX/XOPEN macro(s) should take precedence.
    373 
    374 // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
    375 // override any of the other macros since they are non-exclusive.
    376 
    377 // Finally deal with BSD-specific interfaces that are not covered
    378 // by any standards.  We expose these when none of the POSIX or XPG
    379 // macros is defined or if the user explicitly asks for them.
    380 
    381 // Default values.
    382 
    383 //	$OpenBSD: endian.h,v 1.25 2014/12/21 04:49:00 guenther Exp $
    384 
    385 // -
    386 // Copyright (c) 1997 Niklas Hallqvist.  All rights reserved.
    387 //
    388 // Redistribution and use in source and binary forms, with or without
    389 // modification, are permitted provided that the following conditions
    390 // are met:
    391 // 1. Redistributions of source code must retain the above copyright
    392 //    notice, this list of conditions and the following disclaimer.
    393 // 2. Redistributions in binary form must reproduce the above copyright
    394 //    notice, this list of conditions and the following disclaimer in the
    395 //    documentation and/or other materials provided with the distribution.
    396 //
    397 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    398 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    399 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    400 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    401 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    402 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    403 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    404 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    405 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    406 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    407 
    408 // Public definitions for little- and big-endian systems.
    409 // This file should be included as <endian.h> in userspace and as
    410 // <sys/endian.h> in the kernel.
    411 //
    412 // System headers that need endian information but that can't or don't
    413 // want to export the public names here should include <sys/_endian.h>
    414 // and use the internal names: _BYTE_ORDER, _*_ENDIAN, etc.
    415 
    416 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
    417 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
    418 
    419 // Copyright (c) 1991, 1993
    420 //	The Regents of the University of California.  All rights reserved.
    421 //
    422 // This code is derived from software contributed to Berkeley by
    423 // Berkeley Software Design, Inc.
    424 //
    425 // Redistribution and use in source and binary forms, with or without
    426 // modification, are permitted provided that the following conditions
    427 // are met:
    428 // 1. Redistributions of source code must retain the above copyright
    429 //    notice, this list of conditions and the following disclaimer.
    430 // 2. Redistributions in binary form must reproduce the above copyright
    431 //    notice, this list of conditions and the following disclaimer in the
    432 //    documentation and/or other materials provided with the distribution.
    433 // 3. Neither the name of the University nor the names of its contributors
    434 //    may be used to endorse or promote products derived from this software
    435 //    without specific prior written permission.
    436 //
    437 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    438 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    439 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    440 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    441 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    442 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    443 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    444 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    445 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    446 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    447 // SUCH DAMAGE.
    448 //
    449 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
    450 
    451 //	$OpenBSD: _endian.h,v 1.8 2018/01/11 23:13:37 dlg Exp $
    452 
    453 // -
    454 // Copyright (c) 1997 Niklas Hallqvist.  All rights reserved.
    455 //
    456 // Redistribution and use in source and binary forms, with or without
    457 // modification, are permitted provided that the following conditions
    458 // are met:
    459 // 1. Redistributions of source code must retain the above copyright
    460 //    notice, this list of conditions and the following disclaimer.
    461 // 2. Redistributions in binary form must reproduce the above copyright
    462 //    notice, this list of conditions and the following disclaimer in the
    463 //    documentation and/or other materials provided with the distribution.
    464 //
    465 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    466 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    467 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    468 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    469 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    470 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    471 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    472 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    473 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    474 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    475 
    476 // Internal endianness macros.  This pulls in <machine/endian.h> to
    477 // get the correct setting direction for the platform and sets internal
    478 // ('__' prefix) macros appropriately.
    479 
    480 //	$OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $
    481 
    482 // -
    483 // Copyright (c) 1990, 1993
    484 //	The Regents of the University of California.  All rights reserved.
    485 //
    486 // Redistribution and use in source and binary forms, with or without
    487 // modification, are permitted provided that the following conditions
    488 // are met:
    489 // 1. Redistributions of source code must retain the above copyright
    490 //    notice, this list of conditions and the following disclaimer.
    491 // 2. Redistributions in binary form must reproduce the above copyright
    492 //    notice, this list of conditions and the following disclaimer in the
    493 //    documentation and/or other materials provided with the distribution.
    494 // 3. Neither the name of the University nor the names of its contributors
    495 //    may be used to endorse or promote products derived from this software
    496 //    without specific prior written permission.
    497 //
    498 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    499 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    500 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    501 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    502 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    503 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    504 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    505 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    506 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    507 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    508 // SUCH DAMAGE.
    509 //
    510 //	@(#)types.h	8.3 (Berkeley) 1/5/94
    511 
    512 // $OpenBSD: _types.h,v 1.4 2018/03/05 01:15:25 deraadt Exp $
    513 // -
    514 // Copyright (c) 1990, 1993
    515 //	The Regents of the University of California.  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 //	@(#)types.h	8.3 (Berkeley) 1/5/94
    542 //	@(#)ansi.h	8.2 (Berkeley) 1/4/94
    543 
    544 // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
    545 // value for all data types (int, long, ...).   The result is an
    546 // unsigned long and must be cast to any desired pointer type.
    547 //
    548 // _ALIGNED_POINTER is a boolean macro that checks whether an address
    549 // is valid to fetch data elements of type t from on this architecture.
    550 // This does not reflect the optimal alignment, just the possibility
    551 // (within reasonable limits).
    552 
    553 // 7.18.1.1 Exact-width integer types
    554 type X__int8_t = int8     /* _types.h:60:22 */
    555 type X__uint8_t = uint8   /* _types.h:61:24 */
    556 type X__int16_t = int16   /* _types.h:62:17 */
    557 type X__uint16_t = uint16 /* _types.h:63:25 */
    558 type X__int32_t = int32   /* _types.h:64:15 */
    559 type X__uint32_t = uint32 /* _types.h:65:23 */
    560 // LONGLONG
    561 type X__int64_t = int64 /* _types.h:67:20 */
    562 // LONGLONG
    563 type X__uint64_t = uint64 /* _types.h:69:28 */
    564 
    565 // 7.18.1.2 Minimum-width integer types
    566 type X__int_least8_t = X__int8_t     /* _types.h:72:19 */
    567 type X__uint_least8_t = X__uint8_t   /* _types.h:73:20 */
    568 type X__int_least16_t = X__int16_t   /* _types.h:74:20 */
    569 type X__uint_least16_t = X__uint16_t /* _types.h:75:21 */
    570 type X__int_least32_t = X__int32_t   /* _types.h:76:20 */
    571 type X__uint_least32_t = X__uint32_t /* _types.h:77:21 */
    572 type X__int_least64_t = X__int64_t   /* _types.h:78:20 */
    573 type X__uint_least64_t = X__uint64_t /* _types.h:79:21 */
    574 
    575 // 7.18.1.3 Fastest minimum-width integer types
    576 type X__int_fast8_t = X__int32_t    /* _types.h:82:20 */
    577 type X__uint_fast8_t = X__uint32_t  /* _types.h:83:21 */
    578 type X__int_fast16_t = X__int32_t   /* _types.h:84:20 */
    579 type X__uint_fast16_t = X__uint32_t /* _types.h:85:21 */
    580 type X__int_fast32_t = X__int32_t   /* _types.h:86:20 */
    581 type X__uint_fast32_t = X__uint32_t /* _types.h:87:21 */
    582 type X__int_fast64_t = X__int64_t   /* _types.h:88:20 */
    583 type X__uint_fast64_t = X__uint64_t /* _types.h:89:21 */
    584 
    585 // 7.18.1.4 Integer types capable of holding object pointers
    586 type X__intptr_t = int64   /* _types.h:104:16 */
    587 type X__uintptr_t = uint64 /* _types.h:105:24 */
    588 
    589 // 7.18.1.5 Greatest-width integer types
    590 type X__intmax_t = X__int64_t   /* _types.h:108:20 */
    591 type X__uintmax_t = X__uint64_t /* _types.h:109:21 */
    592 
    593 // Register size
    594 type X__register_t = int64 /* _types.h:112:16 */
    595 
    596 // VM system types
    597 type X__vaddr_t = uint64 /* _types.h:115:24 */
    598 type X__paddr_t = uint64 /* _types.h:116:24 */
    599 type X__vsize_t = uint64 /* _types.h:117:24 */
    600 type X__psize_t = uint64 /* _types.h:118:24 */
    601 
    602 // Standard system types
    603 type X__double_t = float64           /* _types.h:121:18 */
    604 type X__float_t = float32            /* _types.h:122:17 */
    605 type X__ptrdiff_t = int64            /* _types.h:123:16 */
    606 type X__size_t = uint64              /* _types.h:124:24 */
    607 type X__ssize_t = int64              /* _types.h:125:16 */
    608 type X__va_list = X__builtin_va_list /* _types.h:127:27 */
    609 
    610 // Wide character support types
    611 type X__wchar_t = int32     /* _types.h:137:15 */
    612 type X__wint_t = int32      /* _types.h:140:15 */
    613 type X__rune_t = int32      /* _types.h:141:15 */
    614 type X__wctrans_t = uintptr /* _types.h:142:14 */
    615 type X__wctype_t = uintptr  /* _types.h:143:14 */
    616 
    617 type X__blkcnt_t = X__int64_t    /* _types.h:39:19 */ // blocks allocated for file
    618 type X__blksize_t = X__int32_t   /* _types.h:40:19 */ // optimal blocksize for I/O
    619 type X__clock_t = X__int64_t     /* _types.h:41:19 */ // ticks in CLOCKS_PER_SEC
    620 type X__clockid_t = X__int32_t   /* _types.h:42:19 */ // CLOCK_* identifiers
    621 type X__cpuid_t = uint64         /* _types.h:43:23 */ // CPU id
    622 type X__dev_t = X__int32_t       /* _types.h:44:19 */ // device number
    623 type X__fixpt_t = X__uint32_t    /* _types.h:45:20 */ // fixed point number
    624 type X__fsblkcnt_t = X__uint64_t /* _types.h:46:20 */ // file system block count
    625 type X__fsfilcnt_t = X__uint64_t /* _types.h:47:20 */ // file system file count
    626 type X__gid_t = X__uint32_t      /* _types.h:48:20 */ // group id
    627 type X__id_t = X__uint32_t       /* _types.h:49:20 */ // may contain pid, uid or gid
    628 type X__in_addr_t = X__uint32_t  /* _types.h:50:20 */ // base type for internet address
    629 type X__in_port_t = X__uint16_t  /* _types.h:51:20 */ // IP port type
    630 type X__ino_t = X__uint64_t      /* _types.h:52:20 */ // inode number
    631 type X__key_t = int64            /* _types.h:53:15 */ // IPC key (for Sys V IPC)
    632 type X__mode_t = X__uint32_t     /* _types.h:54:20 */ // permissions
    633 type X__nlink_t = X__uint32_t    /* _types.h:55:20 */ // link count
    634 type X__off_t = X__int64_t       /* _types.h:56:19 */ // file offset or size
    635 type X__pid_t = X__int32_t       /* _types.h:57:19 */ // process id
    636 type X__rlim_t = X__uint64_t     /* _types.h:58:20 */ // resource limit
    637 type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type
    638 type X__segsz_t = X__int32_t     /* _types.h:60:19 */ // segment size
    639 type X__socklen_t = X__uint32_t  /* _types.h:61:20 */ // length type for network syscalls
    640 type X__suseconds_t = int64      /* _types.h:62:15 */ // microseconds (signed)
    641 type X__time_t = X__int64_t      /* _types.h:63:19 */ // epoch time
    642 type X__timer_t = X__int32_t     /* _types.h:64:19 */ // POSIX timer identifiers
    643 type X__uid_t = X__uint32_t      /* _types.h:65:20 */ // user id
    644 type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds
    645 
    646 // mbstate_t is an opaque object to keep conversion state, during multibyte
    647 // stream conversions. The content must not be referenced by user programs.
    648 type X__mbstate_t = struct {
    649 	F__ccgo_pad1 [0]uint64
    650 	F__mbstate8  [128]int8
    651 } /* _types.h:75:3 */
    652 
    653 // Tell sys/endian.h we have MD variants of the swap macros.
    654 
    655 // Note that these macros evaluate their arguments several times.
    656 
    657 // Public names
    658 
    659 // These are specified to be function-like macros to match the spec
    660 
    661 // POSIX names
    662 
    663 // original BSD names
    664 
    665 // these were exposed here before
    666 
    667 // ancient stuff
    668 
    669 type U_char = uint8   /* types.h:51:23 */
    670 type U_short = uint16 /* types.h:52:24 */
    671 type U_int = uint32   /* types.h:53:22 */
    672 type U_long = uint64  /* types.h:54:23 */
    673 
    674 type Unchar = uint8  /* types.h:56:23 */ // Sys V compatibility
    675 type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility
    676 type Uint = uint32   /* types.h:58:22 */ // Sys V compatibility
    677 type Ulong = uint64  /* types.h:59:23 */ // Sys V compatibility
    678 
    679 type Cpuid_t = X__cpuid_t       /* types.h:61:19 */ // CPU id
    680 type Register_t = X__register_t /* types.h:62:22 */ // register-sized type
    681 
    682 // XXX The exact-width bit types should only be exposed if __BSD_VISIBLE
    683 //     but the rest of the includes are not ready for that yet.
    684 
    685 type Int8_t = X__int8_t /* types.h:75:19 */
    686 
    687 type Uint8_t = X__uint8_t /* types.h:80:20 */
    688 
    689 type Int16_t = X__int16_t /* types.h:85:20 */
    690 
    691 type Uint16_t = X__uint16_t /* types.h:90:21 */
    692 
    693 type Int32_t = X__int32_t /* types.h:95:20 */
    694 
    695 type Uint32_t = X__uint32_t /* types.h:100:21 */
    696 
    697 type Int64_t = X__int64_t /* types.h:105:20 */
    698 
    699 type Uint64_t = X__uint64_t /* types.h:110:21 */
    700 
    701 // BSD-style unsigned bits types
    702 type U_int8_t = X__uint8_t   /* types.h:114:19 */
    703 type U_int16_t = X__uint16_t /* types.h:115:20 */
    704 type U_int32_t = X__uint32_t /* types.h:116:20 */
    705 type U_int64_t = X__uint64_t /* types.h:117:20 */
    706 
    707 // quads, deprecated in favor of 64 bit int types
    708 type Quad_t = X__int64_t    /* types.h:120:19 */
    709 type U_quad_t = X__uint64_t /* types.h:121:20 */
    710 
    711 // VM system types
    712 type Vaddr_t = X__vaddr_t /* types.h:125:19 */
    713 type Paddr_t = X__paddr_t /* types.h:126:19 */
    714 type Vsize_t = X__vsize_t /* types.h:127:19 */
    715 type Psize_t = X__psize_t /* types.h:128:19 */
    716 
    717 // Standard system types
    718 type Blkcnt_t = X__blkcnt_t       /* types.h:132:20 */ // blocks allocated for file
    719 type Blksize_t = X__blksize_t     /* types.h:133:21 */ // optimal blocksize for I/O
    720 type Caddr_t = uintptr            /* types.h:134:14 */ // core address
    721 type Daddr32_t = X__int32_t       /* types.h:135:19 */ // 32-bit disk address
    722 type Daddr_t = X__int64_t         /* types.h:136:19 */ // 64-bit disk address
    723 type Dev_t = X__dev_t             /* types.h:137:18 */ // device number
    724 type Fixpt_t = X__fixpt_t         /* types.h:138:19 */ // fixed point number
    725 type Gid_t = X__gid_t             /* types.h:139:18 */ // group id
    726 type Id_t = X__id_t               /* types.h:140:17 */ // may contain pid, uid or gid
    727 type Ino_t = X__ino_t             /* types.h:141:18 */ // inode number
    728 type Key_t = X__key_t             /* types.h:142:18 */ // IPC key (for Sys V IPC)
    729 type Mode_t = X__mode_t           /* types.h:143:18 */ // permissions
    730 type Nlink_t = X__nlink_t         /* types.h:144:19 */ // link count
    731 type Rlim_t = X__rlim_t           /* types.h:145:18 */ // resource limit
    732 type Segsz_t = X__segsz_t         /* types.h:146:19 */ // segment size
    733 type Uid_t = X__uid_t             /* types.h:147:18 */ // user id
    734 type Useconds_t = X__useconds_t   /* types.h:148:22 */ // microseconds
    735 type Suseconds_t = X__suseconds_t /* types.h:149:23 */ // microseconds (signed)
    736 type Fsblkcnt_t = X__fsblkcnt_t   /* types.h:150:22 */ // file system block count
    737 type Fsfilcnt_t = X__fsfilcnt_t   /* types.h:151:22 */ // file system file count
    738 
    739 // The following types may be defined in multiple header files.
    740 type Clock_t = X__clock_t /* types.h:158:19 */
    741 
    742 type Clockid_t = X__clockid_t /* types.h:163:21 */
    743 
    744 type Pid_t = X__pid_t /* types.h:168:18 */
    745 
    746 type Ssize_t = X__ssize_t /* types.h:178:19 */
    747 
    748 type Time_t = X__time_t /* types.h:183:18 */
    749 
    750 type Timer_t = X__timer_t /* types.h:188:19 */
    751 
    752 type Off_t = X__off_t /* types.h:193:18 */
    753 
    754 // Major, minor numbers, dev_t's.
    755 
    756 //	$OpenBSD: stat.h,v 1.29 2022/01/11 23:59:55 jsg Exp $
    757 //	$NetBSD: stat.h,v 1.20 1996/05/16 22:17:49 cgd Exp $
    758 
    759 // -
    760 // Copyright (c) 1982, 1986, 1989, 1993
    761 //	The Regents of the University of California.  All rights reserved.
    762 // (c) UNIX System Laboratories, Inc.
    763 // All or some portions of this file are derived from material licensed
    764 // to the University of California by American Telephone and Telegraph
    765 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    766 // the permission of UNIX System Laboratories, Inc.
    767 //
    768 // Redistribution and use in source and binary forms, with or without
    769 // modification, are permitted provided that the following conditions
    770 // are met:
    771 // 1. Redistributions of source code must retain the above copyright
    772 //    notice, this list of conditions and the following disclaimer.
    773 // 2. Redistributions in binary form must reproduce the above copyright
    774 //    notice, this list of conditions and the following disclaimer in the
    775 //    documentation and/or other materials provided with the distribution.
    776 // 3. Neither the name of the University nor the names of its contributors
    777 //    may be used to endorse or promote products derived from this software
    778 //    without specific prior written permission.
    779 //
    780 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    781 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    782 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    783 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    784 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    785 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    786 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    787 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    788 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    789 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    790 // SUCH DAMAGE.
    791 //
    792 //	@(#)stat.h	8.9 (Berkeley) 8/17/94
    793 
    794 //	$OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $
    795 //	$NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $
    796 
    797 // Copyright (c) 1982, 1986, 1993
    798 //	The Regents of the University of California.  All rights reserved.
    799 //
    800 // Redistribution and use in source and binary forms, with or without
    801 // modification, are permitted provided that the following conditions
    802 // are met:
    803 // 1. Redistributions of source code must retain the above copyright
    804 //    notice, this list of conditions and the following disclaimer.
    805 // 2. Redistributions in binary form must reproduce the above copyright
    806 //    notice, this list of conditions and the following disclaimer in the
    807 //    documentation and/or other materials provided with the distribution.
    808 // 3. Neither the name of the University nor the names of its contributors
    809 //    may be used to endorse or promote products derived from this software
    810 //    without specific prior written permission.
    811 //
    812 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    813 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    814 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    815 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    816 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    817 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    818 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    819 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    820 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    821 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    822 // SUCH DAMAGE.
    823 //
    824 //	@(#)time.h	8.2 (Berkeley) 7/10/94
    825 
    826 //	$OpenBSD: select.h,v 1.17 2016/09/12 19:41:20 guenther Exp $
    827 
    828 // -
    829 // Copyright (c) 1992, 1993
    830 //	The Regents of the University of California.  All rights reserved.
    831 //
    832 // Redistribution and use in source and binary forms, with or without
    833 // modification, are permitted provided that the following conditions
    834 // are met:
    835 // 1. Redistributions of source code must retain the above copyright
    836 //    notice, this list of conditions and the following disclaimer.
    837 // 2. Redistributions in binary form must reproduce the above copyright
    838 //    notice, this list of conditions and the following disclaimer in the
    839 //    documentation and/or other materials provided with the distribution.
    840 // 3. Neither the name of the University nor the names of its contributors
    841 //    may be used to endorse or promote products derived from this software
    842 //    without specific prior written permission.
    843 //
    844 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    845 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    846 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    847 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    848 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    849 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    850 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    851 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    852 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    853 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    854 // SUCH DAMAGE.
    855 //
    856 //	@(#)select.h	8.2 (Berkeley) 1/4/94
    857 
    858 //	$OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
    859 //	$NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
    860 
    861 // -
    862 // Copyright (c) 1982, 1986, 1991, 1993
    863 //	The Regents of the University of California.  All rights reserved.
    864 // (c) UNIX System Laboratories, Inc.
    865 // All or some portions of this file are derived from material licensed
    866 // to the University of California by American Telephone and Telegraph
    867 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    868 // the permission of UNIX System Laboratories, Inc.
    869 //
    870 // Redistribution and use in source and binary forms, with or without
    871 // modification, are permitted provided that the following conditions
    872 // are met:
    873 // 1. Redistributions of source code must retain the above copyright
    874 //    notice, this list of conditions and the following disclaimer.
    875 // 2. Redistributions in binary form must reproduce the above copyright
    876 //    notice, this list of conditions and the following disclaimer in the
    877 //    documentation and/or other materials provided with the distribution.
    878 // 3. Neither the name of the University nor the names of its contributors
    879 //    may be used to endorse or promote products derived from this software
    880 //    without specific prior written permission.
    881 //
    882 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    883 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    884 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    885 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    886 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    887 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    888 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    889 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    890 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    891 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    892 // SUCH DAMAGE.
    893 //
    894 //	@(#)types.h	8.4 (Berkeley) 1/21/94
    895 
    896 type Timeval = struct {
    897 	Ftv_sec  Time_t
    898 	Ftv_usec Suseconds_t
    899 } /* select.h:41:1 */
    900 
    901 type Timespec = struct {
    902 	Ftv_sec  Time_t
    903 	Ftv_nsec int64
    904 } /* select.h:49:1 */
    905 
    906 // Select uses bit masks of file descriptors in longs.  These macros
    907 // manipulate such bit fields (the filesystem macros use chars).
    908 // FD_SETSIZE may be defined by the user, but the default here should
    909 // be enough for most uses.
    910 
    911 // We don't want to pollute the namespace with select(2) internals.
    912 // Non-underscore versions are exposed later #if __BSD_VISIBLE
    913 type X__fd_mask = Uint32_t /* select.h:70:18 */
    914 
    915 type Fd_set1 = struct{ Ffds_bits [32]X__fd_mask } /* select.h:74:9 */
    916 
    917 type Fd_set = Fd_set1 /* select.h:76:3 */
    918 
    919 type Sigset_t = uint32 /* select.h:122:22 */
    920 
    921 type Timezone = struct {
    922 	Ftz_minuteswest int32
    923 	Ftz_dsttime     int32
    924 } /* time.h:72:1 */
    925 
    926 // Operations on timevals.
    927 
    928 // Operations on timespecs.
    929 
    930 // Names of the interval timers, and structure
    931 // defining a timer setting.
    932 
    933 type Itimerval = struct {
    934 	Fit_interval struct {
    935 		Ftv_sec  Time_t
    936 		Ftv_usec Suseconds_t
    937 	}
    938 	Fit_value struct {
    939 		Ftv_sec  Time_t
    940 		Ftv_usec Suseconds_t
    941 	}
    942 } /* time.h:148:1 */
    943 
    944 // clock information structure for sysctl({CTL_KERN, KERN_CLOCKRATE})
    945 type Clockinfo = struct {
    946 	Fhz     int32
    947 	Ftick   int32
    948 	Fstathz int32
    949 	Fprofhz int32
    950 } /* time.h:157:1 */
    951 
    952 //	$OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $
    953 //	$NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $
    954 
    955 // Copyright (c) 1989 The Regents of the University of California.
    956 // All rights reserved.
    957 //
    958 // (c) UNIX System Laboratories, Inc.
    959 // All or some portions of this file are derived from material licensed
    960 // to the University of California by American Telephone and Telegraph
    961 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    962 // the permission of UNIX System Laboratories, Inc.
    963 //
    964 // Redistribution and use in source and binary forms, with or without
    965 // modification, are permitted provided that the following conditions
    966 // are met:
    967 // 1. Redistributions of source code must retain the above copyright
    968 //    notice, this list of conditions and the following disclaimer.
    969 // 2. Redistributions in binary form must reproduce the above copyright
    970 //    notice, this list of conditions and the following disclaimer in the
    971 //    documentation and/or other materials provided with the distribution.
    972 // 3. Neither the name of the University nor the names of its contributors
    973 //    may be used to endorse or promote products derived from this software
    974 //    without specific prior written permission.
    975 //
    976 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    977 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    978 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    979 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    980 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    981 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    982 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    983 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    984 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    985 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    986 // SUCH DAMAGE.
    987 //
    988 //	@(#)time.h	5.12 (Berkeley) 3/9/91
    989 
    990 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
    991 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
    992 
    993 // Copyright (c) 1991, 1993
    994 //	The Regents of the University of California.  All rights reserved.
    995 //
    996 // This code is derived from software contributed to Berkeley by
    997 // Berkeley Software Design, Inc.
    998 //
    999 // Redistribution and use in source and binary forms, with or without
   1000 // modification, are permitted provided that the following conditions
   1001 // are met:
   1002 // 1. Redistributions of source code must retain the above copyright
   1003 //    notice, this list of conditions and the following disclaimer.
   1004 // 2. Redistributions in binary form must reproduce the above copyright
   1005 //    notice, this list of conditions and the following disclaimer in the
   1006 //    documentation and/or other materials provided with the distribution.
   1007 // 3. Neither the name of the University nor the names of its contributors
   1008 //    may be used to endorse or promote products derived from this software
   1009 //    without specific prior written permission.
   1010 //
   1011 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1012 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1013 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1014 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1015 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1016 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1017 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1018 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1019 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1020 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1021 // SUCH DAMAGE.
   1022 //
   1023 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
   1024 
   1025 //	$OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $
   1026 
   1027 // Written by Todd C. Miller, September 9, 2016
   1028 // Public domain.
   1029 
   1030 //	$OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $
   1031 
   1032 // -
   1033 // Copyright (c) 1990, 1993
   1034 //	The Regents of the University of California.  All rights reserved.
   1035 //
   1036 // Redistribution and use in source and binary forms, with or without
   1037 // modification, are permitted provided that the following conditions
   1038 // are met:
   1039 // 1. Redistributions of source code must retain the above copyright
   1040 //    notice, this list of conditions and the following disclaimer.
   1041 // 2. Redistributions in binary form must reproduce the above copyright
   1042 //    notice, this list of conditions and the following disclaimer in the
   1043 //    documentation and/or other materials provided with the distribution.
   1044 // 3. Neither the name of the University nor the names of its contributors
   1045 //    may be used to endorse or promote products derived from this software
   1046 //    without specific prior written permission.
   1047 //
   1048 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1049 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1050 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1051 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1052 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1053 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1054 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1055 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1056 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1057 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1058 // SUCH DAMAGE.
   1059 //
   1060 //	@(#)types.h	8.3 (Berkeley) 1/5/94
   1061 
   1062 // Frequency of the clock ticks reported by times().  Deprecated - use
   1063 // sysconf(_SC_CLK_TCK) instead.  (Removed in 1003.1-2001.)
   1064 
   1065 //	$OpenBSD: _time.h,v 1.9 2017/12/18 05:51:53 cheloha Exp $
   1066 
   1067 // Copyright (c) 1982, 1986, 1993
   1068 //	The Regents of the University of California.  All rights reserved.
   1069 //
   1070 // Redistribution and use in source and binary forms, with or without
   1071 // modification, are permitted provided that the following conditions
   1072 // are met:
   1073 // 1. Redistributions of source code must retain the above copyright
   1074 //    notice, this list of conditions and the following disclaimer.
   1075 // 2. Redistributions in binary form must reproduce the above copyright
   1076 //    notice, this list of conditions and the following disclaimer in the
   1077 //    documentation and/or other materials provided with the distribution.
   1078 // 3. Neither the name of the University nor the names of its contributors
   1079 //    may be used to endorse or promote products derived from this software
   1080 //    without specific prior written permission.
   1081 //
   1082 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1083 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1084 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1085 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1086 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1087 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1088 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1089 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1090 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1091 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1092 // SUCH DAMAGE.
   1093 
   1094 // Per-process and per-thread clocks encode the PID or TID into the
   1095 // high bits, with the type in the bottom bits
   1096 
   1097 // Structure defined by POSIX 1003.1b to be like a itimerval,
   1098 // but with timespecs. Used in the timer_*() system calls.
   1099 type Itimerspec = struct {
   1100 	Fit_interval struct {
   1101 		Ftv_sec  Time_t
   1102 		Ftv_nsec int64
   1103 	}
   1104 	Fit_value struct {
   1105 		Ftv_sec  Time_t
   1106 		Ftv_nsec int64
   1107 	}
   1108 } /* _time.h:56:1 */
   1109 
   1110 type Locale_t = uintptr /* time.h:107:14 */
   1111 
   1112 type Tm = struct {
   1113 	Ftm_sec      int32
   1114 	Ftm_min      int32
   1115 	Ftm_hour     int32
   1116 	Ftm_mday     int32
   1117 	Ftm_mon      int32
   1118 	Ftm_year     int32
   1119 	Ftm_wday     int32
   1120 	Ftm_yday     int32
   1121 	Ftm_isdst    int32
   1122 	F__ccgo_pad1 [4]byte
   1123 	Ftm_gmtoff   int64
   1124 	Ftm_zone     uintptr
   1125 } /* time.h:111:1 */
   1126 
   1127 type Stat = struct {
   1128 	Fst_mode  Mode_t
   1129 	Fst_dev   Dev_t
   1130 	Fst_ino   Ino_t
   1131 	Fst_nlink Nlink_t
   1132 	Fst_uid   Uid_t
   1133 	Fst_gid   Gid_t
   1134 	Fst_rdev  Dev_t
   1135 	Fst_atim  struct {
   1136 		Ftv_sec  Time_t
   1137 		Ftv_nsec int64
   1138 	}
   1139 	Fst_mtim struct {
   1140 		Ftv_sec  Time_t
   1141 		Ftv_nsec int64
   1142 	}
   1143 	Fst_ctim struct {
   1144 		Ftv_sec  Time_t
   1145 		Ftv_nsec int64
   1146 	}
   1147 	Fst_size       Off_t
   1148 	Fst_blocks     Blkcnt_t
   1149 	Fst_blksize    Blksize_t
   1150 	Fst_flags      U_int32_t
   1151 	Fst_gen        U_int32_t
   1152 	F__ccgo_pad1   [4]byte
   1153 	F__st_birthtim struct {
   1154 		Ftv_sec  Time_t
   1155 		Ftv_nsec int64
   1156 	}
   1157 } /* stat.h:45:1 */
   1158 
   1159 //	$OpenBSD: fts.h,v 1.14 2012/12/05 23:19:57 deraadt Exp $
   1160 //	$NetBSD: fts.h,v 1.5 1994/12/28 01:41:50 mycroft Exp $
   1161 
   1162 // Copyright (c) 1989, 1993
   1163 //	The Regents of the University of California.  All rights reserved.
   1164 //
   1165 // Redistribution and use in source and binary forms, with or without
   1166 // modification, are permitted provided that the following conditions
   1167 // are met:
   1168 // 1. Redistributions of source code must retain the above copyright
   1169 //    notice, this list of conditions and the following disclaimer.
   1170 // 2. Redistributions in binary form must reproduce the above copyright
   1171 //    notice, this list of conditions and the following disclaimer in the
   1172 //    documentation and/or other materials provided with the distribution.
   1173 // 3. Neither the name of the University nor the names of its contributors
   1174 //    may be used to endorse or promote products derived from this software
   1175 //    without specific prior written permission.
   1176 //
   1177 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1178 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1179 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1180 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1181 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1182 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1183 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1184 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1185 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1186 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1187 // SUCH DAMAGE.
   1188 //
   1189 //	@(#)fts.h	8.3 (Berkeley) 8/14/94
   1190 
   1191 type X_ftsent = struct {
   1192 	Ffts_cycle   uintptr
   1193 	Ffts_parent  uintptr
   1194 	Ffts_link    uintptr
   1195 	Ffts_number  int64
   1196 	Ffts_pointer uintptr
   1197 	Ffts_accpath uintptr
   1198 	Ffts_path    uintptr
   1199 	Ffts_errno   int32
   1200 	Ffts_symfd   int32
   1201 	Ffts_pathlen Size_t
   1202 	Ffts_namelen Size_t
   1203 	Ffts_ino     Ino_t
   1204 	Ffts_dev     Dev_t
   1205 	Ffts_nlink   Nlink_t
   1206 	Ffts_level   int32
   1207 	Ffts_info    uint16
   1208 	Ffts_flags   uint16
   1209 	Ffts_instr   uint16
   1210 	Ffts_spare   uint16
   1211 	F__ccgo_pad1 [4]byte
   1212 	Ffts_statp   uintptr
   1213 	Ffts_name    [1]int8
   1214 	F__ccgo_pad2 [7]byte
   1215 } /* fts.h:39:2 */
   1216 
   1217 //	$OpenBSD: fts.h,v 1.14 2012/12/05 23:19:57 deraadt Exp $
   1218 //	$NetBSD: fts.h,v 1.5 1994/12/28 01:41:50 mycroft Exp $
   1219 
   1220 // Copyright (c) 1989, 1993
   1221 //	The Regents of the University of California.  All rights reserved.
   1222 //
   1223 // Redistribution and use in source and binary forms, with or without
   1224 // modification, are permitted provided that the following conditions
   1225 // are met:
   1226 // 1. Redistributions of source code must retain the above copyright
   1227 //    notice, this list of conditions and the following disclaimer.
   1228 // 2. Redistributions in binary form must reproduce the above copyright
   1229 //    notice, this list of conditions and the following disclaimer in the
   1230 //    documentation and/or other materials provided with the distribution.
   1231 // 3. Neither the name of the University nor the names of its contributors
   1232 //    may be used to endorse or promote products derived from this software
   1233 //    without specific prior written permission.
   1234 //
   1235 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1236 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1237 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1238 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1239 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1240 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1241 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1242 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1243 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1244 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1245 // SUCH DAMAGE.
   1246 //
   1247 //	@(#)fts.h	8.3 (Berkeley) 8/14/94
   1248 
   1249 type FTS = struct {
   1250 	Ffts_cur     uintptr
   1251 	Ffts_child   uintptr
   1252 	Ffts_array   uintptr
   1253 	Ffts_dev     Dev_t
   1254 	F__ccgo_pad1 [4]byte
   1255 	Ffts_path    uintptr
   1256 	Ffts_rfd     int32
   1257 	F__ccgo_pad2 [4]byte
   1258 	Ffts_pathlen Size_t
   1259 	Ffts_nitems  int32
   1260 	F__ccgo_pad3 [4]byte
   1261 	Ffts_compar  uintptr
   1262 	Ffts_options int32
   1263 	F__ccgo_pad4 [4]byte
   1264 } /* fts.h:61:3 */
   1265 
   1266 type FTSENT = X_ftsent /* fts.h:114:3 */
   1267 
   1268 var _ int8 /* gen.c:5:13: */