1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 21da177e4SLinus Torvalds #ifndef _LINUX_ERRNO_H 31da177e4SLinus Torvalds #define _LINUX_ERRNO_H 41da177e4SLinus Torvalds 5607ca46eSDavid Howells #include <uapi/linux/errno.h> 61da177e4SLinus Torvalds 71da177e4SLinus Torvalds 862e5b05dSSatoru Takeuchi /* 962e5b05dSSatoru Takeuchi * These should never be seen by user programs. To return one of ERESTART* 1062e5b05dSSatoru Takeuchi * codes, signal_pending() MUST be set. Note that ptrace can observe these 1162e5b05dSSatoru Takeuchi * at syscall exit tracing, but they will never be left for the debugged user 1262e5b05dSSatoru Takeuchi * process to see. 1362e5b05dSSatoru Takeuchi */ 141da177e4SLinus Torvalds #define ERESTARTSYS 512 151da177e4SLinus Torvalds #define ERESTARTNOINTR 513 161da177e4SLinus Torvalds #define ERESTARTNOHAND 514 /* restart if no handler.. */ 171da177e4SLinus Torvalds #define ENOIOCTLCMD 515 /* No ioctl command */ 181da177e4SLinus Torvalds #define ERESTART_RESTARTBLOCK 516 /* restart by calling sys_restart_syscall */ 19d1c3414cSGrant Likely #define EPROBE_DEFER 517 /* Driver requests probe retry */ 2016b1c1cdSMiklos Szeredi #define EOPENSTALE 518 /* open found a stale dentry */ 2131d921c7SDavid Howells #define ENOPARAM 519 /* Parameter not supported */ 221da177e4SLinus Torvalds 231da177e4SLinus Torvalds /* Defined for the NFSv3 protocol */ 241da177e4SLinus Torvalds #define EBADHANDLE 521 /* Illegal NFS file handle */ 251da177e4SLinus Torvalds #define ENOTSYNC 522 /* Update synchronization mismatch */ 261da177e4SLinus Torvalds #define EBADCOOKIE 523 /* Cookie is stale */ 271da177e4SLinus Torvalds #define ENOTSUPP 524 /* Operation is not supported */ 281da177e4SLinus Torvalds #define ETOOSMALL 525 /* Buffer or request is too small */ 291da177e4SLinus Torvalds #define ESERVERFAULT 526 /* An untranslatable error occurred */ 301da177e4SLinus Torvalds #define EBADTYPE 527 /* Type not supported by server */ 311da177e4SLinus Torvalds #define EJUKEBOX 528 /* Request initiated, but will not complete before timeout */ 321da177e4SLinus Torvalds #define EIOCBQUEUED 529 /* iocb queued, will get completion event */ 33183d9e7bSJeff Layton #define ERECALLCONFLICT 530 /* conflict with recalled state */ 34*bb0a55bbSJ. Bruce Fields #define ENOGRACE 531 /* NFS file lock reclaim refused */ 351da177e4SLinus Torvalds 361da177e4SLinus Torvalds #endif 37