[libcxx] [test] Simplify the fs helper header for posix cases. NFC.

Differential Revision: https://reviews.llvm.org/D91073
This commit is contained in:
Martin Storsjö 2020-11-06 09:34:17 +02:00
parent c41bda7f5f
commit 539ce1d288
1 changed files with 2 additions and 6 deletions

View File

@ -72,12 +72,8 @@ namespace utils {
using ::ftruncate;
inline int symlink(const char* oldname, const char* newname, bool is_dir) { (void)is_dir; return ::symlink(oldname, newname); }
using ::link;
inline int setenv(const char *var, const char *val, int overwrite) {
return ::setenv(var, val, overwrite);
}
inline int unsetenv(const char *var) {
return ::unsetenv(var);
}
using ::setenv;
using ::unsetenv;
inline bool space(std::string path, std::uintmax_t &capacity,
std::uintmax_t &free, std::uintmax_t &avail) {
struct statvfs expect;