#if 0 #include #include #include int thrd_create(thrd_t *thr, thrd_start_t func, void *arg) { SIGNAL_SAFE(0); /* can't detect overlap because arg size is unknown */ typedef void *(*pthread_start_fn)(void*); switch (pthread_create(thr, 0, (pthread_start_fn)func, arg)) { case 0: return thrd_success; case ENOMEM: return thrd_nomem; default: break; } return thrd_error; } CHECK_3(int, 0, thrd_create, thrd_t *, thrd_start_t, void *) /* STDC(201112) */ #endif