github.com/ltltlt/go-source-code@v0.0.0-20190830023027-95be009773aa/syscall/zerrors_darwin_arm.go (about) 1 // mkerrors.sh 2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT 3 4 // Created by cgo -godefs - DO NOT EDIT 5 // cgo -godefs -- _const.go 6 7 // +build arm,darwin 8 9 package syscall 10 11 const ( 12 AF_APPLETALK = 0x10 13 AF_CCITT = 0xa 14 AF_CHAOS = 0x5 15 AF_CNT = 0x15 16 AF_COIP = 0x14 17 AF_DATAKIT = 0x9 18 AF_DECnet = 0xc 19 AF_DLI = 0xd 20 AF_E164 = 0x1c 21 AF_ECMA = 0x8 22 AF_HYLINK = 0xf 23 AF_IMPLINK = 0x3 24 AF_INET = 0x2 25 AF_INET6 = 0x1e 26 AF_IPX = 0x17 27 AF_ISDN = 0x1c 28 AF_ISO = 0x7 29 AF_LAT = 0xe 30 AF_LINK = 0x12 31 AF_LOCAL = 0x1 32 AF_MAX = 0x25 33 AF_NATM = 0x1f 34 AF_NDRV = 0x1b 35 AF_NETBIOS = 0x21 36 AF_NS = 0x6 37 AF_OSI = 0x7 38 AF_PPP = 0x22 39 AF_PUP = 0x4 40 AF_RESERVED_36 = 0x24 41 AF_ROUTE = 0x11 42 AF_SIP = 0x18 43 AF_SNA = 0xb 44 AF_SYSTEM = 0x20 45 AF_UNIX = 0x1 46 AF_UNSPEC = 0x0 47 B0 = 0x0 48 B110 = 0x6e 49 B115200 = 0x1c200 50 B1200 = 0x4b0 51 B134 = 0x86 52 B14400 = 0x3840 53 B150 = 0x96 54 B1800 = 0x708 55 B19200 = 0x4b00 56 B200 = 0xc8 57 B230400 = 0x38400 58 B2400 = 0x960 59 B28800 = 0x7080 60 B300 = 0x12c 61 B38400 = 0x9600 62 B4800 = 0x12c0 63 B50 = 0x32 64 B57600 = 0xe100 65 B600 = 0x258 66 B7200 = 0x1c20 67 B75 = 0x4b 68 B76800 = 0x12c00 69 B9600 = 0x2580 70 BIOCFLUSH = 0x20004268 71 BIOCGBLEN = 0x40044266 72 BIOCGDLT = 0x4004426a 73 BIOCGDLTLIST = 0xc00c4279 74 BIOCGETIF = 0x4020426b 75 BIOCGHDRCMPLT = 0x40044274 76 BIOCGRSIG = 0x40044272 77 BIOCGRTIMEOUT = 0x4008426e 78 BIOCGSEESENT = 0x40044276 79 BIOCGSTATS = 0x4008426f 80 BIOCIMMEDIATE = 0x80044270 81 BIOCPROMISC = 0x20004269 82 BIOCSBLEN = 0xc0044266 83 BIOCSDLT = 0x80044278 84 BIOCSETF = 0x80084267 85 BIOCSETIF = 0x8020426c 86 BIOCSHDRCMPLT = 0x80044275 87 BIOCSRSIG = 0x80044273 88 BIOCSRTIMEOUT = 0x8008426d 89 BIOCSSEESENT = 0x80044277 90 BIOCVERSION = 0x40044271 91 BPF_A = 0x10 92 BPF_ABS = 0x20 93 BPF_ADD = 0x0 94 BPF_ALIGNMENT = 0x4 95 BPF_ALU = 0x4 96 BPF_AND = 0x50 97 BPF_B = 0x10 98 BPF_DIV = 0x30 99 BPF_H = 0x8 100 BPF_IMM = 0x0 101 BPF_IND = 0x40 102 BPF_JA = 0x0 103 BPF_JEQ = 0x10 104 BPF_JGE = 0x30 105 BPF_JGT = 0x20 106 BPF_JMP = 0x5 107 BPF_JSET = 0x40 108 BPF_K = 0x0 109 BPF_LD = 0x0 110 BPF_LDX = 0x1 111 BPF_LEN = 0x80 112 BPF_LSH = 0x60 113 BPF_MAJOR_VERSION = 0x1 114 BPF_MAXBUFSIZE = 0x80000 115 BPF_MAXINSNS = 0x200 116 BPF_MEM = 0x60 117 BPF_MEMWORDS = 0x10 118 BPF_MINBUFSIZE = 0x20 119 BPF_MINOR_VERSION = 0x1 120 BPF_MISC = 0x7 121 BPF_MSH = 0xa0 122 BPF_MUL = 0x20 123 BPF_NEG = 0x80 124 BPF_OR = 0x40 125 BPF_RELEASE = 0x30bb6 126 BPF_RET = 0x6 127 BPF_RSH = 0x70 128 BPF_ST = 0x2 129 BPF_STX = 0x3 130 BPF_SUB = 0x10 131 BPF_TAX = 0x0 132 BPF_TXA = 0x80 133 BPF_W = 0x0 134 BPF_X = 0x8 135 BRKINT = 0x2 136 CFLUSH = 0xf 137 CLOCAL = 0x8000 138 CREAD = 0x800 139 CS5 = 0x0 140 CS6 = 0x100 141 CS7 = 0x200 142 CS8 = 0x300 143 CSIZE = 0x300 144 CSTART = 0x11 145 CSTATUS = 0x14 146 CSTOP = 0x13 147 CSTOPB = 0x400 148 CSUSP = 0x1a 149 CTL_MAXNAME = 0xc 150 CTL_NET = 0x4 151 DLT_APPLE_IP_OVER_IEEE1394 = 0x8a 152 DLT_ARCNET = 0x7 153 DLT_ATM_CLIP = 0x13 154 DLT_ATM_RFC1483 = 0xb 155 DLT_AX25 = 0x3 156 DLT_CHAOS = 0x5 157 DLT_CHDLC = 0x68 158 DLT_C_HDLC = 0x68 159 DLT_EN10MB = 0x1 160 DLT_EN3MB = 0x2 161 DLT_FDDI = 0xa 162 DLT_IEEE802 = 0x6 163 DLT_IEEE802_11 = 0x69 164 DLT_IEEE802_11_RADIO = 0x7f 165 DLT_IEEE802_11_RADIO_AVS = 0xa3 166 DLT_LINUX_SLL = 0x71 167 DLT_LOOP = 0x6c 168 DLT_NULL = 0x0 169 DLT_PFLOG = 0x75 170 DLT_PFSYNC = 0x12 171 DLT_PPP = 0x9 172 DLT_PPP_BSDOS = 0x10 173 DLT_PPP_SERIAL = 0x32 174 DLT_PRONET = 0x4 175 DLT_RAW = 0xc 176 DLT_SLIP = 0x8 177 DLT_SLIP_BSDOS = 0xf 178 DT_BLK = 0x6 179 DT_CHR = 0x2 180 DT_DIR = 0x4 181 DT_FIFO = 0x1 182 DT_LNK = 0xa 183 DT_REG = 0x8 184 DT_SOCK = 0xc 185 DT_UNKNOWN = 0x0 186 DT_WHT = 0xe 187 ECHO = 0x8 188 ECHOCTL = 0x40 189 ECHOE = 0x2 190 ECHOK = 0x4 191 ECHOKE = 0x1 192 ECHONL = 0x10 193 ECHOPRT = 0x20 194 EVFILT_AIO = -0x3 195 EVFILT_FS = -0x9 196 EVFILT_MACHPORT = -0x8 197 EVFILT_PROC = -0x5 198 EVFILT_READ = -0x1 199 EVFILT_SIGNAL = -0x6 200 EVFILT_SYSCOUNT = 0x9 201 EVFILT_THREADMARKER = 0x9 202 EVFILT_TIMER = -0x7 203 EVFILT_VNODE = -0x4 204 EVFILT_WRITE = -0x2 205 EV_ADD = 0x1 206 EV_CLEAR = 0x20 207 EV_DELETE = 0x2 208 EV_DISABLE = 0x8 209 EV_ENABLE = 0x4 210 EV_EOF = 0x8000 211 EV_ERROR = 0x4000 212 EV_FLAG0 = 0x1000 213 EV_FLAG1 = 0x2000 214 EV_ONESHOT = 0x10 215 EV_OOBAND = 0x2000 216 EV_POLL = 0x1000 217 EV_RECEIPT = 0x40 218 EV_SYSFLAGS = 0xf000 219 EXTA = 0x4b00 220 EXTB = 0x9600 221 EXTPROC = 0x800 222 FD_CLOEXEC = 0x1 223 FD_SETSIZE = 0x400 224 FLUSHO = 0x800000 225 F_ADDSIGS = 0x3b 226 F_ALLOCATEALL = 0x4 227 F_ALLOCATECONTIG = 0x2 228 F_CHKCLEAN = 0x29 229 F_DUPFD = 0x0 230 F_DUPFD_CLOEXEC = 0x43 231 F_FREEZE_FS = 0x35 232 F_FULLFSYNC = 0x33 233 F_GETFD = 0x1 234 F_GETFL = 0x3 235 F_GETLK = 0x7 236 F_GETOWN = 0x5 237 F_GETPATH = 0x32 238 F_GLOBAL_NOCACHE = 0x37 239 F_LOG2PHYS = 0x31 240 F_MARKDEPENDENCY = 0x3c 241 F_NOCACHE = 0x30 242 F_OK = 0x0 243 F_PATHPKG_CHECK = 0x34 244 F_PEOFPOSMODE = 0x3 245 F_PREALLOCATE = 0x2a 246 F_RDADVISE = 0x2c 247 F_RDAHEAD = 0x2d 248 F_RDLCK = 0x1 249 F_READBOOTSTRAP = 0x2e 250 F_SETFD = 0x2 251 F_SETFL = 0x4 252 F_SETLK = 0x8 253 F_SETLKW = 0x9 254 F_SETOWN = 0x6 255 F_SETSIZE = 0x2b 256 F_THAW_FS = 0x36 257 F_UNLCK = 0x2 258 F_VOLPOSMODE = 0x4 259 F_WRITEBOOTSTRAP = 0x2f 260 F_WRLCK = 0x3 261 HUPCL = 0x4000 262 ICANON = 0x100 263 ICRNL = 0x100 264 IEXTEN = 0x400 265 IFF_ALLMULTI = 0x200 266 IFF_ALTPHYS = 0x4000 267 IFF_BROADCAST = 0x2 268 IFF_DEBUG = 0x4 269 IFF_LINK0 = 0x1000 270 IFF_LINK1 = 0x2000 271 IFF_LINK2 = 0x4000 272 IFF_LOOPBACK = 0x8 273 IFF_MULTICAST = 0x8000 274 IFF_NOARP = 0x80 275 IFF_NOTRAILERS = 0x20 276 IFF_OACTIVE = 0x400 277 IFF_POINTOPOINT = 0x10 278 IFF_PROMISC = 0x100 279 IFF_RUNNING = 0x40 280 IFF_SIMPLEX = 0x800 281 IFF_UP = 0x1 282 IFNAMSIZ = 0x10 283 IFT_1822 = 0x2 284 IFT_AAL5 = 0x31 285 IFT_ARCNET = 0x23 286 IFT_ARCNETPLUS = 0x24 287 IFT_ATM = 0x25 288 IFT_BRIDGE = 0xd1 289 IFT_CARP = 0xf8 290 IFT_CEPT = 0x13 291 IFT_DS3 = 0x1e 292 IFT_ENC = 0xf4 293 IFT_EON = 0x19 294 IFT_ETHER = 0x6 295 IFT_FAITH = 0x38 296 IFT_FDDI = 0xf 297 IFT_FRELAY = 0x20 298 IFT_FRELAYDCE = 0x2c 299 IFT_GIF = 0x37 300 IFT_HDH1822 = 0x3 301 IFT_HIPPI = 0x2f 302 IFT_HSSI = 0x2e 303 IFT_HY = 0xe 304 IFT_IEEE1394 = 0x90 305 IFT_IEEE8023ADLAG = 0x88 306 IFT_ISDNBASIC = 0x14 307 IFT_ISDNPRIMARY = 0x15 308 IFT_ISO88022LLC = 0x29 309 IFT_ISO88023 = 0x7 310 IFT_ISO88024 = 0x8 311 IFT_ISO88025 = 0x9 312 IFT_ISO88026 = 0xa 313 IFT_L2VLAN = 0x87 314 IFT_LAPB = 0x10 315 IFT_LOCALTALK = 0x2a 316 IFT_LOOP = 0x18 317 IFT_MIOX25 = 0x26 318 IFT_MODEM = 0x30 319 IFT_NSIP = 0x1b 320 IFT_OTHER = 0x1 321 IFT_P10 = 0xc 322 IFT_P80 = 0xd 323 IFT_PARA = 0x22 324 IFT_PDP = 0xff 325 IFT_PFLOG = 0xf5 326 IFT_PFSYNC = 0xf6 327 IFT_PPP = 0x17 328 IFT_PROPMUX = 0x36 329 IFT_PROPVIRTUAL = 0x35 330 IFT_PTPSERIAL = 0x16 331 IFT_RS232 = 0x21 332 IFT_SDLC = 0x11 333 IFT_SIP = 0x1f 334 IFT_SLIP = 0x1c 335 IFT_SMDSDXI = 0x2b 336 IFT_SMDSICIP = 0x34 337 IFT_SONET = 0x27 338 IFT_SONETPATH = 0x32 339 IFT_SONETVT = 0x33 340 IFT_STARLAN = 0xb 341 IFT_STF = 0x39 342 IFT_T1 = 0x12 343 IFT_ULTRA = 0x1d 344 IFT_V35 = 0x2d 345 IFT_X25 = 0x5 346 IFT_X25DDN = 0x4 347 IFT_X25PLE = 0x28 348 IFT_XETHER = 0x1a 349 IGNBRK = 0x1 350 IGNCR = 0x80 351 IGNPAR = 0x4 352 IMAXBEL = 0x2000 353 INLCR = 0x40 354 INPCK = 0x10 355 IN_CLASSA_HOST = 0xffffff 356 IN_CLASSA_MAX = 0x80 357 IN_CLASSA_NET = 0xff000000 358 IN_CLASSA_NSHIFT = 0x18 359 IN_CLASSB_HOST = 0xffff 360 IN_CLASSB_MAX = 0x10000 361 IN_CLASSB_NET = 0xffff0000 362 IN_CLASSB_NSHIFT = 0x10 363 IN_CLASSC_HOST = 0xff 364 IN_CLASSC_NET = 0xffffff00 365 IN_CLASSC_NSHIFT = 0x8 366 IN_CLASSD_HOST = 0xfffffff 367 IN_CLASSD_NET = 0xf0000000 368 IN_CLASSD_NSHIFT = 0x1c 369 IN_LINKLOCALNETNUM = 0xa9fe0000 370 IN_LOOPBACKNET = 0x7f 371 IPPROTO_3PC = 0x22 372 IPPROTO_ADFS = 0x44 373 IPPROTO_AH = 0x33 374 IPPROTO_AHIP = 0x3d 375 IPPROTO_APES = 0x63 376 IPPROTO_ARGUS = 0xd 377 IPPROTO_AX25 = 0x5d 378 IPPROTO_BHA = 0x31 379 IPPROTO_BLT = 0x1e 380 IPPROTO_BRSATMON = 0x4c 381 IPPROTO_CFTP = 0x3e 382 IPPROTO_CHAOS = 0x10 383 IPPROTO_CMTP = 0x26 384 IPPROTO_CPHB = 0x49 385 IPPROTO_CPNX = 0x48 386 IPPROTO_DDP = 0x25 387 IPPROTO_DGP = 0x56 388 IPPROTO_DIVERT = 0xfe 389 IPPROTO_DONE = 0x101 390 IPPROTO_DSTOPTS = 0x3c 391 IPPROTO_EGP = 0x8 392 IPPROTO_EMCON = 0xe 393 IPPROTO_ENCAP = 0x62 394 IPPROTO_EON = 0x50 395 IPPROTO_ESP = 0x32 396 IPPROTO_ETHERIP = 0x61 397 IPPROTO_FRAGMENT = 0x2c 398 IPPROTO_GGP = 0x3 399 IPPROTO_GMTP = 0x64 400 IPPROTO_GRE = 0x2f 401 IPPROTO_HELLO = 0x3f 402 IPPROTO_HMP = 0x14 403 IPPROTO_HOPOPTS = 0x0 404 IPPROTO_ICMP = 0x1 405 IPPROTO_ICMPV6 = 0x3a 406 IPPROTO_IDP = 0x16 407 IPPROTO_IDPR = 0x23 408 IPPROTO_IDRP = 0x2d 409 IPPROTO_IGMP = 0x2 410 IPPROTO_IGP = 0x55 411 IPPROTO_IGRP = 0x58 412 IPPROTO_IL = 0x28 413 IPPROTO_INLSP = 0x34 414 IPPROTO_INP = 0x20 415 IPPROTO_IP = 0x0 416 IPPROTO_IPCOMP = 0x6c 417 IPPROTO_IPCV = 0x47 418 IPPROTO_IPEIP = 0x5e 419 IPPROTO_IPIP = 0x4 420 IPPROTO_IPPC = 0x43 421 IPPROTO_IPV4 = 0x4 422 IPPROTO_IPV6 = 0x29 423 IPPROTO_IRTP = 0x1c 424 IPPROTO_KRYPTOLAN = 0x41 425 IPPROTO_LARP = 0x5b 426 IPPROTO_LEAF1 = 0x19 427 IPPROTO_LEAF2 = 0x1a 428 IPPROTO_MAX = 0x100 429 IPPROTO_MAXID = 0x34 430 IPPROTO_MEAS = 0x13 431 IPPROTO_MHRP = 0x30 432 IPPROTO_MICP = 0x5f 433 IPPROTO_MTP = 0x5c 434 IPPROTO_MUX = 0x12 435 IPPROTO_ND = 0x4d 436 IPPROTO_NHRP = 0x36 437 IPPROTO_NONE = 0x3b 438 IPPROTO_NSP = 0x1f 439 IPPROTO_NVPII = 0xb 440 IPPROTO_OSPFIGP = 0x59 441 IPPROTO_PGM = 0x71 442 IPPROTO_PIGP = 0x9 443 IPPROTO_PIM = 0x67 444 IPPROTO_PRM = 0x15 445 IPPROTO_PUP = 0xc 446 IPPROTO_PVP = 0x4b 447 IPPROTO_RAW = 0xff 448 IPPROTO_RCCMON = 0xa 449 IPPROTO_RDP = 0x1b 450 IPPROTO_ROUTING = 0x2b 451 IPPROTO_RSVP = 0x2e 452 IPPROTO_RVD = 0x42 453 IPPROTO_SATEXPAK = 0x40 454 IPPROTO_SATMON = 0x45 455 IPPROTO_SCCSP = 0x60 456 IPPROTO_SDRP = 0x2a 457 IPPROTO_SEP = 0x21 458 IPPROTO_SRPC = 0x5a 459 IPPROTO_ST = 0x7 460 IPPROTO_SVMTP = 0x52 461 IPPROTO_SWIPE = 0x35 462 IPPROTO_TCF = 0x57 463 IPPROTO_TCP = 0x6 464 IPPROTO_TP = 0x1d 465 IPPROTO_TPXX = 0x27 466 IPPROTO_TRUNK1 = 0x17 467 IPPROTO_TRUNK2 = 0x18 468 IPPROTO_TTP = 0x54 469 IPPROTO_UDP = 0x11 470 IPPROTO_VINES = 0x53 471 IPPROTO_VISA = 0x46 472 IPPROTO_VMTP = 0x51 473 IPPROTO_WBEXPAK = 0x4f 474 IPPROTO_WBMON = 0x4e 475 IPPROTO_WSN = 0x4a 476 IPPROTO_XNET = 0xf 477 IPPROTO_XTP = 0x24 478 IPV6_BINDV6ONLY = 0x1b 479 IPV6_CHECKSUM = 0x1a 480 IPV6_DEFAULT_MULTICAST_HOPS = 0x1 481 IPV6_DEFAULT_MULTICAST_LOOP = 0x1 482 IPV6_DEFHLIM = 0x40 483 IPV6_DSTOPTS = 0x17 484 IPV6_FAITH = 0x1d 485 IPV6_FLOWINFO_MASK = 0xffffff0f 486 IPV6_FLOWLABEL_MASK = 0xffff0f00 487 IPV6_FRAGTTL = 0x78 488 IPV6_FW_ADD = 0x1e 489 IPV6_FW_DEL = 0x1f 490 IPV6_FW_FLUSH = 0x20 491 IPV6_FW_GET = 0x22 492 IPV6_FW_ZERO = 0x21 493 IPV6_HLIMDEC = 0x1 494 IPV6_HOPLIMIT = 0x14 495 IPV6_HOPOPTS = 0x16 496 IPV6_IPSEC_POLICY = 0x1c 497 IPV6_JOIN_GROUP = 0xc 498 IPV6_LEAVE_GROUP = 0xd 499 IPV6_MAXHLIM = 0xff 500 IPV6_MAXPACKET = 0xffff 501 IPV6_MMTU = 0x500 502 IPV6_MULTICAST_HOPS = 0xa 503 IPV6_MULTICAST_IF = 0x9 504 IPV6_MULTICAST_LOOP = 0xb 505 IPV6_NEXTHOP = 0x15 506 IPV6_PKTINFO = 0x13 507 IPV6_PKTOPTIONS = 0x19 508 IPV6_PORTRANGE = 0xe 509 IPV6_PORTRANGE_DEFAULT = 0x0 510 IPV6_PORTRANGE_HIGH = 0x1 511 IPV6_PORTRANGE_LOW = 0x2 512 IPV6_RTHDR = 0x18 513 IPV6_RTHDR_LOOSE = 0x0 514 IPV6_RTHDR_STRICT = 0x1 515 IPV6_RTHDR_TYPE_0 = 0x0 516 IPV6_SOCKOPT_RESERVED1 = 0x3 517 IPV6_UNICAST_HOPS = 0x4 518 IPV6_V6ONLY = 0x1b 519 IPV6_VERSION = 0x60 520 IPV6_VERSION_MASK = 0xf0 521 IP_ADD_MEMBERSHIP = 0xc 522 IP_DEFAULT_MULTICAST_LOOP = 0x1 523 IP_DEFAULT_MULTICAST_TTL = 0x1 524 IP_DF = 0x4000 525 IP_DROP_MEMBERSHIP = 0xd 526 IP_DUMMYNET_CONFIGURE = 0x3c 527 IP_DUMMYNET_DEL = 0x3d 528 IP_DUMMYNET_FLUSH = 0x3e 529 IP_DUMMYNET_GET = 0x40 530 IP_FAITH = 0x16 531 IP_FW_ADD = 0x28 532 IP_FW_DEL = 0x29 533 IP_FW_FLUSH = 0x2a 534 IP_FW_GET = 0x2c 535 IP_FW_RESETLOG = 0x2d 536 IP_FW_ZERO = 0x2b 537 IP_HDRINCL = 0x2 538 IP_IPSEC_POLICY = 0x15 539 IP_MAXPACKET = 0xffff 540 IP_MAX_MEMBERSHIPS = 0x14 541 IP_MF = 0x2000 542 IP_MSS = 0x240 543 IP_MULTICAST_IF = 0x9 544 IP_MULTICAST_LOOP = 0xb 545 IP_MULTICAST_TTL = 0xa 546 IP_MULTICAST_VIF = 0xe 547 IP_NAT__XXX = 0x37 548 IP_OFFMASK = 0x1fff 549 IP_OLD_FW_ADD = 0x32 550 IP_OLD_FW_DEL = 0x33 551 IP_OLD_FW_FLUSH = 0x34 552 IP_OLD_FW_GET = 0x36 553 IP_OLD_FW_RESETLOG = 0x38 554 IP_OLD_FW_ZERO = 0x35 555 IP_OPTIONS = 0x1 556 IP_PKTINFO = 0x1a 557 IP_PORTRANGE = 0x13 558 IP_PORTRANGE_DEFAULT = 0x0 559 IP_PORTRANGE_HIGH = 0x1 560 IP_PORTRANGE_LOW = 0x2 561 IP_RECVDSTADDR = 0x7 562 IP_RECVIF = 0x14 563 IP_RECVOPTS = 0x5 564 IP_RECVPKTINFO = 0x1a 565 IP_RECVRETOPTS = 0x6 566 IP_RECVTTL = 0x18 567 IP_RETOPTS = 0x8 568 IP_RF = 0x8000 569 IP_RSVP_OFF = 0x10 570 IP_RSVP_ON = 0xf 571 IP_RSVP_VIF_OFF = 0x12 572 IP_RSVP_VIF_ON = 0x11 573 IP_STRIPHDR = 0x17 574 IP_TOS = 0x3 575 IP_TRAFFIC_MGT_BACKGROUND = 0x41 576 IP_TTL = 0x4 577 ISIG = 0x80 578 ISTRIP = 0x20 579 IUTF8 = 0x4000 580 IXANY = 0x800 581 IXOFF = 0x400 582 IXON = 0x200 583 LOCK_EX = 0x2 584 LOCK_NB = 0x4 585 LOCK_SH = 0x1 586 LOCK_UN = 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_ANON = 0x1000 594 MAP_COPY = 0x2 595 MAP_FILE = 0x0 596 MAP_FIXED = 0x10 597 MAP_HASSEMAPHORE = 0x200 598 MAP_NOCACHE = 0x400 599 MAP_NOEXTEND = 0x100 600 MAP_NORESERVE = 0x40 601 MAP_PRIVATE = 0x2 602 MAP_RENAME = 0x20 603 MAP_RESERVED0080 = 0x80 604 MAP_SHARED = 0x1 605 MCL_CURRENT = 0x1 606 MCL_FUTURE = 0x2 607 MSG_CTRUNC = 0x20 608 MSG_DONTROUTE = 0x4 609 MSG_DONTWAIT = 0x80 610 MSG_EOF = 0x100 611 MSG_EOR = 0x8 612 MSG_FLUSH = 0x400 613 MSG_HAVEMORE = 0x2000 614 MSG_HOLD = 0x800 615 MSG_NEEDSA = 0x10000 616 MSG_OOB = 0x1 617 MSG_PEEK = 0x2 618 MSG_RCVMORE = 0x4000 619 MSG_SEND = 0x1000 620 MSG_TRUNC = 0x10 621 MSG_WAITALL = 0x40 622 MSG_WAITSTREAM = 0x200 623 MS_ASYNC = 0x1 624 MS_DEACTIVATE = 0x8 625 MS_INVALIDATE = 0x2 626 MS_KILLPAGES = 0x4 627 MS_SYNC = 0x10 628 NAME_MAX = 0xff 629 NET_RT_DUMP = 0x1 630 NET_RT_DUMP2 = 0x7 631 NET_RT_FLAGS = 0x2 632 NET_RT_IFLIST = 0x3 633 NET_RT_IFLIST2 = 0x6 634 NET_RT_MAXID = 0x8 635 NET_RT_STAT = 0x4 636 NET_RT_TRASH = 0x5 637 NOFLSH = 0x80000000 638 NOTE_ABSOLUTE = 0x8 639 NOTE_ATTRIB = 0x8 640 NOTE_CHILD = 0x4 641 NOTE_DELETE = 0x1 642 NOTE_EXEC = 0x20000000 643 NOTE_EXIT = 0x80000000 644 NOTE_EXTEND = 0x4 645 NOTE_FORK = 0x40000000 646 NOTE_LINK = 0x10 647 NOTE_LOWAT = 0x1 648 NOTE_NSECONDS = 0x4 649 NOTE_PCTRLMASK = -0x100000 650 NOTE_PDATAMASK = 0xfffff 651 NOTE_REAP = 0x10000000 652 NOTE_RENAME = 0x20 653 NOTE_REVOKE = 0x40 654 NOTE_SECONDS = 0x1 655 NOTE_SIGNAL = 0x8000000 656 NOTE_TRACK = 0x1 657 NOTE_TRACKERR = 0x2 658 NOTE_USECONDS = 0x2 659 NOTE_WRITE = 0x2 660 OCRNL = 0x10 661 OFDEL = 0x20000 662 OFILL = 0x80 663 ONLCR = 0x2 664 ONLRET = 0x40 665 ONOCR = 0x20 666 ONOEOT = 0x8 667 OPOST = 0x1 668 O_ACCMODE = 0x3 669 O_ALERT = 0x20000000 670 O_APPEND = 0x8 671 O_ASYNC = 0x40 672 O_CLOEXEC = 0x1000000 673 O_CREAT = 0x200 674 O_DIRECTORY = 0x100000 675 O_EVTONLY = 0x8000 676 O_EXCL = 0x800 677 O_EXLOCK = 0x20 678 O_FSYNC = 0x80 679 O_NDELAY = 0x4 680 O_NOCTTY = 0x20000 681 O_NOFOLLOW = 0x100 682 O_NONBLOCK = 0x4 683 O_POPUP = 0x80000000 684 O_RDONLY = 0x0 685 O_RDWR = 0x2 686 O_SHLOCK = 0x10 687 O_SYMLINK = 0x200000 688 O_SYNC = 0x80 689 O_TRUNC = 0x400 690 O_WRONLY = 0x1 691 PARENB = 0x1000 692 PARMRK = 0x8 693 PARODD = 0x2000 694 PENDIN = 0x20000000 695 PRIO_PGRP = 0x1 696 PRIO_PROCESS = 0x0 697 PRIO_USER = 0x2 698 PROT_EXEC = 0x4 699 PROT_NONE = 0x0 700 PROT_READ = 0x1 701 PROT_WRITE = 0x2 702 PT_ATTACH = 0xa 703 PT_ATTACHEXC = 0xe 704 PT_CONTINUE = 0x7 705 PT_DENY_ATTACH = 0x1f 706 PT_DETACH = 0xb 707 PT_FIRSTMACH = 0x20 708 PT_FORCEQUOTA = 0x1e 709 PT_KILL = 0x8 710 PT_READ_D = 0x2 711 PT_READ_I = 0x1 712 PT_READ_U = 0x3 713 PT_SIGEXC = 0xc 714 PT_STEP = 0x9 715 PT_THUPDATE = 0xd 716 PT_TRACE_ME = 0x0 717 PT_WRITE_D = 0x5 718 PT_WRITE_I = 0x4 719 PT_WRITE_U = 0x6 720 RLIMIT_AS = 0x5 721 RLIMIT_CORE = 0x4 722 RLIMIT_CPU = 0x0 723 RLIMIT_DATA = 0x2 724 RLIMIT_FSIZE = 0x1 725 RLIMIT_NOFILE = 0x8 726 RLIMIT_STACK = 0x3 727 RLIM_INFINITY = 0x7fffffffffffffff 728 RTAX_AUTHOR = 0x6 729 RTAX_BRD = 0x7 730 RTAX_DST = 0x0 731 RTAX_GATEWAY = 0x1 732 RTAX_GENMASK = 0x3 733 RTAX_IFA = 0x5 734 RTAX_IFP = 0x4 735 RTAX_MAX = 0x8 736 RTAX_NETMASK = 0x2 737 RTA_AUTHOR = 0x40 738 RTA_BRD = 0x80 739 RTA_DST = 0x1 740 RTA_GATEWAY = 0x2 741 RTA_GENMASK = 0x8 742 RTA_IFA = 0x20 743 RTA_IFP = 0x10 744 RTA_NETMASK = 0x4 745 RTF_BLACKHOLE = 0x1000 746 RTF_BROADCAST = 0x400000 747 RTF_CLONING = 0x100 748 RTF_CONDEMNED = 0x2000000 749 RTF_DELCLONE = 0x80 750 RTF_DONE = 0x40 751 RTF_DYNAMIC = 0x10 752 RTF_GATEWAY = 0x2 753 RTF_HOST = 0x4 754 RTF_IFREF = 0x4000000 755 RTF_IFSCOPE = 0x1000000 756 RTF_LLINFO = 0x400 757 RTF_LOCAL = 0x200000 758 RTF_MODIFIED = 0x20 759 RTF_MULTICAST = 0x800000 760 RTF_PINNED = 0x100000 761 RTF_PRCLONING = 0x10000 762 RTF_PROTO1 = 0x8000 763 RTF_PROTO2 = 0x4000 764 RTF_PROTO3 = 0x40000 765 RTF_REJECT = 0x8 766 RTF_STATIC = 0x800 767 RTF_UP = 0x1 768 RTF_WASCLONED = 0x20000 769 RTF_XRESOLVE = 0x200 770 RTM_ADD = 0x1 771 RTM_CHANGE = 0x3 772 RTM_DELADDR = 0xd 773 RTM_DELETE = 0x2 774 RTM_DELMADDR = 0x10 775 RTM_GET = 0x4 776 RTM_GET2 = 0x14 777 RTM_IFINFO = 0xe 778 RTM_IFINFO2 = 0x12 779 RTM_LOCK = 0x8 780 RTM_LOSING = 0x5 781 RTM_MISS = 0x7 782 RTM_NEWADDR = 0xc 783 RTM_NEWMADDR = 0xf 784 RTM_NEWMADDR2 = 0x13 785 RTM_OLDADD = 0x9 786 RTM_OLDDEL = 0xa 787 RTM_REDIRECT = 0x6 788 RTM_RESOLVE = 0xb 789 RTM_RTTUNIT = 0xf4240 790 RTM_VERSION = 0x5 791 RTV_EXPIRE = 0x4 792 RTV_HOPCOUNT = 0x2 793 RTV_MTU = 0x1 794 RTV_RPIPE = 0x8 795 RTV_RTT = 0x40 796 RTV_RTTVAR = 0x80 797 RTV_SPIPE = 0x10 798 RTV_SSTHRESH = 0x20 799 RUSAGE_CHILDREN = -0x1 800 RUSAGE_SELF = 0x0 801 SCM_CREDS = 0x3 802 SCM_RIGHTS = 0x1 803 SCM_TIMESTAMP = 0x2 804 SHUT_RD = 0x0 805 SHUT_RDWR = 0x2 806 SHUT_WR = 0x1 807 SIOCADDMULTI = 0x80206931 808 SIOCAIFADDR = 0x8040691a 809 SIOCALIFADDR = 0x8118691d 810 SIOCARPIPLL = 0xc0206928 811 SIOCATMARK = 0x40047307 812 SIOCAUTOADDR = 0xc0206926 813 SIOCAUTONETMASK = 0x80206927 814 SIOCDELMULTI = 0x80206932 815 SIOCDIFADDR = 0x80206919 816 SIOCDIFPHYADDR = 0x80206941 817 SIOCDLIFADDR = 0x8118691f 818 SIOCGETSGCNT = 0xc014721c 819 SIOCGETVIFCNT = 0xc014721b 820 SIOCGETVLAN = 0xc020697f 821 SIOCGHIWAT = 0x40047301 822 SIOCGIFADDR = 0xc0206921 823 SIOCGIFALTMTU = 0xc0206948 824 SIOCGIFASYNCMAP = 0xc020697c 825 SIOCGIFBOND = 0xc0206947 826 SIOCGIFBRDADDR = 0xc0206923 827 SIOCGIFCONF = 0xc0086924 828 SIOCGIFDEVMTU = 0xc0206944 829 SIOCGIFDSTADDR = 0xc0206922 830 SIOCGIFFLAGS = 0xc0206911 831 SIOCGIFGENERIC = 0xc020693a 832 SIOCGIFKPI = 0xc0206987 833 SIOCGIFMAC = 0xc0206982 834 SIOCGIFMEDIA = 0xc0286938 835 SIOCGIFMETRIC = 0xc0206917 836 SIOCGIFMTU = 0xc0206933 837 SIOCGIFNETMASK = 0xc0206925 838 SIOCGIFPDSTADDR = 0xc0206940 839 SIOCGIFPHYS = 0xc0206935 840 SIOCGIFPSRCADDR = 0xc020693f 841 SIOCGIFSTATUS = 0xc331693d 842 SIOCGIFVLAN = 0xc020697f 843 SIOCGLIFADDR = 0xc118691e 844 SIOCGLIFPHYADDR = 0xc1186943 845 SIOCGLOWAT = 0x40047303 846 SIOCGPGRP = 0x40047309 847 SIOCIFCREATE = 0xc0206978 848 SIOCIFDESTROY = 0x80206979 849 SIOCRSLVMULTI = 0xc008693b 850 SIOCSETVLAN = 0x8020697e 851 SIOCSHIWAT = 0x80047300 852 SIOCSIFADDR = 0x8020690c 853 SIOCSIFALTMTU = 0x80206945 854 SIOCSIFASYNCMAP = 0x8020697d 855 SIOCSIFBOND = 0x80206946 856 SIOCSIFBRDADDR = 0x80206913 857 SIOCSIFDSTADDR = 0x8020690e 858 SIOCSIFFLAGS = 0x80206910 859 SIOCSIFGENERIC = 0x80206939 860 SIOCSIFKPI = 0x80206986 861 SIOCSIFLLADDR = 0x8020693c 862 SIOCSIFMAC = 0x80206983 863 SIOCSIFMEDIA = 0xc0206937 864 SIOCSIFMETRIC = 0x80206918 865 SIOCSIFMTU = 0x80206934 866 SIOCSIFNETMASK = 0x80206916 867 SIOCSIFPHYADDR = 0x8040693e 868 SIOCSIFPHYS = 0x80206936 869 SIOCSIFVLAN = 0x8020697e 870 SIOCSLIFPHYADDR = 0x81186942 871 SIOCSLOWAT = 0x80047302 872 SIOCSPGRP = 0x80047308 873 SOCK_DGRAM = 0x2 874 SOCK_MAXADDRLEN = 0xff 875 SOCK_RAW = 0x3 876 SOCK_RDM = 0x4 877 SOCK_SEQPACKET = 0x5 878 SOCK_STREAM = 0x1 879 SOL_SOCKET = 0xffff 880 SOMAXCONN = 0x80 881 SO_ACCEPTCONN = 0x2 882 SO_BROADCAST = 0x20 883 SO_DEBUG = 0x1 884 SO_DONTROUTE = 0x10 885 SO_DONTTRUNC = 0x2000 886 SO_ERROR = 0x1007 887 SO_KEEPALIVE = 0x8 888 SO_LABEL = 0x1010 889 SO_LINGER = 0x80 890 SO_LINGER_SEC = 0x1080 891 SO_NKE = 0x1021 892 SO_NOADDRERR = 0x1023 893 SO_NOSIGPIPE = 0x1022 894 SO_NOTIFYCONFLICT = 0x1026 895 SO_NREAD = 0x1020 896 SO_NWRITE = 0x1024 897 SO_OOBINLINE = 0x100 898 SO_PEERLABEL = 0x1011 899 SO_RCVBUF = 0x1002 900 SO_RCVLOWAT = 0x1004 901 SO_RCVTIMEO = 0x1006 902 SO_RESTRICTIONS = 0x1081 903 SO_RESTRICT_DENYIN = 0x1 904 SO_RESTRICT_DENYOUT = 0x2 905 SO_RESTRICT_DENYSET = 0x80000000 906 SO_REUSEADDR = 0x4 907 SO_REUSEPORT = 0x200 908 SO_REUSESHAREUID = 0x1025 909 SO_SNDBUF = 0x1001 910 SO_SNDLOWAT = 0x1003 911 SO_SNDTIMEO = 0x1005 912 SO_TIMESTAMP = 0x400 913 SO_TYPE = 0x1008 914 SO_UPCALLCLOSEWAIT = 0x1027 915 SO_USELOOPBACK = 0x40 916 SO_WANTMORE = 0x4000 917 SO_WANTOOBFLAG = 0x8000 918 S_IEXEC = 0x40 919 S_IFBLK = 0x6000 920 S_IFCHR = 0x2000 921 S_IFDIR = 0x4000 922 S_IFIFO = 0x1000 923 S_IFLNK = 0xa000 924 S_IFMT = 0xf000 925 S_IFREG = 0x8000 926 S_IFSOCK = 0xc000 927 S_IFWHT = 0xe000 928 S_IFXATTR = 0x10000 929 S_IREAD = 0x100 930 S_IRGRP = 0x20 931 S_IROTH = 0x4 932 S_IRUSR = 0x100 933 S_IRWXG = 0x38 934 S_IRWXO = 0x7 935 S_IRWXU = 0x1c0 936 S_ISGID = 0x400 937 S_ISTXT = 0x200 938 S_ISUID = 0x800 939 S_ISVTX = 0x200 940 S_IWGRP = 0x10 941 S_IWOTH = 0x2 942 S_IWRITE = 0x80 943 S_IWUSR = 0x80 944 S_IXGRP = 0x8 945 S_IXOTH = 0x1 946 S_IXUSR = 0x40 947 TCIFLUSH = 0x1 948 TCIOFLUSH = 0x3 949 TCOFLUSH = 0x2 950 TCP_KEEPALIVE = 0x10 951 TCP_MAXBURST = 0x4 952 TCP_MAXHLEN = 0x3c 953 TCP_MAXOLEN = 0x28 954 TCP_MAXSEG = 0x2 955 TCP_MAXWIN = 0xffff 956 TCP_MAX_SACK = 0x3 957 TCP_MAX_WINSHIFT = 0xe 958 TCP_MINMSS = 0xd8 959 TCP_MINMSSOVERLOAD = 0x3e8 960 TCP_MSS = 0x200 961 TCP_NODELAY = 0x1 962 TCP_NOOPT = 0x8 963 TCP_NOPUSH = 0x4 964 TCSAFLUSH = 0x2 965 TIOCCBRK = 0x2000747a 966 TIOCCDTR = 0x20007478 967 TIOCCONS = 0x80047462 968 TIOCDCDTIMESTAMP = 0x40087458 969 TIOCDRAIN = 0x2000745e 970 TIOCDSIMICROCODE = 0x20007455 971 TIOCEXCL = 0x2000740d 972 TIOCEXT = 0x80047460 973 TIOCFLUSH = 0x80047410 974 TIOCGDRAINWAIT = 0x40047456 975 TIOCGETA = 0x402c7413 976 TIOCGETD = 0x4004741a 977 TIOCGPGRP = 0x40047477 978 TIOCGWINSZ = 0x40087468 979 TIOCIXOFF = 0x20007480 980 TIOCIXON = 0x20007481 981 TIOCMBIC = 0x8004746b 982 TIOCMBIS = 0x8004746c 983 TIOCMGDTRWAIT = 0x4004745a 984 TIOCMGET = 0x4004746a 985 TIOCMODG = 0x40047403 986 TIOCMODS = 0x80047404 987 TIOCMSDTRWAIT = 0x8004745b 988 TIOCMSET = 0x8004746d 989 TIOCM_CAR = 0x40 990 TIOCM_CD = 0x40 991 TIOCM_CTS = 0x20 992 TIOCM_DSR = 0x100 993 TIOCM_DTR = 0x2 994 TIOCM_LE = 0x1 995 TIOCM_RI = 0x80 996 TIOCM_RNG = 0x80 997 TIOCM_RTS = 0x4 998 TIOCM_SR = 0x10 999 TIOCM_ST = 0x8 1000 TIOCNOTTY = 0x20007471 1001 TIOCNXCL = 0x2000740e 1002 TIOCOUTQ = 0x40047473 1003 TIOCPKT = 0x80047470 1004 TIOCPKT_DATA = 0x0 1005 TIOCPKT_DOSTOP = 0x20 1006 TIOCPKT_FLUSHREAD = 0x1 1007 TIOCPKT_FLUSHWRITE = 0x2 1008 TIOCPKT_IOCTL = 0x40 1009 TIOCPKT_NOSTOP = 0x10 1010 TIOCPKT_START = 0x8 1011 TIOCPKT_STOP = 0x4 1012 TIOCPTYGNAME = 0x40807453 1013 TIOCPTYGRANT = 0x20007454 1014 TIOCPTYUNLK = 0x20007452 1015 TIOCREMOTE = 0x80047469 1016 TIOCSBRK = 0x2000747b 1017 TIOCSCONS = 0x20007463 1018 TIOCSCTTY = 0x20007461 1019 TIOCSDRAINWAIT = 0x80047457 1020 TIOCSDTR = 0x20007479 1021 TIOCSETA = 0x802c7414 1022 TIOCSETAF = 0x802c7416 1023 TIOCSETAW = 0x802c7415 1024 TIOCSETD = 0x8004741b 1025 TIOCSIG = 0x2000745f 1026 TIOCSPGRP = 0x80047476 1027 TIOCSTART = 0x2000746e 1028 TIOCSTAT = 0x20007465 1029 TIOCSTI = 0x80017472 1030 TIOCSTOP = 0x2000746f 1031 TIOCSWINSZ = 0x80087467 1032 TIOCTIMESTAMP = 0x40087459 1033 TIOCUCNTL = 0x80047466 1034 TOSTOP = 0x400000 1035 VDISCARD = 0xf 1036 VDSUSP = 0xb 1037 VEOF = 0x0 1038 VEOL = 0x1 1039 VEOL2 = 0x2 1040 VERASE = 0x3 1041 VINTR = 0x8 1042 VKILL = 0x5 1043 VLNEXT = 0xe 1044 VMIN = 0x10 1045 VQUIT = 0x9 1046 VREPRINT = 0x6 1047 VSTART = 0xc 1048 VSTATUS = 0x12 1049 VSTOP = 0xd 1050 VSUSP = 0xa 1051 VT0 = 0x0 1052 VT1 = 0x10000 1053 VTDLY = 0x10000 1054 VTIME = 0x11 1055 VWERASE = 0x4 1056 WCONTINUED = 0x10 1057 WCOREFLAG = 0x80 1058 WEXITED = 0x4 1059 WNOHANG = 0x1 1060 WNOWAIT = 0x20 1061 WORDSIZE = 0x20 1062 WSTOPPED = 0x8 1063 WUNTRACED = 0x2 1064 ) 1065 1066 // Errors 1067 const ( 1068 E2BIG = Errno(0x7) 1069 EACCES = Errno(0xd) 1070 EADDRINUSE = Errno(0x30) 1071 EADDRNOTAVAIL = Errno(0x31) 1072 EAFNOSUPPORT = Errno(0x2f) 1073 EAGAIN = Errno(0x23) 1074 EALREADY = Errno(0x25) 1075 EAUTH = Errno(0x50) 1076 EBADARCH = Errno(0x56) 1077 EBADEXEC = Errno(0x55) 1078 EBADF = Errno(0x9) 1079 EBADMACHO = Errno(0x58) 1080 EBADMSG = Errno(0x5e) 1081 EBADRPC = Errno(0x48) 1082 EBUSY = Errno(0x10) 1083 ECANCELED = Errno(0x59) 1084 ECHILD = Errno(0xa) 1085 ECONNABORTED = Errno(0x35) 1086 ECONNREFUSED = Errno(0x3d) 1087 ECONNRESET = Errno(0x36) 1088 EDEADLK = Errno(0xb) 1089 EDESTADDRREQ = Errno(0x27) 1090 EDEVERR = Errno(0x53) 1091 EDOM = Errno(0x21) 1092 EDQUOT = Errno(0x45) 1093 EEXIST = Errno(0x11) 1094 EFAULT = Errno(0xe) 1095 EFBIG = Errno(0x1b) 1096 EFTYPE = Errno(0x4f) 1097 EHOSTDOWN = Errno(0x40) 1098 EHOSTUNREACH = Errno(0x41) 1099 EIDRM = Errno(0x5a) 1100 EILSEQ = Errno(0x5c) 1101 EINPROGRESS = Errno(0x24) 1102 EINTR = Errno(0x4) 1103 EINVAL = Errno(0x16) 1104 EIO = Errno(0x5) 1105 EISCONN = Errno(0x38) 1106 EISDIR = Errno(0x15) 1107 ELAST = Errno(0x67) 1108 ELOOP = Errno(0x3e) 1109 EMFILE = Errno(0x18) 1110 EMLINK = Errno(0x1f) 1111 EMSGSIZE = Errno(0x28) 1112 EMULTIHOP = Errno(0x5f) 1113 ENAMETOOLONG = Errno(0x3f) 1114 ENEEDAUTH = Errno(0x51) 1115 ENETDOWN = Errno(0x32) 1116 ENETRESET = Errno(0x34) 1117 ENETUNREACH = Errno(0x33) 1118 ENFILE = Errno(0x17) 1119 ENOATTR = Errno(0x5d) 1120 ENOBUFS = Errno(0x37) 1121 ENODATA = Errno(0x60) 1122 ENODEV = Errno(0x13) 1123 ENOENT = Errno(0x2) 1124 ENOEXEC = Errno(0x8) 1125 ENOLCK = Errno(0x4d) 1126 ENOLINK = Errno(0x61) 1127 ENOMEM = Errno(0xc) 1128 ENOMSG = Errno(0x5b) 1129 ENOPOLICY = Errno(0x67) 1130 ENOPROTOOPT = Errno(0x2a) 1131 ENOSPC = Errno(0x1c) 1132 ENOSR = Errno(0x62) 1133 ENOSTR = Errno(0x63) 1134 ENOSYS = Errno(0x4e) 1135 ENOTBLK = Errno(0xf) 1136 ENOTCONN = Errno(0x39) 1137 ENOTDIR = Errno(0x14) 1138 ENOTEMPTY = Errno(0x42) 1139 ENOTSOCK = Errno(0x26) 1140 ENOTSUP = Errno(0x2d) 1141 ENOTTY = Errno(0x19) 1142 ENXIO = Errno(0x6) 1143 EOPNOTSUPP = Errno(0x66) 1144 EOVERFLOW = Errno(0x54) 1145 EPERM = Errno(0x1) 1146 EPFNOSUPPORT = Errno(0x2e) 1147 EPIPE = Errno(0x20) 1148 EPROCLIM = Errno(0x43) 1149 EPROCUNAVAIL = Errno(0x4c) 1150 EPROGMISMATCH = Errno(0x4b) 1151 EPROGUNAVAIL = Errno(0x4a) 1152 EPROTO = Errno(0x64) 1153 EPROTONOSUPPORT = Errno(0x2b) 1154 EPROTOTYPE = Errno(0x29) 1155 EPWROFF = Errno(0x52) 1156 ERANGE = Errno(0x22) 1157 EREMOTE = Errno(0x47) 1158 EROFS = Errno(0x1e) 1159 ERPCMISMATCH = Errno(0x49) 1160 ESHLIBVERS = Errno(0x57) 1161 ESHUTDOWN = Errno(0x3a) 1162 ESOCKTNOSUPPORT = Errno(0x2c) 1163 ESPIPE = Errno(0x1d) 1164 ESRCH = Errno(0x3) 1165 ESTALE = Errno(0x46) 1166 ETIME = Errno(0x65) 1167 ETIMEDOUT = Errno(0x3c) 1168 ETOOMANYREFS = Errno(0x3b) 1169 ETXTBSY = Errno(0x1a) 1170 EUSERS = Errno(0x44) 1171 EWOULDBLOCK = Errno(0x23) 1172 EXDEV = Errno(0x12) 1173 ) 1174 1175 // Signals 1176 const ( 1177 SIGABRT = Signal(0x6) 1178 SIGALRM = Signal(0xe) 1179 SIGBUS = Signal(0xa) 1180 SIGCHLD = Signal(0x14) 1181 SIGCONT = Signal(0x13) 1182 SIGEMT = Signal(0x7) 1183 SIGFPE = Signal(0x8) 1184 SIGHUP = Signal(0x1) 1185 SIGILL = Signal(0x4) 1186 SIGINFO = Signal(0x1d) 1187 SIGINT = Signal(0x2) 1188 SIGIO = Signal(0x17) 1189 SIGIOT = Signal(0x6) 1190 SIGKILL = Signal(0x9) 1191 SIGPIPE = Signal(0xd) 1192 SIGPROF = Signal(0x1b) 1193 SIGQUIT = Signal(0x3) 1194 SIGSEGV = Signal(0xb) 1195 SIGSTOP = Signal(0x11) 1196 SIGSYS = Signal(0xc) 1197 SIGTERM = Signal(0xf) 1198 SIGTRAP = Signal(0x5) 1199 SIGTSTP = Signal(0x12) 1200 SIGTTIN = Signal(0x15) 1201 SIGTTOU = Signal(0x16) 1202 SIGURG = Signal(0x10) 1203 SIGUSR1 = Signal(0x1e) 1204 SIGUSR2 = Signal(0x1f) 1205 SIGVTALRM = Signal(0x1a) 1206 SIGWINCH = Signal(0x1c) 1207 SIGXCPU = Signal(0x18) 1208 SIGXFSZ = Signal(0x19) 1209 ) 1210 1211 // Error table 1212 var errors = [...]string{ 1213 1: "operation not permitted", 1214 2: "no such file or directory", 1215 3: "no such process", 1216 4: "interrupted system call", 1217 5: "input/output error", 1218 6: "device not configured", 1219 7: "argument list too long", 1220 8: "exec format error", 1221 9: "bad file descriptor", 1222 10: "no child processes", 1223 11: "resource deadlock avoided", 1224 12: "cannot allocate memory", 1225 13: "permission denied", 1226 14: "bad address", 1227 15: "block device required", 1228 16: "resource busy", 1229 17: "file exists", 1230 18: "cross-device link", 1231 19: "operation not supported by device", 1232 20: "not a directory", 1233 21: "is a directory", 1234 22: "invalid argument", 1235 23: "too many open files in system", 1236 24: "too many open files", 1237 25: "inappropriate ioctl for device", 1238 26: "text file busy", 1239 27: "file too large", 1240 28: "no space left on device", 1241 29: "illegal seek", 1242 30: "read-only file system", 1243 31: "too many links", 1244 32: "broken pipe", 1245 33: "numerical argument out of domain", 1246 34: "result too large", 1247 35: "resource temporarily unavailable", 1248 36: "operation now in progress", 1249 37: "operation already in progress", 1250 38: "socket operation on non-socket", 1251 39: "destination address required", 1252 40: "message too long", 1253 41: "protocol wrong type for socket", 1254 42: "protocol not available", 1255 43: "protocol not supported", 1256 44: "socket type not supported", 1257 45: "operation not supported", 1258 46: "protocol family not supported", 1259 47: "address family not supported by protocol family", 1260 48: "address already in use", 1261 49: "can't assign requested address", 1262 50: "network is down", 1263 51: "network is unreachable", 1264 52: "network dropped connection on reset", 1265 53: "software caused connection abort", 1266 54: "connection reset by peer", 1267 55: "no buffer space available", 1268 56: "socket is already connected", 1269 57: "socket is not connected", 1270 58: "can't send after socket shutdown", 1271 59: "too many references: can't splice", 1272 60: "operation timed out", 1273 61: "connection refused", 1274 62: "too many levels of symbolic links", 1275 63: "file name too long", 1276 64: "host is down", 1277 65: "no route to host", 1278 66: "directory not empty", 1279 67: "too many processes", 1280 68: "too many users", 1281 69: "disc quota exceeded", 1282 70: "stale NFS file handle", 1283 71: "too many levels of remote in path", 1284 72: "RPC struct is bad", 1285 73: "RPC version wrong", 1286 74: "RPC prog. not avail", 1287 75: "program version wrong", 1288 76: "bad procedure for program", 1289 77: "no locks available", 1290 78: "function not implemented", 1291 79: "inappropriate file type or format", 1292 80: "authentication error", 1293 81: "need authenticator", 1294 82: "device power is off", 1295 83: "device error", 1296 84: "value too large to be stored in data type", 1297 85: "bad executable (or shared library)", 1298 86: "bad CPU type in executable", 1299 87: "shared library version mismatch", 1300 88: "malformed Mach-o file", 1301 89: "operation canceled", 1302 90: "identifier removed", 1303 91: "no message of desired type", 1304 92: "illegal byte sequence", 1305 93: "attribute not found", 1306 94: "bad message", 1307 95: "EMULTIHOP (Reserved)", 1308 96: "no message available on STREAM", 1309 97: "ENOLINK (Reserved)", 1310 98: "no STREAM resources", 1311 99: "not a STREAM", 1312 100: "protocol error", 1313 101: "STREAM ioctl timeout", 1314 102: "operation not supported on socket", 1315 103: "policy not found", 1316 } 1317 1318 // Signal table 1319 var signals = [...]string{ 1320 1: "hangup", 1321 2: "interrupt", 1322 3: "quit", 1323 4: "illegal instruction", 1324 5: "trace/BPT trap", 1325 6: "abort trap", 1326 7: "EMT trap", 1327 8: "floating point exception", 1328 9: "killed", 1329 10: "bus error", 1330 11: "segmentation fault", 1331 12: "bad system call", 1332 13: "broken pipe", 1333 14: "alarm clock", 1334 15: "terminated", 1335 16: "urgent I/O condition", 1336 17: "suspended (signal)", 1337 18: "suspended", 1338 19: "continued", 1339 20: "child exited", 1340 21: "stopped (tty input)", 1341 22: "stopped (tty output)", 1342 23: "I/O possible", 1343 24: "cputime limit exceeded", 1344 25: "filesize limit exceeded", 1345 26: "virtual timer expired", 1346 27: "profiling timer expired", 1347 28: "window size changes", 1348 29: "information request", 1349 30: "user defined signal 1", 1350 31: "user defined signal 2", 1351 }