Lines Matching +full:sig +full:- +full:dir

1 //===- FuzzerIO.cpp - IO utils. -------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 //===----------------------------------------------------------------------===//
81 // Use raw C interface because this function may be called from a sig handler. in WriteToFile()
112 if ((NumLoaded & (NumLoaded - 1)) == 0 && NumLoaded >= 1024) in ReadDirToVectorOfUnits()
116 V->push_back(S); in ReadDirToVectorOfUnits()
118 VPaths->push_back(X); in ReadDirToVectorOfUnits()
123 void GetSizedFilesFromDir(const std::string &Dir, std::vector<SizedFile> *V) { in GetSizedFilesFromDir() argument
125 ListFilesInDirRecursive(Dir, 0, &Files, /*TopDir*/true); in GetSizedFilesFromDir()
128 V->push_back({File, Size}); in GetSizedFilesFromDir()
142 if (EF->__sanitizer_set_report_fd) in DupAndCloseStderr()
143 EF->__sanitizer_set_report_fd( in DupAndCloseStderr()
181 const std::string &Dir = DirName(Leaf); in MkDirRecursiveInner() local
183 if (IsDirectory(Dir)) { in MkDirRecursiveInner()
188 bool ret = MkDirRecursiveInner(Dir); in MkDirRecursiveInner()
198 bool MkDirRecursive(const std::string &Dir) { in MkDirRecursive() argument
199 if (Dir.empty()) in MkDirRecursive()
202 if (IsDirectory(Dir)) in MkDirRecursive()
205 return MkDirRecursiveInner(Dir); in MkDirRecursive()
208 void RmDirRecursive(const std::string &Dir) { in RmDirRecursive() argument
210 Dir, [](const std::string &Path) {}, in RmDirRecursive()