errno.h 274 B

123456789101112131415161718192021
  1. #ifndef __ERRNO_H
  2. #define __ERRNO_H
  3. int __errno = 0;
  4. #define errno __errno
  5. // Defined by C standard
  6. #define EDOM 1
  7. #define EILSEQ 2
  8. #define ERANGE 3
  9. // Defined by POSIX
  10. #define EINVAL 50
  11. #define ENOENT 51
  12. #define ENOMEM 52
  13. // Defined by me
  14. #define ENOTIMPL 100
  15. #endif