...

Source file src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go

Documentation: cmd/vendor/golang.org/x/sys/unix

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

View as plain text