xref: /openbmc/linux/arch/parisc/include/uapi/asm/errno.h (revision e0837630)
16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
270c1674fSDavid Howells #ifndef _PARISC_ERRNO_H
370c1674fSDavid Howells #define _PARISC_ERRNO_H
470c1674fSDavid Howells 
570c1674fSDavid Howells #include <asm-generic/errno-base.h>
670c1674fSDavid Howells 
770c1674fSDavid Howells #define	ENOMSG		35	/* No message of desired type */
870c1674fSDavid Howells #define	EIDRM		36	/* Identifier removed */
970c1674fSDavid Howells #define	ECHRNG		37	/* Channel number out of range */
1070c1674fSDavid Howells #define	EL2NSYNC	38	/* Level 2 not synchronized */
1170c1674fSDavid Howells #define	EL3HLT		39	/* Level 3 halted */
1270c1674fSDavid Howells #define	EL3RST		40	/* Level 3 reset */
1370c1674fSDavid Howells #define	ELNRNG		41	/* Link number out of range */
1470c1674fSDavid Howells #define	EUNATCH		42	/* Protocol driver not attached */
1570c1674fSDavid Howells #define	ENOCSI		43	/* No CSI structure available */
1670c1674fSDavid Howells #define	EL2HLT		44	/* Level 2 halted */
1770c1674fSDavid Howells #define	EDEADLK		45	/* Resource deadlock would occur */
1870c1674fSDavid Howells #define	EDEADLOCK	EDEADLK
1970c1674fSDavid Howells #define	ENOLCK		46	/* No record locks available */
2070c1674fSDavid Howells #define	EILSEQ		47	/* Illegal byte sequence */
2170c1674fSDavid Howells 
2270c1674fSDavid Howells #define	ENONET		50	/* Machine is not on the network */
2370c1674fSDavid Howells #define	ENODATA		51	/* No data available */
2470c1674fSDavid Howells #define	ETIME		52	/* Timer expired */
2570c1674fSDavid Howells #define	ENOSR		53	/* Out of streams resources */
2670c1674fSDavid Howells #define	ENOSTR		54	/* Device not a stream */
2770c1674fSDavid Howells #define	ENOPKG		55	/* Package not installed */
2870c1674fSDavid Howells 
2970c1674fSDavid Howells #define	ENOLINK		57	/* Link has been severed */
3070c1674fSDavid Howells #define	EADV		58	/* Advertise error */
3170c1674fSDavid Howells #define	ESRMNT		59	/* Srmount error */
3270c1674fSDavid Howells #define	ECOMM		60	/* Communication error on send */
3370c1674fSDavid Howells #define	EPROTO		61	/* Protocol error */
3470c1674fSDavid Howells 
3570c1674fSDavid Howells #define	EMULTIHOP	64	/* Multihop attempted */
3670c1674fSDavid Howells 
3770c1674fSDavid Howells #define	EDOTDOT		66	/* RFS specific error */
3870c1674fSDavid Howells #define	EBADMSG		67	/* Not a data message */
3970c1674fSDavid Howells #define	EUSERS		68	/* Too many users */
4070c1674fSDavid Howells #define	EDQUOT		69	/* Quota exceeded */
410ca43435SEric Sandeen #define	ESTALE		70	/* Stale file handle */
4270c1674fSDavid Howells #define	EREMOTE		71	/* Object is remote */
4370c1674fSDavid Howells #define	EOVERFLOW	72	/* Value too large for defined data type */
4470c1674fSDavid Howells 
4570c1674fSDavid Howells /* these errnos are defined by Linux but not HPUX. */
4670c1674fSDavid Howells 
4770c1674fSDavid Howells #define	EBADE		160	/* Invalid exchange */
4870c1674fSDavid Howells #define	EBADR		161	/* Invalid request descriptor */
4970c1674fSDavid Howells #define	EXFULL		162	/* Exchange full */
5070c1674fSDavid Howells #define	ENOANO		163	/* No anode */
5170c1674fSDavid Howells #define	EBADRQC		164	/* Invalid request code */
5270c1674fSDavid Howells #define	EBADSLT		165	/* Invalid slot */
5370c1674fSDavid Howells #define	EBFONT		166	/* Bad font file format */
5470c1674fSDavid Howells #define	ENOTUNIQ	167	/* Name not unique on network */
5570c1674fSDavid Howells #define	EBADFD		168	/* File descriptor in bad state */
5670c1674fSDavid Howells #define	EREMCHG		169	/* Remote address changed */
5770c1674fSDavid Howells #define	ELIBACC		170	/* Can not access a needed shared library */
5870c1674fSDavid Howells #define	ELIBBAD		171	/* Accessing a corrupted shared library */
5970c1674fSDavid Howells #define	ELIBSCN		172	/* .lib section in a.out corrupted */
6070c1674fSDavid Howells #define	ELIBMAX		173	/* Attempting to link in too many shared libraries */
6170c1674fSDavid Howells #define	ELIBEXEC	174	/* Cannot exec a shared library directly */
6270c1674fSDavid Howells #define	ERESTART	175	/* Interrupted system call should be restarted */
6370c1674fSDavid Howells #define	ESTRPIPE	176	/* Streams pipe error */
6470c1674fSDavid Howells #define	EUCLEAN		177	/* Structure needs cleaning */
6570c1674fSDavid Howells #define	ENOTNAM		178	/* Not a XENIX named type file */
6670c1674fSDavid Howells #define	ENAVAIL		179	/* No XENIX semaphores available */
6770c1674fSDavid Howells #define	EISNAM		180	/* Is a named type file */
6870c1674fSDavid Howells #define	EREMOTEIO	181	/* Remote I/O error */
6970c1674fSDavid Howells #define	ENOMEDIUM	182	/* No medium found */
7070c1674fSDavid Howells #define	EMEDIUMTYPE	183	/* Wrong medium type */
7170c1674fSDavid Howells #define	ENOKEY		184	/* Required key not available */
7270c1674fSDavid Howells #define	EKEYEXPIRED	185	/* Key has expired */
7370c1674fSDavid Howells #define	EKEYREVOKED	186	/* Key has been revoked */
7470c1674fSDavid Howells #define	EKEYREJECTED	187	/* Key was rejected by service */
7570c1674fSDavid Howells 
7670c1674fSDavid Howells /* We now return you to your regularly scheduled HPUX. */
7770c1674fSDavid Howells 
7870c1674fSDavid Howells #define	ENOTSOCK	216	/* Socket operation on non-socket */
7970c1674fSDavid Howells #define	EDESTADDRREQ	217	/* Destination address required */
8070c1674fSDavid Howells #define	EMSGSIZE	218	/* Message too long */
8170c1674fSDavid Howells #define	EPROTOTYPE	219	/* Protocol wrong type for socket */
8270c1674fSDavid Howells #define	ENOPROTOOPT	220	/* Protocol not available */
8370c1674fSDavid Howells #define	EPROTONOSUPPORT	221	/* Protocol not supported */
8470c1674fSDavid Howells #define	ESOCKTNOSUPPORT	222	/* Socket type not supported */
8570c1674fSDavid Howells #define	EOPNOTSUPP	223	/* Operation not supported on transport endpoint */
8670c1674fSDavid Howells #define	EPFNOSUPPORT	224	/* Protocol family not supported */
8770c1674fSDavid Howells #define	EAFNOSUPPORT	225	/* Address family not supported by protocol */
8870c1674fSDavid Howells #define	EADDRINUSE	226	/* Address already in use */
8970c1674fSDavid Howells #define	EADDRNOTAVAIL	227	/* Cannot assign requested address */
9070c1674fSDavid Howells #define	ENETDOWN	228	/* Network is down */
9170c1674fSDavid Howells #define	ENETUNREACH	229	/* Network is unreachable */
9270c1674fSDavid Howells #define	ENETRESET	230	/* Network dropped connection because of reset */
9370c1674fSDavid Howells #define	ECONNABORTED	231	/* Software caused connection abort */
9470c1674fSDavid Howells #define	ECONNRESET	232	/* Connection reset by peer */
9570c1674fSDavid Howells #define	ENOBUFS		233	/* No buffer space available */
9670c1674fSDavid Howells #define	EISCONN		234	/* Transport endpoint is already connected */
9770c1674fSDavid Howells #define	ENOTCONN	235	/* Transport endpoint is not connected */
9870c1674fSDavid Howells #define	ESHUTDOWN	236	/* Cannot send after transport endpoint shutdown */
9970c1674fSDavid Howells #define	ETOOMANYREFS	237	/* Too many references: cannot splice */
10070c1674fSDavid Howells #define	ETIMEDOUT	238	/* Connection timed out */
10170c1674fSDavid Howells #define	ECONNREFUSED	239	/* Connection refused */
1023eb53b20SHelge Deller #define	EREFUSED	ECONNREFUSED	/* for HP's NFS apparently */
10370c1674fSDavid Howells #define	EHOSTDOWN	241	/* Host is down */
10470c1674fSDavid Howells #define	EHOSTUNREACH	242	/* No route to host */
10570c1674fSDavid Howells 
10670c1674fSDavid Howells #define	EALREADY	244	/* Operation already in progress */
10770c1674fSDavid Howells #define	EINPROGRESS	245	/* Operation now in progress */
108f5a408d5SGuy Martin #define	EWOULDBLOCK	EAGAIN	/* Operation would block (Not HPUX compliant) */
10970c1674fSDavid Howells #define	ENOTEMPTY	247	/* Directory not empty */
11070c1674fSDavid Howells #define	ENAMETOOLONG	248	/* File name too long */
11170c1674fSDavid Howells #define	ELOOP		249	/* Too many symbolic links encountered */
11270c1674fSDavid Howells #define	ENOSYS		251	/* Function not implemented */
11370c1674fSDavid Howells 
11470c1674fSDavid Howells #define ECANCELLED	253	/* aio request was canceled before complete (POSIX.4 / HPUX) */
11570c1674fSDavid Howells #define ECANCELED	ECANCELLED	/* SuSv3 and Solaris wants one 'L' */
11670c1674fSDavid Howells 
11770c1674fSDavid Howells /* for robust mutexes */
11870c1674fSDavid Howells #define EOWNERDEAD	254	/* Owner died */
11970c1674fSDavid Howells #define ENOTRECOVERABLE	255	/* State not recoverable */
12070c1674fSDavid Howells 
12170c1674fSDavid Howells #define	ERFKILL		256	/* Operation not possible due to RF-kill */
12270c1674fSDavid Howells 
12370c1674fSDavid Howells #define EHWPOISON	257	/* Memory page has hardware error */
12470c1674fSDavid Howells 
12570c1674fSDavid Howells #endif
126