__syscall_error.c 210 B

1234567891011121314
  1. /*
  2. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB
  3. * in this tarball.
  4. */
  5. #include <errno.h>
  6. #include <features.h>
  7. long __syscall_error(int err_no)
  8. {
  9. __set_errno(-err_no);
  10. return -1;
  11. }