diff options
Diffstat (limited to 'libc/sysdeps/linux/csky/__syscall_error.c')
-rw-r--r-- | libc/sysdeps/linux/csky/__syscall_error.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/csky/__syscall_error.c b/libc/sysdeps/linux/csky/__syscall_error.c new file mode 100644 index 000000000..346ce8a92 --- /dev/null +++ b/libc/sysdeps/linux/csky/__syscall_error.c @@ -0,0 +1,9 @@ +#include <errno.h> +#include <features.h> + +int __syscall_error(int err_no) +{ + __set_errno(-err_no); + return -1; +} + |