fix clock_nanosleep error case
authorDaniel Sabogal <dsabogalcc@gmail.com>
Sat, 17 Sep 2016 16:05:45 +0000 (12:05 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 20 Oct 2016 05:36:08 +0000 (01:36 -0400)
commit3ca2d2d4aef910663785fe232d7d2127a22d8a84
tree30d39c8da7287e3f92e61cc7b6d4a8c3c0683d5d
parent688d3da0f1730daddbc954bbc2d27cc96ceee04c
fix clock_nanosleep error case

posix requires that EINVAL be returned if the first parameter specifies
the cpu-time clock of the calling thread (CLOCK_THREAD_CPUTIME_ID).
linux returns ENOTSUP instead so we handle this.
src/time/clock_nanosleep.c