Skip to contentSkip to conversation

man gettimeofday: first arg cannot be NULL

DISCUSSION fkater-gM/[email protected] 2 participants 2 messages Mar 10, 2010 – Apr 17, 2012 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#1 lore raw
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