sysdep.c 362 B

123456789101112131415
  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 <errno.h>
  7. /* This routine is jumped to by all the syscall handlers, to stash
  8. an error number into errno. */
  9. int attribute_hidden __syscall_error (int err_no)
  10. {
  11. __set_errno (err_no);
  12. return -1;
  13. }