This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: bug in times.c
- From: Siddhesh Poyarekar <siddhesh dot poyarekar at gmail dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Holger Brunck <holger dot brunck at keymile dot com>, libc-alpha at sourceware dot org, "Bigler, Stefan" <Stefan dot Bigler at keymile dot com>
- Date: Mon, 11 Mar 2013 16:21:56 +0530
- Subject: Re: bug in times.c
- References: <513DB23B.6030802@keymile.com><mvmmwuaqkl1.fsf@hawking.suse.de>
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