mirror of https://github.com/shirou/gopsutil
host: Users() on darwin works. but Started is not correct.
parent
4ead971d70
commit
a5d366a70c
@ -0,0 +1,19 @@
|
|||||||
|
// Created by cgo -godefs - DO NOT EDIT
|
||||||
|
// cgo -godefs types_darwin.go
|
||||||
|
|
||||||
|
package host
|
||||||
|
|
||||||
|
type Utmpx struct {
|
||||||
|
User [256]int8
|
||||||
|
Id [4]int8
|
||||||
|
Line [32]int8
|
||||||
|
Pid int32
|
||||||
|
Type int16
|
||||||
|
Pad_cgo_0 [6]byte
|
||||||
|
Tv Timeval
|
||||||
|
Host [256]int8
|
||||||
|
Pad [16]uint32
|
||||||
|
}
|
||||||
|
type Timeval struct {
|
||||||
|
Sec int32
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
// +build ignore
|
||||||
|
// plus hand editing about timeval
|
||||||
|
|
||||||
|
/*
|
||||||
|
Input to cgo -godefs.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package host
|
||||||
|
|
||||||
|
/*
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <utmpx.h>
|
||||||
|
*/
|
||||||
|
import "C"
|
||||||
|
|
||||||
|
type Utmpx C.struct_utmpx
|
||||||
|
type Timeval C.struct_timeval
|
Loading…
Reference in New Issue