// 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 -o netdb/netdb_netbsd_amd64.go -pkgname netdb', DO NOT EDIT. package netdb import ( "math" "reflect" "sync/atomic" "unsafe" ) var _ = math.Pi var _ reflect.Kind var _ atomic.Value var _ unsafe.Pointer const ( AI_ADDRCONFIG = 0x00000400 AI_CANONNAME = 0x00000002 AI_MASK = 3087 AI_NUMERICHOST = 0x00000004 AI_NUMERICSERV = 0x00000008 AI_PASSIVE = 0x00000001 AI_SRV = 0x00000800 EAI_ADDRFAMILY = 1 EAI_AGAIN = 2 EAI_BADFLAGS = 3 EAI_BADHINTS = 12 EAI_FAIL = 4 EAI_FAMILY = 5 EAI_MAX = 15 EAI_MEMORY = 6 EAI_NODATA = 7 EAI_NONAME = 8 EAI_OVERFLOW = 14 EAI_PROTOCOL = 13 EAI_SERVICE = 9 EAI_SOCKTYPE = 10 EAI_SYSTEM = 11 HOST_NOT_FOUND = 1 INT16_MAX = 32767 INT16_MIN = -32768 INT32_MAX = 2147483647 INT32_MIN = -2147483648 INT64_MAX = 9223372036854775807 INT64_MIN = -9223372036854775808 INT8_MAX = 127 INT8_MIN = -128 INTMAX_MAX = 9223372036854775807 INTMAX_MIN = -9223372036854775808 INTPTR_MAX = 9223372036854775807 INTPTR_MIN = -9223372036854775808 INT_FAST16_MAX = 2147483647 INT_FAST16_MIN = -2147483648 INT_FAST32_MAX = 2147483647 INT_FAST32_MIN = -2147483648 INT_FAST64_MAX = 9223372036854775807 INT_FAST64_MIN = -9223372036854775808 INT_FAST8_MAX = 2147483647 INT_FAST8_MIN = -2147483648 INT_LEAST16_MAX = 32767 INT_LEAST16_MIN = -32768 INT_LEAST32_MAX = 2147483647 INT_LEAST32_MIN = -2147483648 INT_LEAST64_MAX = 9223372036854775807 INT_LEAST64_MIN = -9223372036854775808 INT_LEAST8_MAX = 127 INT_LEAST8_MIN = -128 NETDB_INTERNAL = -1 NETDB_SUCCESS = 0 NI_DGRAM = 0x00000010 NI_MAXHOST = 1025 NI_MAXSERV = 32 NI_NAMEREQD = 0x00000004 NI_NOFQDN = 0x00000001 NI_NUMERICHOST = 0x00000002 NI_NUMERICSCOPE = 0x00000040 NI_NUMERICSERV = 0x00000008 NI_WITHSCOPEID = 0x00000020 NO_ADDRESS = 4 NO_DATA = 4 NO_RECOVERY = 3 PRIX16 = "X" PRIX32 = "X" PRIX64 = "lX" PRIX8 = "X" PRIXFAST16 = "X" PRIXFAST32 = "X" PRIXFAST64 = "lX" PRIXFAST8 = "X" PRIXLEAST16 = "X" PRIXLEAST32 = "X" PRIXLEAST64 = "lX" PRIXLEAST8 = "X" PRIXMAX = "lX" PRIXPTR = "lX" PRId16 = "d" PRId32 = "d" PRId64 = "ld" PRId8 = "d" PRIdFAST16 = "d" PRIdFAST32 = "d" PRIdFAST64 = "ld" PRIdFAST8 = "d" PRIdLEAST16 = "d" PRIdLEAST32 = "d" PRIdLEAST64 = "ld" PRIdLEAST8 = "d" PRIdMAX = "ld" PRIdPTR = "ld" PRIi16 = "i" PRIi32 = "i" PRIi64 = "li" PRIi8 = "i" PRIiFAST16 = "i" PRIiFAST32 = "i" PRIiFAST64 = "li" PRIiFAST8 = "i" PRIiLEAST16 = "i" PRIiLEAST32 = "i" PRIiLEAST64 = "li" PRIiLEAST8 = "i" PRIiMAX = "li" PRIiPTR = "li" PRIo16 = "o" PRIo32 = "o" PRIo64 = "lo" PRIo8 = "o" PRIoFAST16 = "o" PRIoFAST32 = "o" PRIoFAST64 = "lo" PRIoFAST8 = "o" PRIoLEAST16 = "o" PRIoLEAST32 = "o" PRIoLEAST64 = "lo" PRIoLEAST8 = "o" PRIoMAX = "lo" PRIoPTR = "lo" PRIu16 = "u" PRIu32 = "u" PRIu64 = "lu" PRIu8 = "u" PRIuFAST16 = "u" PRIuFAST32 = "u" PRIuFAST64 = "lu" PRIuFAST8 = "u" PRIuLEAST16 = "u" PRIuLEAST32 = "u" PRIuLEAST64 = "lu" PRIuLEAST8 = "u" PRIuMAX = "lu" PRIuPTR = "lu" PRIx16 = "x" PRIx32 = "x" PRIx64 = "lx" PRIx8 = "x" PRIxFAST16 = "x" PRIxFAST32 = "x" PRIxFAST64 = "lx" PRIxFAST8 = "x" PRIxLEAST16 = "x" PRIxLEAST32 = "x" PRIxLEAST64 = "lx" PRIxLEAST8 = "x" PRIxMAX = "lx" PRIxPTR = "lx" PTRDIFF_MAX = 9223372036854775807 PTRDIFF_MIN = -9223372036854775808 SCNd16 = "hd" SCNd32 = "d" SCNd64 = "ld" SCNd8 = "hhd" SCNdFAST16 = "d" SCNdFAST32 = "d" SCNdFAST64 = "ld" SCNdFAST8 = "d" SCNdLEAST16 = "hd" SCNdLEAST32 = "d" SCNdLEAST64 = "ld" SCNdLEAST8 = "hhd" SCNdMAX = "ld" SCNdPTR = "ld" SCNi16 = "hi" SCNi32 = "i" SCNi64 = "li" SCNi8 = "hhi" SCNiFAST16 = "i" SCNiFAST32 = "i" SCNiFAST64 = "li" SCNiFAST8 = "i" SCNiLEAST16 = "hi" SCNiLEAST32 = "i" SCNiLEAST64 = "li" SCNiLEAST8 = "hhi" SCNiMAX = "li" SCNiPTR = "li" SCNo16 = "ho" SCNo32 = "o" SCNo64 = "lo" SCNo8 = "hho" SCNoFAST16 = "o" SCNoFAST32 = "o" SCNoFAST64 = "lo" SCNoFAST8 = "o" SCNoLEAST16 = "ho" SCNoLEAST32 = "o" SCNoLEAST64 = "lo" SCNoLEAST8 = "hho" SCNoMAX = "lo" SCNoPTR = "lo" SCNu16 = "hu" SCNu32 = "u" SCNu64 = "lu" SCNu8 = "hhu" SCNuFAST16 = "u" SCNuFAST32 = "u" SCNuFAST64 = "lu" SCNuFAST8 = "u" SCNuLEAST16 = "hu" SCNuLEAST32 = "u" SCNuLEAST64 = "lu" SCNuLEAST8 = "hhu" SCNuMAX = "lu" SCNuPTR = "lu" SCNx16 = "hx" SCNx32 = "x" SCNx64 = "lx" SCNx8 = "hhx" SCNxFAST16 = "x" SCNxFAST32 = "x" SCNxFAST64 = "lx" SCNxFAST8 = "x" SCNxLEAST16 = "hx" SCNxLEAST32 = "x" SCNxLEAST64 = "lx" SCNxLEAST8 = "hhx" SCNxMAX = "lx" SCNxPTR = "lx" SCOPE_DELIMITER = 37 SIG_ATOMIC_MAX = 2147483647 SIG_ATOMIC_MIN = -2147483648 SIZE_MAX = 18446744073709551615 TRY_AGAIN = 2 UINT16_MAX = 65535 UINT32_MAX = 4294967295 UINT64_MAX = 18446744073709551615 UINT8_MAX = 255 UINTMAX_MAX = 18446744073709551615 UINTPTR_MAX = 18446744073709551615 UINT_FAST16_MAX = 4294967295 UINT_FAST32_MAX = 4294967295 UINT_FAST64_MAX = 18446744073709551615 UINT_FAST8_MAX = 4294967295 UINT_LEAST16_MAX = 65535 UINT_LEAST32_MAX = 4294967295 UINT_LEAST64_MAX = 18446744073709551615 UINT_LEAST8_MAX = 255 WCHAR_MAX = 0x7fffffff WCHAR_MIN = -2147483648 WINT_MAX = 0x7fffffff WINT_MIN = -2147483648 X_AMD64_INT_CONST_H_ = 0 X_AMD64_INT_FMTIO_H_ = 0 X_AMD64_INT_LIMITS_H_ = 0 X_AMD64_INT_MWGWTYPES_H_ = 0 X_AMD64_INT_TYPES_H_ = 0 X_AMD64_WCHAR_LIMITS_H_ = 0 X_BSD_INT16_T_ = 0 X_BSD_INT32_T_ = 0 X_BSD_INT64_T_ = 0 X_BSD_INT8_T_ = 0 X_BSD_INTPTR_T_ = 0 X_BSD_UINT16_T_ = 0 X_BSD_UINT32_T_ = 0 X_BSD_UINT64_T_ = 0 X_BSD_UINT8_T_ = 0 X_BSD_UINTPTR_T_ = 0 X_FILE_OFFSET_BITS = 64 X_INTTYPES_H_ = 0 X_LP64 = 1 X_NETBSD_SOURCE = 1 X_NETDB_H_ = 0 X_PATH_HEQUIV = "/etc/hosts.equiv" X_PATH_HOSTS = "/etc/hosts" X_PATH_NETWORKS = "/etc/networks" X_PATH_PROTOCOLS = "/etc/protocols" X_PATH_SERVICES = "/etc/services" X_PATH_SERVICES_CDB = "/var/db/services.cdb" X_PATH_SERVICES_DB = "/var/db/services.db" X_SYS_ANSI_H_ = 0 X_SYS_CDEFS_ELF_H_ = 0 X_SYS_CDEFS_H_ = 0 X_SYS_COMMON_ANSI_H_ = 0 X_SYS_COMMON_INT_LIMITS_H_ = 0 X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 X_SYS_COMMON_INT_TYPES_H_ = 0 X_SYS_INTTYPES_H_ = 0 X_SYS_STDINT_H_ = 0 X_X86_64_CDEFS_H_ = 0 ) type Ptrdiff_t = int64 /* :3:26 */ type Size_t = uint64 /* :9:23 */ type Wchar_t = int32 /* :15:24 */ type X__int128_t = struct { Flo int64 Fhi int64 } /* :21:43 */ // must match modernc.org/mathutil.Int128 type X__uint128_t = struct { Flo uint64 Fhi uint64 } /* :22:44 */ // must match modernc.org/mathutil.Int128 type X__builtin_va_list = uintptr /* :46:14 */ type X__float128 = float64 /* :47:21 */ // return true if value 'a' fits in type 't' // $NetBSD: endian_machdep.h,v 1.4 2006/01/30 21:52:38 dsl Exp $ // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $ // - // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc. // All rights reserved. // // This code is derived from software contributed to The NetBSD Foundation // by Jun-ichiro itojun Hagino and by Klaus Klein. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // $NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $ // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $ // - // Copyright (c) 2014 The NetBSD Foundation, Inc. // All rights reserved. // // This code is derived from software contributed to The NetBSD Foundation // by Matt Thomas of 3am Software Foundry. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ // * Copyright (c) 1991, 1993 // The Regents of the University of California. All rights reserved. // // This code is derived from software contributed to Berkeley by // Berkeley Software Design, Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // 3. Neither the name of the University nor the names of its contributors // may be used to endorse or promote products derived from this software // without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF // SUCH DAMAGE. // // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $ // - // Copyright (c) 1990 The Regents of the University of California. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // 3. Neither the name of the University nor the names of its contributors // may be used to endorse or promote products derived from this software // without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF // SUCH DAMAGE. // // from: @(#)types.h 7.5 (Berkeley) 3/9/91 // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $ // - // Copyright (c) 2014 The NetBSD Foundation, Inc. // All rights reserved. // // This code is derived from software contributed to The NetBSD Foundation // by Joerg Sonnenberger. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // 7.18.1 Integer types // 7.18.1.1 Exact-width integer types type X__int8_t = int8 /* common_int_types.h:45:27 */ type X__uint8_t = uint8 /* common_int_types.h:46:27 */ type X__int16_t = int16 /* common_int_types.h:47:27 */ type X__uint16_t = uint16 /* common_int_types.h:48:27 */ type X__int32_t = int32 /* common_int_types.h:49:27 */ type X__uint32_t = uint32 /* common_int_types.h:50:27 */ type X__int64_t = int64 /* common_int_types.h:51:27 */ type X__uint64_t = uint64 /* common_int_types.h:52:27 */ // 7.18.1.4 Integer types capable of holding object pointers type X__intptr_t = int64 /* common_int_types.h:58:27 */ type X__uintptr_t = uint64 /* common_int_types.h:59:26 */ // Types which are fundamental to the implementation and may appear in // more than one standard header are defined here. Standard headers // then use: // #ifdef _BSD_SIZE_T_ // typedef _BSD_SIZE_T_ size_t; // #undef _BSD_SIZE_T_ // #endif type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs) type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */ type X__wctrans_t = uintptr /* ansi.h:51:32 */ type X__wctype_t = uintptr /* ansi.h:54:31 */ // mbstate_t is an opaque object to keep conversion state, during multibyte // stream conversions. The content must not be referenced by user programs. type X__mbstate_t = struct { F__mbstateL X__int64_t F__ccgo_pad1 [120]byte } /* ansi.h:63:3 */ type X__va_list = X__builtin_va_list /* ansi.h:72:27 */ // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ // Written by Klaus Klein , February 2, 1998. // Public domain. // // NOTE: Do not protect this header against multiple inclusion. Doing // so can have subtle side-effects due to header file inclusion order // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, // protect each CPP macro that we want to supply. // Feature-test macros are defined by several standards, and allow an // application to specify what symbols they want the system headers to // expose, and hence what standard they want them to conform to. // There are two classes of feature-test macros. The first class // specify complete standards, and if one of these is defined, header // files will try to conform to the relevant standard. They are: // // ANSI macros: // _ANSI_SOURCE ANSI C89 // // POSIX macros: // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 // // X/Open macros: // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option // // NetBSD macros: // _NETBSD_SOURCE == 1 Make all NetBSD features available. // // If more than one of these "major" feature-test macros is defined, // then the set of facilities provided (and namespace used) is the // union of that specified by the relevant standards, and in case of // conflict, the earlier standard in the above list has precedence (so // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version // of rename() that's used is the POSIX one). If none of the "major" // feature-test macros is defined, _NETBSD_SOURCE is assumed. // // There are also "minor" feature-test macros, which enable extra // functionality in addition to some base standard. They should be // defined along with one of the "major" macros. The "minor" macros // are: // // _REENTRANT // _ISOC99_SOURCE // _ISOC11_SOURCE // _LARGEFILE_SOURCE Large File Support // // $NetBSD: inttypes.h,v 1.11 2015/01/16 18:35:59 christos Exp $ // - // Copyright (c) 2001 The NetBSD Foundation, Inc. // All rights reserved. // // This code is derived from software contributed to The NetBSD Foundation // by Klaus Klein. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ // * Copyright (c) 1991, 1993 // The Regents of the University of California. All rights reserved. // // This code is derived from software contributed to Berkeley by // Berkeley Software Design, Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // 3. Neither the name of the University nor the names of its contributors // may be used to endorse or promote products derived from this software // without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF // SUCH DAMAGE. // // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ // Written by Klaus Klein , February 2, 1998. // Public domain. // // NOTE: Do not protect this header against multiple inclusion. Doing // so can have subtle side-effects due to header file inclusion order // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, // protect each CPP macro that we want to supply. // Feature-test macros are defined by several standards, and allow an // application to specify what symbols they want the system headers to // expose, and hence what standard they want them to conform to. // There are two classes of feature-test macros. The first class // specify complete standards, and if one of these is defined, header // files will try to conform to the relevant standard. They are: // // ANSI macros: // _ANSI_SOURCE ANSI C89 // // POSIX macros: // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 // // X/Open macros: // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option // // NetBSD macros: // _NETBSD_SOURCE == 1 Make all NetBSD features available. // // If more than one of these "major" feature-test macros is defined, // then the set of facilities provided (and namespace used) is the // union of that specified by the relevant standards, and in case of // conflict, the earlier standard in the above list has precedence (so // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version // of rename() that's used is the POSIX one). If none of the "major" // feature-test macros is defined, _NETBSD_SOURCE is assumed. // // There are also "minor" feature-test macros, which enable extra // functionality in addition to some base standard. They should be // defined along with one of the "major" macros. The "minor" macros // are: // // _REENTRANT // _ISOC99_SOURCE // _ISOC11_SOURCE // _LARGEFILE_SOURCE Large File Support // // $NetBSD: inttypes.h,v 1.6 2013/04/22 21:26:48 joerg Exp $ // - // Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. // All rights reserved. // // This code is derived from software contributed to The NetBSD Foundation // by Klaus J. Klein. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // 7.8 Format conversion of integer types // $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $ // - // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc. // All rights reserved. // // This code is derived from software contributed to The NetBSD Foundation // by Klaus Klein. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ // * Copyright (c) 1991, 1993 // The Regents of the University of California. All rights reserved. // // This code is derived from software contributed to Berkeley by // Berkeley Software Design, Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // 3. Neither the name of the University nor the names of its contributors // may be used to endorse or promote products derived from this software // without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF // SUCH DAMAGE. // // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $ // - // Copyright (c) 1990 The Regents of the University of California. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // 3. Neither the name of the University nor the names of its contributors // may be used to endorse or promote products derived from this software // without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF // SUCH DAMAGE. // // from: @(#)types.h 7.5 (Berkeley) 3/9/91 type Int8_t = X__int8_t /* stdint.h:39:18 */ type Uint8_t = X__uint8_t /* stdint.h:44:19 */ type Int16_t = X__int16_t /* stdint.h:49:19 */ type Uint16_t = X__uint16_t /* stdint.h:54:20 */ type Int32_t = X__int32_t /* stdint.h:59:19 */ type Uint32_t = X__uint32_t /* stdint.h:64:20 */ type Int64_t = X__int64_t /* stdint.h:69:19 */ type Uint64_t = X__uint64_t /* stdint.h:74:20 */ type Intptr_t = X__intptr_t /* stdint.h:79:20 */ type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */ // $NetBSD: int_mwgwtypes.h,v 1.8 2014/07/25 21:43:13 joerg Exp $ // - // Copyright (c) 2001 The NetBSD Foundation, Inc. // All rights reserved. // // This code is derived from software contributed to The NetBSD Foundation // by Klaus Klein. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // $NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $ // - // Copyright (c) 2014 The NetBSD Foundation, Inc. // All rights reserved. // // This code is derived from software contributed to The NetBSD Foundation // by Joerg Sonnenberger. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // 7.18.1 Integer types // 7.18.1.2 Minimum-width integer types type Int_least8_t = int8 /* common_int_mwgwtypes.h:45:32 */ type Uint_least8_t = uint8 /* common_int_mwgwtypes.h:46:32 */ type Int_least16_t = int16 /* common_int_mwgwtypes.h:47:32 */ type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */ type Int_least32_t = int32 /* common_int_mwgwtypes.h:49:32 */ type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */ type Int_least64_t = int64 /* common_int_mwgwtypes.h:51:32 */ type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */ // 7.18.1.3 Fastest minimum-width integer types type Int_fast8_t = int32 /* common_int_mwgwtypes.h:55:32 */ type Uint_fast8_t = uint32 /* common_int_mwgwtypes.h:56:32 */ type Int_fast16_t = int32 /* common_int_mwgwtypes.h:57:32 */ type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */ type Int_fast32_t = int32 /* common_int_mwgwtypes.h:59:32 */ type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */ type Int_fast64_t = int64 /* common_int_mwgwtypes.h:61:32 */ type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */ // 7.18.1.5 Greatest-width integer types type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */ type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */ type Imaxdiv_t = struct { Fquot Intmax_t Frem Intmax_t } /* inttypes.h:60:3 */ type Locale_t = uintptr /* inttypes.h:66:25 */ // Data types type Socklen_t = X__socklen_t /* netdb.h:102:21 */ // % // Structures returned by network data base library. All addresses are // supplied in host order, and returned in network order (suitable for // use in system calls). type Hostent = struct { Fh_name uintptr Fh_aliases uintptr Fh_addrtype int32 Fh_length int32 Fh_addr_list uintptr } /* netdb.h:148:1 */ // % // Assumption here is that a network number // fits in an unsigned long -- probably a poor one. type Netent = struct { Fn_name uintptr Fn_aliases uintptr Fn_addrtype int32 Fn_net Uint32_t } /* netdb.h:161:1 */ type Servent = struct { Fs_name uintptr Fs_aliases uintptr Fs_port int32 F__ccgo_pad1 [4]byte Fs_proto uintptr } /* netdb.h:176:1 */ type Protoent = struct { Fp_name uintptr Fp_aliases uintptr Fp_proto int32 F__ccgo_pad1 [4]byte } /* netdb.h:183:1 */ // Note: ai_addrlen used to be a size_t, per RFC 2553. // In XNS5.2, and subsequently in POSIX-2001 and // draft-ietf-ipngwg-rfc2553bis-02.txt it was changed to a socklen_t. // To accommodate for this while preserving binary compatibility with the // old interface, we prepend or append 32 bits of padding, depending on // the (LP64) architecture's endianness. // // This should be deleted the next time the libc major number is // incremented. type Addrinfo = struct { Fai_flags int32 Fai_family int32 Fai_socktype int32 Fai_protocol int32 Fai_addrlen X__socklen_t F__ccgo_pad1 [4]byte Fai_canonname uintptr Fai_addr uintptr Fai_next uintptr } /* netdb.h:202:1 */ var _ int8 /* gen.c:2:13: */