Home | History | Annotate | Download | only in fuzzer

Lines Matching refs:Path

26 long GetEpoch(const std::string &Path) {
28 if (stat(Path.c_str(), &St))
33 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) {
34 std::ifstream T(Path, std::ios::binary);
36 Printf("No such directory: %s; exiting\n", Path.c_str());
53 std::string FileToString(const std::string &Path) {
54 std::ifstream T(Path, std::ios::binary);
59 void CopyFileToErr(const std::string &Path) {
60 Printf("%s", FileToString(Path).c_str());
63 void WriteToFile(const Unit &U, const std::string &Path) {
65 FILE *Out = fopen(Path.c_str(), "w");
71 void ReadDirToVectorOfUnits(const char *Path, Vector<Unit> *V,
75 ListFilesInDirRecursive(Path, Epoch, &Files, /*TopDir*/true);
82 Printf("Loaded %zd/%zd files from %s\n", NumLoaded, Files.size(), Path);