__errno_location.c 410 B

12345678910111213141516
  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. int * weak_const_function __errno_location (void)
  9. {
  10. return &errno;
  11. }
  12. #ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */
  13. libc_hidden_weak(__errno_location)
  14. #endif