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