utmp

package
v0.0.0-...-abc2909 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Empty        int16 = 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
)

Variables

This section is empty.

Functions

func AddrToString

func AddrToString(a [4]int32) string

func UtmpSave

func UtmpSave(source string, destination string)

Types

type TimeVal

type TimeVal struct {
	Sec  int32
	Usec int32
}

Jump to

Keyboard shortcuts

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