Bläddra i källkod

rename file and fix setting of errno

Mike Frysinger 18 år sedan
förälder
incheckning
3d4d05dbad

+ 1 - 1
libc/sysdeps/linux/alpha/Makefile.arch

@@ -5,7 +5,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
 
-CSRC := sysdep.c
+CSRC := __syscall_error.c
 
 SSRC := \
 	__longjmp.S brk.S bsd-_setjmp.S bsd-setjmp.S clone.S \

+ 4 - 3
libc/sysdeps/linux/alpha/sysdep.c → libc/sysdeps/linux/alpha/__syscall_error.c

@@ -8,8 +8,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);
-  return -1;
+	register int err_no __asm__("$0");
+	__set_errno (err_no);
+	return -1;
 }