18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci#ifndef _PARISC_ERRNO_H
38c2ecf20Sopenharmony_ci#define _PARISC_ERRNO_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <asm-generic/errno-base.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#define	ENOMSG		35	/* No message of desired type */
88c2ecf20Sopenharmony_ci#define	EIDRM		36	/* Identifier removed */
98c2ecf20Sopenharmony_ci#define	ECHRNG		37	/* Channel number out of range */
108c2ecf20Sopenharmony_ci#define	EL2NSYNC	38	/* Level 2 not synchronized */
118c2ecf20Sopenharmony_ci#define	EL3HLT		39	/* Level 3 halted */
128c2ecf20Sopenharmony_ci#define	EL3RST		40	/* Level 3 reset */
138c2ecf20Sopenharmony_ci#define	ELNRNG		41	/* Link number out of range */
148c2ecf20Sopenharmony_ci#define	EUNATCH		42	/* Protocol driver not attached */
158c2ecf20Sopenharmony_ci#define	ENOCSI		43	/* No CSI structure available */
168c2ecf20Sopenharmony_ci#define	EL2HLT		44	/* Level 2 halted */
178c2ecf20Sopenharmony_ci#define	EDEADLK		45	/* Resource deadlock would occur */
188c2ecf20Sopenharmony_ci#define	EDEADLOCK	EDEADLK
198c2ecf20Sopenharmony_ci#define	ENOLCK		46	/* No record locks available */
208c2ecf20Sopenharmony_ci#define	EILSEQ		47	/* Illegal byte sequence */
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#define	ENONET		50	/* Machine is not on the network */
238c2ecf20Sopenharmony_ci#define	ENODATA		51	/* No data available */
248c2ecf20Sopenharmony_ci#define	ETIME		52	/* Timer expired */
258c2ecf20Sopenharmony_ci#define	ENOSR		53	/* Out of streams resources */
268c2ecf20Sopenharmony_ci#define	ENOSTR		54	/* Device not a stream */
278c2ecf20Sopenharmony_ci#define	ENOPKG		55	/* Package not installed */
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#define	ENOLINK		57	/* Link has been severed */
308c2ecf20Sopenharmony_ci#define	EADV		58	/* Advertise error */
318c2ecf20Sopenharmony_ci#define	ESRMNT		59	/* Srmount error */
328c2ecf20Sopenharmony_ci#define	ECOMM		60	/* Communication error on send */
338c2ecf20Sopenharmony_ci#define	EPROTO		61	/* Protocol error */
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#define	EMULTIHOP	64	/* Multihop attempted */
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#define	EDOTDOT		66	/* RFS specific error */
388c2ecf20Sopenharmony_ci#define	EBADMSG		67	/* Not a data message */
398c2ecf20Sopenharmony_ci#define	EUSERS		68	/* Too many users */
408c2ecf20Sopenharmony_ci#define	EDQUOT		69	/* Quota exceeded */
418c2ecf20Sopenharmony_ci#define	ESTALE		70	/* Stale file handle */
428c2ecf20Sopenharmony_ci#define	EREMOTE		71	/* Object is remote */
438c2ecf20Sopenharmony_ci#define	EOVERFLOW	72	/* Value too large for defined data type */
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci/* these errnos are defined by Linux but not HPUX. */
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci#define	EBADE		160	/* Invalid exchange */
488c2ecf20Sopenharmony_ci#define	EBADR		161	/* Invalid request descriptor */
498c2ecf20Sopenharmony_ci#define	EXFULL		162	/* Exchange full */
508c2ecf20Sopenharmony_ci#define	ENOANO		163	/* No anode */
518c2ecf20Sopenharmony_ci#define	EBADRQC		164	/* Invalid request code */
528c2ecf20Sopenharmony_ci#define	EBADSLT		165	/* Invalid slot */
538c2ecf20Sopenharmony_ci#define	EBFONT		166	/* Bad font file format */
548c2ecf20Sopenharmony_ci#define	ENOTUNIQ	167	/* Name not unique on network */
558c2ecf20Sopenharmony_ci#define	EBADFD		168	/* File descriptor in bad state */
568c2ecf20Sopenharmony_ci#define	EREMCHG		169	/* Remote address changed */
578c2ecf20Sopenharmony_ci#define	ELIBACC		170	/* Can not access a needed shared library */
588c2ecf20Sopenharmony_ci#define	ELIBBAD		171	/* Accessing a corrupted shared library */
598c2ecf20Sopenharmony_ci#define	ELIBSCN		172	/* .lib section in a.out corrupted */
608c2ecf20Sopenharmony_ci#define	ELIBMAX		173	/* Attempting to link in too many shared libraries */
618c2ecf20Sopenharmony_ci#define	ELIBEXEC	174	/* Cannot exec a shared library directly */
628c2ecf20Sopenharmony_ci#define	ERESTART	175	/* Interrupted system call should be restarted */
638c2ecf20Sopenharmony_ci#define	ESTRPIPE	176	/* Streams pipe error */
648c2ecf20Sopenharmony_ci#define	EUCLEAN		177	/* Structure needs cleaning */
658c2ecf20Sopenharmony_ci#define	ENOTNAM		178	/* Not a XENIX named type file */
668c2ecf20Sopenharmony_ci#define	ENAVAIL		179	/* No XENIX semaphores available */
678c2ecf20Sopenharmony_ci#define	EISNAM		180	/* Is a named type file */
688c2ecf20Sopenharmony_ci#define	EREMOTEIO	181	/* Remote I/O error */
698c2ecf20Sopenharmony_ci#define	ENOMEDIUM	182	/* No medium found */
708c2ecf20Sopenharmony_ci#define	EMEDIUMTYPE	183	/* Wrong medium type */
718c2ecf20Sopenharmony_ci#define	ENOKEY		184	/* Required key not available */
728c2ecf20Sopenharmony_ci#define	EKEYEXPIRED	185	/* Key has expired */
738c2ecf20Sopenharmony_ci#define	EKEYREVOKED	186	/* Key has been revoked */
748c2ecf20Sopenharmony_ci#define	EKEYREJECTED	187	/* Key was rejected by service */
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci/* We now return you to your regularly scheduled HPUX. */
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci#define	ENOTSOCK	216	/* Socket operation on non-socket */
798c2ecf20Sopenharmony_ci#define	EDESTADDRREQ	217	/* Destination address required */
808c2ecf20Sopenharmony_ci#define	EMSGSIZE	218	/* Message too long */
818c2ecf20Sopenharmony_ci#define	EPROTOTYPE	219	/* Protocol wrong type for socket */
828c2ecf20Sopenharmony_ci#define	ENOPROTOOPT	220	/* Protocol not available */
838c2ecf20Sopenharmony_ci#define	EPROTONOSUPPORT	221	/* Protocol not supported */
848c2ecf20Sopenharmony_ci#define	ESOCKTNOSUPPORT	222	/* Socket type not supported */
858c2ecf20Sopenharmony_ci#define	EOPNOTSUPP	223	/* Operation not supported on transport endpoint */
868c2ecf20Sopenharmony_ci#define	EPFNOSUPPORT	224	/* Protocol family not supported */
878c2ecf20Sopenharmony_ci#define	EAFNOSUPPORT	225	/* Address family not supported by protocol */
888c2ecf20Sopenharmony_ci#define	EADDRINUSE	226	/* Address already in use */
898c2ecf20Sopenharmony_ci#define	EADDRNOTAVAIL	227	/* Cannot assign requested address */
908c2ecf20Sopenharmony_ci#define	ENETDOWN	228	/* Network is down */
918c2ecf20Sopenharmony_ci#define	ENETUNREACH	229	/* Network is unreachable */
928c2ecf20Sopenharmony_ci#define	ENETRESET	230	/* Network dropped connection because of reset */
938c2ecf20Sopenharmony_ci#define	ECONNABORTED	231	/* Software caused connection abort */
948c2ecf20Sopenharmony_ci#define	ECONNRESET	232	/* Connection reset by peer */
958c2ecf20Sopenharmony_ci#define	ENOBUFS		233	/* No buffer space available */
968c2ecf20Sopenharmony_ci#define	EISCONN		234	/* Transport endpoint is already connected */
978c2ecf20Sopenharmony_ci#define	ENOTCONN	235	/* Transport endpoint is not connected */
988c2ecf20Sopenharmony_ci#define	ESHUTDOWN	236	/* Cannot send after transport endpoint shutdown */
998c2ecf20Sopenharmony_ci#define	ETOOMANYREFS	237	/* Too many references: cannot splice */
1008c2ecf20Sopenharmony_ci#define	ETIMEDOUT	238	/* Connection timed out */
1018c2ecf20Sopenharmony_ci#define	ECONNREFUSED	239	/* Connection refused */
1028c2ecf20Sopenharmony_ci#define	EREFUSED	ECONNREFUSED	/* for HP's NFS apparently */
1038c2ecf20Sopenharmony_ci#define	EHOSTDOWN	241	/* Host is down */
1048c2ecf20Sopenharmony_ci#define	EHOSTUNREACH	242	/* No route to host */
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ci#define	EALREADY	244	/* Operation already in progress */
1078c2ecf20Sopenharmony_ci#define	EINPROGRESS	245	/* Operation now in progress */
1088c2ecf20Sopenharmony_ci#define	EWOULDBLOCK	EAGAIN	/* Operation would block (Not HPUX compliant) */
1098c2ecf20Sopenharmony_ci#define	ENOTEMPTY	247	/* Directory not empty */
1108c2ecf20Sopenharmony_ci#define	ENAMETOOLONG	248	/* File name too long */
1118c2ecf20Sopenharmony_ci#define	ELOOP		249	/* Too many symbolic links encountered */
1128c2ecf20Sopenharmony_ci#define	ENOSYS		251	/* Function not implemented */
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ci#define ECANCELLED	253	/* aio request was canceled before complete (POSIX.4 / HPUX) */
1158c2ecf20Sopenharmony_ci#define ECANCELED	ECANCELLED	/* SuSv3 and Solaris wants one 'L' */
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ci/* for robust mutexes */
1188c2ecf20Sopenharmony_ci#define EOWNERDEAD	254	/* Owner died */
1198c2ecf20Sopenharmony_ci#define ENOTRECOVERABLE	255	/* State not recoverable */
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci#define	ERFKILL		256	/* Operation not possible due to RF-kill */
1228c2ecf20Sopenharmony_ci
1238c2ecf20Sopenharmony_ci#define EHWPOISON	257	/* Memory page has hardware error */
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_ci#endif
126