bug in times.c

Siddhesh Poyarekar siddhesh.poyarekar@gmail.com
Mon Mar 11 10:52:00 GMT 2013


On 11 March 2013 16:17, Andreas Schwab <schwab@suse.de> wrote:
> Holger Brunck <holger.brunck@keymile.com> writes:
>
>>     times_now = times (NULL);
>
> Why do you think this is a valid use of the function?

Probably because it's allowed on Linux:

http://linux.die.net/man/2/times

Of course, I don't know why it would be useful to call times(NULL).
Maybe to just waste some time in a syscall.

Siddhesh
-- 
http://siddhesh.in



More information about the Libc-alpha mailing list