On Tue, Oct 14, 2014 at 1:08 PM, Jonas 'Sortie' Termansen
<[email protected]> 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 saying _what_ you want to do without saying *why*
leaves us without any reason to do what you describe.

Indeed, you give reasons to *not* do them:

> This patch switches it to use
> the clock_gettime and getrusage instead. I pondered using CLOCK_VIRTUAL rather
> than getrusage, but it turned out to be not be implemented and not portable.
>
> 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).

Remove something standard and working and replace it with something
non-standard or using more ifdefs?  Umm, why?

Maybe this is a good idea, but you let out all the "here's why!" part
in your message.


Philip Guenther

Reply via email to