1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License.  See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1995, 1999, 2001 by Ralf Baechle
7 */
8#ifndef _ASM_ERRNO_H
9#define _ASM_ERRNO_H
10
11/*
12 * These error numbers are intended to be MIPS ABI compatible
13 */
14#define	EPERM		 1	/* Operation not permitted */
15#define	ENOENT		 2	/* No such file or directory */
16#define	ESRCH		 3	/* No such process */
17#define	EINTR		 4	/* Interrupted system call */
18#define	EIO		 5	/* I/O error */
19#define	ENXIO		 6	/* No such device or address */
20#define	E2BIG		 7	/* Argument list too long */
21#define	ENOEXEC		 8	/* Exec format error */
22#define	EBADF		 9	/* Bad file number */
23#define	ECHILD		10	/* No child processes */
24#define	EAGAIN		11	/* Try again */
25#define	ENOMEM		12	/* Out of memory */
26#define	EACCES		13	/* Permission denied */
27#define	EFAULT		14	/* Bad address */
28#define	ENOTBLK		15	/* Block device required */
29#define	EBUSY		16	/* Device or resource busy */
30#define	EEXIST		17	/* File exists */
31#define	EXDEV		18	/* Cross-device link */
32#define	ENODEV		19	/* No such device */
33#define	ENOTDIR		20	/* Not a directory */
34#define	EISDIR		21	/* Is a directory */
35#define	EINVAL		22	/* Invalid argument */
36#define	ENFILE		23	/* File table overflow */
37#define	EMFILE		24	/* Too many open files */
38#define	ENOTTY		25	/* Not a typewriter */
39#define	ETXTBSY		26	/* Text file busy */
40#define	EFBIG		27	/* File too large */
41#define	ENOSPC		28	/* No space left on device */
42#define	ESPIPE		29	/* Illegal seek */
43#define	EROFS		30	/* Read-only file system */
44#define	EMLINK		31	/* Too many links */
45#define	EPIPE		32	/* Broken pipe */
46#define	EDOM		33	/* Math argument out of domain of func */
47#define	ERANGE		34	/* Math result not representable */
48#define	ENOMSG		35	/* No message of desired type */
49#define	EIDRM		36	/* Identifier removed */
50#define	ECHRNG		37	/* Channel number out of range */
51#define	EL2NSYNC	38	/* Level 2 not synchronized */
52#define	EL3HLT		39	/* Level 3 halted */
53#define	EL3RST		40	/* Level 3 reset */
54#define	ELNRNG		41	/* Link number out of range */
55#define	EUNATCH		42	/* Protocol driver not attached */
56#define	ENOCSI		43	/* No CSI structure available */
57#define	EL2HLT		44	/* Level 2 halted */
58#define	EDEADLK		45	/* Resource deadlock would occur */
59#define	ENOLCK		46	/* No record locks available */
60#define	EBADE		50	/* Invalid exchange */
61#define	EBADR		51	/* Invalid request descriptor */
62#define	EXFULL		52	/* Exchange full */
63#define	ENOANO		53	/* No anode */
64#define	EBADRQC		54	/* Invalid request code */
65#define	EBADSLT		55	/* Invalid slot */
66#define	EDEADLOCK	56	/* File locking deadlock error */
67#define	EBFONT		59	/* Bad font file format */
68#define	ENOSTR		60	/* Device not a stream */
69#define	ENODATA		61	/* No data available */
70#define	ETIME		62	/* Timer expired */
71#define	ENOSR		63	/* Out of streams resources */
72#define	ENONET		64	/* Machine is not on the network */
73#define	ENOPKG		65	/* Package not installed */
74#define	EREMOTE		66	/* Object is remote */
75#define	ENOLINK		67	/* Link has been severed */
76#define	EADV		68	/* Advertise error */
77#define	ESRMNT		69	/* Srmount error */
78#define	ECOMM		70	/* Communication error on send */
79#define	EPROTO		71	/* Protocol error */
80#define	EDOTDOT		73	/* RFS specific error */
81#define	EMULTIHOP	74	/* Multihop attempted */
82#define	EBADMSG		77	/* Not a data message */
83#define	ENAMETOOLONG	78	/* File name too long */
84#define	EOVERFLOW	79	/* Value too large for defined data type */
85#define	ENOTUNIQ	80	/* Name not unique on network */
86#define	EBADFD		81	/* File descriptor in bad state */
87#define	EREMCHG		82	/* Remote address changed */
88#define	ELIBACC		83	/* Can not access a needed shared library */
89#define	ELIBBAD		84	/* Accessing a corrupted shared library */
90#define	ELIBSCN		85	/* .lib section in a.out corrupted */
91#define	ELIBMAX		86	/* Attempting to link in too many shared libraries */
92#define	ELIBEXEC	87	/* Cannot exec a shared library directly */
93#define	EILSEQ		88	/* Illegal byte sequence */
94#define	ENOSYS		89	/* Function not implemented */
95#define	ELOOP		90	/* Too many symbolic links encountered */
96#define	ERESTART	91	/* Interrupted system call should be restarted */
97#define	ESTRPIPE	92	/* Streams pipe error */
98#define	ENOTEMPTY	93	/* Directory not empty */
99#define	EUSERS		94	/* Too many users */
100#define	ENOTSOCK	95	/* Socket operation on non-socket */
101#define	EDESTADDRREQ	96	/* Destination address required */
102#define	EMSGSIZE	97	/* Message too long */
103#define	EPROTOTYPE	98	/* Protocol wrong type for socket */
104#define	ENOPROTOOPT	99	/* Protocol not available */
105#define	EPROTONOSUPPORT	120	/* Protocol not supported */
106#define	ESOCKTNOSUPPORT	121	/* Socket type not supported */
107#define	EOPNOTSUPP	122	/* Operation not supported on transport endpoint */
108#define	EPFNOSUPPORT	123	/* Protocol family not supported */
109#define	EAFNOSUPPORT	124	/* Address family not supported by protocol */
110#define	EADDRINUSE	125	/* Address already in use */
111#define	EADDRNOTAVAIL	126	/* Cannot assign requested address */
112#define	ENETDOWN	127	/* Network is down */
113#define	ENETUNREACH	128	/* Network is unreachable */
114#define	ENETRESET	129	/* Network dropped connection because of reset */
115#define	ECONNABORTED	130	/* Software caused connection abort */
116#define	ECONNRESET	131	/* Connection reset by peer */
117#define	ENOBUFS		132	/* No buffer space available */
118#define	EISCONN		133	/* Transport endpoint is already connected */
119#define	ENOTCONN	134	/* Transport endpoint is not connected */
120#define	EUCLEAN		135	/* Structure needs cleaning */
121#define	ENOTNAM		137	/* Not a XENIX named type file */
122#define	ENAVAIL		138	/* No XENIX semaphores available */
123#define	EISNAM		139	/* Is a named type file */
124#define	EREMOTEIO	140	/* Remote I/O error */
125#define EINIT		141	/* Reserved */
126#define EREMDEV		142	/* Error 142 */
127#define	ESHUTDOWN	143	/* Cannot send after transport endpoint shutdown */
128#define	ETOOMANYREFS	144	/* Too many references: cannot splice */
129#define	ETIMEDOUT	145	/* Connection timed out */
130#define	ECONNREFUSED	146	/* Connection refused */
131#define	EHOSTDOWN	147	/* Host is down */
132#define	EHOSTUNREACH	148	/* No route to host */
133#define	EWOULDBLOCK	EAGAIN	/* Operation would block */
134#define	EALREADY	149	/* Operation already in progress */
135#define	EINPROGRESS	150	/* Operation now in progress */
136#define	ESTALE		151	/* Stale NFS file handle */
137#define ECANCELED	158	/* AIO operation canceled */
138
139/*
140 * These error are Linux extensions.
141 */
142#define ENOMEDIUM	159	/* No medium found */
143#define EMEDIUMTYPE	160	/* Wrong medium type */
144
145#define EDQUOT		1133	/* Quota exceeded */
146
147#ifdef __KERNEL__
148
149/* The biggest error number defined here or in <linux/errno.h>. */
150#define EMAXERRNO	1133
151
152#endif /* __KERNEL__ */
153
154#endif /* _ASM_ERRNO_H */
155