]> gitweb.factorcode.org Git - factor.git/blob - basis/unix/statfs/openbsd/openbsd.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / basis / unix / statfs / openbsd / openbsd.factor
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 unix.stat classes.struct ;
4 IN: unix.statfs.openbsd
5
6 CONSTANT: MFSNAMELEN 16
7 CONSTANT: MNAMELEN 90
8
9 STRUCT: statfs
10     { f_flags u_int32_t }
11     { f_bsize u_int32_t }
12     { f_iosize u_int32_t }
13     { f_blocks u_int64_t }
14     { f_bfree u_int64_t }
15     { f_bavail int64_t }
16     { f_files u_int64_t }
17     { f_ffree u_int64_t }
18     { f_favail 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 }
23     { f_fsid fsid_t }
24     { f_namemax u_int32_t }
25     { f_owner uid_t }
26     { f_ctime 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] } ;
32
33 FUNCTION: int statfs ( char* path, statvfs* buf ) ;