Commit Graph

11 Commits

Author SHA1 Message Date
mmorel-35 1e6b445a8a gofumpt 2021-12-22 21:54:41 +00:00
shirou d2e27c1712 fix dependabot v2 deletion. 2021-12-01 00:12:55 +00:00
shirou 0969c9436b delete v2 directory, move v3 to top #1078 2021-11-30 23:47:59 +00:00
shirou 1f733a99dc [disk] move without context functions to disk.go. 2020-10-24 22:03:58 +09:00
Lomanic 5aca383d4f [disk][darwin][cgo] Rename C files dependencies to more descriptive names 2020-05-31 20:41:48 +02:00
Lomanic dc5a4756c9 [disk][darwin] Fix #560 using github.com/lufia/iostat cgo implementation 2019-08-15 19:38:03 +02:00
shirou 4c73494c78 Add WithContext functions. 2017-12-31 15:25:49 +09:00
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.
2017-07-27 17:16:27 -05:00
Daniel Nelson 3830ed16b4
Make IOCounters a variadic function
Remove IOCountersForNames that was recently added in favor of variadic
function with same capabilities.
2017-04-13 18:53:09 -07:00
Daniel Nelson ab6db76df1
Fix IOCountersForNames on darwin 2017-04-07 11:40:49 -07:00
Robin Burchell b327360349 disk_darwin: Add support for IOCounters using IOKit 2017-03-30 18:58:03 +02:00