Lines Matching refs:af
86 struct pthread_atfork *af; in _thr_atfork() local
90 if ((af = malloc(sizeof(struct pthread_atfork))) == NULL) in _thr_atfork()
94 af->prepare = prepare; in _thr_atfork()
95 af->parent = parent; in _thr_atfork()
96 af->child = child; in _thr_atfork()
99 TAILQ_INSERT_TAIL(&_thr_atfork_list, af, qe); in _thr_atfork()
110 struct pthread_atfork *af, *af1; in __pthread_cxa_finalize() local
117 TAILQ_FOREACH_SAFE(af, &_thr_atfork_list, qe, af1) { in __pthread_cxa_finalize()
118 if (__elf_phdr_match_addr(phdr_info, af->prepare) || in __pthread_cxa_finalize()
119 __elf_phdr_match_addr(phdr_info, af->parent) || in __pthread_cxa_finalize()
120 __elf_phdr_match_addr(phdr_info, af->child)) { in __pthread_cxa_finalize()
121 TAILQ_REMOVE(&_thr_atfork_list, af, qe); in __pthread_cxa_finalize()
122 TAILQ_INSERT_TAIL(&temp_list, af, qe); in __pthread_cxa_finalize()
127 while ((af = TAILQ_FIRST(&temp_list)) != NULL) { in __pthread_cxa_finalize()
128 TAILQ_REMOVE(&temp_list, af, qe); in __pthread_cxa_finalize()
129 free(af); in __pthread_cxa_finalize()
150 struct pthread_atfork *af; in thr_fork_impl() local
174 TAILQ_FOREACH_REVERSE(af, &_thr_atfork_list, atfork_head, qe) { in thr_fork_impl()
175 if (af->prepare != NULL) in thr_fork_impl()
176 af->prepare(); in thr_fork_impl()
267 TAILQ_FOREACH(af, &_thr_atfork_list, qe) { in thr_fork_impl()
268 if (af->child != NULL) in thr_fork_impl()
269 af->child(); in thr_fork_impl()
290 TAILQ_FOREACH(af, &_thr_atfork_list, qe) { in thr_fork_impl()
291 if (af->parent != NULL) in thr_fork_impl()
292 af->parent(); in thr_fork_impl()