errno.h 442 B

12345678910111213141516171819202122232425262728293031
  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 EBADF 9
  14. #define ECHILD 10
  15. #define ENOMEM 12
  16. #define EEXIST 17
  17. #define ENOTDIR 20
  18. #define EISDIR 21
  19. #define EINVAL 22
  20. #define ENOTTY 25
  21. #define EPIPE 32
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif