(PSEUDO_ERRVAL)
authorAndreas Schwab <schwab@suse.de>
Sun, 30 Nov 2003 16:44:48 +0000 (16:44 +0000)
committerAndreas Schwab <schwab@suse.de>
Sun, 30 Nov 2003 16:44:48 +0000 (16:44 +0000)
(PSEUDO_END_ERRVAL, ret_ERRVAL): Define.

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

index aabd46f..3c6266b 100644 (file)
 #define PSEUDO_END_NOERRNO(name)                                             \
   END (name)
 
-#define ret_NOERRNO ret
+#define ret_NOERRNO rts
+
+/* 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);                                            \
+    negl %d0
+
+#undef PSEUDO_END_ERRVAL
+#define        PSEUDO_END_ERRVAL(name) \
+  END (name)
+
+#define ret_ERRVAL rts
 
 #ifdef PIC
 # if RTLD_PRIVATE_ERRNO