svn commit: trunk/uClibc/libc/sysdeps/linux/alpha
vapier at uclibc.org
vapier at uclibc.org
Sun Feb 19 10:37:22 UTC 2006
Author: vapier
Date: 2006-02-19 02:37:20 -0800 (Sun, 19 Feb 2006)
New Revision: 14129
Log:
rename file and fix setting of errno
Added:
trunk/uClibc/libc/sysdeps/linux/alpha/__syscall_error.c
Removed:
trunk/uClibc/libc/sysdeps/linux/alpha/sysdep.c
Modified:
trunk/uClibc/libc/sysdeps/linux/alpha/Makefile.arch
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/alpha/Makefile.arch
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/alpha/Makefile.arch 2006-02-19 10:25:12 UTC (rev 14128)
+++ trunk/uClibc/libc/sysdeps/linux/alpha/Makefile.arch 2006-02-19 10:37:20 UTC (rev 14129)
@@ -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 \
Copied: trunk/uClibc/libc/sysdeps/linux/alpha/__syscall_error.c (from rev 14127, trunk/uClibc/libc/sysdeps/linux/alpha/sysdep.c)
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/alpha/sysdep.c 2006-02-19 09:52:25 UTC (rev 14127)
+++ trunk/uClibc/libc/sysdeps/linux/alpha/__syscall_error.c 2006-02-19 10:37:20 UTC (rev 14129)
@@ -0,0 +1,16 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen at uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <errno.h>
+
+/* This routine is jumped to by all the syscall handlers, to stash
+ an error number into errno. */
+int attribute_hidden __syscall_error (void)
+{
+ register int err_no __asm__("$0");
+ __set_errno (err_no);
+ return -1;
+}
Deleted: trunk/uClibc/libc/sysdeps/linux/alpha/sysdep.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/alpha/sysdep.c 2006-02-19 10:25:12 UTC (rev 14128)
+++ trunk/uClibc/libc/sysdeps/linux/alpha/sysdep.c 2006-02-19 10:37:20 UTC (rev 14129)
@@ -1,15 +0,0 @@
-/*
- * Copyright (C) 2000-2006 Erik Andersen <andersen at uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#include <errno.h>
-
-/* 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)
-{
- __set_errno (err_no);
- return -1;
-}
More information about the uClibc-cvs
mailing list