gettimeofday(2) first appeared in SUSv1.[1] The function was added to
POSIX.1-2001 when POSIX and SUS merged, but as an XSI extension (still
SUS-only).[2]
[1] X/Open CAE Specification, System Interfaces and Headers Issue 4,
Version 2, Chapter 3 "System Interfaces", p. 275.
[2] IEEE Std 1003.1-2001, Volume 2, Chapter 3 "System Interfaces", p.
567.
<https://pubs.opengroup.org/onlinepubs/
009604499/functions/gettimeofday.html>
Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <
37278a0497bdc28cbeaef156d36d66530381bd6c.
1769047228.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
.SH STANDARDS
None.
.SH HISTORY
-SVr4, 4.3BSD.
-POSIX.1-2001 described
+4.3BSD,
+SVr4.
+SUSv1 and POSIX.1-2001 XSI described
.BR gettimeofday ()
but not
.BR settimeofday ().
-POSIX.1-2008 marked
+POSIX.1-2008 XSI marked
.BR gettimeofday ()
as obsolete, recommending the use of
.BR clock_gettime (2)