add experimental aarch64 support
[uclibc-ng.git] / libc / sysdeps / linux / aarch64 / __syscall_error.c
blob2b642e816e052cfb5accac7dc9e5d943be695219
1 /* Wrapper for setting errno.
3 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6 */
8 #include <errno.h>
9 #include <features.h>
11 /* This routine is jumped to by all the syscall handlers, to stash
12 * an error number into errno. */
13 int __syscall_error(int err_no) attribute_hidden;
14 int __syscall_error(int err_no)
16 __set_errno(-err_no);
17 return -1;