mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
disallow cpu time clocks as condattr clock values
This commit is contained in:
parent
5d0d6d9836
commit
9d5251f72b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue