Searched refs:pgsize (Results 1 – 1 of 1) sorted by relevance
/bionic/libc/stdlib/ |
D | atexit.c | 84 size_t pgsize = getpagesize(); in __cxa_atexit() local 87 if (pgsize < sizeof(*p)) in __cxa_atexit() 94 else if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __cxa_atexit() 98 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __cxa_atexit() 103 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, p, pgsize, in __cxa_atexit() 111 p->max = (pgsize - ((char *)&p->fns[0] - (char *)p)) / in __cxa_atexit() 120 if (mprotect(p, pgsize, PROT_READ)) in __cxa_atexit() 139 int n, pgsize = getpagesize(); in __cxa_finalize() local 159 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE) == 0) { in __cxa_finalize() 161 mprotect(p, pgsize, PROT_READ); in __cxa_finalize() [all …]
|