zerrors_linux_ppc.go 36 KB

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