xref: /openbmc/u-boot/include/linux/errno.h (revision cbe7706a)
1519d9424SMasahiro Yamada #ifndef _LINUX_ERRNO_H
2519d9424SMasahiro Yamada #define _LINUX_ERRNO_H
3519d9424SMasahiro Yamada 
42c61551bSMasahiro Yamada #define	EPERM		 1	/* Operation not permitted */
52c61551bSMasahiro Yamada #define	ENOENT		 2	/* No such file or directory */
62c61551bSMasahiro Yamada #define	ESRCH		 3	/* No such process */
72c61551bSMasahiro Yamada #define	EINTR		 4	/* Interrupted system call */
82c61551bSMasahiro Yamada #define	EIO		 5	/* I/O error */
92c61551bSMasahiro Yamada #define	ENXIO		 6	/* No such device or address */
102c61551bSMasahiro Yamada #define	E2BIG		 7	/* Argument list too long */
112c61551bSMasahiro Yamada #define	ENOEXEC		 8	/* Exec format error */
122c61551bSMasahiro Yamada #define	EBADF		 9	/* Bad file number */
132c61551bSMasahiro Yamada #define	ECHILD		10	/* No child processes */
142c61551bSMasahiro Yamada #define	EAGAIN		11	/* Try again */
152c61551bSMasahiro Yamada #define	ENOMEM		12	/* Out of memory */
162c61551bSMasahiro Yamada #define	EACCES		13	/* Permission denied */
172c61551bSMasahiro Yamada #define	EFAULT		14	/* Bad address */
182c61551bSMasahiro Yamada #define	ENOTBLK		15	/* Block device required */
192c61551bSMasahiro Yamada #define	EBUSY		16	/* Device or resource busy */
202c61551bSMasahiro Yamada #define	EEXIST		17	/* File exists */
212c61551bSMasahiro Yamada #define	EXDEV		18	/* Cross-device link */
222c61551bSMasahiro Yamada #define	ENODEV		19	/* No such device */
232c61551bSMasahiro Yamada #define	ENOTDIR		20	/* Not a directory */
242c61551bSMasahiro Yamada #define	EISDIR		21	/* Is a directory */
252c61551bSMasahiro Yamada #define	EINVAL		22	/* Invalid argument */
262c61551bSMasahiro Yamada #define	ENFILE		23	/* File table overflow */
272c61551bSMasahiro Yamada #define	EMFILE		24	/* Too many open files */
282c61551bSMasahiro Yamada #define	ENOTTY		25	/* Not a typewriter */
292c61551bSMasahiro Yamada #define	ETXTBSY		26	/* Text file busy */
302c61551bSMasahiro Yamada #define	EFBIG		27	/* File too large */
312c61551bSMasahiro Yamada #define	ENOSPC		28	/* No space left on device */
322c61551bSMasahiro Yamada #define	ESPIPE		29	/* Illegal seek */
332c61551bSMasahiro Yamada #define	EROFS		30	/* Read-only file system */
342c61551bSMasahiro Yamada #define	EMLINK		31	/* Too many links */
352c61551bSMasahiro Yamada #define	EPIPE		32	/* Broken pipe */
362c61551bSMasahiro Yamada #define	EDOM		33	/* Math argument out of domain of func */
372c61551bSMasahiro Yamada #define	ERANGE		34	/* Math result not representable */
38*259ede11SMasahiro Yamada 
392c61551bSMasahiro Yamada #define	EDEADLK		35	/* Resource deadlock would occur */
402c61551bSMasahiro Yamada #define	ENAMETOOLONG	36	/* File name too long */
412c61551bSMasahiro Yamada #define	ENOLCK		37	/* No record locks available */
42*259ede11SMasahiro Yamada 
43*259ede11SMasahiro Yamada #define	ENOSYS		38	/* Invalid system call number */
44*259ede11SMasahiro Yamada 
452c61551bSMasahiro Yamada #define	ENOTEMPTY	39	/* Directory not empty */
462c61551bSMasahiro Yamada #define	ELOOP		40	/* Too many symbolic links encountered */
472c61551bSMasahiro Yamada #define	EWOULDBLOCK	EAGAIN	/* Operation would block */
482c61551bSMasahiro Yamada #define	ENOMSG		42	/* No message of desired type */
492c61551bSMasahiro Yamada #define	EIDRM		43	/* Identifier removed */
502c61551bSMasahiro Yamada #define	ECHRNG		44	/* Channel number out of range */
512c61551bSMasahiro Yamada #define	EL2NSYNC	45	/* Level 2 not synchronized */
522c61551bSMasahiro Yamada #define	EL3HLT		46	/* Level 3 halted */
532c61551bSMasahiro Yamada #define	EL3RST		47	/* Level 3 reset */
542c61551bSMasahiro Yamada #define	ELNRNG		48	/* Link number out of range */
552c61551bSMasahiro Yamada #define	EUNATCH		49	/* Protocol driver not attached */
562c61551bSMasahiro Yamada #define	ENOCSI		50	/* No CSI structure available */
572c61551bSMasahiro Yamada #define	EL2HLT		51	/* Level 2 halted */
582c61551bSMasahiro Yamada #define	EBADE		52	/* Invalid exchange */
592c61551bSMasahiro Yamada #define	EBADR		53	/* Invalid request descriptor */
602c61551bSMasahiro Yamada #define	EXFULL		54	/* Exchange full */
612c61551bSMasahiro Yamada #define	ENOANO		55	/* No anode */
622c61551bSMasahiro Yamada #define	EBADRQC		56	/* Invalid request code */
632c61551bSMasahiro Yamada #define	EBADSLT		57	/* Invalid slot */
642c61551bSMasahiro Yamada 
652c61551bSMasahiro Yamada #define	EDEADLOCK	EDEADLK
662c61551bSMasahiro Yamada 
672c61551bSMasahiro Yamada #define	EBFONT		59	/* Bad font file format */
682c61551bSMasahiro Yamada #define	ENOSTR		60	/* Device not a stream */
692c61551bSMasahiro Yamada #define	ENODATA		61	/* No data available */
702c61551bSMasahiro Yamada #define	ETIME		62	/* Timer expired */
712c61551bSMasahiro Yamada #define	ENOSR		63	/* Out of streams resources */
722c61551bSMasahiro Yamada #define	ENONET		64	/* Machine is not on the network */
732c61551bSMasahiro Yamada #define	ENOPKG		65	/* Package not installed */
742c61551bSMasahiro Yamada #define	EREMOTE		66	/* Object is remote */
752c61551bSMasahiro Yamada #define	ENOLINK		67	/* Link has been severed */
762c61551bSMasahiro Yamada #define	EADV		68	/* Advertise error */
772c61551bSMasahiro Yamada #define	ESRMNT		69	/* Srmount error */
782c61551bSMasahiro Yamada #define	ECOMM		70	/* Communication error on send */
792c61551bSMasahiro Yamada #define	EPROTO		71	/* Protocol error */
802c61551bSMasahiro Yamada #define	EMULTIHOP	72	/* Multihop attempted */
812c61551bSMasahiro Yamada #define	EDOTDOT		73	/* RFS specific error */
822c61551bSMasahiro Yamada #define	EBADMSG		74	/* Not a data message */
832c61551bSMasahiro Yamada #define	EOVERFLOW	75	/* Value too large for defined data type */
842c61551bSMasahiro Yamada #define	ENOTUNIQ	76	/* Name not unique on network */
852c61551bSMasahiro Yamada #define	EBADFD		77	/* File descriptor in bad state */
862c61551bSMasahiro Yamada #define	EREMCHG		78	/* Remote address changed */
872c61551bSMasahiro Yamada #define	ELIBACC		79	/* Can not access a needed shared library */
882c61551bSMasahiro Yamada #define	ELIBBAD		80	/* Accessing a corrupted shared library */
892c61551bSMasahiro Yamada #define	ELIBSCN		81	/* .lib section in a.out corrupted */
902c61551bSMasahiro Yamada #define	ELIBMAX		82	/* Attempting to link in too many shared libraries */
912c61551bSMasahiro Yamada #define	ELIBEXEC	83	/* Cannot exec a shared library directly */
922c61551bSMasahiro Yamada #define	EILSEQ		84	/* Illegal byte sequence */
932c61551bSMasahiro Yamada #define	ERESTART	85	/* Interrupted system call should be restarted */
942c61551bSMasahiro Yamada #define	ESTRPIPE	86	/* Streams pipe error */
952c61551bSMasahiro Yamada #define	EUSERS		87	/* Too many users */
962c61551bSMasahiro Yamada #define	ENOTSOCK	88	/* Socket operation on non-socket */
972c61551bSMasahiro Yamada #define	EDESTADDRREQ	89	/* Destination address required */
982c61551bSMasahiro Yamada #define	EMSGSIZE	90	/* Message too long */
992c61551bSMasahiro Yamada #define	EPROTOTYPE	91	/* Protocol wrong type for socket */
1002c61551bSMasahiro Yamada #define	ENOPROTOOPT	92	/* Protocol not available */
1012c61551bSMasahiro Yamada #define	EPROTONOSUPPORT	93	/* Protocol not supported */
1022c61551bSMasahiro Yamada #define	ESOCKTNOSUPPORT	94	/* Socket type not supported */
1032c61551bSMasahiro Yamada #define	EOPNOTSUPP	95	/* Operation not supported on transport endpoint */
1042c61551bSMasahiro Yamada #define	EPFNOSUPPORT	96	/* Protocol family not supported */
1052c61551bSMasahiro Yamada #define	EAFNOSUPPORT	97	/* Address family not supported by protocol */
1062c61551bSMasahiro Yamada #define	EADDRINUSE	98	/* Address already in use */
1072c61551bSMasahiro Yamada #define	EADDRNOTAVAIL	99	/* Cannot assign requested address */
1082c61551bSMasahiro Yamada #define	ENETDOWN	100	/* Network is down */
1092c61551bSMasahiro Yamada #define	ENETUNREACH	101	/* Network is unreachable */
1102c61551bSMasahiro Yamada #define	ENETRESET	102	/* Network dropped connection because of reset */
1112c61551bSMasahiro Yamada #define	ECONNABORTED	103	/* Software caused connection abort */
1122c61551bSMasahiro Yamada #define	ECONNRESET	104	/* Connection reset by peer */
1132c61551bSMasahiro Yamada #define	ENOBUFS		105	/* No buffer space available */
1142c61551bSMasahiro Yamada #define	EISCONN		106	/* Transport endpoint is already connected */
1152c61551bSMasahiro Yamada #define	ENOTCONN	107	/* Transport endpoint is not connected */
1162c61551bSMasahiro Yamada #define	ESHUTDOWN	108	/* Cannot send after transport endpoint shutdown */
1172c61551bSMasahiro Yamada #define	ETOOMANYREFS	109	/* Too many references: cannot splice */
1182c61551bSMasahiro Yamada #define	ETIMEDOUT	110	/* Connection timed out */
1192c61551bSMasahiro Yamada #define	ECONNREFUSED	111	/* Connection refused */
1202c61551bSMasahiro Yamada #define	EHOSTDOWN	112	/* Host is down */
1212c61551bSMasahiro Yamada #define	EHOSTUNREACH	113	/* No route to host */
1222c61551bSMasahiro Yamada #define	EALREADY	114	/* Operation already in progress */
1232c61551bSMasahiro Yamada #define	EINPROGRESS	115	/* Operation now in progress */
124*259ede11SMasahiro Yamada #define	ESTALE		116	/* Stale file handle */
1252c61551bSMasahiro Yamada #define	EUCLEAN		117	/* Structure needs cleaning */
1262c61551bSMasahiro Yamada #define	ENOTNAM		118	/* Not a XENIX named type file */
1272c61551bSMasahiro Yamada #define	ENAVAIL		119	/* No XENIX semaphores available */
1282c61551bSMasahiro Yamada #define	EISNAM		120	/* Is a named type file */
1292c61551bSMasahiro Yamada #define	EREMOTEIO	121	/* Remote I/O error */
1302c61551bSMasahiro Yamada #define	EDQUOT		122	/* Quota exceeded */
131*259ede11SMasahiro Yamada 
1322c61551bSMasahiro Yamada #define	ENOMEDIUM	123	/* No medium found */
1332c61551bSMasahiro Yamada #define	EMEDIUMTYPE	124	/* Wrong medium type */
134*259ede11SMasahiro Yamada #define	ECANCELED	125	/* Operation Canceled */
135*259ede11SMasahiro Yamada #define	ENOKEY		126	/* Required key not available */
136*259ede11SMasahiro Yamada #define	EKEYEXPIRED	127	/* Key has expired */
137*259ede11SMasahiro Yamada #define	EKEYREVOKED	128	/* Key has been revoked */
138*259ede11SMasahiro Yamada #define	EKEYREJECTED	129	/* Key was rejected by service */
139519d9424SMasahiro Yamada 
140*259ede11SMasahiro Yamada /* for robust mutexes */
141*259ede11SMasahiro Yamada #define	EOWNERDEAD	130	/* Owner died */
142*259ede11SMasahiro Yamada #define	ENOTRECOVERABLE	131	/* State not recoverable */
143*259ede11SMasahiro Yamada 
144*259ede11SMasahiro Yamada #define ERFKILL		132	/* Operation not possible due to RF-kill */
145*259ede11SMasahiro Yamada 
146*259ede11SMasahiro Yamada #define EHWPOISON	133	/* Memory page has hardware error */
147*259ede11SMasahiro Yamada 
148*259ede11SMasahiro Yamada #define ERESTARTSYS	512
149*259ede11SMasahiro Yamada #define ERESTARTNOINTR	513
150*259ede11SMasahiro Yamada #define ERESTARTNOHAND	514	/* restart if no handler.. */
151*259ede11SMasahiro Yamada #define ENOIOCTLCMD	515	/* No ioctl command */
152*259ede11SMasahiro Yamada #define ERESTART_RESTARTBLOCK 516 /* restart by calling sys_restart_syscall */
153*259ede11SMasahiro Yamada #define EPROBE_DEFER	517	/* Driver requests probe retry */
154*259ede11SMasahiro Yamada #define EOPENSTALE	518	/* open found a stale dentry */
155*259ede11SMasahiro Yamada 
156*259ede11SMasahiro Yamada /* Defined for the NFSv3 protocol */
157*259ede11SMasahiro Yamada #define EBADHANDLE	521	/* Illegal NFS file handle */
158*259ede11SMasahiro Yamada #define ENOTSYNC	522	/* Update synchronization mismatch */
159*259ede11SMasahiro Yamada #define EBADCOOKIE	523	/* Cookie is stale */
1604982f464SMasahiro Yamada #define ENOTSUPP	524	/* Operation is not supported */
161*259ede11SMasahiro Yamada #define ETOOSMALL	525	/* Buffer or request is too small */
162*259ede11SMasahiro Yamada #define ESERVERFAULT	526	/* An untranslatable error occurred */
163*259ede11SMasahiro Yamada #define EBADTYPE	527	/* Type not supported by server */
164*259ede11SMasahiro Yamada #define EJUKEBOX	528	/* Request initiated, but will not complete before timeout */
165*259ede11SMasahiro Yamada #define EIOCBQUEUED	529	/* iocb queued, will get completion event */
166*259ede11SMasahiro Yamada #define ERECALLCONFLICT	530	/* conflict with recalled state */
1674982f464SMasahiro Yamada 
168519d9424SMasahiro Yamada #endif
169