Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 1 | // mkerrors.sh -Wall -Werror -static -I/tmp/include -m64 |
| 2 | // Code generated by the command above; see README.md. DO NOT EDIT. |
| 3 | |
David K. Bainbridge | e05cf0c | 2021-08-19 03:16:50 +0000 | [diff] [blame] | 4 | //go:build amd64 && linux |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 5 | // +build amd64,linux |
| 6 | |
| 7 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. |
David K. Bainbridge | e05cf0c | 2021-08-19 03:16:50 +0000 | [diff] [blame] | 8 | // cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 /build/_const.go |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 9 | |
| 10 | package unix |
| 11 | |
| 12 | import "syscall" |
| 13 | |
| 14 | const ( |
David K. Bainbridge | e05cf0c | 2021-08-19 03:16:50 +0000 | [diff] [blame] | 15 | B1000000 = 0x1008 |
| 16 | B115200 = 0x1002 |
| 17 | B1152000 = 0x1009 |
| 18 | B1500000 = 0x100a |
| 19 | B2000000 = 0x100b |
| 20 | B230400 = 0x1003 |
| 21 | B2500000 = 0x100c |
| 22 | B3000000 = 0x100d |
| 23 | B3500000 = 0x100e |
| 24 | B4000000 = 0x100f |
| 25 | B460800 = 0x1004 |
| 26 | B500000 = 0x1005 |
| 27 | B57600 = 0x1001 |
| 28 | B576000 = 0x1006 |
| 29 | B921600 = 0x1007 |
| 30 | BLKBSZGET = 0x80081270 |
| 31 | BLKBSZSET = 0x40081271 |
| 32 | BLKFLSBUF = 0x1261 |
| 33 | BLKFRAGET = 0x1265 |
| 34 | BLKFRASET = 0x1264 |
| 35 | BLKGETSIZE = 0x1260 |
| 36 | BLKGETSIZE64 = 0x80081272 |
| 37 | BLKPBSZGET = 0x127b |
| 38 | BLKRAGET = 0x1263 |
| 39 | BLKRASET = 0x1262 |
| 40 | BLKROGET = 0x125e |
| 41 | BLKROSET = 0x125d |
| 42 | BLKRRPART = 0x125f |
| 43 | BLKSECTGET = 0x1267 |
| 44 | BLKSECTSET = 0x1266 |
| 45 | BLKSSZGET = 0x1268 |
| 46 | BOTHER = 0x1000 |
| 47 | BS1 = 0x2000 |
| 48 | BSDLY = 0x2000 |
| 49 | CBAUD = 0x100f |
| 50 | CBAUDEX = 0x1000 |
| 51 | CIBAUD = 0x100f0000 |
| 52 | CLOCAL = 0x800 |
| 53 | CR1 = 0x200 |
| 54 | CR2 = 0x400 |
| 55 | CR3 = 0x600 |
| 56 | CRDLY = 0x600 |
| 57 | CREAD = 0x80 |
| 58 | CS6 = 0x10 |
| 59 | CS7 = 0x20 |
| 60 | CS8 = 0x30 |
| 61 | CSIZE = 0x30 |
| 62 | CSTOPB = 0x40 |
| 63 | ECCGETLAYOUT = 0x81484d11 |
| 64 | ECCGETSTATS = 0x80104d12 |
| 65 | ECHOCTL = 0x200 |
| 66 | ECHOE = 0x10 |
| 67 | ECHOK = 0x20 |
| 68 | ECHOKE = 0x800 |
| 69 | ECHONL = 0x40 |
| 70 | ECHOPRT = 0x400 |
| 71 | EFD_CLOEXEC = 0x80000 |
| 72 | EFD_NONBLOCK = 0x800 |
| 73 | EPOLL_CLOEXEC = 0x80000 |
| 74 | EXTPROC = 0x10000 |
| 75 | FF1 = 0x8000 |
| 76 | FFDLY = 0x8000 |
| 77 | FICLONE = 0x40049409 |
| 78 | FICLONERANGE = 0x4020940d |
| 79 | FLUSHO = 0x1000 |
| 80 | FP_XSTATE_MAGIC2 = 0x46505845 |
| 81 | FS_IOC_ENABLE_VERITY = 0x40806685 |
| 82 | FS_IOC_GETFLAGS = 0x80086601 |
| 83 | FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b |
| 84 | FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 |
| 85 | FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 |
| 86 | FS_IOC_SETFLAGS = 0x40086602 |
| 87 | FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 |
| 88 | F_GETLK = 0x5 |
| 89 | F_GETLK64 = 0x5 |
| 90 | F_GETOWN = 0x9 |
| 91 | F_RDLCK = 0x0 |
| 92 | F_SETLK = 0x6 |
| 93 | F_SETLK64 = 0x6 |
| 94 | F_SETLKW = 0x7 |
| 95 | F_SETLKW64 = 0x7 |
| 96 | F_SETOWN = 0x8 |
| 97 | F_UNLCK = 0x2 |
| 98 | F_WRLCK = 0x1 |
| 99 | HIDIOCGRAWINFO = 0x80084803 |
| 100 | HIDIOCGRDESC = 0x90044802 |
| 101 | HIDIOCGRDESCSIZE = 0x80044801 |
| 102 | HUPCL = 0x400 |
| 103 | ICANON = 0x2 |
| 104 | IEXTEN = 0x8000 |
| 105 | IN_CLOEXEC = 0x80000 |
| 106 | IN_NONBLOCK = 0x800 |
| 107 | IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 |
| 108 | ISIG = 0x1 |
| 109 | IUCLC = 0x200 |
| 110 | IXOFF = 0x1000 |
| 111 | IXON = 0x400 |
| 112 | MAP_32BIT = 0x40 |
| 113 | MAP_ANON = 0x20 |
| 114 | MAP_ANONYMOUS = 0x20 |
| 115 | MAP_DENYWRITE = 0x800 |
| 116 | MAP_EXECUTABLE = 0x1000 |
| 117 | MAP_GROWSDOWN = 0x100 |
| 118 | MAP_HUGETLB = 0x40000 |
| 119 | MAP_LOCKED = 0x2000 |
| 120 | MAP_NONBLOCK = 0x10000 |
| 121 | MAP_NORESERVE = 0x4000 |
| 122 | MAP_POPULATE = 0x8000 |
| 123 | MAP_STACK = 0x20000 |
| 124 | MAP_SYNC = 0x80000 |
| 125 | MCL_CURRENT = 0x1 |
| 126 | MCL_FUTURE = 0x2 |
| 127 | MCL_ONFAULT = 0x4 |
| 128 | MEMERASE = 0x40084d02 |
| 129 | MEMERASE64 = 0x40104d14 |
| 130 | MEMGETBADBLOCK = 0x40084d0b |
| 131 | MEMGETINFO = 0x80204d01 |
| 132 | MEMGETOOBSEL = 0x80c84d0a |
| 133 | MEMGETREGIONCOUNT = 0x80044d07 |
| 134 | MEMISLOCKED = 0x80084d17 |
| 135 | MEMLOCK = 0x40084d05 |
| 136 | MEMREADOOB = 0xc0104d04 |
| 137 | MEMSETBADBLOCK = 0x40084d0c |
| 138 | MEMUNLOCK = 0x40084d06 |
| 139 | MEMWRITEOOB = 0xc0104d03 |
| 140 | MTDFILEMODE = 0x4d13 |
| 141 | NFDBITS = 0x40 |
| 142 | NLDLY = 0x100 |
| 143 | NOFLSH = 0x80 |
| 144 | NS_GET_NSTYPE = 0xb703 |
| 145 | NS_GET_OWNER_UID = 0xb704 |
| 146 | NS_GET_PARENT = 0xb702 |
| 147 | NS_GET_USERNS = 0xb701 |
| 148 | OLCUC = 0x2 |
| 149 | ONLCR = 0x4 |
| 150 | OTPGETREGIONCOUNT = 0x40044d0e |
| 151 | OTPGETREGIONINFO = 0x400c4d0f |
| 152 | OTPLOCK = 0x800c4d10 |
| 153 | OTPSELECT = 0x80044d0d |
| 154 | O_APPEND = 0x400 |
| 155 | O_ASYNC = 0x2000 |
| 156 | O_CLOEXEC = 0x80000 |
| 157 | O_CREAT = 0x40 |
| 158 | O_DIRECT = 0x4000 |
| 159 | O_DIRECTORY = 0x10000 |
| 160 | O_DSYNC = 0x1000 |
| 161 | O_EXCL = 0x80 |
| 162 | O_FSYNC = 0x101000 |
| 163 | O_LARGEFILE = 0x0 |
| 164 | O_NDELAY = 0x800 |
| 165 | O_NOATIME = 0x40000 |
| 166 | O_NOCTTY = 0x100 |
| 167 | O_NOFOLLOW = 0x20000 |
| 168 | O_NONBLOCK = 0x800 |
| 169 | O_PATH = 0x200000 |
| 170 | O_RSYNC = 0x101000 |
| 171 | O_SYNC = 0x101000 |
| 172 | O_TMPFILE = 0x410000 |
| 173 | O_TRUNC = 0x200 |
| 174 | PARENB = 0x100 |
| 175 | PARODD = 0x200 |
| 176 | PENDIN = 0x4000 |
| 177 | PERF_EVENT_IOC_DISABLE = 0x2401 |
| 178 | PERF_EVENT_IOC_ENABLE = 0x2400 |
| 179 | PERF_EVENT_IOC_ID = 0x80082407 |
| 180 | PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b |
| 181 | PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 |
| 182 | PERF_EVENT_IOC_PERIOD = 0x40082404 |
| 183 | PERF_EVENT_IOC_QUERY_BPF = 0xc008240a |
| 184 | PERF_EVENT_IOC_REFRESH = 0x2402 |
| 185 | PERF_EVENT_IOC_RESET = 0x2403 |
| 186 | PERF_EVENT_IOC_SET_BPF = 0x40042408 |
| 187 | PERF_EVENT_IOC_SET_FILTER = 0x40082406 |
| 188 | PERF_EVENT_IOC_SET_OUTPUT = 0x2405 |
| 189 | PPPIOCATTACH = 0x4004743d |
| 190 | PPPIOCATTCHAN = 0x40047438 |
| 191 | PPPIOCBRIDGECHAN = 0x40047435 |
| 192 | PPPIOCCONNECT = 0x4004743a |
| 193 | PPPIOCDETACH = 0x4004743c |
| 194 | PPPIOCDISCONN = 0x7439 |
| 195 | PPPIOCGASYNCMAP = 0x80047458 |
| 196 | PPPIOCGCHAN = 0x80047437 |
| 197 | PPPIOCGDEBUG = 0x80047441 |
| 198 | PPPIOCGFLAGS = 0x8004745a |
| 199 | PPPIOCGIDLE = 0x8010743f |
| 200 | PPPIOCGIDLE32 = 0x8008743f |
| 201 | PPPIOCGIDLE64 = 0x8010743f |
| 202 | PPPIOCGL2TPSTATS = 0x80487436 |
| 203 | PPPIOCGMRU = 0x80047453 |
| 204 | PPPIOCGRASYNCMAP = 0x80047455 |
| 205 | PPPIOCGUNIT = 0x80047456 |
| 206 | PPPIOCGXASYNCMAP = 0x80207450 |
| 207 | PPPIOCSACTIVE = 0x40107446 |
| 208 | PPPIOCSASYNCMAP = 0x40047457 |
| 209 | PPPIOCSCOMPRESS = 0x4010744d |
| 210 | PPPIOCSDEBUG = 0x40047440 |
| 211 | PPPIOCSFLAGS = 0x40047459 |
| 212 | PPPIOCSMAXCID = 0x40047451 |
| 213 | PPPIOCSMRRU = 0x4004743b |
| 214 | PPPIOCSMRU = 0x40047452 |
| 215 | PPPIOCSNPMODE = 0x4008744b |
| 216 | PPPIOCSPASS = 0x40107447 |
| 217 | PPPIOCSRASYNCMAP = 0x40047454 |
| 218 | PPPIOCSXASYNCMAP = 0x4020744f |
| 219 | PPPIOCUNBRIDGECHAN = 0x7434 |
| 220 | PPPIOCXFERUNIT = 0x744e |
| 221 | PR_SET_PTRACER_ANY = 0xffffffffffffffff |
| 222 | PTRACE_ARCH_PRCTL = 0x1e |
| 223 | PTRACE_GETFPREGS = 0xe |
| 224 | PTRACE_GETFPXREGS = 0x12 |
| 225 | PTRACE_GET_THREAD_AREA = 0x19 |
| 226 | PTRACE_OLDSETOPTIONS = 0x15 |
| 227 | PTRACE_SETFPREGS = 0xf |
| 228 | PTRACE_SETFPXREGS = 0x13 |
| 229 | PTRACE_SET_THREAD_AREA = 0x1a |
| 230 | PTRACE_SINGLEBLOCK = 0x21 |
| 231 | PTRACE_SYSEMU = 0x1f |
| 232 | PTRACE_SYSEMU_SINGLESTEP = 0x20 |
| 233 | RLIMIT_AS = 0x9 |
| 234 | RLIMIT_MEMLOCK = 0x8 |
| 235 | RLIMIT_NOFILE = 0x7 |
| 236 | RLIMIT_NPROC = 0x6 |
| 237 | RLIMIT_RSS = 0x5 |
| 238 | RNDADDENTROPY = 0x40085203 |
| 239 | RNDADDTOENTCNT = 0x40045201 |
| 240 | RNDCLEARPOOL = 0x5206 |
| 241 | RNDGETENTCNT = 0x80045200 |
| 242 | RNDGETPOOL = 0x80085202 |
| 243 | RNDRESEEDCRNG = 0x5207 |
| 244 | RNDZAPENTCNT = 0x5204 |
| 245 | RTC_AIE_OFF = 0x7002 |
| 246 | RTC_AIE_ON = 0x7001 |
| 247 | RTC_ALM_READ = 0x80247008 |
| 248 | RTC_ALM_SET = 0x40247007 |
| 249 | RTC_EPOCH_READ = 0x8008700d |
| 250 | RTC_EPOCH_SET = 0x4008700e |
| 251 | RTC_IRQP_READ = 0x8008700b |
| 252 | RTC_IRQP_SET = 0x4008700c |
| 253 | RTC_PIE_OFF = 0x7006 |
| 254 | RTC_PIE_ON = 0x7005 |
| 255 | RTC_PLL_GET = 0x80207011 |
| 256 | RTC_PLL_SET = 0x40207012 |
| 257 | RTC_RD_TIME = 0x80247009 |
| 258 | RTC_SET_TIME = 0x4024700a |
| 259 | RTC_UIE_OFF = 0x7004 |
| 260 | RTC_UIE_ON = 0x7003 |
| 261 | RTC_VL_CLR = 0x7014 |
| 262 | RTC_VL_READ = 0x80047013 |
| 263 | RTC_WIE_OFF = 0x7010 |
| 264 | RTC_WIE_ON = 0x700f |
| 265 | RTC_WKALM_RD = 0x80287010 |
| 266 | RTC_WKALM_SET = 0x4028700f |
| 267 | SCM_TIMESTAMPING = 0x25 |
| 268 | SCM_TIMESTAMPING_OPT_STATS = 0x36 |
| 269 | SCM_TIMESTAMPING_PKTINFO = 0x3a |
| 270 | SCM_TIMESTAMPNS = 0x23 |
| 271 | SCM_TXTIME = 0x3d |
| 272 | SCM_WIFI_STATUS = 0x29 |
| 273 | SFD_CLOEXEC = 0x80000 |
| 274 | SFD_NONBLOCK = 0x800 |
| 275 | SIOCATMARK = 0x8905 |
| 276 | SIOCGPGRP = 0x8904 |
| 277 | SIOCGSTAMPNS_NEW = 0x80108907 |
| 278 | SIOCGSTAMP_NEW = 0x80108906 |
| 279 | SIOCINQ = 0x541b |
| 280 | SIOCOUTQ = 0x5411 |
| 281 | SIOCSPGRP = 0x8902 |
| 282 | SOCK_CLOEXEC = 0x80000 |
| 283 | SOCK_DGRAM = 0x2 |
| 284 | SOCK_NONBLOCK = 0x800 |
| 285 | SOCK_STREAM = 0x1 |
| 286 | SOL_SOCKET = 0x1 |
| 287 | SO_ACCEPTCONN = 0x1e |
| 288 | SO_ATTACH_BPF = 0x32 |
| 289 | SO_ATTACH_REUSEPORT_CBPF = 0x33 |
| 290 | SO_ATTACH_REUSEPORT_EBPF = 0x34 |
| 291 | SO_BINDTODEVICE = 0x19 |
| 292 | SO_BINDTOIFINDEX = 0x3e |
| 293 | SO_BPF_EXTENSIONS = 0x30 |
| 294 | SO_BROADCAST = 0x6 |
| 295 | SO_BSDCOMPAT = 0xe |
| 296 | SO_BUSY_POLL = 0x2e |
| 297 | SO_BUSY_POLL_BUDGET = 0x46 |
| 298 | SO_CNX_ADVICE = 0x35 |
| 299 | SO_COOKIE = 0x39 |
| 300 | SO_DETACH_REUSEPORT_BPF = 0x44 |
| 301 | SO_DOMAIN = 0x27 |
| 302 | SO_DONTROUTE = 0x5 |
| 303 | SO_ERROR = 0x4 |
| 304 | SO_INCOMING_CPU = 0x31 |
| 305 | SO_INCOMING_NAPI_ID = 0x38 |
| 306 | SO_KEEPALIVE = 0x9 |
| 307 | SO_LINGER = 0xd |
| 308 | SO_LOCK_FILTER = 0x2c |
| 309 | SO_MARK = 0x24 |
| 310 | SO_MAX_PACING_RATE = 0x2f |
| 311 | SO_MEMINFO = 0x37 |
| 312 | SO_NOFCS = 0x2b |
| 313 | SO_OOBINLINE = 0xa |
| 314 | SO_PASSCRED = 0x10 |
| 315 | SO_PASSSEC = 0x22 |
| 316 | SO_PEEK_OFF = 0x2a |
| 317 | SO_PEERCRED = 0x11 |
| 318 | SO_PEERGROUPS = 0x3b |
| 319 | SO_PEERSEC = 0x1f |
| 320 | SO_PREFER_BUSY_POLL = 0x45 |
| 321 | SO_PROTOCOL = 0x26 |
| 322 | SO_RCVBUF = 0x8 |
| 323 | SO_RCVBUFFORCE = 0x21 |
| 324 | SO_RCVLOWAT = 0x12 |
| 325 | SO_RCVTIMEO = 0x14 |
| 326 | SO_RCVTIMEO_NEW = 0x42 |
| 327 | SO_RCVTIMEO_OLD = 0x14 |
| 328 | SO_REUSEADDR = 0x2 |
| 329 | SO_REUSEPORT = 0xf |
| 330 | SO_RXQ_OVFL = 0x28 |
| 331 | SO_SECURITY_AUTHENTICATION = 0x16 |
| 332 | SO_SECURITY_ENCRYPTION_NETWORK = 0x18 |
| 333 | SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 |
| 334 | SO_SELECT_ERR_QUEUE = 0x2d |
| 335 | SO_SNDBUF = 0x7 |
| 336 | SO_SNDBUFFORCE = 0x20 |
| 337 | SO_SNDLOWAT = 0x13 |
| 338 | SO_SNDTIMEO = 0x15 |
| 339 | SO_SNDTIMEO_NEW = 0x43 |
| 340 | SO_SNDTIMEO_OLD = 0x15 |
| 341 | SO_TIMESTAMPING = 0x25 |
| 342 | SO_TIMESTAMPING_NEW = 0x41 |
| 343 | SO_TIMESTAMPING_OLD = 0x25 |
| 344 | SO_TIMESTAMPNS = 0x23 |
| 345 | SO_TIMESTAMPNS_NEW = 0x40 |
| 346 | SO_TIMESTAMPNS_OLD = 0x23 |
| 347 | SO_TIMESTAMP_NEW = 0x3f |
| 348 | SO_TXTIME = 0x3d |
| 349 | SO_TYPE = 0x3 |
| 350 | SO_WIFI_STATUS = 0x29 |
| 351 | SO_ZEROCOPY = 0x3c |
| 352 | TAB1 = 0x800 |
| 353 | TAB2 = 0x1000 |
| 354 | TAB3 = 0x1800 |
| 355 | TABDLY = 0x1800 |
| 356 | TCFLSH = 0x540b |
| 357 | TCGETA = 0x5405 |
| 358 | TCGETS = 0x5401 |
| 359 | TCGETS2 = 0x802c542a |
| 360 | TCGETX = 0x5432 |
| 361 | TCSAFLUSH = 0x2 |
| 362 | TCSBRK = 0x5409 |
| 363 | TCSBRKP = 0x5425 |
| 364 | TCSETA = 0x5406 |
| 365 | TCSETAF = 0x5408 |
| 366 | TCSETAW = 0x5407 |
| 367 | TCSETS = 0x5402 |
| 368 | TCSETS2 = 0x402c542b |
| 369 | TCSETSF = 0x5404 |
| 370 | TCSETSF2 = 0x402c542d |
| 371 | TCSETSW = 0x5403 |
| 372 | TCSETSW2 = 0x402c542c |
| 373 | TCSETX = 0x5433 |
| 374 | TCSETXF = 0x5434 |
| 375 | TCSETXW = 0x5435 |
| 376 | TCXONC = 0x540a |
| 377 | TFD_CLOEXEC = 0x80000 |
| 378 | TFD_NONBLOCK = 0x800 |
| 379 | TIOCCBRK = 0x5428 |
| 380 | TIOCCONS = 0x541d |
| 381 | TIOCEXCL = 0x540c |
| 382 | TIOCGDEV = 0x80045432 |
| 383 | TIOCGETD = 0x5424 |
| 384 | TIOCGEXCL = 0x80045440 |
| 385 | TIOCGICOUNT = 0x545d |
| 386 | TIOCGISO7816 = 0x80285442 |
| 387 | TIOCGLCKTRMIOS = 0x5456 |
| 388 | TIOCGPGRP = 0x540f |
| 389 | TIOCGPKT = 0x80045438 |
| 390 | TIOCGPTLCK = 0x80045439 |
| 391 | TIOCGPTN = 0x80045430 |
| 392 | TIOCGPTPEER = 0x5441 |
| 393 | TIOCGRS485 = 0x542e |
| 394 | TIOCGSERIAL = 0x541e |
| 395 | TIOCGSID = 0x5429 |
| 396 | TIOCGSOFTCAR = 0x5419 |
| 397 | TIOCGWINSZ = 0x5413 |
| 398 | TIOCINQ = 0x541b |
| 399 | TIOCLINUX = 0x541c |
| 400 | TIOCMBIC = 0x5417 |
| 401 | TIOCMBIS = 0x5416 |
| 402 | TIOCMGET = 0x5415 |
| 403 | TIOCMIWAIT = 0x545c |
| 404 | TIOCMSET = 0x5418 |
| 405 | TIOCM_CAR = 0x40 |
| 406 | TIOCM_CD = 0x40 |
| 407 | TIOCM_CTS = 0x20 |
| 408 | TIOCM_DSR = 0x100 |
| 409 | TIOCM_RI = 0x80 |
| 410 | TIOCM_RNG = 0x80 |
| 411 | TIOCM_SR = 0x10 |
| 412 | TIOCM_ST = 0x8 |
| 413 | TIOCNOTTY = 0x5422 |
| 414 | TIOCNXCL = 0x540d |
| 415 | TIOCOUTQ = 0x5411 |
| 416 | TIOCPKT = 0x5420 |
| 417 | TIOCSBRK = 0x5427 |
| 418 | TIOCSCTTY = 0x540e |
| 419 | TIOCSERCONFIG = 0x5453 |
| 420 | TIOCSERGETLSR = 0x5459 |
| 421 | TIOCSERGETMULTI = 0x545a |
| 422 | TIOCSERGSTRUCT = 0x5458 |
| 423 | TIOCSERGWILD = 0x5454 |
| 424 | TIOCSERSETMULTI = 0x545b |
| 425 | TIOCSERSWILD = 0x5455 |
| 426 | TIOCSER_TEMT = 0x1 |
| 427 | TIOCSETD = 0x5423 |
| 428 | TIOCSIG = 0x40045436 |
| 429 | TIOCSISO7816 = 0xc0285443 |
| 430 | TIOCSLCKTRMIOS = 0x5457 |
| 431 | TIOCSPGRP = 0x5410 |
| 432 | TIOCSPTLCK = 0x40045431 |
| 433 | TIOCSRS485 = 0x542f |
| 434 | TIOCSSERIAL = 0x541f |
| 435 | TIOCSSOFTCAR = 0x541a |
| 436 | TIOCSTI = 0x5412 |
| 437 | TIOCSWINSZ = 0x5414 |
| 438 | TIOCVHANGUP = 0x5437 |
| 439 | TOSTOP = 0x100 |
| 440 | TUNATTACHFILTER = 0x401054d5 |
| 441 | TUNDETACHFILTER = 0x401054d6 |
| 442 | TUNGETDEVNETNS = 0x54e3 |
| 443 | TUNGETFEATURES = 0x800454cf |
| 444 | TUNGETFILTER = 0x801054db |
| 445 | TUNGETIFF = 0x800454d2 |
| 446 | TUNGETSNDBUF = 0x800454d3 |
| 447 | TUNGETVNETBE = 0x800454df |
| 448 | TUNGETVNETHDRSZ = 0x800454d7 |
| 449 | TUNGETVNETLE = 0x800454dd |
| 450 | TUNSETCARRIER = 0x400454e2 |
| 451 | TUNSETDEBUG = 0x400454c9 |
| 452 | TUNSETFILTEREBPF = 0x800454e1 |
| 453 | TUNSETGROUP = 0x400454ce |
| 454 | TUNSETIFF = 0x400454ca |
| 455 | TUNSETIFINDEX = 0x400454da |
| 456 | TUNSETLINK = 0x400454cd |
| 457 | TUNSETNOCSUM = 0x400454c8 |
| 458 | TUNSETOFFLOAD = 0x400454d0 |
| 459 | TUNSETOWNER = 0x400454cc |
| 460 | TUNSETPERSIST = 0x400454cb |
| 461 | TUNSETQUEUE = 0x400454d9 |
| 462 | TUNSETSNDBUF = 0x400454d4 |
| 463 | TUNSETSTEERINGEBPF = 0x800454e0 |
| 464 | TUNSETTXFILTER = 0x400454d1 |
| 465 | TUNSETVNETBE = 0x400454de |
| 466 | TUNSETVNETHDRSZ = 0x400454d8 |
| 467 | TUNSETVNETLE = 0x400454dc |
| 468 | UBI_IOCATT = 0x40186f40 |
| 469 | UBI_IOCDET = 0x40046f41 |
| 470 | UBI_IOCEBCH = 0x40044f02 |
| 471 | UBI_IOCEBER = 0x40044f01 |
| 472 | UBI_IOCEBISMAP = 0x80044f05 |
| 473 | UBI_IOCEBMAP = 0x40084f03 |
| 474 | UBI_IOCEBUNMAP = 0x40044f04 |
| 475 | UBI_IOCMKVOL = 0x40986f00 |
| 476 | UBI_IOCRMVOL = 0x40046f01 |
| 477 | UBI_IOCRNVOL = 0x51106f03 |
| 478 | UBI_IOCRPEB = 0x40046f04 |
| 479 | UBI_IOCRSVOL = 0x400c6f02 |
| 480 | UBI_IOCSETVOLPROP = 0x40104f06 |
| 481 | UBI_IOCSPEB = 0x40046f05 |
| 482 | UBI_IOCVOLCRBLK = 0x40804f07 |
| 483 | UBI_IOCVOLRMBLK = 0x4f08 |
| 484 | UBI_IOCVOLUP = 0x40084f00 |
| 485 | VDISCARD = 0xd |
| 486 | VEOF = 0x4 |
| 487 | VEOL = 0xb |
| 488 | VEOL2 = 0x10 |
| 489 | VMIN = 0x6 |
| 490 | VREPRINT = 0xc |
| 491 | VSTART = 0x8 |
| 492 | VSTOP = 0x9 |
| 493 | VSUSP = 0xa |
| 494 | VSWTC = 0x7 |
| 495 | VT1 = 0x4000 |
| 496 | VTDLY = 0x4000 |
| 497 | VTIME = 0x5 |
| 498 | VWERASE = 0xe |
| 499 | WDIOC_GETBOOTSTATUS = 0x80045702 |
| 500 | WDIOC_GETPRETIMEOUT = 0x80045709 |
| 501 | WDIOC_GETSTATUS = 0x80045701 |
| 502 | WDIOC_GETSUPPORT = 0x80285700 |
| 503 | WDIOC_GETTEMP = 0x80045703 |
| 504 | WDIOC_GETTIMELEFT = 0x8004570a |
| 505 | WDIOC_GETTIMEOUT = 0x80045707 |
| 506 | WDIOC_KEEPALIVE = 0x80045705 |
| 507 | WDIOC_SETOPTIONS = 0x80045704 |
| 508 | WORDSIZE = 0x40 |
| 509 | XCASE = 0x4 |
| 510 | XTABS = 0x1800 |
| 511 | _HIDIOCGRAWNAME = 0x80804804 |
| 512 | _HIDIOCGRAWPHYS = 0x80404805 |
| 513 | _HIDIOCGRAWUNIQ = 0x80404808 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 514 | ) |
| 515 | |
| 516 | // Errors |
| 517 | const ( |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 518 | EADDRINUSE = syscall.Errno(0x62) |
| 519 | EADDRNOTAVAIL = syscall.Errno(0x63) |
| 520 | EADV = syscall.Errno(0x44) |
| 521 | EAFNOSUPPORT = syscall.Errno(0x61) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 522 | EALREADY = syscall.Errno(0x72) |
| 523 | EBADE = syscall.Errno(0x34) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 524 | EBADFD = syscall.Errno(0x4d) |
| 525 | EBADMSG = syscall.Errno(0x4a) |
| 526 | EBADR = syscall.Errno(0x35) |
| 527 | EBADRQC = syscall.Errno(0x38) |
| 528 | EBADSLT = syscall.Errno(0x39) |
| 529 | EBFONT = syscall.Errno(0x3b) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 530 | ECANCELED = syscall.Errno(0x7d) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 531 | ECHRNG = syscall.Errno(0x2c) |
| 532 | ECOMM = syscall.Errno(0x46) |
| 533 | ECONNABORTED = syscall.Errno(0x67) |
| 534 | ECONNREFUSED = syscall.Errno(0x6f) |
| 535 | ECONNRESET = syscall.Errno(0x68) |
| 536 | EDEADLK = syscall.Errno(0x23) |
| 537 | EDEADLOCK = syscall.Errno(0x23) |
| 538 | EDESTADDRREQ = syscall.Errno(0x59) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 539 | EDOTDOT = syscall.Errno(0x49) |
| 540 | EDQUOT = syscall.Errno(0x7a) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 541 | EHOSTDOWN = syscall.Errno(0x70) |
| 542 | EHOSTUNREACH = syscall.Errno(0x71) |
| 543 | EHWPOISON = syscall.Errno(0x85) |
| 544 | EIDRM = syscall.Errno(0x2b) |
| 545 | EILSEQ = syscall.Errno(0x54) |
| 546 | EINPROGRESS = syscall.Errno(0x73) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 547 | EISCONN = syscall.Errno(0x6a) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 548 | EISNAM = syscall.Errno(0x78) |
| 549 | EKEYEXPIRED = syscall.Errno(0x7f) |
| 550 | EKEYREJECTED = syscall.Errno(0x81) |
| 551 | EKEYREVOKED = syscall.Errno(0x80) |
| 552 | EL2HLT = syscall.Errno(0x33) |
| 553 | EL2NSYNC = syscall.Errno(0x2d) |
| 554 | EL3HLT = syscall.Errno(0x2e) |
| 555 | EL3RST = syscall.Errno(0x2f) |
| 556 | ELIBACC = syscall.Errno(0x4f) |
| 557 | ELIBBAD = syscall.Errno(0x50) |
| 558 | ELIBEXEC = syscall.Errno(0x53) |
| 559 | ELIBMAX = syscall.Errno(0x52) |
| 560 | ELIBSCN = syscall.Errno(0x51) |
| 561 | ELNRNG = syscall.Errno(0x30) |
| 562 | ELOOP = syscall.Errno(0x28) |
| 563 | EMEDIUMTYPE = syscall.Errno(0x7c) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 564 | EMSGSIZE = syscall.Errno(0x5a) |
| 565 | EMULTIHOP = syscall.Errno(0x48) |
| 566 | ENAMETOOLONG = syscall.Errno(0x24) |
| 567 | ENAVAIL = syscall.Errno(0x77) |
| 568 | ENETDOWN = syscall.Errno(0x64) |
| 569 | ENETRESET = syscall.Errno(0x66) |
| 570 | ENETUNREACH = syscall.Errno(0x65) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 571 | ENOANO = syscall.Errno(0x37) |
| 572 | ENOBUFS = syscall.Errno(0x69) |
| 573 | ENOCSI = syscall.Errno(0x32) |
| 574 | ENODATA = syscall.Errno(0x3d) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 575 | ENOKEY = syscall.Errno(0x7e) |
| 576 | ENOLCK = syscall.Errno(0x25) |
| 577 | ENOLINK = syscall.Errno(0x43) |
| 578 | ENOMEDIUM = syscall.Errno(0x7b) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 579 | ENOMSG = syscall.Errno(0x2a) |
| 580 | ENONET = syscall.Errno(0x40) |
| 581 | ENOPKG = syscall.Errno(0x41) |
| 582 | ENOPROTOOPT = syscall.Errno(0x5c) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 583 | ENOSR = syscall.Errno(0x3f) |
| 584 | ENOSTR = syscall.Errno(0x3c) |
| 585 | ENOSYS = syscall.Errno(0x26) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 586 | ENOTCONN = syscall.Errno(0x6b) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 587 | ENOTEMPTY = syscall.Errno(0x27) |
| 588 | ENOTNAM = syscall.Errno(0x76) |
| 589 | ENOTRECOVERABLE = syscall.Errno(0x83) |
| 590 | ENOTSOCK = syscall.Errno(0x58) |
| 591 | ENOTSUP = syscall.Errno(0x5f) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 592 | ENOTUNIQ = syscall.Errno(0x4c) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 593 | EOPNOTSUPP = syscall.Errno(0x5f) |
| 594 | EOVERFLOW = syscall.Errno(0x4b) |
| 595 | EOWNERDEAD = syscall.Errno(0x82) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 596 | EPFNOSUPPORT = syscall.Errno(0x60) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 597 | EPROTO = syscall.Errno(0x47) |
| 598 | EPROTONOSUPPORT = syscall.Errno(0x5d) |
| 599 | EPROTOTYPE = syscall.Errno(0x5b) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 600 | EREMCHG = syscall.Errno(0x4e) |
| 601 | EREMOTE = syscall.Errno(0x42) |
| 602 | EREMOTEIO = syscall.Errno(0x79) |
| 603 | ERESTART = syscall.Errno(0x55) |
| 604 | ERFKILL = syscall.Errno(0x84) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 605 | ESHUTDOWN = syscall.Errno(0x6c) |
| 606 | ESOCKTNOSUPPORT = syscall.Errno(0x5e) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 607 | ESRMNT = syscall.Errno(0x45) |
| 608 | ESTALE = syscall.Errno(0x74) |
| 609 | ESTRPIPE = syscall.Errno(0x56) |
| 610 | ETIME = syscall.Errno(0x3e) |
| 611 | ETIMEDOUT = syscall.Errno(0x6e) |
| 612 | ETOOMANYREFS = syscall.Errno(0x6d) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 613 | EUCLEAN = syscall.Errno(0x75) |
| 614 | EUNATCH = syscall.Errno(0x31) |
| 615 | EUSERS = syscall.Errno(0x57) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 616 | EXFULL = syscall.Errno(0x36) |
| 617 | ) |
| 618 | |
| 619 | // Signals |
| 620 | const ( |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 621 | SIGBUS = syscall.Signal(0x7) |
| 622 | SIGCHLD = syscall.Signal(0x11) |
| 623 | SIGCLD = syscall.Signal(0x11) |
| 624 | SIGCONT = syscall.Signal(0x12) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 625 | SIGIO = syscall.Signal(0x1d) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 626 | SIGPOLL = syscall.Signal(0x1d) |
| 627 | SIGPROF = syscall.Signal(0x1b) |
| 628 | SIGPWR = syscall.Signal(0x1e) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 629 | SIGSTKFLT = syscall.Signal(0x10) |
| 630 | SIGSTOP = syscall.Signal(0x13) |
| 631 | SIGSYS = syscall.Signal(0x1f) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 632 | SIGTSTP = syscall.Signal(0x14) |
| 633 | SIGTTIN = syscall.Signal(0x15) |
| 634 | SIGTTOU = syscall.Signal(0x16) |
| 635 | SIGURG = syscall.Signal(0x17) |
| 636 | SIGUSR1 = syscall.Signal(0xa) |
| 637 | SIGUSR2 = syscall.Signal(0xc) |
| 638 | SIGVTALRM = syscall.Signal(0x1a) |
| 639 | SIGWINCH = syscall.Signal(0x1c) |
| 640 | SIGXCPU = syscall.Signal(0x18) |
| 641 | SIGXFSZ = syscall.Signal(0x19) |
| 642 | ) |
| 643 | |
| 644 | // Error table |
| 645 | var errorList = [...]struct { |
| 646 | num syscall.Errno |
| 647 | name string |
| 648 | desc string |
| 649 | }{ |
| 650 | {1, "EPERM", "operation not permitted"}, |
| 651 | {2, "ENOENT", "no such file or directory"}, |
| 652 | {3, "ESRCH", "no such process"}, |
| 653 | {4, "EINTR", "interrupted system call"}, |
| 654 | {5, "EIO", "input/output error"}, |
| 655 | {6, "ENXIO", "no such device or address"}, |
| 656 | {7, "E2BIG", "argument list too long"}, |
| 657 | {8, "ENOEXEC", "exec format error"}, |
| 658 | {9, "EBADF", "bad file descriptor"}, |
| 659 | {10, "ECHILD", "no child processes"}, |
| 660 | {11, "EAGAIN", "resource temporarily unavailable"}, |
| 661 | {12, "ENOMEM", "cannot allocate memory"}, |
| 662 | {13, "EACCES", "permission denied"}, |
| 663 | {14, "EFAULT", "bad address"}, |
| 664 | {15, "ENOTBLK", "block device required"}, |
| 665 | {16, "EBUSY", "device or resource busy"}, |
| 666 | {17, "EEXIST", "file exists"}, |
| 667 | {18, "EXDEV", "invalid cross-device link"}, |
| 668 | {19, "ENODEV", "no such device"}, |
| 669 | {20, "ENOTDIR", "not a directory"}, |
| 670 | {21, "EISDIR", "is a directory"}, |
| 671 | {22, "EINVAL", "invalid argument"}, |
| 672 | {23, "ENFILE", "too many open files in system"}, |
| 673 | {24, "EMFILE", "too many open files"}, |
| 674 | {25, "ENOTTY", "inappropriate ioctl for device"}, |
| 675 | {26, "ETXTBSY", "text file busy"}, |
| 676 | {27, "EFBIG", "file too large"}, |
| 677 | {28, "ENOSPC", "no space left on device"}, |
| 678 | {29, "ESPIPE", "illegal seek"}, |
| 679 | {30, "EROFS", "read-only file system"}, |
| 680 | {31, "EMLINK", "too many links"}, |
| 681 | {32, "EPIPE", "broken pipe"}, |
| 682 | {33, "EDOM", "numerical argument out of domain"}, |
| 683 | {34, "ERANGE", "numerical result out of range"}, |
| 684 | {35, "EDEADLK", "resource deadlock avoided"}, |
| 685 | {36, "ENAMETOOLONG", "file name too long"}, |
| 686 | {37, "ENOLCK", "no locks available"}, |
| 687 | {38, "ENOSYS", "function not implemented"}, |
| 688 | {39, "ENOTEMPTY", "directory not empty"}, |
| 689 | {40, "ELOOP", "too many levels of symbolic links"}, |
| 690 | {42, "ENOMSG", "no message of desired type"}, |
| 691 | {43, "EIDRM", "identifier removed"}, |
| 692 | {44, "ECHRNG", "channel number out of range"}, |
| 693 | {45, "EL2NSYNC", "level 2 not synchronized"}, |
| 694 | {46, "EL3HLT", "level 3 halted"}, |
| 695 | {47, "EL3RST", "level 3 reset"}, |
| 696 | {48, "ELNRNG", "link number out of range"}, |
| 697 | {49, "EUNATCH", "protocol driver not attached"}, |
| 698 | {50, "ENOCSI", "no CSI structure available"}, |
| 699 | {51, "EL2HLT", "level 2 halted"}, |
| 700 | {52, "EBADE", "invalid exchange"}, |
| 701 | {53, "EBADR", "invalid request descriptor"}, |
| 702 | {54, "EXFULL", "exchange full"}, |
| 703 | {55, "ENOANO", "no anode"}, |
| 704 | {56, "EBADRQC", "invalid request code"}, |
| 705 | {57, "EBADSLT", "invalid slot"}, |
| 706 | {59, "EBFONT", "bad font file format"}, |
| 707 | {60, "ENOSTR", "device not a stream"}, |
| 708 | {61, "ENODATA", "no data available"}, |
| 709 | {62, "ETIME", "timer expired"}, |
| 710 | {63, "ENOSR", "out of streams resources"}, |
| 711 | {64, "ENONET", "machine is not on the network"}, |
| 712 | {65, "ENOPKG", "package not installed"}, |
| 713 | {66, "EREMOTE", "object is remote"}, |
| 714 | {67, "ENOLINK", "link has been severed"}, |
| 715 | {68, "EADV", "advertise error"}, |
| 716 | {69, "ESRMNT", "srmount error"}, |
| 717 | {70, "ECOMM", "communication error on send"}, |
| 718 | {71, "EPROTO", "protocol error"}, |
| 719 | {72, "EMULTIHOP", "multihop attempted"}, |
| 720 | {73, "EDOTDOT", "RFS specific error"}, |
| 721 | {74, "EBADMSG", "bad message"}, |
| 722 | {75, "EOVERFLOW", "value too large for defined data type"}, |
| 723 | {76, "ENOTUNIQ", "name not unique on network"}, |
| 724 | {77, "EBADFD", "file descriptor in bad state"}, |
| 725 | {78, "EREMCHG", "remote address changed"}, |
| 726 | {79, "ELIBACC", "can not access a needed shared library"}, |
| 727 | {80, "ELIBBAD", "accessing a corrupted shared library"}, |
| 728 | {81, "ELIBSCN", ".lib section in a.out corrupted"}, |
| 729 | {82, "ELIBMAX", "attempting to link in too many shared libraries"}, |
| 730 | {83, "ELIBEXEC", "cannot exec a shared library directly"}, |
| 731 | {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, |
| 732 | {85, "ERESTART", "interrupted system call should be restarted"}, |
| 733 | {86, "ESTRPIPE", "streams pipe error"}, |
| 734 | {87, "EUSERS", "too many users"}, |
| 735 | {88, "ENOTSOCK", "socket operation on non-socket"}, |
| 736 | {89, "EDESTADDRREQ", "destination address required"}, |
| 737 | {90, "EMSGSIZE", "message too long"}, |
| 738 | {91, "EPROTOTYPE", "protocol wrong type for socket"}, |
| 739 | {92, "ENOPROTOOPT", "protocol not available"}, |
| 740 | {93, "EPROTONOSUPPORT", "protocol not supported"}, |
| 741 | {94, "ESOCKTNOSUPPORT", "socket type not supported"}, |
| 742 | {95, "ENOTSUP", "operation not supported"}, |
| 743 | {96, "EPFNOSUPPORT", "protocol family not supported"}, |
| 744 | {97, "EAFNOSUPPORT", "address family not supported by protocol"}, |
| 745 | {98, "EADDRINUSE", "address already in use"}, |
| 746 | {99, "EADDRNOTAVAIL", "cannot assign requested address"}, |
| 747 | {100, "ENETDOWN", "network is down"}, |
| 748 | {101, "ENETUNREACH", "network is unreachable"}, |
| 749 | {102, "ENETRESET", "network dropped connection on reset"}, |
| 750 | {103, "ECONNABORTED", "software caused connection abort"}, |
| 751 | {104, "ECONNRESET", "connection reset by peer"}, |
| 752 | {105, "ENOBUFS", "no buffer space available"}, |
| 753 | {106, "EISCONN", "transport endpoint is already connected"}, |
| 754 | {107, "ENOTCONN", "transport endpoint is not connected"}, |
| 755 | {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, |
| 756 | {109, "ETOOMANYREFS", "too many references: cannot splice"}, |
| 757 | {110, "ETIMEDOUT", "connection timed out"}, |
| 758 | {111, "ECONNREFUSED", "connection refused"}, |
| 759 | {112, "EHOSTDOWN", "host is down"}, |
| 760 | {113, "EHOSTUNREACH", "no route to host"}, |
| 761 | {114, "EALREADY", "operation already in progress"}, |
| 762 | {115, "EINPROGRESS", "operation now in progress"}, |
| 763 | {116, "ESTALE", "stale file handle"}, |
| 764 | {117, "EUCLEAN", "structure needs cleaning"}, |
| 765 | {118, "ENOTNAM", "not a XENIX named type file"}, |
| 766 | {119, "ENAVAIL", "no XENIX semaphores available"}, |
| 767 | {120, "EISNAM", "is a named type file"}, |
| 768 | {121, "EREMOTEIO", "remote I/O error"}, |
| 769 | {122, "EDQUOT", "disk quota exceeded"}, |
| 770 | {123, "ENOMEDIUM", "no medium found"}, |
| 771 | {124, "EMEDIUMTYPE", "wrong medium type"}, |
| 772 | {125, "ECANCELED", "operation canceled"}, |
| 773 | {126, "ENOKEY", "required key not available"}, |
| 774 | {127, "EKEYEXPIRED", "key has expired"}, |
| 775 | {128, "EKEYREVOKED", "key has been revoked"}, |
| 776 | {129, "EKEYREJECTED", "key was rejected by service"}, |
| 777 | {130, "EOWNERDEAD", "owner died"}, |
| 778 | {131, "ENOTRECOVERABLE", "state not recoverable"}, |
| 779 | {132, "ERFKILL", "operation not possible due to RF-kill"}, |
| 780 | {133, "EHWPOISON", "memory page has hardware error"}, |
| 781 | } |
| 782 | |
| 783 | // Signal table |
| 784 | var signalList = [...]struct { |
| 785 | num syscall.Signal |
| 786 | name string |
| 787 | desc string |
| 788 | }{ |
| 789 | {1, "SIGHUP", "hangup"}, |
| 790 | {2, "SIGINT", "interrupt"}, |
| 791 | {3, "SIGQUIT", "quit"}, |
| 792 | {4, "SIGILL", "illegal instruction"}, |
| 793 | {5, "SIGTRAP", "trace/breakpoint trap"}, |
| 794 | {6, "SIGABRT", "aborted"}, |
| 795 | {7, "SIGBUS", "bus error"}, |
| 796 | {8, "SIGFPE", "floating point exception"}, |
| 797 | {9, "SIGKILL", "killed"}, |
| 798 | {10, "SIGUSR1", "user defined signal 1"}, |
| 799 | {11, "SIGSEGV", "segmentation fault"}, |
| 800 | {12, "SIGUSR2", "user defined signal 2"}, |
| 801 | {13, "SIGPIPE", "broken pipe"}, |
| 802 | {14, "SIGALRM", "alarm clock"}, |
| 803 | {15, "SIGTERM", "terminated"}, |
| 804 | {16, "SIGSTKFLT", "stack fault"}, |
| 805 | {17, "SIGCHLD", "child exited"}, |
| 806 | {18, "SIGCONT", "continued"}, |
| 807 | {19, "SIGSTOP", "stopped (signal)"}, |
| 808 | {20, "SIGTSTP", "stopped"}, |
| 809 | {21, "SIGTTIN", "stopped (tty input)"}, |
| 810 | {22, "SIGTTOU", "stopped (tty output)"}, |
| 811 | {23, "SIGURG", "urgent I/O condition"}, |
| 812 | {24, "SIGXCPU", "CPU time limit exceeded"}, |
| 813 | {25, "SIGXFSZ", "file size limit exceeded"}, |
| 814 | {26, "SIGVTALRM", "virtual timer expired"}, |
| 815 | {27, "SIGPROF", "profiling timer expired"}, |
| 816 | {28, "SIGWINCH", "window changed"}, |
| 817 | {29, "SIGIO", "I/O possible"}, |
| 818 | {30, "SIGPWR", "power failure"}, |
| 819 | {31, "SIGSYS", "bad system call"}, |
| 820 | } |