utmp

package
v0.0.0-...-862ae09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Empty        = 0x0
	RunLevel     = 0x1
	BootTime     = 0x2
	NewTime      = 0x3
	OldTime      = 0x4
	InitProcess  = 0x5
	LoginProcess = 0x6
	UserProcess  = 0x7
	DeadProcess  = 0x8
	Accounting   = 0x9
)
View Source
const (
	LineSize = 32
	NameSize = 32
	HostSize = 256
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitStatus

type ExitStatus struct {
	Termination int16
	Exit        int16
}

utmp structures see man utmp

type TimeVal

type TimeVal struct {
	Sec  int32
	Usec int32
}

type Utmp

type Utmp struct {
	// contains filtered or unexported fields
}

func ReadRecord

func ReadRecord(r io.Reader) (*Utmp, error)

func (*Utmp) Addr

func (u *Utmp) Addr() net.IP

func (*Utmp) Device

func (u *Utmp) Device() string

func (*Utmp) Id

func (u *Utmp) Id() string

func (*Utmp) Pid

func (u *Utmp) Pid() int

func (*Utmp) Session

func (u *Utmp) Session() int

func (*Utmp) Type

func (u *Utmp) Type() int

func (*Utmp) User

func (u *Utmp) User() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL