(PSEUDO_ERRVAL): Define.
authorUlrich Drepper <drepper@redhat.com>
Mon, 25 Aug 2003 18:30:43 +0000 (18:30 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 25 Aug 2003 18:30:43 +0000 (18:30 +0000)
(PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.

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

index 47383aa..fda7c5b 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                                 \