Home
last modified time | relevance | path

Searched refs:pgsize (Results 1 – 1 of 1) sorted by relevance

/bionic/libc/stdlib/
Datexit.c65 int pgsize = getpagesize(); in __cxa_atexit() local
68 if (pgsize < (int)sizeof(*p)) in __cxa_atexit()
75 else if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __cxa_atexit()
79 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __cxa_atexit()
88 p->max = (pgsize - ((char *)&p->fns[0] - (char *)p)) / in __cxa_atexit()
99 if (mprotect(p, pgsize, PROT_READ)) in __cxa_atexit()
126 int n, pgsize = getpagesize(); in __cxa_finalize() local
146 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE) == 0) { in __cxa_finalize()
148 mprotect(p, pgsize, PROT_READ); in __cxa_finalize()
175 munmap(q, pgsize); in __cxa_finalize()
[all …]