errno.h 323 B

123456789101112131415161718192021222324
  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. int *__errno_location(void);
  9. #define errno (*__errno_location())
  10. #ifdef _GNU_SOURCE
  11. extern char *program_invocation_short_name, *program_invocation_name;
  12. #endif
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #endif