blob: 2d09bfa5c2628a3e1e396350b7d9d14f1a2791c8 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _LINUX_ERRNO_H
2#define _LINUX_ERRNO_H
3
4#include <asm/errno.h>
5
6#ifdef __KERNEL__
7
Satoru Takeuchi62e5b052007-06-01 00:47:06 -07008/*
9 * These should never be seen by user programs. To return one of ERESTART*
10 * codes, signal_pending() MUST be set. Note that ptrace can observe these
11 * at syscall exit tracing, but they will never be left for the debugged user
12 * process to see.
13 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#define ERESTARTSYS 512
15#define ERESTARTNOINTR 513
16#define ERESTARTNOHAND 514 /* restart if no handler.. */
17#define ENOIOCTLCMD 515 /* No ioctl command */
18#define ERESTART_RESTARTBLOCK 516 /* restart by calling sys_restart_syscall */
Grant Likelyd1c34142012-03-05 08:47:41 -070019#define EPROBE_DEFER 517 /* Driver requests probe retry */
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
21/* Defined for the NFSv3 protocol */
22#define EBADHANDLE 521 /* Illegal NFS file handle */
23#define ENOTSYNC 522 /* Update synchronization mismatch */
24#define EBADCOOKIE 523 /* Cookie is stale */
25#define ENOTSUPP 524 /* Operation is not supported */
26#define ETOOSMALL 525 /* Buffer or request is too small */
27#define ESERVERFAULT 526 /* An untranslatable error occurred */
28#define EBADTYPE 527 /* Type not supported by server */
29#define EJUKEBOX 528 /* Request initiated, but will not complete before timeout */
30#define EIOCBQUEUED 529 /* iocb queued, will get completion event */
31#define EIOCBRETRY 530 /* iocb queued, will trigger a retry */
32
33#endif
34
35#endif