1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#if 0 #include <threads.h> #include <pthread.h> void call_once(once_flag *flag, void (*func)(void)) { SIGNAL_SAFE(0); pthread_once(flag, func); } typedef void (*once_fn)(void); __vcheck_2(call_once, once_flag *, once_fn); /* STDC(201112) */ #endif