From: Andreas Schwab Date: Sun, 30 Nov 2003 16:44:48 +0000 (+0000) Subject: (PSEUDO_ERRVAL) (PSEUDO_END_ERRVAL, ret_ERRVAL): Define. X-Git-Tag: upstream/2.20~11555 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b92c66ced1cd9e00bf6e54b116d539a2d97abd95;p=platform%2Fupstream%2Flinaro-glibc.git (PSEUDO_ERRVAL) (PSEUDO_END_ERRVAL, ret_ERRVAL): Define. --- diff --git a/sysdeps/unix/sysv/linux/m68k/sysdep.h b/sysdeps/unix/sysv/linux/m68k/sysdep.h index aabd46f..3c6266b 100644 --- a/sysdeps/unix/sysv/linux/m68k/sysdep.h +++ b/sysdeps/unix/sysv/linux/m68k/sysdep.h @@ -78,7 +78,21 @@ #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