From bdab511d954a849d06e34f6d801cc374f867213b Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sun, 21 Feb 2016 23:05:22 -0500 Subject: Implement statfs --- src/posix_extras.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/posix_extras.h') diff --git a/src/posix_extras.h b/src/posix_extras.h index b67e2b4..9dec22d 100644 --- a/src/posix_extras.h +++ b/src/posix_extras.h @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -107,6 +108,10 @@ class File { // path must indeed be relative (i.e., it must not start with '/'). void RmDirAt(const char* path) const; + // Retrieves information about the file system containing the referent of the + // file descriptor. + struct statvfs StatVFs() const; + // Creates a symlink at source pointing to target. target is unvalidated. // source is interpreted as a path relative to the file descriptor and must // indeed be relative (i.e., it must not start with '/'). -- cgit v1.2.3