__glibc_strerror_r.c 503 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (C) 2002 Manuel Novoa III
  3. * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. *
  5. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. */
  7. #include <features.h>
  8. #include <string.h>
  9. /* libc_hidden_proto(__glibc_strerror_r) */
  10. /* libc_hidden_proto(__xpg_strerror_r) */
  11. char *__glibc_strerror_r(int errnum, char *strerrbuf, size_t buflen)
  12. {
  13. __xpg_strerror_r(errnum, strerrbuf, buflen);
  14. return strerrbuf;
  15. }
  16. libc_hidden_def(__glibc_strerror_r)