Files
musl/src/thread/pthread_condattr_setclock.c
Rich Felker 0109d950e6 make pthread attribute types structs, even when they just have one field
this change is to get the right tags for C++ ABI matching. it should
have no other effects.
2013-07-22 13:57:02 -04:00

10 lines
198 B
C

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