Add statfs() and fstatfs() to redbean unix module

This commit is contained in:
Justine Tunney 2022-08-17 23:27:17 -07:00
parent 2d479f7b11
commit 30e1c5bca9
3 changed files with 434 additions and 3 deletions

View file

@ -8,7 +8,7 @@ struct statfs { /* cosmo abi */
int64_t f_bsize; /* optimal transfer block size */
int64_t f_blocks; /* total data blocks in filesystem */
int64_t f_bfree; /* free blocks in filesystem */
int64_t f_bavail; /* free blocks available to */
int64_t f_bavail; /* free blocks available to unprivileged users */
int64_t f_files; /* total file nodes in filesystem */
int64_t f_ffree; /* free file nodes in filesystem */
int64_t f_fsid; /* filesystem id */