From e5dee2c896f04d88defdfa00282fa83f5f4004d8 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 21 Aug 2015 09:57:15 -0700 Subject: Revert "Add INLINE_SYSCALL_RETURN/INLINE_SYSCALL_ERROR_RETURN" This reverts commit 0c5b8b5941e036dcaac69cecee9f01fdf9218e6e. --- sysdeps/unix/sysv/linux/mmap64.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'sysdeps/unix/sysv/linux/mmap64.c') diff --git a/sysdeps/unix/sysv/linux/mmap64.c b/sysdeps/unix/sysv/linux/mmap64.c index 4dbe28b9c4..0b160b6f6b 100644 --- a/sysdeps/unix/sysv/linux/mmap64.c +++ b/sysdeps/unix/sysv/linux/mmap64.c @@ -46,9 +46,15 @@ __mmap64 (void *addr, size_t len, int prot, int flags, int fd, off64_t offset) } #endif if (offset & ((1 << page_shift) - 1)) - return INLINE_SYSCALL_ERROR_RETURN (-EINVAL, void *, MAP_FAILED); - return INLINE_SYSCALL_RETURN (mmap2, 6, void *, addr, - len, prot, flags, fd, - (off_t) (offset >> page_shift)); + { + __set_errno (EINVAL); + return MAP_FAILED; + } + void *result; + result = (void *) + INLINE_SYSCALL (mmap2, 6, addr, + len, prot, flags, fd, + (off_t) (offset >> page_shift)); + return result; } weak_alias (__mmap64, mmap64) -- cgit 1.4.1