1
2
3
4
5
6
7
8
9 package unix
10
11 import "syscall"
12
13 const (
14 ASI_LEON_DFLUSH = 0x11
15 ASI_LEON_IFLUSH = 0x10
16 ASI_LEON_MMUFLUSH = 0x18
17 B1000000 = 0x1008
18 B115200 = 0x1002
19 B1152000 = 0x1009
20 B1500000 = 0x100a
21 B2000000 = 0x100b
22 B230400 = 0x1003
23 B2500000 = 0x100c
24 B3000000 = 0x100d
25 B3500000 = 0x100e
26 B4000000 = 0x100f
27 B460800 = 0x1004
28 B500000 = 0x1005
29 B57600 = 0x1001
30 B576000 = 0x1006
31 B921600 = 0x1007
32 BLKALIGNOFF = 0x2000127a
33 BLKBSZGET = 0x40081270
34 BLKBSZSET = 0x80081271
35 BLKDISCARD = 0x20001277
36 BLKDISCARDZEROES = 0x2000127c
37 BLKFLSBUF = 0x20001261
38 BLKFRAGET = 0x20001265
39 BLKFRASET = 0x20001264
40 BLKGETDISKSEQ = 0x40081280
41 BLKGETSIZE = 0x20001260
42 BLKGETSIZE64 = 0x40081272
43 BLKIOMIN = 0x20001278
44 BLKIOOPT = 0x20001279
45 BLKPBSZGET = 0x2000127b
46 BLKRAGET = 0x20001263
47 BLKRASET = 0x20001262
48 BLKROGET = 0x2000125e
49 BLKROSET = 0x2000125d
50 BLKROTATIONAL = 0x2000127e
51 BLKRRPART = 0x2000125f
52 BLKSECDISCARD = 0x2000127d
53 BLKSECTGET = 0x20001267
54 BLKSECTSET = 0x20001266
55 BLKSSZGET = 0x20001268
56 BLKZEROOUT = 0x2000127f
57 BOTHER = 0x1000
58 BS1 = 0x2000
59 BSDLY = 0x2000
60 CBAUD = 0x100f
61 CBAUDEX = 0x1000
62 CIBAUD = 0x100f0000
63 CLOCAL = 0x800
64 CR1 = 0x200
65 CR2 = 0x400
66 CR3 = 0x600
67 CRDLY = 0x600
68 CREAD = 0x80
69 CS6 = 0x10
70 CS7 = 0x20
71 CS8 = 0x30
72 CSIZE = 0x30
73 CSTOPB = 0x40
74 ECCGETLAYOUT = 0x41484d11
75 ECCGETSTATS = 0x40104d12
76 ECHOCTL = 0x200
77 ECHOE = 0x10
78 ECHOK = 0x20
79 ECHOKE = 0x800
80 ECHONL = 0x40
81 ECHOPRT = 0x400
82 EFD_CLOEXEC = 0x400000
83 EFD_NONBLOCK = 0x4000
84 EMT_TAGOVF = 0x1
85 EPOLL_CLOEXEC = 0x400000
86 EXTPROC = 0x10000
87 FF1 = 0x8000
88 FFDLY = 0x8000
89 FICLONE = 0x80049409
90 FICLONERANGE = 0x8020940d
91 FLUSHO = 0x1000
92 FS_IOC_ENABLE_VERITY = 0x80806685
93 FS_IOC_GETFLAGS = 0x40086601
94 FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b
95 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
96 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
97 FS_IOC_SETFLAGS = 0x80086602
98 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
99 F_GETLK = 0x7
100 F_GETLK64 = 0x7
101 F_GETOWN = 0x5
102 F_RDLCK = 0x1
103 F_SETLK = 0x8
104 F_SETLK64 = 0x8
105 F_SETLKW = 0x9
106 F_SETLKW64 = 0x9
107 F_SETOWN = 0x6
108 F_UNLCK = 0x3
109 F_WRLCK = 0x2
110 HIDIOCGRAWINFO = 0x40084803
111 HIDIOCGRDESC = 0x50044802
112 HIDIOCGRDESCSIZE = 0x40044801
113 HUPCL = 0x400
114 ICANON = 0x2
115 IEXTEN = 0x8000
116 IN_CLOEXEC = 0x400000
117 IN_NONBLOCK = 0x4000
118 IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9
119 ISIG = 0x1
120 IUCLC = 0x200
121 IXOFF = 0x1000
122 IXON = 0x400
123 MAP_ANON = 0x20
124 MAP_ANONYMOUS = 0x20
125 MAP_DENYWRITE = 0x800
126 MAP_EXECUTABLE = 0x1000
127 MAP_GROWSDOWN = 0x200
128 MAP_HUGETLB = 0x40000
129 MAP_LOCKED = 0x100
130 MAP_NONBLOCK = 0x10000
131 MAP_NORESERVE = 0x40
132 MAP_POPULATE = 0x8000
133 MAP_RENAME = 0x20
134 MAP_STACK = 0x20000
135 MAP_SYNC = 0x80000
136 MCL_CURRENT = 0x2000
137 MCL_FUTURE = 0x4000
138 MCL_ONFAULT = 0x8000
139 MEMERASE = 0x80084d02
140 MEMERASE64 = 0x80104d14
141 MEMGETBADBLOCK = 0x80084d0b
142 MEMGETINFO = 0x40204d01
143 MEMGETOOBSEL = 0x40c84d0a
144 MEMGETREGIONCOUNT = 0x40044d07
145 MEMISLOCKED = 0x40084d17
146 MEMLOCK = 0x80084d05
147 MEMREAD = 0xc0404d1a
148 MEMREADOOB = 0xc0104d04
149 MEMSETBADBLOCK = 0x80084d0c
150 MEMUNLOCK = 0x80084d06
151 MEMWRITEOOB = 0xc0104d03
152 MTDFILEMODE = 0x20004d13
153 NFDBITS = 0x40
154 NLDLY = 0x100
155 NOFLSH = 0x80
156 NS_GET_NSTYPE = 0x2000b703
157 NS_GET_OWNER_UID = 0x2000b704
158 NS_GET_PARENT = 0x2000b702
159 NS_GET_USERNS = 0x2000b701
160 OLCUC = 0x2
161 ONLCR = 0x4
162 OTPERASE = 0x800c4d19
163 OTPGETREGIONCOUNT = 0x80044d0e
164 OTPGETREGIONINFO = 0x800c4d0f
165 OTPLOCK = 0x400c4d10
166 OTPSELECT = 0x40044d0d
167 O_APPEND = 0x8
168 O_ASYNC = 0x40
169 O_CLOEXEC = 0x400000
170 O_CREAT = 0x200
171 O_DIRECT = 0x100000
172 O_DIRECTORY = 0x10000
173 O_DSYNC = 0x2000
174 O_EXCL = 0x800
175 O_FSYNC = 0x802000
176 O_LARGEFILE = 0x0
177 O_NDELAY = 0x4004
178 O_NOATIME = 0x200000
179 O_NOCTTY = 0x8000
180 O_NOFOLLOW = 0x20000
181 O_NONBLOCK = 0x4000
182 O_PATH = 0x1000000
183 O_RSYNC = 0x802000
184 O_SYNC = 0x802000
185 O_TMPFILE = 0x2010000
186 O_TRUNC = 0x400
187 PARENB = 0x100
188 PARODD = 0x200
189 PENDIN = 0x4000
190 PERF_EVENT_IOC_DISABLE = 0x20002401
191 PERF_EVENT_IOC_ENABLE = 0x20002400
192 PERF_EVENT_IOC_ID = 0x40082407
193 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
194 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
195 PERF_EVENT_IOC_PERIOD = 0x80082404
196 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
197 PERF_EVENT_IOC_REFRESH = 0x20002402
198 PERF_EVENT_IOC_RESET = 0x20002403
199 PERF_EVENT_IOC_SET_BPF = 0x80042408
200 PERF_EVENT_IOC_SET_FILTER = 0x80082406
201 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
202 PPPIOCATTACH = 0x8004743d
203 PPPIOCATTCHAN = 0x80047438
204 PPPIOCBRIDGECHAN = 0x80047435
205 PPPIOCCONNECT = 0x8004743a
206 PPPIOCDETACH = 0x8004743c
207 PPPIOCDISCONN = 0x20007439
208 PPPIOCGASYNCMAP = 0x40047458
209 PPPIOCGCHAN = 0x40047437
210 PPPIOCGDEBUG = 0x40047441
211 PPPIOCGFLAGS = 0x4004745a
212 PPPIOCGIDLE = 0x4010743f
213 PPPIOCGIDLE32 = 0x4008743f
214 PPPIOCGIDLE64 = 0x4010743f
215 PPPIOCGL2TPSTATS = 0x40487436
216 PPPIOCGMRU = 0x40047453
217 PPPIOCGRASYNCMAP = 0x40047455
218 PPPIOCGUNIT = 0x40047456
219 PPPIOCGXASYNCMAP = 0x40207450
220 PPPIOCSACTIVE = 0x80107446
221 PPPIOCSASYNCMAP = 0x80047457
222 PPPIOCSCOMPRESS = 0x8010744d
223 PPPIOCSDEBUG = 0x80047440
224 PPPIOCSFLAGS = 0x80047459
225 PPPIOCSMAXCID = 0x80047451
226 PPPIOCSMRRU = 0x8004743b
227 PPPIOCSMRU = 0x80047452
228 PPPIOCSNPMODE = 0x8008744b
229 PPPIOCSPASS = 0x80107447
230 PPPIOCSRASYNCMAP = 0x80047454
231 PPPIOCSXASYNCMAP = 0x8020744f
232 PPPIOCUNBRIDGECHAN = 0x20007434
233 PPPIOCXFERUNIT = 0x2000744e
234 PR_SET_PTRACER_ANY = 0xffffffffffffffff
235 PTRACE_GETFPAREGS = 0x14
236 PTRACE_GETFPREGS = 0xe
237 PTRACE_GETFPREGS64 = 0x19
238 PTRACE_GETREGS64 = 0x16
239 PTRACE_READDATA = 0x10
240 PTRACE_READTEXT = 0x12
241 PTRACE_SETFPAREGS = 0x15
242 PTRACE_SETFPREGS = 0xf
243 PTRACE_SETFPREGS64 = 0x1a
244 PTRACE_SETREGS64 = 0x17
245 PTRACE_SPARC_DETACH = 0xb
246 PTRACE_WRITEDATA = 0x11
247 PTRACE_WRITETEXT = 0x13
248 PT_FP = 0x48
249 PT_G0 = 0x10
250 PT_G1 = 0x14
251 PT_G2 = 0x18
252 PT_G3 = 0x1c
253 PT_G4 = 0x20
254 PT_G5 = 0x24
255 PT_G6 = 0x28
256 PT_G7 = 0x2c
257 PT_I0 = 0x30
258 PT_I1 = 0x34
259 PT_I2 = 0x38
260 PT_I3 = 0x3c
261 PT_I4 = 0x40
262 PT_I5 = 0x44
263 PT_I6 = 0x48
264 PT_I7 = 0x4c
265 PT_NPC = 0x8
266 PT_PC = 0x4
267 PT_PSR = 0x0
268 PT_REGS_MAGIC = 0x57ac6c00
269 PT_TNPC = 0x90
270 PT_TPC = 0x88
271 PT_TSTATE = 0x80
272 PT_V9_FP = 0x70
273 PT_V9_G0 = 0x0
274 PT_V9_G1 = 0x8
275 PT_V9_G2 = 0x10
276 PT_V9_G3 = 0x18
277 PT_V9_G4 = 0x20
278 PT_V9_G5 = 0x28
279 PT_V9_G6 = 0x30
280 PT_V9_G7 = 0x38
281 PT_V9_I0 = 0x40
282 PT_V9_I1 = 0x48
283 PT_V9_I2 = 0x50
284 PT_V9_I3 = 0x58
285 PT_V9_I4 = 0x60
286 PT_V9_I5 = 0x68
287 PT_V9_I6 = 0x70
288 PT_V9_I7 = 0x78
289 PT_V9_MAGIC = 0x9c
290 PT_V9_TNPC = 0x90
291 PT_V9_TPC = 0x88
292 PT_V9_TSTATE = 0x80
293 PT_V9_Y = 0x98
294 PT_WIM = 0x10
295 PT_Y = 0xc
296 RLIMIT_AS = 0x9
297 RLIMIT_MEMLOCK = 0x8
298 RLIMIT_NOFILE = 0x6
299 RLIMIT_NPROC = 0x7
300 RLIMIT_RSS = 0x5
301 RNDADDENTROPY = 0x80085203
302 RNDADDTOENTCNT = 0x80045201
303 RNDCLEARPOOL = 0x20005206
304 RNDGETENTCNT = 0x40045200
305 RNDGETPOOL = 0x40085202
306 RNDRESEEDCRNG = 0x20005207
307 RNDZAPENTCNT = 0x20005204
308 RTC_AIE_OFF = 0x20007002
309 RTC_AIE_ON = 0x20007001
310 RTC_ALM_READ = 0x40247008
311 RTC_ALM_SET = 0x80247007
312 RTC_EPOCH_READ = 0x4008700d
313 RTC_EPOCH_SET = 0x8008700e
314 RTC_IRQP_READ = 0x4008700b
315 RTC_IRQP_SET = 0x8008700c
316 RTC_PARAM_GET = 0x80187013
317 RTC_PARAM_SET = 0x80187014
318 RTC_PIE_OFF = 0x20007006
319 RTC_PIE_ON = 0x20007005
320 RTC_PLL_GET = 0x40207011
321 RTC_PLL_SET = 0x80207012
322 RTC_RD_TIME = 0x40247009
323 RTC_SET_TIME = 0x8024700a
324 RTC_UIE_OFF = 0x20007004
325 RTC_UIE_ON = 0x20007003
326 RTC_VL_CLR = 0x20007014
327 RTC_VL_READ = 0x40047013
328 RTC_WIE_OFF = 0x20007010
329 RTC_WIE_ON = 0x2000700f
330 RTC_WKALM_RD = 0x40287010
331 RTC_WKALM_SET = 0x8028700f
332 SCM_TIMESTAMPING = 0x23
333 SCM_TIMESTAMPING_OPT_STATS = 0x38
334 SCM_TIMESTAMPING_PKTINFO = 0x3c
335 SCM_TIMESTAMPNS = 0x21
336 SCM_TXTIME = 0x3f
337 SCM_WIFI_STATUS = 0x25
338 SFD_CLOEXEC = 0x400000
339 SFD_NONBLOCK = 0x4000
340 SF_FP = 0x38
341 SF_I0 = 0x20
342 SF_I1 = 0x24
343 SF_I2 = 0x28
344 SF_I3 = 0x2c
345 SF_I4 = 0x30
346 SF_I5 = 0x34
347 SF_L0 = 0x0
348 SF_L1 = 0x4
349 SF_L2 = 0x8
350 SF_L3 = 0xc
351 SF_L4 = 0x10
352 SF_L5 = 0x14
353 SF_L6 = 0x18
354 SF_L7 = 0x1c
355 SF_PC = 0x3c
356 SF_RETP = 0x40
357 SF_V9_FP = 0x70
358 SF_V9_I0 = 0x40
359 SF_V9_I1 = 0x48
360 SF_V9_I2 = 0x50
361 SF_V9_I3 = 0x58
362 SF_V9_I4 = 0x60
363 SF_V9_I5 = 0x68
364 SF_V9_L0 = 0x0
365 SF_V9_L1 = 0x8
366 SF_V9_L2 = 0x10
367 SF_V9_L3 = 0x18
368 SF_V9_L4 = 0x20
369 SF_V9_L5 = 0x28
370 SF_V9_L6 = 0x30
371 SF_V9_L7 = 0x38
372 SF_V9_PC = 0x78
373 SF_V9_RETP = 0x80
374 SF_V9_XARG0 = 0x88
375 SF_V9_XARG1 = 0x90
376 SF_V9_XARG2 = 0x98
377 SF_V9_XARG3 = 0xa0
378 SF_V9_XARG4 = 0xa8
379 SF_V9_XARG5 = 0xb0
380 SF_V9_XXARG = 0xb8
381 SF_XARG0 = 0x44
382 SF_XARG1 = 0x48
383 SF_XARG2 = 0x4c
384 SF_XARG3 = 0x50
385 SF_XARG4 = 0x54
386 SF_XARG5 = 0x58
387 SF_XXARG = 0x5c
388 SIOCATMARK = 0x8905
389 SIOCGPGRP = 0x8904
390 SIOCGSTAMPNS_NEW = 0x40108907
391 SIOCGSTAMP_NEW = 0x40108906
392 SIOCINQ = 0x4004667f
393 SIOCOUTQ = 0x40047473
394 SIOCSPGRP = 0x8902
395 SOCK_CLOEXEC = 0x400000
396 SOCK_DGRAM = 0x2
397 SOCK_NONBLOCK = 0x4000
398 SOCK_STREAM = 0x1
399 SOL_SOCKET = 0xffff
400 SO_ACCEPTCONN = 0x8000
401 SO_ATTACH_BPF = 0x34
402 SO_ATTACH_REUSEPORT_CBPF = 0x35
403 SO_ATTACH_REUSEPORT_EBPF = 0x36
404 SO_BINDTODEVICE = 0xd
405 SO_BINDTOIFINDEX = 0x41
406 SO_BPF_EXTENSIONS = 0x32
407 SO_BROADCAST = 0x20
408 SO_BSDCOMPAT = 0x400
409 SO_BUF_LOCK = 0x51
410 SO_BUSY_POLL = 0x30
411 SO_BUSY_POLL_BUDGET = 0x49
412 SO_CNX_ADVICE = 0x37
413 SO_COOKIE = 0x3b
414 SO_DETACH_REUSEPORT_BPF = 0x47
415 SO_DOMAIN = 0x1029
416 SO_DONTROUTE = 0x10
417 SO_ERROR = 0x1007
418 SO_INCOMING_CPU = 0x33
419 SO_INCOMING_NAPI_ID = 0x3a
420 SO_KEEPALIVE = 0x8
421 SO_LINGER = 0x80
422 SO_LOCK_FILTER = 0x28
423 SO_MARK = 0x22
424 SO_MAX_PACING_RATE = 0x31
425 SO_MEMINFO = 0x39
426 SO_NETNS_COOKIE = 0x50
427 SO_NOFCS = 0x27
428 SO_OOBINLINE = 0x100
429 SO_PASSCRED = 0x2
430 SO_PASSPIDFD = 0x55
431 SO_PASSSEC = 0x1f
432 SO_PEEK_OFF = 0x26
433 SO_PEERCRED = 0x40
434 SO_PEERGROUPS = 0x3d
435 SO_PEERPIDFD = 0x56
436 SO_PEERSEC = 0x1e
437 SO_PREFER_BUSY_POLL = 0x48
438 SO_PROTOCOL = 0x1028
439 SO_RCVBUF = 0x1002
440 SO_RCVBUFFORCE = 0x100b
441 SO_RCVLOWAT = 0x800
442 SO_RCVMARK = 0x54
443 SO_RCVTIMEO = 0x2000
444 SO_RCVTIMEO_NEW = 0x44
445 SO_RCVTIMEO_OLD = 0x2000
446 SO_RESERVE_MEM = 0x52
447 SO_REUSEADDR = 0x4
448 SO_REUSEPORT = 0x200
449 SO_RXQ_OVFL = 0x24
450 SO_SECURITY_AUTHENTICATION = 0x5001
451 SO_SECURITY_ENCRYPTION_NETWORK = 0x5004
452 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x5002
453 SO_SELECT_ERR_QUEUE = 0x29
454 SO_SNDBUF = 0x1001
455 SO_SNDBUFFORCE = 0x100a
456 SO_SNDLOWAT = 0x1000
457 SO_SNDTIMEO = 0x4000
458 SO_SNDTIMEO_NEW = 0x45
459 SO_SNDTIMEO_OLD = 0x4000
460 SO_TIMESTAMPING = 0x23
461 SO_TIMESTAMPING_NEW = 0x43
462 SO_TIMESTAMPING_OLD = 0x23
463 SO_TIMESTAMPNS = 0x21
464 SO_TIMESTAMPNS_NEW = 0x42
465 SO_TIMESTAMPNS_OLD = 0x21
466 SO_TIMESTAMP_NEW = 0x46
467 SO_TXREHASH = 0x53
468 SO_TXTIME = 0x3f
469 SO_TYPE = 0x1008
470 SO_WIFI_STATUS = 0x25
471 SO_ZEROCOPY = 0x3e
472 TAB1 = 0x800
473 TAB2 = 0x1000
474 TAB3 = 0x1800
475 TABDLY = 0x1800
476 TCFLSH = 0x20005407
477 TCGETA = 0x40125401
478 TCGETS = 0x40245408
479 TCGETS2 = 0x402c540c
480 TCSAFLUSH = 0x2
481 TCSBRK = 0x20005405
482 TCSBRKP = 0x5425
483 TCSETA = 0x80125402
484 TCSETAF = 0x80125404
485 TCSETAW = 0x80125403
486 TCSETS = 0x80245409
487 TCSETS2 = 0x802c540d
488 TCSETSF = 0x8024540b
489 TCSETSF2 = 0x802c540f
490 TCSETSW = 0x8024540a
491 TCSETSW2 = 0x802c540e
492 TCXONC = 0x20005406
493 TFD_CLOEXEC = 0x400000
494 TFD_NONBLOCK = 0x4000
495 TIOCCBRK = 0x2000747a
496 TIOCCONS = 0x20007424
497 TIOCEXCL = 0x2000740d
498 TIOCGDEV = 0x40045432
499 TIOCGETD = 0x40047400
500 TIOCGEXCL = 0x40045440
501 TIOCGICOUNT = 0x545d
502 TIOCGISO7816 = 0x40285443
503 TIOCGLCKTRMIOS = 0x5456
504 TIOCGPGRP = 0x40047483
505 TIOCGPKT = 0x40045438
506 TIOCGPTLCK = 0x40045439
507 TIOCGPTN = 0x40047486
508 TIOCGPTPEER = 0x20007489
509 TIOCGRS485 = 0x40205441
510 TIOCGSERIAL = 0x541e
511 TIOCGSID = 0x40047485
512 TIOCGSOFTCAR = 0x40047464
513 TIOCGWINSZ = 0x40087468
514 TIOCINQ = 0x4004667f
515 TIOCLINUX = 0x541c
516 TIOCMBIC = 0x8004746b
517 TIOCMBIS = 0x8004746c
518 TIOCMGET = 0x4004746a
519 TIOCMIWAIT = 0x545c
520 TIOCMSET = 0x8004746d
521 TIOCM_CAR = 0x40
522 TIOCM_CD = 0x40
523 TIOCM_CTS = 0x20
524 TIOCM_DSR = 0x100
525 TIOCM_RI = 0x80
526 TIOCM_RNG = 0x80
527 TIOCM_SR = 0x10
528 TIOCM_ST = 0x8
529 TIOCNOTTY = 0x20007471
530 TIOCNXCL = 0x2000740e
531 TIOCOUTQ = 0x40047473
532 TIOCPKT = 0x80047470
533 TIOCSBRK = 0x2000747b
534 TIOCSCTTY = 0x20007484
535 TIOCSERCONFIG = 0x5453
536 TIOCSERGETLSR = 0x5459
537 TIOCSERGETMULTI = 0x545a
538 TIOCSERGSTRUCT = 0x5458
539 TIOCSERGWILD = 0x5454
540 TIOCSERSETMULTI = 0x545b
541 TIOCSERSWILD = 0x5455
542 TIOCSETD = 0x80047401
543 TIOCSIG = 0x80047488
544 TIOCSISO7816 = 0xc0285444
545 TIOCSLCKTRMIOS = 0x5457
546 TIOCSPGRP = 0x80047482
547 TIOCSPTLCK = 0x80047487
548 TIOCSRS485 = 0xc0205442
549 TIOCSSERIAL = 0x541f
550 TIOCSSOFTCAR = 0x80047465
551 TIOCSTART = 0x2000746e
552 TIOCSTI = 0x80017472
553 TIOCSTOP = 0x2000746f
554 TIOCSWINSZ = 0x80087467
555 TIOCVHANGUP = 0x20005437
556 TOSTOP = 0x100
557 TUNATTACHFILTER = 0x801054d5
558 TUNDETACHFILTER = 0x801054d6
559 TUNGETDEVNETNS = 0x200054e3
560 TUNGETFEATURES = 0x400454cf
561 TUNGETFILTER = 0x401054db
562 TUNGETIFF = 0x400454d2
563 TUNGETSNDBUF = 0x400454d3
564 TUNGETVNETBE = 0x400454df
565 TUNGETVNETHDRSZ = 0x400454d7
566 TUNGETVNETLE = 0x400454dd
567 TUNSETCARRIER = 0x800454e2
568 TUNSETDEBUG = 0x800454c9
569 TUNSETFILTEREBPF = 0x400454e1
570 TUNSETGROUP = 0x800454ce
571 TUNSETIFF = 0x800454ca
572 TUNSETIFINDEX = 0x800454da
573 TUNSETLINK = 0x800454cd
574 TUNSETNOCSUM = 0x800454c8
575 TUNSETOFFLOAD = 0x800454d0
576 TUNSETOWNER = 0x800454cc
577 TUNSETPERSIST = 0x800454cb
578 TUNSETQUEUE = 0x800454d9
579 TUNSETSNDBUF = 0x800454d4
580 TUNSETSTEERINGEBPF = 0x400454e0
581 TUNSETTXFILTER = 0x800454d1
582 TUNSETVNETBE = 0x800454de
583 TUNSETVNETHDRSZ = 0x800454d8
584 TUNSETVNETLE = 0x800454dc
585 UBI_IOCATT = 0x80186f40
586 UBI_IOCDET = 0x80046f41
587 UBI_IOCEBCH = 0x80044f02
588 UBI_IOCEBER = 0x80044f01
589 UBI_IOCEBISMAP = 0x40044f05
590 UBI_IOCEBMAP = 0x80084f03
591 UBI_IOCEBUNMAP = 0x80044f04
592 UBI_IOCMKVOL = 0x80986f00
593 UBI_IOCRMVOL = 0x80046f01
594 UBI_IOCRNVOL = 0x91106f03
595 UBI_IOCRPEB = 0x80046f04
596 UBI_IOCRSVOL = 0x800c6f02
597 UBI_IOCSETVOLPROP = 0x80104f06
598 UBI_IOCSPEB = 0x80046f05
599 UBI_IOCVOLCRBLK = 0x80804f07
600 UBI_IOCVOLRMBLK = 0x20004f08
601 UBI_IOCVOLUP = 0x80084f00
602 VDISCARD = 0xd
603 VEOF = 0x4
604 VEOL = 0xb
605 VEOL2 = 0x10
606 VMIN = 0x6
607 VREPRINT = 0xc
608 VSTART = 0x8
609 VSTOP = 0x9
610 VSUSP = 0xa
611 VSWTC = 0x7
612 VT1 = 0x4000
613 VTDLY = 0x4000
614 VTIME = 0x5
615 VWERASE = 0xe
616 WDIOC_GETBOOTSTATUS = 0x40045702
617 WDIOC_GETPRETIMEOUT = 0x40045709
618 WDIOC_GETSTATUS = 0x40045701
619 WDIOC_GETSUPPORT = 0x40285700
620 WDIOC_GETTEMP = 0x40045703
621 WDIOC_GETTIMELEFT = 0x4004570a
622 WDIOC_GETTIMEOUT = 0x40045707
623 WDIOC_KEEPALIVE = 0x40045705
624 WDIOC_SETOPTIONS = 0x40045704
625 WORDSIZE = 0x40
626 XCASE = 0x4
627 XTABS = 0x1800
628 _HIDIOCGRAWNAME = 0x40804804
629 _HIDIOCGRAWPHYS = 0x40404805
630 _HIDIOCGRAWUNIQ = 0x40404808
631 __TIOCFLUSH = 0x80047410
632 )
633
634
635 const (
636 EADDRINUSE = syscall.Errno(0x30)
637 EADDRNOTAVAIL = syscall.Errno(0x31)
638 EADV = syscall.Errno(0x53)
639 EAFNOSUPPORT = syscall.Errno(0x2f)
640 EALREADY = syscall.Errno(0x25)
641 EBADE = syscall.Errno(0x66)
642 EBADFD = syscall.Errno(0x5d)
643 EBADMSG = syscall.Errno(0x4c)
644 EBADR = syscall.Errno(0x67)
645 EBADRQC = syscall.Errno(0x6a)
646 EBADSLT = syscall.Errno(0x6b)
647 EBFONT = syscall.Errno(0x6d)
648 ECANCELED = syscall.Errno(0x7f)
649 ECHRNG = syscall.Errno(0x5e)
650 ECOMM = syscall.Errno(0x55)
651 ECONNABORTED = syscall.Errno(0x35)
652 ECONNREFUSED = syscall.Errno(0x3d)
653 ECONNRESET = syscall.Errno(0x36)
654 EDEADLK = syscall.Errno(0x4e)
655 EDEADLOCK = syscall.Errno(0x6c)
656 EDESTADDRREQ = syscall.Errno(0x27)
657 EDOTDOT = syscall.Errno(0x58)
658 EDQUOT = syscall.Errno(0x45)
659 EHOSTDOWN = syscall.Errno(0x40)
660 EHOSTUNREACH = syscall.Errno(0x41)
661 EHWPOISON = syscall.Errno(0x87)
662 EIDRM = syscall.Errno(0x4d)
663 EILSEQ = syscall.Errno(0x7a)
664 EINPROGRESS = syscall.Errno(0x24)
665 EISCONN = syscall.Errno(0x38)
666 EISNAM = syscall.Errno(0x78)
667 EKEYEXPIRED = syscall.Errno(0x81)
668 EKEYREJECTED = syscall.Errno(0x83)
669 EKEYREVOKED = syscall.Errno(0x82)
670 EL2HLT = syscall.Errno(0x65)
671 EL2NSYNC = syscall.Errno(0x5f)
672 EL3HLT = syscall.Errno(0x60)
673 EL3RST = syscall.Errno(0x61)
674 ELIBACC = syscall.Errno(0x72)
675 ELIBBAD = syscall.Errno(0x70)
676 ELIBEXEC = syscall.Errno(0x6e)
677 ELIBMAX = syscall.Errno(0x7b)
678 ELIBSCN = syscall.Errno(0x7c)
679 ELNRNG = syscall.Errno(0x62)
680 ELOOP = syscall.Errno(0x3e)
681 EMEDIUMTYPE = syscall.Errno(0x7e)
682 EMSGSIZE = syscall.Errno(0x28)
683 EMULTIHOP = syscall.Errno(0x57)
684 ENAMETOOLONG = syscall.Errno(0x3f)
685 ENAVAIL = syscall.Errno(0x77)
686 ENETDOWN = syscall.Errno(0x32)
687 ENETRESET = syscall.Errno(0x34)
688 ENETUNREACH = syscall.Errno(0x33)
689 ENOANO = syscall.Errno(0x69)
690 ENOBUFS = syscall.Errno(0x37)
691 ENOCSI = syscall.Errno(0x64)
692 ENODATA = syscall.Errno(0x6f)
693 ENOKEY = syscall.Errno(0x80)
694 ENOLCK = syscall.Errno(0x4f)
695 ENOLINK = syscall.Errno(0x52)
696 ENOMEDIUM = syscall.Errno(0x7d)
697 ENOMSG = syscall.Errno(0x4b)
698 ENONET = syscall.Errno(0x50)
699 ENOPKG = syscall.Errno(0x71)
700 ENOPROTOOPT = syscall.Errno(0x2a)
701 ENOSR = syscall.Errno(0x4a)
702 ENOSTR = syscall.Errno(0x48)
703 ENOSYS = syscall.Errno(0x5a)
704 ENOTCONN = syscall.Errno(0x39)
705 ENOTEMPTY = syscall.Errno(0x42)
706 ENOTNAM = syscall.Errno(0x76)
707 ENOTRECOVERABLE = syscall.Errno(0x85)
708 ENOTSOCK = syscall.Errno(0x26)
709 ENOTSUP = syscall.Errno(0x2d)
710 ENOTUNIQ = syscall.Errno(0x73)
711 EOPNOTSUPP = syscall.Errno(0x2d)
712 EOVERFLOW = syscall.Errno(0x5c)
713 EOWNERDEAD = syscall.Errno(0x84)
714 EPFNOSUPPORT = syscall.Errno(0x2e)
715 EPROCLIM = syscall.Errno(0x43)
716 EPROTO = syscall.Errno(0x56)
717 EPROTONOSUPPORT = syscall.Errno(0x2b)
718 EPROTOTYPE = syscall.Errno(0x29)
719 EREMCHG = syscall.Errno(0x59)
720 EREMOTE = syscall.Errno(0x47)
721 EREMOTEIO = syscall.Errno(0x79)
722 ERESTART = syscall.Errno(0x74)
723 ERFKILL = syscall.Errno(0x86)
724 ERREMOTE = syscall.Errno(0x51)
725 ESHUTDOWN = syscall.Errno(0x3a)
726 ESOCKTNOSUPPORT = syscall.Errno(0x2c)
727 ESRMNT = syscall.Errno(0x54)
728 ESTALE = syscall.Errno(0x46)
729 ESTRPIPE = syscall.Errno(0x5b)
730 ETIME = syscall.Errno(0x49)
731 ETIMEDOUT = syscall.Errno(0x3c)
732 ETOOMANYREFS = syscall.Errno(0x3b)
733 EUCLEAN = syscall.Errno(0x75)
734 EUNATCH = syscall.Errno(0x63)
735 EUSERS = syscall.Errno(0x44)
736 EXFULL = syscall.Errno(0x68)
737 )
738
739
740 const (
741 SIGBUS = syscall.Signal(0xa)
742 SIGCHLD = syscall.Signal(0x14)
743 SIGCLD = syscall.Signal(0x14)
744 SIGCONT = syscall.Signal(0x13)
745 SIGEMT = syscall.Signal(0x7)
746 SIGIO = syscall.Signal(0x17)
747 SIGLOST = syscall.Signal(0x1d)
748 SIGPOLL = syscall.Signal(0x17)
749 SIGPROF = syscall.Signal(0x1b)
750 SIGPWR = syscall.Signal(0x1d)
751 SIGSTOP = syscall.Signal(0x11)
752 SIGSYS = syscall.Signal(0xc)
753 SIGTSTP = syscall.Signal(0x12)
754 SIGTTIN = syscall.Signal(0x15)
755 SIGTTOU = syscall.Signal(0x16)
756 SIGURG = syscall.Signal(0x10)
757 SIGUSR1 = syscall.Signal(0x1e)
758 SIGUSR2 = syscall.Signal(0x1f)
759 SIGVTALRM = syscall.Signal(0x1a)
760 SIGWINCH = syscall.Signal(0x1c)
761 SIGXCPU = syscall.Signal(0x18)
762 SIGXFSZ = syscall.Signal(0x19)
763 )
764
765
766 var errorList = [...]struct {
767 num syscall.Errno
768 name string
769 desc string
770 }{
771 {1, "EPERM", "operation not permitted"},
772 {2, "ENOENT", "no such file or directory"},
773 {3, "ESRCH", "no such process"},
774 {4, "EINTR", "interrupted system call"},
775 {5, "EIO", "input/output error"},
776 {6, "ENXIO", "no such device or address"},
777 {7, "E2BIG", "argument list too long"},
778 {8, "ENOEXEC", "exec format error"},
779 {9, "EBADF", "bad file descriptor"},
780 {10, "ECHILD", "no child processes"},
781 {11, "EAGAIN", "resource temporarily unavailable"},
782 {12, "ENOMEM", "cannot allocate memory"},
783 {13, "EACCES", "permission denied"},
784 {14, "EFAULT", "bad address"},
785 {15, "ENOTBLK", "block device required"},
786 {16, "EBUSY", "device or resource busy"},
787 {17, "EEXIST", "file exists"},
788 {18, "EXDEV", "invalid cross-device link"},
789 {19, "ENODEV", "no such device"},
790 {20, "ENOTDIR", "not a directory"},
791 {21, "EISDIR", "is a directory"},
792 {22, "EINVAL", "invalid argument"},
793 {23, "ENFILE", "too many open files in system"},
794 {24, "EMFILE", "too many open files"},
795 {25, "ENOTTY", "inappropriate ioctl for device"},
796 {26, "ETXTBSY", "text file busy"},
797 {27, "EFBIG", "file too large"},
798 {28, "ENOSPC", "no space left on device"},
799 {29, "ESPIPE", "illegal seek"},
800 {30, "EROFS", "read-only file system"},
801 {31, "EMLINK", "too many links"},
802 {32, "EPIPE", "broken pipe"},
803 {33, "EDOM", "numerical argument out of domain"},
804 {34, "ERANGE", "numerical result out of range"},
805 {36, "EINPROGRESS", "operation now in progress"},
806 {37, "EALREADY", "operation already in progress"},
807 {38, "ENOTSOCK", "socket operation on non-socket"},
808 {39, "EDESTADDRREQ", "destination address required"},
809 {40, "EMSGSIZE", "message too long"},
810 {41, "EPROTOTYPE", "protocol wrong type for socket"},
811 {42, "ENOPROTOOPT", "protocol not available"},
812 {43, "EPROTONOSUPPORT", "protocol not supported"},
813 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
814 {45, "ENOTSUP", "operation not supported"},
815 {46, "EPFNOSUPPORT", "protocol family not supported"},
816 {47, "EAFNOSUPPORT", "address family not supported by protocol"},
817 {48, "EADDRINUSE", "address already in use"},
818 {49, "EADDRNOTAVAIL", "cannot assign requested address"},
819 {50, "ENETDOWN", "network is down"},
820 {51, "ENETUNREACH", "network is unreachable"},
821 {52, "ENETRESET", "network dropped connection on reset"},
822 {53, "ECONNABORTED", "software caused connection abort"},
823 {54, "ECONNRESET", "connection reset by peer"},
824 {55, "ENOBUFS", "no buffer space available"},
825 {56, "EISCONN", "transport endpoint is already connected"},
826 {57, "ENOTCONN", "transport endpoint is not connected"},
827 {58, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
828 {59, "ETOOMANYREFS", "too many references: cannot splice"},
829 {60, "ETIMEDOUT", "connection timed out"},
830 {61, "ECONNREFUSED", "connection refused"},
831 {62, "ELOOP", "too many levels of symbolic links"},
832 {63, "ENAMETOOLONG", "file name too long"},
833 {64, "EHOSTDOWN", "host is down"},
834 {65, "EHOSTUNREACH", "no route to host"},
835 {66, "ENOTEMPTY", "directory not empty"},
836 {67, "EPROCLIM", "too many processes"},
837 {68, "EUSERS", "too many users"},
838 {69, "EDQUOT", "disk quota exceeded"},
839 {70, "ESTALE", "stale file handle"},
840 {71, "EREMOTE", "object is remote"},
841 {72, "ENOSTR", "device not a stream"},
842 {73, "ETIME", "timer expired"},
843 {74, "ENOSR", "out of streams resources"},
844 {75, "ENOMSG", "no message of desired type"},
845 {76, "EBADMSG", "bad message"},
846 {77, "EIDRM", "identifier removed"},
847 {78, "EDEADLK", "resource deadlock avoided"},
848 {79, "ENOLCK", "no locks available"},
849 {80, "ENONET", "machine is not on the network"},
850 {81, "ERREMOTE", "unknown error 81"},
851 {82, "ENOLINK", "link has been severed"},
852 {83, "EADV", "advertise error"},
853 {84, "ESRMNT", "srmount error"},
854 {85, "ECOMM", "communication error on send"},
855 {86, "EPROTO", "protocol error"},
856 {87, "EMULTIHOP", "multihop attempted"},
857 {88, "EDOTDOT", "RFS specific error"},
858 {89, "EREMCHG", "remote address changed"},
859 {90, "ENOSYS", "function not implemented"},
860 {91, "ESTRPIPE", "streams pipe error"},
861 {92, "EOVERFLOW", "value too large for defined data type"},
862 {93, "EBADFD", "file descriptor in bad state"},
863 {94, "ECHRNG", "channel number out of range"},
864 {95, "EL2NSYNC", "level 2 not synchronized"},
865 {96, "EL3HLT", "level 3 halted"},
866 {97, "EL3RST", "level 3 reset"},
867 {98, "ELNRNG", "link number out of range"},
868 {99, "EUNATCH", "protocol driver not attached"},
869 {100, "ENOCSI", "no CSI structure available"},
870 {101, "EL2HLT", "level 2 halted"},
871 {102, "EBADE", "invalid exchange"},
872 {103, "EBADR", "invalid request descriptor"},
873 {104, "EXFULL", "exchange full"},
874 {105, "ENOANO", "no anode"},
875 {106, "EBADRQC", "invalid request code"},
876 {107, "EBADSLT", "invalid slot"},
877 {108, "EDEADLOCK", "file locking deadlock error"},
878 {109, "EBFONT", "bad font file format"},
879 {110, "ELIBEXEC", "cannot exec a shared library directly"},
880 {111, "ENODATA", "no data available"},
881 {112, "ELIBBAD", "accessing a corrupted shared library"},
882 {113, "ENOPKG", "package not installed"},
883 {114, "ELIBACC", "can not access a needed shared library"},
884 {115, "ENOTUNIQ", "name not unique on network"},
885 {116, "ERESTART", "interrupted system call should be restarted"},
886 {117, "EUCLEAN", "structure needs cleaning"},
887 {118, "ENOTNAM", "not a XENIX named type file"},
888 {119, "ENAVAIL", "no XENIX semaphores available"},
889 {120, "EISNAM", "is a named type file"},
890 {121, "EREMOTEIO", "remote I/O error"},
891 {122, "EILSEQ", "invalid or incomplete multibyte or wide character"},
892 {123, "ELIBMAX", "attempting to link in too many shared libraries"},
893 {124, "ELIBSCN", ".lib section in a.out corrupted"},
894 {125, "ENOMEDIUM", "no medium found"},
895 {126, "EMEDIUMTYPE", "wrong medium type"},
896 {127, "ECANCELED", "operation canceled"},
897 {128, "ENOKEY", "required key not available"},
898 {129, "EKEYEXPIRED", "key has expired"},
899 {130, "EKEYREVOKED", "key has been revoked"},
900 {131, "EKEYREJECTED", "key was rejected by service"},
901 {132, "EOWNERDEAD", "owner died"},
902 {133, "ENOTRECOVERABLE", "state not recoverable"},
903 {134, "ERFKILL", "operation not possible due to RF-kill"},
904 {135, "EHWPOISON", "memory page has hardware error"},
905 }
906
907
908 var signalList = [...]struct {
909 num syscall.Signal
910 name string
911 desc string
912 }{
913 {1, "SIGHUP", "hangup"},
914 {2, "SIGINT", "interrupt"},
915 {3, "SIGQUIT", "quit"},
916 {4, "SIGILL", "illegal instruction"},
917 {5, "SIGTRAP", "trace/breakpoint trap"},
918 {6, "SIGABRT", "aborted"},
919 {7, "SIGEMT", "EMT trap"},
920 {8, "SIGFPE", "floating point exception"},
921 {9, "SIGKILL", "killed"},
922 {10, "SIGBUS", "bus error"},
923 {11, "SIGSEGV", "segmentation fault"},
924 {12, "SIGSYS", "bad system call"},
925 {13, "SIGPIPE", "broken pipe"},
926 {14, "SIGALRM", "alarm clock"},
927 {15, "SIGTERM", "terminated"},
928 {16, "SIGURG", "urgent I/O condition"},
929 {17, "SIGSTOP", "stopped (signal)"},
930 {18, "SIGTSTP", "stopped"},
931 {19, "SIGCONT", "continued"},
932 {20, "SIGCHLD", "child exited"},
933 {21, "SIGTTIN", "stopped (tty input)"},
934 {22, "SIGTTOU", "stopped (tty output)"},
935 {23, "SIGIO", "I/O possible"},
936 {24, "SIGXCPU", "CPU time limit exceeded"},
937 {25, "SIGXFSZ", "file size limit exceeded"},
938 {26, "SIGVTALRM", "virtual timer expired"},
939 {27, "SIGPROF", "profiling timer expired"},
940 {28, "SIGWINCH", "window changed"},
941 {29, "SIGLOST", "power failure"},
942 {30, "SIGUSR1", "user defined signal 1"},
943 {31, "SIGUSR2", "user defined signal 2"},
944 }
945
View as plain text