Struct utmp_raw::utmp [−][src]
#[repr(C)]pub struct utmp {
pub ut_type: c_short,
pub ut_pid: pid_t,
pub ut_line: [u8; 32],
pub ut_id: [u8; 4],
pub ut_user: [u8; 32],
pub ut_host: [u8; 256],
pub ut_exit: exit_status,
pub ut_session: i32,
pub ut_tv: timeval,
pub ut_addr_v6: [i32; 4],
pub __unused: [u8; 20],
}Fields
ut_type: c_shortType of record
ut_pid: pid_tPID of login process
ut_line: [u8; 32]Device name of tty - "/dev/"
ut_id: [u8; 4]Terminal name suffix, or inittab(5) ID
ut_user: [u8; 32]Username
ut_host: [u8; 256]Hostname for remote login, or kernel version for run-level message
ut_exit: exit_statusExit status of a process marked as DEAD_PROCESS; not used by Linux init
ut_session: i32Session ID (getsid(2)) used for windowing
ut_tv: timevalTime entry was made
ut_addr_v6: [i32; 4]Internet address of remote host; IPv4 address uses just ut_addr_v6[0]
__unused: [u8; 20]Reserved for future use
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for utmp
impl UnwindSafe for utmp
Blanket Implementations
Mutably borrows from an owned value. Read more