Lines Matching refs:fn
134 struct atexit_fn fn;
137 fn.fn_type = ATEXIT_FN_STD;
138 fn.fn_ptr.std_func = func;
139 fn.fn_arg = NULL;
140 fn.fn_dso = NULL;
142 error = atexit_register(&fn);
153 struct atexit_fn fn;
163 fn.fn_type = ATEXIT_FN_CXA;
164 fn.fn_ptr.cxa_func = (void(*)(void*))GET_BLOCK_FUNCTION(func);
165 fn.fn_arg = func;
166 fn.fn_dso = NULL;
168 error = atexit_register(&fn);
179 struct atexit_fn fn;
182 fn.fn_type = ATEXIT_FN_CXA;
183 fn.fn_ptr.cxa_func = func;
184 fn.fn_arg = arg;
185 fn.fn_dso = dso;
187 error = atexit_register(&fn);
206 struct atexit_fn fn;
221 fn = p->fns[n];
222 if (dso != NULL && dso != fn.fn_dso) {
226 fn.fn_ptr.cxa_func))
237 if (fn.fn_type == ATEXIT_FN_CXA)
238 fn.fn_ptr.cxa_func(fn.fn_arg);
239 else if (fn.fn_type == ATEXIT_FN_STD)
240 fn.fn_ptr.std_func();