mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 15:11:55 +00:00
disallow cpu time clocks as condattr clock values
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
int pthread_condattr_setclock(pthread_condattr_t *a, clockid_t clk)
|
||||
{
|
||||
if (clk < 0) return EINVAL;
|
||||
if (clk < 0 || clk-2U < 2) return EINVAL;
|
||||
*a &= 0x80000000;
|
||||
*a |= clk;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user