gtsocial-umbx

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

netdb_freebsd_arm.go (30903B)


      1 // Code generated by 'ccgo netdb/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 netdb/netdb_freebsd_arm.go -pkgname netdb', DO NOT EDIT.
      2 
      3 package netdb
      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 	AI_ADDRCONFIG        = 0x00000400            // netdb.h:200:1:
     19 	AI_ALL               = 0x00000100            // netdb.h:198:1:
     20 	AI_CANONNAME         = 0x00000002            // netdb.h:190:1:
     21 	AI_DEFAULT           = 1536                  // netdb.h:203:1:
     22 	AI_MASK              = 3343                  // netdb.h:194:1:
     23 	AI_NUMERICHOST       = 0x00000004            // netdb.h:191:1:
     24 	AI_NUMERICSERV       = 0x00000008            // netdb.h:192:1:
     25 	AI_PASSIVE           = 0x00000001            // netdb.h:189:1:
     26 	AI_V4MAPPED          = 0x00000800            // netdb.h:201:1:
     27 	AI_V4MAPPED_CFG      = 0x00000200            // netdb.h:199:1:
     28 	EAI_AGAIN            = 2                     // netdb.h:168:1:
     29 	EAI_BADFLAGS         = 3                     // netdb.h:169:1:
     30 	EAI_BADHINTS         = 12                    // netdb.h:181:1:
     31 	EAI_FAIL             = 4                     // netdb.h:170:1:
     32 	EAI_FAMILY           = 5                     // netdb.h:171:1:
     33 	EAI_MAX              = 15                    // netdb.h:184:1:
     34 	EAI_MEMORY           = 6                     // netdb.h:172:1:
     35 	EAI_NONAME           = 8                     // netdb.h:177:1:
     36 	EAI_OVERFLOW         = 14                    // netdb.h:183:1:
     37 	EAI_PROTOCOL         = 13                    // netdb.h:182:1:
     38 	EAI_SERVICE          = 9                     // netdb.h:178:1:
     39 	EAI_SOCKTYPE         = 10                    // netdb.h:179:1:
     40 	EAI_SYSTEM           = 11                    // netdb.h:180:1:
     41 	HOST_NOT_FOUND       = 1                     // netdb.h:155:1:
     42 	IPPORT_RESERVED      = 1024                  // netdb.h:146:1:
     43 	NETDB_INTERNAL       = -1                    // netdb.h:153:1:
     44 	NETDB_SUCCESS        = 0                     // netdb.h:154:1:
     45 	NI_DGRAM             = 0x00000010            // netdb.h:218:1:
     46 	NI_MAXHOST           = 1025                  // netdb.h:208:1:
     47 	NI_MAXSERV           = 32                    // netdb.h:209:1:
     48 	NI_NAMEREQD          = 0x00000004            // netdb.h:216:1:
     49 	NI_NOFQDN            = 0x00000001            // netdb.h:214:1:
     50 	NI_NUMERICHOST       = 0x00000002            // netdb.h:215:1:
     51 	NI_NUMERICSCOPE      = 0x00000020            // netdb.h:219:1:
     52 	NI_NUMERICSERV       = 0x00000008            // netdb.h:217:1:
     53 	NO_ADDRESS           = 4                     // netdb.h:159:1:
     54 	NO_DATA              = 4                     // netdb.h:158:1:
     55 	NO_RECOVERY          = 3                     // netdb.h:157:1:
     56 	SCOPE_DELIMITER      = 37                    // netdb.h:224:1:
     57 	TRY_AGAIN            = 2                     // netdb.h:156:1:
     58 	X_FILE_OFFSET_BITS   = 64                    // <builtin>:25:1:
     59 	X_ILP32              = 1                     // <predefined>:1:1:
     60 	X_IN_ADDR_T_DECLARED = 0                     // netdb.h:67:1:
     61 	X_IN_PORT_T_DECLARED = 0                     // netdb.h:72:1:
     62 	X_MACHINE__TYPES_H_  = 0                     // _types.h:42:1:
     63 	X_NETDB_H_           = 0                     // netdb.h:60:1:
     64 	X_Nonnull            = 0                     // cdefs.h:790:1:
     65 	X_Null_unspecified   = 0                     // cdefs.h:792:1:
     66 	X_Nullable           = 0                     // cdefs.h:791:1:
     67 	X_PATH_HEQUIV        = "/etc/hosts.equiv"    // netdb.h:91:1:
     68 	X_PATH_HOSTS         = "/etc/hosts"          // netdb.h:93:1:
     69 	X_PATH_NETWORKS      = "/etc/networks"       // netdb.h:94:1:
     70 	X_PATH_PROTOCOLS     = "/etc/protocols"      // netdb.h:95:1:
     71 	X_PATH_SERVICES      = "/etc/services"       // netdb.h:96:1:
     72 	X_PATH_SERVICES_DB   = "/var/db/services.db" // netdb.h:97:1:
     73 	X_SIZE_T_DECLARED    = 0                     // netdb.h:77:1:
     74 	X_SOCKLEN_T_DECLARED = 0                     // netdb.h:82:1:
     75 	X_SYS_CDEFS_H_       = 0                     // cdefs.h:39:1:
     76 	X_SYS__TYPES_H_      = 0                     // _types.h:32:1:
     77 	X_UINT32_T_DECLARED  = 0                     // netdb.h:87:1:
     78 	Unix                 = 1                     // <predefined>:367:1:
     79 )
     80 
     81 type Ptrdiff_t = int32 /* <builtin>:3:26 */
     82 
     83 type Size_t = uint32 /* <builtin>:9:23 */
     84 
     85 type Wchar_t = uint32 /* <builtin>:15:24 */
     86 
     87 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
     88 type X__float128 = float64        /* <builtin>:47:21 */
     89 
     90 // -
     91 // SPDX-License-Identifier: (BSD-3-Clause AND ISC)
     92 //
     93 // Copyright (c) 1980, 1983, 1988, 1993
     94 //	The Regents of the University of California.  All rights reserved.
     95 //
     96 // Redistribution and use in source and binary forms, with or without
     97 // modification, are permitted provided that the following conditions
     98 // are met:
     99 // 1. Redistributions of source code must retain the above copyright
    100 //    notice, this list of conditions and the following disclaimer.
    101 // 2. Redistributions in binary form must reproduce the above copyright
    102 //    notice, this list of conditions and the following disclaimer in the
    103 //    documentation and/or other materials provided with the distribution.
    104 // 3. Neither the name of the University nor the names of its contributors
    105 //    may be used to endorse or promote products derived from this software
    106 //    without specific prior written permission.
    107 //
    108 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    109 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    110 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    111 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    112 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    113 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    114 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    115 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    116 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    117 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    118 // SUCH DAMAGE.
    119 //
    120 // -
    121 // Portions Copyright (c) 1993 by Digital Equipment Corporation.
    122 //
    123 // Permission to use, copy, modify, and distribute this software for any
    124 // purpose with or without fee is hereby granted, provided that the above
    125 // copyright notice and this permission notice appear in all copies, and that
    126 // the name of Digital Equipment Corporation not be used in advertising or
    127 // publicity pertaining to distribution of the document or software without
    128 // specific, written prior permission.
    129 //
    130 // THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
    131 // WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
    132 // OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
    133 // CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
    134 // DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
    135 // PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
    136 // ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
    137 // SOFTWARE.
    138 // -
    139 // --Copyright--
    140 
    141 //      @(#)netdb.h	8.1 (Berkeley) 6/2/93
    142 //      From: Id: netdb.h,v 8.9 1996/11/19 08:39:29 vixie Exp $
    143 // $FreeBSD$
    144 
    145 // -
    146 // SPDX-License-Identifier: BSD-3-Clause
    147 //
    148 // Copyright (c) 1991, 1993
    149 //	The Regents of the University of California.  All rights reserved.
    150 //
    151 // This code is derived from software contributed to Berkeley by
    152 // Berkeley Software Design, Inc.
    153 //
    154 // Redistribution and use in source and binary forms, with or without
    155 // modification, are permitted provided that the following conditions
    156 // are met:
    157 // 1. Redistributions of source code must retain the above copyright
    158 //    notice, this list of conditions and the following disclaimer.
    159 // 2. Redistributions in binary form must reproduce the above copyright
    160 //    notice, this list of conditions and the following disclaimer in the
    161 //    documentation and/or other materials provided with the distribution.
    162 // 3. Neither the name of the University nor the names of its contributors
    163 //    may be used to endorse or promote products derived from this software
    164 //    without specific prior written permission.
    165 //
    166 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    167 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    168 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    169 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    170 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    171 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    172 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    173 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    174 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    175 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    176 // SUCH DAMAGE.
    177 //
    178 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
    179 // $FreeBSD$
    180 
    181 // Testing against Clang-specific extensions.
    182 
    183 // This code has been put in place to help reduce the addition of
    184 // compiler specific defines in FreeBSD code.  It helps to aid in
    185 // having a compiler-agnostic source tree.
    186 
    187 // Compiler memory barriers, specific to gcc and clang.
    188 
    189 // XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
    190 
    191 // Macro to test if we're using a specific version of gcc or later.
    192 
    193 // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
    194 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
    195 // The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
    196 // mode -- there must be no spaces between its arguments, and for nested
    197 // __CONCAT's, all the __CONCAT's must be at the left.  __CONCAT can also
    198 // concatenate double-quoted strings produced by the __STRING macro, but
    199 // this only works with ANSI C.
    200 //
    201 // __XSTRING is like __STRING, but it expands any macros in its argument
    202 // first.  It is only available with ANSI C.
    203 
    204 // Compiler-dependent macros to help declare dead (non-returning) and
    205 // pure (no side effects) functions, and unused variables.  They are
    206 // null except for versions of gcc that are known to support the features
    207 // properly (old versions of gcc-2 supported the dead and pure features
    208 // in a different (wrong) way).  If we do not provide an implementation
    209 // for a given compiler, let the compile fail if it is told to use
    210 // a feature that we cannot live without.
    211 
    212 // Keywords added in C11.
    213 
    214 // Emulation of C11 _Generic().  Unlike the previously defined C11
    215 // keywords, it is not possible to implement this using exactly the same
    216 // syntax.  Therefore implement something similar under the name
    217 // __generic().  Unlike _Generic(), this macro can only distinguish
    218 // between a single type, so it requires nested invocations to
    219 // distinguish multiple cases.
    220 
    221 // C99 Static array indices in function parameter declarations.  Syntax such as:
    222 // void bar(int myArray[static 10]);
    223 // is allowed in C99 but not in C++.  Define __min_size appropriately so
    224 // headers using it can be compiled in either language.  Use like this:
    225 // void bar(int myArray[__min_size(10)]);
    226 
    227 // XXX: should use `#if __STDC_VERSION__ < 199901'.
    228 
    229 // C++11 exposes a load of C99 stuff
    230 
    231 // GCC 2.95 provides `__restrict' as an extension to C90 to support the
    232 // C99-specific `restrict' type qualifier.  We happen to use `__restrict' as
    233 // a way to define the `restrict' type qualifier without disturbing older
    234 // software that is unaware of C99 keywords.
    235 
    236 // GNU C version 2.96 adds explicit branch prediction so that
    237 // the CPU back-end can hint the processor and also so that
    238 // code blocks can be reordered such that the predicted path
    239 // sees a more linear flow, thus improving cache behavior, etc.
    240 //
    241 // The following two macros provide us with a way to utilize this
    242 // compiler feature.  Use __predict_true() if you expect the expression
    243 // to evaluate to true, and __predict_false() if you expect the
    244 // expression to evaluate to false.
    245 //
    246 // A few notes about usage:
    247 //
    248 //	* Generally, __predict_false() error condition checks (unless
    249 //	  you have some _strong_ reason to do otherwise, in which case
    250 //	  document it), and/or __predict_true() `no-error' condition
    251 //	  checks, assuming you want to optimize for the no-error case.
    252 //
    253 //	* Other than that, if you don't know the likelihood of a test
    254 //	  succeeding from empirical or other `hard' evidence, don't
    255 //	  make predictions.
    256 //
    257 //	* These are meant to be used in places that are run `a lot'.
    258 //	  It is wasteful to make predictions in code that is run
    259 //	  seldomly (e.g. at subsystem initialization time) as the
    260 //	  basic block reordering that this affects can often generate
    261 //	  larger code.
    262 
    263 // We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
    264 // require it.
    265 
    266 // Given the pointer x to the member m of the struct s, return
    267 // a pointer to the containing structure.  When using GCC, we first
    268 // assign pointer x to a local variable, to check that its type is
    269 // compatible with member m.
    270 
    271 // Compiler-dependent macros to declare that functions take printf-like
    272 // or scanf-like arguments.  They are null except for versions of gcc
    273 // that are known to support the features properly (old versions of gcc-2
    274 // didn't permit keeping the keywords out of the application namespace).
    275 
    276 // Compiler-dependent macros that rely on FreeBSD-specific extensions.
    277 
    278 // Embed the rcs id of a source file in the resulting library.  Note that in
    279 // more recent ELF binutils, we use .ident allowing the ID to be stripped.
    280 // Usage:
    281 //	__FBSDID("$FreeBSD$");
    282 
    283 // -
    284 // The following definitions are an extension of the behavior originally
    285 // implemented in <sys/_posix.h>, but with a different level of granularity.
    286 // POSIX.1 requires that the macros we test be defined before any standard
    287 // header file is included.
    288 //
    289 // Here's a quick run-down of the versions:
    290 //  defined(_POSIX_SOURCE)		1003.1-1988
    291 //  _POSIX_C_SOURCE == 1		1003.1-1990
    292 //  _POSIX_C_SOURCE == 2		1003.2-1992 C Language Binding Option
    293 //  _POSIX_C_SOURCE == 199309		1003.1b-1993
    294 //  _POSIX_C_SOURCE == 199506		1003.1c-1995, 1003.1i-1995,
    295 //					and the omnibus ISO/IEC 9945-1: 1996
    296 //  _POSIX_C_SOURCE == 200112		1003.1-2001
    297 //  _POSIX_C_SOURCE == 200809		1003.1-2008
    298 //
    299 // In addition, the X/Open Portability Guide, which is now the Single UNIX
    300 // Specification, defines a feature-test macro which indicates the version of
    301 // that specification, and which subsumes _POSIX_C_SOURCE.
    302 //
    303 // Our macros begin with two underscores to avoid namespace screwage.
    304 
    305 // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
    306 
    307 // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
    308 
    309 // Deal with various X/Open Portability Guides and Single UNIX Spec.
    310 
    311 // Deal with all versions of POSIX.  The ordering relative to the tests above is
    312 // important.
    313 // -
    314 // Deal with _ANSI_SOURCE:
    315 // If it is defined, and no other compilation environment is explicitly
    316 // requested, then define our internal feature-test macros to zero.  This
    317 // makes no difference to the preprocessor (undefined symbols in preprocessing
    318 // expressions are defined to have value zero), but makes it more convenient for
    319 // a test program to print out the values.
    320 //
    321 // If a program mistakenly defines _ANSI_SOURCE and some other macro such as
    322 // _POSIX_C_SOURCE, we will assume that it wants the broader compilation
    323 // environment (and in fact we will never get here).
    324 
    325 // User override __EXT1_VISIBLE
    326 
    327 // Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
    328 // translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
    329 
    330 // Nullability qualifiers: currently only supported by Clang.
    331 
    332 // Type Safety Checking
    333 //
    334 // Clang provides additional attributes to enable checking type safety
    335 // properties that cannot be enforced by the C type system.
    336 
    337 // Lock annotations.
    338 //
    339 // Clang provides support for doing basic thread-safety tests at
    340 // compile-time, by marking which locks will/should be held when
    341 // entering/leaving a functions.
    342 //
    343 // Furthermore, it is also possible to annotate variables and structure
    344 // members to enforce that they are only accessed when certain locks are
    345 // held.
    346 
    347 // Structure implements a lock.
    348 
    349 // Function acquires an exclusive or shared lock.
    350 
    351 // Function attempts to acquire an exclusive or shared lock.
    352 
    353 // Function releases a lock.
    354 
    355 // Function asserts that an exclusive or shared lock is held.
    356 
    357 // Function requires that an exclusive or shared lock is or is not held.
    358 
    359 // Function should not be analyzed.
    360 
    361 // Function or variable should not be sanitized, e.g., by AddressSanitizer.
    362 // GCC has the nosanitize attribute, but as a function attribute only, and
    363 // warns on use as a variable attribute.
    364 
    365 // Guard variables and structure members by lock.
    366 
    367 // Alignment builtins for better type checking and improved code generation.
    368 // Provide fallback versions for other compilers (GCC/Clang < 10):
    369 
    370 // -
    371 // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
    372 //
    373 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
    374 // All rights reserved.
    375 //
    376 // Redistribution and use in source and binary forms, with or without
    377 // modification, are permitted provided that the following conditions
    378 // are met:
    379 // 1. Redistributions of source code must retain the above copyright
    380 //    notice, this list of conditions and the following disclaimer.
    381 // 2. Redistributions in binary form must reproduce the above copyright
    382 //    notice, this list of conditions and the following disclaimer in the
    383 //    documentation and/or other materials provided with the distribution.
    384 //
    385 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    386 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    387 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    388 // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    389 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    390 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    391 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    392 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    393 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    394 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    395 // SUCH DAMAGE.
    396 //
    397 // $FreeBSD$
    398 
    399 // -
    400 // SPDX-License-Identifier: BSD-3-Clause
    401 //
    402 // Copyright (c) 1991, 1993
    403 //	The Regents of the University of California.  All rights reserved.
    404 //
    405 // This code is derived from software contributed to Berkeley by
    406 // Berkeley Software Design, Inc.
    407 //
    408 // Redistribution and use in source and binary forms, with or without
    409 // modification, are permitted provided that the following conditions
    410 // are met:
    411 // 1. Redistributions of source code must retain the above copyright
    412 //    notice, this list of conditions and the following disclaimer.
    413 // 2. Redistributions in binary form must reproduce the above copyright
    414 //    notice, this list of conditions and the following disclaimer in the
    415 //    documentation and/or other materials provided with the distribution.
    416 // 3. Neither the name of the University nor the names of its contributors
    417 //    may be used to endorse or promote products derived from this software
    418 //    without specific prior written permission.
    419 //
    420 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    421 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    422 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    423 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    424 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    425 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    426 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    427 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    428 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    429 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    430 // SUCH DAMAGE.
    431 //
    432 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
    433 // $FreeBSD$
    434 
    435 // -
    436 // SPDX-License-Identifier: BSD-4-Clause
    437 //
    438 // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
    439 // Copyright (c) 1990, 1993
    440 //	The Regents of the University of California.  All rights reserved.
    441 //
    442 // Redistribution and use in source and binary forms, with or without
    443 // modification, are permitted provided that the following conditions
    444 // are met:
    445 // 1. Redistributions of source code must retain the above copyright
    446 //    notice, this list of conditions and the following disclaimer.
    447 // 2. Redistributions in binary form must reproduce the above copyright
    448 //    notice, this list of conditions and the following disclaimer in the
    449 //    documentation and/or other materials provided with the distribution.
    450 // 3. All advertising materials mentioning features or use of this software
    451 //    must display the following acknowledgement:
    452 //	This product includes software developed by the University of
    453 //	California, Berkeley and its contributors.
    454 // 4. Neither the name of the University nor the names of its contributors
    455 //    may be used to endorse or promote products derived from this software
    456 //    without specific prior written permission.
    457 //
    458 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    459 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    460 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    461 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    462 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    463 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    464 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    465 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    466 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    467 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    468 // SUCH DAMAGE.
    469 //
    470 //	From: @(#)ansi.h	8.2 (Berkeley) 1/4/94
    471 //	From: @(#)types.h	8.3 (Berkeley) 1/5/94
    472 // $FreeBSD$
    473 
    474 // Basic types upon which most other types are built.
    475 type X__int8_t = int8     /* _types.h:51:22 */
    476 type X__uint8_t = uint8   /* _types.h:52:24 */
    477 type X__int16_t = int16   /* _types.h:53:17 */
    478 type X__uint16_t = uint16 /* _types.h:54:25 */
    479 type X__int32_t = int32   /* _types.h:55:15 */
    480 type X__uint32_t = uint32 /* _types.h:56:23 */
    481 
    482 // LONGLONG
    483 type X__int64_t = int64 /* _types.h:61:20 */
    484 
    485 // LONGLONG
    486 type X__uint64_t = uint64 /* _types.h:66:28 */
    487 
    488 // Standard type definitions.
    489 type X__clock_t = X__uint32_t        /* _types.h:71:20 */ // clock()...
    490 type X__critical_t = X__int32_t      /* _types.h:72:19 */
    491 type X__double_t = float64           /* _types.h:74:17 */
    492 type X__float_t = float32            /* _types.h:75:16 */
    493 type X__intfptr_t = X__int32_t       /* _types.h:77:19 */
    494 type X__intmax_t = X__int64_t        /* _types.h:78:19 */
    495 type X__intptr_t = X__int32_t        /* _types.h:79:19 */
    496 type X__int_fast8_t = X__int32_t     /* _types.h:80:19 */
    497 type X__int_fast16_t = X__int32_t    /* _types.h:81:19 */
    498 type X__int_fast32_t = X__int32_t    /* _types.h:82:19 */
    499 type X__int_fast64_t = X__int64_t    /* _types.h:83:19 */
    500 type X__int_least8_t = X__int8_t     /* _types.h:84:18 */
    501 type X__int_least16_t = X__int16_t   /* _types.h:85:19 */
    502 type X__int_least32_t = X__int32_t   /* _types.h:86:19 */
    503 type X__int_least64_t = X__int64_t   /* _types.h:87:19 */
    504 type X__ptrdiff_t = X__int32_t       /* _types.h:88:19 */ // ptr1 - ptr2
    505 type X__register_t = X__int32_t      /* _types.h:89:19 */
    506 type X__segsz_t = X__int32_t         /* _types.h:90:19 */ // segment size (in pages)
    507 type X__size_t = X__uint32_t         /* _types.h:91:20 */ // sizeof()
    508 type X__ssize_t = X__int32_t         /* _types.h:92:19 */ // byte count or error
    509 type X__time_t = X__int64_t          /* _types.h:93:19 */ // time()...
    510 type X__uintfptr_t = X__uint32_t     /* _types.h:94:20 */
    511 type X__uintmax_t = X__uint64_t      /* _types.h:95:20 */
    512 type X__uintptr_t = X__uint32_t      /* _types.h:96:20 */
    513 type X__uint_fast8_t = X__uint32_t   /* _types.h:97:20 */
    514 type X__uint_fast16_t = X__uint32_t  /* _types.h:98:20 */
    515 type X__uint_fast32_t = X__uint32_t  /* _types.h:99:20 */
    516 type X__uint_fast64_t = X__uint64_t  /* _types.h:100:20 */
    517 type X__uint_least8_t = X__uint8_t   /* _types.h:101:19 */
    518 type X__uint_least16_t = X__uint16_t /* _types.h:102:20 */
    519 type X__uint_least32_t = X__uint32_t /* _types.h:103:20 */
    520 type X__uint_least64_t = X__uint64_t /* _types.h:104:20 */
    521 type X__u_register_t = X__uint32_t   /* _types.h:105:20 */
    522 type X__vm_offset_t = X__uint32_t    /* _types.h:106:20 */
    523 type X__vm_paddr_t = X__uint32_t     /* _types.h:107:20 */
    524 type X__vm_size_t = X__uint32_t      /* _types.h:108:20 */
    525 
    526 type X___wchar_t = uint32 /* _types.h:110:22 */
    527 
    528 // Standard type definitions.
    529 type X__blksize_t = X__int32_t   /* _types.h:40:19 */ // file block size
    530 type X__blkcnt_t = X__int64_t    /* _types.h:41:19 */ // file block count
    531 type X__clockid_t = X__int32_t   /* _types.h:42:19 */ // clock_gettime()...
    532 type X__fflags_t = X__uint32_t   /* _types.h:43:20 */ // file flags
    533 type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
    534 type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
    535 type X__gid_t = X__uint32_t      /* _types.h:46:20 */
    536 type X__id_t = X__int64_t        /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
    537 type X__ino_t = X__uint64_t      /* _types.h:48:20 */ // inode number
    538 type X__key_t = int32            /* _types.h:49:15 */ // IPC key (for Sys V IPC)
    539 type X__lwpid_t = X__int32_t     /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
    540 type X__mode_t = X__uint16_t     /* _types.h:51:20 */ // permissions
    541 type X__accmode_t = int32        /* _types.h:52:14 */ // access permissions
    542 type X__nl_item = int32          /* _types.h:53:14 */
    543 type X__nlink_t = X__uint64_t    /* _types.h:54:20 */ // link count
    544 type X__off_t = X__int64_t       /* _types.h:55:19 */ // file offset
    545 type X__off64_t = X__int64_t     /* _types.h:56:19 */ // file offset (alias)
    546 type X__pid_t = X__int32_t       /* _types.h:57:19 */ // process [group]
    547 type X__rlim_t = X__int64_t      /* _types.h:58:19 */ // resource limit - intentionally
    548 // signed, because of legacy code
    549 // that uses -1 for RLIM_INFINITY
    550 type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
    551 type X__socklen_t = X__uint32_t  /* _types.h:62:20 */
    552 type X__suseconds_t = int32      /* _types.h:63:15 */ // microseconds (signed)
    553 type X__timer_t = uintptr        /* _types.h:64:24 */ // timer_gettime()...
    554 type X__mqd_t = uintptr          /* _types.h:65:21 */ // mq_open()...
    555 type X__uid_t = X__uint32_t      /* _types.h:66:20 */
    556 type X__useconds_t = uint32      /* _types.h:67:22 */ // microseconds (unsigned)
    557 type X__cpuwhich_t = int32       /* _types.h:68:14 */ // which parameter for cpuset.
    558 type X__cpulevel_t = int32       /* _types.h:69:14 */ // level parameter for cpuset.
    559 type X__cpusetid_t = int32       /* _types.h:70:14 */ // cpuset identifier.
    560 type X__daddr_t = X__int64_t     /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
    561 
    562 // Unusual type definitions.
    563 // rune_t is declared to be an “int” instead of the more natural
    564 // “unsigned long” or “long”.  Two things are happening here.  It is not
    565 // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
    566 // it looks like 10646 will be a 31 bit standard.  This means that if your
    567 // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
    568 // chosen over a long is that the is*() and to*() routines take ints (says
    569 // ANSI C), but they use __ct_rune_t instead of int.
    570 //
    571 // NOTE: rune_t is not covered by ANSI nor other standards, and should not
    572 // be instantiated outside of lib/libc/locale.  Use wchar_t.  wint_t and
    573 // rune_t must be the same type.  Also, wint_t should be able to hold all
    574 // members of the largest character set plus one extra value (WEOF), and
    575 // must be at least 16 bits.
    576 type X__ct_rune_t = int32     /* _types.h:91:14 */ // arg type for ctype funcs
    577 type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
    578 type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
    579 
    580 // Clang already provides these types as built-ins, but only in C++ mode.
    581 type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
    582 type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
    583 // In C++11, char16_t and char32_t are built-in types.
    584 
    585 type X__max_align_t = struct {
    586 	F__max_align1 int64
    587 	F__max_align2 float64
    588 } /* _types.h:111:3 */
    589 
    590 type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
    591 
    592 type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
    593 
    594 // mbstate_t is an opaque object to keep conversion state during multibyte
    595 // stream conversions.
    596 type X__mbstate_t = struct {
    597 	F__ccgo_pad1 [0]uint64
    598 	F__mbstate8  [128]uint8
    599 } /* _types.h:124:3 */
    600 
    601 type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
    602 
    603 // Types for varargs. These are all provided by builtin types these
    604 // days, so centralize their definition.
    605 type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
    606 type X__gnuc_va_list = X__va_list    /* _types.h:140:20 */ // compatibility w/GNU headers
    607 
    608 // When the following macro is defined, the system uses 64-bit inode numbers.
    609 // Programs can use this to avoid including <sys/param.h>, with its associated
    610 // namespace pollution.
    611 
    612 type In_addr_t = X__uint32_t /* netdb.h:66:20 */
    613 
    614 type In_port_t = X__uint16_t /* netdb.h:71:20 */
    615 
    616 type Socklen_t = X__socklen_t /* netdb.h:81:21 */
    617 
    618 type Uint32_t = X__uint32_t /* netdb.h:86:20 */
    619 
    620 // Structures returned by network data base library.  All addresses are
    621 // supplied in host order, and returned in network order (suitable for
    622 // use in system calls).
    623 type Hostent = struct {
    624 	Fh_name      uintptr
    625 	Fh_aliases   uintptr
    626 	Fh_addrtype  int32
    627 	Fh_length    int32
    628 	Fh_addr_list uintptr
    629 } /* netdb.h:106:1 */
    630 
    631 type Netent = struct {
    632 	Fn_name     uintptr
    633 	Fn_aliases  uintptr
    634 	Fn_addrtype int32
    635 	Fn_net      Uint32_t
    636 } /* netdb.h:115:1 */
    637 
    638 type Servent = struct {
    639 	Fs_name    uintptr
    640 	Fs_aliases uintptr
    641 	Fs_port    int32
    642 	Fs_proto   uintptr
    643 } /* netdb.h:122:1 */
    644 
    645 type Protoent = struct {
    646 	Fp_name    uintptr
    647 	Fp_aliases uintptr
    648 	Fp_proto   int32
    649 } /* netdb.h:129:1 */
    650 
    651 type Addrinfo = struct {
    652 	Fai_flags     int32
    653 	Fai_family    int32
    654 	Fai_socktype  int32
    655 	Fai_protocol  int32
    656 	Fai_addrlen   Socklen_t
    657 	Fai_canonname uintptr
    658 	Fai_addr      uintptr
    659 	Fai_next      uintptr
    660 } /* netdb.h:135:1 */
    661 
    662 var _ uint8 /* gen.c:2:13: */