diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-14 06:59:09 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-14 06:59:09 +0000 |
commit | 43729917c23e5bc2bca66e2799063a4ae9e274f3 (patch) | |
tree | f8874e4cb6bd39ce56f20936000ad398341c74fc /libc/sysdeps/linux | |
parent | 27642466ffffba99a9128314e70813c5302b2581 (diff) |
make sure we set errno properly
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r-- | libc/sysdeps/linux/m68k/__syscall_error.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/m68k/__syscall_error.c b/libc/sysdeps/linux/m68k/__syscall_error.c index de65a1f39..d6ac82c12 100644 --- a/libc/sysdeps/linux/m68k/__syscall_error.c +++ b/libc/sysdeps/linux/m68k/__syscall_error.c @@ -22,8 +22,9 @@ /* This routine is jumped to by all the syscall handlers, to stash * an error number into errno. */ -int attribute_hidden __syscall_error(int err_no) +int attribute_hidden __syscall_error(void) { - __set_errno(err_no); + register int err_no asm("%d0"); + __set_errno(-err_no); return -1; } |