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