errno.h 256 B

123456789101112131415161718192021
  1. #ifndef _ERRNO_H
  2. #define _ERRNO_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <bits/errno.h>
  7. #ifdef __GNUC__
  8. __attribute__((const))
  9. #endif
  10. extern int *__errno_location(void);
  11. #define errno (*__errno_location())
  12. #ifdef __cplusplus
  13. }
  14. #endif
  15. #endif