xref: /OK3568_Linux_fs/kernel/tools/include/uapi/asm-generic/errno.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun #ifndef _ASM_GENERIC_ERRNO_H
3*4882a593Smuzhiyun #define _ASM_GENERIC_ERRNO_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <asm-generic/errno-base.h>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #define	EDEADLK		35	/* Resource deadlock would occur */
8*4882a593Smuzhiyun #define	ENAMETOOLONG	36	/* File name too long */
9*4882a593Smuzhiyun #define	ENOLCK		37	/* No record locks available */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun /*
12*4882a593Smuzhiyun  * This error code is special: arch syscall entry code will return
13*4882a593Smuzhiyun  * -ENOSYS if users try to call a syscall that doesn't exist.  To keep
14*4882a593Smuzhiyun  * failures of syscalls that really do exist distinguishable from
15*4882a593Smuzhiyun  * failures due to attempts to use a nonexistent syscall, syscall
16*4882a593Smuzhiyun  * implementations should refrain from returning -ENOSYS.
17*4882a593Smuzhiyun  */
18*4882a593Smuzhiyun #define	ENOSYS		38	/* Invalid system call number */
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #define	ENOTEMPTY	39	/* Directory not empty */
21*4882a593Smuzhiyun #define	ELOOP		40	/* Too many symbolic links encountered */
22*4882a593Smuzhiyun #define	EWOULDBLOCK	EAGAIN	/* Operation would block */
23*4882a593Smuzhiyun #define	ENOMSG		42	/* No message of desired type */
24*4882a593Smuzhiyun #define	EIDRM		43	/* Identifier removed */
25*4882a593Smuzhiyun #define	ECHRNG		44	/* Channel number out of range */
26*4882a593Smuzhiyun #define	EL2NSYNC	45	/* Level 2 not synchronized */
27*4882a593Smuzhiyun #define	EL3HLT		46	/* Level 3 halted */
28*4882a593Smuzhiyun #define	EL3RST		47	/* Level 3 reset */
29*4882a593Smuzhiyun #define	ELNRNG		48	/* Link number out of range */
30*4882a593Smuzhiyun #define	EUNATCH		49	/* Protocol driver not attached */
31*4882a593Smuzhiyun #define	ENOCSI		50	/* No CSI structure available */
32*4882a593Smuzhiyun #define	EL2HLT		51	/* Level 2 halted */
33*4882a593Smuzhiyun #define	EBADE		52	/* Invalid exchange */
34*4882a593Smuzhiyun #define	EBADR		53	/* Invalid request descriptor */
35*4882a593Smuzhiyun #define	EXFULL		54	/* Exchange full */
36*4882a593Smuzhiyun #define	ENOANO		55	/* No anode */
37*4882a593Smuzhiyun #define	EBADRQC		56	/* Invalid request code */
38*4882a593Smuzhiyun #define	EBADSLT		57	/* Invalid slot */
39*4882a593Smuzhiyun 
40*4882a593Smuzhiyun #define	EDEADLOCK	EDEADLK
41*4882a593Smuzhiyun 
42*4882a593Smuzhiyun #define	EBFONT		59	/* Bad font file format */
43*4882a593Smuzhiyun #define	ENOSTR		60	/* Device not a stream */
44*4882a593Smuzhiyun #define	ENODATA		61	/* No data available */
45*4882a593Smuzhiyun #define	ETIME		62	/* Timer expired */
46*4882a593Smuzhiyun #define	ENOSR		63	/* Out of streams resources */
47*4882a593Smuzhiyun #define	ENONET		64	/* Machine is not on the network */
48*4882a593Smuzhiyun #define	ENOPKG		65	/* Package not installed */
49*4882a593Smuzhiyun #define	EREMOTE		66	/* Object is remote */
50*4882a593Smuzhiyun #define	ENOLINK		67	/* Link has been severed */
51*4882a593Smuzhiyun #define	EADV		68	/* Advertise error */
52*4882a593Smuzhiyun #define	ESRMNT		69	/* Srmount error */
53*4882a593Smuzhiyun #define	ECOMM		70	/* Communication error on send */
54*4882a593Smuzhiyun #define	EPROTO		71	/* Protocol error */
55*4882a593Smuzhiyun #define	EMULTIHOP	72	/* Multihop attempted */
56*4882a593Smuzhiyun #define	EDOTDOT		73	/* RFS specific error */
57*4882a593Smuzhiyun #define	EBADMSG		74	/* Not a data message */
58*4882a593Smuzhiyun #define	EOVERFLOW	75	/* Value too large for defined data type */
59*4882a593Smuzhiyun #define	ENOTUNIQ	76	/* Name not unique on network */
60*4882a593Smuzhiyun #define	EBADFD		77	/* File descriptor in bad state */
61*4882a593Smuzhiyun #define	EREMCHG		78	/* Remote address changed */
62*4882a593Smuzhiyun #define	ELIBACC		79	/* Can not access a needed shared library */
63*4882a593Smuzhiyun #define	ELIBBAD		80	/* Accessing a corrupted shared library */
64*4882a593Smuzhiyun #define	ELIBSCN		81	/* .lib section in a.out corrupted */
65*4882a593Smuzhiyun #define	ELIBMAX		82	/* Attempting to link in too many shared libraries */
66*4882a593Smuzhiyun #define	ELIBEXEC	83	/* Cannot exec a shared library directly */
67*4882a593Smuzhiyun #define	EILSEQ		84	/* Illegal byte sequence */
68*4882a593Smuzhiyun #define	ERESTART	85	/* Interrupted system call should be restarted */
69*4882a593Smuzhiyun #define	ESTRPIPE	86	/* Streams pipe error */
70*4882a593Smuzhiyun #define	EUSERS		87	/* Too many users */
71*4882a593Smuzhiyun #define	ENOTSOCK	88	/* Socket operation on non-socket */
72*4882a593Smuzhiyun #define	EDESTADDRREQ	89	/* Destination address required */
73*4882a593Smuzhiyun #define	EMSGSIZE	90	/* Message too long */
74*4882a593Smuzhiyun #define	EPROTOTYPE	91	/* Protocol wrong type for socket */
75*4882a593Smuzhiyun #define	ENOPROTOOPT	92	/* Protocol not available */
76*4882a593Smuzhiyun #define	EPROTONOSUPPORT	93	/* Protocol not supported */
77*4882a593Smuzhiyun #define	ESOCKTNOSUPPORT	94	/* Socket type not supported */
78*4882a593Smuzhiyun #define	EOPNOTSUPP	95	/* Operation not supported on transport endpoint */
79*4882a593Smuzhiyun #define	EPFNOSUPPORT	96	/* Protocol family not supported */
80*4882a593Smuzhiyun #define	EAFNOSUPPORT	97	/* Address family not supported by protocol */
81*4882a593Smuzhiyun #define	EADDRINUSE	98	/* Address already in use */
82*4882a593Smuzhiyun #define	EADDRNOTAVAIL	99	/* Cannot assign requested address */
83*4882a593Smuzhiyun #define	ENETDOWN	100	/* Network is down */
84*4882a593Smuzhiyun #define	ENETUNREACH	101	/* Network is unreachable */
85*4882a593Smuzhiyun #define	ENETRESET	102	/* Network dropped connection because of reset */
86*4882a593Smuzhiyun #define	ECONNABORTED	103	/* Software caused connection abort */
87*4882a593Smuzhiyun #define	ECONNRESET	104	/* Connection reset by peer */
88*4882a593Smuzhiyun #define	ENOBUFS		105	/* No buffer space available */
89*4882a593Smuzhiyun #define	EISCONN		106	/* Transport endpoint is already connected */
90*4882a593Smuzhiyun #define	ENOTCONN	107	/* Transport endpoint is not connected */
91*4882a593Smuzhiyun #define	ESHUTDOWN	108	/* Cannot send after transport endpoint shutdown */
92*4882a593Smuzhiyun #define	ETOOMANYREFS	109	/* Too many references: cannot splice */
93*4882a593Smuzhiyun #define	ETIMEDOUT	110	/* Connection timed out */
94*4882a593Smuzhiyun #define	ECONNREFUSED	111	/* Connection refused */
95*4882a593Smuzhiyun #define	EHOSTDOWN	112	/* Host is down */
96*4882a593Smuzhiyun #define	EHOSTUNREACH	113	/* No route to host */
97*4882a593Smuzhiyun #define	EALREADY	114	/* Operation already in progress */
98*4882a593Smuzhiyun #define	EINPROGRESS	115	/* Operation now in progress */
99*4882a593Smuzhiyun #define	ESTALE		116	/* Stale file handle */
100*4882a593Smuzhiyun #define	EUCLEAN		117	/* Structure needs cleaning */
101*4882a593Smuzhiyun #define	ENOTNAM		118	/* Not a XENIX named type file */
102*4882a593Smuzhiyun #define	ENAVAIL		119	/* No XENIX semaphores available */
103*4882a593Smuzhiyun #define	EISNAM		120	/* Is a named type file */
104*4882a593Smuzhiyun #define	EREMOTEIO	121	/* Remote I/O error */
105*4882a593Smuzhiyun #define	EDQUOT		122	/* Quota exceeded */
106*4882a593Smuzhiyun 
107*4882a593Smuzhiyun #define	ENOMEDIUM	123	/* No medium found */
108*4882a593Smuzhiyun #define	EMEDIUMTYPE	124	/* Wrong medium type */
109*4882a593Smuzhiyun #define	ECANCELED	125	/* Operation Canceled */
110*4882a593Smuzhiyun #define	ENOKEY		126	/* Required key not available */
111*4882a593Smuzhiyun #define	EKEYEXPIRED	127	/* Key has expired */
112*4882a593Smuzhiyun #define	EKEYREVOKED	128	/* Key has been revoked */
113*4882a593Smuzhiyun #define	EKEYREJECTED	129	/* Key was rejected by service */
114*4882a593Smuzhiyun 
115*4882a593Smuzhiyun /* for robust mutexes */
116*4882a593Smuzhiyun #define	EOWNERDEAD	130	/* Owner died */
117*4882a593Smuzhiyun #define	ENOTRECOVERABLE	131	/* State not recoverable */
118*4882a593Smuzhiyun 
119*4882a593Smuzhiyun #define ERFKILL		132	/* Operation not possible due to RF-kill */
120*4882a593Smuzhiyun 
121*4882a593Smuzhiyun #define EHWPOISON	133	/* Memory page has hardware error */
122*4882a593Smuzhiyun 
123*4882a593Smuzhiyun #endif
124