errno.h 369 B

123456789101112131415161718192021222324252627
  1. #ifndef _ERRNO_H
  2. #define _ERRNO_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <features.h>
  7. #include <bits/errno.h>
  8. #ifdef __GNUC__
  9. __attribute__((const))
  10. #endif
  11. int *__errno_location(void);
  12. #define errno (*__errno_location())
  13. #ifdef _GNU_SOURCE
  14. extern char *program_invocation_short_name, *program_invocation_name;
  15. #endif
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif