From 2ea44632aac286a927069a1fb1f979db23c0b3c4 Mon Sep 17 00:00:00 2001 From: austinf Date: Thu, 19 Mar 2009 07:29:30 +0000 Subject: 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. --- .../nptl/sysdeps/unix/sysv/linux/__syscall_error.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libpthread/nptl/sysdeps/unix/sysv/linux/__syscall_error.c (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/__syscall_error.c') 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 + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include +#include + +/* 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; +} -- cgit v1.2.3