1 ! See https://factorcode.org/license.txt for BSD license.
2 USING: alien.c-types alien.syntax unix.statfs.freebsd ;
3 IN: unix.getfsstat.freebsd
5 CONSTANT: MNT_WAIT 1 ! synchronously wait for I/O to complete
6 CONSTANT: MNT_NOWAIT 2 ! start all I/O, but do not wait for it
7 CONSTANT: MNT_LAZY 3 ! push data not written by filesystem syncer
8 CONSTANT: MNT_SUSPEND 4 ! suspend file system after sync
11 FUNCTION: int getfsstat ( statfs* buf, long bufsize, int flags )
12 FUNCTION: int getmntinfo ( statfs **mntbufp, int flags )