github.com/afumu/libc@v0.0.6/sys/random/random_openbsd_386.go (about) 1 // Code generated by 'ccgo sys/random/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 sys/random/random_freebsd_386.go -pkgname random', DO NOT EDIT. 2 3 package random 4 5 import ( 6 "math" 7 "reflect" 8 "sync/atomic" 9 "unsafe" 10 ) 11 12 var _ = math.Pi 13 var _ reflect.Kind 14 var _ atomic.Value 15 var _ unsafe.Pointer 16 17 const ( 18 BIG_ENDIAN = 4321 // _endian.h:70:1: 19 BYTE_ORDER = 1234 // _endian.h:72:1: 20 FD_SETSIZE = 1024 // select.h:61:1: 21 GRND_INSECURE = 0x4 // random.h:160:1: 22 GRND_NONBLOCK = 0x1 // random.h:158:1: 23 GRND_RANDOM = 0x2 // random.h:159:1: 24 LITTLE_ENDIAN = 1234 // _endian.h:69:1: 25 PDP_ENDIAN = 3412 // _endian.h:71:1: 26 X_ACCMODE_T_DECLARED = 0 // types.h:166:1: 27 X_BIG_ENDIAN = 4321 // _endian.h:47:1: 28 X_BLKCNT_T_DECLARED = 0 // types.h:90:1: 29 X_BLKSIZE_T_DECLARED = 0 // types.h:81:1: 30 X_BYTE_ORDER = 1234 // _endian.h:40:1: 31 X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1: 32 X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1: 33 X_CLOCKID_T_DECLARED = 0 // types.h:100:1: 34 X_CLOCK_T_DECLARED = 0 // types.h:95:1: 35 X_DEV_T_DECLARED = 0 // types.h:108:1: 36 X_FFLAGS_T_DECLARED = 0 // types.h:113:1: 37 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 38 X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1: 39 X_FTRUNCATE_DECLARED = 0 // types.h:417:1: 40 X_GID_T_DECLARED = 0 // types.h:126:1: 41 X_ID_T_DECLARED = 0 // types.h:141:1: 42 X_ILP32 = 1 // <predefined>:1:1: 43 X_INO_T_DECLARED = 0 // types.h:146:1: 44 X_INT16_T_DECLARED = 0 // _stdint.h:42:1: 45 X_INT32_T_DECLARED = 0 // _stdint.h:47:1: 46 X_INT64_T_DECLARED = 0 // _stdint.h:52:1: 47 X_INT8_T_DECLARED = 0 // _stdint.h:37:1: 48 X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1: 49 X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1: 50 X_IN_ADDR_T_DECLARED = 0 // types.h:131:1: 51 X_IN_PORT_T_DECLARED = 0 // types.h:136:1: 52 X_KEY_T_DECLARED = 0 // types.h:151:1: 53 X_LITTLE_ENDIAN = 1234 // _endian.h:46:1: 54 X_LSEEK_DECLARED = 0 // types.h:421:1: 55 X_LWPID_T_DECLARED = 0 // types.h:156:1: 56 X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1: 57 X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1: 58 X_MACHINE__TYPES_H_ = 0 // _types.h:42:1: 59 X_MMAP_DECLARED = 0 // types.h:425:1: 60 X_MODE_T_DECLARED = 0 // types.h:161:1: 61 X_MQD_T_DECLARED = 0 // types.h:227:1: 62 X_NLINK_T_DECLARED = 0 // types.h:171:1: 63 X_Nonnull = 0 // cdefs.h:790:1: 64 X_Null_unspecified = 0 // cdefs.h:792:1: 65 X_Nullable = 0 // cdefs.h:791:1: 66 X_OFF64_T_DECLARED = 0 // types.h:181:1: 67 X_OFF_T_DECLARED = 0 // types.h:176:1: 68 X_PDP_ENDIAN = 3412 // _endian.h:48:1: 69 X_PID_T_DECLARED = 0 // types.h:186:1: 70 X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1: 71 X_QUAD_HIGHWORD = 1 // _endian.h:55:1: 72 X_QUAD_LOWWORD = 0 // _endian.h:56:1: 73 X_RLIM_T_DECLARED = 0 // types.h:193:1: 74 X_SELECT_DECLARED = 0 // select.h:103:1: 75 X_SIGSET_T_DECLARED = 0 // select.h:50:1: 76 X_SIG_MAXSIG = 128 // _sigset.h:47:1: 77 X_SIG_WORDS = 4 // _sigset.h:46:1: 78 X_SIZE_T_DECLARED = 0 // types.h:202:1: 79 X_SSIZE_T_DECLARED = 0 // types.h:207:1: 80 X_SUSECONDS_T_DECLARED = 0 // types.h:212:1: 81 X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1: 82 X_SYS_RANDOM_H_ = 0 // random.h:32:1: 83 X_SYS_SELECT_H_ = 0 // select.h:35:1: 84 X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1: 85 X_SYS_TYPES_H_ = 0 // types.h:41:1: 86 X_SYS__ENDIAN_H_ = 0 // _endian.h:33:1: 87 X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1: 88 X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1: 89 X_SYS__STDINT_H_ = 0 // _stdint.h:33:1: 90 X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1: 91 X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1: 92 X_SYS__TYPES_H_ = 0 // _types.h:32:1: 93 X_TIMER_T_DECLARED = 0 // types.h:222:1: 94 X_TIME_T_DECLARED = 0 // types.h:217:1: 95 X_TRUNCATE_DECLARED = 0 // types.h:429:1: 96 X_UID_T_DECLARED = 0 // types.h:234:1: 97 X_UINT16_T_DECLARED = 0 // _stdint.h:62:1: 98 X_UINT32_T_DECLARED = 0 // _stdint.h:67:1: 99 X_UINT64_T_DECLARED = 0 // _stdint.h:72:1: 100 X_UINT8_T_DECLARED = 0 // _stdint.h:57:1: 101 X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1: 102 X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1: 103 X_USECONDS_T_DECLARED = 0 // types.h:239:1: 104 I386 = 1 // <predefined>:335:1: 105 Unix = 1 // <predefined>:336:1: 106 ) 107 108 type Ptrdiff_t = int32 /* <builtin>:3:26 */ 109 110 type Size_t = uint32 /* <builtin>:9:23 */ 111 112 type Wchar_t = int32 /* <builtin>:15:24 */ 113 114 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 115 type X__float128 = float64 /* <builtin>:47:21 */ 116 117 // - 118 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 119 // 120 // Copyright (c) 2000-2015, 2017 Mark R. V. Murray 121 // All rights reserved. 122 // 123 // Redistribution and use in source and binary forms, with or without 124 // modification, are permitted provided that the following conditions 125 // are met: 126 // 1. Redistributions of source code must retain the above copyright 127 // notice, this list of conditions and the following disclaimer 128 // in this position and unchanged. 129 // 2. Redistributions in binary form must reproduce the above copyright 130 // notice, this list of conditions and the following disclaimer in the 131 // documentation and/or other materials provided with the distribution. 132 // 133 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 134 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 135 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 136 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 137 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 138 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 139 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 140 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 141 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 142 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 143 // 144 // $FreeBSD$ 145 146 // - 147 // SPDX-License-Identifier: BSD-3-Clause 148 // 149 // Copyright (c) 1982, 1986, 1991, 1993, 1994 150 // The Regents of the University of California. All rights reserved. 151 // (c) UNIX System Laboratories, Inc. 152 // All or some portions of this file are derived from material licensed 153 // to the University of California by American Telephone and Telegraph 154 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 155 // the permission of UNIX System Laboratories, Inc. 156 // 157 // Redistribution and use in source and binary forms, with or without 158 // modification, are permitted provided that the following conditions 159 // are met: 160 // 1. Redistributions of source code must retain the above copyright 161 // notice, this list of conditions and the following disclaimer. 162 // 2. Redistributions in binary form must reproduce the above copyright 163 // notice, this list of conditions and the following disclaimer in the 164 // documentation and/or other materials provided with the distribution. 165 // 3. Neither the name of the University nor the names of its contributors 166 // may be used to endorse or promote products derived from this software 167 // without specific prior written permission. 168 // 169 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 170 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 171 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 172 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 173 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 174 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 175 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 176 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 177 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 178 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 179 // SUCH DAMAGE. 180 // 181 // @(#)types.h 8.6 (Berkeley) 2/19/95 182 // $FreeBSD$ 183 184 // - 185 // SPDX-License-Identifier: BSD-3-Clause 186 // 187 // Copyright (c) 1991, 1993 188 // The Regents of the University of California. All rights reserved. 189 // 190 // This code is derived from software contributed to Berkeley by 191 // Berkeley Software Design, Inc. 192 // 193 // Redistribution and use in source and binary forms, with or without 194 // modification, are permitted provided that the following conditions 195 // are met: 196 // 1. Redistributions of source code must retain the above copyright 197 // notice, this list of conditions and the following disclaimer. 198 // 2. Redistributions in binary form must reproduce the above copyright 199 // notice, this list of conditions and the following disclaimer in the 200 // documentation and/or other materials provided with the distribution. 201 // 3. Neither the name of the University nor the names of its contributors 202 // may be used to endorse or promote products derived from this software 203 // without specific prior written permission. 204 // 205 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 206 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 207 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 208 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 209 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 210 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 211 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 212 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 213 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 214 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 215 // SUCH DAMAGE. 216 // 217 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 218 // $FreeBSD$ 219 220 // Testing against Clang-specific extensions. 221 222 // This code has been put in place to help reduce the addition of 223 // compiler specific defines in FreeBSD code. It helps to aid in 224 // having a compiler-agnostic source tree. 225 226 // Compiler memory barriers, specific to gcc and clang. 227 228 // XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced 229 230 // Macro to test if we're using a specific version of gcc or later. 231 232 // The __CONCAT macro is used to concatenate parts of symbol names, e.g. 233 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. 234 // The __CONCAT macro is a bit tricky to use if it must work in non-ANSI 235 // mode -- there must be no spaces between its arguments, and for nested 236 // __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also 237 // concatenate double-quoted strings produced by the __STRING macro, but 238 // this only works with ANSI C. 239 // 240 // __XSTRING is like __STRING, but it expands any macros in its argument 241 // first. It is only available with ANSI C. 242 243 // Compiler-dependent macros to help declare dead (non-returning) and 244 // pure (no side effects) functions, and unused variables. They are 245 // null except for versions of gcc that are known to support the features 246 // properly (old versions of gcc-2 supported the dead and pure features 247 // in a different (wrong) way). If we do not provide an implementation 248 // for a given compiler, let the compile fail if it is told to use 249 // a feature that we cannot live without. 250 251 // Keywords added in C11. 252 253 // Emulation of C11 _Generic(). Unlike the previously defined C11 254 // keywords, it is not possible to implement this using exactly the same 255 // syntax. Therefore implement something similar under the name 256 // __generic(). Unlike _Generic(), this macro can only distinguish 257 // between a single type, so it requires nested invocations to 258 // distinguish multiple cases. 259 260 // C99 Static array indices in function parameter declarations. Syntax such as: 261 // void bar(int myArray[static 10]); 262 // is allowed in C99 but not in C++. Define __min_size appropriately so 263 // headers using it can be compiled in either language. Use like this: 264 // void bar(int myArray[__min_size(10)]); 265 266 // XXX: should use `#if __STDC_VERSION__ < 199901'. 267 268 // C++11 exposes a load of C99 stuff 269 270 // GCC 2.95 provides `__restrict' as an extension to C90 to support the 271 // C99-specific `restrict' type qualifier. We happen to use `__restrict' as 272 // a way to define the `restrict' type qualifier without disturbing older 273 // software that is unaware of C99 keywords. 274 275 // GNU C version 2.96 adds explicit branch prediction so that 276 // the CPU back-end can hint the processor and also so that 277 // code blocks can be reordered such that the predicted path 278 // sees a more linear flow, thus improving cache behavior, etc. 279 // 280 // The following two macros provide us with a way to utilize this 281 // compiler feature. Use __predict_true() if you expect the expression 282 // to evaluate to true, and __predict_false() if you expect the 283 // expression to evaluate to false. 284 // 285 // A few notes about usage: 286 // 287 // * Generally, __predict_false() error condition checks (unless 288 // you have some _strong_ reason to do otherwise, in which case 289 // document it), and/or __predict_true() `no-error' condition 290 // checks, assuming you want to optimize for the no-error case. 291 // 292 // * Other than that, if you don't know the likelihood of a test 293 // succeeding from empirical or other `hard' evidence, don't 294 // make predictions. 295 // 296 // * These are meant to be used in places that are run `a lot'. 297 // It is wasteful to make predictions in code that is run 298 // seldomly (e.g. at subsystem initialization time) as the 299 // basic block reordering that this affects can often generate 300 // larger code. 301 302 // We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h> 303 // require it. 304 305 // Given the pointer x to the member m of the struct s, return 306 // a pointer to the containing structure. When using GCC, we first 307 // assign pointer x to a local variable, to check that its type is 308 // compatible with member m. 309 310 // Compiler-dependent macros to declare that functions take printf-like 311 // or scanf-like arguments. They are null except for versions of gcc 312 // that are known to support the features properly (old versions of gcc-2 313 // didn't permit keeping the keywords out of the application namespace). 314 315 // Compiler-dependent macros that rely on FreeBSD-specific extensions. 316 317 // Embed the rcs id of a source file in the resulting library. Note that in 318 // more recent ELF binutils, we use .ident allowing the ID to be stripped. 319 // Usage: 320 // __FBSDID("$FreeBSD$"); 321 322 // - 323 // The following definitions are an extension of the behavior originally 324 // implemented in <sys/_posix.h>, but with a different level of granularity. 325 // POSIX.1 requires that the macros we test be defined before any standard 326 // header file is included. 327 // 328 // Here's a quick run-down of the versions: 329 // defined(_POSIX_SOURCE) 1003.1-1988 330 // _POSIX_C_SOURCE == 1 1003.1-1990 331 // _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option 332 // _POSIX_C_SOURCE == 199309 1003.1b-1993 333 // _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995, 334 // and the omnibus ISO/IEC 9945-1: 1996 335 // _POSIX_C_SOURCE == 200112 1003.1-2001 336 // _POSIX_C_SOURCE == 200809 1003.1-2008 337 // 338 // In addition, the X/Open Portability Guide, which is now the Single UNIX 339 // Specification, defines a feature-test macro which indicates the version of 340 // that specification, and which subsumes _POSIX_C_SOURCE. 341 // 342 // Our macros begin with two underscores to avoid namespace screwage. 343 344 // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1. 345 346 // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2. 347 348 // Deal with various X/Open Portability Guides and Single UNIX Spec. 349 350 // Deal with all versions of POSIX. The ordering relative to the tests above is 351 // important. 352 // - 353 // Deal with _ANSI_SOURCE: 354 // If it is defined, and no other compilation environment is explicitly 355 // requested, then define our internal feature-test macros to zero. This 356 // makes no difference to the preprocessor (undefined symbols in preprocessing 357 // expressions are defined to have value zero), but makes it more convenient for 358 // a test program to print out the values. 359 // 360 // If a program mistakenly defines _ANSI_SOURCE and some other macro such as 361 // _POSIX_C_SOURCE, we will assume that it wants the broader compilation 362 // environment (and in fact we will never get here). 363 364 // User override __EXT1_VISIBLE 365 366 // Old versions of GCC use non-standard ARM arch symbols; acle-compat.h 367 // translates them to __ARM_ARCH and the modern feature symbols defined by ARM. 368 369 // Nullability qualifiers: currently only supported by Clang. 370 371 // Type Safety Checking 372 // 373 // Clang provides additional attributes to enable checking type safety 374 // properties that cannot be enforced by the C type system. 375 376 // Lock annotations. 377 // 378 // Clang provides support for doing basic thread-safety tests at 379 // compile-time, by marking which locks will/should be held when 380 // entering/leaving a functions. 381 // 382 // Furthermore, it is also possible to annotate variables and structure 383 // members to enforce that they are only accessed when certain locks are 384 // held. 385 386 // Structure implements a lock. 387 388 // Function acquires an exclusive or shared lock. 389 390 // Function attempts to acquire an exclusive or shared lock. 391 392 // Function releases a lock. 393 394 // Function asserts that an exclusive or shared lock is held. 395 396 // Function requires that an exclusive or shared lock is or is not held. 397 398 // Function should not be analyzed. 399 400 // Function or variable should not be sanitized, e.g., by AddressSanitizer. 401 // GCC has the nosanitize attribute, but as a function attribute only, and 402 // warns on use as a variable attribute. 403 404 // Guard variables and structure members by lock. 405 406 // Alignment builtins for better type checking and improved code generation. 407 // Provide fallback versions for other compilers (GCC/Clang < 10): 408 409 // Machine type dependent parameters. 410 // - 411 // This file is in the public domain. 412 // $FreeBSD$ 413 414 // - 415 // SPDX-License-Identifier: BSD-3-Clause 416 // 417 // Copyright (c) 1987, 1991 Regents of the University of California. 418 // All rights reserved. 419 // 420 // Redistribution and use in source and binary forms, with or without 421 // modification, are permitted provided that the following conditions 422 // are met: 423 // 1. Redistributions of source code must retain the above copyright 424 // notice, this list of conditions and the following disclaimer. 425 // 2. Redistributions in binary form must reproduce the above copyright 426 // notice, this list of conditions and the following disclaimer in the 427 // documentation and/or other materials provided with the distribution. 428 // 3. Neither the name of the University nor the names of its contributors 429 // may be used to endorse or promote products derived from this software 430 // without specific prior written permission. 431 // 432 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 433 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 434 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 435 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 436 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 437 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 438 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 439 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 440 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 441 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 442 // SUCH DAMAGE. 443 // 444 // @(#)endian.h 7.8 (Berkeley) 4/3/91 445 // $FreeBSD$ 446 447 // - 448 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 449 // 450 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 451 // All rights reserved. 452 // 453 // Redistribution and use in source and binary forms, with or without 454 // modification, are permitted provided that the following conditions 455 // are met: 456 // 1. Redistributions of source code must retain the above copyright 457 // notice, this list of conditions and the following disclaimer. 458 // 2. Redistributions in binary form must reproduce the above copyright 459 // notice, this list of conditions and the following disclaimer in the 460 // documentation and/or other materials provided with the distribution. 461 // 462 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 463 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 464 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 465 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 466 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 467 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 468 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 469 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 470 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 471 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 472 // SUCH DAMAGE. 473 // 474 // $FreeBSD$ 475 476 // - 477 // SPDX-License-Identifier: BSD-3-Clause 478 // 479 // Copyright (c) 1991, 1993 480 // The Regents of the University of California. All rights reserved. 481 // 482 // This code is derived from software contributed to Berkeley by 483 // Berkeley Software Design, Inc. 484 // 485 // Redistribution and use in source and binary forms, with or without 486 // modification, are permitted provided that the following conditions 487 // are met: 488 // 1. Redistributions of source code must retain the above copyright 489 // notice, this list of conditions and the following disclaimer. 490 // 2. Redistributions in binary form must reproduce the above copyright 491 // notice, this list of conditions and the following disclaimer in the 492 // documentation and/or other materials provided with the distribution. 493 // 3. Neither the name of the University nor the names of its contributors 494 // may be used to endorse or promote products derived from this software 495 // without specific prior written permission. 496 // 497 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 498 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 499 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 500 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 501 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 502 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 503 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 504 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 505 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 506 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 507 // SUCH DAMAGE. 508 // 509 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 510 // $FreeBSD$ 511 512 // - 513 // This file is in the public domain. 514 // $FreeBSD$ 515 516 // - 517 // SPDX-License-Identifier: BSD-4-Clause 518 // 519 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 520 // Copyright (c) 1990, 1993 521 // The Regents of the University of California. All rights reserved. 522 // 523 // Redistribution and use in source and binary forms, with or without 524 // modification, are permitted provided that the following conditions 525 // are met: 526 // 1. Redistributions of source code must retain the above copyright 527 // notice, this list of conditions and the following disclaimer. 528 // 2. Redistributions in binary form must reproduce the above copyright 529 // notice, this list of conditions and the following disclaimer in the 530 // documentation and/or other materials provided with the distribution. 531 // 3. All advertising materials mentioning features or use of this software 532 // must display the following acknowledgement: 533 // This product includes software developed by the University of 534 // California, Berkeley and its contributors. 535 // 4. Neither the name of the University nor the names of its contributors 536 // may be used to endorse or promote products derived from this software 537 // without specific prior written permission. 538 // 539 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 540 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 541 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 542 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 543 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 544 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 545 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 546 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 547 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 548 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 549 // SUCH DAMAGE. 550 // 551 // From: @(#)ansi.h 8.2 (Berkeley) 1/4/94 552 // From: @(#)types.h 8.3 (Berkeley) 1/5/94 553 // $FreeBSD$ 554 555 // - 556 // This file is in the public domain. 557 // $FreeBSD$ 558 559 // - 560 // SPDX-License-Identifier: BSD-3-Clause 561 // 562 // Copyright (c) 1988, 1993 563 // The Regents of the University of California. All rights reserved. 564 // 565 // Redistribution and use in source and binary forms, with or without 566 // modification, are permitted provided that the following conditions 567 // are met: 568 // 1. Redistributions of source code must retain the above copyright 569 // notice, this list of conditions and the following disclaimer. 570 // 2. Redistributions in binary form must reproduce the above copyright 571 // notice, this list of conditions and the following disclaimer in the 572 // documentation and/or other materials provided with the distribution. 573 // 3. Neither the name of the University nor the names of its contributors 574 // may be used to endorse or promote products derived from this software 575 // without specific prior written permission. 576 // 577 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 578 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 579 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 580 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 581 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 582 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 583 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 584 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 585 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 586 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 587 // SUCH DAMAGE. 588 // 589 // @(#)limits.h 8.3 (Berkeley) 1/4/94 590 // $FreeBSD$ 591 592 // According to ANSI (section 2.2.4.2), the values below must be usable by 593 // #if preprocessing directives. Additionally, the expression must have the 594 // same type as would an expression that is an object of the corresponding 595 // type converted according to the integral promotions. The subtraction for 596 // INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an 597 // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2). 598 599 // max value for an unsigned long long 600 601 // Minimum signal stack size. 602 603 // Basic types upon which most other types are built. 604 type X__int8_t = int8 /* _types.h:55:22 */ 605 type X__uint8_t = uint8 /* _types.h:56:24 */ 606 type X__int16_t = int16 /* _types.h:57:17 */ 607 type X__uint16_t = uint16 /* _types.h:58:25 */ 608 type X__int32_t = int32 /* _types.h:59:15 */ 609 type X__uint32_t = uint32 /* _types.h:60:23 */ 610 611 type X__int64_t = int64 /* _types.h:66:20 */ 612 613 type X__uint64_t = uint64 /* _types.h:68:28 */ 614 615 // Standard type definitions. 616 type X__clock_t = uint32 /* _types.h:84:23 */ 617 type X__critical_t = X__int32_t /* _types.h:85:19 */ 618 type X__double_t = float64 /* _types.h:87:21 */ 619 type X__float_t = float64 /* _types.h:88:21 */ 620 type X__intfptr_t = X__int32_t /* _types.h:90:19 */ 621 type X__intptr_t = X__int32_t /* _types.h:91:19 */ 622 type X__intmax_t = X__int64_t /* _types.h:93:19 */ 623 type X__int_fast8_t = X__int32_t /* _types.h:94:19 */ 624 type X__int_fast16_t = X__int32_t /* _types.h:95:19 */ 625 type X__int_fast32_t = X__int32_t /* _types.h:96:19 */ 626 type X__int_fast64_t = X__int64_t /* _types.h:97:19 */ 627 type X__int_least8_t = X__int8_t /* _types.h:98:18 */ 628 type X__int_least16_t = X__int16_t /* _types.h:99:19 */ 629 type X__int_least32_t = X__int32_t /* _types.h:100:19 */ 630 type X__int_least64_t = X__int64_t /* _types.h:101:19 */ 631 type X__ptrdiff_t = X__int32_t /* _types.h:112:19 */ 632 type X__register_t = X__int32_t /* _types.h:113:19 */ 633 type X__segsz_t = X__int32_t /* _types.h:114:19 */ 634 type X__size_t = X__uint32_t /* _types.h:115:20 */ 635 type X__ssize_t = X__int32_t /* _types.h:116:19 */ 636 type X__time_t = X__int32_t /* _types.h:117:19 */ 637 type X__uintfptr_t = X__uint32_t /* _types.h:118:20 */ 638 type X__uintptr_t = X__uint32_t /* _types.h:119:20 */ 639 type X__uintmax_t = X__uint64_t /* _types.h:121:20 */ 640 type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */ 641 type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */ 642 type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */ 643 type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */ 644 type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */ 645 type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */ 646 type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */ 647 type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */ 648 type X__u_register_t = X__uint32_t /* _types.h:136:20 */ 649 type X__vm_offset_t = X__uint32_t /* _types.h:137:20 */ 650 type X__vm_paddr_t = X__uint64_t /* _types.h:138:20 */ 651 type X__vm_size_t = X__uint32_t /* _types.h:139:20 */ 652 type X___wchar_t = int32 /* _types.h:141:14 */ 653 654 // Standard type definitions. 655 type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size 656 type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count 657 type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()... 658 type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags 659 type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */ 660 type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */ 661 type X__gid_t = X__uint32_t /* _types.h:46:20 */ 662 type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t 663 type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number 664 type X__key_t = int32 /* _types.h:49:15 */ // IPC key (for Sys V IPC) 665 type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP) 666 type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions 667 type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions 668 type X__nl_item = int32 /* _types.h:53:14 */ 669 type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count 670 type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset 671 type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias) 672 type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group] 673 type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally 674 // signed, because of legacy code 675 // that uses -1 for RLIM_INFINITY 676 type X__sa_family_t = X__uint8_t /* _types.h:61:19 */ 677 type X__socklen_t = X__uint32_t /* _types.h:62:20 */ 678 type X__suseconds_t = int32 /* _types.h:63:15 */ // microseconds (signed) 679 type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()... 680 type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()... 681 type X__uid_t = X__uint32_t /* _types.h:66:20 */ 682 type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned) 683 type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset. 684 type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset. 685 type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier. 686 type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc 687 688 // Unusual type definitions. 689 // rune_t is declared to be an “int” instead of the more natural 690 // “unsigned long” or “long”. Two things are happening here. It is not 691 // unsigned so that EOF (-1) can be naturally assigned to it and used. Also, 692 // it looks like 10646 will be a 31 bit standard. This means that if your 693 // ints cannot hold 32 bits, you will be in trouble. The reason an int was 694 // chosen over a long is that the is*() and to*() routines take ints (says 695 // ANSI C), but they use __ct_rune_t instead of int. 696 // 697 // NOTE: rune_t is not covered by ANSI nor other standards, and should not 698 // be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and 699 // rune_t must be the same type. Also, wint_t should be able to hold all 700 // members of the largest character set plus one extra value (WEOF), and 701 // must be at least 16 bits. 702 type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs 703 type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above) 704 type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above) 705 706 // Clang already provides these types as built-ins, but only in C++ mode. 707 type X__char16_t = X__uint_least16_t /* _types.h:97:26 */ 708 type X__char32_t = X__uint_least32_t /* _types.h:98:26 */ 709 // In C++11, char16_t and char32_t are built-in types. 710 711 type X__max_align_t = struct { 712 F__max_align1 int64 713 F__max_align2 float64 714 } /* _types.h:111:3 */ 715 716 type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number 717 718 type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number 719 720 // mbstate_t is an opaque object to keep conversion state during multibyte 721 // stream conversions. 722 type X__mbstate_t = struct { 723 F__ccgo_pad1 [0]uint32 724 F__mbstate8 [128]int8 725 } /* _types.h:124:3 */ 726 727 type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */ 728 729 // Types for varargs. These are all provided by builtin types these 730 // days, so centralize their definition. 731 type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc 732 type X__gnuc_va_list = X__va_list /* _types.h:140:20 */ 733 type Pthread_once = struct { 734 Fstate int32 735 Fmutex Pthread_mutex_t 736 } /* _pthreadtypes.h:52:1 */ 737 738 // Primitive system data type definitions required by P1003.1c. 739 // 740 // Note that P1003.1c specifies that there are no defined comparison 741 // or assignment operators for the types pthread_attr_t, pthread_cond_t, 742 // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t. 743 type Pthread_t = uintptr /* _pthreadtypes.h:67:26 */ 744 type Pthread_attr_t = uintptr /* _pthreadtypes.h:70:30 */ 745 type Pthread_mutex_t = uintptr /* _pthreadtypes.h:71:31 */ 746 type Pthread_mutexattr_t = uintptr /* _pthreadtypes.h:72:35 */ 747 type Pthread_cond_t = uintptr /* _pthreadtypes.h:73:30 */ 748 type Pthread_condattr_t = uintptr /* _pthreadtypes.h:74:34 */ 749 type Pthread_key_t = int32 /* _pthreadtypes.h:75:20 */ 750 type Pthread_once_t = Pthread_once /* _pthreadtypes.h:76:30 */ 751 type Pthread_rwlock_t = uintptr /* _pthreadtypes.h:77:32 */ 752 type Pthread_rwlockattr_t = uintptr /* _pthreadtypes.h:78:35 */ 753 type Pthread_barrier_t = uintptr /* _pthreadtypes.h:79:33 */ 754 type Pthread_barrierattr_t = uintptr /* _pthreadtypes.h:80:36 */ 755 type Pthread_spinlock_t = uintptr /* _pthreadtypes.h:81:33 */ 756 757 // Additional type definitions: 758 // 759 // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for 760 // use in header symbols. 761 type Pthread_addr_t = uintptr /* _pthreadtypes.h:89:14 */ 762 type Pthread_startroutine_t = uintptr /* _pthreadtypes.h:90:14 */ 763 764 type U_char = uint8 /* types.h:52:23 */ 765 type U_short = uint16 /* types.h:53:24 */ 766 type U_int = uint32 /* types.h:54:22 */ 767 type U_long = uint32 /* types.h:55:23 */ 768 type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility 769 type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility 770 771 // XXX POSIX sized integrals that should appear only in <sys/stdint.h>. 772 // - 773 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 774 // 775 // Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org> 776 // Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org> 777 // All rights reserved. 778 // 779 // Redistribution and use in source and binary forms, with or without 780 // modification, are permitted provided that the following conditions 781 // are met: 782 // 1. Redistributions of source code must retain the above copyright 783 // notice, this list of conditions and the following disclaimer. 784 // 2. Redistributions in binary form must reproduce the above copyright 785 // notice, this list of conditions and the following disclaimer in the 786 // documentation and/or other materials provided with the distribution. 787 // 788 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 789 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 790 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 791 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 792 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 793 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 794 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 795 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 796 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 797 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 798 // SUCH DAMAGE. 799 // 800 // $FreeBSD$ 801 802 type Int8_t = X__int8_t /* _stdint.h:36:19 */ 803 804 type Int16_t = X__int16_t /* _stdint.h:41:20 */ 805 806 type Int32_t = X__int32_t /* _stdint.h:46:20 */ 807 808 type Int64_t = X__int64_t /* _stdint.h:51:20 */ 809 810 type Uint8_t = X__uint8_t /* _stdint.h:56:20 */ 811 812 type Uint16_t = X__uint16_t /* _stdint.h:61:21 */ 813 814 type Uint32_t = X__uint32_t /* _stdint.h:66:21 */ 815 816 type Uint64_t = X__uint64_t /* _stdint.h:71:21 */ 817 818 type Intptr_t = X__intptr_t /* _stdint.h:76:21 */ 819 type Uintptr_t = X__uintptr_t /* _stdint.h:80:22 */ 820 type Intmax_t = X__intmax_t /* _stdint.h:84:21 */ 821 type Uintmax_t = X__uintmax_t /* _stdint.h:88:22 */ 822 823 type U_int8_t = X__uint8_t /* types.h:67:19 */ // unsigned integrals (deprecated) 824 type U_int16_t = X__uint16_t /* types.h:68:20 */ 825 type U_int32_t = X__uint32_t /* types.h:69:20 */ 826 type U_int64_t = X__uint64_t /* types.h:70:20 */ 827 828 type U_quad_t = X__uint64_t /* types.h:72:20 */ // quads (deprecated) 829 type Quad_t = X__int64_t /* types.h:73:19 */ 830 type Qaddr_t = uintptr /* types.h:74:16 */ 831 832 type Caddr_t = uintptr /* types.h:76:14 */ // core address 833 type C_caddr_t = uintptr /* types.h:77:20 */ // core address, pointer to const 834 835 type Blksize_t = X__blksize_t /* types.h:80:21 */ 836 837 type Cpuwhich_t = X__cpuwhich_t /* types.h:84:22 */ 838 type Cpulevel_t = X__cpulevel_t /* types.h:85:22 */ 839 type Cpusetid_t = X__cpusetid_t /* types.h:86:22 */ 840 841 type Blkcnt_t = X__blkcnt_t /* types.h:89:20 */ 842 843 type Clock_t = X__clock_t /* types.h:94:19 */ 844 845 type Clockid_t = X__clockid_t /* types.h:99:21 */ 846 847 type Critical_t = X__critical_t /* types.h:103:22 */ // Critical section value 848 type Daddr_t = X__daddr_t /* types.h:104:19 */ // disk address 849 850 type Dev_t = X__dev_t /* types.h:107:18 */ // device number or struct cdev 851 852 type Fflags_t = X__fflags_t /* types.h:112:20 */ // file flags 853 854 type Fixpt_t = X__fixpt_t /* types.h:116:19 */ // fixed point number 855 856 type Fsblkcnt_t = X__fsblkcnt_t /* types.h:119:22 */ 857 type Fsfilcnt_t = X__fsfilcnt_t /* types.h:120:22 */ 858 859 type Gid_t = X__gid_t /* types.h:125:18 */ // group id 860 861 type In_addr_t = X__uint32_t /* types.h:130:20 */ // base type for internet address 862 863 type In_port_t = X__uint16_t /* types.h:135:20 */ 864 865 type Id_t = X__id_t /* types.h:140:17 */ // can hold a uid_t or pid_t 866 867 type Ino_t = X__ino_t /* types.h:145:18 */ // inode number 868 869 type Key_t = X__key_t /* types.h:150:18 */ // IPC key (for Sys V IPC) 870 871 type Lwpid_t = X__lwpid_t /* types.h:155:19 */ // Thread ID (a.k.a. LWP) 872 873 type Mode_t = X__mode_t /* types.h:160:18 */ // permissions 874 875 type Accmode_t = X__accmode_t /* types.h:165:21 */ // access permissions 876 877 type Nlink_t = X__nlink_t /* types.h:170:19 */ // link count 878 879 type Off_t = X__off_t /* types.h:175:18 */ // file offset 880 881 type Off64_t = X__off64_t /* types.h:180:19 */ // file offset (alias) 882 883 type Pid_t = X__pid_t /* types.h:185:18 */ // process id 884 885 type Register_t = X__register_t /* types.h:189:22 */ 886 887 type Rlim_t = X__rlim_t /* types.h:192:18 */ // resource limit 888 889 type Sbintime_t = X__int64_t /* types.h:196:19 */ 890 891 type Segsz_t = X__segsz_t /* types.h:198:19 */ 892 893 type Ssize_t = X__ssize_t /* types.h:206:19 */ 894 895 type Suseconds_t = X__suseconds_t /* types.h:211:23 */ // microseconds (signed) 896 897 type Time_t = X__time_t /* types.h:216:18 */ 898 899 type Timer_t = X__timer_t /* types.h:221:19 */ 900 901 type Mqd_t = X__mqd_t /* types.h:226:17 */ 902 903 type U_register_t = X__u_register_t /* types.h:230:24 */ 904 905 type Uid_t = X__uid_t /* types.h:233:18 */ // user id 906 907 type Useconds_t = X__useconds_t /* types.h:238:22 */ // microseconds (unsigned) 908 909 type Cap_ioctl_t = uint32 /* types.h:244:23 */ 910 911 // Types suitable for exporting physical addresses, virtual addresses 912 // (pointers), and memory object sizes from the kernel independent of native 913 // word size. These should be used in place of vm_paddr_t, (u)intptr_t, and 914 // size_t in structs which contain such types that are shared with userspace. 915 type Kpaddr_t = X__uint64_t /* types.h:260:20 */ 916 type Kvaddr_t = X__uint64_t /* types.h:261:20 */ 917 type Ksize_t = X__uint64_t /* types.h:262:20 */ 918 type Kssize_t = X__int64_t /* types.h:263:19 */ 919 920 type Vm_offset_t = X__vm_offset_t /* types.h:265:23 */ 921 type Vm_ooffset_t = X__uint64_t /* types.h:266:20 */ 922 type Vm_paddr_t = X__vm_paddr_t /* types.h:267:22 */ 923 type Vm_pindex_t = X__uint64_t /* types.h:268:20 */ 924 type Vm_size_t = X__vm_size_t /* types.h:269:21 */ 925 926 type Rman_res_t = X__rman_res_t /* types.h:271:25 */ 927 928 // - 929 // SPDX-License-Identifier: BSD-3-Clause 930 // 931 // Copyright (c) 1992, 1993 932 // The Regents of the University of California. All rights reserved. 933 // 934 // Redistribution and use in source and binary forms, with or without 935 // modification, are permitted provided that the following conditions 936 // are met: 937 // 1. Redistributions of source code must retain the above copyright 938 // notice, this list of conditions and the following disclaimer. 939 // 2. Redistributions in binary form must reproduce the above copyright 940 // notice, this list of conditions and the following disclaimer in the 941 // documentation and/or other materials provided with the distribution. 942 // 3. Neither the name of the University nor the names of its contributors 943 // may be used to endorse or promote products derived from this software 944 // without specific prior written permission. 945 // 946 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 947 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 948 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 949 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 950 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 951 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 952 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 953 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 954 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 955 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 956 // SUCH DAMAGE. 957 // 958 // $FreeBSD$ 959 960 // - 961 // SPDX-License-Identifier: BSD-3-Clause 962 // 963 // Copyright (c) 1991, 1993 964 // The Regents of the University of California. All rights reserved. 965 // 966 // This code is derived from software contributed to Berkeley by 967 // Berkeley Software Design, Inc. 968 // 969 // Redistribution and use in source and binary forms, with or without 970 // modification, are permitted provided that the following conditions 971 // are met: 972 // 1. Redistributions of source code must retain the above copyright 973 // notice, this list of conditions and the following disclaimer. 974 // 2. Redistributions in binary form must reproduce the above copyright 975 // notice, this list of conditions and the following disclaimer in the 976 // documentation and/or other materials provided with the distribution. 977 // 3. Neither the name of the University nor the names of its contributors 978 // may be used to endorse or promote products derived from this software 979 // without specific prior written permission. 980 // 981 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 982 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 983 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 984 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 985 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 986 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 987 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 988 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 989 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 990 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 991 // SUCH DAMAGE. 992 // 993 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 994 // $FreeBSD$ 995 996 // - 997 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 998 // 999 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 1000 // All rights reserved. 1001 // 1002 // Redistribution and use in source and binary forms, with or without 1003 // modification, are permitted provided that the following conditions 1004 // are met: 1005 // 1. Redistributions of source code must retain the above copyright 1006 // notice, this list of conditions and the following disclaimer. 1007 // 2. Redistributions in binary form must reproduce the above copyright 1008 // notice, this list of conditions and the following disclaimer in the 1009 // documentation and/or other materials provided with the distribution. 1010 // 1011 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1012 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1013 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1014 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1015 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1016 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1017 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1018 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1019 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1020 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1021 // SUCH DAMAGE. 1022 // 1023 // $FreeBSD$ 1024 1025 // - 1026 // SPDX-License-Identifier: BSD-3-Clause 1027 // 1028 // Copyright (c) 1982, 1986, 1989, 1991, 1993 1029 // The Regents of the University of California. All rights reserved. 1030 // (c) UNIX System Laboratories, Inc. 1031 // All or some portions of this file are derived from material licensed 1032 // to the University of California by American Telephone and Telegraph 1033 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1034 // the permission of UNIX System Laboratories, Inc. 1035 // 1036 // Redistribution and use in source and binary forms, with or without 1037 // modification, are permitted provided that the following conditions 1038 // are met: 1039 // 1. Redistributions of source code must retain the above copyright 1040 // notice, this list of conditions and the following disclaimer. 1041 // 2. Redistributions in binary form must reproduce the above copyright 1042 // notice, this list of conditions and the following disclaimer in the 1043 // documentation and/or other materials provided with the distribution. 1044 // 3. Neither the name of the University nor the names of its contributors 1045 // may be used to endorse or promote products derived from this software 1046 // without specific prior written permission. 1047 // 1048 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1049 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1050 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1051 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1052 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1053 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1054 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1055 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1056 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1057 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1058 // SUCH DAMAGE. 1059 // 1060 // @(#)signal.h 8.4 (Berkeley) 5/4/95 1061 // $FreeBSD$ 1062 1063 // sigset_t macros. 1064 1065 type X__sigset = struct{ F__bits [4]X__uint32_t } /* _sigset.h:53:9 */ 1066 1067 // - 1068 // SPDX-License-Identifier: BSD-3-Clause 1069 // 1070 // Copyright (c) 1992, 1993 1071 // The Regents of the University of California. All rights reserved. 1072 // 1073 // Redistribution and use in source and binary forms, with or without 1074 // modification, are permitted provided that the following conditions 1075 // are met: 1076 // 1. Redistributions of source code must retain the above copyright 1077 // notice, this list of conditions and the following disclaimer. 1078 // 2. Redistributions in binary form must reproduce the above copyright 1079 // notice, this list of conditions and the following disclaimer in the 1080 // documentation and/or other materials provided with the distribution. 1081 // 3. Neither the name of the University nor the names of its contributors 1082 // may be used to endorse or promote products derived from this software 1083 // without specific prior written permission. 1084 // 1085 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1086 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1087 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1088 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1089 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1090 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1091 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1092 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1093 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1094 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1095 // SUCH DAMAGE. 1096 // 1097 // $FreeBSD$ 1098 1099 // - 1100 // SPDX-License-Identifier: BSD-3-Clause 1101 // 1102 // Copyright (c) 1991, 1993 1103 // The Regents of the University of California. All rights reserved. 1104 // 1105 // This code is derived from software contributed to Berkeley by 1106 // Berkeley Software Design, Inc. 1107 // 1108 // Redistribution and use in source and binary forms, with or without 1109 // modification, are permitted provided that the following conditions 1110 // are met: 1111 // 1. Redistributions of source code must retain the above copyright 1112 // notice, this list of conditions and the following disclaimer. 1113 // 2. Redistributions in binary form must reproduce the above copyright 1114 // notice, this list of conditions and the following disclaimer in the 1115 // documentation and/or other materials provided with the distribution. 1116 // 3. Neither the name of the University nor the names of its contributors 1117 // may be used to endorse or promote products derived from this software 1118 // without specific prior written permission. 1119 // 1120 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1121 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1122 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1123 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1124 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1125 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1126 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1127 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1128 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1129 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1130 // SUCH DAMAGE. 1131 // 1132 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1133 // $FreeBSD$ 1134 1135 // - 1136 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 1137 // 1138 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 1139 // All rights reserved. 1140 // 1141 // Redistribution and use in source and binary forms, with or without 1142 // modification, are permitted provided that the following conditions 1143 // are met: 1144 // 1. Redistributions of source code must retain the above copyright 1145 // notice, this list of conditions and the following disclaimer. 1146 // 2. Redistributions in binary form must reproduce the above copyright 1147 // notice, this list of conditions and the following disclaimer in the 1148 // documentation and/or other materials provided with the distribution. 1149 // 1150 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1151 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1152 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1153 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1154 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1155 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1156 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1157 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1158 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1159 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1160 // SUCH DAMAGE. 1161 // 1162 // $FreeBSD$ 1163 1164 // - 1165 // SPDX-License-Identifier: BSD-3-Clause 1166 // 1167 // Copyright (c) 1982, 1986, 1989, 1991, 1993 1168 // The Regents of the University of California. All rights reserved. 1169 // (c) UNIX System Laboratories, Inc. 1170 // All or some portions of this file are derived from material licensed 1171 // to the University of California by American Telephone and Telegraph 1172 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1173 // the permission of UNIX System Laboratories, Inc. 1174 // 1175 // Redistribution and use in source and binary forms, with or without 1176 // modification, are permitted provided that the following conditions 1177 // are met: 1178 // 1. Redistributions of source code must retain the above copyright 1179 // notice, this list of conditions and the following disclaimer. 1180 // 2. Redistributions in binary form must reproduce the above copyright 1181 // notice, this list of conditions and the following disclaimer in the 1182 // documentation and/or other materials provided with the distribution. 1183 // 3. Neither the name of the University nor the names of its contributors 1184 // may be used to endorse or promote products derived from this software 1185 // without specific prior written permission. 1186 // 1187 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1188 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1189 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1190 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1191 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1192 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1193 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1194 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1195 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1196 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1197 // SUCH DAMAGE. 1198 // 1199 // @(#)signal.h 8.4 (Berkeley) 5/4/95 1200 // $FreeBSD$ 1201 1202 // sigset_t macros. 1203 1204 type X__sigset_t = X__sigset /* _sigset.h:55:3 */ 1205 1206 // - 1207 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 1208 // 1209 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 1210 // All rights reserved. 1211 // 1212 // Redistribution and use in source and binary forms, with or without 1213 // modification, are permitted provided that the following conditions 1214 // are met: 1215 // 1. Redistributions of source code must retain the above copyright 1216 // notice, this list of conditions and the following disclaimer. 1217 // 2. Redistributions in binary form must reproduce the above copyright 1218 // notice, this list of conditions and the following disclaimer in the 1219 // documentation and/or other materials provided with the distribution. 1220 // 1221 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1222 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1223 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1224 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1225 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1226 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1227 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1228 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1229 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1230 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1231 // SUCH DAMAGE. 1232 // 1233 // $FreeBSD$ 1234 1235 // - 1236 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 1237 // 1238 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 1239 // All rights reserved. 1240 // 1241 // Redistribution and use in source and binary forms, with or without 1242 // modification, are permitted provided that the following conditions 1243 // are met: 1244 // 1. Redistributions of source code must retain the above copyright 1245 // notice, this list of conditions and the following disclaimer. 1246 // 2. Redistributions in binary form must reproduce the above copyright 1247 // notice, this list of conditions and the following disclaimer in the 1248 // documentation and/or other materials provided with the distribution. 1249 // 1250 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1251 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1252 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1253 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1254 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1255 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1256 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1257 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1258 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1259 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1260 // SUCH DAMAGE. 1261 // 1262 // $FreeBSD$ 1263 1264 // Structure returned by gettimeofday(2) system call, and used in other calls. 1265 type Timeval = struct { 1266 Ftv_sec Time_t 1267 Ftv_usec Suseconds_t 1268 } /* _timeval.h:49:1 */ 1269 1270 // - 1271 // SPDX-License-Identifier: BSD-3-Clause 1272 // 1273 // Copyright (c) 1982, 1986, 1993 1274 // The Regents of the University of California. All rights reserved. 1275 // 1276 // Redistribution and use in source and binary forms, with or without 1277 // modification, are permitted provided that the following conditions 1278 // are met: 1279 // 1. Redistributions of source code must retain the above copyright 1280 // notice, this list of conditions and the following disclaimer. 1281 // 2. Redistributions in binary form must reproduce the above copyright 1282 // notice, this list of conditions and the following disclaimer in the 1283 // documentation and/or other materials provided with the distribution. 1284 // 3. Neither the name of the University nor the names of its contributors 1285 // may be used to endorse or promote products derived from this software 1286 // without specific prior written permission. 1287 // 1288 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1289 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1290 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1291 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1292 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1293 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1294 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1295 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1296 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1297 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1298 // SUCH DAMAGE. 1299 // 1300 // @(#)time.h 8.5 (Berkeley) 5/4/95 1301 // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp 1302 // $FreeBSD$ 1303 1304 // - 1305 // SPDX-License-Identifier: BSD-3-Clause 1306 // 1307 // Copyright (c) 1991, 1993 1308 // The Regents of the University of California. All rights reserved. 1309 // 1310 // This code is derived from software contributed to Berkeley by 1311 // Berkeley Software Design, Inc. 1312 // 1313 // Redistribution and use in source and binary forms, with or without 1314 // modification, are permitted provided that the following conditions 1315 // are met: 1316 // 1. Redistributions of source code must retain the above copyright 1317 // notice, this list of conditions and the following disclaimer. 1318 // 2. Redistributions in binary form must reproduce the above copyright 1319 // notice, this list of conditions and the following disclaimer in the 1320 // documentation and/or other materials provided with the distribution. 1321 // 3. Neither the name of the University nor the names of its contributors 1322 // may be used to endorse or promote products derived from this software 1323 // without specific prior written permission. 1324 // 1325 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1326 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1327 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1328 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1329 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1330 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1331 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1332 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1333 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1334 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1335 // SUCH DAMAGE. 1336 // 1337 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1338 // $FreeBSD$ 1339 1340 // - 1341 // SPDX-License-Identifier: BSD-3-Clause 1342 // 1343 // Copyright (c) 1982, 1986, 1993 1344 // The Regents of the University of California. All rights reserved. 1345 // 1346 // Redistribution and use in source and binary forms, with or without 1347 // modification, are permitted provided that the following conditions 1348 // are met: 1349 // 1. Redistributions of source code must retain the above copyright 1350 // notice, this list of conditions and the following disclaimer. 1351 // 2. Redistributions in binary form must reproduce the above copyright 1352 // notice, this list of conditions and the following disclaimer in the 1353 // documentation and/or other materials provided with the distribution. 1354 // 3. Neither the name of the University nor the names of its contributors 1355 // may be used to endorse or promote products derived from this software 1356 // without specific prior written permission. 1357 // 1358 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1359 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1360 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1361 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1362 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1363 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1364 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1365 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1366 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1367 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1368 // SUCH DAMAGE. 1369 // 1370 // @(#)time.h 8.5 (Berkeley) 5/4/95 1371 // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp 1372 // $FreeBSD$ 1373 1374 // - 1375 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD 1376 // 1377 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 1378 // All rights reserved. 1379 // 1380 // Redistribution and use in source and binary forms, with or without 1381 // modification, are permitted provided that the following conditions 1382 // are met: 1383 // 1. Redistributions of source code must retain the above copyright 1384 // notice, this list of conditions and the following disclaimer. 1385 // 2. Redistributions in binary form must reproduce the above copyright 1386 // notice, this list of conditions and the following disclaimer in the 1387 // documentation and/or other materials provided with the distribution. 1388 // 1389 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1390 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1391 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1392 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1393 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1394 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1395 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1396 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1397 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1398 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1399 // SUCH DAMAGE. 1400 // 1401 // $FreeBSD$ 1402 1403 type Timespec = struct { 1404 Ftv_sec Time_t 1405 Ftv_nsec int32 1406 } /* _timespec.h:46:1 */ 1407 1408 // Structure defined by POSIX.1b to be like a itimerval, but with 1409 // timespecs. Used in the timer_*() system calls. 1410 type Itimerspec = struct { 1411 Fit_interval struct { 1412 Ftv_sec Time_t 1413 Ftv_nsec int32 1414 } 1415 Fit_value struct { 1416 Ftv_sec Time_t 1417 Ftv_nsec int32 1418 } 1419 } /* timespec.h:60:1 */ 1420 1421 type X__fd_mask = uint32 /* select.h:44:23 */ 1422 type Fd_mask = X__fd_mask /* select.h:46:19 */ 1423 1424 type Sigset_t = X__sigset_t /* select.h:51:20 */ 1425 1426 // Select uses bit masks of file descriptors in longs. These macros 1427 // manipulate such bit fields (the filesystem macros use chars). 1428 // FD_SETSIZE may be defined by the user, but the default here should 1429 // be enough for most uses. 1430 1431 type Fd_set1 = struct{ F__fds_bits [32]X__fd_mask } /* select.h:73:9 */ 1432 1433 // Select uses bit masks of file descriptors in longs. These macros 1434 // manipulate such bit fields (the filesystem macros use chars). 1435 // FD_SETSIZE may be defined by the user, but the default here should 1436 // be enough for most uses. 1437 1438 type Fd_set = Fd_set1 /* select.h:75:3 */ 1439 1440 var _ int8 /* gen.c:2:13: */