]> Savannah Git Hosting - gnulib.git/commitdiff
* doc/posix-headers/utmpx.texi: Update for glibc.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 May 2024 17:49:14 +0000 (10:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 May 2024 17:51:26 +0000 (10:51 -0700)
doc/posix-headers/utmpx.texi

index ac2404bdc46098de90c361522005276c19943592..be1a9018ec3b90a71be05e05affd178b1f813bcf 100644 (file)
@@ -29,10 +29,20 @@ The @code{struct utmpx} field @code{ut_addr} or @code{ut_addr_v6} or
 @code{ut_ss} does not exist on some platforms:
 macOS, FreeBSD, AIX, Solaris.
 @item
+On some platforms, the @code{struct utmpx} field @code{ut_tv} is not
+of type @code{struct timeval}.  Instead, it is a different
+struct with @code{tv_sec} and @code{tv_usec} members that may
+have different types than the members of @code{struct timeval}:
+glibc 2.39 on platforms where @code{time_t} was historically 32 bits
+and where log file formats were not changed when 64-bit @code{time_t}
+was introduced.
+@item
 On some platforms, this API does not support timestamps past the
 year 2038:
-glibc 2.38 on 32-bit platforms like x86 and ARM where @code{time_t}
-was historically 32 bits.
+glibc 2.39 on 32-bit platforms like x86 and ARM where @code{time_t}
+was historically 32 bits; however, glibc 2.40 is planned to support
+timestamps up to the year 2106, by changing @code{ut_tv.tv_sec}'s type
+to be a 32-bit unsigned integer.
 @item
 On some platforms, this header misbehaves if the @code{year2038} or
 @code{year2038-recommended} modules are used and the program is