The POSIX standard says:
RETURN VALUE
The gettimeofday() function shall return 0 and no value shall be
reserved to indicate an error.
ERRORS
No errors are defined.
So I see no need to check the return code. Implementation should not
change the semantics defined by the
Hello Andrew,
so you do not want to support Linux because it is not 100% Posix? Neither all
those other Unix derivatives that will indicate an error in gettimeofday?
Best regards
Heinrich Schuchardt
http://www.xypron.de
Am 08.07.13 um 06:51 schrieb Andrew Makhorin
The POSIX standard says: