fix errno behavior in clock_* functions
authorRich Felker <dalias@aerifal.cx>
Thu, 10 Mar 2011 14:54:23 +0000 (09:54 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 10 Mar 2011 14:54:23 +0000 (09:54 -0500)
commit1b538acb0ac8520a8a5fd828add2e52e1d2a41eb
tree571395eb5ef0076bedc78c7d2a10e0def30abad1
parent500c969f059dc1b12dc3809d270cb169abbd57d3
fix errno behavior in clock_* functions

these functions are specified inconsistent in whether they're
specified to return an error value, or return -1 and set errno.
hopefully now they all match what POSIX requires.
src/time/clock_getres.c
src/time/clock_gettime.c
src/time/clock_settime.c