Home
last modified time | relevance | path

Searched refs:Path (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIOPosix.cpp27 bool IsFile(const std::string &Path) { in IsFile() argument
29 if (stat(Path.c_str(), &St)) in IsFile()
36 if (stat(Path.c_str(), &St)) in IsDirectory()
43 if (stat(Path.c_str(), &St)) in FileSize()
51 assert(Pos < Path.size()); in Basename()
52 return Path.substr(Pos + 1); in Basename()
70 V->push_back(Path); in ListFilesInDirRecursive()
93 FileCallback(Path); in IterateDirRecursive()
124 unlink(Path.c_str()); in RemoveFile()
166 mkdir(Path.c_str(), 0700); in MkDir()
[all …]
H A DFuzzerIO.cpp26 long GetEpoch(const std::string &Path) { in GetEpoch() argument
28 if (stat(Path.c_str(), &St)) in GetEpoch()
34 std::ifstream T(Path, std::ios::binary); in FileToVector()
54 std::ifstream T(Path, std::ios::binary); in FileToString()
64 WriteToFile(U.data(), U.size(), Path); in WriteToFile()
69 Path); in WriteToFile()
74 FILE *Out = fopen(Path.c_str(), "wb"); in WriteToFile()
82 Path); in AppendToFile()
86 FILE *Out = fopen(Path.c_str(), "a"); in AppendToFile()
198 [](const std::string &Path) { RmDir(Path); }, in RmDirRecursive() argument
[all …]
H A DFuzzerIOWindows.cpp62 bool IsFile(const std::string &Path) { in IsFile() argument
71 return IsFile(Path, Att); in IsFile()
94 assert(Pos < Path.size()); in Basename()
95 return Path.substr(Pos + 1); in Basename()
119 std::string Path(Dir); in ListFilesInDirRecursive() local
120 assert(!Path.empty()); in ListFilesInDirRecursive()
121 if (Path.back() != '\\') in ListFilesInDirRecursive()
122 Path.push_back('\\'); in ListFilesInDirRecursive()
123 Path.push_back('*'); in ListFilesInDirRecursive()
201 FileCallback(Path); in IterateDirRecursive()
[all …]
H A DFuzzerIO.h18 long GetEpoch(const std::string &Path);
23 std::string FileToString(const std::string &Path);
25 void CopyFileToErr(const std::string &Path);
30 void WriteToFile(const Unit &U, const std::string &Path);
64 bool IsFile(const std::string &Path);
65 bool IsDirectory(const std::string &Path);
66 size_t FileSize(const std::string &Path);
93 std::string Basename(const std::string &Path);
101 void RemoveFile(const std::string &Path);
106 void MkDir(const std::string &Path);
[all …]
/freebsd-13.1/sys/contrib/dev/acpica/common/
H A Ddmextern.c346 Path++; in AcpiDmNormalizeParentPrefix()
661 if (!Path) in AcpiDmAddOpToExternalList()
668 if ((*Path == AML_ROOT_PREFIX) && (Path[1])) in AcpiDmAddOpToExternalList()
670 Path++; in AcpiDmAddOpToExternalList()
910 if (!Path) in AcpiDmAddPathToExternalList()
917 if ((*Path == AML_ROOT_PREFIX) && (Path[1])) in AcpiDmAddPathToExternalList()
919 Path++; in AcpiDmAddPathToExternalList()
1071 if (AcpiUtStricmp (NewExternal->Path, NextExternal->Path) < 0) in AcpiDmCreateNewExternal()
1573 Path); in AcpiDmConflictingDeclaration()
1627 if (!Path) in AcpiDmCheckForExternalConflict()
[all …]
H A Dadwalk.c482 char *Path; in AcpiDmDumpDescending() local
527 NULL, &Path); in AcpiDmDumpDescending()
531 ACPI_FREE (Path); in AcpiDmDumpDescending()
618 NULL, &Path); in AcpiDmFindOrphanDescending()
621 ACPI_FREE (Path); in AcpiDmFindOrphanDescending()
786 Path = Op->Named.Path; in AcpiDmLoadDescendingOp()
792 Path = FieldPath; in AcpiDmLoadDescendingOp()
809 if (!Path) in AcpiDmLoadDescendingOp()
939 Path = Op->Named.Path; in AcpiDmXrefDescendingOp()
960 Path = Op->Common.Value.String; in AcpiDmXrefDescendingOp()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Testing/Support/
H A DSupportHelpers.h114 SmallString<128> Path; variable
132 Path = Name;
136 Path.clear();
141 if (!Path.empty()) { in ~TempDir()
174 SmallString<128> Path; variable
179 Path = Link; in TempLink()
182 Path.clear(); in TempLink()
186 if (!Path.empty()) { in ~TempLink()
204 SmallString<128> Path; variable
220 Path = Name;
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DFileCollector.cpp40 Path = TmpDest; in isCaseSensitivePath()
46 UpperDest = Path.upper(); in isCaseSensitivePath()
57 SmallVectorImpl<char> &Path) { in updateWithRealPath() argument
58 StringRef SrcPath(Path.begin(), Path.size()); in updateWithRealPath()
85 Path.swap(RealPath); in updateWithRealPath()
91 sys::fs::make_absolute(Path); in makeAbsolute()
94 sys::path::native(Path); in makeAbsolute()
97 Path.erase(Path.begin(), sys::path::remove_leading_dotslash( in makeAbsolute()
98 StringRef(Path.begin(), Path.size())) in makeAbsolute()
264 Collector->addFile(Path); in status()
[all …]
H A DVirtualFileSystem.cpp270 return Path; in adjustPath()
722 P.toVector(Path); in addFile()
732 if (Path.empty()) in addFile()
736 auto I = llvm::sys::path::begin(Path), E = sys::path::end(Path); in addFile()
830 P.toVector(Path); in lookupInMemoryNode()
840 if (Path.empty()) in lookupInMemoryNode()
972 P.toVector(Path); in setCurrentWorkingDirectory()
982 if (!Path.empty()) in setCurrentWorkingDirectory()
1186 Result.append(Path.data(), Path.size()); in makeAbsolute()
1874 canonicalize(StringRef(Path.data(), Path.size())); in makeCanonical()
[all …]
H A DFileOutputBuffer.cpp79 : FileOutputBuffer(Path), Buffer(Buf), BufferSize(BufSize), in InMemoryBuffer()
123 return std::make_unique<InMemoryBuffer>(Path, MB, Size, Mode); in createInMemoryBuffer()
129 fs::TempFile::create(Path + ".tmp%%%%%%%", Mode); in createOnDiskBuffer()
149 return createInMemoryBuffer(Path, Size, Mode); in createOnDiskBuffer()
152 return std::make_unique<OnDiskBuffer>(Path, std::move(File), in createOnDiskBuffer()
160 if (Path == "-") in create()
169 return createInMemoryBuffer(Path, Size, Mode); in create()
172 fs::status(Path, Stat); in create()
189 return createInMemoryBuffer(Path, Size, Mode); in create()
191 return createOnDiskBuffer(Path, Size, Mode); in create()
[all …]
H A DPath.cpp297 I.Path = Path; in rbegin()
306 I.Path = Path; in rend()
322 if (Position == Path.size() && !Path.empty() && in operator ++()
521 StringRef OrigPath(Path.begin(), Path.size()); in replace_path_prefix()
552 std::replace(Path.begin(), Path.end(), '/', '\\'); in native()
553 if (Path[0] == '~' && (Path.size() == 1 || is_separator(Path[1], style))) { in native()
556 PathHome.append(Path.begin() + 1, Path.end()); in native()
704 while (Path.size() > 2 && Path[0] == '.' && is_separator(Path[1], style)) { in remove_leading_dotslash()
705 Path = Path.substr(2); in remove_leading_dotslash()
707 Path = Path.substr(1); in remove_leading_dotslash()
[all …]
H A DTarWriter.cpp101 static void writePaxHeader(raw_fd_ostream &OS, StringRef Path) { in writePaxHeader() argument
104 std::string PaxAttr = formatPax("path", Path); in writePaxHeader()
127 static bool splitUstar(StringRef Path, StringRef &Prefix, StringRef &Name) { in splitUstar() argument
128 if (Path.size() < sizeof(UstarHeader::Name)) { in splitUstar()
130 Name = Path; in splitUstar()
144 size_t Sep = Path.rfind('/', MaxPrefix + 1); in splitUstar()
147 if (Path.size() - Sep - 1 >= sizeof(UstarHeader::Name)) in splitUstar()
150 Prefix = Path.substr(0, Sep); in splitUstar()
151 Name = Path.substr(Sep + 1); in splitUstar()
184 void TarWriter::append(StringRef Path, StringRef Data) { in append() argument
[all …]
H A DCachePruning.cpp33 std::string Path; member
38 return std::tie(Time, Other.Size, Path) < in operator <()
39 std::tie(Other.Time, Size, Other.Path); in operator <()
144 bool llvm::pruneCache(StringRef Path, CachePruningPolicy Policy) { in pruneCache() argument
147 if (Path.empty()) in pruneCache()
151 if (sys::fs::is_directory(Path, isPathDir)) in pruneCache()
169 SmallString<128> TimestampFile(Path); in pruneCache()
210 sys::path::native(Path, CachePathNative); in pruneCache()
251 sys::fs::remove(FileInfo->Path); in pruneCache()
255 LLVM_DEBUG(dbgs() << " - Remove " << FileInfo->Path << " (size " in pruneCache()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/DirectoryWatcher/mac/
H A DDirectoryWatcher-mac.cpp114 StringRef Path = ((const char **)EventPaths)[i]; in eventStreamCallback() local
125 Path == ctx->WatchedPath) { in eventStreamCallback()
136 llvm::sys::path::filename(Path)); in eventStreamCallback()
139 if (!getFileStatus(Path).hasValue()) { in eventStreamCallback()
161 StringRef Path, in createFSEventStream() argument
164 if (Path.empty()) in createFSEventStream()
187 RealPath = Path.str(); in createFSEventStream()
217 StringRef Path, in create() argument
223 if (Path.empty()) in create()
235 const std::string CopiedPath = Path.str(); in create()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DVirtualFileSystem.h129 std::string Path; variable
135 : Path(std::move(Path)), Type(Type) {} in directory_entry()
137 llvm::StringRef path() const { return Path; } in path()
254 openFileForRead(const Twine &Path) = 0;
281 bool exists(const Twine &Path);
337 openFileForRead(const Twine &Path) override;
376 return FS->status(Path); in status()
380 return FS->openFileForRead(Path); in openFileForRead()
393 return FS->getRealPath(Path, Output); in getRealPath()
396 return FS->isLocal(Path, Result); in isLocal()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/
H A DFileMatchTrie.cpp64 if (Path.empty()) { in insert()
66 Path = std::string(NewPath); in insert()
71 if (NewPath == Path) in insert()
75 StringRef(Path).drop_back(ConsumedLength))); in insert()
76 Children[Element].Path = Path; in insert()
112 if (llvm::sys::path::filename(Path) == in findEquivalent()
114 Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent()
115 return StringRef(Path); in findEquivalent()
156 if (Path.empty()) in getAll()
159 Results.push_back(StringRef(Path)); in getAll()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DSymbolize.cpp226 MemoryBuffer::getFileOrSTDIN(Path); in checkFileCRC()
359 SmallString<128> Path{Directory}; in findDebugBinary() local
360 sys::path::append(Path, ".build-id", in findDebugBinary()
363 Path += ".debug"; in findDebugBinary()
364 return Path; in findDebugBinary()
367 SmallString<128> Path = getDebugPath( in findDebugBinary() local
376 if (llvm::sys::fs::exists(Path)) { in findDebugBinary()
377 Result = std::string(Path.str()); in findDebugBinary()
384 if (llvm::sys::fs::exists(Path)) { in findDebugBinary()
385 Result = std::string(Path.str()); in findDebugBinary()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DMipsLinux.cpp59 for (const auto &Path : Callback(SelectedMultilib)) in AddClangSystemIncludeArgs() local
61 D.getInstalledDir() + Path); in AddClangSystemIncludeArgs()
99 for (std::string Path : Callback(SelectedMultilib)) { in addLibCxxIncludePaths() local
100 Path = getDriver().getInstalledDir() + Path + "/c++/v1"; in addLibCxxIncludePaths()
101 if (llvm::sys::fs::exists(Path)) { in addLibCxxIncludePaths()
102 addSystemInclude(DriverArgs, CC1Args, Path); in addLibCxxIncludePaths()
122 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRT() local
123 llvm::sys::path::append(Path, SelectedMultilib.osSuffix(), "lib" + LibSuffix, in getCompilerRT()
138 Path, Twine("libclang_rt." + Component + "-" + "mips" + Suffix)); in getCompilerRT()
139 return std::string(Path.str()); in getCompilerRT()
/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DFileSystemStatCache.cpp34 FileSystemStatCache::get(StringRef Path, llvm::vfs::Status &Status, in get() argument
43 RetCode = Cache->getStat(Path, Status, isFile, F, FS); in get()
47 llvm::ErrorOr<llvm::vfs::Status> StatusOrErr = FS.status(Path); in get()
61 auto OwnedFile = FS.openFileForRead(Path); in get()
102 MemorizeStatCalls::getStat(StringRef Path, llvm::vfs::Status &Status, in getStat() argument
106 auto err = get(Path, Status, isFile, F, nullptr, FS); in getStat()
116 if (!Status.isDirectory() || llvm::sys::path::is_absolute(Path)) in getStat()
117 StatCalls[Path] = Status; in getStat()
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DPDB.cpp23 Error llvm::pdb::loadDataForPDB(PDB_ReaderType Type, StringRef Path, in loadDataForPDB() argument
27 return NativeSession::createFromPdbPath(Path, Session); in loadDataForPDB()
30 return DIASession::createFromPdb(Path, Session); in loadDataForPDB()
36 Error llvm::pdb::loadDataForEXE(PDB_ReaderType Type, StringRef Path, in loadDataForEXE() argument
40 Expected<std::string> PdbPath = NativeSession::searchForPdb({Path}); in loadDataForEXE()
47 return DIASession::createFromExe(Path, Session); in loadDataForEXE()
/freebsd-13.1/sys/contrib/dev/acpica/components/namespace/
H A Dnsaccess.c447 char *Path = Pathname; in AcpiNsLookup() local
530 Path = ""; in AcpiNsLookup()
550 if (*Path == (UINT8) AML_ROOT_PREFIX) in AcpiNsLookup()
559 Path++; in AcpiNsLookup()
588 Path++; in AcpiNsLookup()
636 switch (*Path) in AcpiNsLookup()
660 Path++; in AcpiNsLookup()
674 Path++; in AcpiNsLookup()
676 Path++; in AcpiNsLookup()
756 ACPI_MOVE_32_TO_32 (&SimpleName, Path); in AcpiNsLookup()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/include/lldb/Utility/
H A DTraceGDBRemotePackets.h34 llvm::json::Path path);
55 llvm::json::Path path);
79 llvm::json::Path path);
92 llvm::json::Path path);
104 llvm::json::Path path);
115 llvm::json::Path path);
125 llvm::json::Path path);
147 llvm::json::Path path);
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Trace/common/
H A DTraceSessionFileParser.h124 llvm::Error CreateJSONError(llvm::json::Path::Root &root,
138 Path path);
142 Path path);
146 Path path);
150 Path path);
155 Path path);
160 Path path);
167 Path path) { in fromJSON()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/LTO/legacy/
H A DThinLTOCodeGenerator.h127 std::string Path; // Path to the cache, empty to disable. member
133 void setCacheDir(std::string Path) { CacheOptions.Path = std::move(Path); } in setCacheDir() argument
189 void setSaveTempsDir(std::string Path) { SaveTempsDir = std::move(Path); } in setSaveTempsDir() argument
195 void setGeneratedObjectsDirectory(std::string Path) { in setGeneratedObjectsDirectory() argument
196 SavedObjectsDirectoryPath = std::move(Path); in setGeneratedObjectsDirectory()
/freebsd-13.1/contrib/llvm-project/lldb/source/Utility/
H A DTraceGDBRemotePackets.cpp18 Path path) { in fromJSON()
34 bool fromJSON(const json::Value &value, TraceStartRequest &packet, Path path) { in fromJSON()
56 bool fromJSON(const json::Value &value, TraceStopRequest &packet, Path path) { in fromJSON()
69 Path path) { in fromJSON()
78 bool fromJSON(const json::Value &value, TraceBinaryData &packet, Path path) { in fromJSON()
87 bool fromJSON(const json::Value &value, TraceThreadState &packet, Path path) { in fromJSON()
99 Path path) { in fromJSON()
122 Path path) { in fromJSON()

12345678910>>...16