Home
last modified time | relevance | path

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

12345678910>>...23

/netbsd-src/sys/external/bsd/acpica/dist/common/
H A Ddmextern.c107 char *Path);
117 char **Path);
121 char *Path,
136 char *Path);
140 char *Path,
147 char *Path);
197 char *Path) in AcpiDmNormalizeParentPrefix() argument
235 while (Node && (*Path == (UINT8) AML_PARENT_PREFIX)) in AcpiDmNormalizeParentPrefix()
238 Path++; in AcpiDmNormalizeParentPrefix()
254 Length = (strlen (ParentPath) + strlen (Path) + 1); in AcpiDmNormalizeParentPrefix()
[all …]
H A Dadwalk.c374 char *Path; in AcpiDmDumpDescending() local
419 NULL, &Path); in AcpiDmDumpDescending()
422 AcpiOsPrintf ("%s %p", Path, Op->Common.Node); in AcpiDmDumpDescending()
423 ACPI_FREE (Path); in AcpiDmDumpDescending()
510 NULL, &Path); in AcpiDmFindOrphanDescending()
512 Op->Common.AmlOpName, Path); in AcpiDmFindOrphanDescending()
513 ACPI_FREE (Path); in AcpiDmFindOrphanDescending()
652 char *Path = NULL; in AcpiDmLoadDescendingOp() local
678 Path = Op->Named.Path; in AcpiDmLoadDescendingOp()
680 if (!Path && Op->Common.AmlOpcode == AML_INT_NAMEDFIELD_OP) in AcpiDmLoadDescendingOp()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Testing/Support/
H A DSupportHelpers.h114 SmallString<128> Path; variable
125 EC = llvm::sys::fs::createUniqueDirectory(Name, Path);
128 std::string UnresolvedPath(Path.str());
129 EC = llvm::sys::fs::real_path(UnresolvedPath, Path);
132 Path = Name;
133 EC = llvm::sys::fs::create_directory(Path);
136 Path.clear();
141 if (!Path.empty()) { in ~TempDir()
142 EXPECT_FALSE(llvm::sys::fs::remove_directories(Path.str())); in ~TempDir()
153 StringRef path() const { return Path; } in path()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
H A DFuzzerIOPosix.cpp28 bool IsFile(const std::string &Path) { in IsFile() argument
30 if (stat(Path.c_str(), &St)) in IsFile()
35 static bool IsDirectory(const std::string &Path) { in IsDirectory() argument
37 if (stat(Path.c_str(), &St)) in IsDirectory()
42 size_t FileSize(const std::string &Path) { in FileSize() argument
44 if (stat(Path.c_str(), &St)) in FileSize()
49 std::string Basename(const std::string &Path) { in Basename() argument
50 size_t Pos = Path.rfind(GetSeparator()); in Basename()
51 if (Pos == std::string::npos) return Path; in Basename()
52 assert(Pos < Path.size()); in Basename()
[all …]
H A DFuzzerIOWindows.cpp27 static bool IsFile(const std::string &Path, const DWORD &FileAttributes) { in IsFile() argument
36 CreateFileA(Path.c_str(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING, in IsFile()
40 Printf("CreateFileA() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
48 Printf("GetFileType() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
63 bool IsFile(const std::string &Path) { in IsFile() argument
64 DWORD Att = GetFileAttributesA(Path.c_str()); in IsFile()
68 Path.c_str(), GetLastError()); in IsFile()
72 return IsFile(Path, Att); in IsFile()
75 std::string Basename(const std::string &Path) { in Basename() argument
76 size_t Pos = Path.find_last_of("/\\"); in Basename()
[all …]
H A DFuzzerIO.cpp26 long GetEpoch(const std::string &Path) { in GetEpoch() argument
28 if (stat(Path.c_str(), &St)) in GetEpoch()
33 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) { in FileToVector() argument
34 std::ifstream T(Path, std::ios::binary); in FileToVector()
36 Printf("No such directory: %s; exiting\n", Path.c_str()); in FileToVector()
53 std::string FileToString(const std::string &Path) { in FileToString() argument
54 std::ifstream T(Path, std::ios::binary); in FileToString()
59 void CopyFileToErr(const std::string &Path) { in CopyFileToErr() argument
60 Printf("%s", FileToString(Path).c_str()); in CopyFileToErr()
63 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() argument
[all …]
H A DFuzzerIO.h19 long GetEpoch(const std::string &Path);
21 Unit FileToVector(const std::string &Path, size_t MaxSize = 0,
24 std::string FileToString(const std::string &Path);
26 void CopyFileToErr(const std::string &Path);
28 void WriteToFile(const Unit &U, const std::string &Path);
30 void ReadDirToVectorOfUnits(const char *Path, Vector<Unit> *V,
55 bool IsFile(const std::string &Path);
56 size_t FileSize(const std::string &Path);
71 std::string Basename(const std::string &Path);
79 void RemoveFile(const std::string &Path);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DVirtualFileSystem.cpp124 std::error_code FileSystem::makeAbsolute(SmallVectorImpl<char> &Path) const { in makeAbsolute()
125 if (llvm::sys::path::is_absolute(Path)) in makeAbsolute()
132 llvm::sys::fs::make_absolute(WorkingDir.get(), Path); in makeAbsolute()
136 std::error_code FileSystem::getRealPath(const Twine &Path, in getRealPath() argument
141 std::error_code FileSystem::isLocal(const Twine &Path, bool &Result) { in isLocal() argument
145 bool FileSystem::exists(const Twine &Path) { in exists() argument
146 auto Status = status(Path); in exists()
155 static bool pathHasTraversal(StringRef Path) { in pathHasTraversal() argument
158 for (StringRef Comp : llvm::make_range(path::begin(Path), path::end(Path))) in pathHasTraversal()
255 ErrorOr<Status> status(const Twine &Path) override;
[all …]
H A DFileCollector.cpp34 static bool isCaseSensitivePath(StringRef Path) { in isCaseSensitivePath() argument
35 SmallString<256> TmpDest = Path, UpperDest, RealDest; in isCaseSensitivePath()
38 if (sys::fs::real_path(Path, TmpDest)) in isCaseSensitivePath()
40 Path = TmpDest; in isCaseSensitivePath()
46 UpperDest = Path.upper(); in isCaseSensitivePath()
47 if (!sys::fs::real_path(UpperDest, RealDest) && Path.equals(RealDest)) in isCaseSensitivePath()
57 SmallVectorImpl<char> &Path) { in updateWithRealPath() argument
58 StringRef SrcPath(Path.begin(), Path.size()); in updateWithRealPath()
85 Path.swap(RealPath); in updateWithRealPath()
89 static void makeAbsolute(SmallVectorImpl<char> &Path) { in makeAbsolute() argument
[all …]
H A DPath.cpp226 i.Path = path; in begin()
235 i.Path = path; in end()
241 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++()
247 if (Position == Path.size()) { in operator ++()
258 if (is_separator(Path[Position], S)) { in operator ++()
263 Component = Path.substr(Position, 1); in operator ++()
268 while (Position != Path.size() && is_separator(Path[Position], S)) { in operator ++()
273 if (Position == Path.size() && Component != "/") { in operator ++()
281 size_t end_pos = Path.find_first_of(separators(S), Position); in operator ++()
282 Component = Path.slice(Position, end_pos); in operator ++()
[all …]
H A DFileOutputBuffer.cpp36 OnDiskBuffer(StringRef Path, fs::TempFile Temp, fs::mapped_file_region Buf) in OnDiskBuffer() argument
37 : FileOutputBuffer(Path), Buffer(std::move(Buf)), Temp(std::move(Temp)) {} in OnDiskBuffer()
77 InMemoryBuffer(StringRef Path, MemoryBlock Buf, std::size_t BufSize, in InMemoryBuffer() argument
79 : FileOutputBuffer(Path), Buffer(Buf), BufferSize(BufSize), in InMemoryBuffer()
117 createInMemoryBuffer(StringRef Path, size_t Size, unsigned Mode) { in createInMemoryBuffer() argument
123 return std::make_unique<InMemoryBuffer>(Path, MB, Size, Mode); in createInMemoryBuffer()
127 createOnDiskBuffer(StringRef Path, size_t Size, unsigned Mode) { in createOnDiskBuffer() argument
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()
[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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DVirtualFileSystem.h129 std::string Path; variable
134 directory_entry(std::string Path, llvm::sys::fs::file_type Type) in directory_entry() argument
135 : Path(std::move(Path)), Type(Type) {} in directory_entry()
137 llvm::StringRef path() const { return Path; } in path()
215 recursive_directory_iterator(FileSystem &FS, const Twine &Path,
250 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0;
254 openFileForRead(const Twine &Path) = 0;
269 virtual std::error_code setCurrentWorkingDirectory(const Twine &Path) = 0;
277 virtual std::error_code getRealPath(const Twine &Path,
281 bool exists(const Twine &Path);
[all …]
H A DFileSystem.h437 ErrorOr<MD5::MD5Result> md5_contents(const Twine &Path);
457 std::error_code access(const Twine &Path, AccessMode Mode);
463 inline bool exists(const Twine &Path) { in exists() argument
464 return !access(Path, AccessMode::Exist); in exists()
471 bool can_execute(const Twine &Path);
477 inline bool can_write(const Twine &Path) { in can_write() argument
478 return !access(Path, AccessMode::Write); in can_write()
525 inline bool is_local(const Twine &Path) { in is_local() argument
527 return !is_local(Path, Result) && Result; in is_local()
543 file_type get_file_type(const Twine &Path, bool Follow = true);
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
141 llvm::sys::path::filename(Path)); in eventStreamCallback()
144 llvm::sys::path::filename(Path)); in eventStreamCallback()
161 StringRef Path, in createFSEventStream() argument
164 if (Path.empty()) in createFSEventStream()
171 CFStringCreateWithBytes(nullptr, (const UInt8 *)Path.data(), in createFSEventStream()
172 Path.size(), kCFStringEncodingUTF8, false); in createFSEventStream()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/Symbolize/
H A DSymbolize.cpp214 const std::string &Path, const std::string &Basename) { in getDarwinDWARFResourceForPath() argument
215 SmallString<16> ResourceName = StringRef(Path); in getDarwinDWARFResourceForPath()
216 if (sys::path::extension(Path) != ".dSYM") { in getDarwinDWARFResourceForPath()
224 bool checkFileCRC(StringRef Path, uint32_t CRCHash) { in checkFileCRC() argument
226 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
[all …]
/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/sys/external/bsd/acpica/dist/namespace/
H A Dnsaccess.c340 char *Path = Pathname; in AcpiNsLookup() local
423 Path = __UNCONST(""); in AcpiNsLookup()
443 if (*Path == (UINT8) AML_ROOT_PREFIX) in AcpiNsLookup()
452 Path++; in AcpiNsLookup()
471 while (*Path == (UINT8) AML_PARENT_PREFIX) in AcpiNsLookup()
481 Path++; in AcpiNsLookup()
529 switch (*Path) in AcpiNsLookup()
553 Path++; in AcpiNsLookup()
567 Path++; in AcpiNsLookup()
568 NumSegments = (UINT32) (UINT8) *Path; in AcpiNsLookup()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/tests/unit/
H A Dprofile_collector_test.cc88 std::vector<int32_t> Path; member
98 Result.Path.push_back(F); in ParseProfile()
168 ASSERT_NE(Profile1.Path.size(), Profile2.Path.size()); in TEST()
169 auto &P1 = Profile1.Path.size() < Profile2.Path.size() ? Profile2 : Profile1; in TEST()
170 auto &P2 = Profile1.Path.size() < Profile2.Path.size() ? Profile1 : Profile2; in TEST()
173 ASSERT_EQ(P1.Path.size(), P1Expected.size()); in TEST()
174 ASSERT_EQ(P2.Path.size(), P2Expected.size()); in TEST()
175 ASSERT_EQ(P1.Path, P1Expected); in TEST()
176 ASSERT_EQ(P2.Path, P2Expected); in TEST()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/OrcV2Examples/LLJITWithThinLTOSummaries/
H A DLLJITWithThinLTOSummaries.cpp81 for (const std::string &Path : ModulePaths) { in log() local
82 OS << " " << Path << "\n"; in log()
115 for (const std::string &Path : ModulePaths) { in log() local
116 OS << " " << Path << "\n"; in log()
157 Expected<ThreadSafeModule> loadModule(StringRef Path, in loadModule() argument
159 outs() << "About to load module: " << Path << "\n"; in loadModule()
162 errorOrToExpected(MemoryBuffer::getFile(Path)); in loadModule()
222 StringRef Path = Entry.first(); in main() local
223 ThreadSafeModule M = (Path == MainModulePath) in main()
225 : ExitOnErr(loadModule(Path, TSCtx)); in main()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/
H A DToolChain.cpp410 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRTPath() local
412 llvm::sys::path::append(Path, "lib"); in getCompilerRTPath()
414 llvm::sys::path::append(Path, "lib", getOSLibName()); in getCompilerRTPath()
416 return std::string(Path.str()); in getCompilerRTPath()
476 SmallString<128> Path(getCompilerRTPath()); in getCompilerRT() local
477 llvm::sys::path::append(Path, CRTBasename); in getCompilerRT()
478 return std::string(Path.str()); in getCompilerRT()
500 SmallString<128> Path(getDriver().ResourceDir); in getArchSpecificLibPath() local
501 llvm::sys::path::append(Path, "lib", getOSLibName(), in getArchSpecificLibPath()
503 return std::string(Path.str()); in getArchSpecificLibPath()
[all …]

12345678910>>...23