errno.h 619 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __GBLIBC_ERRNO_H_
  2. #define __GBLIBC_ERRNO_H_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. extern int* __errno_location(void);
  7. #undef errno
  8. #define errno (*__errno_location())
  9. #define EPERM 1
  10. #define ENOENT 2
  11. #define ESRCH 3
  12. #define EINTR 4
  13. #define EIO 5
  14. #define EBADF 9
  15. #define ECHILD 10
  16. #define EAGAIN 11
  17. #define ENOMEM 12
  18. #define EACCES 13
  19. #define EFAULT 14
  20. #define EEXIST 17
  21. #define ENODEV 19
  22. #define ENOTDIR 20
  23. #define EISDIR 21
  24. #define EINVAL 22
  25. #define ENOTTY 25
  26. #define ESPIPE 29
  27. #define EROFS 30
  28. #define EPIPE 32
  29. #define ERANGE 34
  30. #define ELOOP 40
  31. #define EOVERFLOW 75
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif