On 2019-09-13 12:11, Wayne Davison wrote:
On Fri, Sep 13, 2019 at 4:27 AM wrote:
In Linux [times()] returns a time value and return code of 0:
The Linux man page for times() mentions this special behavior, how it
isn't portable, and even advises against using the function:
"On Linux, the buf argument can be specified as NULL, with the result
that times() just returns a function result. However, POSIX does not
specify this behavior, and most other UNIX implementations require a
non-NULL value for buf."
Ah, so it is a documented extension in Linux, after all. In that case,
Cygwin should support it.
One might argue that it would be nice to emulate the Linux behavior,
but it's not required by POSIX.
Cygwin's explicit motto is "Get that Linux feeling --- on Windows";
and a tiny part of the Linux feeling is that times(NULL) works.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple