summaryrefslogtreecommitdiffstats
path: root/man5/utmp.5
diff options
context:
space:
mode:
Diffstat (limited to 'man5/utmp.5')
-rw-r--r--man5/utmp.514
1 files changed, 7 insertions, 7 deletions
diff --git a/man5/utmp.5 b/man5/utmp.5
index ec68b97e6..0c3430abd 100644
--- a/man5/utmp.5
+++ b/man5/utmp.5
@@ -44,7 +44,7 @@ around; details depend on the version of libc):
.in +4n
.EX
/* Values for ut_type field, below */
-
+\&
#define EMPTY 0 /* Record does not contain valid info
(formerly known as UT_UNKNOWN on Linux) */
#define RUN_LVL 1 /* Change in system run\-level (see
@@ -59,16 +59,16 @@ around; details depend on the version of libc):
#define USER_PROCESS 7 /* Normal process */
#define DEAD_PROCESS 8 /* Terminated process */
#define ACCOUNTING 9 /* Not implemented */
-
+\&
#define UT_LINESIZE 32
#define UT_NAMESIZE 32
#define UT_HOSTSIZE 256
-
+\&
struct exit_status { /* Type for ut_exit, below */
short e_termination; /* Process termination status */
short e_exit; /* Process exit status */
};
-
+\&
struct utmp {
short ut_type; /* Type of record */
pid_t ut_pid; /* PID of login process */
@@ -96,13 +96,13 @@ struct utmp {
long ut_session; /* Session ID */
struct timeval ut_tv; /* Time entry was made */
#endif
-
+\&
int32_t ut_addr_v6[4]; /* Internet address of remote
host; IPv4 address uses
just ut_addr_v6[0] */
char __unused[20]; /* Reserved for future use */
};
-
+\&
/* Backward compatibility hacks */
#define ut_name ut_user
#ifndef _NO_UT_TIME
@@ -316,7 +316,7 @@ the following method of setting this field is recommended:
.EX
struct utmp ut;
struct timeval tv;
-
+\&
gettimeofday(&tv, NULL);
ut.ut_tv.tv_sec = tv.tv_sec;
ut.ut_tv.tv_usec = tv.tv_usec;