errno.h 562 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 ENOMEM 12
  17. #define EACCES 13
  18. #define EFAULT 14
  19. #define EEXIST 17
  20. #define ENODEV 19
  21. #define ENOTDIR 20
  22. #define EISDIR 21
  23. #define EINVAL 22
  24. #define ENOTTY 25
  25. #define ESPIPE 29
  26. #define EROFS 30
  27. #define EPIPE 32
  28. #define ELOOP 40
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif