netdb_netbsd_arm.go (55360B)
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_netbsd_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:269:1: 19 AI_CANONNAME = 0x00000002 // netdb.h:266:1: 20 AI_MASK = 3087 // netdb.h:273:1: 21 AI_NUMERICHOST = 0x00000004 // netdb.h:267:1: 22 AI_NUMERICSERV = 0x00000008 // netdb.h:268:1: 23 AI_PASSIVE = 0x00000001 // netdb.h:265:1: 24 AI_SRV = 0x00000800 // netdb.h:272:1: 25 EAI_ADDRFAMILY = 1 // netdb.h:243:1: 26 EAI_AGAIN = 2 // netdb.h:244:1: 27 EAI_BADFLAGS = 3 // netdb.h:245:1: 28 EAI_BADHINTS = 12 // netdb.h:254:1: 29 EAI_FAIL = 4 // netdb.h:246:1: 30 EAI_FAMILY = 5 // netdb.h:247:1: 31 EAI_MAX = 15 // netdb.h:257:1: 32 EAI_MEMORY = 6 // netdb.h:248:1: 33 EAI_NODATA = 7 // netdb.h:249:1: 34 EAI_NONAME = 8 // netdb.h:250:1: 35 EAI_OVERFLOW = 14 // netdb.h:256:1: 36 EAI_PROTOCOL = 13 // netdb.h:255:1: 37 EAI_SERVICE = 9 // netdb.h:251:1: 38 EAI_SOCKTYPE = 10 // netdb.h:252:1: 39 EAI_SYSTEM = 11 // netdb.h:253:1: 40 HOST_NOT_FOUND = 1 // netdb.h:230:1: 41 INT16_MAX = 32767 // common_int_limits.h:53:1: 42 INT16_MIN = -32768 // common_int_limits.h:47:1: 43 INT32_MAX = 2147483647 // common_int_limits.h:54:1: 44 INT32_MIN = -2147483648 // common_int_limits.h:48:1: 45 INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1: 46 INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1: 47 INT8_MAX = 127 // common_int_limits.h:52:1: 48 INT8_MIN = -128 // common_int_limits.h:46:1: 49 INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1: 50 INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1: 51 INTPTR_MAX = 2147483647 // common_int_limits.h:105:1: 52 INTPTR_MIN = -2147483648 // common_int_limits.h:104:1: 53 INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1: 54 INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1: 55 INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1: 56 INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1: 57 INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1: 58 INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1: 59 INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1: 60 INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1: 61 INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1: 62 INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1: 63 INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1: 64 INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1: 65 INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1: 66 INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1: 67 INT_LEAST8_MAX = 127 // common_int_limits.h:72:1: 68 INT_LEAST8_MIN = -128 // common_int_limits.h:66:1: 69 NETDB_INTERNAL = -1 // netdb.h:226:1: 70 NETDB_SUCCESS = 0 // netdb.h:227:1: 71 NI_DGRAM = 0x00000010 // netdb.h:300:1: 72 NI_MAXHOST = 1025 // netdb.h:289:1: 73 NI_MAXSERV = 32 // netdb.h:290:1: 74 NI_NAMEREQD = 0x00000004 // netdb.h:298:1: 75 NI_NOFQDN = 0x00000001 // netdb.h:296:1: 76 NI_NUMERICHOST = 0x00000002 // netdb.h:297:1: 77 NI_NUMERICSCOPE = 0x00000040 // netdb.h:302:1: 78 NI_NUMERICSERV = 0x00000008 // netdb.h:299:1: 79 NI_WITHSCOPEID = 0x00000020 // netdb.h:301:1: 80 NO_ADDRESS = 4 // netdb.h:235:1: 81 NO_DATA = 4 // netdb.h:233:1: 82 NO_RECOVERY = 3 // netdb.h:232:1: 83 PRIX16 = "X" // int_fmtio.h:186:1: 84 PRIX32 = "X" // int_fmtio.h:187:1: 85 PRIX64 = "llX" // int_fmtio.h:189:1: 86 PRIX8 = "X" // int_fmtio.h:185:1: 87 PRIXFAST16 = "X" // int_fmtio.h:202:1: 88 PRIXFAST32 = "X" // int_fmtio.h:203:1: 89 PRIXFAST64 = "llX" // int_fmtio.h:205:1: 90 PRIXFAST8 = "X" // int_fmtio.h:201:1: 91 PRIXLEAST16 = "X" // int_fmtio.h:194:1: 92 PRIXLEAST32 = "X" // int_fmtio.h:195:1: 93 PRIXLEAST64 = "llX" // int_fmtio.h:197:1: 94 PRIXLEAST8 = "X" // int_fmtio.h:193:1: 95 PRIXMAX = "llX" // int_fmtio.h:206:1: 96 PRIXPTR = "lX" // int_fmtio.h:211:1: 97 PRId16 = "d" // int_fmtio.h:44:1: 98 PRId32 = "d" // int_fmtio.h:45:1: 99 PRId64 = "lld" // int_fmtio.h:47:1: 100 PRId8 = "d" // int_fmtio.h:43:1: 101 PRIdFAST16 = "d" // int_fmtio.h:60:1: 102 PRIdFAST32 = "d" // int_fmtio.h:61:1: 103 PRIdFAST64 = "lld" // int_fmtio.h:63:1: 104 PRIdFAST8 = "d" // int_fmtio.h:59:1: 105 PRIdLEAST16 = "d" // int_fmtio.h:52:1: 106 PRIdLEAST32 = "d" // int_fmtio.h:53:1: 107 PRIdLEAST64 = "lld" // int_fmtio.h:55:1: 108 PRIdLEAST8 = "d" // int_fmtio.h:51:1: 109 PRIdMAX = "lld" // int_fmtio.h:64:1: 110 PRIdPTR = "ld" // int_fmtio.h:69:1: 111 PRIi16 = "i" // int_fmtio.h:72:1: 112 PRIi32 = "i" // int_fmtio.h:73:1: 113 PRIi64 = "lli" // int_fmtio.h:75:1: 114 PRIi8 = "i" // int_fmtio.h:71:1: 115 PRIiFAST16 = "i" // int_fmtio.h:88:1: 116 PRIiFAST32 = "i" // int_fmtio.h:89:1: 117 PRIiFAST64 = "lli" // int_fmtio.h:91:1: 118 PRIiFAST8 = "i" // int_fmtio.h:87:1: 119 PRIiLEAST16 = "i" // int_fmtio.h:80:1: 120 PRIiLEAST32 = "i" // int_fmtio.h:81:1: 121 PRIiLEAST64 = "lli" // int_fmtio.h:83:1: 122 PRIiLEAST8 = "i" // int_fmtio.h:79:1: 123 PRIiMAX = "lli" // int_fmtio.h:92:1: 124 PRIiPTR = "li" // int_fmtio.h:97:1: 125 PRIo16 = "o" // int_fmtio.h:102:1: 126 PRIo32 = "o" // int_fmtio.h:103:1: 127 PRIo64 = "llo" // int_fmtio.h:105:1: 128 PRIo8 = "o" // int_fmtio.h:101:1: 129 PRIoFAST16 = "o" // int_fmtio.h:118:1: 130 PRIoFAST32 = "o" // int_fmtio.h:119:1: 131 PRIoFAST64 = "llo" // int_fmtio.h:121:1: 132 PRIoFAST8 = "o" // int_fmtio.h:117:1: 133 PRIoLEAST16 = "o" // int_fmtio.h:110:1: 134 PRIoLEAST32 = "o" // int_fmtio.h:111:1: 135 PRIoLEAST64 = "llo" // int_fmtio.h:113:1: 136 PRIoLEAST8 = "o" // int_fmtio.h:109:1: 137 PRIoMAX = "llo" // int_fmtio.h:122:1: 138 PRIoPTR = "lo" // int_fmtio.h:127:1: 139 PRIu16 = "u" // int_fmtio.h:130:1: 140 PRIu32 = "u" // int_fmtio.h:131:1: 141 PRIu64 = "llu" // int_fmtio.h:133:1: 142 PRIu8 = "u" // int_fmtio.h:129:1: 143 PRIuFAST16 = "u" // int_fmtio.h:146:1: 144 PRIuFAST32 = "u" // int_fmtio.h:147:1: 145 PRIuFAST64 = "llu" // int_fmtio.h:149:1: 146 PRIuFAST8 = "u" // int_fmtio.h:145:1: 147 PRIuLEAST16 = "u" // int_fmtio.h:138:1: 148 PRIuLEAST32 = "u" // int_fmtio.h:139:1: 149 PRIuLEAST64 = "llu" // int_fmtio.h:141:1: 150 PRIuLEAST8 = "u" // int_fmtio.h:137:1: 151 PRIuMAX = "llu" // int_fmtio.h:150:1: 152 PRIuPTR = "lu" // int_fmtio.h:155:1: 153 PRIx16 = "x" // int_fmtio.h:158:1: 154 PRIx32 = "x" // int_fmtio.h:159:1: 155 PRIx64 = "llx" // int_fmtio.h:161:1: 156 PRIx8 = "x" // int_fmtio.h:157:1: 157 PRIxFAST16 = "x" // int_fmtio.h:174:1: 158 PRIxFAST32 = "x" // int_fmtio.h:175:1: 159 PRIxFAST64 = "llx" // int_fmtio.h:177:1: 160 PRIxFAST8 = "x" // int_fmtio.h:173:1: 161 PRIxLEAST16 = "x" // int_fmtio.h:166:1: 162 PRIxLEAST32 = "x" // int_fmtio.h:167:1: 163 PRIxLEAST64 = "llx" // int_fmtio.h:169:1: 164 PRIxLEAST8 = "x" // int_fmtio.h:165:1: 165 PRIxMAX = "llx" // int_fmtio.h:178:1: 166 PRIxPTR = "lx" // int_fmtio.h:183:1: 167 PTRDIFF_MAX = 2147483647 // common_int_limits.h:121:1: 168 PTRDIFF_MIN = -2147483648 // common_int_limits.h:120:1: 169 SCNd16 = "hd" // int_fmtio.h:216:1: 170 SCNd32 = "d" // int_fmtio.h:217:1: 171 SCNd64 = "lld" // int_fmtio.h:219:1: 172 SCNd8 = "hhd" // int_fmtio.h:215:1: 173 SCNdFAST16 = "d" // int_fmtio.h:232:1: 174 SCNdFAST32 = "d" // int_fmtio.h:233:1: 175 SCNdFAST64 = "lld" // int_fmtio.h:235:1: 176 SCNdFAST8 = "d" // int_fmtio.h:231:1: 177 SCNdLEAST16 = "hd" // int_fmtio.h:224:1: 178 SCNdLEAST32 = "d" // int_fmtio.h:225:1: 179 SCNdLEAST64 = "lld" // int_fmtio.h:227:1: 180 SCNdLEAST8 = "hhd" // int_fmtio.h:223:1: 181 SCNdMAX = "lld" // int_fmtio.h:236:1: 182 SCNdPTR = "ld" // int_fmtio.h:241:1: 183 SCNi16 = "hi" // int_fmtio.h:244:1: 184 SCNi32 = "i" // int_fmtio.h:245:1: 185 SCNi64 = "lli" // int_fmtio.h:247:1: 186 SCNi8 = "hhi" // int_fmtio.h:243:1: 187 SCNiFAST16 = "i" // int_fmtio.h:260:1: 188 SCNiFAST32 = "i" // int_fmtio.h:261:1: 189 SCNiFAST64 = "lli" // int_fmtio.h:263:1: 190 SCNiFAST8 = "i" // int_fmtio.h:259:1: 191 SCNiLEAST16 = "hi" // int_fmtio.h:252:1: 192 SCNiLEAST32 = "i" // int_fmtio.h:253:1: 193 SCNiLEAST64 = "lli" // int_fmtio.h:255:1: 194 SCNiLEAST8 = "hhi" // int_fmtio.h:251:1: 195 SCNiMAX = "lli" // int_fmtio.h:264:1: 196 SCNiPTR = "li" // int_fmtio.h:269:1: 197 SCNo16 = "ho" // int_fmtio.h:274:1: 198 SCNo32 = "o" // int_fmtio.h:275:1: 199 SCNo64 = "llo" // int_fmtio.h:277:1: 200 SCNo8 = "hho" // int_fmtio.h:273:1: 201 SCNoFAST16 = "o" // int_fmtio.h:290:1: 202 SCNoFAST32 = "o" // int_fmtio.h:291:1: 203 SCNoFAST64 = "llo" // int_fmtio.h:293:1: 204 SCNoFAST8 = "o" // int_fmtio.h:289:1: 205 SCNoLEAST16 = "ho" // int_fmtio.h:282:1: 206 SCNoLEAST32 = "o" // int_fmtio.h:283:1: 207 SCNoLEAST64 = "llo" // int_fmtio.h:285:1: 208 SCNoLEAST8 = "hho" // int_fmtio.h:281:1: 209 SCNoMAX = "llo" // int_fmtio.h:294:1: 210 SCNoPTR = "lo" // int_fmtio.h:299:1: 211 SCNu16 = "hu" // int_fmtio.h:302:1: 212 SCNu32 = "u" // int_fmtio.h:303:1: 213 SCNu64 = "llu" // int_fmtio.h:305:1: 214 SCNu8 = "hhu" // int_fmtio.h:301:1: 215 SCNuFAST16 = "u" // int_fmtio.h:318:1: 216 SCNuFAST32 = "u" // int_fmtio.h:319:1: 217 SCNuFAST64 = "llu" // int_fmtio.h:321:1: 218 SCNuFAST8 = "u" // int_fmtio.h:317:1: 219 SCNuLEAST16 = "hu" // int_fmtio.h:310:1: 220 SCNuLEAST32 = "u" // int_fmtio.h:311:1: 221 SCNuLEAST64 = "llu" // int_fmtio.h:313:1: 222 SCNuLEAST8 = "hhu" // int_fmtio.h:309:1: 223 SCNuMAX = "llu" // int_fmtio.h:322:1: 224 SCNuPTR = "lu" // int_fmtio.h:327:1: 225 SCNx16 = "hx" // int_fmtio.h:330:1: 226 SCNx32 = "x" // int_fmtio.h:331:1: 227 SCNx64 = "llx" // int_fmtio.h:333:1: 228 SCNx8 = "hhx" // int_fmtio.h:329:1: 229 SCNxFAST16 = "x" // int_fmtio.h:346:1: 230 SCNxFAST32 = "x" // int_fmtio.h:347:1: 231 SCNxFAST64 = "llx" // int_fmtio.h:349:1: 232 SCNxFAST8 = "x" // int_fmtio.h:345:1: 233 SCNxLEAST16 = "hx" // int_fmtio.h:338:1: 234 SCNxLEAST32 = "x" // int_fmtio.h:339:1: 235 SCNxLEAST64 = "llx" // int_fmtio.h:341:1: 236 SCNxLEAST8 = "hhx" // int_fmtio.h:337:1: 237 SCNxMAX = "llx" // int_fmtio.h:350:1: 238 SCNxPTR = "lx" // int_fmtio.h:355:1: 239 SCOPE_DELIMITER = 37 // netdb.h:308:1: 240 SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1: 241 SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1: 242 SIZE_MAX = 4294967295 // common_int_limits.h:128:1: 243 TRY_AGAIN = 2 // netdb.h:231:1: 244 UINT16_MAX = 65535 // common_int_limits.h:59:1: 245 UINT32_MAX = 4294967295 // common_int_limits.h:60:1: 246 UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1: 247 UINT8_MAX = 255 // common_int_limits.h:58:1: 248 UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1: 249 UINTPTR_MAX = 4294967295 // common_int_limits.h:106:1: 250 UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1: 251 UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1: 252 UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1: 253 UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1: 254 UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1: 255 UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1: 256 UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1: 257 UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1: 258 WCHAR_MAX = 2147483647 // wchar_limits.h:50:1: 259 WCHAR_MIN = -2147483648 // wchar_limits.h:42:1: 260 WINT_MAX = 2147483647 // wchar_limits.h:68:1: 261 WINT_MIN = -2147483648 // wchar_limits.h:60:1: 262 X_ARM_ARCH_4T = 0 // cdefs.h:44:1: 263 X_ARM_ARCH_5 = 0 // cdefs.h:40:1: 264 X_ARM_ARCH_5T = 0 // cdefs.h:36:1: 265 X_ARM_ARCH_6 = 0 // cdefs.h:31:1: 266 X_ARM_ARCH_7 = 0 // cdefs.h:20:1: 267 X_ARM_ARCH_DWORD_OK = 0 // cdefs.h:51:1: 268 X_ARM_ARCH_T2 = 0 // cdefs.h:24:1: 269 X_ARM_CDEFS_H_ = 0 // cdefs.h:4:1: 270 X_ARM_INT_CONST_H_ = 0 // int_const.h:33:1: 271 X_ARM_INT_FMTIO_H_ = 0 // int_fmtio.h:33:1: 272 X_ARM_INT_LIMITS_H_ = 0 // int_limits.h:33:1: 273 X_ARM_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1: 274 X_ARM_INT_TYPES_H_ = 0 // int_types.h:33:1: 275 X_ARM_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1: 276 X_BSD_INT16_T_ = 0 // stdint.h:50:1: 277 X_BSD_INT32_T_ = 0 // stdint.h:60:1: 278 X_BSD_INT64_T_ = 0 // stdint.h:70:1: 279 X_BSD_INT8_T_ = 0 // stdint.h:40:1: 280 X_BSD_INTPTR_T_ = 0 // stdint.h:80:1: 281 X_BSD_UINT16_T_ = 0 // stdint.h:55:1: 282 X_BSD_UINT32_T_ = 0 // stdint.h:65:1: 283 X_BSD_UINT64_T_ = 0 // stdint.h:75:1: 284 X_BSD_UINT8_T_ = 0 // stdint.h:45:1: 285 X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1: 286 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 287 X_INTTYPES_H_ = 0 // inttypes.h:33:1: 288 X_NETBSD_SOURCE = 1 // featuretest.h:70:1: 289 X_NETDB_H_ = 0 // netdb.h:91:1: 290 X_PATH_HEQUIV = "/etc/hosts.equiv" // netdb.h:113:1: 291 X_PATH_HOSTS = "/etc/hosts" // netdb.h:116:1: 292 X_PATH_NETWORKS = "/etc/networks" // netdb.h:119:1: 293 X_PATH_PROTOCOLS = "/etc/protocols" // netdb.h:122:1: 294 X_PATH_SERVICES = "/etc/services" // netdb.h:125:1: 295 X_PATH_SERVICES_CDB = "/var/db/services.cdb" // netdb.h:128:1: 296 X_PATH_SERVICES_DB = "/var/db/services.db" // netdb.h:131:1: 297 X_SYS_ANSI_H_ = 0 // ansi.h:33:1: 298 X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1: 299 X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1: 300 X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1: 301 X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1: 302 X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1: 303 X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1: 304 X_SYS_INTTYPES_H_ = 0 // inttypes.h:33:1: 305 X_SYS_STDINT_H_ = 0 // stdint.h:33:1: 306 ) 307 308 type Ptrdiff_t = int32 /* <builtin>:3:26 */ 309 310 type Size_t = uint32 /* <builtin>:9:23 */ 311 312 type Wchar_t = int32 /* <builtin>:15:24 */ 313 314 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 315 type X__float128 = float64 /* <builtin>:47:21 */ 316 317 // return true if value 'a' fits in type 't' 318 319 // $NetBSD: endian_machdep.h,v 1.9 2014/01/29 01:03:13 matt Exp $ 320 321 // __ARMEB__ or __AARCH64EB__ is predefined when building big-endian ARM. 322 // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $ 323 324 // - 325 // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc. 326 // All rights reserved. 327 // 328 // This code is derived from software contributed to The NetBSD Foundation 329 // by Jun-ichiro itojun Hagino and by Klaus Klein. 330 // 331 // Redistribution and use in source and binary forms, with or without 332 // modification, are permitted provided that the following conditions 333 // are met: 334 // 1. Redistributions of source code must retain the above copyright 335 // notice, this list of conditions and the following disclaimer. 336 // 2. Redistributions in binary form must reproduce the above copyright 337 // notice, this list of conditions and the following disclaimer in the 338 // documentation and/or other materials provided with the distribution. 339 // 340 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 341 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 342 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 343 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 344 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 345 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 346 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 347 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 348 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 349 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 350 // POSSIBILITY OF SUCH DAMAGE. 351 352 // $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ 353 354 // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $ 355 356 // - 357 // Copyright (c) 2014 The NetBSD Foundation, Inc. 358 // All rights reserved. 359 // 360 // This code is derived from software contributed to The NetBSD Foundation 361 // by Matt Thomas of 3am Software Foundry. 362 // 363 // Redistribution and use in source and binary forms, with or without 364 // modification, are permitted provided that the following conditions 365 // are met: 366 // 1. Redistributions of source code must retain the above copyright 367 // notice, this list of conditions and the following disclaimer. 368 // 2. Redistributions in binary form must reproduce the above copyright 369 // notice, this list of conditions and the following disclaimer in the 370 // documentation and/or other materials provided with the distribution. 371 // 372 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 373 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 374 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 375 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 376 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 377 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 378 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 379 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 380 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 381 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 382 // POSSIBILITY OF SUCH DAMAGE. 383 384 // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ 385 386 // * Copyright (c) 1991, 1993 387 // The Regents of the University of California. All rights reserved. 388 // 389 // This code is derived from software contributed to Berkeley by 390 // Berkeley Software Design, Inc. 391 // 392 // Redistribution and use in source and binary forms, with or without 393 // modification, are permitted provided that the following conditions 394 // are met: 395 // 1. Redistributions of source code must retain the above copyright 396 // notice, this list of conditions and the following disclaimer. 397 // 2. Redistributions in binary form must reproduce the above copyright 398 // notice, this list of conditions and the following disclaimer in the 399 // documentation and/or other materials provided with the distribution. 400 // 3. Neither the name of the University nor the names of its contributors 401 // may be used to endorse or promote products derived from this software 402 // without specific prior written permission. 403 // 404 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 405 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 406 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 407 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 408 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 409 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 410 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 411 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 412 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 413 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 414 // SUCH DAMAGE. 415 // 416 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 417 418 // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $ 419 420 // - 421 // Copyright (c) 2014 The NetBSD Foundation, Inc. 422 // All rights reserved. 423 // 424 // This code is derived from software contributed to The NetBSD Foundation 425 // by Matt Thomas of 3am Software Foundry. 426 // 427 // Redistribution and use in source and binary forms, with or without 428 // modification, are permitted provided that the following conditions 429 // are met: 430 // 1. Redistributions of source code must retain the above copyright 431 // notice, this list of conditions and the following disclaimer. 432 // 2. Redistributions in binary form must reproduce the above copyright 433 // notice, this list of conditions and the following disclaimer in the 434 // documentation and/or other materials provided with the distribution. 435 // 436 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 437 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 438 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 439 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 440 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 441 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 442 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 443 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 444 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 445 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 446 // POSSIBILITY OF SUCH DAMAGE. 447 448 // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $ 449 450 // - 451 // Copyright (c) 2014 The NetBSD Foundation, Inc. 452 // All rights reserved. 453 // 454 // This code is derived from software contributed to The NetBSD Foundation 455 // by Joerg Sonnenberger. 456 // 457 // Redistribution and use in source and binary forms, with or without 458 // modification, are permitted provided that the following conditions 459 // are met: 460 // 1. Redistributions of source code must retain the above copyright 461 // notice, this list of conditions and the following disclaimer. 462 // 2. Redistributions in binary form must reproduce the above copyright 463 // notice, this list of conditions and the following disclaimer in the 464 // documentation and/or other materials provided with the distribution. 465 // 466 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 467 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 468 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 469 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 470 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 471 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 472 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 473 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 474 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 475 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 476 // POSSIBILITY OF SUCH DAMAGE. 477 478 // 7.18.1 Integer types 479 480 // 7.18.1.1 Exact-width integer types 481 482 type X__int8_t = int8 /* common_int_types.h:45:27 */ 483 type X__uint8_t = uint8 /* common_int_types.h:46:27 */ 484 type X__int16_t = int16 /* common_int_types.h:47:27 */ 485 type X__uint16_t = uint16 /* common_int_types.h:48:27 */ 486 type X__int32_t = int32 /* common_int_types.h:49:27 */ 487 type X__uint32_t = uint32 /* common_int_types.h:50:27 */ 488 type X__int64_t = int64 /* common_int_types.h:51:27 */ 489 type X__uint64_t = uint64 /* common_int_types.h:52:27 */ 490 491 // 7.18.1.4 Integer types capable of holding object pointers 492 493 type X__intptr_t = int32 /* common_int_types.h:58:27 */ 494 type X__uintptr_t = uint32 /* common_int_types.h:59:26 */ 495 496 // Types which are fundamental to the implementation and may appear in 497 // more than one standard header are defined here. Standard headers 498 // then use: 499 // #ifdef _BSD_SIZE_T_ 500 // typedef _BSD_SIZE_T_ size_t; 501 // #undef _BSD_SIZE_T_ 502 // #endif 503 504 type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address 505 type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id 506 type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address 507 type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number 508 type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions 509 type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset 510 type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id 511 type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family 512 type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length 513 type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id 514 type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs) 515 type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */ 516 type X__wctrans_t = uintptr /* ansi.h:51:32 */ 517 type X__wctype_t = uintptr /* ansi.h:54:31 */ 518 519 // mbstate_t is an opaque object to keep conversion state, during multibyte 520 // stream conversions. The content must not be referenced by user programs. 521 type X__mbstate_t = struct { 522 F__mbstateL X__int64_t 523 F__ccgo_pad1 [120]byte 524 } /* ansi.h:63:3 */ 525 526 type X__va_list = X__builtin_va_list /* ansi.h:72:27 */ 527 528 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 529 530 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 531 // Public domain. 532 // 533 // NOTE: Do not protect this header against multiple inclusion. Doing 534 // so can have subtle side-effects due to header file inclusion order 535 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 536 // protect each CPP macro that we want to supply. 537 538 // Feature-test macros are defined by several standards, and allow an 539 // application to specify what symbols they want the system headers to 540 // expose, and hence what standard they want them to conform to. 541 // There are two classes of feature-test macros. The first class 542 // specify complete standards, and if one of these is defined, header 543 // files will try to conform to the relevant standard. They are: 544 // 545 // ANSI macros: 546 // _ANSI_SOURCE ANSI C89 547 // 548 // POSIX macros: 549 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 550 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 551 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 552 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 553 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 554 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 555 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 556 // 557 // X/Open macros: 558 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 559 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 560 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 561 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 562 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 563 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 564 // 565 // NetBSD macros: 566 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 567 // 568 // If more than one of these "major" feature-test macros is defined, 569 // then the set of facilities provided (and namespace used) is the 570 // union of that specified by the relevant standards, and in case of 571 // conflict, the earlier standard in the above list has precedence (so 572 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 573 // of rename() that's used is the POSIX one). If none of the "major" 574 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 575 // 576 // There are also "minor" feature-test macros, which enable extra 577 // functionality in addition to some base standard. They should be 578 // defined along with one of the "major" macros. The "minor" macros 579 // are: 580 // 581 // _REENTRANT 582 // _ISOC99_SOURCE 583 // _ISOC11_SOURCE 584 // _LARGEFILE_SOURCE Large File Support 585 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 586 587 // $NetBSD: inttypes.h,v 1.11 2015/01/16 18:35:59 christos Exp $ 588 589 // - 590 // Copyright (c) 2001 The NetBSD Foundation, Inc. 591 // All rights reserved. 592 // 593 // This code is derived from software contributed to The NetBSD Foundation 594 // by Klaus Klein. 595 // 596 // Redistribution and use in source and binary forms, with or without 597 // modification, are permitted provided that the following conditions 598 // are met: 599 // 1. Redistributions of source code must retain the above copyright 600 // notice, this list of conditions and the following disclaimer. 601 // 2. Redistributions in binary form must reproduce the above copyright 602 // notice, this list of conditions and the following disclaimer in the 603 // documentation and/or other materials provided with the distribution. 604 // 605 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 606 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 607 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 608 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 609 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 610 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 611 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 612 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 613 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 614 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 615 // POSSIBILITY OF SUCH DAMAGE. 616 617 // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ 618 619 // * Copyright (c) 1991, 1993 620 // The Regents of the University of California. All rights reserved. 621 // 622 // This code is derived from software contributed to Berkeley by 623 // Berkeley Software Design, Inc. 624 // 625 // Redistribution and use in source and binary forms, with or without 626 // modification, are permitted provided that the following conditions 627 // are met: 628 // 1. Redistributions of source code must retain the above copyright 629 // notice, this list of conditions and the following disclaimer. 630 // 2. Redistributions in binary form must reproduce the above copyright 631 // notice, this list of conditions and the following disclaimer in the 632 // documentation and/or other materials provided with the distribution. 633 // 3. Neither the name of the University nor the names of its contributors 634 // may be used to endorse or promote products derived from this software 635 // without specific prior written permission. 636 // 637 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 638 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 639 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 640 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 641 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 642 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 643 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 644 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 645 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 646 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 647 // SUCH DAMAGE. 648 // 649 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 650 651 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 652 653 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 654 // Public domain. 655 // 656 // NOTE: Do not protect this header against multiple inclusion. Doing 657 // so can have subtle side-effects due to header file inclusion order 658 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 659 // protect each CPP macro that we want to supply. 660 661 // Feature-test macros are defined by several standards, and allow an 662 // application to specify what symbols they want the system headers to 663 // expose, and hence what standard they want them to conform to. 664 // There are two classes of feature-test macros. The first class 665 // specify complete standards, and if one of these is defined, header 666 // files will try to conform to the relevant standard. They are: 667 // 668 // ANSI macros: 669 // _ANSI_SOURCE ANSI C89 670 // 671 // POSIX macros: 672 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 673 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 674 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 675 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 676 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 677 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 678 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 679 // 680 // X/Open macros: 681 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 682 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 683 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 684 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 685 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 686 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 687 // 688 // NetBSD macros: 689 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 690 // 691 // If more than one of these "major" feature-test macros is defined, 692 // then the set of facilities provided (and namespace used) is the 693 // union of that specified by the relevant standards, and in case of 694 // conflict, the earlier standard in the above list has precedence (so 695 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 696 // of rename() that's used is the POSIX one). If none of the "major" 697 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 698 // 699 // There are also "minor" feature-test macros, which enable extra 700 // functionality in addition to some base standard. They should be 701 // defined along with one of the "major" macros. The "minor" macros 702 // are: 703 // 704 // _REENTRANT 705 // _ISOC99_SOURCE 706 // _ISOC11_SOURCE 707 // _LARGEFILE_SOURCE Large File Support 708 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 709 710 // $NetBSD: inttypes.h,v 1.6 2013/04/22 21:26:48 joerg Exp $ 711 712 // - 713 // Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. 714 // All rights reserved. 715 // 716 // This code is derived from software contributed to The NetBSD Foundation 717 // by Klaus J. Klein. 718 // 719 // Redistribution and use in source and binary forms, with or without 720 // modification, are permitted provided that the following conditions 721 // are met: 722 // 1. Redistributions of source code must retain the above copyright 723 // notice, this list of conditions and the following disclaimer. 724 // 2. Redistributions in binary form must reproduce the above copyright 725 // notice, this list of conditions and the following disclaimer in the 726 // documentation and/or other materials provided with the distribution. 727 // 728 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 729 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 730 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 731 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 732 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 733 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 734 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 735 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 736 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 737 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 738 // POSSIBILITY OF SUCH DAMAGE. 739 740 // 7.8 Format conversion of integer types 741 742 // $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $ 743 744 // - 745 // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc. 746 // All rights reserved. 747 // 748 // This code is derived from software contributed to The NetBSD Foundation 749 // by Klaus Klein. 750 // 751 // Redistribution and use in source and binary forms, with or without 752 // modification, are permitted provided that the following conditions 753 // are met: 754 // 1. Redistributions of source code must retain the above copyright 755 // notice, this list of conditions and the following disclaimer. 756 // 2. Redistributions in binary form must reproduce the above copyright 757 // notice, this list of conditions and the following disclaimer in the 758 // documentation and/or other materials provided with the distribution. 759 // 760 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 761 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 762 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 763 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 764 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 765 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 766 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 767 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 768 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 769 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 770 // POSSIBILITY OF SUCH DAMAGE. 771 772 // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ 773 774 // * Copyright (c) 1991, 1993 775 // The Regents of the University of California. All rights reserved. 776 // 777 // This code is derived from software contributed to Berkeley by 778 // Berkeley Software Design, Inc. 779 // 780 // Redistribution and use in source and binary forms, with or without 781 // modification, are permitted provided that the following conditions 782 // are met: 783 // 1. Redistributions of source code must retain the above copyright 784 // notice, this list of conditions and the following disclaimer. 785 // 2. Redistributions in binary form must reproduce the above copyright 786 // notice, this list of conditions and the following disclaimer in the 787 // documentation and/or other materials provided with the distribution. 788 // 3. Neither the name of the University nor the names of its contributors 789 // may be used to endorse or promote products derived from this software 790 // without specific prior written permission. 791 // 792 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 793 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 794 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 795 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 796 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 797 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 798 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 799 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 800 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 801 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 802 // SUCH DAMAGE. 803 // 804 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 805 806 // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $ 807 808 // - 809 // Copyright (c) 2014 The NetBSD Foundation, Inc. 810 // All rights reserved. 811 // 812 // This code is derived from software contributed to The NetBSD Foundation 813 // by Matt Thomas of 3am Software Foundry. 814 // 815 // Redistribution and use in source and binary forms, with or without 816 // modification, are permitted provided that the following conditions 817 // are met: 818 // 1. Redistributions of source code must retain the above copyright 819 // notice, this list of conditions and the following disclaimer. 820 // 2. Redistributions in binary form must reproduce the above copyright 821 // notice, this list of conditions and the following disclaimer in the 822 // documentation and/or other materials provided with the distribution. 823 // 824 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 825 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 826 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 827 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 828 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 829 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 830 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 831 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 832 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 833 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 834 // POSSIBILITY OF SUCH DAMAGE. 835 836 type Int8_t = X__int8_t /* stdint.h:39:18 */ 837 838 type Uint8_t = X__uint8_t /* stdint.h:44:19 */ 839 840 type Int16_t = X__int16_t /* stdint.h:49:19 */ 841 842 type Uint16_t = X__uint16_t /* stdint.h:54:20 */ 843 844 type Int32_t = X__int32_t /* stdint.h:59:19 */ 845 846 type Uint32_t = X__uint32_t /* stdint.h:64:20 */ 847 848 type Int64_t = X__int64_t /* stdint.h:69:19 */ 849 850 type Uint64_t = X__uint64_t /* stdint.h:74:20 */ 851 852 type Intptr_t = X__intptr_t /* stdint.h:79:20 */ 853 854 type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */ 855 856 // $NetBSD: int_mwgwtypes.h,v 1.7 2014/07/25 21:43:13 joerg Exp $ 857 858 // - 859 // Copyright (c) 2014 The NetBSD Foundation, Inc. 860 // All rights reserved. 861 // 862 // This code is derived from software contributed to The NetBSD Foundation 863 // by Matt Thomas of 3am Software Foundry. 864 // 865 // Redistribution and use in source and binary forms, with or without 866 // modification, are permitted provided that the following conditions 867 // are met: 868 // 1. Redistributions of source code must retain the above copyright 869 // notice, this list of conditions and the following disclaimer. 870 // 2. Redistributions in binary form must reproduce the above copyright 871 // notice, this list of conditions and the following disclaimer in the 872 // documentation and/or other materials provided with the distribution. 873 // 874 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 875 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 876 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 877 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 878 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 879 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 880 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 881 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 882 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 883 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 884 // POSSIBILITY OF SUCH DAMAGE. 885 886 // $NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $ 887 888 // - 889 // Copyright (c) 2014 The NetBSD Foundation, Inc. 890 // All rights reserved. 891 // 892 // This code is derived from software contributed to The NetBSD Foundation 893 // by Joerg Sonnenberger. 894 // 895 // Redistribution and use in source and binary forms, with or without 896 // modification, are permitted provided that the following conditions 897 // are met: 898 // 1. Redistributions of source code must retain the above copyright 899 // notice, this list of conditions and the following disclaimer. 900 // 2. Redistributions in binary form must reproduce the above copyright 901 // notice, this list of conditions and the following disclaimer in the 902 // documentation and/or other materials provided with the distribution. 903 // 904 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 905 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 906 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 907 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 908 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 909 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 910 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 911 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 912 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 913 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 914 // POSSIBILITY OF SUCH DAMAGE. 915 916 // 7.18.1 Integer types 917 918 // 7.18.1.2 Minimum-width integer types 919 920 type Int_least8_t = int8 /* common_int_mwgwtypes.h:45:32 */ 921 type Uint_least8_t = uint8 /* common_int_mwgwtypes.h:46:32 */ 922 type Int_least16_t = int16 /* common_int_mwgwtypes.h:47:32 */ 923 type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */ 924 type Int_least32_t = int32 /* common_int_mwgwtypes.h:49:32 */ 925 type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */ 926 type Int_least64_t = int64 /* common_int_mwgwtypes.h:51:32 */ 927 type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */ 928 929 // 7.18.1.3 Fastest minimum-width integer types 930 type Int_fast8_t = int32 /* common_int_mwgwtypes.h:55:32 */ 931 type Uint_fast8_t = uint32 /* common_int_mwgwtypes.h:56:32 */ 932 type Int_fast16_t = int32 /* common_int_mwgwtypes.h:57:32 */ 933 type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */ 934 type Int_fast32_t = int32 /* common_int_mwgwtypes.h:59:32 */ 935 type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */ 936 type Int_fast64_t = int64 /* common_int_mwgwtypes.h:61:32 */ 937 type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */ 938 939 // 7.18.1.5 Greatest-width integer types 940 941 type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */ 942 type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */ 943 944 type Imaxdiv_t = struct { 945 Fquot Intmax_t 946 Frem Intmax_t 947 } /* inttypes.h:60:3 */ 948 949 type Locale_t = uintptr /* inttypes.h:66:25 */ 950 951 // Data types 952 type Socklen_t = X__socklen_t /* netdb.h:102:21 */ 953 954 // % 955 // Structures returned by network data base library. All addresses are 956 // supplied in host order, and returned in network order (suitable for 957 // use in system calls). 958 type Hostent = struct { 959 Fh_name uintptr 960 Fh_aliases uintptr 961 Fh_addrtype int32 962 Fh_length int32 963 Fh_addr_list uintptr 964 } /* netdb.h:148:1 */ 965 966 // % 967 // Assumption here is that a network number 968 // fits in an unsigned long -- probably a poor one. 969 type Netent = struct { 970 Fn_name uintptr 971 Fn_aliases uintptr 972 Fn_addrtype int32 973 Fn_net Uint32_t 974 } /* netdb.h:161:1 */ 975 976 type Servent = struct { 977 Fs_name uintptr 978 Fs_aliases uintptr 979 Fs_port int32 980 Fs_proto uintptr 981 } /* netdb.h:176:1 */ 982 983 type Protoent = struct { 984 Fp_name uintptr 985 Fp_aliases uintptr 986 Fp_proto int32 987 } /* netdb.h:183:1 */ 988 989 // Note: ai_addrlen used to be a size_t, per RFC 2553. 990 // In XNS5.2, and subsequently in POSIX-2001 and 991 // draft-ietf-ipngwg-rfc2553bis-02.txt it was changed to a socklen_t. 992 // To accommodate for this while preserving binary compatibility with the 993 // old interface, we prepend or append 32 bits of padding, depending on 994 // the (LP64) architecture's endianness. 995 // 996 // This should be deleted the next time the libc major number is 997 // incremented. 998 type Addrinfo = struct { 999 Fai_flags int32 1000 Fai_family int32 1001 Fai_socktype int32 1002 Fai_protocol int32 1003 Fai_addrlen X__socklen_t 1004 Fai_canonname uintptr 1005 Fai_addr uintptr 1006 Fai_next uintptr 1007 } /* netdb.h:202:1 */ 1008 1009 var _ uint8 /* gen.c:2:13: */