__errno_location.c 452 B

1234567891011121314151617
  1. /*
  2. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  3. *
  4. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  5. */
  6. #include "internal_errno.h"
  7. /* psm: moved to bits/errno.h: */
  8. /* libc_hidden_proto(__errno_location) */
  9. int * weak_const_function __errno_location (void)
  10. {
  11. return &errno;
  12. }
  13. #ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */
  14. libc_hidden_weak(__errno_location)
  15. #endif