mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Create variables for page size
This commit is contained in:
parent
23dfb79d33
commit
567d8fe32d
34 changed files with 137 additions and 101 deletions
|
@ -27,7 +27,7 @@
|
|||
static int __madvise(void *addr, size_t length, int advice) {
|
||||
|
||||
// simulate linux behavior of validating alignment
|
||||
if ((uintptr_t)addr & (getpagesize() - 1))
|
||||
if ((uintptr_t)addr & (__pagesize - 1))
|
||||
return einval();
|
||||
|
||||
// simulate linux behavior of checking for negative length
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue