Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 25 Aug 2003 18:31:28 +0000 (18:31 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 25 Aug 2003 18:31:28 +0000 (18:31 +0000)
2003-08-25  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
(PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.

ChangeLog
sysdeps/unix/sysv/linux/arm/sysdep.h

index dcc0e62fb3dd8eab5fa4bb3361e157273dd4611a..ee55844c02383815eb12ad8bd74670afb338a32a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-25  Philip Blundell  <philb@gnu.org>
+
+       * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
+       (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
+
 2003-08-18  Alfred M. Szmidt  <ams@kemisten.nu>
 
        * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
index 47383aa7883a2357e06638c5a925b87eaa3d75e9..fda7c5b26706e977096bc27ca843c0b4e10c1435 100644 (file)
 #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                                 \