forked from OSchip/llvm-project
[libcxx] [test] Simplify the fs helper header for posix cases. NFC.
Differential Revision: https://reviews.llvm.org/D91073
This commit is contained in:
parent
c41bda7f5f
commit
539ce1d288
|
@ -72,12 +72,8 @@ namespace utils {
|
||||||
using ::ftruncate;
|
using ::ftruncate;
|
||||||
inline int symlink(const char* oldname, const char* newname, bool is_dir) { (void)is_dir; return ::symlink(oldname, newname); }
|
inline int symlink(const char* oldname, const char* newname, bool is_dir) { (void)is_dir; return ::symlink(oldname, newname); }
|
||||||
using ::link;
|
using ::link;
|
||||||
inline int setenv(const char *var, const char *val, int overwrite) {
|
using ::setenv;
|
||||||
return ::setenv(var, val, overwrite);
|
using ::unsetenv;
|
||||||
}
|
|
||||||
inline int unsetenv(const char *var) {
|
|
||||||
return ::unsetenv(var);
|
|
||||||
}
|
|
||||||
inline bool space(std::string path, std::uintmax_t &capacity,
|
inline bool space(std::string path, std::uintmax_t &capacity,
|
||||||
std::uintmax_t &free, std::uintmax_t &avail) {
|
std::uintmax_t &free, std::uintmax_t &avail) {
|
||||||
struct statvfs expect;
|
struct statvfs expect;
|
||||||
|
|
Loading…
Reference in New Issue