errno-base.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _ASM_GENERIC_ERRNO_BASE_H
  2. #define _ASM_GENERIC_ERRNO_BASE_H
  3. #define EPERM 1 /* Operation not permitted */
  4. #define ENOENT 2 /* No such file or directory */
  5. #define ESRCH 3 /* No such process */
  6. #define EINTR 4 /* Interrupted system call */
  7. #define EIO 5 /* I/O error */
  8. #define ENXIO 6 /* No such device or address */
  9. #define E2BIG 7 /* Argument list too long */
  10. #define ENOEXEC 8 /* Exec format error */
  11. #define EBADF 9 /* Bad file number */
  12. #define ECHILD 10 /* No child processes */
  13. #define EAGAIN 11 /* Try again */
  14. #define ENOMEM 12 /* Out of memory */
  15. #define EACCES 13 /* Permission denied */
  16. #define EFAULT 14 /* Bad address */
  17. #define ENOTBLK 15 /* Block device required */
  18. #define EBUSY 16 /* Device or resource busy */
  19. #define EEXIST 17 /* File exists */
  20. #define EXDEV 18 /* Cross-device link */
  21. #define ENODEV 19 /* No such device */
  22. #define ENOTDIR 20 /* Not a directory */
  23. #define EISDIR 21 /* Is a directory */
  24. #define EINVAL 22 /* Invalid argument */
  25. #define ENFILE 23 /* File table overflow */
  26. #define EMFILE 24 /* Too many open files */
  27. #define ENOTTY 25 /* Not a typewriter */
  28. #define ETXTBSY 26 /* Text file busy */
  29. #define EFBIG 27 /* File too large */
  30. #define ENOSPC 28 /* No space left on device */
  31. #define ESPIPE 29 /* Illegal seek */
  32. #define EROFS 30 /* Read-only file system */
  33. #define EMLINK 31 /* Too many links */
  34. #define EPIPE 32 /* Broken pipe */
  35. #define EDOM 33 /* Math argument out of domain of func */
  36. #define ERANGE 34 /* Math result not representable */
  37. #endif