Lines Matching refs:fs
20 using llvm::sys::fs::mapped_file_region;
32 sys::fs::remove(Twine(TempPath), Existed);
40 sys::fs::file_status Stat;
41 error_code EC = sys::fs::status(FilePath, Stat);
43 case sys::fs::file_type::file_not_found:
46 case sys::fs::file_type::regular_file: {
48 // FIXME: There is no sys::fs:: api for checking this.
61 EC = sys::fs::remove(FilePath, Existed);
65 unsigned Mode = sys::fs::all_read | sys::fs::all_write;
68 Mode |= sys::fs::all_exe;
73 EC = sys::fs::createUniqueFile(Twine(FilePath) + ".tmp%%%%%%%", FD,
96 error_code EC = sys::fs::resize_file(Twine(TempPath), NewSmallerSize);
102 return sys::fs::rename(Twine(TempPath), Twine(FinalPath));