1 // mkerrors.sh -m64 2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT 3 4 // Created by cgo -godefs - DO NOT EDIT 5 // cgo -godefs -- -m64 _const.go 6 7 // +build amd64,solaris 8 9 package syscall 10 11 const ( 12 AF_802 = 0x12 13 AF_APPLETALK = 0x10 14 AF_CCITT = 0xa 15 AF_CHAOS = 0x5 16 AF_DATAKIT = 0x9 17 AF_DECnet = 0xc 18 AF_DLI = 0xd 19 AF_ECMA = 0x8 20 AF_FILE = 0x1 21 AF_GOSIP = 0x16 22 AF_HYLINK = 0xf 23 AF_IMPLINK = 0x3 24 AF_INET = 0x2 25 AF_INET6 = 0x1a 26 AF_INET_OFFLOAD = 0x1e 27 AF_IPX = 0x17 28 AF_KEY = 0x1b 29 AF_LAT = 0xe 30 AF_LINK = 0x19 31 AF_LOCAL = 0x1 32 AF_MAX = 0x20 33 AF_NBS = 0x7 34 AF_NCA = 0x1c 35 AF_NIT = 0x11 36 AF_NS = 0x6 37 AF_OSI = 0x13 38 AF_OSINET = 0x15 39 AF_PACKET = 0x20 40 AF_POLICY = 0x1d 41 AF_PUP = 0x4 42 AF_ROUTE = 0x18 43 AF_SNA = 0xb 44 AF_TRILL = 0x1f 45 AF_UNIX = 0x1 46 AF_UNSPEC = 0x0 47 AF_X25 = 0x14 48 ARPHRD_ARCNET = 0x7 49 ARPHRD_ATM = 0x10 50 ARPHRD_AX25 = 0x3 51 ARPHRD_CHAOS = 0x5 52 ARPHRD_EETHER = 0x2 53 ARPHRD_ETHER = 0x1 54 ARPHRD_FC = 0x12 55 ARPHRD_FRAME = 0xf 56 ARPHRD_HDLC = 0x11 57 ARPHRD_IB = 0x20 58 ARPHRD_IEEE802 = 0x6 59 ARPHRD_IPATM = 0x13 60 ARPHRD_METRICOM = 0x17 61 ARPHRD_TUNNEL = 0x1f 62 B0 = 0x0 63 B110 = 0x3 64 B115200 = 0x12 65 B1200 = 0x9 66 B134 = 0x4 67 B150 = 0x5 68 B153600 = 0x13 69 B1800 = 0xa 70 B19200 = 0xe 71 B200 = 0x6 72 B230400 = 0x14 73 B2400 = 0xb 74 B300 = 0x7 75 B307200 = 0x15 76 B38400 = 0xf 77 B460800 = 0x16 78 B4800 = 0xc 79 B50 = 0x1 80 B57600 = 0x10 81 B600 = 0x8 82 B75 = 0x2 83 B76800 = 0x11 84 B921600 = 0x17 85 B9600 = 0xd 86 BIOCFLUSH = 0x20004268 87 BIOCGBLEN = 0x40044266 88 BIOCGDLT = 0x4004426a 89 BIOCGDLTLIST = -0x3fefbd89 90 BIOCGDLTLIST32 = -0x3ff7bd89 91 BIOCGETIF = 0x4020426b 92 BIOCGETLIF = 0x4078426b 93 BIOCGHDRCMPLT = 0x40044274 94 BIOCGRTIMEOUT = 0x4010427b 95 BIOCGRTIMEOUT32 = 0x4008427b 96 BIOCGSEESENT = 0x40044278 97 BIOCGSTATS = 0x4080426f 98 BIOCGSTATSOLD = 0x4008426f 99 BIOCIMMEDIATE = -0x7ffbbd90 100 BIOCPROMISC = 0x20004269 101 BIOCSBLEN = -0x3ffbbd9a 102 BIOCSDLT = -0x7ffbbd8a 103 BIOCSETF = -0x7fefbd99 104 BIOCSETF32 = -0x7ff7bd99 105 BIOCSETIF = -0x7fdfbd94 106 BIOCSETLIF = -0x7f87bd94 107 BIOCSHDRCMPLT = -0x7ffbbd8b 108 BIOCSRTIMEOUT = -0x7fefbd86 109 BIOCSRTIMEOUT32 = -0x7ff7bd86 110 BIOCSSEESENT = -0x7ffbbd87 111 BIOCSTCPF = -0x7fefbd8e 112 BIOCSUDPF = -0x7fefbd8d 113 BIOCVERSION = 0x40044271 114 BPF_A = 0x10 115 BPF_ABS = 0x20 116 BPF_ADD = 0x0 117 BPF_ALIGNMENT = 0x4 118 BPF_ALU = 0x4 119 BPF_AND = 0x50 120 BPF_B = 0x10 121 BPF_DFLTBUFSIZE = 0x100000 122 BPF_DIV = 0x30 123 BPF_H = 0x8 124 BPF_IMM = 0x0 125 BPF_IND = 0x40 126 BPF_JA = 0x0 127 BPF_JEQ = 0x10 128 BPF_JGE = 0x30 129 BPF_JGT = 0x20 130 BPF_JMP = 0x5 131 BPF_JSET = 0x40 132 BPF_K = 0x0 133 BPF_LD = 0x0 134 BPF_LDX = 0x1 135 BPF_LEN = 0x80 136 BPF_LSH = 0x60 137 BPF_MAJOR_VERSION = 0x1 138 BPF_MAXBUFSIZE = 0x1000000 139 BPF_MAXINSNS = 0x200 140 BPF_MEM = 0x60 141 BPF_MEMWORDS = 0x10 142 BPF_MINBUFSIZE = 0x20 143 BPF_MINOR_VERSION = 0x1 144 BPF_MISC = 0x7 145 BPF_MSH = 0xa0 146 BPF_MUL = 0x20 147 BPF_NEG = 0x80 148 BPF_OR = 0x40 149 BPF_RELEASE = 0x30bb6 150 BPF_RET = 0x6 151 BPF_RSH = 0x70 152 BPF_ST = 0x2 153 BPF_STX = 0x3 154 BPF_SUB = 0x10 155 BPF_TAX = 0x0 156 BPF_TXA = 0x80 157 BPF_W = 0x0 158 BPF_X = 0x8 159 BRKINT = 0x2 160 CFLUSH = 0xf 161 CLOCAL = 0x800 162 CREAD = 0x80 163 CS5 = 0x0 164 CS6 = 0x10 165 CS7 = 0x20 166 CS8 = 0x30 167 CSIZE = 0x30 168 CSTART = 0x11 169 CSTOP = 0x13 170 CSTOPB = 0x40 171 CSUSP = 0x1a 172 CSWTCH = 0x1a 173 DLT_AIRONET_HEADER = 0x78 174 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a 175 DLT_ARCNET = 0x7 176 DLT_ARCNET_LINUX = 0x81 177 DLT_ATM_CLIP = 0x13 178 DLT_ATM_RFC1483 = 0xb 179 DLT_AURORA = 0x7e 180 DLT_AX25 = 0x3 181 DLT_BACNET_MS_TP = 0xa5 182 DLT_CHAOS = 0x5 183 DLT_CISCO_IOS = 0x76 184 DLT_C_HDLC = 0x68 185 DLT_DOCSIS = 0x8f 186 DLT_ECONET = 0x73 187 DLT_EN10MB = 0x1 188 DLT_EN3MB = 0x2 189 DLT_ENC = 0x6d 190 DLT_ERF_ETH = 0xaf 191 DLT_ERF_POS = 0xb0 192 DLT_FDDI = 0xa 193 DLT_FRELAY = 0x6b 194 DLT_GCOM_SERIAL = 0xad 195 DLT_GCOM_T1E1 = 0xac 196 DLT_GPF_F = 0xab 197 DLT_GPF_T = 0xaa 198 DLT_GPRS_LLC = 0xa9 199 DLT_HDLC = 0x10 200 DLT_HHDLC = 0x79 201 DLT_HIPPI = 0xf 202 DLT_IBM_SN = 0x92 203 DLT_IBM_SP = 0x91 204 DLT_IEEE802 = 0x6 205 DLT_IEEE802_11 = 0x69 206 DLT_IEEE802_11_RADIO = 0x7f 207 DLT_IEEE802_11_RADIO_AVS = 0xa3 208 DLT_IPNET = 0xe2 209 DLT_IPOIB = 0xa2 210 DLT_IP_OVER_FC = 0x7a 211 DLT_JUNIPER_ATM1 = 0x89 212 DLT_JUNIPER_ATM2 = 0x87 213 DLT_JUNIPER_CHDLC = 0xb5 214 DLT_JUNIPER_ES = 0x84 215 DLT_JUNIPER_ETHER = 0xb2 216 DLT_JUNIPER_FRELAY = 0xb4 217 DLT_JUNIPER_GGSN = 0x85 218 DLT_JUNIPER_MFR = 0x86 219 DLT_JUNIPER_MLFR = 0x83 220 DLT_JUNIPER_MLPPP = 0x82 221 DLT_JUNIPER_MONITOR = 0xa4 222 DLT_JUNIPER_PIC_PEER = 0xae 223 DLT_JUNIPER_PPP = 0xb3 224 DLT_JUNIPER_PPPOE = 0xa7 225 DLT_JUNIPER_PPPOE_ATM = 0xa8 226 DLT_JUNIPER_SERVICES = 0x88 227 DLT_LINUX_IRDA = 0x90 228 DLT_LINUX_LAPD = 0xb1 229 DLT_LINUX_SLL = 0x71 230 DLT_LOOP = 0x6c 231 DLT_LTALK = 0x72 232 DLT_MTP2 = 0x8c 233 DLT_MTP2_WITH_PHDR = 0x8b 234 DLT_MTP3 = 0x8d 235 DLT_NULL = 0x0 236 DLT_PCI_EXP = 0x7d 237 DLT_PFLOG = 0x75 238 DLT_PFSYNC = 0x12 239 DLT_PPP = 0x9 240 DLT_PPP_BSDOS = 0xe 241 DLT_PPP_PPPD = 0xa6 242 DLT_PRISM_HEADER = 0x77 243 DLT_PRONET = 0x4 244 DLT_RAW = 0xc 245 DLT_RAWAF_MASK = 0x2240000 246 DLT_RIO = 0x7c 247 DLT_SCCP = 0x8e 248 DLT_SLIP = 0x8 249 DLT_SLIP_BSDOS = 0xd 250 DLT_SUNATM = 0x7b 251 DLT_SYMANTEC_FIREWALL = 0x63 252 DLT_TZSP = 0x80 253 ECHO = 0x8 254 ECHOCTL = 0x200 255 ECHOE = 0x10 256 ECHOK = 0x20 257 ECHOKE = 0x800 258 ECHONL = 0x40 259 ECHOPRT = 0x400 260 EMPTY_SET = 0x0 261 EMT_CPCOVF = 0x1 262 EQUALITY_CHECK = 0x0 263 EXTA = 0xe 264 EXTB = 0xf 265 FD_CLOEXEC = 0x1 266 FD_NFDBITS = 0x40 267 FD_SETSIZE = 0x10000 268 FLUSHALL = 0x1 269 FLUSHDATA = 0x0 270 FLUSHO = 0x2000 271 F_ALLOCSP = 0xa 272 F_ALLOCSP64 = 0xa 273 F_BADFD = 0x2e 274 F_BLKSIZE = 0x13 275 F_BLOCKS = 0x12 276 F_CHKFL = 0x8 277 F_COMPAT = 0x8 278 F_DUP2FD = 0x9 279 F_DUP2FD_CLOEXEC = 0x24 280 F_DUPFD = 0x0 281 F_DUPFD_CLOEXEC = 0x25 282 F_FREESP = 0xb 283 F_FREESP64 = 0xb 284 F_GETFD = 0x1 285 F_GETFL = 0x3 286 F_GETLK = 0xe 287 F_GETLK64 = 0xe 288 F_GETOWN = 0x17 289 F_GETXFL = 0x2d 290 F_HASREMOTELOCKS = 0x1a 291 F_ISSTREAM = 0xd 292 F_MANDDNY = 0x10 293 F_MDACC = 0x20 294 F_NODNY = 0x0 295 F_NPRIV = 0x10 296 F_PRIV = 0xf 297 F_QUOTACTL = 0x11 298 F_RDACC = 0x1 299 F_RDDNY = 0x1 300 F_RDLCK = 0x1 301 F_REVOKE = 0x19 302 F_RMACC = 0x4 303 F_RMDNY = 0x4 304 F_RWACC = 0x3 305 F_RWDNY = 0x3 306 F_SETFD = 0x2 307 F_SETFL = 0x4 308 F_SETLK = 0x6 309 F_SETLK64 = 0x6 310 F_SETLK64_NBMAND = 0x2a 311 F_SETLKW = 0x7 312 F_SETLKW64 = 0x7 313 F_SETLK_NBMAND = 0x2a 314 F_SETOWN = 0x18 315 F_SHARE = 0x28 316 F_SHARE_NBMAND = 0x2b 317 F_UNLCK = 0x3 318 F_UNLKSYS = 0x4 319 F_UNSHARE = 0x29 320 F_WRACC = 0x2 321 F_WRDNY = 0x2 322 F_WRLCK = 0x2 323 HUPCL = 0x400 324 ICANON = 0x2 325 ICRNL = 0x100 326 IEXTEN = 0x8000 327 IFF_ADDRCONF = 0x80000 328 IFF_ALLMULTI = 0x200 329 IFF_ANYCAST = 0x400000 330 IFF_BROADCAST = 0x2 331 IFF_CANTCHANGE = 0x7f203003b5a 332 IFF_COS_ENABLED = 0x200000000 333 IFF_DEBUG = 0x4 334 IFF_DEPRECATED = 0x40000 335 IFF_DHCPRUNNING = 0x4000 336 IFF_DUPLICATE = 0x4000000000 337 IFF_FAILED = 0x10000000 338 IFF_FIXEDMTU = 0x1000000000 339 IFF_INACTIVE = 0x40000000 340 IFF_INTELLIGENT = 0x400 341 IFF_IPMP = 0x8000000000 342 IFF_IPMP_CANTCHANGE = 0x10000000 343 IFF_IPMP_INVALID = 0x1ec200080 344 IFF_IPV4 = 0x1000000 345 IFF_IPV6 = 0x2000000 346 IFF_L3PROTECT = 0x40000000000 347 IFF_LOOPBACK = 0x8 348 IFF_MULTICAST = 0x800 349 IFF_MULTI_BCAST = 0x1000 350 IFF_NOACCEPT = 0x4000000 351 IFF_NOARP = 0x80 352 IFF_NOFAILOVER = 0x8000000 353 IFF_NOLINKLOCAL = 0x20000000000 354 IFF_NOLOCAL = 0x20000 355 IFF_NONUD = 0x200000 356 IFF_NORTEXCH = 0x800000 357 IFF_NOTRAILERS = 0x20 358 IFF_NOXMIT = 0x10000 359 IFF_OFFLINE = 0x80000000 360 IFF_POINTOPOINT = 0x10 361 IFF_PREFERRED = 0x400000000 362 IFF_PRIVATE = 0x8000 363 IFF_PROMISC = 0x100 364 IFF_ROUTER = 0x100000 365 IFF_RUNNING = 0x40 366 IFF_STANDBY = 0x20000000 367 IFF_TEMPORARY = 0x800000000 368 IFF_UNNUMBERED = 0x2000 369 IFF_UP = 0x1 370 IFF_VIRTUAL = 0x2000000000 371 IFF_VRRP = 0x10000000000 372 IFF_XRESOLV = 0x100000000 373 IFNAMSIZ = 0x10 374 IFT_1822 = 0x2 375 IFT_6TO4 = 0xca 376 IFT_AAL5 = 0x31 377 IFT_ARCNET = 0x23 378 IFT_ARCNETPLUS = 0x24 379 IFT_ATM = 0x25 380 IFT_CEPT = 0x13 381 IFT_DS3 = 0x1e 382 IFT_EON = 0x19 383 IFT_ETHER = 0x6 384 IFT_FDDI = 0xf 385 IFT_FRELAY = 0x20 386 IFT_FRELAYDCE = 0x2c 387 IFT_HDH1822 = 0x3 388 IFT_HIPPI = 0x2f 389 IFT_HSSI = 0x2e 390 IFT_HY = 0xe 391 IFT_IB = 0xc7 392 IFT_IPV4 = 0xc8 393 IFT_IPV6 = 0xc9 394 IFT_ISDNBASIC = 0x14 395 IFT_ISDNPRIMARY = 0x15 396 IFT_ISO88022LLC = 0x29 397 IFT_ISO88023 = 0x7 398 IFT_ISO88024 = 0x8 399 IFT_ISO88025 = 0x9 400 IFT_ISO88026 = 0xa 401 IFT_LAPB = 0x10 402 IFT_LOCALTALK = 0x2a 403 IFT_LOOP = 0x18 404 IFT_MIOX25 = 0x26 405 IFT_MODEM = 0x30 406 IFT_NSIP = 0x1b 407 IFT_OTHER = 0x1 408 IFT_P10 = 0xc 409 IFT_P80 = 0xd 410 IFT_PARA = 0x22 411 IFT_PPP = 0x17 412 IFT_PROPMUX = 0x36 413 IFT_PROPVIRTUAL = 0x35 414 IFT_PTPSERIAL = 0x16 415 IFT_RS232 = 0x21 416 IFT_SDLC = 0x11 417 IFT_SIP = 0x1f 418 IFT_SLIP = 0x1c 419 IFT_SMDSDXI = 0x2b 420 IFT_SMDSICIP = 0x34 421 IFT_SONET = 0x27 422 IFT_SONETPATH = 0x32 423 IFT_SONETVT = 0x33 424 IFT_STARLAN = 0xb 425 IFT_T1 = 0x12 426 IFT_ULTRA = 0x1d 427 IFT_V35 = 0x2d 428 IFT_X25 = 0x5 429 IFT_X25DDN = 0x4 430 IFT_X25PLE = 0x28 431 IFT_XETHER = 0x1a 432 IGNBRK = 0x1 433 IGNCR = 0x80 434 IGNPAR = 0x4 435 IMAXBEL = 0x2000 436 INLCR = 0x40 437 INPCK = 0x10 438 IN_AUTOCONF_MASK = 0xffff0000 439 IN_AUTOCONF_NET = 0xa9fe0000 440 IN_CLASSA_HOST = 0xffffff 441 IN_CLASSA_MAX = 0x80 442 IN_CLASSA_NET = 0xff000000 443 IN_CLASSA_NSHIFT = 0x18 444 IN_CLASSB_HOST = 0xffff 445 IN_CLASSB_MAX = 0x10000 446 IN_CLASSB_NET = 0xffff0000 447 IN_CLASSB_NSHIFT = 0x10 448 IN_CLASSC_HOST = 0xff 449 IN_CLASSC_NET = 0xffffff00 450 IN_CLASSC_NSHIFT = 0x8 451 IN_CLASSD_HOST = 0xfffffff 452 IN_CLASSD_NET = 0xf0000000 453 IN_CLASSD_NSHIFT = 0x1c 454 IN_CLASSE_NET = 0xffffffff 455 IN_LOOPBACKNET = 0x7f 456 IN_PRIVATE12_MASK = 0xfff00000 457 IN_PRIVATE12_NET = 0xac100000 458 IN_PRIVATE16_MASK = 0xffff0000 459 IN_PRIVATE16_NET = 0xc0a80000 460 IN_PRIVATE8_MASK = 0xff000000 461 IN_PRIVATE8_NET = 0xa000000 462 IPPROTO_AH = 0x33 463 IPPROTO_DSTOPTS = 0x3c 464 IPPROTO_EGP = 0x8 465 IPPROTO_ENCAP = 0x4 466 IPPROTO_EON = 0x50 467 IPPROTO_ESP = 0x32 468 IPPROTO_FRAGMENT = 0x2c 469 IPPROTO_GGP = 0x3 470 IPPROTO_HELLO = 0x3f 471 IPPROTO_HOPOPTS = 0x0 472 IPPROTO_ICMP = 0x1 473 IPPROTO_ICMPV6 = 0x3a 474 IPPROTO_IDP = 0x16 475 IPPROTO_IGMP = 0x2 476 IPPROTO_IP = 0x0 477 IPPROTO_IPV6 = 0x29 478 IPPROTO_MAX = 0x100 479 IPPROTO_ND = 0x4d 480 IPPROTO_NONE = 0x3b 481 IPPROTO_OSPF = 0x59 482 IPPROTO_PIM = 0x67 483 IPPROTO_PUP = 0xc 484 IPPROTO_RAW = 0xff 485 IPPROTO_ROUTING = 0x2b 486 IPPROTO_RSVP = 0x2e 487 IPPROTO_SCTP = 0x84 488 IPPROTO_TCP = 0x6 489 IPPROTO_UDP = 0x11 490 IPV6_ADD_MEMBERSHIP = 0x9 491 IPV6_BOUND_IF = 0x41 492 IPV6_CHECKSUM = 0x18 493 IPV6_DONTFRAG = 0x21 494 IPV6_DROP_MEMBERSHIP = 0xa 495 IPV6_DSTOPTS = 0xf 496 IPV6_FLOWINFO_FLOWLABEL = 0xffff0f00 497 IPV6_FLOWINFO_TCLASS = 0xf00f 498 IPV6_HOPLIMIT = 0xc 499 IPV6_HOPOPTS = 0xe 500 IPV6_JOIN_GROUP = 0x9 501 IPV6_LEAVE_GROUP = 0xa 502 IPV6_MULTICAST_HOPS = 0x7 503 IPV6_MULTICAST_IF = 0x6 504 IPV6_MULTICAST_LOOP = 0x8 505 IPV6_NEXTHOP = 0xd 506 IPV6_PAD1_OPT = 0x0 507 IPV6_PATHMTU = 0x25 508 IPV6_PKTINFO = 0xb 509 IPV6_PREFER_SRC_CGA = 0x20 510 IPV6_PREFER_SRC_CGADEFAULT = 0x10 511 IPV6_PREFER_SRC_CGAMASK = 0x30 512 IPV6_PREFER_SRC_COA = 0x2 513 IPV6_PREFER_SRC_DEFAULT = 0x15 514 IPV6_PREFER_SRC_HOME = 0x1 515 IPV6_PREFER_SRC_MASK = 0x3f 516 IPV6_PREFER_SRC_MIPDEFAULT = 0x1 517 IPV6_PREFER_SRC_MIPMASK = 0x3 518 IPV6_PREFER_SRC_NONCGA = 0x10 519 IPV6_PREFER_SRC_PUBLIC = 0x4 520 IPV6_PREFER_SRC_TMP = 0x8 521 IPV6_PREFER_SRC_TMPDEFAULT = 0x4 522 IPV6_PREFER_SRC_TMPMASK = 0xc 523 IPV6_RECVDSTOPTS = 0x28 524 IPV6_RECVHOPLIMIT = 0x13 525 IPV6_RECVHOPOPTS = 0x14 526 IPV6_RECVPATHMTU = 0x24 527 IPV6_RECVPKTINFO = 0x12 528 IPV6_RECVRTHDR = 0x16 529 IPV6_RECVRTHDRDSTOPTS = 0x17 530 IPV6_RECVTCLASS = 0x19 531 IPV6_RTHDR = 0x10 532 IPV6_RTHDRDSTOPTS = 0x11 533 IPV6_RTHDR_TYPE_0 = 0x0 534 IPV6_SEC_OPT = 0x22 535 IPV6_SRC_PREFERENCES = 0x23 536 IPV6_TCLASS = 0x26 537 IPV6_UNICAST_HOPS = 0x5 538 IPV6_UNSPEC_SRC = 0x42 539 IPV6_USE_MIN_MTU = 0x20 540 IPV6_V6ONLY = 0x27 541 IP_ADD_MEMBERSHIP = 0x13 542 IP_ADD_SOURCE_MEMBERSHIP = 0x17 543 IP_BLOCK_SOURCE = 0x15 544 IP_BOUND_IF = 0x41 545 IP_BROADCAST = 0x106 546 IP_BROADCAST_TTL = 0x43 547 IP_DEFAULT_MULTICAST_LOOP = 0x1 548 IP_DEFAULT_MULTICAST_TTL = 0x1 549 IP_DF = 0x4000 550 IP_DHCPINIT_IF = 0x45 551 IP_DONTFRAG = 0x1b 552 IP_DONTROUTE = 0x105 553 IP_DROP_MEMBERSHIP = 0x14 554 IP_DROP_SOURCE_MEMBERSHIP = 0x18 555 IP_HDRINCL = 0x2 556 IP_MAXPACKET = 0xffff 557 IP_MF = 0x2000 558 IP_MSS = 0x240 559 IP_MULTICAST_IF = 0x10 560 IP_MULTICAST_LOOP = 0x12 561 IP_MULTICAST_TTL = 0x11 562 IP_NEXTHOP = 0x19 563 IP_OPTIONS = 0x1 564 IP_PKTINFO = 0x1a 565 IP_RECVDSTADDR = 0x7 566 IP_RECVIF = 0x9 567 IP_RECVOPTS = 0x5 568 IP_RECVPKTINFO = 0x1a 569 IP_RECVRETOPTS = 0x6 570 IP_RECVSLLA = 0xa 571 IP_RECVTTL = 0xb 572 IP_RETOPTS = 0x8 573 IP_REUSEADDR = 0x104 574 IP_SEC_OPT = 0x22 575 IP_TOS = 0x3 576 IP_TTL = 0x4 577 IP_UNBLOCK_SOURCE = 0x16 578 IP_UNSPEC_SRC = 0x42 579 ISIG = 0x1 580 ISTRIP = 0x20 581 IXANY = 0x800 582 IXOFF = 0x1000 583 IXON = 0x400 584 MADV_ACCESS_DEFAULT = 0x6 585 MADV_ACCESS_LWP = 0x7 586 MADV_ACCESS_MANY = 0x8 587 MADV_DONTNEED = 0x4 588 MADV_FREE = 0x5 589 MADV_NORMAL = 0x0 590 MADV_RANDOM = 0x1 591 MADV_SEQUENTIAL = 0x2 592 MADV_WILLNEED = 0x3 593 MAP_32BIT = 0x80 594 MAP_ALIGN = 0x200 595 MAP_ANON = 0x100 596 MAP_ANONYMOUS = 0x100 597 MAP_FIXED = 0x10 598 MAP_INITDATA = 0x800 599 MAP_NORESERVE = 0x40 600 MAP_PRIVATE = 0x2 601 MAP_RENAME = 0x20 602 MAP_SHARED = 0x1 603 MAP_TEXT = 0x400 604 MAP_TYPE = 0xf 605 MCL_CURRENT = 0x1 606 MCL_FUTURE = 0x2 607 MSG_CTRUNC = 0x10 608 MSG_DONTROUTE = 0x4 609 MSG_DONTWAIT = 0x80 610 MSG_DUPCTRL = 0x800 611 MSG_EOR = 0x8 612 MSG_MAXIOVLEN = 0x10 613 MSG_NOTIFICATION = 0x100 614 MSG_OOB = 0x1 615 MSG_PEEK = 0x2 616 MSG_TRUNC = 0x20 617 MSG_WAITALL = 0x40 618 MSG_XPG4_2 = 0x8000 619 MS_ASYNC = 0x1 620 MS_INVALIDATE = 0x2 621 MS_OLDSYNC = 0x0 622 MS_SYNC = 0x4 623 M_FLUSH = 0x86 624 NOFLSH = 0x80 625 OCRNL = 0x8 626 OFDEL = 0x80 627 OFILL = 0x40 628 ONLCR = 0x4 629 ONLRET = 0x20 630 ONOCR = 0x10 631 OPENFAIL = -0x1 632 OPOST = 0x1 633 O_ACCMODE = 0x600003 634 O_APPEND = 0x8 635 O_CLOEXEC = 0x800000 636 O_CREAT = 0x100 637 O_DSYNC = 0x40 638 O_EXCL = 0x400 639 O_EXEC = 0x400000 640 O_LARGEFILE = 0x2000 641 O_NDELAY = 0x4 642 O_NOCTTY = 0x800 643 O_NOFOLLOW = 0x20000 644 O_NOLINKS = 0x40000 645 O_NONBLOCK = 0x80 646 O_RDONLY = 0x0 647 O_RDWR = 0x2 648 O_RSYNC = 0x8000 649 O_SEARCH = 0x200000 650 O_SIOCGIFCONF = -0x3ff796ec 651 O_SIOCGLIFCONF = -0x3fef9688 652 O_SYNC = 0x10 653 O_TRUNC = 0x200 654 O_WRONLY = 0x1 655 O_XATTR = 0x4000 656 PARENB = 0x100 657 PAREXT = 0x100000 658 PARMRK = 0x8 659 PARODD = 0x200 660 PENDIN = 0x4000 661 PRIO_PGRP = 0x1 662 PRIO_PROCESS = 0x0 663 PRIO_USER = 0x2 664 PROT_EXEC = 0x4 665 PROT_NONE = 0x0 666 PROT_READ = 0x1 667 PROT_WRITE = 0x2 668 RLIMIT_AS = 0x6 669 RLIMIT_CORE = 0x4 670 RLIMIT_CPU = 0x0 671 RLIMIT_DATA = 0x2 672 RLIMIT_FSIZE = 0x1 673 RLIMIT_NOFILE = 0x5 674 RLIMIT_STACK = 0x3 675 RLIM_INFINITY = -0x3 676 RTAX_AUTHOR = 0x6 677 RTAX_BRD = 0x7 678 RTAX_DST = 0x0 679 RTAX_GATEWAY = 0x1 680 RTAX_GENMASK = 0x3 681 RTAX_IFA = 0x5 682 RTAX_IFP = 0x4 683 RTAX_MAX = 0x9 684 RTAX_NETMASK = 0x2 685 RTAX_SRC = 0x8 686 RTA_AUTHOR = 0x40 687 RTA_BRD = 0x80 688 RTA_DST = 0x1 689 RTA_GATEWAY = 0x2 690 RTA_GENMASK = 0x8 691 RTA_IFA = 0x20 692 RTA_IFP = 0x10 693 RTA_NETMASK = 0x4 694 RTA_NUMBITS = 0x9 695 RTA_SRC = 0x100 696 RTF_BLACKHOLE = 0x1000 697 RTF_CLONING = 0x100 698 RTF_DONE = 0x40 699 RTF_DYNAMIC = 0x10 700 RTF_GATEWAY = 0x2 701 RTF_HOST = 0x4 702 RTF_INDIRECT = 0x40000 703 RTF_KERNEL = 0x80000 704 RTF_LLINFO = 0x400 705 RTF_MASK = 0x80 706 RTF_MODIFIED = 0x20 707 RTF_MULTIRT = 0x10000 708 RTF_PRIVATE = 0x2000 709 RTF_PROTO1 = 0x8000 710 RTF_PROTO2 = 0x4000 711 RTF_REJECT = 0x8 712 RTF_SETSRC = 0x20000 713 RTF_STATIC = 0x800 714 RTF_UP = 0x1 715 RTF_XRESOLVE = 0x200 716 RTF_ZONE = 0x100000 717 RTM_ADD = 0x1 718 RTM_CHANGE = 0x3 719 RTM_CHGADDR = 0xf 720 RTM_DELADDR = 0xd 721 RTM_DELETE = 0x2 722 RTM_FREEADDR = 0x10 723 RTM_GET = 0x4 724 RTM_IFINFO = 0xe 725 RTM_LOCK = 0x8 726 RTM_LOSING = 0x5 727 RTM_MISS = 0x7 728 RTM_NEWADDR = 0xc 729 RTM_OLDADD = 0x9 730 RTM_OLDDEL = 0xa 731 RTM_REDIRECT = 0x6 732 RTM_RESOLVE = 0xb 733 RTM_VERSION = 0x3 734 RTV_EXPIRE = 0x4 735 RTV_HOPCOUNT = 0x2 736 RTV_MTU = 0x1 737 RTV_RPIPE = 0x8 738 RTV_RTT = 0x40 739 RTV_RTTVAR = 0x80 740 RTV_SPIPE = 0x10 741 RTV_SSTHRESH = 0x20 742 RT_AWARE = 0x1 743 RUSAGE_CHILDREN = -0x1 744 RUSAGE_SELF = 0x0 745 SCM_RIGHTS = 0x1010 746 SCM_TIMESTAMP = 0x1013 747 SCM_UCRED = 0x1012 748 SHUT_RD = 0x0 749 SHUT_RDWR = 0x2 750 SHUT_WR = 0x1 751 SIG2STR_MAX = 0x20 752 SIOCADDMULTI = -0x7fdf96cf 753 SIOCADDRT = -0x7fcf8df6 754 SIOCATMARK = 0x40047307 755 SIOCDARP = -0x7fdb96e0 756 SIOCDELMULTI = -0x7fdf96ce 757 SIOCDELRT = -0x7fcf8df5 758 SIOCDIPSECONFIG = -0x7ffb9669 759 SIOCDXARP = -0x7fff9658 760 SIOCFIPSECONFIG = -0x7ffb966b 761 SIOCGARP = -0x3fdb96e1 762 SIOCGDSTINFO = -0x3fff965c 763 SIOCGENADDR = -0x3fdf96ab 764 SIOCGENPSTATS = -0x3fdf96c7 765 SIOCGETLSGCNT = -0x3fef8deb 766 SIOCGETNAME = 0x40107334 767 SIOCGETPEER = 0x40107335 768 SIOCGETPROP = -0x3fff8f44 769 SIOCGETSGCNT = -0x3feb8deb 770 SIOCGETSYNC = -0x3fdf96d3 771 SIOCGETVIFCNT = -0x3feb8dec 772 SIOCGHIWAT = 0x40047301 773 SIOCGIFADDR = -0x3fdf96f3 774 SIOCGIFBRDADDR = -0x3fdf96e9 775 SIOCGIFCONF = -0x3ff796a4 776 SIOCGIFDSTADDR = -0x3fdf96f1 777 SIOCGIFFLAGS = -0x3fdf96ef 778 SIOCGIFHWADDR = -0x3fdf9647 779 SIOCGIFINDEX = -0x3fdf96a6 780 SIOCGIFMEM = -0x3fdf96ed 781 SIOCGIFMETRIC = -0x3fdf96e5 782 SIOCGIFMTU = -0x3fdf96ea 783 SIOCGIFMUXID = -0x3fdf96a8 784 SIOCGIFNETMASK = -0x3fdf96e7 785 SIOCGIFNUM = 0x40046957 786 SIOCGIP6ADDRPOLICY = -0x3fff965e 787 SIOCGIPMSFILTER = -0x3ffb964c 788 SIOCGLIFADDR = -0x3f87968f 789 SIOCGLIFBINDING = -0x3f879666 790 SIOCGLIFBRDADDR = -0x3f879685 791 SIOCGLIFCONF = -0x3fef965b 792 SIOCGLIFDADSTATE = -0x3f879642 793 SIOCGLIFDSTADDR = -0x3f87968d 794 SIOCGLIFFLAGS = -0x3f87968b 795 SIOCGLIFGROUPINFO = -0x3f4b9663 796 SIOCGLIFGROUPNAME = -0x3f879664 797 SIOCGLIFHWADDR = -0x3f879640 798 SIOCGLIFINDEX = -0x3f87967b 799 SIOCGLIFLNKINFO = -0x3f879674 800 SIOCGLIFMETRIC = -0x3f879681 801 SIOCGLIFMTU = -0x3f879686 802 SIOCGLIFMUXID = -0x3f87967d 803 SIOCGLIFNETMASK = -0x3f879683 804 SIOCGLIFNUM = -0x3ff3967e 805 SIOCGLIFSRCOF = -0x3fef964f 806 SIOCGLIFSUBNET = -0x3f879676 807 SIOCGLIFTOKEN = -0x3f879678 808 SIOCGLIFUSESRC = -0x3f879651 809 SIOCGLIFZONE = -0x3f879656 810 SIOCGLOWAT = 0x40047303 811 SIOCGMSFILTER = -0x3ffb964e 812 SIOCGPGRP = 0x40047309 813 SIOCGSTAMP = -0x3fef9646 814 SIOCGXARP = -0x3fff9659 815 SIOCIFDETACH = -0x7fdf96c8 816 SIOCILB = -0x3ffb9645 817 SIOCLIFADDIF = -0x3f879691 818 SIOCLIFDELND = -0x7f879673 819 SIOCLIFGETND = -0x3f879672 820 SIOCLIFREMOVEIF = -0x7f879692 821 SIOCLIFSETND = -0x7f879671 822 SIOCLIPSECONFIG = -0x7ffb9668 823 SIOCLOWER = -0x7fdf96d7 824 SIOCSARP = -0x7fdb96e2 825 SIOCSCTPGOPT = -0x3fef9653 826 SIOCSCTPPEELOFF = -0x3ffb9652 827 SIOCSCTPSOPT = -0x7fef9654 828 SIOCSENABLESDP = -0x3ffb9649 829 SIOCSETPROP = -0x7ffb8f43 830 SIOCSETSYNC = -0x7fdf96d4 831 SIOCSHIWAT = -0x7ffb8d00 832 SIOCSIFADDR = -0x7fdf96f4 833 SIOCSIFBRDADDR = -0x7fdf96e8 834 SIOCSIFDSTADDR = -0x7fdf96f2 835 SIOCSIFFLAGS = -0x7fdf96f0 836 SIOCSIFINDEX = -0x7fdf96a5 837 SIOCSIFMEM = -0x7fdf96ee 838 SIOCSIFMETRIC = -0x7fdf96e4 839 SIOCSIFMTU = -0x7fdf96eb 840 SIOCSIFMUXID = -0x7fdf96a7 841 SIOCSIFNAME = -0x7fdf96b7 842 SIOCSIFNETMASK = -0x7fdf96e6 843 SIOCSIP6ADDRPOLICY = -0x7fff965d 844 SIOCSIPMSFILTER = -0x7ffb964b 845 SIOCSIPSECONFIG = -0x7ffb966a 846 SIOCSLGETREQ = -0x3fdf96b9 847 SIOCSLIFADDR = -0x7f879690 848 SIOCSLIFBRDADDR = -0x7f879684 849 SIOCSLIFDSTADDR = -0x7f87968e 850 SIOCSLIFFLAGS = -0x7f87968c 851 SIOCSLIFGROUPNAME = -0x7f879665 852 SIOCSLIFINDEX = -0x7f87967a 853 SIOCSLIFLNKINFO = -0x7f879675 854 SIOCSLIFMETRIC = -0x7f879680 855 SIOCSLIFMTU = -0x7f879687 856 SIOCSLIFMUXID = -0x7f87967c 857 SIOCSLIFNAME = -0x3f87967f 858 SIOCSLIFNETMASK = -0x7f879682 859 SIOCSLIFPREFIX = -0x3f879641 860 SIOCSLIFSUBNET = -0x7f879677 861 SIOCSLIFTOKEN = -0x7f879679 862 SIOCSLIFUSESRC = -0x7f879650 863 SIOCSLIFZONE = -0x7f879655 864 SIOCSLOWAT = -0x7ffb8cfe 865 SIOCSLSTAT = -0x7fdf96b8 866 SIOCSMSFILTER = -0x7ffb964d 867 SIOCSPGRP = -0x7ffb8cf8 868 SIOCSPROMISC = -0x7ffb96d0 869 SIOCSQPTR = -0x3ffb9648 870 SIOCSSDSTATS = -0x3fdf96d2 871 SIOCSSESTATS = -0x3fdf96d1 872 SIOCSXARP = -0x7fff965a 873 SIOCTMYADDR = -0x3ff79670 874 SIOCTMYSITE = -0x3ff7966e 875 SIOCTONLINK = -0x3ff7966f 876 SIOCUPPER = -0x7fdf96d8 877 SIOCX25RCV = -0x3fdf96c4 878 SIOCX25TBL = -0x3fdf96c3 879 SIOCX25XMT = -0x3fdf96c5 880 SIOCXPROTO = 0x20007337 881 SOCK_CLOEXEC = 0x80000 882 SOCK_DGRAM = 0x1 883 SOCK_NDELAY = 0x200000 884 SOCK_NONBLOCK = 0x100000 885 SOCK_RAW = 0x4 886 SOCK_RDM = 0x5 887 SOCK_SEQPACKET = 0x6 888 SOCK_STREAM = 0x2 889 SOCK_TYPE_MASK = 0xffff 890 SOL_FILTER = 0xfffc 891 SOL_PACKET = 0xfffd 892 SOL_ROUTE = 0xfffe 893 SOL_SOCKET = 0xffff 894 SOMAXCONN = 0x80 895 SO_ACCEPTCONN = 0x2 896 SO_ALL = 0x3f 897 SO_ALLZONES = 0x1014 898 SO_ANON_MLP = 0x100a 899 SO_ATTACH_FILTER = 0x40000001 900 SO_BAND = 0x4000 901 SO_BROADCAST = 0x20 902 SO_COPYOPT = 0x80000 903 SO_DEBUG = 0x1 904 SO_DELIM = 0x8000 905 SO_DETACH_FILTER = 0x40000002 906 SO_DGRAM_ERRIND = 0x200 907 SO_DOMAIN = 0x100c 908 SO_DONTLINGER = -0x81 909 SO_DONTROUTE = 0x10 910 SO_ERROPT = 0x40000 911 SO_ERROR = 0x1007 912 SO_EXCLBIND = 0x1015 913 SO_HIWAT = 0x10 914 SO_ISNTTY = 0x800 915 SO_ISTTY = 0x400 916 SO_KEEPALIVE = 0x8 917 SO_LINGER = 0x80 918 SO_LOWAT = 0x20 919 SO_MAC_EXEMPT = 0x100b 920 SO_MAC_IMPLICIT = 0x1016 921 SO_MAXBLK = 0x100000 922 SO_MAXPSZ = 0x8 923 SO_MINPSZ = 0x4 924 SO_MREADOFF = 0x80 925 SO_MREADON = 0x40 926 SO_NDELOFF = 0x200 927 SO_NDELON = 0x100 928 SO_NODELIM = 0x10000 929 SO_OOBINLINE = 0x100 930 SO_PROTOTYPE = 0x1009 931 SO_RCVBUF = 0x1002 932 SO_RCVLOWAT = 0x1004 933 SO_RCVPSH = 0x100d 934 SO_RCVTIMEO = 0x1006 935 SO_READOPT = 0x1 936 SO_RECVUCRED = 0x400 937 SO_REUSEADDR = 0x4 938 SO_SECATTR = 0x1011 939 SO_SNDBUF = 0x1001 940 SO_SNDLOWAT = 0x1003 941 SO_SNDTIMEO = 0x1005 942 SO_STRHOLD = 0x20000 943 SO_TAIL = 0x200000 944 SO_TIMESTAMP = 0x1013 945 SO_TONSTOP = 0x2000 946 SO_TOSTOP = 0x1000 947 SO_TYPE = 0x1008 948 SO_USELOOPBACK = 0x40 949 SO_VRRP = 0x1017 950 SO_WROFF = 0x2 951 TCFLSH = 0x5407 952 TCIFLUSH = 0x0 953 TCIOFLUSH = 0x2 954 TCOFLUSH = 0x1 955 TCP_ABORT_THRESHOLD = 0x11 956 TCP_ANONPRIVBIND = 0x20 957 TCP_CONN_ABORT_THRESHOLD = 0x13 958 TCP_CONN_NOTIFY_THRESHOLD = 0x12 959 TCP_CORK = 0x18 960 TCP_EXCLBIND = 0x21 961 TCP_INIT_CWND = 0x15 962 TCP_KEEPALIVE = 0x8 963 TCP_KEEPALIVE_ABORT_THRESHOLD = 0x17 964 TCP_KEEPALIVE_THRESHOLD = 0x16 965 TCP_KEEPCNT = 0x23 966 TCP_KEEPIDLE = 0x22 967 TCP_KEEPINTVL = 0x24 968 TCP_LINGER2 = 0x1c 969 TCP_MAXSEG = 0x2 970 TCP_MSS = 0x218 971 TCP_NODELAY = 0x1 972 TCP_NOTIFY_THRESHOLD = 0x10 973 TCP_RECVDSTADDR = 0x14 974 TCP_RTO_INITIAL = 0x19 975 TCP_RTO_MAX = 0x1b 976 TCP_RTO_MIN = 0x1a 977 TCSAFLUSH = 0x5410 978 TIOC = 0x5400 979 TIOCCBRK = 0x747a 980 TIOCCDTR = 0x7478 981 TIOCCILOOP = 0x746c 982 TIOCEXCL = 0x740d 983 TIOCFLUSH = 0x7410 984 TIOCGETC = 0x7412 985 TIOCGETD = 0x7400 986 TIOCGETP = 0x7408 987 TIOCGLTC = 0x7474 988 TIOCGPGRP = 0x7414 989 TIOCGPPS = 0x547d 990 TIOCGPPSEV = 0x547f 991 TIOCGSID = 0x7416 992 TIOCGSOFTCAR = 0x5469 993 TIOCGWINSZ = 0x5468 994 TIOCHPCL = 0x7402 995 TIOCKBOF = 0x5409 996 TIOCKBON = 0x5408 997 TIOCLBIC = 0x747e 998 TIOCLBIS = 0x747f 999 TIOCLGET = 0x747c 1000 TIOCLSET = 0x747d 1001 TIOCMBIC = 0x741c 1002 TIOCMBIS = 0x741b 1003 TIOCMGET = 0x741d 1004 TIOCMSET = 0x741a 1005 TIOCM_CAR = 0x40 1006 TIOCM_CD = 0x40 1007 TIOCM_CTS = 0x20 1008 TIOCM_DSR = 0x100 1009 TIOCM_DTR = 0x2 1010 TIOCM_LE = 0x1 1011 TIOCM_RI = 0x80 1012 TIOCM_RNG = 0x80 1013 TIOCM_RTS = 0x4 1014 TIOCM_SR = 0x10 1015 TIOCM_ST = 0x8 1016 TIOCNOTTY = 0x7471 1017 TIOCNXCL = 0x740e 1018 TIOCOUTQ = 0x7473 1019 TIOCREMOTE = 0x741e 1020 TIOCSBRK = 0x747b 1021 TIOCSCTTY = 0x7484 1022 TIOCSDTR = 0x7479 1023 TIOCSETC = 0x7411 1024 TIOCSETD = 0x7401 1025 TIOCSETN = 0x740a 1026 TIOCSETP = 0x7409 1027 TIOCSIGNAL = 0x741f 1028 TIOCSILOOP = 0x746d 1029 TIOCSLTC = 0x7475 1030 TIOCSPGRP = 0x7415 1031 TIOCSPPS = 0x547e 1032 TIOCSSOFTCAR = 0x546a 1033 TIOCSTART = 0x746e 1034 TIOCSTI = 0x7417 1035 TIOCSTOP = 0x746f 1036 TIOCSWINSZ = 0x5467 1037 TOSTOP = 0x100 1038 VCEOF = 0x8 1039 VCEOL = 0x9 1040 VDISCARD = 0xd 1041 VDSUSP = 0xb 1042 VEOF = 0x4 1043 VEOL = 0x5 1044 VEOL2 = 0x6 1045 VERASE = 0x2 1046 VINTR = 0x0 1047 VKILL = 0x3 1048 VLNEXT = 0xf 1049 VMIN = 0x4 1050 VQUIT = 0x1 1051 VREPRINT = 0xc 1052 VSTART = 0x8 1053 VSTOP = 0x9 1054 VSUSP = 0xa 1055 VSWTCH = 0x7 1056 VT0 = 0x0 1057 VT1 = 0x4000 1058 VTDLY = 0x4000 1059 VTIME = 0x5 1060 VWERASE = 0xe 1061 WCONTFLG = 0xffff 1062 WCONTINUED = 0x8 1063 WCOREFLG = 0x80 1064 WEXITED = 0x1 1065 WNOHANG = 0x40 1066 WNOWAIT = 0x80 1067 WOPTMASK = 0xcf 1068 WRAP = 0x20000 1069 WSIGMASK = 0x7f 1070 WSTOPFLG = 0x7f 1071 WSTOPPED = 0x4 1072 WTRAPPED = 0x2 1073 WUNTRACED = 0x4 1074 ) 1075 1076 // Errors 1077 const ( 1078 E2BIG = Errno(0x7) 1079 EACCES = Errno(0xd) 1080 EADDRINUSE = Errno(0x7d) 1081 EADDRNOTAVAIL = Errno(0x7e) 1082 EADV = Errno(0x44) 1083 EAFNOSUPPORT = Errno(0x7c) 1084 EAGAIN = Errno(0xb) 1085 EALREADY = Errno(0x95) 1086 EBADE = Errno(0x32) 1087 EBADF = Errno(0x9) 1088 EBADFD = Errno(0x51) 1089 EBADMSG = Errno(0x4d) 1090 EBADR = Errno(0x33) 1091 EBADRQC = Errno(0x36) 1092 EBADSLT = Errno(0x37) 1093 EBFONT = Errno(0x39) 1094 EBUSY = Errno(0x10) 1095 ECANCELED = Errno(0x2f) 1096 ECHILD = Errno(0xa) 1097 ECHRNG = Errno(0x25) 1098 ECOMM = Errno(0x46) 1099 ECONNABORTED = Errno(0x82) 1100 ECONNREFUSED = Errno(0x92) 1101 ECONNRESET = Errno(0x83) 1102 EDEADLK = Errno(0x2d) 1103 EDEADLOCK = Errno(0x38) 1104 EDESTADDRREQ = Errno(0x60) 1105 EDOM = Errno(0x21) 1106 EDQUOT = Errno(0x31) 1107 EEXIST = Errno(0x11) 1108 EFAULT = Errno(0xe) 1109 EFBIG = Errno(0x1b) 1110 EHOSTDOWN = Errno(0x93) 1111 EHOSTUNREACH = Errno(0x94) 1112 EIDRM = Errno(0x24) 1113 EILSEQ = Errno(0x58) 1114 EINPROGRESS = Errno(0x96) 1115 EINTR = Errno(0x4) 1116 EINVAL = Errno(0x16) 1117 EIO = Errno(0x5) 1118 EISCONN = Errno(0x85) 1119 EISDIR = Errno(0x15) 1120 EL2HLT = Errno(0x2c) 1121 EL2NSYNC = Errno(0x26) 1122 EL3HLT = Errno(0x27) 1123 EL3RST = Errno(0x28) 1124 ELIBACC = Errno(0x53) 1125 ELIBBAD = Errno(0x54) 1126 ELIBEXEC = Errno(0x57) 1127 ELIBMAX = Errno(0x56) 1128 ELIBSCN = Errno(0x55) 1129 ELNRNG = Errno(0x29) 1130 ELOCKUNMAPPED = Errno(0x48) 1131 ELOOP = Errno(0x5a) 1132 EMFILE = Errno(0x18) 1133 EMLINK = Errno(0x1f) 1134 EMSGSIZE = Errno(0x61) 1135 EMULTIHOP = Errno(0x4a) 1136 ENAMETOOLONG = Errno(0x4e) 1137 ENETDOWN = Errno(0x7f) 1138 ENETRESET = Errno(0x81) 1139 ENETUNREACH = Errno(0x80) 1140 ENFILE = Errno(0x17) 1141 ENOANO = Errno(0x35) 1142 ENOBUFS = Errno(0x84) 1143 ENOCSI = Errno(0x2b) 1144 ENODATA = Errno(0x3d) 1145 ENODEV = Errno(0x13) 1146 ENOENT = Errno(0x2) 1147 ENOEXEC = Errno(0x8) 1148 ENOLCK = Errno(0x2e) 1149 ENOLINK = Errno(0x43) 1150 ENOMEM = Errno(0xc) 1151 ENOMSG = Errno(0x23) 1152 ENONET = Errno(0x40) 1153 ENOPKG = Errno(0x41) 1154 ENOPROTOOPT = Errno(0x63) 1155 ENOSPC = Errno(0x1c) 1156 ENOSR = Errno(0x3f) 1157 ENOSTR = Errno(0x3c) 1158 ENOSYS = Errno(0x59) 1159 ENOTACTIVE = Errno(0x49) 1160 ENOTBLK = Errno(0xf) 1161 ENOTCONN = Errno(0x86) 1162 ENOTDIR = Errno(0x14) 1163 ENOTEMPTY = Errno(0x5d) 1164 ENOTRECOVERABLE = Errno(0x3b) 1165 ENOTSOCK = Errno(0x5f) 1166 ENOTSUP = Errno(0x30) 1167 ENOTTY = Errno(0x19) 1168 ENOTUNIQ = Errno(0x50) 1169 ENXIO = Errno(0x6) 1170 EOPNOTSUPP = Errno(0x7a) 1171 EOVERFLOW = Errno(0x4f) 1172 EOWNERDEAD = Errno(0x3a) 1173 EPERM = Errno(0x1) 1174 EPFNOSUPPORT = Errno(0x7b) 1175 EPIPE = Errno(0x20) 1176 EPROTO = Errno(0x47) 1177 EPROTONOSUPPORT = Errno(0x78) 1178 EPROTOTYPE = Errno(0x62) 1179 ERANGE = Errno(0x22) 1180 EREMCHG = Errno(0x52) 1181 EREMOTE = Errno(0x42) 1182 ERESTART = Errno(0x5b) 1183 EROFS = Errno(0x1e) 1184 ESHUTDOWN = Errno(0x8f) 1185 ESOCKTNOSUPPORT = Errno(0x79) 1186 ESPIPE = Errno(0x1d) 1187 ESRCH = Errno(0x3) 1188 ESRMNT = Errno(0x45) 1189 ESTALE = Errno(0x97) 1190 ESTRPIPE = Errno(0x5c) 1191 ETIME = Errno(0x3e) 1192 ETIMEDOUT = Errno(0x91) 1193 ETOOMANYREFS = Errno(0x90) 1194 ETXTBSY = Errno(0x1a) 1195 EUNATCH = Errno(0x2a) 1196 EUSERS = Errno(0x5e) 1197 EWOULDBLOCK = Errno(0xb) 1198 EXDEV = Errno(0x12) 1199 EXFULL = Errno(0x34) 1200 ) 1201 1202 // Signals 1203 const ( 1204 SIGABRT = Signal(0x6) 1205 SIGALRM = Signal(0xe) 1206 SIGBUS = Signal(0xa) 1207 SIGCANCEL = Signal(0x24) 1208 SIGCHLD = Signal(0x12) 1209 SIGCLD = Signal(0x12) 1210 SIGCONT = Signal(0x19) 1211 SIGEMT = Signal(0x7) 1212 SIGFPE = Signal(0x8) 1213 SIGFREEZE = Signal(0x22) 1214 SIGHUP = Signal(0x1) 1215 SIGILL = Signal(0x4) 1216 SIGINT = Signal(0x2) 1217 SIGIO = Signal(0x16) 1218 SIGIOT = Signal(0x6) 1219 SIGJVM1 = Signal(0x27) 1220 SIGJVM2 = Signal(0x28) 1221 SIGKILL = Signal(0x9) 1222 SIGLOST = Signal(0x25) 1223 SIGLWP = Signal(0x21) 1224 SIGPIPE = Signal(0xd) 1225 SIGPOLL = Signal(0x16) 1226 SIGPROF = Signal(0x1d) 1227 SIGPWR = Signal(0x13) 1228 SIGQUIT = Signal(0x3) 1229 SIGSEGV = Signal(0xb) 1230 SIGSTOP = Signal(0x17) 1231 SIGSYS = Signal(0xc) 1232 SIGTERM = Signal(0xf) 1233 SIGTHAW = Signal(0x23) 1234 SIGTRAP = Signal(0x5) 1235 SIGTSTP = Signal(0x18) 1236 SIGTTIN = Signal(0x1a) 1237 SIGTTOU = Signal(0x1b) 1238 SIGURG = Signal(0x15) 1239 SIGUSR1 = Signal(0x10) 1240 SIGUSR2 = Signal(0x11) 1241 SIGVTALRM = Signal(0x1c) 1242 SIGWAITING = Signal(0x20) 1243 SIGWINCH = Signal(0x14) 1244 SIGXCPU = Signal(0x1e) 1245 SIGXFSZ = Signal(0x1f) 1246 SIGXRES = Signal(0x26) 1247 ) 1248 1249 // Error table 1250 var errors = [...]string{ 1251 1: "not owner", 1252 2: "no such file or directory", 1253 3: "no such process", 1254 4: "interrupted system call", 1255 5: "I/O error", 1256 6: "no such device or address", 1257 7: "arg list too long", 1258 8: "exec format error", 1259 9: "bad file number", 1260 10: "no child processes", 1261 11: "resource temporarily unavailable", 1262 12: "not enough space", 1263 13: "permission denied", 1264 14: "bad address", 1265 15: "block device required", 1266 16: "device busy", 1267 17: "file exists", 1268 18: "cross-device link", 1269 19: "no such device", 1270 20: "not a directory", 1271 21: "is a directory", 1272 22: "invalid argument", 1273 23: "file table overflow", 1274 24: "too many open files", 1275 25: "inappropriate ioctl for device", 1276 26: "text file busy", 1277 27: "file too large", 1278 28: "no space left on device", 1279 29: "illegal seek", 1280 30: "read-only file system", 1281 31: "too many links", 1282 32: "broken pipe", 1283 33: "argument out of domain", 1284 34: "result too large", 1285 35: "no message of desired type", 1286 36: "identifier removed", 1287 37: "channel number out of range", 1288 38: "level 2 not synchronized", 1289 39: "level 3 halted", 1290 40: "level 3 reset", 1291 41: "link number out of range", 1292 42: "protocol driver not attached", 1293 43: "no CSI structure available", 1294 44: "level 2 halted", 1295 45: "deadlock situation detected/avoided", 1296 46: "no record locks available", 1297 47: "operation canceled", 1298 48: "operation not supported", 1299 49: "disc quota exceeded", 1300 50: "bad exchange descriptor", 1301 51: "bad request descriptor", 1302 52: "message tables full", 1303 53: "anode table overflow", 1304 54: "bad request code", 1305 55: "invalid slot", 1306 56: "file locking deadlock", 1307 57: "bad font file format", 1308 58: "owner of the lock died", 1309 59: "lock is not recoverable", 1310 60: "not a stream device", 1311 61: "no data available", 1312 62: "timer expired", 1313 63: "out of stream resources", 1314 64: "machine is not on the network", 1315 65: "package not installed", 1316 66: "object is remote", 1317 67: "link has been severed", 1318 68: "advertise error", 1319 69: "srmount error", 1320 70: "communication error on send", 1321 71: "protocol error", 1322 72: "locked lock was unmapped ", 1323 73: "facility is not active", 1324 74: "multihop attempted", 1325 77: "not a data message", 1326 78: "file name too long", 1327 79: "value too large for defined data type", 1328 80: "name not unique on network", 1329 81: "file descriptor in bad state", 1330 82: "remote address changed", 1331 83: "can not access a needed shared library", 1332 84: "accessing a corrupted shared library", 1333 85: ".lib section in a.out corrupted", 1334 86: "attempting to link in more shared libraries than system limit", 1335 87: "can not exec a shared library directly", 1336 88: "illegal byte sequence", 1337 89: "operation not applicable", 1338 90: "number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS", 1339 91: "error 91", 1340 92: "error 92", 1341 93: "directory not empty", 1342 94: "too many users", 1343 95: "socket operation on non-socket", 1344 96: "destination address required", 1345 97: "message too long", 1346 98: "protocol wrong type for socket", 1347 99: "option not supported by protocol", 1348 120: "protocol not supported", 1349 121: "socket type not supported", 1350 122: "operation not supported on transport endpoint", 1351 123: "protocol family not supported", 1352 124: "address family not supported by protocol family", 1353 125: "address already in use", 1354 126: "cannot assign requested address", 1355 127: "network is down", 1356 128: "network is unreachable", 1357 129: "network dropped connection because of reset", 1358 130: "software caused connection abort", 1359 131: "connection reset by peer", 1360 132: "no buffer space available", 1361 133: "transport endpoint is already connected", 1362 134: "transport endpoint is not connected", 1363 143: "cannot send after socket shutdown", 1364 144: "too many references: cannot splice", 1365 145: "connection timed out", 1366 146: "connection refused", 1367 147: "host is down", 1368 148: "no route to host", 1369 149: "operation already in progress", 1370 150: "operation now in progress", 1371 151: "stale NFS file handle", 1372 } 1373 1374 // Signal table 1375 var signals = [...]string{ 1376 1: "hangup", 1377 2: "interrupt", 1378 3: "quit", 1379 4: "illegal Instruction", 1380 5: "trace/Breakpoint Trap", 1381 6: "abort", 1382 7: "emulation Trap", 1383 8: "arithmetic Exception", 1384 9: "killed", 1385 10: "bus Error", 1386 11: "segmentation Fault", 1387 12: "bad System Call", 1388 13: "broken Pipe", 1389 14: "alarm Clock", 1390 15: "terminated", 1391 16: "user Signal 1", 1392 17: "user Signal 2", 1393 18: "child Status Changed", 1394 19: "power-Fail/Restart", 1395 20: "window Size Change", 1396 21: "urgent Socket Condition", 1397 22: "pollable Event", 1398 23: "stopped (signal)", 1399 24: "stopped (user)", 1400 25: "continued", 1401 26: "stopped (tty input)", 1402 27: "stopped (tty output)", 1403 28: "virtual Timer Expired", 1404 29: "profiling Timer Expired", 1405 30: "cpu Limit Exceeded", 1406 31: "file Size Limit Exceeded", 1407 32: "no runnable lwp", 1408 33: "inter-lwp signal", 1409 34: "checkpoint Freeze", 1410 35: "checkpoint Thaw", 1411 36: "thread Cancellation", 1412 37: "resource Lost", 1413 38: "resource Control Exceeded", 1414 39: "reserved for JVM 1", 1415 40: "reserved for JVM 2", 1416 } 1417