Skip to content

Commit 259ede1

Browse files
masahir0ytrini
authored andcommitted
errno.h: sync error macros with linux 4.8-rc7
For synchronization, import macros from - include/uapi/asm-generic/errno-base.h - include/uapi/asm-generic/errno.h - include/linux/errno.h of Linux 4.8-rc7. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 4982f46 commit 259ede1

1 file changed

Lines changed: 46 additions & 11 deletions

File tree

include/linux/errno.h

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#ifndef _LINUX_ERRNO_H
22
#define _LINUX_ERRNO_H
33

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 */
1313
#define ECHILD 10 /* No child processes */
1414
#define EAGAIN 11 /* Try again */
1515
#define ENOMEM 12 /* Out of memory */
@@ -35,10 +35,13 @@
3535
#define EPIPE 32 /* Broken pipe */
3636
#define EDOM 33 /* Math argument out of domain of func */
3737
#define ERANGE 34 /* Math result not representable */
38+
3839
#define EDEADLK 35 /* Resource deadlock would occur */
3940
#define ENAMETOOLONG 36 /* File name too long */
4041
#define ENOLCK 37 /* No record locks available */
41-
#define ENOSYS 38 /* Function not implemented */
42+
43+
#define ENOSYS 38 /* Invalid system call number */
44+
4245
#define ENOTEMPTY 39 /* Directory not empty */
4346
#define ELOOP 40 /* Too many symbolic links encountered */
4447
#define EWOULDBLOCK EAGAIN /* Operation would block */
@@ -118,16 +121,48 @@
118121
#define EHOSTUNREACH 113 /* No route to host */
119122
#define EALREADY 114 /* Operation already in progress */
120123
#define EINPROGRESS 115 /* Operation now in progress */
121-
#define ESTALE 116 /* Stale NFS file handle */
124+
#define ESTALE 116 /* Stale file handle */
122125
#define EUCLEAN 117 /* Structure needs cleaning */
123126
#define ENOTNAM 118 /* Not a XENIX named type file */
124127
#define ENAVAIL 119 /* No XENIX semaphores available */
125128
#define EISNAM 120 /* Is a named type file */
126129
#define EREMOTEIO 121 /* Remote I/O error */
127130
#define EDQUOT 122 /* Quota exceeded */
131+
128132
#define ENOMEDIUM 123 /* No medium found */
129133
#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 */
130155

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 */
131160
#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 */
132167

133168
#endif

0 commit comments

Comments
 (0)