man gettimeofday: first arg cannot be NULL
Hi,
in man 2 gettimeofday (2009-03-25), section DESCRIPTION, it is said:
"If either tv or tz is NULL, ..."
However, if the first arg is NULL, the compiler (gcc 4.3.4) issues a warning that it shouldn't be NULL.
Felix
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · On Thu, Mar 11, 2010 at 5:58 AM, fkater-gM/[email protected]…
Hi,
in man 2 gettimeofday (2009-03-25), section DESCRIPTION, it is said:
"If either tv or tz is NULL, ..."
However, if the first arg is NULL, the compiler (gcc 4.3.4) issues a warning that it shouldn't be NULL.
True. For man-pages-3.39, I added this text to the man page:
==
(However, compilation warnings will result if
.I tv
is NULL.)
==
Cheers,
Michael
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html