Documentation ¶
Index ¶
Constants ¶
View Source
const ( Empty Utype = iota // record does not contain valid info (formerly known as UT_UNKNOWN on Linux) RunLevel = iota // change in system run-level (see init(8)) BootTime = iota // time of system boot (in ut_tv) NewTime = iota // time after system clock change (in ut_tv) OldTime = iota // time before system clock change (in ut_tv) InitProcess = iota // process spawned by init(8) LoginProcess = iota // session leader process for user login UserProcess = iota // normal process DeadProcess = iota // terminated process Accounting = iota // not implemented LineSize = 32 NameSize = 32 HostSize = 256 )
Type for ut_exit, below
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExitStatus ¶
type UtmpEntry ¶
type UtmpEntry struct { Type Utype // type of record Pid int32 // PID of login process Device [LineSize]byte // device name of tty - "/dev/" Id [4]byte // terminal name suffix or inittab(5) ID User [NameSize]byte // username Host [HostSize]byte // hostname for remote login or kernel version for run-level messages Exit ExitStatus // exit status of a process marked as DeadProcess; not used by Linux init(1) Session int32 // session ID (getsid(2)), used for windowing Time TimeVal // time entry was made Addr [4]int32 // internet address of remote host; IPv4 address uses just Addr[0] Unused [20]byte // reserved for future use // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.