1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Document times(2) as obsolete.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-01-19 00:21:31 +01:00
parent b7bf21bfff
commit abbcc3941b

View file

@ -212,6 +212,18 @@ sys/timeb.h
This is a header that contains the ftime function that has been replaced, this This is a header that contains the ftime function that has been replaced, this
header has been removed as well. header has been removed as well.
times
-----
This function is badly designed and the whole clock_t and sysconf(_SC_CLK_TCK)
business is insane. It doesn't help there is problem with potential overflowing
and the accuracy of the function varies between systems. You should avoid this
function in favor of clock_gettime and the Sortix extension clocks that provide
the same information as struct timespecs. If you need the atomic semantics of
times, you can use the Sortix extension timens.
Sortix currently provides this function for compatibility reasons.
tmpnam tmpnam
------ ------