1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.syntax unix.types unix.stat classes.struct ;
4 IN: unix.statfs.openbsd
6 CONSTANT: MFSNAMELEN 16
12 { f_iosize u_int32_t }
13 { f_blocks u_int64_t }
19 { f_syncwrites u_int64_t }
20 { f_syncreads u_int64_t }
21 { f_asyncwrites u_int64_t }
22 { f_asyncreads u_int64_t }
24 { f_namemax u_int32_t }
27 { f_spare u_int32_t[3] }
28 { f_fstypename { "char" MFSNAMELEN } }
29 { f_mntonname { "char" MNAMELEN } }
30 { f_mntfromname { "char" MNAMELEN } }
31 { mount_info char[160] } ;
33 FUNCTION: int statfs ( char* path, statvfs* buf ) ;