1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.c-types alien.syntax classes.struct unix.types
5 IN: unix.statvfs.netbsd
7 CONSTANT: _VFS_NAMELEN 32
8 CONSTANT: _VFS_MNAMELEN 1024
15 { f_blocks fsblkcnt_t }
16 { f_bfree fsblkcnt_t }
17 { f_bavail fsblkcnt_t }
18 { f_bresvd fsblkcnt_t }
19 { f_files fsfilcnt_t }
20 { f_ffree fsfilcnt_t }
21 { f_favail fsfilcnt_t }
22 { f_fresvd fsfilcnt_t }
23 { f_syncreads uint64_t }
24 { f_syncwrites uint64_t }
25 { f_asyncreads uint64_t }
26 { f_asyncwrites uint64_t }
31 { f_spare uint32_t[4] }
32 { f_fstypename { char _VFS_NAMELEN } }
33 { f_mntonname { char _VFS_MNAMELEN } }
34 { f_mntfromname { char _VFS_MNAMELEN } } ;
36 FUNCTION: int statvfs ( char* path, statvfs* buf ) ;