|
1 | 1 | #ifndef _LINUX_ERRNO_H |
2 | 2 | #define _LINUX_ERRNO_H |
3 | 3 |
|
4 | | -#define EPERM 1 /* Operation not permitted */ |
5 | | -#define ENOENT 2 /* No such file or directory */ |
6 | | -#define ESRCH 3 /* No such process */ |
7 | | -#define EINTR 4 /* Interrupted system call */ |
8 | | -#define EIO 5 /* I/O error */ |
9 | | -#define ENXIO 6 /* No such device or address */ |
10 | | -#define E2BIG 7 /* Argument list too long */ |
11 | | -#define ENOEXEC 8 /* Exec format error */ |
12 | | -#define EBADF 9 /* Bad file number */ |
| 4 | +#define EPERM 1 /* Operation not permitted */ |
| 5 | +#define ENOENT 2 /* No such file or directory */ |
| 6 | +#define ESRCH 3 /* No such process */ |
| 7 | +#define EINTR 4 /* Interrupted system call */ |
| 8 | +#define EIO 5 /* I/O error */ |
| 9 | +#define ENXIO 6 /* No such device or address */ |
| 10 | +#define E2BIG 7 /* Argument list too long */ |
| 11 | +#define ENOEXEC 8 /* Exec format error */ |
| 12 | +#define EBADF 9 /* Bad file number */ |
13 | 13 | #define ECHILD 10 /* No child processes */ |
14 | 14 | #define EAGAIN 11 /* Try again */ |
15 | 15 | #define ENOMEM 12 /* Out of memory */ |
|
35 | 35 | #define EPIPE 32 /* Broken pipe */ |
36 | 36 | #define EDOM 33 /* Math argument out of domain of func */ |
37 | 37 | #define ERANGE 34 /* Math result not representable */ |
| 38 | + |
38 | 39 | #define EDEADLK 35 /* Resource deadlock would occur */ |
39 | 40 | #define ENAMETOOLONG 36 /* File name too long */ |
40 | 41 | #define ENOLCK 37 /* No record locks available */ |
41 | | -#define ENOSYS 38 /* Function not implemented */ |
| 42 | + |
| 43 | +#define ENOSYS 38 /* Invalid system call number */ |
| 44 | + |
42 | 45 | #define ENOTEMPTY 39 /* Directory not empty */ |
43 | 46 | #define ELOOP 40 /* Too many symbolic links encountered */ |
44 | 47 | #define EWOULDBLOCK EAGAIN /* Operation would block */ |
|
118 | 121 | #define EHOSTUNREACH 113 /* No route to host */ |
119 | 122 | #define EALREADY 114 /* Operation already in progress */ |
120 | 123 | #define EINPROGRESS 115 /* Operation now in progress */ |
121 | | -#define ESTALE 116 /* Stale NFS file handle */ |
| 124 | +#define ESTALE 116 /* Stale file handle */ |
122 | 125 | #define EUCLEAN 117 /* Structure needs cleaning */ |
123 | 126 | #define ENOTNAM 118 /* Not a XENIX named type file */ |
124 | 127 | #define ENAVAIL 119 /* No XENIX semaphores available */ |
125 | 128 | #define EISNAM 120 /* Is a named type file */ |
126 | 129 | #define EREMOTEIO 121 /* Remote I/O error */ |
127 | 130 | #define EDQUOT 122 /* Quota exceeded */ |
| 131 | + |
128 | 132 | #define ENOMEDIUM 123 /* No medium found */ |
129 | 133 | #define EMEDIUMTYPE 124 /* Wrong medium type */ |
| 134 | +#define ECANCELED 125 /* Operation Canceled */ |
| 135 | +#define ENOKEY 126 /* Required key not available */ |
| 136 | +#define EKEYEXPIRED 127 /* Key has expired */ |
| 137 | +#define EKEYREVOKED 128 /* Key has been revoked */ |
| 138 | +#define EKEYREJECTED 129 /* Key was rejected by service */ |
| 139 | + |
| 140 | +/* for robust mutexes */ |
| 141 | +#define EOWNERDEAD 130 /* Owner died */ |
| 142 | +#define ENOTRECOVERABLE 131 /* State not recoverable */ |
| 143 | + |
| 144 | +#define ERFKILL 132 /* Operation not possible due to RF-kill */ |
| 145 | + |
| 146 | +#define EHWPOISON 133 /* Memory page has hardware error */ |
| 147 | + |
| 148 | +#define ERESTARTSYS 512 |
| 149 | +#define ERESTARTNOINTR 513 |
| 150 | +#define ERESTARTNOHAND 514 /* restart if no handler.. */ |
| 151 | +#define ENOIOCTLCMD 515 /* No ioctl command */ |
| 152 | +#define ERESTART_RESTARTBLOCK 516 /* restart by calling sys_restart_syscall */ |
| 153 | +#define EPROBE_DEFER 517 /* Driver requests probe retry */ |
| 154 | +#define EOPENSTALE 518 /* open found a stale dentry */ |
130 | 155 |
|
| 156 | +/* Defined for the NFSv3 protocol */ |
| 157 | +#define EBADHANDLE 521 /* Illegal NFS file handle */ |
| 158 | +#define ENOTSYNC 522 /* Update synchronization mismatch */ |
| 159 | +#define EBADCOOKIE 523 /* Cookie is stale */ |
131 | 160 | #define ENOTSUPP 524 /* Operation is not supported */ |
| 161 | +#define ETOOSMALL 525 /* Buffer or request is too small */ |
| 162 | +#define ESERVERFAULT 526 /* An untranslatable error occurred */ |
| 163 | +#define EBADTYPE 527 /* Type not supported by server */ |
| 164 | +#define EJUKEBOX 528 /* Request initiated, but will not complete before timeout */ |
| 165 | +#define EIOCBQUEUED 529 /* iocb queued, will get completion event */ |
| 166 | +#define ERECALLCONFLICT 530 /* conflict with recalled state */ |
132 | 167 |
|
133 | 168 | #endif |
0 commit comments