mirror of https://github.com/mkerrisk/man-pages
Provide a little more detail on fields of utmp structure.
This commit is contained in:
parent
ff6953dcb9
commit
45ec232d31
41
man5/utmp.5
41
man5/utmp.5
|
@ -74,31 +74,36 @@ struct exit_status {
|
|||
};
|
||||
|
||||
struct utmp {
|
||||
short ut_type; /* type of login */
|
||||
pid_t ut_pid; /* PID of login process */
|
||||
char ut_line[UT_LINESIZE]; /* device name of tty \- "/dev/" */
|
||||
char ut_id[4]; /* init id or abbrev. ttyname */
|
||||
char ut_user[UT_NAMESIZE]; /* user name */
|
||||
char ut_host[UT_HOSTSIZE]; /* hostname for remote login */
|
||||
struct exit_status ut_exit; /* The exit status of a process
|
||||
marked as DEAD_PROCESS */
|
||||
|
||||
short ut_type; /* Type of record */
|
||||
pid_t ut_pid; /* PID of login process */
|
||||
char ut_line[UT_LINESIZE]; /* device name of tty \- "/dev/" */
|
||||
char ut_id[4]; /* Terminal name suffix,
|
||||
or inittab(5) ID */
|
||||
char ut_user[UT_NAMESIZE]; /* username */
|
||||
char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or
|
||||
kernel version for run-level
|
||||
messages */
|
||||
struct exit_status ut_exit; /* Exit status of a process
|
||||
marked as DEAD_PROCESS; not
|
||||
used by Linux init(8) */
|
||||
/* The ut_session and ut_tv fields must be the same size when
|
||||
compiled 32- and 64-bit. This allows data files and shared
|
||||
memory to be shared between 32- and 64-bit applications */
|
||||
memory to be shared between 32- and 64-bit applications. */
|
||||
#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32
|
||||
int32_t ut_session; /* Session ID, used for windowing */
|
||||
int32_t ut_session; /* Session ID, used for windowing */
|
||||
struct {
|
||||
int32_t tv_sec; /* Seconds */
|
||||
int32_t tv_usec; /* Microseconds */
|
||||
} ut_tv; /* Time entry was made */
|
||||
int32_t tv_sec; /* Seconds */
|
||||
int32_t tv_usec; /* Microseconds */
|
||||
} ut_tv; /* Time entry was made */
|
||||
#else
|
||||
long int ut_session; /* Session ID, used for windowing */
|
||||
struct timeval ut_tv; /* Time entry was made */
|
||||
long ut_session; /* Session ID, used for windowing */
|
||||
struct timeval ut_tv; /* Time entry was made */
|
||||
#endif
|
||||
|
||||
int32_t ut_addr_v6[4]; /* IP address of remote host */
|
||||
char __unused[20]; /* Reserved for future use */
|
||||
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 */
|
||||
};
|
||||
|
||||
/* Backwards compatibility hacks. */
|
||||
|
|
Loading…
Reference in New Issue