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