blob: d73f597a248491aa7cb180b78f9b7ecca0060969 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _LINUX_ERRNO_H
3#define _LINUX_ERRNO_H
4
David Howells607ca462012-10-13 10:46:48 +01005#include <uapi/linux/errno.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
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 */
Miklos Szeredi16b1c1c2012-05-21 17:30:19 +020020#define EOPENSTALE 518 /* open found a stale dentry */
David Howells31d921c2018-11-01 23:07:24 +000021#define ENOPARAM 519 /* Parameter not supported */
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
23/* Defined for the NFSv3 protocol */
24#define EBADHANDLE 521 /* Illegal NFS file handle */
25#define ENOTSYNC 522 /* Update synchronization mismatch */
26#define EBADCOOKIE 523 /* Cookie is stale */
27#define ENOTSUPP 524 /* Operation is not supported */
28#define ETOOSMALL 525 /* Buffer or request is too small */
29#define ESERVERFAULT 526 /* An untranslatable error occurred */
30#define EBADTYPE 527 /* Type not supported by server */
31#define EJUKEBOX 528 /* Request initiated, but will not complete before timeout */
32#define EIOCBQUEUED 529 /* iocb queued, will get completion event */
Jeff Layton183d9e72016-05-17 12:28:47 -040033#define ERECALLCONFLICT 530 /* conflict with recalled state */
Linus Torvalds1da177e2005-04-16 15:20:36 -070034
35#endif