summaryrefslogtreecommitdiff
path: root/contrib/statfs/statfs.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-09-08 15:50:05 +0200
committerJakob Unterwurzacher2019-09-08 15:50:05 +0200
commited230379e7af9312206b591c900ef09cb2fd1302 (patch)
treef29d2a6527d3c317300fcdd5ae8ee5fa696217e3 /contrib/statfs/statfs.go
parent92ae62f9cc6c27e2e434eac1547b4b269663a56b (diff)
Expand statfs man page a little and include in build.bash
Diffstat (limited to 'contrib/statfs/statfs.go')
-rw-r--r--contrib/statfs/statfs.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/statfs/statfs.go b/contrib/statfs/statfs.go
index 5dcbd07..163d95a 100644
--- a/contrib/statfs/statfs.go
+++ b/contrib/statfs/statfs.go
@@ -5,7 +5,8 @@ import (
"flag"
"fmt"
"os"
- "syscall"
+
+ "golang.org/x/sys/unix"
)
const (
@@ -23,8 +24,8 @@ func main() {
flag.Usage()
}
path := flag.Arg(0)
- var st syscall.Statfs_t
- err := syscall.Statfs(path, &st)
+ var st unix.Statfs_t
+ err := unix.Statfs(path, &st)
if err != nil {
fmt.Fprintf(os.Stderr, "statfs syscall returned error: %v\n", err)
os.Exit(2)