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/disk
James Nugent 95e4816cce disk: Remove -mmacosx-version-min from darwin+cgo
The presence of the -mmacosx-version-min flag in disk_darwin_cgo.go
makes it impossible to build the other cgo components on modern Mac OS X
(10.12), since the object files with which they must link are not built
with that flag. Errors present from Go Tip (1.9, effectively) in the
form:

ld: warning: object file (whatever.o) was built for newer OSX version
(10.12) than being linked (10.10)

This commit removes the minimum version flag, instead targeting the
version of OS X on which a binary is compiled as the minimum. Without
this, I believe (though have not verified it actually works) that the
only way to build without without warnings/undefined behaviour if the OS
X 10.10 headers and objects are installed and configured correctly.
8 years ago
..
disk.go Make IOCounters a variadic function 8 years ago
disk_darwin.go Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 8 years ago
disk_darwin.h disk_darwin: Add support for IOCounters using IOKit 8 years ago
disk_darwin_amd64.go change package name. 11 years ago
disk_darwin_arm64.go Fix compile errors for iOS/arm64 9 years ago
disk_darwin_cgo.go disk: Remove -mmacosx-version-min from darwin+cgo 8 years ago
disk_darwin_nocgo.go Make IOCounters a variadic function 8 years ago
disk_fallback.go Make IOCounters a variadic function 8 years ago
disk_freebsd.go Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 8 years ago
disk_freebsd_386.go [disk]freebsd: update 386. 9 years ago
disk_freebsd_amd64.go Merge branch 'master' into v2 9 years ago
disk_linux.go Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 8 years ago
disk_openbsd.go Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 8 years ago
disk_openbsd_amd64.go run go fmt ./... 8 years ago
disk_test.go fixed test TestDiskIOCountersStat_String to consider new weightedIO field 9 years ago
disk_unix.go [disk] Add comment to disk.Usage(). 8 years ago
disk_windows.go Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 8 years ago
types_freebsd.go [disk]freebsd: change to use C.sizeof_struct. 9 years ago
types_openbsd.go run go fmt ./... 8 years ago