errno.h 492 B

12345678910111213141516171819202122232425262728293031323334
  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 ENOTDIR 20
  21. #define EISDIR 21
  22. #define EINVAL 22
  23. #define ENOTTY 25
  24. #define EPIPE 32
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif