about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mmap64.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-08-21 09:57:15 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-08-21 09:57:15 -0700
commite5dee2c896f04d88defdfa00282fa83f5f4004d8 (patch)
treecaebcffacffc0363dc418694eba18b2ce6b8617b /sysdeps/unix/sysv/linux/mmap64.c
parent8c7c251746ce41779637c83e3b35639517f728d5 (diff)
downloadglibc-e5dee2c896f04d88defdfa00282fa83f5f4004d8.tar.gz
glibc-e5dee2c896f04d88defdfa00282fa83f5f4004d8.tar.xz
glibc-e5dee2c896f04d88defdfa00282fa83f5f4004d8.zip
Revert "Add INLINE_SYSCALL_RETURN/INLINE_SYSCALL_ERROR_RETURN"
This reverts commit 0c5b8b5941e036dcaac69cecee9f01fdf9218e6e.
Diffstat (limited to 'sysdeps/unix/sysv/linux/mmap64.c')
-rw-r--r--sysdeps/unix/sysv/linux/mmap64.c14
1 files changed, 10 insertions, 4 deletions
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)