#ifndef LLVM_LIBC_SRC_SYS_STATVFS_LINUX_STATFS_TO_STATVFS_H
#define LLVM_LIBC_SRC_SYS_STATVFS_LINUX_STATFS_TO_STATVFS_H
#include "include/llvm-libc-types/struct_statvfs.h"
#include "src/__support/CPP/optional.h"
#include "src/__support/OSUtil/syscall.h"
#include "src/__support/macros/attributes.h"
#include "src/__support/macros/config.h"
#include "src/errno/libc_errno.h"
#include <asm/statfs.h>
#include <sys/syscall.h>
namespace LIBC_NAMESPACE_DECL {
namespace statfs_utils {
#ifdef SYS_statfs64
using LinuxStatFs = statfs64;
#else
LinuxStatFs;
#endif
LIBC_INLINE_VAR constexpr decltype(LinuxStatFs::f_flags) ST_VALID = …;
LIBC_INLINE cpp::optional<LinuxStatFs> linux_statfs(const char *path) { … }
LIBC_INLINE cpp::optional<LinuxStatFs> linux_fstatfs(int fd) { … }
LIBC_INLINE struct statvfs statfs_to_statvfs(const LinuxStatFs &in) { … }
}
}
#endif