projects/linux·blob master · refs

132 lines · 5.5 KiB

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