This is the mail archive of the
mailing list for the glibc project.
Re: bug in times.c
On 03/11/2013 11:51 AM, Siddhesh Poyarekar wrote:
> On 11 March 2013 16:17, Andreas Schwab <firstname.lastname@example.org> wrote:
>> Holger Brunck <email@example.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:
yes it is allowed on linux.
> Of course, I don't know why it would be useful to call times(NULL).
> Maybe to just waste some time in a syscall.
the code is thirparty code. They use somehow the counter tick which gets
returned from times. There may be better solutions, but nevertheless it's a bug