Lines Matching refs:pgsize
65 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()
117 int n, pgsize = getpagesize(); in __cxa_finalize() local
138 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE) == 0) { in __cxa_finalize()
140 mprotect(p, pgsize, PROT_READ); in __cxa_finalize()
169 munmap(q, pgsize); in __cxa_finalize()
183 int pgsize = getpagesize(); in __atexit_register_cleanup() local
185 if (pgsize < (int)sizeof(*p)) in __atexit_register_cleanup()
192 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __atexit_register_cleanup()
197 p->max = (pgsize - ((char *)&p->fns[0] - (char *)p)) / in __atexit_register_cleanup()
204 if (mprotect(p, pgsize, PROT_READ | PROT_WRITE)) in __atexit_register_cleanup()
210 mprotect(p, pgsize, PROT_READ); in __atexit_register_cleanup()