mirror of https://github.com/shirou/gopsutil
now support linux/arm (raspberry pi)
parent
755f65b5f3
commit
d5a476f628
@ -0,0 +1,27 @@
|
||||
// +build linux
|
||||
// +build arm
|
||||
|
||||
package gopsutil
|
||||
|
||||
type exitStatus struct {
|
||||
Etermination int16 // Process termination status.
|
||||
Eexit int16 // Process exit status.
|
||||
}
|
||||
type timeval struct {
|
||||
TvSec uint32 // Seconds.
|
||||
TvUsec uint32 // Microseconds.
|
||||
}
|
||||
|
||||
type utmp struct {
|
||||
UtType int16 // Type of login.
|
||||
UtPid int32 // Process ID of login process.
|
||||
UtLine [32]byte // Devicename.
|
||||
UtID [4]byte // Inittab ID.
|
||||
UtUser [32]byte // Username.
|
||||
UtHost [256]byte // Hostname for remote login.
|
||||
UtExit exitStatus // Exit status of a process marked
|
||||
UtSession int32 // Session ID, used for windowing.
|
||||
UtTv timeval // Time entry was made.
|
||||
UtAddrV6 [16]byte // Internet address of remote host.
|
||||
Unused [20]byte // Reserved for future use. // original is 20
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
// +build linux
|
||||
// +build arm
|
||||
|
||||
package gopsutil
|
||||
|
||||
const (
|
||||
CLOCK_TICKS = 100 // C.sysconf(C._SC_CLK_TCK)
|
||||
PAGESIZE = 4096 // C.sysconf(C._SC_PAGE_SIZE)
|
||||
)
|
Loading…
Reference in New Issue