1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.c-types alien.syntax unix.types classes.struct
5 IN: unix.statfs.openbsd
7 CONSTANT: MFSNAMELEN 16
13 { f_iosize u_int32_t }
14 { f_blocks u_int64_t }
20 { f_syncwrites u_int64_t }
21 { f_syncreads u_int64_t }
22 { f_asyncwrites u_int64_t }
23 { f_asyncreads u_int64_t }
25 { f_namemax u_int32_t }
28 { f_spare u_int32_t[3] }
29 { f_fstypename { char MFSNAMELEN } }
30 { f_mntonname { char MNAMELEN } }
31 { f_mntfromname { char MNAMELEN } }
32 { mount_info char[160] } ;
34 FUNCTION: int statfs ( char* path, statfs* buf ) ;