Skip to content

Commit

Permalink
Consistently use page_shift in sysdeps/unix/sysv/linux/mmap64.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Myers committed Jun 28, 2013
1 parent 0432680 commit 8fbec01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2013-06-28 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.

2013-06-28 Pierre Ynard <linkfanel@yahoo.fr>

[BZ #12492]
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/mmap64.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ __mmap64 (void *addr, size_t len, int prot, int flags, int fd, off64_t offset)
result = (void *)
INLINE_SYSCALL (mmap2, 6, addr,
len, prot, flags, fd,
(off_t) (offset >> MMAP2_PAGE_SHIFT));
(off_t) (offset >> page_shift));
return result;
}
weak_alias (__mmap64, mmap64)

0 comments on commit 8fbec01

Please sign in to comment.