* sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Diagnose EINVAL
authorRoland McGrath <roland@gnu.org>
Mon, 6 Dec 2004 22:29:01 +0000 (22:29 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 6 Dec 2004 22:29:01 +0000 (22:29 +0000)
commit60fce589e8c4b177ee5025269987476826ab6b0f
treeea2607535f536f8a8ec0df8fac85847b4d16648a
parentbc5cb1e6aaa5f50f7ec508c1f0c1d8a539da0fcd
* sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Diagnose EINVAL

for CLOCK_THREAD_CPUTIME_ID, not ENOTSUP.
Use SYSDEP_NANOSLEEP handler before validating CLOCK_ID value.

* rt/tst-timer4.c (TEST_CLOCK, TEST_CLOCK_NANOSLEEP): New macros.
Use them throughout in place of CLOCK_REALTIME and nanosleep.
(do_test) [TEST_CLOCK_MISSING]: Call this macro and if it returns
non-null, punt the test with a message using the string returned.
* rt/tst-timer5.c: New file.
* rt/Makefile (tests): Add it.
ChangeLog
sysdeps/unix/clock_nanosleep.c