/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
atexit.c | 65 int pgsize = getpagesize(); local 68 if (pgsize < sizeof(*p)) 75 else if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) 79 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, 88 p->max = (pgsize - ((char *)&p->fns[0] - (char *)p)) / 97 if (mprotect(p, pgsize, PROT_READ)) 116 int n, pgsize = getpagesize(); local 136 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE) == 0) { 138 mprotect(p, pgsize, PROT_READ); 159 munmap(q, pgsize); 173 int pgsize = getpagesize(); local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
vsnprintf.c | 52 static int pgsize; variable 68 if (pgsize == 0) 69 pgsize = getpagesize(); 70 curobj = (char *)malloc(n + EXTRABYTES + pgsize * 2); 74 e = (char *)roundup((unsigned long)e, pgsize); 75 if (mprotect(e, pgsize, PROT_NONE) == -1) { 99 if (mprotect((caddr_t)(p + n + EXTRABYTES), pgsize, 101 mprotect((caddr_t)(p + n + EXTRABYTES), pgsize,
|
/external/mesa3d/src/mesa/main/ |
vsnprintf.c | 52 static int pgsize; variable 68 if (pgsize == 0) 69 pgsize = getpagesize(); 70 curobj = (char *)malloc(n + EXTRABYTES + pgsize * 2); 74 e = (char *)roundup((unsigned long)e, pgsize); 75 if (mprotect(e, pgsize, PROT_NONE) == -1) { 99 if (mprotect((caddr_t)(p + n + EXTRABYTES), pgsize, 101 mprotect((caddr_t)(p + n + EXTRABYTES), pgsize,
|
/external/blktrace/btreplay/ |
btreplay.c | 150 static size_t pgsize; // System Page size variable 314 for (i = 0; i < bsize; i += pgsize) 327 if (posix_memalign(&buf, pgsize, nbytes)) { [all...] |