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

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

View as plain text