svn commit: trunk/uClibc/libc/sysdeps/linux/m68k

vapier at uclibc.org vapier at uclibc.org
Sat Jan 14 06:59:09 UTC 2006


Author: vapier
Date: 2006-01-13 22:59:09 -0800 (Fri, 13 Jan 2006)
New Revision: 13307

Log:
make sure we set errno properly

Modified:
   trunk/uClibc/libc/sysdeps/linux/m68k/__syscall_error.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/m68k/__syscall_error.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/m68k/__syscall_error.c	2006-01-14 06:50:34 UTC (rev 13306)
+++ trunk/uClibc/libc/sysdeps/linux/m68k/__syscall_error.c	2006-01-14 06:59:09 UTC (rev 13307)
@@ -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;
 }




More information about the uClibc-cvs mailing list