musl/src/thread/pthread_condattr_setclock.c

10 lines
184 B
C
Raw Normal View History

#include "pthread_impl.h"
int pthread_condattr_setclock(pthread_condattr_t *a, clockid_t clk)
{
if (clk < 0 || clk-2U < 2) return EINVAL;
*a &= 0x80000000;
*a |= clk;
return 0;
}