Index: src/pkg/syscall/syscall_dragonfly.go |
=================================================================== |
--- a/src/pkg/syscall/syscall_dragonfly.go |
+++ b/src/pkg/syscall/syscall_dragonfly.go |
@@ -101,6 +101,21 @@ |
return extpwrite(fd, p, 0, offset) |
} |
+func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { |
+ var _p0 unsafe.Pointer |
+ var bufsize uintptr |
+ if len(buf) > 0 { |
+ _p0 = unsafe.Pointer(&buf[0]) |
+ bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) |
+ } |
+ r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) |
+ n = int(r0) |
+ if e1 != 0 { |
+ err = e1 |
+ } |
+ return |
+} |
+ |
/* |
* Exposed directly |
*/ |
@@ -129,7 +144,6 @@ |
//sys Getdtablesize() (size int) |
//sysnb Getegid() (egid int) |
//sysnb Geteuid() (uid int) |
-//sys Getfsstat(buf []Statfs_t, flags int) (n int, err error) |
//sysnb Getgid() (gid int) |
//sysnb Getpgid(pid int) (pgid int, err error) |
//sysnb Getpgrp() (pgrp int) |