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