[][src]Struct utmp_raw::utmp

#[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_short

Type of record

ut_pid: pid_t

PID 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_status

Exit status of a process marked as DEAD_PROCESS; not used by Linux init

ut_session: i32

Session ID (getsid(2)) used for windowing

ut_tv: timeval

Time 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

impl Clone for utmp[src]

impl Copy for utmp[src]

impl Debug for utmp[src]

impl FromBytes for utmp[src]

Auto Trait Implementations

impl RefUnwindSafe for utmp

impl Send for utmp

impl Sync for utmp

impl Unpin for utmp

impl UnwindSafe for utmp

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.