mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 15:20:10 +00:00
Fix vm_page_size visibility
* sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of vm_page_size.
This commit is contained in:
parent
b0b64e1b5e
commit
51a3985d97
@ -1,3 +1,8 @@
|
||||
2015-09-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
* sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
|
||||
vm_page_size.
|
||||
|
||||
2015-09-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
Really fix sysdeps/i386/fpu/s_scalbn.S build
|
||||
|
@ -41,7 +41,7 @@ __mmap (__ptr_t addr, size_t len, int prot, int flags, int fd, off_t offset)
|
||||
mapaddr = (vm_address_t) addr;
|
||||
|
||||
/* ADDR and OFFSET must be page-aligned. */
|
||||
if ((mapaddr & (vm_page_size - 1)) || (offset & (vm_page_size - 1)))
|
||||
if ((mapaddr & (__vm_page_size - 1)) || (offset & (__vm_page_size - 1)))
|
||||
return (__ptr_t) (long int) __hurd_fail (EINVAL);
|
||||
|
||||
if ((flags & (MAP_TYPE|MAP_INHERIT)) == MAP_ANON
|
||||
|
Loading…
Reference in New Issue
Block a user