forked from shirou/gopsutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 shirou#810
- Loading branch information
Showing
4 changed files
with
20 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.