__errno_location.c 326 B

123456789101112
  1. #include <errno.h>
  2. #undef errno
  3. libc_hidden_proto(errno)
  4. /* psm: moved to bits/errno.h: libc_hidden_proto(__errno_location) */
  5. int * weak_const_function __errno_location (void)
  6. {
  7. return &errno;
  8. }
  9. #ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */
  10. libc_hidden_weak(__errno_location)
  11. #endif