aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/arm
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-08-25 18:31:28 +0000
committerUlrich Drepper <drepper@redhat.com>2003-08-25 18:31:28 +0000
commit47ceb39de3ef6668215ee952b3b7ed99367bf969 (patch)
tree983597295ab27a6f536d8f5772458c2b806e1b07 /sysdeps/unix/sysv/linux/arm
parentbb606fbeafd49b762929393c1b21e629a09322c9 (diff)
downloadglibc-47ceb39de3ef6668215ee952b3b7ed99367bf969.tar
glibc-47ceb39de3ef6668215ee952b3b7ed99367bf969.tar.gz
glibc-47ceb39de3ef6668215ee952b3b7ed99367bf969.tar.bz2
glibc-47ceb39de3ef6668215ee952b3b7ed99367bf969.zip
Update.
2003-08-25 Philip Blundell <philb@gnu.org> * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define. (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/arm')
-rw-r--r--sysdeps/unix/sysv/linux/arm/sysdep.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/sysdep.h b/sysdeps/unix/sysv/linux/arm/sysdep.h
index 47383aa788..fda7c5b267 100644
--- a/sysdeps/unix/sysv/linux/arm/sysdep.h
+++ b/sysdeps/unix/sysv/linux/arm/sysdep.h
@@ -80,6 +80,20 @@
#define PSEUDO_END_NOERRNO(name) \
END (name)
+/* The function has to return the error code. */
+#undef PSEUDO_ERRVAL
+#define PSEUDO_ERRVAL(name, syscall_name, args) \
+ .text; \
+ ENTRY (name) \
+ DO_CALL (syscall_name, args); \
+ rsb r0, r0, #0
+
+#undef PSEUDO_END_ERRVAL
+#define PSEUDO_END_ERRVAL(name) \
+ END (name)
+
+#define ret_ERRVAL PSEUDO_RET_NOERRNO
+
#if NOT_IN_libc
# define SYSCALL_ERROR __local_syscall_error
# define SYSCALL_ERROR_HANDLER \