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