]> Savannah Git Hosting - gnulib.git/commitdiff
readutmp: fix comments
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Aug 2023 01:27:35 +0000 (18:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Aug 2023 01:27:35 +0000 (18:27 -0700)
NEWS
lib/readutmp.h

diff --git a/NEWS b/NEWS
index f1c9b72aa97b05333456aa0be34054b6dd4e62e0..265f9788bca317ff4a3566495b424ea72614c932 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -74,8 +74,11 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
-2023-08-02  readutmp        Some STRUCT_UTMP members can be char *,
+2023-08-03  readutmp        Some STRUCT_UTMP members can be char *,
 2023-08-01                  rather than fixed-length char arrays.
+                            On some platforms, the timestamp is ut_ts of type
+                            struct timespec, not ut_tv of type struct timeval,
+                            and ut_session is pid_t not long.
                             read_utmp's 2nd arg is now idx_t * not size_t *.
                             Link additionally with $(READUTMP_LIB).
 
index b3cfaeb67c7238c0e82a80119d37937d577b653e..01964d2622f893a4c2d4564ddb5bf5a56dcd859b 100644 (file)
@@ -59,7 +59,8 @@
 
 struct gl_utmp
 {
-  /* All 'char *' here are of arbitrary length and malloc-allocated.  */
+  /* All 'char *' here are of arbitrary length and point to storage
+     with lifetime equal to that of this struct.  */
   char *ut_user;                /* User name */
   char *ut_id;                  /* Session ID */
   char *ut_line;                /* seat / device */