You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/host
Tobias Klauser 28890b0482 Use common implementation for BootTime/Uptime on all BSDs
All BSDs use the same implementation to get BootTime{,WithContext} and
Uptime{,WithContext} based on the kern.boottime sysctl. Move this
implementation to a separate host/host_bsd.go file shared by darwin,
freebsd and openbsd. Also use SysctlTimeval to get
the boot time directly as a type Timeval instead of manually
extracting it using package unsafe. It will also allow for easier reuse
to support package host on e.g. Dragonfly BSD or NetBSD.

This requires updating the golang.org/x/sys/unix dependency to the
latest revision.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
5 years ago
..
freebsd_headers
host.go [host] Fix #737 add KernelArch field in InfoStat struct returning 'uname -m' result 6 years ago
host_bsd.go Use common implementation for BootTime/Uptime on all BSDs 5 years ago
host_darwin.go Use common implementation for BootTime/Uptime on all BSDs 5 years ago
host_darwin_386.go
host_darwin_amd64.go
host_darwin_cgo.go [host][darwin][cgo] Fix #832 work around once-again broken go modules not including C files 5 years ago
host_darwin_nocgo.go Restored temperature info for macOS 6 years ago
host_fallback.go
host_freebsd.go Use common implementation for BootTime/Uptime on all BSDs 5 years ago
host_freebsd_386.go [freebsd]host: change freebsd struct for 386 and arm. 6 years ago
host_freebsd_amd64.go
host_freebsd_arm.go [freebsd]host: change freebsd struct for 386 and arm. 6 years ago
host_freebsd_arm64.go Add support for freebsd/arm64 6 years ago
host_linux.go Merge pull request #861 from Lomanic/issue391 5 years ago
host_linux_386.go
host_linux_amd64.go
host_linux_arm.go
host_linux_arm64.go
host_linux_mips.go
host_linux_mips64.go
host_linux_mips64le.go
host_linux_mipsle.go
host_linux_ppc64le.go
host_linux_riscv64.go host: add support for linux/riscv64 5 years ago
host_linux_s390x.go
host_linux_test.go
host_openbsd.go Use common implementation for BootTime/Uptime on all BSDs 5 years ago
host_openbsd_amd64.go
host_posix.go Trim null bytes from kernel arch 6 years ago
host_solaris.go [host] Fix #737 add KernelArch field in InfoStat struct returning 'uname -m' result 6 years ago
host_test.go host: fix TestHostInfoStat_String 5 years ago
host_windows.go [host] Fix #737 add KernelArch field in InfoStat struct returning 'uname -m' result 6 years ago
smc_darwin.c [host][darwin][cgo] Fix #832 work around once-again broken go modules not including C files 5 years ago
smc_darwin.h [host][darwin][cgo] Fix #832 work around once-again broken go modules not including C files 5 years ago
types.go [host] go-fmt and propagate context on Windows in Info() 6 years ago
types_darwin.go
types_freebsd.go
types_linux.go
types_openbsd.go