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