1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _PARISC_ERRNO_H
3 #define _PARISC_ERRNO_H
4 
5 #include <asm-generic/errno-base.h>
6 
7 #define	ENOMSG		35	/* No message of desired type */
8 #define	EIDRM		36	/* Identifier removed */
9 #define	ECHRNG		37	/* Channel number out of range */
10 #define	EL2NSYNC	38	/* Level 2 not synchronized */
11 #define	EL3HLT		39	/* Level 3 halted */
12 #define	EL3RST		40	/* Level 3 reset */
13 #define	ELNRNG		41	/* Link number out of range */
14 #define	EUNATCH		42	/* Protocol driver not attached */
15 #define	ENOCSI		43	/* No CSI structure available */
16 #define	EL2HLT		44	/* Level 2 halted */
17 #define	EDEADLK		45	/* Resource deadlock would occur */
18 #define	EDEADLOCK	EDEADLK
19 #define	ENOLCK		46	/* No record locks available */
20 #define	EILSEQ		47	/* Illegal byte sequence */
21 
22 #define	ENONET		50	/* Machine is not on the network */
23 #define	ENODATA		51	/* No data available */
24 #define	ETIME		52	/* Timer expired */
25 #define	ENOSR		53	/* Out of streams resources */
26 #define	ENOSTR		54	/* Device not a stream */
27 #define	ENOPKG		55	/* Package not installed */
28 
29 #define	ENOLINK		57	/* Link has been severed */
30 #define	EADV		58	/* Advertise error */
31 #define	ESRMNT		59	/* Srmount error */
32 #define	ECOMM		60	/* Communication error on send */
33 #define	EPROTO		61	/* Protocol error */
34 
35 #define	EMULTIHOP	64	/* Multihop attempted */
36 
37 #define	EDOTDOT		66	/* RFS specific error */
38 #define	EBADMSG		67	/* Not a data message */
39 #define	EUSERS		68	/* Too many users */
40 #define	EDQUOT		69	/* Quota exceeded */
41 #define	ESTALE		70	/* Stale file handle */
42 #define	EREMOTE		71	/* Object is remote */
43 #define	EOVERFLOW	72	/* Value too large for defined data type */
44 
45 /* these errnos are defined by Linux but not HPUX. */
46 
47 #define	EBADE		160	/* Invalid exchange */
48 #define	EBADR		161	/* Invalid request descriptor */
49 #define	EXFULL		162	/* Exchange full */
50 #define	ENOANO		163	/* No anode */
51 #define	EBADRQC		164	/* Invalid request code */
52 #define	EBADSLT		165	/* Invalid slot */
53 #define	EBFONT		166	/* Bad font file format */
54 #define	ENOTUNIQ	167	/* Name not unique on network */
55 #define	EBADFD		168	/* File descriptor in bad state */
56 #define	EREMCHG		169	/* Remote address changed */
57 #define	ELIBACC		170	/* Can not access a needed shared library */
58 #define	ELIBBAD		171	/* Accessing a corrupted shared library */
59 #define	ELIBSCN		172	/* .lib section in a.out corrupted */
60 #define	ELIBMAX		173	/* Attempting to link in too many shared libraries */
61 #define	ELIBEXEC	174	/* Cannot exec a shared library directly */
62 #define	ERESTART	175	/* Interrupted system call should be restarted */
63 #define	ESTRPIPE	176	/* Streams pipe error */
64 #define	EUCLEAN		177	/* Structure needs cleaning */
65 #define	ENOTNAM		178	/* Not a XENIX named type file */
66 #define	ENAVAIL		179	/* No XENIX semaphores available */
67 #define	EISNAM		180	/* Is a named type file */
68 #define	EREMOTEIO	181	/* Remote I/O error */
69 #define	ENOMEDIUM	182	/* No medium found */
70 #define	EMEDIUMTYPE	183	/* Wrong medium type */
71 #define	ENOKEY		184	/* Required key not available */
72 #define	EKEYEXPIRED	185	/* Key has expired */
73 #define	EKEYREVOKED	186	/* Key has been revoked */
74 #define	EKEYREJECTED	187	/* Key was rejected by service */
75 
76 /* We now return you to your regularly scheduled HPUX. */
77 
78 #define	ENOTSOCK	216	/* Socket operation on non-socket */
79 #define	EDESTADDRREQ	217	/* Destination address required */
80 #define	EMSGSIZE	218	/* Message too long */
81 #define	EPROTOTYPE	219	/* Protocol wrong type for socket */
82 #define	ENOPROTOOPT	220	/* Protocol not available */
83 #define	EPROTONOSUPPORT	221	/* Protocol not supported */
84 #define	ESOCKTNOSUPPORT	222	/* Socket type not supported */
85 #define	EOPNOTSUPP	223	/* Operation not supported on transport endpoint */
86 #define	EPFNOSUPPORT	224	/* Protocol family not supported */
87 #define	EAFNOSUPPORT	225	/* Address family not supported by protocol */
88 #define	EADDRINUSE	226	/* Address already in use */
89 #define	EADDRNOTAVAIL	227	/* Cannot assign requested address */
90 #define	ENETDOWN	228	/* Network is down */
91 #define	ENETUNREACH	229	/* Network is unreachable */
92 #define	ENETRESET	230	/* Network dropped connection because of reset */
93 #define	ECONNABORTED	231	/* Software caused connection abort */
94 #define	ECONNRESET	232	/* Connection reset by peer */
95 #define	ENOBUFS		233	/* No buffer space available */
96 #define	EISCONN		234	/* Transport endpoint is already connected */
97 #define	ENOTCONN	235	/* Transport endpoint is not connected */
98 #define	ESHUTDOWN	236	/* Cannot send after transport endpoint shutdown */
99 #define	ETOOMANYREFS	237	/* Too many references: cannot splice */
100 #define	ETIMEDOUT	238	/* Connection timed out */
101 #define	ECONNREFUSED	239	/* Connection refused */
102 #define	EREFUSED	ECONNREFUSED	/* for HP's NFS apparently */
103 #define	EHOSTDOWN	241	/* Host is down */
104 #define	EHOSTUNREACH	242	/* No route to host */
105 
106 #define	EALREADY	244	/* Operation already in progress */
107 #define	EINPROGRESS	245	/* Operation now in progress */
108 #define	EWOULDBLOCK	EAGAIN	/* Operation would block (Not HPUX compliant) */
109 #define	ENOTEMPTY	247	/* Directory not empty */
110 #define	ENAMETOOLONG	248	/* File name too long */
111 #define	ELOOP		249	/* Too many symbolic links encountered */
112 #define	ENOSYS		251	/* Function not implemented */
113 
114 #define ECANCELLED	253	/* aio request was canceled before complete (POSIX.4 / HPUX) */
115 #define ECANCELED	ECANCELLED	/* SuSv3 and Solaris wants one 'L' */
116 
117 /* for robust mutexes */
118 #define EOWNERDEAD	254	/* Owner died */
119 #define ENOTRECOVERABLE	255	/* State not recoverable */
120 
121 #define	ERFKILL		256	/* Operation not possible due to RF-kill */
122 
123 #define EHWPOISON	257	/* Memory page has hardware error */
124 
125 #endif
126