From: Ulrich Drepper Date: Mon, 25 Aug 2003 18:31:28 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_3~339 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47ceb39de3ef6668215ee952b3b7ed99367bf969;p=platform%2Fupstream%2Fglibc.git Update. 2003-08-25 Philip Blundell * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define. (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise. --- diff --git a/ChangeLog b/ChangeLog index dcc0e62..ee55844 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-25 Philip Blundell + + * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define. + (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise. + 2003-08-18 Alfred M. Szmidt * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine diff --git a/sysdeps/unix/sysv/linux/arm/sysdep.h b/sysdeps/unix/sysv/linux/arm/sysdep.h index 47383aa..fda7c5b 100644 --- a/sysdeps/unix/sysv/linux/arm/sysdep.h +++ b/sysdeps/unix/sysv/linux/arm/sysdep.h @@ -80,6 +80,20 @@ #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 \