2008-12-02 18:43:07 -05:00
|
|
|
! Copyright (C) 2008 Doug Coleman.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2009-09-30 22:07:57 -04:00
|
|
|
USING: alien.c-types alien.syntax unix.types classes.struct
|
|
|
|
unix.stat ;
|
2008-12-02 18:43:07 -05:00
|
|
|
IN: unix.statfs.openbsd
|
|
|
|
|
2008-12-16 02:12:36 -05:00
|
|
|
CONSTANT: MFSNAMELEN 16
|
|
|
|
CONSTANT: MNAMELEN 90
|
2008-12-02 18:43:07 -05:00
|
|
|
|
2009-08-30 05:06:41 -04:00
|
|
|
STRUCT: statfs
|
|
|
|
{ f_flags u_int32_t }
|
|
|
|
{ f_bsize u_int32_t }
|
|
|
|
{ f_iosize u_int32_t }
|
|
|
|
{ f_blocks u_int64_t }
|
|
|
|
{ f_bfree u_int64_t }
|
|
|
|
{ f_bavail int64_t }
|
|
|
|
{ f_files u_int64_t }
|
|
|
|
{ f_ffree u_int64_t }
|
|
|
|
{ f_favail int64_t }
|
|
|
|
{ f_syncwrites u_int64_t }
|
|
|
|
{ f_syncreads u_int64_t }
|
|
|
|
{ f_asyncwrites u_int64_t }
|
|
|
|
{ f_asyncreads u_int64_t }
|
|
|
|
{ f_fsid fsid_t }
|
|
|
|
{ f_namemax u_int32_t }
|
|
|
|
{ f_owner uid_t }
|
|
|
|
{ f_ctime u_int32_t }
|
|
|
|
{ f_spare u_int32_t[3] }
|
2009-09-27 20:25:34 -04:00
|
|
|
{ f_fstypename { char MFSNAMELEN } }
|
|
|
|
{ f_mntonname { char MNAMELEN } }
|
|
|
|
{ f_mntfromname { char MNAMELEN } }
|
2009-08-30 05:06:41 -04:00
|
|
|
{ mount_info char[160] } ;
|
2008-12-02 18:43:07 -05:00
|
|
|
|
2009-09-30 22:07:57 -04:00
|
|
|
FUNCTION: int statfs ( char* path, statfs* buf ) ;
|