gtsocial-umbx

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

fcntl_openbsd_386.go (38411B)


      1 // Code generated by 'ccgo fcntl/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 fcntl/fcntl_openbsd_386.go -pkgname fcntl', DO NOT EDIT.
      2 
      3 package fcntl
      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 	AT_EACCESS           = 0x01    // fcntl.h:200:1:
     19 	AT_FDCWD             = -100    // fcntl.h:198:1:
     20 	AT_REMOVEDIR         = 0x08    // fcntl.h:203:1:
     21 	AT_SYMLINK_FOLLOW    = 0x04    // fcntl.h:202:1:
     22 	AT_SYMLINK_NOFOLLOW  = 0x02    // fcntl.h:201:1:
     23 	BIG_ENDIAN           = 4321    // endian.h:45:1:
     24 	BYTE_ORDER           = 1234    // endian.h:47:1:
     25 	FAPPEND              = 8       // fcntl.h:130:1:
     26 	FASYNC               = 64      // fcntl.h:131:1:
     27 	FD_CLOEXEC           = 1       // fcntl.h:163:1:
     28 	FFSYNC               = 128     // fcntl.h:132:1:
     29 	FNDELAY              = 4       // fcntl.h:134:1:
     30 	FNONBLOCK            = 4       // fcntl.h:133:1:
     31 	FREAD                = 0x0001  // fcntl.h:76:1:
     32 	FWRITE               = 0x0002  // fcntl.h:77:1:
     33 	F_DUPFD              = 0       // fcntl.h:143:1:
     34 	F_DUPFD_CLOEXEC      = 10      // fcntl.h:156:1:
     35 	F_GETFD              = 1       // fcntl.h:144:1:
     36 	F_GETFL              = 3       // fcntl.h:146:1:
     37 	F_GETLK              = 7       // fcntl.h:152:1:
     38 	F_GETOWN             = 5       // fcntl.h:149:1:
     39 	F_ISATTY             = 11      // fcntl.h:159:1:
     40 	F_RDLCK              = 1       // fcntl.h:166:1:
     41 	F_SETFD              = 2       // fcntl.h:145:1:
     42 	F_SETFL              = 4       // fcntl.h:147:1:
     43 	F_SETLK              = 8       // fcntl.h:153:1:
     44 	F_SETLKW             = 9       // fcntl.h:154:1:
     45 	F_SETOWN             = 6       // fcntl.h:150:1:
     46 	F_UNLCK              = 2       // fcntl.h:167:1:
     47 	F_WRLCK              = 3       // fcntl.h:168:1:
     48 	LITTLE_ENDIAN        = 1234    // endian.h:44:1:
     49 	LOCK_EX              = 0x02    // fcntl.h:192:1:
     50 	LOCK_NB              = 0x04    // fcntl.h:193:1:
     51 	LOCK_SH              = 0x01    // fcntl.h:191:1:
     52 	LOCK_UN              = 0x08    // fcntl.h:194:1:
     53 	O_ACCMODE            = 0x0003  // fcntl.h:65:1:
     54 	O_APPEND             = 0x0008  // fcntl.h:80:1:
     55 	O_ASYNC              = 0x0040  // fcntl.h:84:1:
     56 	O_CLOEXEC            = 0x10000 // fcntl.h:107:1:
     57 	O_CREAT              = 0x0200  // fcntl.h:91:1:
     58 	O_DIRECTORY          = 0x20000 // fcntl.h:108:1:
     59 	O_DSYNC              = 128     // fcntl.h:100:1:
     60 	O_EXCL               = 0x0800  // fcntl.h:93:1:
     61 	O_EXLOCK             = 0x0020  // fcntl.h:83:1:
     62 	O_FSYNC              = 0x0080  // fcntl.h:85:1:
     63 	O_NDELAY             = 4       // fcntl.h:135:1:
     64 	O_NOCTTY             = 0x8000  // fcntl.h:104:1:
     65 	O_NOFOLLOW           = 0x0100  // fcntl.h:86:1:
     66 	O_NONBLOCK           = 0x0004  // fcntl.h:79:1:
     67 	O_RDONLY             = 0x0000  // fcntl.h:62:1:
     68 	O_RDWR               = 0x0002  // fcntl.h:64:1:
     69 	O_RSYNC              = 128     // fcntl.h:101:1:
     70 	O_SHLOCK             = 0x0010  // fcntl.h:82:1:
     71 	O_SYNC               = 0x0080  // fcntl.h:89:1:
     72 	O_TRUNC              = 0x0400  // fcntl.h:92:1:
     73 	O_WRONLY             = 0x0001  // fcntl.h:63:1:
     74 	PDP_ENDIAN           = 3412    // endian.h:46:1:
     75 	X_BIG_ENDIAN         = 4321    // _endian.h:43:1:
     76 	X_BYTE_ORDER         = 1234    // endian.h:58:1:
     77 	X_CLOCKID_T_DEFINED_ = 0       // types.h:162:1:
     78 	X_CLOCK_T_DEFINED_   = 0       // types.h:157:1:
     79 	X_FILE_OFFSET_BITS   = 64      // <builtin>:25:1:
     80 	X_ILP32              = 1       // <predefined>:1:1:
     81 	X_INT16_T_DEFINED_   = 0       // types.h:84:1:
     82 	X_INT32_T_DEFINED_   = 0       // types.h:94:1:
     83 	X_INT64_T_DEFINED_   = 0       // types.h:104:1:
     84 	X_INT8_T_DEFINED_    = 0       // types.h:74:1:
     85 	X_LITTLE_ENDIAN      = 1234    // _endian.h:42:1:
     86 	X_MACHINE_CDEFS_H_   = 0       // cdefs.h:9:1:
     87 	X_MACHINE_ENDIAN_H_  = 0       // endian.h:28:1:
     88 	X_MACHINE__TYPES_H_  = 0       // _types.h:36:1:
     89 	X_MAX_PAGE_SHIFT     = 12      // _types.h:52:1:
     90 	X_OFF_T_DEFINED_     = 0       // types.h:192:1:
     91 	X_PDP_ENDIAN         = 3412    // _endian.h:44:1:
     92 	X_PID_T_DEFINED_     = 0       // types.h:167:1:
     93 	X_QUAD_HIGHWORD      = 1       // _endian.h:95:1:
     94 	X_QUAD_LOWWORD       = 0       // _endian.h:96:1:
     95 	X_SIZE_T_DEFINED_    = 0       // types.h:172:1:
     96 	X_SSIZE_T_DEFINED_   = 0       // types.h:177:1:
     97 	X_STACKALIGNBYTES    = 15      // _types.h:49:1:
     98 	X_SYS_CDEFS_H_       = 0       // cdefs.h:39:1:
     99 	X_SYS_ENDIAN_H_      = 0       // endian.h:38:1:
    100 	X_SYS_FCNTL_H_       = 0       // fcntl.h:41:1:
    101 	X_SYS_TYPES_H_       = 0       // types.h:41:1:
    102 	X_SYS__ENDIAN_H_     = 0       // _endian.h:34:1:
    103 	X_SYS__TYPES_H_      = 0       // _types.h:35:1:
    104 	X_TIMER_T_DEFINED_   = 0       // types.h:187:1:
    105 	X_TIME_T_DEFINED_    = 0       // types.h:182:1:
    106 	X_UINT16_T_DEFINED_  = 0       // types.h:89:1:
    107 	X_UINT32_T_DEFINED_  = 0       // types.h:99:1:
    108 	X_UINT64_T_DEFINED_  = 0       // types.h:109:1:
    109 	X_UINT8_T_DEFINED_   = 0       // types.h:79:1:
    110 	I386                 = 1       // <predefined>:339:1:
    111 	Unix                 = 1       // <predefined>:340:1:
    112 )
    113 
    114 type Ptrdiff_t = int32 /* <builtin>:3:26 */
    115 
    116 type Size_t = uint32 /* <builtin>:9:23 */
    117 
    118 type Wchar_t = int32 /* <builtin>:15:24 */
    119 
    120 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    121 type X__float128 = float64        /* <builtin>:47:21 */
    122 
    123 //	$OpenBSD: fcntl.h,v 1.22 2019/01/21 18:09:21 anton Exp $
    124 //	$NetBSD: fcntl.h,v 1.8 1995/03/26 20:24:12 jtc Exp $
    125 
    126 // -
    127 // Copyright (c) 1983, 1990, 1993
    128 //	The Regents of the University of California.  All rights reserved.
    129 // (c) UNIX System Laboratories, Inc.
    130 // All or some portions of this file are derived from material licensed
    131 // to the University of California by American Telephone and Telegraph
    132 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    133 // the permission of UNIX System Laboratories, Inc.
    134 //
    135 // Redistribution and use in source and binary forms, with or without
    136 // modification, are permitted provided that the following conditions
    137 // are met:
    138 // 1. Redistributions of source code must retain the above copyright
    139 //    notice, this list of conditions and the following disclaimer.
    140 // 2. Redistributions in binary form must reproduce the above copyright
    141 //    notice, this list of conditions and the following disclaimer in the
    142 //    documentation and/or other materials provided with the distribution.
    143 // 3. Neither the name of the University nor the names of its contributors
    144 //    may be used to endorse or promote products derived from this software
    145 //    without specific prior written permission.
    146 //
    147 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    148 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    149 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    150 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    151 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    152 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    153 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    154 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    155 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    156 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    157 // SUCH DAMAGE.
    158 //
    159 //	@(#)fcntl.h	8.3 (Berkeley) 1/21/94
    160 
    161 // This file includes the definitions for open and fcntl
    162 // described by POSIX for <fcntl.h>; it also includes
    163 // related kernel definitions.
    164 
    165 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
    166 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
    167 
    168 // Copyright (c) 1991, 1993
    169 //	The Regents of the University of California.  All rights reserved.
    170 //
    171 // This code is derived from software contributed to Berkeley by
    172 // Berkeley Software Design, Inc.
    173 //
    174 // Redistribution and use in source and binary forms, with or without
    175 // modification, are permitted provided that the following conditions
    176 // are met:
    177 // 1. Redistributions of source code must retain the above copyright
    178 //    notice, this list of conditions and the following disclaimer.
    179 // 2. Redistributions in binary form must reproduce the above copyright
    180 //    notice, this list of conditions and the following disclaimer in the
    181 //    documentation and/or other materials provided with the distribution.
    182 // 3. Neither the name of the University nor the names of its contributors
    183 //    may be used to endorse or promote products derived from this software
    184 //    without specific prior written permission.
    185 //
    186 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    187 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    188 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    189 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    190 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    191 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    192 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    193 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    194 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    195 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    196 // SUCH DAMAGE.
    197 //
    198 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
    199 
    200 //	$OpenBSD: cdefs.h,v 1.10 2013/03/28 17:30:45 martynas Exp $
    201 
    202 // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
    203 // Public domain.
    204 
    205 // Macro to test if we're using a specific version of gcc or later.
    206 
    207 // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
    208 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
    209 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
    210 // in between its arguments.  Do not use __CONCAT on double-quoted strings,
    211 // such as those from the __STRING macro: to concatenate strings just put
    212 // them next to each other.
    213 
    214 // GCC1 and some versions of GCC2 declare dead (non-returning) and
    215 // pure (no side effects) functions using "volatile" and "const";
    216 // unfortunately, these then cause warnings under "-ansi -pedantic".
    217 // GCC >= 2.5 uses the __attribute__((attrs)) style.  All of these
    218 // work for GNU C++ (modulo a slight glitch in the C++ grammar in
    219 // the distribution version of 2.5.5).
    220 
    221 // __returns_twice makes the compiler not assume the function
    222 // only returns once.  This affects registerisation of variables:
    223 // even local variables need to be in memory across such a call.
    224 // Example: setjmp()
    225 
    226 // __only_inline makes the compiler only use this function definition
    227 // for inlining; references that can't be inlined will be left as
    228 // external references instead of generating a local copy.  The
    229 // matching library should include a simple extern definition for
    230 // the function to handle those references.  c.f. ctype.h
    231 
    232 // GNU C version 2.96 adds explicit branch prediction so that
    233 // the CPU back-end can hint the processor and also so that
    234 // code blocks can be reordered such that the predicted path
    235 // sees a more linear flow, thus improving cache behavior, etc.
    236 //
    237 // The following two macros provide us with a way to utilize this
    238 // compiler feature.  Use __predict_true() if you expect the expression
    239 // to evaluate to true, and __predict_false() if you expect the
    240 // expression to evaluate to false.
    241 //
    242 // A few notes about usage:
    243 //
    244 //	* Generally, __predict_false() error condition checks (unless
    245 //	  you have some _strong_ reason to do otherwise, in which case
    246 //	  document it), and/or __predict_true() `no-error' condition
    247 //	  checks, assuming you want to optimize for the no-error case.
    248 //
    249 //	* Other than that, if you don't know the likelihood of a test
    250 //	  succeeding from empirical or other `hard' evidence, don't
    251 //	  make predictions.
    252 //
    253 //	* These are meant to be used in places that are run `a lot'.
    254 //	  It is wasteful to make predictions in code that is run
    255 //	  seldomly (e.g. at subsystem initialization time) as the
    256 //	  basic block reordering that this affects can often generate
    257 //	  larger code.
    258 
    259 // Delete pseudo-keywords wherever they are not available or needed.
    260 
    261 // The __packed macro indicates that a variable or structure members
    262 // should have the smallest possible alignment, despite any host CPU
    263 // alignment requirements.
    264 //
    265 // The __aligned(x) macro specifies the minimum alignment of a
    266 // variable or structure.
    267 //
    268 // These macros together are useful for describing the layout and
    269 // alignment of messages exchanged with hardware or other systems.
    270 
    271 // "The nice thing about standards is that there are so many to choose from."
    272 // There are a number of "feature test macros" specified by (different)
    273 // standards that determine which interfaces and types the header files
    274 // should expose.
    275 //
    276 // Because of inconsistencies in these macros, we define our own
    277 // set in the private name space that end in _VISIBLE.  These are
    278 // always defined and so headers can test their values easily.
    279 // Things can get tricky when multiple feature macros are defined.
    280 // We try to take the union of all the features requested.
    281 //
    282 // The following macros are guaranteed to have a value after cdefs.h
    283 // has been included:
    284 //	__POSIX_VISIBLE
    285 //	__XPG_VISIBLE
    286 //	__ISO_C_VISIBLE
    287 //	__BSD_VISIBLE
    288 
    289 // X/Open Portability Guides and Single Unix Specifications.
    290 // _XOPEN_SOURCE				XPG3
    291 // _XOPEN_SOURCE && _XOPEN_VERSION = 4		XPG4
    292 // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1	XPG4v2
    293 // _XOPEN_SOURCE == 500				XPG5
    294 // _XOPEN_SOURCE == 520				XPG5v2
    295 // _XOPEN_SOURCE == 600				POSIX 1003.1-2001 with XSI
    296 // _XOPEN_SOURCE == 700				POSIX 1003.1-2008 with XSI
    297 //
    298 // The XPG spec implies a specific value for _POSIX_C_SOURCE.
    299 
    300 // POSIX macros, these checks must follow the XOPEN ones above.
    301 //
    302 // _POSIX_SOURCE == 1		1003.1-1988 (superseded by _POSIX_C_SOURCE)
    303 // _POSIX_C_SOURCE == 1		1003.1-1990
    304 // _POSIX_C_SOURCE == 2		1003.2-1992
    305 // _POSIX_C_SOURCE == 199309L	1003.1b-1993
    306 // _POSIX_C_SOURCE == 199506L   1003.1c-1995, 1003.1i-1995,
    307 //				and the omnibus ISO/IEC 9945-1:1996
    308 // _POSIX_C_SOURCE == 200112L   1003.1-2001
    309 // _POSIX_C_SOURCE == 200809L   1003.1-2008
    310 //
    311 // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
    312 // this may be overridden by the _ISOC99_SOURCE macro later.
    313 
    314 // _ANSI_SOURCE means to expose ANSI C89 interfaces only.
    315 // If the user defines it in addition to one of the POSIX or XOPEN
    316 // macros, assume the POSIX/XOPEN macro(s) should take precedence.
    317 
    318 // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
    319 // override any of the other macros since they are non-exclusive.
    320 
    321 // Finally deal with BSD-specific interfaces that are not covered
    322 // by any standards.  We expose these when none of the POSIX or XPG
    323 // macros is defined or if the user explicitly asks for them.
    324 
    325 // Default values.
    326 
    327 //	$OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
    328 //	$NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
    329 
    330 // -
    331 // Copyright (c) 1982, 1986, 1991, 1993
    332 //	The Regents of the University of California.  All rights reserved.
    333 // (c) UNIX System Laboratories, Inc.
    334 // All or some portions of this file are derived from material licensed
    335 // to the University of California by American Telephone and Telegraph
    336 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    337 // the permission of UNIX System Laboratories, Inc.
    338 //
    339 // Redistribution and use in source and binary forms, with or without
    340 // modification, are permitted provided that the following conditions
    341 // are met:
    342 // 1. Redistributions of source code must retain the above copyright
    343 //    notice, this list of conditions and the following disclaimer.
    344 // 2. Redistributions in binary form must reproduce the above copyright
    345 //    notice, this list of conditions and the following disclaimer in the
    346 //    documentation and/or other materials provided with the distribution.
    347 // 3. Neither the name of the University nor the names of its contributors
    348 //    may be used to endorse or promote products derived from this software
    349 //    without specific prior written permission.
    350 //
    351 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    352 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    353 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    354 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    355 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    356 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    357 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    358 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    359 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    360 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    361 // SUCH DAMAGE.
    362 //
    363 //	@(#)types.h	8.4 (Berkeley) 1/21/94
    364 
    365 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
    366 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
    367 
    368 // Copyright (c) 1991, 1993
    369 //	The Regents of the University of California.  All rights reserved.
    370 //
    371 // This code is derived from software contributed to Berkeley by
    372 // Berkeley Software Design, Inc.
    373 //
    374 // Redistribution and use in source and binary forms, with or without
    375 // modification, are permitted provided that the following conditions
    376 // are met:
    377 // 1. Redistributions of source code must retain the above copyright
    378 //    notice, this list of conditions and the following disclaimer.
    379 // 2. Redistributions in binary form must reproduce the above copyright
    380 //    notice, this list of conditions and the following disclaimer in the
    381 //    documentation and/or other materials provided with the distribution.
    382 // 3. Neither the name of the University nor the names of its contributors
    383 //    may be used to endorse or promote products derived from this software
    384 //    without specific prior written permission.
    385 //
    386 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    387 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    388 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    389 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    390 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    391 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    392 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    393 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    394 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    395 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    396 // SUCH DAMAGE.
    397 //
    398 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
    399 
    400 //	$OpenBSD: endian.h,v 1.25 2014/12/21 04:49:00 guenther Exp $
    401 
    402 // -
    403 // Copyright (c) 1997 Niklas Hallqvist.  All rights reserved.
    404 //
    405 // Redistribution and use in source and binary forms, with or without
    406 // modification, are permitted provided that the following conditions
    407 // are met:
    408 // 1. Redistributions of source code must retain the above copyright
    409 //    notice, this list of conditions and the following disclaimer.
    410 // 2. Redistributions in binary form must reproduce the above copyright
    411 //    notice, this list of conditions and the following disclaimer in the
    412 //    documentation and/or other materials provided with the distribution.
    413 //
    414 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    415 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    416 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    417 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    418 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    419 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    420 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    421 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    422 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    423 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    424 
    425 // Public definitions for little- and big-endian systems.
    426 // This file should be included as <endian.h> in userspace and as
    427 // <sys/endian.h> in the kernel.
    428 //
    429 // System headers that need endian information but that can't or don't
    430 // want to export the public names here should include <sys/_endian.h>
    431 // and use the internal names: _BYTE_ORDER, _*_ENDIAN, etc.
    432 
    433 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
    434 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
    435 
    436 // Copyright (c) 1991, 1993
    437 //	The Regents of the University of California.  All rights reserved.
    438 //
    439 // This code is derived from software contributed to Berkeley by
    440 // Berkeley Software Design, Inc.
    441 //
    442 // Redistribution and use in source and binary forms, with or without
    443 // modification, are permitted provided that the following conditions
    444 // are met:
    445 // 1. Redistributions of source code must retain the above copyright
    446 //    notice, this list of conditions and the following disclaimer.
    447 // 2. Redistributions in binary form must reproduce the above copyright
    448 //    notice, this list of conditions and the following disclaimer in the
    449 //    documentation and/or other materials provided with the distribution.
    450 // 3. Neither the name of the University nor the names of its contributors
    451 //    may be used to endorse or promote products derived from this software
    452 //    without specific prior written permission.
    453 //
    454 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    455 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    456 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    457 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    458 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    459 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    460 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    461 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    462 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    463 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    464 // SUCH DAMAGE.
    465 //
    466 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
    467 
    468 //	$OpenBSD: _endian.h,v 1.8 2018/01/11 23:13:37 dlg Exp $
    469 
    470 // -
    471 // Copyright (c) 1997 Niklas Hallqvist.  All rights reserved.
    472 //
    473 // Redistribution and use in source and binary forms, with or without
    474 // modification, are permitted provided that the following conditions
    475 // are met:
    476 // 1. Redistributions of source code must retain the above copyright
    477 //    notice, this list of conditions and the following disclaimer.
    478 // 2. Redistributions in binary form must reproduce the above copyright
    479 //    notice, this list of conditions and the following disclaimer in the
    480 //    documentation and/or other materials provided with the distribution.
    481 //
    482 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    483 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    484 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    485 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    486 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    487 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    488 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    489 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    490 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    491 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    492 
    493 // Internal endianness macros.  This pulls in <machine/endian.h> to
    494 // get the correct setting direction for the platform and sets internal
    495 // ('__' prefix) macros appropriately.
    496 
    497 //	$OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $
    498 
    499 // -
    500 // Copyright (c) 1990, 1993
    501 //	The Regents of the University of California.  All rights reserved.
    502 //
    503 // Redistribution and use in source and binary forms, with or without
    504 // modification, are permitted provided that the following conditions
    505 // are met:
    506 // 1. Redistributions of source code must retain the above copyright
    507 //    notice, this list of conditions and the following disclaimer.
    508 // 2. Redistributions in binary form must reproduce the above copyright
    509 //    notice, this list of conditions and the following disclaimer in the
    510 //    documentation and/or other materials provided with the distribution.
    511 // 3. Neither the name of the University nor the names of its contributors
    512 //    may be used to endorse or promote products derived from this software
    513 //    without specific prior written permission.
    514 //
    515 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    516 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    517 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    518 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    519 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    520 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    521 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    522 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    523 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    524 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    525 // SUCH DAMAGE.
    526 //
    527 //	@(#)types.h	8.3 (Berkeley) 1/5/94
    528 
    529 //	$OpenBSD: _types.h,v 1.23 2018/03/05 01:15:25 deraadt Exp $
    530 
    531 // -
    532 // Copyright (c) 1990, 1993
    533 //	The Regents of the University of California.  All rights reserved.
    534 //
    535 // Redistribution and use in source and binary forms, with or without
    536 // modification, are permitted provided that the following conditions
    537 // are met:
    538 // 1. Redistributions of source code must retain the above copyright
    539 //    notice, this list of conditions and the following disclaimer.
    540 // 2. Redistributions in binary form must reproduce the above copyright
    541 //    notice, this list of conditions and the following disclaimer in the
    542 //    documentation and/or other materials provided with the distribution.
    543 // 3. Neither the name of the University nor the names of its contributors
    544 //    may be used to endorse or promote products derived from this software
    545 //    without specific prior written permission.
    546 //
    547 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    548 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    549 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    550 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    551 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    552 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    553 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    554 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    555 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    556 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    557 // SUCH DAMAGE.
    558 //
    559 //	@(#)types.h	8.3 (Berkeley) 1/5/94
    560 //	@(#)ansi.h	8.2 (Berkeley) 1/4/94
    561 
    562 // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
    563 // value for all data types (int, long, ...).   The result is an
    564 // unsigned long and must be cast to any desired pointer type.
    565 //
    566 // _ALIGNED_POINTER is a boolean macro that checks whether an address
    567 // is valid to fetch data elements of type t from on this architecture.
    568 // This does not reflect the optimal alignment, just the possibility
    569 // (within reasonable limits).
    570 
    571 // 7.18.1.1 Exact-width integer types
    572 type X__int8_t = int8     /* _types.h:61:22 */
    573 type X__uint8_t = uint8   /* _types.h:62:24 */
    574 type X__int16_t = int16   /* _types.h:63:17 */
    575 type X__uint16_t = uint16 /* _types.h:64:25 */
    576 type X__int32_t = int32   /* _types.h:65:15 */
    577 type X__uint32_t = uint32 /* _types.h:66:23 */
    578 type X__int64_t = int64   /* _types.h:67:20 */
    579 type X__uint64_t = uint64 /* _types.h:68:28 */
    580 
    581 // 7.18.1.2 Minimum-width integer types
    582 type X__int_least8_t = X__int8_t     /* _types.h:71:19 */
    583 type X__uint_least8_t = X__uint8_t   /* _types.h:72:20 */
    584 type X__int_least16_t = X__int16_t   /* _types.h:73:20 */
    585 type X__uint_least16_t = X__uint16_t /* _types.h:74:21 */
    586 type X__int_least32_t = X__int32_t   /* _types.h:75:20 */
    587 type X__uint_least32_t = X__uint32_t /* _types.h:76:21 */
    588 type X__int_least64_t = X__int64_t   /* _types.h:77:20 */
    589 type X__uint_least64_t = X__uint64_t /* _types.h:78:21 */
    590 
    591 // 7.18.1.3 Fastest minimum-width integer types
    592 type X__int_fast8_t = X__int32_t    /* _types.h:81:20 */
    593 type X__uint_fast8_t = X__uint32_t  /* _types.h:82:21 */
    594 type X__int_fast16_t = X__int32_t   /* _types.h:83:20 */
    595 type X__uint_fast16_t = X__uint32_t /* _types.h:84:21 */
    596 type X__int_fast32_t = X__int32_t   /* _types.h:85:20 */
    597 type X__uint_fast32_t = X__uint32_t /* _types.h:86:21 */
    598 type X__int_fast64_t = X__int64_t   /* _types.h:87:20 */
    599 type X__uint_fast64_t = X__uint64_t /* _types.h:88:21 */
    600 
    601 // 7.18.1.4 Integer types capable of holding object pointers
    602 type X__intptr_t = int32   /* _types.h:103:16 */
    603 type X__uintptr_t = uint32 /* _types.h:104:24 */
    604 
    605 // 7.18.1.5 Greatest-width integer types
    606 type X__intmax_t = X__int64_t   /* _types.h:107:20 */
    607 type X__uintmax_t = X__uint64_t /* _types.h:108:21 */
    608 
    609 // Register size
    610 type X__register_t = int32 /* _types.h:111:16 */
    611 
    612 // VM system types
    613 type X__vaddr_t = uint32 /* _types.h:114:24 */
    614 type X__paddr_t = uint32 /* _types.h:115:24 */
    615 type X__vsize_t = uint32 /* _types.h:116:24 */
    616 type X__psize_t = uint32 /* _types.h:117:24 */
    617 
    618 // Standard system types
    619 type X__double_t = float64           /* _types.h:120:22 */
    620 type X__float_t = float64            /* _types.h:121:22 */
    621 type X__ptrdiff_t = int32            /* _types.h:122:16 */
    622 type X__size_t = uint32              /* _types.h:123:24 */
    623 type X__ssize_t = int32              /* _types.h:124:16 */
    624 type X__va_list = X__builtin_va_list /* _types.h:126:27 */
    625 
    626 // Wide character support types
    627 type X__wchar_t = int32     /* _types.h:133:15 */
    628 type X__wint_t = int32      /* _types.h:135:15 */
    629 type X__rune_t = int32      /* _types.h:136:15 */
    630 type X__wctrans_t = uintptr /* _types.h:137:14 */
    631 type X__wctype_t = uintptr  /* _types.h:138:14 */
    632 
    633 type X__blkcnt_t = X__int64_t    /* _types.h:39:19 */ // blocks allocated for file
    634 type X__blksize_t = X__int32_t   /* _types.h:40:19 */ // optimal blocksize for I/O
    635 type X__clock_t = X__int64_t     /* _types.h:41:19 */ // ticks in CLOCKS_PER_SEC
    636 type X__clockid_t = X__int32_t   /* _types.h:42:19 */ // CLOCK_* identifiers
    637 type X__cpuid_t = uint32         /* _types.h:43:23 */ // CPU id
    638 type X__dev_t = X__int32_t       /* _types.h:44:19 */ // device number
    639 type X__fixpt_t = X__uint32_t    /* _types.h:45:20 */ // fixed point number
    640 type X__fsblkcnt_t = X__uint64_t /* _types.h:46:20 */ // file system block count
    641 type X__fsfilcnt_t = X__uint64_t /* _types.h:47:20 */ // file system file count
    642 type X__gid_t = X__uint32_t      /* _types.h:48:20 */ // group id
    643 type X__id_t = X__uint32_t       /* _types.h:49:20 */ // may contain pid, uid or gid
    644 type X__in_addr_t = X__uint32_t  /* _types.h:50:20 */ // base type for internet address
    645 type X__in_port_t = X__uint16_t  /* _types.h:51:20 */ // IP port type
    646 type X__ino_t = X__uint64_t      /* _types.h:52:20 */ // inode number
    647 type X__key_t = int32            /* _types.h:53:15 */ // IPC key (for Sys V IPC)
    648 type X__mode_t = X__uint32_t     /* _types.h:54:20 */ // permissions
    649 type X__nlink_t = X__uint32_t    /* _types.h:55:20 */ // link count
    650 type X__off_t = X__int64_t       /* _types.h:56:19 */ // file offset or size
    651 type X__pid_t = X__int32_t       /* _types.h:57:19 */ // process id
    652 type X__rlim_t = X__uint64_t     /* _types.h:58:20 */ // resource limit
    653 type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type
    654 type X__segsz_t = X__int32_t     /* _types.h:60:19 */ // segment size
    655 type X__socklen_t = X__uint32_t  /* _types.h:61:20 */ // length type for network syscalls
    656 type X__suseconds_t = int32      /* _types.h:62:15 */ // microseconds (signed)
    657 type X__time_t = X__int64_t      /* _types.h:63:19 */ // epoch time
    658 type X__timer_t = X__int32_t     /* _types.h:64:19 */ // POSIX timer identifiers
    659 type X__uid_t = X__uint32_t      /* _types.h:65:20 */ // user id
    660 type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds
    661 
    662 // mbstate_t is an opaque object to keep conversion state, during multibyte
    663 // stream conversions. The content must not be referenced by user programs.
    664 type X__mbstate_t = struct {
    665 	F__ccgo_pad1 [0]uint32
    666 	F__mbstate8  [128]int8
    667 } /* _types.h:75:3 */
    668 
    669 // Tell sys/endian.h we have MD variants of the swap macros.
    670 
    671 // Note that these macros evaluate their arguments several times.
    672 
    673 // Public names
    674 
    675 // These are specified to be function-like macros to match the spec
    676 
    677 // POSIX names
    678 
    679 // original BSD names
    680 
    681 // these were exposed here before
    682 
    683 // ancient stuff
    684 
    685 type U_char = uint8   /* types.h:51:23 */
    686 type U_short = uint16 /* types.h:52:24 */
    687 type U_int = uint32   /* types.h:53:22 */
    688 type U_long = uint32  /* types.h:54:23 */
    689 
    690 type Unchar = uint8  /* types.h:56:23 */ // Sys V compatibility
    691 type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility
    692 type Uint = uint32   /* types.h:58:22 */ // Sys V compatibility
    693 type Ulong = uint32  /* types.h:59:23 */ // Sys V compatibility
    694 
    695 type Cpuid_t = X__cpuid_t       /* types.h:61:19 */ // CPU id
    696 type Register_t = X__register_t /* types.h:62:22 */ // register-sized type
    697 
    698 // XXX The exact-width bit types should only be exposed if __BSD_VISIBLE
    699 //     but the rest of the includes are not ready for that yet.
    700 
    701 type Int8_t = X__int8_t /* types.h:75:19 */
    702 
    703 type Uint8_t = X__uint8_t /* types.h:80:20 */
    704 
    705 type Int16_t = X__int16_t /* types.h:85:20 */
    706 
    707 type Uint16_t = X__uint16_t /* types.h:90:21 */
    708 
    709 type Int32_t = X__int32_t /* types.h:95:20 */
    710 
    711 type Uint32_t = X__uint32_t /* types.h:100:21 */
    712 
    713 type Int64_t = X__int64_t /* types.h:105:20 */
    714 
    715 type Uint64_t = X__uint64_t /* types.h:110:21 */
    716 
    717 // BSD-style unsigned bits types
    718 type U_int8_t = X__uint8_t   /* types.h:114:19 */
    719 type U_int16_t = X__uint16_t /* types.h:115:20 */
    720 type U_int32_t = X__uint32_t /* types.h:116:20 */
    721 type U_int64_t = X__uint64_t /* types.h:117:20 */
    722 
    723 // quads, deprecated in favor of 64 bit int types
    724 type Quad_t = X__int64_t    /* types.h:120:19 */
    725 type U_quad_t = X__uint64_t /* types.h:121:20 */
    726 
    727 // VM system types
    728 type Vaddr_t = X__vaddr_t /* types.h:125:19 */
    729 type Paddr_t = X__paddr_t /* types.h:126:19 */
    730 type Vsize_t = X__vsize_t /* types.h:127:19 */
    731 type Psize_t = X__psize_t /* types.h:128:19 */
    732 
    733 // Standard system types
    734 type Blkcnt_t = X__blkcnt_t       /* types.h:132:20 */ // blocks allocated for file
    735 type Blksize_t = X__blksize_t     /* types.h:133:21 */ // optimal blocksize for I/O
    736 type Caddr_t = uintptr            /* types.h:134:14 */ // core address
    737 type Daddr32_t = X__int32_t       /* types.h:135:19 */ // 32-bit disk address
    738 type Daddr_t = X__int64_t         /* types.h:136:19 */ // 64-bit disk address
    739 type Dev_t = X__dev_t             /* types.h:137:18 */ // device number
    740 type Fixpt_t = X__fixpt_t         /* types.h:138:19 */ // fixed point number
    741 type Gid_t = X__gid_t             /* types.h:139:18 */ // group id
    742 type Id_t = X__id_t               /* types.h:140:17 */ // may contain pid, uid or gid
    743 type Ino_t = X__ino_t             /* types.h:141:18 */ // inode number
    744 type Key_t = X__key_t             /* types.h:142:18 */ // IPC key (for Sys V IPC)
    745 type Mode_t = X__mode_t           /* types.h:143:18 */ // permissions
    746 type Nlink_t = X__nlink_t         /* types.h:144:19 */ // link count
    747 type Rlim_t = X__rlim_t           /* types.h:145:18 */ // resource limit
    748 type Segsz_t = X__segsz_t         /* types.h:146:19 */ // segment size
    749 type Uid_t = X__uid_t             /* types.h:147:18 */ // user id
    750 type Useconds_t = X__useconds_t   /* types.h:148:22 */ // microseconds
    751 type Suseconds_t = X__suseconds_t /* types.h:149:23 */ // microseconds (signed)
    752 type Fsblkcnt_t = X__fsblkcnt_t   /* types.h:150:22 */ // file system block count
    753 type Fsfilcnt_t = X__fsfilcnt_t   /* types.h:151:22 */ // file system file count
    754 
    755 // The following types may be defined in multiple header files.
    756 type Clock_t = X__clock_t /* types.h:158:19 */
    757 
    758 type Clockid_t = X__clockid_t /* types.h:163:21 */
    759 
    760 type Pid_t = X__pid_t /* types.h:168:18 */
    761 
    762 type Ssize_t = X__ssize_t /* types.h:178:19 */
    763 
    764 type Time_t = X__time_t /* types.h:183:18 */
    765 
    766 type Timer_t = X__timer_t /* types.h:188:19 */
    767 
    768 type Off_t = X__off_t /* types.h:193:18 */
    769 
    770 // Major, minor numbers, dev_t's.
    771 
    772 // File status flags: these are used by open(2), fcntl(2).
    773 // They are also used (indirectly) in the kernel file structure f_flags,
    774 // which is a superset of the open/fcntl flags.  Open flags and f_flags
    775 // are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags).
    776 // Open/fcntl flags begin with O_; kernel-internal flags begin with F.
    777 // open-only flags
    778 
    779 // Kernel encoding of open mode; separate read and write bits that are
    780 // independently testable: 1 greater than the above.
    781 //
    782 // XXX
    783 // FREAD and FWRITE are excluded from the #ifdef _KERNEL so that TIOCFLUSH,
    784 // which was documented to use FREAD/FWRITE, continues to work.
    785 
    786 // POSIX 1003.1 specifies a higher granularity for synchronous operations
    787 // than we support.  Since synchronicity is all or nothing in OpenBSD
    788 // we just define these to be the same as O_SYNC.
    789 
    790 // defined by POSIX 1003.1; BSD default, this bit is not required
    791 
    792 // defined by POSIX Issue 7
    793 
    794 // The O_* flags used to have only F* names, which were used in the kernel
    795 // and by fcntl.  We retain the F* names for the kernel f_flags field
    796 // and for backward compatibility for fcntl.
    797 
    798 // Constants used for fcntl(2)
    799 
    800 // command values
    801 
    802 // file descriptor flags (F_GETFD, F_SETFD)
    803 
    804 // record locking flags (F_GETLK, F_SETLK, F_SETLKW)
    805 
    806 // Advisory file segment locking data type -
    807 // information passed to system by user
    808 type Flock = struct {
    809 	Fl_start  Off_t
    810 	Fl_len    Off_t
    811 	Fl_pid    Pid_t
    812 	Fl_type   int16
    813 	Fl_whence int16
    814 } /* fcntl.h:180:1 */
    815 
    816 var _ int8 /* gen.c:2:13: */