fix INLINE_SYSCALL for arm
Philip Blundell
Philip.Blundell@pobox.com
Thu Feb 20 20:12:00 GMT 2003
I needed this small patch to make the HEAD build on arm.
Thanks
p.
2003-02-20 Philip Blundell <philb@gnu.org>
* sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
missing arguments to INTERNAL_SYSCALL_ERROR_P and
INTERNAL_SYSCALL_ERRNO.
Index: sysdeps/unix/sysv/linux/arm/sysdep.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/arm/sysdep.h,v
retrieving revision 1.20
diff -u -r1.20 sysdep.h
--- sysdeps/unix/sysv/linux/arm/sysdep.h 9 Jan 2003 04:09:24 -0000 1.20
+++ sysdeps/unix/sysv/linux/arm/sysdep.h 20 Feb 2003 19:49:17 -0000
@@ -138,10 +138,10 @@
call. */
#undef INLINE_SYSCALL
#define INLINE_SYSCALL(name, nr, args...) \
- ({ unsigned int _sys_result = INTERNAL_SYSCALL (name, nr, args); \
- if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (_sys_result), 0)) \
+ ({ unsigned int _sys_result = INTERNAL_SYSCALL (name, , nr, args); \
+ if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (_sys_result, ), 0)) \
{ \
- __set_errno (INTERNAL_SYSCALL_ERRNO (_sys_result)); \
+ __set_errno (INTERNAL_SYSCALL_ERRNO (_sys_result, )); \
_sys_result = (unsigned int) -1; \
} \
(int) _sys_result; })
More information about the Libc-hacker
mailing list