Skip to content

Commit

Permalink
(PSEUDO_ERRVAL) (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Nov 30, 2003
1 parent 8f69e64 commit b92c66c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion sysdeps/unix/sysv/linux/m68k/sysdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b92c66c

Please sign in to comment.