summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/unix/sysv/linux/__syscall_error.c
diff options
context:
space:
mode:
authoraustinf <austinf@localhost>2009-03-19 07:29:30 +0000
committeraustinf <austinf@localhost>2009-03-19 07:29:30 +0000
commit2ea44632aac286a927069a1fb1f979db23c0b3c4 (patch)
tree405585f334c03e95c106924c03ed4642f80874a0 /libpthread/nptl/sysdeps/unix/sysv/linux/__syscall_error.c
parentd38a60ef0325122761dea450cc163ac036d896e7 (diff)
downloaduClibc-alpine-2ea44632aac286a927069a1fb1f979db23c0b3c4.tar.bz2
uClibc-alpine-2ea44632aac286a927069a1fb1f979db23c0b3c4.tar.xz
sparc32 nptl functional
* pulled updated asm and headers from glibc for sparc32 * probably no cancellation support yet * no shared TLS relocs yet, since ldso is hosed on sparc still note: didn't use TARGET_SUBARCH method of includes since that would cause other parts of libc to fail currently. Will need to be fixed later.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/__syscall_error.c')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/__syscall_error.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/__syscall_error.c b/libpthread/nptl/sysdeps/unix/sysv/linux/__syscall_error.c
new file mode 100644
index 000000000..5e109a83b
--- /dev/null
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/__syscall_error.c
@@ -0,0 +1,18 @@
+/* Wrapper for setting errno.
+ *
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <errno.h>
+#include <features.h>
+
+/* This routine is jumped to by all the syscall handlers, to stash
+ * an error number into errno. */
+int __syscall_error(int err_no) attribute_hidden;
+int __syscall_error(int err_no)
+{
+ __set_errno(err_no);
+ return -1;
+}