about summary refs log tree commit diff
path: root/src/time/clock_getres.c
Commit message (Collapse)AuthorAgeFilesLines
* in clock_getres, check for null pointer before storing resultRich Felker2019-08-071-1/+1
| | | | | POSIX allows a null pointer, in which case the function only checks the validity of the clock id argument.
* clock_getres: don't assume time_t is 32-bit on 32-bit archsRich Felker2019-07-291-0/+14
| | | | | | | | | | the time64 syscall for this is not necessary or useful, since clock resolution is generally better than 68-year granularity. if there's a 32-bit syscall, use it and expand the result into timespec; otherwise there is only one syscall and it does the right thing to store to timespec directly. on 64-bit archs, there is no change to the code after preprocessing.
* global cleanup to use the new syscall interfaceRich Felker2011-03-201-1/+1
|
* fix errno behavior in clock_* functionsRich Felker2011-03-101-1/+0
| | | | | | 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.
* implement the remaining clock_* interfacesRich Felker2011-02-191-0/+8