Re: Replace LibreSSL times() call

2014-10-15 Thread Joerg Jung
On 14 Oct 2014, at 22:08, Jonas 'Sortie' Termansen sor...@maxsi.org wrote: I noticed libressl's apps.c is using times(3), which is among the functions I am aggressively deprecating in my personal system. This patch switches it to use the clock_gettime and getrusage instead. I pondered using

Re: Replace LibreSSL times() call

2014-10-15 Thread Todd C. Miller
On Tue, 14 Oct 2014 22:08:20 +0200, Jonas 'Sortie' Termansen wrote: Unfortunately, OS X doesn't have clock_gettime, so the portable version will have to add back a times call as a fallback, or perhaps use gettimeofday (but this doesn't have the proper time-doesn't-go-backwards semantics). You

Re: Replace LibreSSL times() call

2014-10-15 Thread Philip Guenther
On Tue, Oct 14, 2014 at 1:08 PM, Jonas 'Sortie' Termansen sor...@maxsi.org wrote: I noticed libressl's apps.c is using times(3), which is among the functions I am aggressively deprecating in my personal system. times() is a standard function (not even deprecated or obsolete in POSIX). Simply