1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef _LINUX_ERRNO_H 3*4882a593Smuzhiyun #define _LINUX_ERRNO_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #include <uapi/linux/errno.h> 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun /* 9*4882a593Smuzhiyun * These should never be seen by user programs. To return one of ERESTART* 10*4882a593Smuzhiyun * codes, signal_pending() MUST be set. Note that ptrace can observe these 11*4882a593Smuzhiyun * at syscall exit tracing, but they will never be left for the debugged user 12*4882a593Smuzhiyun * process to see. 13*4882a593Smuzhiyun */ 14*4882a593Smuzhiyun #define ERESTARTSYS 512 15*4882a593Smuzhiyun #define ERESTARTNOINTR 513 16*4882a593Smuzhiyun #define ERESTARTNOHAND 514 /* restart if no handler.. */ 17*4882a593Smuzhiyun #define ENOIOCTLCMD 515 /* No ioctl command */ 18*4882a593Smuzhiyun #define ERESTART_RESTARTBLOCK 516 /* restart by calling sys_restart_syscall */ 19*4882a593Smuzhiyun #define EPROBE_DEFER 517 /* Driver requests probe retry */ 20*4882a593Smuzhiyun #define EOPENSTALE 518 /* open found a stale dentry */ 21*4882a593Smuzhiyun #define ENOPARAM 519 /* Parameter not supported */ 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun /* Defined for the NFSv3 protocol */ 24*4882a593Smuzhiyun #define EBADHANDLE 521 /* Illegal NFS file handle */ 25*4882a593Smuzhiyun #define ENOTSYNC 522 /* Update synchronization mismatch */ 26*4882a593Smuzhiyun #define EBADCOOKIE 523 /* Cookie is stale */ 27*4882a593Smuzhiyun #define ENOTSUPP 524 /* Operation is not supported */ 28*4882a593Smuzhiyun #define ETOOSMALL 525 /* Buffer or request is too small */ 29*4882a593Smuzhiyun #define ESERVERFAULT 526 /* An untranslatable error occurred */ 30*4882a593Smuzhiyun #define EBADTYPE 527 /* Type not supported by server */ 31*4882a593Smuzhiyun #define EJUKEBOX 528 /* Request initiated, but will not complete before timeout */ 32*4882a593Smuzhiyun #define EIOCBQUEUED 529 /* iocb queued, will get completion event */ 33*4882a593Smuzhiyun #define ERECALLCONFLICT 530 /* conflict with recalled state */ 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun #endif 36