1 2 3 4 5 6 7 8 9
#include "pthread_impl.h" int pthread_condattr_setclock(pthread_condattr_t *a, clockid_t clk) { if (clk < 0) return EINVAL; *a &= 0x80000000; *a |= clk; return 0; }