aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2023-08-15 08:50:43 +0800
committerPo Lu2023-08-15 08:50:43 +0800
commitb1ee03a64776349edbcc89bc29a3da8aa6260ce7 (patch)
tree174bde91cd77a00b4f1758a334d0b55feff8cc41
parent17d3b70fbfcbb392b9a3e64f1ca05168cd16d3e8 (diff)
downloademacs-b1ee03a64776349edbcc89bc29a3da8aa6260ce7.tar.gz
emacs-b1ee03a64776349edbcc89bc29a3da8aa6260ce7.zip
; * lib/readutmp.h: Merge from Gnulib.
-rw-r--r--lib/readutmp.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/readutmp.h b/lib/readutmp.h
index f7cad36d445..3ddecf37272 100644
--- a/lib/readutmp.h
+++ b/lib/readutmp.h
@@ -136,14 +136,18 @@ enum { UT_HOST_SIZE = -1 };
136/* This is a near-copy of glibc's struct utmpx, which stops working 136/* This is a near-copy of glibc's struct utmpx, which stops working
137 after the year 2038. Unlike the glibc version, struct utmpx32 137 after the year 2038. Unlike the glibc version, struct utmpx32
138 describes the file format even if time_t is 64 bits. */ 138 describes the file format even if time_t is 64 bits. */
139#define _GL_UT_USER_SIZE sizeof (((struct utmpx *) 0)->ut_user)
140#define _GL_UT_ID_SIZE sizeof (((struct utmpx *) 0)->ut_id)
141#define _GL_UT_LINE_SIZE sizeof (((struct utmpx *) 0)->ut_line)
142#define _GL_UT_HOST_SIZE sizeof (((struct utmpx *) 0)->ut_host)
139struct utmpx32 143struct utmpx32
140{ 144{
141 short int ut_type; /* Type of login. */ 145 short int ut_type; /* Type of login. */
142 pid_t ut_pid; /* Process ID of login process. */ 146 pid_t ut_pid; /* Process ID of login process. */
143 char ut_line[__UT_LINESIZE]; /* Devicename. */ 147 char ut_line[_GL_UT_LINE_SIZE]; /* Devicename. */
144 char ut_id[4]; /* Inittab ID. */ 148 char ut_id[_GL_UT_ID_SIZE]; /* Inittab ID. */
145 char ut_user[__UT_USERSIZE]; /* Username. */ 149 char ut_user[_GL_UT_USER_SIZE]; /* Username. */
146 char ut_host[__UT_HOSTSIZE]; /* Hostname for remote login. */ 150 char ut_host[_GL_UT_HOST_SIZE]; /* Hostname for remote login. */
147 struct __exit_status ut_exit; /* Exit status of a process marked 151 struct __exit_status ut_exit; /* Exit status of a process marked
148 as DEAD_PROCESS. */ 152 as DEAD_PROCESS. */
149 /* The fields ut_session and ut_tv must be the same size when compiled 153 /* The fields ut_session and ut_tv must be the same size when compiled