This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bug in times.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]