Lines Matching refs:af
85 struct pthread_atfork *af; in _thr_atfork() local
89 if ((af = malloc(sizeof(struct pthread_atfork))) == NULL) in _thr_atfork()
93 af->prepare = prepare; in _thr_atfork()
94 af->parent = parent; in _thr_atfork()
95 af->child = child; in _thr_atfork()
98 TAILQ_INSERT_TAIL(&_thr_atfork_list, af, qe); in _thr_atfork()
109 struct pthread_atfork *af, *af1; in __pthread_cxa_finalize() local
116 TAILQ_FOREACH_SAFE(af, &_thr_atfork_list, qe, af1) { in __pthread_cxa_finalize()
117 if (__elf_phdr_match_addr(phdr_info, af->prepare) || in __pthread_cxa_finalize()
118 __elf_phdr_match_addr(phdr_info, af->parent) || in __pthread_cxa_finalize()
119 __elf_phdr_match_addr(phdr_info, af->child)) { in __pthread_cxa_finalize()
120 TAILQ_REMOVE(&_thr_atfork_list, af, qe); in __pthread_cxa_finalize()
121 TAILQ_INSERT_TAIL(&temp_list, af, qe); in __pthread_cxa_finalize()
126 while ((af = TAILQ_FIRST(&temp_list)) != NULL) { in __pthread_cxa_finalize()
127 TAILQ_REMOVE(&temp_list, af, qe); in __pthread_cxa_finalize()
128 free(af); in __pthread_cxa_finalize()
149 struct pthread_atfork *af; in thr_fork_impl() local
173 TAILQ_FOREACH_REVERSE(af, &_thr_atfork_list, atfork_head, qe) { in thr_fork_impl()
174 if (af->prepare != NULL) in thr_fork_impl()
175 af->prepare(); in thr_fork_impl()
268 TAILQ_FOREACH(af, &_thr_atfork_list, qe) { in thr_fork_impl()
269 if (af->child != NULL) in thr_fork_impl()
270 af->child(); in thr_fork_impl()
291 TAILQ_FOREACH(af, &_thr_atfork_list, qe) { in thr_fork_impl()
292 if (af->parent != NULL) in thr_fork_impl()
293 af->parent(); in thr_fork_impl()