#include "llvm-libc-macros/linux/fcntl-macros.h"
#include "src/__support/macros/config.h"
#include "src/fcntl/open.h"
#include "src/sys/statvfs/fstatvfs.h"
#include "src/sys/statvfs/linux/statfs_utils.h"
#include "src/unistd/close.h"
#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/LibcTest.h"
#include <linux/magic.h>
usingnamespaceLIBC_NAMESPACE::testing::ErrnoSetterMatcher;
#ifdef SYS_statfs64
using StatFs = statfs64;
#else
StatFs;
#endif
namespace LIBC_NAMESPACE_DECL {
static int fstatfs(int fd, StatFs *buf) { … }
}
struct PathFD { … };
TEST(LlvmLibcSysStatvfsTest, FstatfsBasic) { … }
TEST(LlvmLibcSysStatvfsTest, FstatvfsInvalidFD) { … }