errno.h 1.4 KB

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