Commit Graph

16 Commits (3202231bcdbd3a6d236dbcc3ec92a96ddfa7168f)

Author SHA1 Message Date
Lomanic 32d4603d01 [disk][darwin] fix build with latest golang.org/x/sys/unix
Fixes #958
Tobias Klauser 422c4f61a1 Use Getfsstat from golang.org/x/sys/unix on Darwin
Starting with Go 1.12, direct syscalls on darwin are no longer
supported. Instead, libSystem is used when making syscalls. See
https://golang.org/doc/go1.12#darwin

In order to still support Getfsstat, use the syscall wrapper and types
from golang.org/x/sys/unix which uses the correct syscall method
depending on the Go version.

Also use the correct MNT_* consts and their respective strings according
to the mount(8) manpage.

Follow-up for #810
Michal Rostecki ff2e736f72 disk: Check for error objects returned by Getfsstat
shirou 837fc76f68 [disk] darwin i386: add definition for darwin/386
and change to use Statfs. it is same as freebsd/openbsd.
shirou 4c73494c78 Add WithContext functions.
Sean Chittenden 635b971c0e
Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}`
Robin Burchell b327360349 disk_darwin: Add support for IOCounters using IOKit
Shirou WAKAYAMA f2ebb91cf0 [disk]darwin,freebsd: implements 'all' argument.
Shirou WAKAYAMA 613a8a90e1 fixed by golint.
Shirou WAKAYAMA ea152ea901 [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters
Shirou WAKAYAMA 7288e9a5af common[all]: add internal
Shirou WAKAYAMA ad6c3f60a7 disk[freebsd,darwin,windows]: add fstype to DiskUsageStat.
Shirou WAKAYAMA 13cd195a7e change package name.
Shirou WAKAYAMA e9d79d2fc4 disk_darwin is backported with 1.3 frozen syscall.
Shirou WAKAYAMA 3f7769ccfa implement disk_partition of Darwin using golang.org/x/sys/unix.
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24