Home
last modified time | relevance | path

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

/openbsd/lib/librthread/
H A Drthread_stack.c31 size_t guardsize; in _rthread_alloc_stack() local
75 stack->guardsize = 1; in _rthread_alloc_stack()
81 guardsize = ROUND_TO_PAGE(thread->attr.guard_size); in _rthread_alloc_stack()
85 guardsize < thread->attr.guard_size || in _rthread_alloc_stack()
86 SIZE_MAX - size < guardsize) { in _rthread_alloc_stack()
91 size += guardsize; in _rthread_alloc_stack()
102 guard = base + size - guardsize; in _rthread_alloc_stack()
110 if (guardsize != 0 && mprotect(guard, guardsize, PROT_NONE) == -1) { in _rthread_alloc_stack()
117 stack->guardsize = guardsize; in _rthread_alloc_stack()
126 stack->guardsize == _thread_pagesize) { in _rthread_free_stack()
[all …]
H A Drthread_attr.c74 pthread_attr_getguardsize(const pthread_attr_t *attrp, size_t *guardsize) in pthread_attr_getguardsize() argument
76 *guardsize = (*attrp)->guard_size; in pthread_attr_getguardsize()
82 pthread_attr_setguardsize(pthread_attr_t *attrp, size_t guardsize) in pthread_attr_setguardsize() argument
84 (*attrp)->guard_size = guardsize; in pthread_attr_setguardsize()
H A Drthread_np.c90 if (thread->stack->guardsize != 1) in pthread_stackseg_np()
91 sinfo->ss_size -= thread->stack->guardsize; in pthread_stackseg_np()
H A Drthread.h46 size_t guardsize; /* size of PROT_NONE zone or */ member
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4821 INTERCEPTOR_PTHREAD_ATTR_GET(guardsize, sizeof(SIZE_T))