]> gitweb.factorcode.org Git - factor.git/blob - basis/unix/statfs/openbsd/openbsd.factor
Merge qualified, alias, symbols, constants into core
[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.syntax ;
4 IN: unix.statfs.openbsd
5
6 CONSTANT: MFSNAMELEN 16
7 CONSTANT: MNAMELEN 90
8
9 C-STRUCT: statfs
10     { "u_int32_t"       "f_flags" }
11     { "u_int32_t"       "f_bsize" }
12     { "u_int32_t"       "f_iosize" }
13     { "u_int64_t"       "f_blocks" }
14     { "u_int64_t"       "f_bfree" }
15     { "int64_t"         "f_bavail" }
16     { "u_int64_t"       "f_files" }
17     { "u_int64_t"       "f_ffree" }
18     { "int64_t"         "f_favail" }
19     { "u_int64_t"       "f_syncwrites" }
20     { "u_int64_t"       "f_syncreads" }
21     { "u_int64_t"       "f_asyncwrites" }
22     { "u_int64_t"       "f_asyncreads" }
23     { "fsid_t"          "f_fsid" }
24     { "u_int32_t"       "f_namemax" }
25     { "uid_t"           "f_owner" }
26     { "u_int32_t"       "f_ctime" }
27     { { "u_int32_t" 3 } "f_spare" }
28     { { "char" MFSNAMELEN } "f_fstypename" }
29     { { "char" MNAMELEN } "f_mntonname" }
30     { { "char" MNAMELEN } "f_mntfromname" }
31     { { "char" 160 } "mount_info" } ;
32
33 FUNCTION: int statfs ( char* path, statvfs* buf ) ;