projects/linux·blob master · refs

129 lines · 5.7 KiB

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 EFSBADCRC EBADMSG /* Bad CRC detected */
40#define EUSERS 68 /* Too many users */
41#define EDQUOT 69 /* Quota exceeded */
42#define ESTALE 70 /* Stale file handle */
43#define EREMOTE 71 /* Object is remote */
44#define EOVERFLOW 72 /* Value too large for defined data type */
45
46/* these errnos are defined by Linux but not HPUX. */
47
48#define EBADE 160 /* Invalid exchange */
49#define EBADR 161 /* Invalid request descriptor */
50#define EXFULL 162 /* Exchange full */
51#define ENOANO 163 /* No anode */
52#define EBADRQC 164 /* Invalid request code */
53#define EBADSLT 165 /* Invalid slot */
54#define EBFONT 166 /* Bad font file format */
55#define ENOTUNIQ 167 /* Name not unique on network */
56#define EBADFD 168 /* File descriptor in bad state */
57#define EREMCHG 169 /* Remote address changed */
58#define ELIBACC 170 /* Can not access a needed shared library */
59#define ELIBBAD 171 /* Accessing a corrupted shared library */
60#define ELIBSCN 172 /* .lib section in a.out corrupted */
61#define ELIBMAX 173 /* Attempting to link in too many shared libraries */
62#define ELIBEXEC 174 /* Cannot exec a shared library directly */
63#define ERESTART 175 /* Interrupted system call should be restarted */
64#define ESTRPIPE 176 /* Streams pipe error */
65#define EUCLEAN 177 /* Structure needs cleaning */
66#define EFSCORRUPTED EUCLEAN /* Filesystem is corrupted */
67#define ENOTNAM 178 /* Not a XENIX named type file */
68#define ENAVAIL 179 /* No XENIX semaphores available */
69#define EISNAM 180 /* Is a named type file */
70#define EREMOTEIO 181 /* Remote I/O error */
71#define ENOMEDIUM 182 /* No medium found */
72#define EMEDIUMTYPE 183 /* Wrong medium type */
73#define ENOKEY 184 /* Required key not available */
74#define EKEYEXPIRED 185 /* Key has expired */
75#define EKEYREVOKED 186 /* Key has been revoked */
76#define EKEYREJECTED 187 /* Key was rejected by service */
77
78/* We now return you to your regularly scheduled HPUX. */
79
80#define ENOTSOCK 216 /* Socket operation on non-socket */
81#define EDESTADDRREQ 217 /* Destination address required */
82#define EMSGSIZE 218 /* Message too long */
83#define EPROTOTYPE 219 /* Protocol wrong type for socket */
84#define ENOPROTOOPT 220 /* Protocol not available */
85#define EPROTONOSUPPORT 221 /* Protocol not supported */
86#define ESOCKTNOSUPPORT 222 /* Socket type not supported */
87#define EOPNOTSUPP 223 /* Operation not supported on transport endpoint */
88#define EPFNOSUPPORT 224 /* Protocol family not supported */
89#define EAFNOSUPPORT 225 /* Address family not supported by protocol */
90#define EADDRINUSE 226 /* Address already in use */
91#define EADDRNOTAVAIL 227 /* Cannot assign requested address */
92#define ENETDOWN 228 /* Network is down */
93#define ENETUNREACH 229 /* Network is unreachable */
94#define ENETRESET 230 /* Network dropped connection because of reset */
95#define ECONNABORTED 231 /* Software caused connection abort */
96#define ECONNRESET 232 /* Connection reset by peer */
97#define ENOBUFS 233 /* No buffer space available */
98#define EISCONN 234 /* Transport endpoint is already connected */
99#define ENOTCONN 235 /* Transport endpoint is not connected */
100#define ESHUTDOWN 236 /* Cannot send after transport endpoint shutdown */
101#define ETOOMANYREFS 237 /* Too many references: cannot splice */
102#define ETIMEDOUT 238 /* Connection timed out */
103#define ECONNREFUSED 239 /* Connection refused */
104#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
105#define EHOSTDOWN 241 /* Host is down */
106#define EHOSTUNREACH 242 /* No route to host */
107
108#define EALREADY 244 /* Operation already in progress */
109#define EINPROGRESS 245 /* Operation now in progress */
110#define EWOULDBLOCK EAGAIN /* Operation would block (Not HPUX compliant) */
111#define ENOTEMPTY 247 /* Directory not empty */
112#define ENAMETOOLONG 248 /* File name too long */
113#define ELOOP 249 /* Too many symbolic links encountered */
114#define ENOSYS 251 /* Function not implemented */
115
116#define ECANCELLED 253 /* aio request was canceled before complete (POSIX.4 / HPUX) */
117#define ECANCELED ECANCELLED /* SuSv3 and Solaris wants one 'L' */
118
119/* for robust mutexes */
120#define EOWNERDEAD 254 /* Owner died */
121#define ENOTRECOVERABLE 255 /* State not recoverable */
122
123#define ERFKILL 256 /* Operation not possible due to RF-kill */
124
125#define EHWPOISON 257 /* Memory page has hardware error */
126
127#define EFTYPE 258 /* Wrong file type for the intended operation */
128
129#endif