Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _LINUX_ERRNO_H |
| 2 | #define _LINUX_ERRNO_H |
| 3 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 4 | #include <uapi/linux/errno.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
Satoru Takeuchi | 62e5b05 | 2007-06-01 00:47:06 -0700 | [diff] [blame] | 7 | /* |
| 8 | * These should never be seen by user programs. To return one of ERESTART* |
| 9 | * codes, signal_pending() MUST be set. Note that ptrace can observe these |
| 10 | * at syscall exit tracing, but they will never be left for the debugged user |
| 11 | * process to see. |
| 12 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #define ERESTARTSYS 512 |
| 14 | #define ERESTARTNOINTR 513 |
| 15 | #define ERESTARTNOHAND 514 /* restart if no handler.. */ |
| 16 | #define ENOIOCTLCMD 515 /* No ioctl command */ |
| 17 | #define ERESTART_RESTARTBLOCK 516 /* restart by calling sys_restart_syscall */ |
Grant Likely | d1c3414 | 2012-03-05 08:47:41 -0700 | [diff] [blame] | 18 | #define EPROBE_DEFER 517 /* Driver requests probe retry */ |
Miklos Szeredi | 16b1c1c | 2012-05-21 17:30:19 +0200 | [diff] [blame] | 19 | #define EOPENSTALE 518 /* open found a stale dentry */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
| 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 */ |
Jeff Layton | 183d9e7 | 2016-05-17 12:28:47 -0400 | [diff] [blame] | 31 | #define ERECALLCONFLICT 530 /* conflict with recalled state */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | |
| 33 | #endif |