Searched refs:pgsize (Results 1 – 1 of 1) sorted by relevance
/bionic/libc/stdlib/ |
D | atexit.c | 80 size_t pgsize = getpagesize(); in __cxa_atexit() local 83 if (pgsize < sizeof(*p)) in __cxa_atexit() 90 else if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __cxa_atexit() 94 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __cxa_atexit() 103 p->max = (pgsize - ((char *)&p->fns[0] - (char *)p)) / in __cxa_atexit() 112 if (mprotect(p, pgsize, PROT_READ)) in __cxa_atexit() 131 int n, pgsize = getpagesize(); in __cxa_finalize() local 151 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE) == 0) { in __cxa_finalize() 153 mprotect(p, pgsize, PROT_READ); in __cxa_finalize() 174 munmap(q, pgsize); in __cxa_finalize() [all …]
|