mirror of https://github.com/shirou/gopsutil
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.
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 | 6 years ago | |
host.go | 6 years ago | |
host_bsd.go | 5 years ago | |
host_darwin.go | 5 years ago | |
host_darwin_386.go | 8 years ago | |
host_darwin_amd64.go | 9 years ago | |
host_darwin_cgo.go | 5 years ago | |
host_darwin_nocgo.go | 5 years ago | |
host_fallback.go | 7 years ago | |
host_freebsd.go | 5 years ago | |
host_freebsd_386.go | 6 years ago | |
host_freebsd_amd64.go | 6 years ago | |
host_freebsd_arm.go | 6 years ago | |
host_freebsd_arm64.go | 5 years ago | |
host_linux.go | 5 years ago | |
host_linux_386.go | 9 years ago | |
host_linux_amd64.go | 9 years ago | |
host_linux_arm.go | 9 years ago | |
host_linux_arm64.go | 9 years ago | |
host_linux_mips.go | 8 years ago | |
host_linux_mips64.go | 7 years ago | |
host_linux_mips64le.go | 7 years ago | |
host_linux_mipsle.go | 8 years ago | |
host_linux_ppc64le.go | 9 years ago | |
host_linux_riscv64.go | 5 years ago | |
host_linux_s390x.go | 8 years ago | |
host_linux_test.go | 10 years ago | |
host_openbsd.go | 5 years ago | |
host_openbsd_amd64.go | 8 years ago | |
host_posix.go | 6 years ago | |
host_solaris.go | 6 years ago | |
host_test.go | 5 years ago | |
host_windows.go | 6 years ago | |
smc_darwin.c | 5 years ago | |
smc_darwin.h | 5 years ago | |
types.go | 6 years ago | |
types_darwin.go | 10 years ago | |
types_freebsd.go | 6 years ago | |
types_linux.go | 9 years ago | |
types_openbsd.go | 8 years ago |