Rob Pike | cd32498 | 2009-08-13 13:22:37 -0700 | [diff] [blame] | 1 | // mkerrors.sh |
Russ Cox | 7f9d2c8 | 2009-06-02 23:22:25 -0700 | [diff] [blame] | 2 | // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT |
| 3 | |
Russ Cox | fd1add2 | 2009-11-01 11:13:27 -0800 | [diff] [blame] | 4 | // godefs -gsyscall _const.c |
Russ Cox | 7f9d2c8 | 2009-06-02 23:22:25 -0700 | [diff] [blame] | 5 | |
| 6 | // MACHINE GENERATED - DO NOT EDIT. |
| 7 | |
| 8 | package syscall |
| 9 | |
| 10 | // Constants |
| 11 | const ( |
Russ Cox | fd1add2 | 2009-11-01 11:13:27 -0800 | [diff] [blame] | 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 = 0; |
| 47 | E2BIG = 0x7; |
| 48 | EACCES = 0xd; |
| 49 | EADDRINUSE = 0x30; |
| 50 | EADDRNOTAVAIL = 0x31; |
| 51 | EAFNOSUPPORT = 0x2f; |
| 52 | EAGAIN = 0x23; |
| 53 | EALREADY = 0x25; |
| 54 | EAUTH = 0x50; |
| 55 | EBADARCH = 0x56; |
| 56 | EBADEXEC = 0x55; |
| 57 | EBADF = 0x9; |
| 58 | EBADMACHO = 0x58; |
| 59 | EBADMSG = 0x5e; |
| 60 | EBADRPC = 0x48; |
| 61 | EBUSY = 0x10; |
| 62 | ECANCELED = 0x59; |
| 63 | ECHILD = 0xa; |
| 64 | ECONNABORTED = 0x35; |
| 65 | ECONNREFUSED = 0x3d; |
| 66 | ECONNRESET = 0x36; |
| 67 | EDEADLK = 0xb; |
| 68 | EDESTADDRREQ = 0x27; |
| 69 | EDEVERR = 0x53; |
| 70 | EDOM = 0x21; |
| 71 | EDQUOT = 0x45; |
| 72 | EEXIST = 0x11; |
| 73 | EFAULT = 0xe; |
| 74 | EFBIG = 0x1b; |
| 75 | EFTYPE = 0x4f; |
| 76 | EHOSTDOWN = 0x40; |
| 77 | EHOSTUNREACH = 0x41; |
| 78 | EIDRM = 0x5a; |
| 79 | EILSEQ = 0x5c; |
| 80 | EINPROGRESS = 0x24; |
| 81 | EINTR = 0x4; |
| 82 | EINVAL = 0x16; |
| 83 | EIO = 0x5; |
| 84 | EISCONN = 0x38; |
| 85 | EISDIR = 0x15; |
| 86 | ELAST = 0x67; |
| 87 | ELOOP = 0x3e; |
| 88 | EMFILE = 0x18; |
| 89 | EMLINK = 0x1f; |
| 90 | EMSGSIZE = 0x28; |
| 91 | EMULTIHOP = 0x5f; |
| 92 | ENAMETOOLONG = 0x3f; |
| 93 | ENEEDAUTH = 0x51; |
| 94 | ENETDOWN = 0x32; |
| 95 | ENETRESET = 0x34; |
| 96 | ENETUNREACH = 0x33; |
| 97 | ENFILE = 0x17; |
| 98 | ENOATTR = 0x5d; |
| 99 | ENOBUFS = 0x37; |
| 100 | ENODATA = 0x60; |
| 101 | ENODEV = 0x13; |
| 102 | ENOENT = 0x2; |
| 103 | ENOEXEC = 0x8; |
| 104 | ENOLCK = 0x4d; |
| 105 | ENOLINK = 0x61; |
| 106 | ENOMEM = 0xc; |
| 107 | ENOMSG = 0x5b; |
| 108 | ENOPOLICY = 0x67; |
| 109 | ENOPROTOOPT = 0x2a; |
| 110 | ENOSPC = 0x1c; |
| 111 | ENOSR = 0x62; |
| 112 | ENOSTR = 0x63; |
| 113 | ENOSYS = 0x4e; |
| 114 | ENOTBLK = 0xf; |
| 115 | ENOTCONN = 0x39; |
| 116 | ENOTDIR = 0x14; |
| 117 | ENOTEMPTY = 0x42; |
| 118 | ENOTSOCK = 0x26; |
| 119 | ENOTSUP = 0x2d; |
| 120 | ENOTTY = 0x19; |
| 121 | ENXIO = 0x6; |
| 122 | EOPNOTSUPP = 0x66; |
| 123 | EOVERFLOW = 0x54; |
| 124 | EPERM = 0x1; |
| 125 | EPFNOSUPPORT = 0x2e; |
| 126 | EPIPE = 0x20; |
| 127 | EPROCLIM = 0x43; |
| 128 | EPROCUNAVAIL = 0x4c; |
| 129 | EPROGMISMATCH = 0x4b; |
| 130 | EPROGUNAVAIL = 0x4a; |
| 131 | EPROTO = 0x64; |
| 132 | EPROTONOSUPPORT = 0x2b; |
| 133 | EPROTOTYPE = 0x29; |
| 134 | EPWROFF = 0x52; |
| 135 | ERANGE = 0x22; |
| 136 | EREMOTE = 0x47; |
| 137 | EROFS = 0x1e; |
| 138 | ERPCMISMATCH = 0x49; |
| 139 | ESHLIBVERS = 0x57; |
| 140 | ESHUTDOWN = 0x3a; |
| 141 | ESOCKTNOSUPPORT = 0x2c; |
| 142 | ESPIPE = 0x1d; |
| 143 | ESRCH = 0x3; |
| 144 | ESTALE = 0x46; |
| 145 | ETIME = 0x65; |
| 146 | ETIMEDOUT = 0x3c; |
| 147 | ETOOMANYREFS = 0x3b; |
| 148 | ETXTBSY = 0x1a; |
| 149 | EUSERS = 0x44; |
| 150 | EVFILT_AIO = -0x3; |
| 151 | EVFILT_FS = -0x9; |
| 152 | EVFILT_MACHPORT = -0x8; |
| 153 | EVFILT_PROC = -0x5; |
| 154 | EVFILT_READ = -0x1; |
| 155 | EVFILT_SIGNAL = -0x6; |
| 156 | EVFILT_SYSCOUNT = 0x9; |
| 157 | EVFILT_THREADMARKER = 0x9; |
| 158 | EVFILT_TIMER = -0x7; |
| 159 | EVFILT_VNODE = -0x4; |
| 160 | EVFILT_WRITE = -0x2; |
| 161 | EV_ADD = 0x1; |
| 162 | EV_CLEAR = 0x20; |
| 163 | EV_DELETE = 0x2; |
| 164 | EV_DISABLE = 0x8; |
| 165 | EV_ENABLE = 0x4; |
| 166 | EV_EOF = 0x8000; |
| 167 | EV_ERROR = 0x4000; |
| 168 | EV_FLAG0 = 0x1000; |
| 169 | EV_FLAG1 = 0x2000; |
| 170 | EV_ONESHOT = 0x10; |
| 171 | EV_OOBAND = 0x2000; |
| 172 | EV_POLL = 0x1000; |
| 173 | EV_RECEIPT = 0x40; |
| 174 | EV_SYSFLAGS = 0xf000; |
| 175 | EWOULDBLOCK = 0x23; |
| 176 | EXDEV = 0x12; |
| 177 | FD_CLOEXEC = 0x1; |
| 178 | FD_SETSIZE = 0x400; |
| 179 | F_ADDSIGS = 0x3b; |
| 180 | F_ALLOCATEALL = 0x4; |
| 181 | F_ALLOCATECONTIG = 0x2; |
| 182 | F_CHKCLEAN = 0x29; |
| 183 | F_DUPFD = 0; |
| 184 | F_FREEZE_FS = 0x35; |
| 185 | F_FULLFSYNC = 0x33; |
| 186 | F_GETFD = 0x1; |
| 187 | F_GETFL = 0x3; |
| 188 | F_GETLK = 0x7; |
| 189 | F_GETOWN = 0x5; |
| 190 | F_GETPATH = 0x32; |
| 191 | F_GLOBAL_NOCACHE = 0x37; |
| 192 | F_LOG2PHYS = 0x31; |
| 193 | F_MARKDEPENDENCY = 0x3c; |
| 194 | F_NOCACHE = 0x30; |
| 195 | F_PATHPKG_CHECK = 0x34; |
| 196 | F_PEOFPOSMODE = 0x3; |
| 197 | F_PREALLOCATE = 0x2a; |
| 198 | F_RDADVISE = 0x2c; |
| 199 | F_RDAHEAD = 0x2d; |
| 200 | F_RDLCK = 0x1; |
| 201 | F_READBOOTSTRAP = 0x2e; |
| 202 | F_SETFD = 0x2; |
| 203 | F_SETFL = 0x4; |
| 204 | F_SETLK = 0x8; |
| 205 | F_SETLKW = 0x9; |
| 206 | F_SETOWN = 0x6; |
| 207 | F_SETSIZE = 0x2b; |
| 208 | F_THAW_FS = 0x36; |
| 209 | F_UNLCK = 0x2; |
| 210 | F_VOLPOSMODE = 0x4; |
| 211 | F_WRITEBOOTSTRAP = 0x2f; |
| 212 | F_WRLCK = 0x3; |
| 213 | IPPROTO_3PC = 0x22; |
| 214 | IPPROTO_ADFS = 0x44; |
| 215 | IPPROTO_AH = 0x33; |
| 216 | IPPROTO_AHIP = 0x3d; |
| 217 | IPPROTO_APES = 0x63; |
| 218 | IPPROTO_ARGUS = 0xd; |
| 219 | IPPROTO_AX25 = 0x5d; |
| 220 | IPPROTO_BHA = 0x31; |
| 221 | IPPROTO_BLT = 0x1e; |
| 222 | IPPROTO_BRSATMON = 0x4c; |
| 223 | IPPROTO_CFTP = 0x3e; |
| 224 | IPPROTO_CHAOS = 0x10; |
| 225 | IPPROTO_CMTP = 0x26; |
| 226 | IPPROTO_CPHB = 0x49; |
| 227 | IPPROTO_CPNX = 0x48; |
| 228 | IPPROTO_DDP = 0x25; |
| 229 | IPPROTO_DGP = 0x56; |
| 230 | IPPROTO_DIVERT = 0xfe; |
| 231 | IPPROTO_DONE = 0x101; |
| 232 | IPPROTO_DSTOPTS = 0x3c; |
| 233 | IPPROTO_EGP = 0x8; |
| 234 | IPPROTO_EMCON = 0xe; |
| 235 | IPPROTO_ENCAP = 0x62; |
| 236 | IPPROTO_EON = 0x50; |
| 237 | IPPROTO_ESP = 0x32; |
| 238 | IPPROTO_ETHERIP = 0x61; |
| 239 | IPPROTO_FRAGMENT = 0x2c; |
| 240 | IPPROTO_GGP = 0x3; |
| 241 | IPPROTO_GMTP = 0x64; |
| 242 | IPPROTO_GRE = 0x2f; |
| 243 | IPPROTO_HELLO = 0x3f; |
| 244 | IPPROTO_HMP = 0x14; |
| 245 | IPPROTO_HOPOPTS = 0; |
| 246 | IPPROTO_ICMP = 0x1; |
| 247 | IPPROTO_ICMPV6 = 0x3a; |
| 248 | IPPROTO_IDP = 0x16; |
| 249 | IPPROTO_IDPR = 0x23; |
| 250 | IPPROTO_IDRP = 0x2d; |
| 251 | IPPROTO_IGMP = 0x2; |
| 252 | IPPROTO_IGP = 0x55; |
| 253 | IPPROTO_IGRP = 0x58; |
| 254 | IPPROTO_IL = 0x28; |
| 255 | IPPROTO_INLSP = 0x34; |
| 256 | IPPROTO_INP = 0x20; |
| 257 | IPPROTO_IP = 0; |
| 258 | IPPROTO_IPCOMP = 0x6c; |
| 259 | IPPROTO_IPCV = 0x47; |
| 260 | IPPROTO_IPEIP = 0x5e; |
| 261 | IPPROTO_IPIP = 0x4; |
| 262 | IPPROTO_IPPC = 0x43; |
| 263 | IPPROTO_IPV4 = 0x4; |
| 264 | IPPROTO_IPV6 = 0x29; |
| 265 | IPPROTO_IRTP = 0x1c; |
| 266 | IPPROTO_KRYPTOLAN = 0x41; |
| 267 | IPPROTO_LARP = 0x5b; |
| 268 | IPPROTO_LEAF1 = 0x19; |
| 269 | IPPROTO_LEAF2 = 0x1a; |
| 270 | IPPROTO_MAX = 0x100; |
| 271 | IPPROTO_MAXID = 0x34; |
| 272 | IPPROTO_MEAS = 0x13; |
| 273 | IPPROTO_MHRP = 0x30; |
| 274 | IPPROTO_MICP = 0x5f; |
| 275 | IPPROTO_MTP = 0x5c; |
| 276 | IPPROTO_MUX = 0x12; |
| 277 | IPPROTO_ND = 0x4d; |
| 278 | IPPROTO_NHRP = 0x36; |
| 279 | IPPROTO_NONE = 0x3b; |
| 280 | IPPROTO_NSP = 0x1f; |
| 281 | IPPROTO_NVPII = 0xb; |
| 282 | IPPROTO_OSPFIGP = 0x59; |
| 283 | IPPROTO_PGM = 0x71; |
| 284 | IPPROTO_PIGP = 0x9; |
| 285 | IPPROTO_PIM = 0x67; |
| 286 | IPPROTO_PRM = 0x15; |
| 287 | IPPROTO_PUP = 0xc; |
| 288 | IPPROTO_PVP = 0x4b; |
| 289 | IPPROTO_RAW = 0xff; |
| 290 | IPPROTO_RCCMON = 0xa; |
| 291 | IPPROTO_RDP = 0x1b; |
| 292 | IPPROTO_ROUTING = 0x2b; |
| 293 | IPPROTO_RSVP = 0x2e; |
| 294 | IPPROTO_RVD = 0x42; |
| 295 | IPPROTO_SATEXPAK = 0x40; |
| 296 | IPPROTO_SATMON = 0x45; |
| 297 | IPPROTO_SCCSP = 0x60; |
| 298 | IPPROTO_SDRP = 0x2a; |
| 299 | IPPROTO_SEP = 0x21; |
| 300 | IPPROTO_SRPC = 0x5a; |
| 301 | IPPROTO_ST = 0x7; |
| 302 | IPPROTO_SVMTP = 0x52; |
| 303 | IPPROTO_SWIPE = 0x35; |
| 304 | IPPROTO_TCF = 0x57; |
| 305 | IPPROTO_TCP = 0x6; |
| 306 | IPPROTO_TP = 0x1d; |
| 307 | IPPROTO_TPXX = 0x27; |
| 308 | IPPROTO_TRUNK1 = 0x17; |
| 309 | IPPROTO_TRUNK2 = 0x18; |
| 310 | IPPROTO_TTP = 0x54; |
| 311 | IPPROTO_UDP = 0x11; |
| 312 | IPPROTO_VINES = 0x53; |
| 313 | IPPROTO_VISA = 0x46; |
| 314 | IPPROTO_VMTP = 0x51; |
| 315 | IPPROTO_WBEXPAK = 0x4f; |
| 316 | IPPROTO_WBMON = 0x4e; |
| 317 | IPPROTO_WSN = 0x4a; |
| 318 | IPPROTO_XNET = 0xf; |
| 319 | IPPROTO_XTP = 0x24; |
| 320 | IP_ADD_MEMBERSHIP = 0xc; |
| 321 | IP_DEFAULT_MULTICAST_LOOP = 0x1; |
| 322 | IP_DEFAULT_MULTICAST_TTL = 0x1; |
| 323 | IP_DROP_MEMBERSHIP = 0xd; |
| 324 | IP_DUMMYNET_CONFIGURE = 0x3c; |
| 325 | IP_DUMMYNET_DEL = 0x3d; |
| 326 | IP_DUMMYNET_FLUSH = 0x3e; |
| 327 | IP_DUMMYNET_GET = 0x40; |
| 328 | IP_FAITH = 0x16; |
| 329 | IP_FW_ADD = 0x28; |
| 330 | IP_FW_DEL = 0x29; |
| 331 | IP_FW_FLUSH = 0x2a; |
| 332 | IP_FW_GET = 0x2c; |
| 333 | IP_FW_RESETLOG = 0x2d; |
| 334 | IP_FW_ZERO = 0x2b; |
| 335 | IP_HDRINCL = 0x2; |
| 336 | IP_IPSEC_POLICY = 0x15; |
| 337 | IP_MAX_MEMBERSHIPS = 0x14; |
| 338 | IP_MULTICAST_IF = 0x9; |
| 339 | IP_MULTICAST_LOOP = 0xb; |
| 340 | IP_MULTICAST_TTL = 0xa; |
| 341 | IP_MULTICAST_VIF = 0xe; |
| 342 | IP_NAT__XXX = 0x37; |
| 343 | IP_OLD_FW_ADD = 0x32; |
| 344 | IP_OLD_FW_DEL = 0x33; |
| 345 | IP_OLD_FW_FLUSH = 0x34; |
| 346 | IP_OLD_FW_GET = 0x36; |
| 347 | IP_OLD_FW_RESETLOG = 0x38; |
| 348 | IP_OLD_FW_ZERO = 0x35; |
| 349 | IP_OPTIONS = 0x1; |
| 350 | IP_PORTRANGE = 0x13; |
| 351 | IP_PORTRANGE_DEFAULT = 0; |
| 352 | IP_PORTRANGE_HIGH = 0x1; |
| 353 | IP_PORTRANGE_LOW = 0x2; |
| 354 | IP_RECVDSTADDR = 0x7; |
| 355 | IP_RECVIF = 0x14; |
| 356 | IP_RECVOPTS = 0x5; |
| 357 | IP_RECVRETOPTS = 0x6; |
| 358 | IP_RECVTTL = 0x18; |
| 359 | IP_RETOPTS = 0x8; |
| 360 | IP_RSVP_OFF = 0x10; |
| 361 | IP_RSVP_ON = 0xf; |
| 362 | IP_RSVP_VIF_OFF = 0x12; |
| 363 | IP_RSVP_VIF_ON = 0x11; |
| 364 | IP_STRIPHDR = 0x17; |
| 365 | IP_TOS = 0x3; |
| 366 | IP_TRAFFIC_MGT_BACKGROUND = 0x41; |
| 367 | IP_TTL = 0x4; |
| 368 | O_ACCMODE = 0x3; |
| 369 | O_ALERT = 0x20000000; |
| 370 | O_APPEND = 0x8; |
| 371 | O_ASYNC = 0x40; |
| 372 | O_CREAT = 0x200; |
| 373 | O_DIRECTORY = 0x100000; |
| 374 | O_EVTONLY = 0x8000; |
| 375 | O_EXCL = 0x800; |
| 376 | O_EXLOCK = 0x20; |
| 377 | O_FSYNC = 0x80; |
| 378 | O_NDELAY = 0x4; |
| 379 | O_NOCTTY = 0x20000; |
| 380 | O_NOFOLLOW = 0x100; |
| 381 | O_NONBLOCK = 0x4; |
| 382 | O_POPUP = 0x80000000; |
| 383 | O_RDONLY = 0; |
| 384 | O_RDWR = 0x2; |
| 385 | O_SHLOCK = 0x10; |
| 386 | O_SYMLINK = 0x200000; |
| 387 | O_SYNC = 0x80; |
| 388 | O_TRUNC = 0x400; |
| 389 | O_WRONLY = 0x1; |
| 390 | SIGABRT = 0x6; |
| 391 | SIGALRM = 0xe; |
| 392 | SIGBUS = 0xa; |
| 393 | SIGCHLD = 0x14; |
| 394 | SIGCONT = 0x13; |
| 395 | SIGEMT = 0x7; |
| 396 | SIGFPE = 0x8; |
| 397 | SIGHUP = 0x1; |
| 398 | SIGILL = 0x4; |
| 399 | SIGINFO = 0x1d; |
| 400 | SIGINT = 0x2; |
| 401 | SIGIO = 0x17; |
| 402 | SIGIOT = 0x6; |
| 403 | SIGKILL = 0x9; |
| 404 | SIGPIPE = 0xd; |
| 405 | SIGPROF = 0x1b; |
| 406 | SIGQUIT = 0x3; |
| 407 | SIGSEGV = 0xb; |
| 408 | SIGSTOP = 0x11; |
| 409 | SIGSYS = 0xc; |
| 410 | SIGTERM = 0xf; |
| 411 | SIGTRAP = 0x5; |
| 412 | SIGTSTP = 0x12; |
| 413 | SIGTTIN = 0x15; |
| 414 | SIGTTOU = 0x16; |
| 415 | SIGURG = 0x10; |
| 416 | SIGUSR1 = 0x1e; |
| 417 | SIGUSR2 = 0x1f; |
| 418 | SIGVTALRM = 0x1a; |
| 419 | SIGWINCH = 0x1c; |
| 420 | SIGXCPU = 0x18; |
| 421 | SIGXFSZ = 0x19; |
| 422 | SOCK_DGRAM = 0x2; |
| 423 | SOCK_MAXADDRLEN = 0xff; |
| 424 | SOCK_RAW = 0x3; |
| 425 | SOCK_RDM = 0x4; |
| 426 | SOCK_SEQPACKET = 0x5; |
| 427 | SOCK_STREAM = 0x1; |
| 428 | SOL_SOCKET = 0xffff; |
| 429 | SOMAXCONN = 0x80; |
| 430 | SO_ACCEPTCONN = 0x2; |
| 431 | SO_BROADCAST = 0x20; |
| 432 | SO_DEBUG = 0x1; |
| 433 | SO_DONTROUTE = 0x10; |
| 434 | SO_DONTTRUNC = 0x2000; |
| 435 | SO_ERROR = 0x1007; |
| 436 | SO_KEEPALIVE = 0x8; |
| 437 | SO_LABEL = 0x1010; |
| 438 | SO_LINGER = 0x80; |
| 439 | SO_LINGER_SEC = 0x1080; |
| 440 | SO_NKE = 0x1021; |
| 441 | SO_NOADDRERR = 0x1023; |
| 442 | SO_NOSIGPIPE = 0x1022; |
| 443 | SO_NOTIFYCONFLICT = 0x1026; |
| 444 | SO_NREAD = 0x1020; |
| 445 | SO_NWRITE = 0x1024; |
| 446 | SO_OOBINLINE = 0x100; |
| 447 | SO_PEERLABEL = 0x1011; |
| 448 | SO_RCVBUF = 0x1002; |
| 449 | SO_RCVLOWAT = 0x1004; |
| 450 | SO_RCVTIMEO = 0x1006; |
| 451 | SO_RESTRICTIONS = 0x1081; |
| 452 | SO_RESTRICT_DENYIN = 0x1; |
| 453 | SO_RESTRICT_DENYOUT = 0x2; |
| 454 | SO_RESTRICT_DENYSET = 0x80000000; |
| 455 | SO_REUSEADDR = 0x4; |
| 456 | SO_REUSEPORT = 0x200; |
| 457 | SO_REUSESHAREUID = 0x1025; |
| 458 | SO_SNDBUF = 0x1001; |
| 459 | SO_SNDLOWAT = 0x1003; |
| 460 | SO_SNDTIMEO = 0x1005; |
| 461 | SO_TIMESTAMP = 0x400; |
| 462 | SO_TYPE = 0x1008; |
| 463 | SO_USELOOPBACK = 0x40; |
| 464 | SO_WANTMORE = 0x4000; |
| 465 | SO_WANTOOBFLAG = 0x8000; |
| 466 | S_IEXEC = 0x40; |
| 467 | S_IFBLK = 0x6000; |
| 468 | S_IFCHR = 0x2000; |
| 469 | S_IFDIR = 0x4000; |
| 470 | S_IFIFO = 0x1000; |
| 471 | S_IFLNK = 0xa000; |
| 472 | S_IFMT = 0xf000; |
| 473 | S_IFREG = 0x8000; |
| 474 | S_IFSOCK = 0xc000; |
| 475 | S_IFWHT = 0xe000; |
| 476 | S_IFXATTR = 0x10000; |
| 477 | S_IREAD = 0x100; |
| 478 | S_IRGRP = 0x20; |
| 479 | S_IROTH = 0x4; |
| 480 | S_IRUSR = 0x100; |
| 481 | S_IRWXG = 0x38; |
| 482 | S_IRWXO = 0x7; |
| 483 | S_IRWXU = 0x1c0; |
| 484 | S_ISGID = 0x400; |
| 485 | S_ISTXT = 0x200; |
| 486 | S_ISUID = 0x800; |
| 487 | S_ISVTX = 0x200; |
| 488 | S_IWGRP = 0x10; |
| 489 | S_IWOTH = 0x2; |
| 490 | S_IWRITE = 0x80; |
| 491 | S_IWUSR = 0x80; |
| 492 | S_IXGRP = 0x8; |
| 493 | S_IXOTH = 0x1; |
| 494 | S_IXUSR = 0x40; |
| 495 | TCP_KEEPALIVE = 0x10; |
| 496 | TCP_MAXBURST = 0x4; |
| 497 | TCP_MAXHLEN = 0x3c; |
| 498 | TCP_MAXOLEN = 0x28; |
| 499 | TCP_MAXSEG = 0x2; |
| 500 | TCP_MAXWIN = 0xffff; |
| 501 | TCP_MAX_SACK = 0x3; |
| 502 | TCP_MAX_WINSHIFT = 0xe; |
| 503 | TCP_MINMSS = 0xd8; |
| 504 | TCP_MINMSSOVERLOAD = 0x3e8; |
| 505 | TCP_MSS = 0x200; |
| 506 | TCP_NODELAY = 0x1; |
| 507 | TCP_NOOPT = 0x8; |
| 508 | TCP_NOPUSH = 0x4; |
| 509 | WCONTINUED = 0x10; |
| 510 | WCOREFLAG = 0x80; |
| 511 | WEXITED = 0x4; |
| 512 | WNOHANG = 0x1; |
| 513 | WNOWAIT = 0x20; |
| 514 | WORDSIZE = 0x20; |
| 515 | WSTOPPED = 0x7f; |
| 516 | WUNTRACED = 0x2; |
Russ Cox | 7f9d2c8 | 2009-06-02 23:22:25 -0700 | [diff] [blame] | 517 | ) |
| 518 | |
| 519 | // Types |
| 520 | |
| 521 | |
| 522 | // Error table |
Russ Cox | 6faacd2 | 2009-10-06 19:38:30 -0700 | [diff] [blame] | 523 | var errors = [...]string{ |
Russ Cox | 7f9d2c8 | 2009-06-02 23:22:25 -0700 | [diff] [blame] | 524 | 95: "EMULTIHOP (Reserved)", |
| 525 | 47: "address family not supported by protocol family", |
| 526 | 13: "permission denied", |
| 527 | 39: "destination address required", |
| 528 | 92: "illegal byte sequence", |
| 529 | 29: "illegal seek", |
| 530 | 31: "too many links", |
| 531 | 74: "RPC prog. not avail", |
| 532 | 25: "inappropriate ioctl for device", |
| 533 | 9: "bad file descriptor", |
| 534 | 34: "result too large", |
| 535 | 89: "operation canceled", |
| 536 | 26: "text file busy", |
| 537 | 12: "cannot allocate memory", |
| 538 | 36: "operation now in progress", |
| 539 | 66: "directory not empty", |
| 540 | 15: "block device required", |
| 541 | 41: "protocol wrong type for socket", |
| 542 | 91: "no message of desired type", |
| 543 | 73: "RPC version wrong", |
| 544 | 20: "not a directory", |
| 545 | 37: "operation already in progress", |
| 546 | 60: "operation timed out", |
| 547 | 81: "need authenticator", |
| 548 | 96: "no message available on STREAM", |
| 549 | 4: "interrupted system call", |
| 550 | 97: "ENOLINK (Reserved)", |
| 551 | 1: "operation not permitted", |
| 552 | 50: "network is down", |
| 553 | 70: "stale NFS file handle", |
| 554 | 38: "socket operation on non-socket", |
| 555 | 98: "no STREAM resources", |
| 556 | 80: "authentication error", |
| 557 | 10: "no child processes", |
| 558 | 32: "broken pipe", |
| 559 | 93: "attribute not found", |
| 560 | 94: "bad message", |
| 561 | 71: "too many levels of remote in path", |
| 562 | 59: "too many references: can't splice", |
| 563 | 46: "protocol family not supported", |
| 564 | 76: "bad procedure for program", |
| 565 | 48: "address already in use", |
| 566 | 52: "network dropped connection on reset", |
| 567 | 21: "is a directory", |
| 568 | 90: "identifier removed", |
| 569 | 83: "device error", |
| 570 | 22: "invalid argument", |
| 571 | 58: "can't send after socket shutdown", |
| 572 | 82: "device power is off", |
| 573 | 84: "value too large to be stored in data type", |
| 574 | 16: "resource busy", |
| 575 | 67: "too many processes", |
| 576 | 100: "protocol error", |
| 577 | 19: "operation not supported by device", |
| 578 | 30: "read-only file system", |
| 579 | 7: "argument list too long", |
| 580 | 11: "resource deadlock avoided", |
| 581 | 54: "connection reset by peer", |
| 582 | 88: "malformed Mach-o file", |
| 583 | 6: "device not configured", |
| 584 | 72: "RPC struct is bad", |
| 585 | 63: "file name too long", |
| 586 | 103: "policy not found", |
| 587 | 44: "socket type not supported", |
| 588 | 49: "can't assign requested address", |
| 589 | 101: "STREAM ioctl timeout", |
| 590 | 43: "protocol not supported", |
| 591 | 5: "input/output error", |
| 592 | 51: "network is unreachable", |
| 593 | 18: "cross-device link", |
| 594 | 69: "disc quota exceeded", |
| 595 | 28: "no space left on device", |
| 596 | 8: "exec format error", |
| 597 | 40: "message too long", |
| 598 | 79: "inappropriate file type or format", |
| 599 | 33: "numerical argument out of domain", |
| 600 | 99: "not a STREAM", |
| 601 | 27: "file too large", |
| 602 | 3: "no such process", |
| 603 | 64: "host is down", |
| 604 | 77: "no locks available", |
| 605 | 23: "too many open files in system", |
| 606 | 78: "function not implemented", |
| 607 | 86: "bad CPU type in executable", |
| 608 | 57: "socket is not connected", |
| 609 | 45: "operation not supported", |
| 610 | 53: "software caused connection abort", |
| 611 | 56: "socket is already connected", |
| 612 | 87: "shared library version mismatch", |
| 613 | 68: "too many users", |
| 614 | 42: "protocol not available", |
| 615 | 24: "too many open files", |
| 616 | 62: "too many levels of symbolic links", |
| 617 | 55: "no buffer space available", |
| 618 | 14: "bad address", |
| 619 | 35: "resource temporarily unavailable", |
| 620 | 85: "bad executable (or shared library)", |
| 621 | 61: "connection refused", |
| 622 | 17: "file exists", |
| 623 | 75: "program version wrong", |
| 624 | 2: "no such file or directory", |
| 625 | 65: "no route to host", |
| 626 | 102: "operation not supported on socket", |
| 627 | } |