| /freebsd-12.1/sys/contrib/dev/acpica/common/ |
| H A D | dmextern.c | 346 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 D | adwalk.c | 482 char *Path; in AcpiDmDumpDescending() local 526 NULL, &Path); in AcpiDmDumpDescending() 528 ACPI_FREE (Path); in AcpiDmDumpDescending() 607 NULL, &Path); in AcpiDmFindOrphanDescending() 610 ACPI_FREE (Path); in AcpiDmFindOrphanDescending() 775 Path = Op->Named.Path; in AcpiDmLoadDescendingOp() 781 Path = FieldPath; in AcpiDmLoadDescendingOp() 798 if (!Path) in AcpiDmLoadDescendingOp() 928 Path = Op->Named.Path; in AcpiDmXrefDescendingOp() 949 Path = Op->Common.Value.String; in AcpiDmXrefDescendingOp() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIOPosix.cpp | 28 bool IsFile(const std::string &Path) { in IsFile() argument 30 if (stat(Path.c_str(), &St)) in IsFile() 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() 50 size_t Pos = Path.rfind(GetSeparator()); in Basename() 52 assert(Pos < Path.size()); in Basename() 53 return Path.substr(Pos + 1); in Basename() 71 V->push_back(Path); in ListFilesInDirRecursive() 98 void RemoveFile(const std::string &Path) { in RemoveFile() argument [all …]
|
| H A D | FuzzerIOWindows.cpp | 63 bool IsFile(const std::string &Path) { in IsFile() argument 68 Path.c_str(), GetLastError()); in IsFile() 72 return IsFile(Path, Att); in IsFile() 78 assert(Pos < Path.size()); in Basename() 79 return Path.substr(Pos + 1); in Basename() 101 std::string Path(Dir); in ListFilesInDirRecursive() local 102 assert(!Path.empty()); in ListFilesInDirRecursive() 103 if (Path.back() != '\\') in ListFilesInDirRecursive() 104 Path.push_back('\\'); in ListFilesInDirRecursive() 105 Path.push_back('*'); in ListFilesInDirRecursive() [all …]
|
| H A D | FuzzerIO.cpp | 26 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() 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 65 FILE *Out = fopen(Path.c_str(), "w"); in WriteToFile() [all …]
|
| H A D | FuzzerIO.h | 19 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);
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | VirtualFileSystem.cpp | 412 std::string Path; member in __anon49858f0d0411::OverlayFSDirIterImpl 655 P.toVector(Path); in addFile() 665 if (Path.empty()) in addFile() 669 auto I = llvm::sys::path::begin(Path), E = sys::path::end(Path); in addFile() 765 P.toVector(Path); in lookupInMemoryNode() 775 if (Path.empty()) in lookupInMemoryNode() 907 P.toVector(Path); in setCurrentWorkingDirectory() 1266 Path = sys::path::remove_leading_dotslash(Path); in parseEntry() 1568 Path = sys::path::remove_leading_dotslash(Path); in lookupPath() 1572 if (Path.empty()) in lookupPath() [all …]
|
| H A D | Path.cpp | 323 I.Path = Path; in rbegin() 331 I.Path = Path; in rend() 347 if (Position == Path.size() && !Path.empty() && in operator ++() 530 StringRef OrigPath(Path.begin(), Path.size()); in replace_path_prefix() 561 std::replace(Path.begin(), Path.end(), '/', '\\'); in native() 562 if (Path[0] == '~' && (Path.size() == 1 || is_separator(Path[1], style))) { in native() 565 PathHome.append(Path.begin() + 1, Path.end()); in native() 705 while (Path.size() > 2 && Path[0] == '.' && is_separator(Path[1], style)) { in remove_leading_dotslash() 706 Path = Path.substr(2); in remove_leading_dotslash() 708 Path = Path.substr(1); in remove_leading_dotslash() [all …]
|
| H A D | FileOutputBuffer.cpp | 37 OnDiskBuffer(StringRef Path, fs::TempFile Temp, in OnDiskBuffer() argument 79 InMemoryBuffer(StringRef Path, MemoryBlock Buf, unsigned Mode) in InMemoryBuffer() argument 80 : FileOutputBuffer(Path), Buffer(Buf), Mode(Mode) {} in InMemoryBuffer() 109 createInMemoryBuffer(StringRef Path, size_t Size, unsigned Mode) { in createInMemoryBuffer() argument 115 return llvm::make_unique<InMemoryBuffer>(Path, MB, Mode); in createInMemoryBuffer() 119 createOnDiskBuffer(StringRef Path, size_t Size, bool InitExisting, in createOnDiskBuffer() argument 122 fs::TempFile::create(Path + ".tmp%%%%%%%", Mode); in createOnDiskBuffer() 128 if (auto EC = sys::fs::copy_file(Path, File.FD)) in createOnDiskBuffer() 152 return llvm::make_unique<OnDiskBuffer>(Path, std::move(File), in createOnDiskBuffer() 164 fs::status(Path, Stat); in create() [all …]
|
| H A D | TarWriter.cpp | 102 static void writePaxHeader(raw_fd_ostream &OS, StringRef Path) { in writePaxHeader() argument 105 std::string PaxAttr = formatPax("path", Path); in writePaxHeader() 128 static bool splitUstar(StringRef Path, StringRef &Prefix, StringRef &Name) { in splitUstar() argument 129 if (Path.size() < sizeof(UstarHeader::Name)) { in splitUstar() 131 Name = Path; in splitUstar() 135 size_t Sep = Path.rfind('/', sizeof(UstarHeader::Prefix) + 1); in splitUstar() 138 if (Path.size() - Sep - 1 >= sizeof(UstarHeader::Name)) in splitUstar() 141 Prefix = Path.substr(0, Sep); in splitUstar() 142 Name = Path.substr(Sep + 1); in splitUstar() 174 void TarWriter::append(StringRef Path, StringRef Data) { in append() argument [all …]
|
| H A D | CachePruning.cpp | 34 std::string Path; member 47 return Path < Other.Path; in operator <() 152 bool llvm::pruneCache(StringRef Path, CachePruningPolicy Policy) { in pruneCache() argument 155 if (Path.empty()) in pruneCache() 159 if (sys::fs::is_directory(Path, isPathDir)) in pruneCache() 177 SmallString<128> TimestampFile(Path); in pruneCache() 218 sys::path::native(Path, CachePathNative); in pruneCache() 258 sys::fs::remove(FileInfo->Path); in pruneCache() 262 LLVM_DEBUG(dbgs() << " - Remove " << FileInfo->Path << " (size " in pruneCache() 275 auto ErrOrSpaceInfo = sys::fs::disk_space(Path); in pruneCache()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | CXXInheritance.cpp | 44 for (paths_iterator Path = begin(), PathEnd = end(); Path != PathEnd; ++Path) in ComputeDeclsFound() local 45 Decls.insert(Path->Decls.front()); in ComputeDeclsFound() 423 !Path.Decls.empty(); in FindTagMember() 424 Path.Decls = Path.Decls.slice(1)) { in FindTagMember() 437 !Path.Decls.empty(); in findOrdinaryMember() 438 Path.Decls = Path.Decls.slice(1)) { in findOrdinaryMember() 481 for (Path.Decls = BaseRecord->lookup(Name); !Path.Decls.empty(); in FindOMPReductionMember() 482 Path.Decls = Path.Decls.slice(1)) { in FindOMPReductionMember() 498 !Path.Decls.empty(); in FindNestedNameSpecifierMember() 499 Path.Decls = Path.Decls.slice(1)) { in FindNestedNameSpecifierMember() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lld/ELF/ |
| H A D | Filesystem.cpp | 45 void elf::unlinkAsync(StringRef Path) { in unlinkAsync() argument 48 sys::fs::remove(Path); in unlinkAsync() 50 if (!ThreadsEnabled || !sys::fs::exists(Path) || in unlinkAsync() 51 !sys::fs::is_regular_file(Path)) in unlinkAsync() 59 std::error_code EC = sys::fs::openFileForRead(Path, FD); in unlinkAsync() 60 sys::fs::remove(Path); in unlinkAsync() 80 std::error_code elf::tryCreateFile(StringRef Path) { in tryCreateFile() argument 81 if (Path.empty()) in tryCreateFile() 83 if (Path == "-") in tryCreateFile() 85 return errorToErrorCode(FileOutputBuffer::create(Path, 1).takeError()); in tryCreateFile()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | VirtualFileSystem.h | 129 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); 329 openFileForRead(const Twine &Path) override; 359 return FS->status(Path); in status() 363 return FS->openFileForRead(Path); in openFileForRead() 376 return FS->getRealPath(Path, Output); in getRealPath() 379 return FS->isLocal(Path, Result); in isLocal() [all …]
|
| H A D | FileSystem.h | 469 inline bool exists(const Twine &Path) { in exists() argument 470 return !access(Path, AccessMode::Exist); in exists() 477 bool can_execute(const Twine &Path); 483 inline bool can_write(const Twine &Path) { in can_write() argument 484 return !access(Path, AccessMode::Write); in can_write() 531 inline bool is_local(const Twine &Path) { in is_local() argument 592 if (is_regular_file(Path, Result)) in is_regular_file() 616 if (is_symlink_file(Path, Result)) in is_symlink_file() 1134 std::string Path; variable 1143 : Path(Path.str()), Type(Type), FollowSymlinks(FollowSymlinks), [all …]
|
| /freebsd-12.1/contrib/bmake/ |
| H A D | dir.c | 371 Path *p; in Dir_InitCur() 471 Path *p; in Dir_SetPATH() 1166 p = (Path *)Lst_Datum(ln); in Dir_FindFile() 1384 p = (Path *)Lst_Datum(ln); in Dir_FindFile() 1620 Path * 1641 p = (Path *)Lst_Datum(ln); in Dir_AddDir() 1771 Path *p = (Path *)pp; in Dir_Destroy() 1806 Path *p; in Dir_ClearPath() 1836 Path *p; in Dir_Concat() 1839 p = (Path *)Lst_Datum(ln); in Dir_Concat() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/Symbolize/ |
| H A D | Symbolize.cpp | 152 SmallString<16> ResourceName = StringRef(Path); in getDarwinDWARFResourceForPath() 153 if (sys::path::extension(Path) != ".dSYM") { in getDarwinDWARFResourceForPath() 161 bool checkFileCRC(StringRef Path, uint32_t CRCHash) { in checkFileCRC() argument 163 MemoryBuffer::getFileOrSTDIN(Path); in checkFileCRC() 257 for (const auto &Path : Opts.DsymHints) { in lookUpDsymFile() local 260 for (const auto &Path : DsymPaths) { in lookUpDsymFile() local 261 auto DbgObjOrErr = getOrCreateObject(Path, ArchName); in lookUpDsymFile() 306 auto ObjOrErr = getOrCreateObject(Path, ArchName); in getOrCreateObjectPair() 318 DbgObj = lookUpDsymFile(Path, MachObj, ArchName); in getOrCreateObjectPair() 320 DbgObj = lookUpDebuglinkObject(Path, Obj, ArchName); in getOrCreateObjectPair() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Driver/ToolChains/ |
| H A D | MipsLinux.cpp | 60 for (const auto &Path : Callback(SelectedMultilib)) in AddClangSystemIncludeArgs() local 62 D.getInstalledDir() + Path); in AddClangSystemIncludeArgs() 100 for (std::string Path : Callback(SelectedMultilib)) { in addLibCxxIncludePaths() local 101 Path = getDriver().getInstalledDir() + Path + "/c++/v1"; in addLibCxxIncludePaths() 102 if (llvm::sys::fs::exists(Path)) { in addLibCxxIncludePaths() 103 addSystemInclude(DriverArgs, CC1Args, Path); in addLibCxxIncludePaths() 123 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRT() local 124 llvm::sys::path::append(Path, SelectedMultilib.osSuffix(), "lib" + LibSuffix, in getCompilerRT() 126 llvm::sys::path::append(Path, Twine("libclang_rt." + Component + "-" + in getCompilerRT() 128 return Path.str(); in getCompilerRT()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/ |
| H A D | FileMatchTrie.cpp | 65 if (Path.empty()) { in insert() 67 Path = NewPath; in insert() 72 if (NewPath == Path) in insert() 76 StringRef(Path).drop_back(ConsumedLength))); in insert() 77 Children[Element].Path = Path; in insert() 110 if (Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent() 111 return StringRef(Path); in findEquivalent() 145 if (Path.empty()) in getAll() 148 Results.push_back(StringRef(Path)); in getAll() 162 std::string Path; member in clang::tooling::FileMatchTrieNode
|
| /freebsd-12.1/contrib/llvm/tools/lld/COFF/ |
| H A D | Driver.cpp | 88 StringRef S = (P == StringRef::npos) ? Path : Path.substr(P + 1); in getOutputPath() 192 std::string PathStr = Path; in enqueuePath() 338 SmallString<128> Path = Dir; in doFindFile() local 343 Path.append(".obj"); in doFindFile() 371 return Path; in findFile() 416 return Path; in findLib() 426 StringRef Path; in addLibSearchPaths() local 428 SearchPaths.push_back(Path); in addLibSearchPaths() 706 MemoryBuffer::getFile(Path, -1, false, true), "could not open " + Path); in parseModuleDefs() 791 MemoryBuffer::getFile(Path, -1, false, true), "could not open " + Path); in parseOrderFile() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/ |
| H A D | FileSystemStatCache.cpp | 46 bool FileSystemStatCache::get(StringRef Path, FileData &Data, bool isFile, in get() argument 55 R = Cache->getStat(Path, Data, isFile, F, FS); in get() 59 llvm::ErrorOr<llvm::vfs::Status> Status = FS.status(Path); in get() 74 auto OwnedFile = FS.openFileForRead(Path); in get() 114 MemorizeStatCalls::getStat(StringRef Path, FileData &Data, bool isFile, in getStat() argument 117 if (get(Path, Data, isFile, F, nullptr, FS)) { in getStat() 126 if (!Data.IsDirectory || llvm::sys::path::is_absolute(Path)) in getStat() 127 StatCalls[Path] = Data; in getStat()
|
| /freebsd-12.1/sys/contrib/dev/acpica/components/namespace/ |
| H A D | nsaccess.c | 412 char *Path = Pathname; in AcpiNsLookup() local 495 Path = ""; in AcpiNsLookup() 515 if (*Path == (UINT8) AML_ROOT_PREFIX) in AcpiNsLookup() 524 Path++; in AcpiNsLookup() 553 Path++; in AcpiNsLookup() 601 switch (*Path) in AcpiNsLookup() 625 Path++; in AcpiNsLookup() 639 Path++; in AcpiNsLookup() 641 Path++; in AcpiNsLookup() 721 ACPI_MOVE_32_TO_32 (&SimpleName, Path); in AcpiNsLookup() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/PDB/ |
| H A D | PDB.cpp | 24 Error llvm::pdb::loadDataForPDB(PDB_ReaderType Type, StringRef Path, in loadDataForPDB() argument 29 MemoryBuffer::getFileOrSTDIN(Path, /*FileSize=*/-1, in loadDataForPDB() 38 return DIASession::createFromPdb(Path, Session); in loadDataForPDB() 44 Error llvm::pdb::loadDataForEXE(PDB_ReaderType Type, StringRef Path, in loadDataForEXE() argument 48 return NativeSession::createFromExe(Path, Session); in loadDataForEXE() 51 return DIASession::createFromExe(Path, Session); in loadDataForEXE()
|
| /freebsd-12.1/contrib/llvm/lib/ToolDrivers/llvm-lib/ |
| H A D | LibDriver.cpp | 83 StringRef Path; in getSearchPaths() local 84 std::tie(Path, Env) = Env.split(';'); in getSearchPaths() 85 Ret.push_back(Path); in getSearchPaths() 92 SmallString<128> Path = Dir; in findInputFile() local 93 sys::path::append(Path, File); in findInputFile() 94 if (sys::fs::exists(Path)) in findInputFile() 95 return Path.str().str(); in findInputFile() 139 std::string Path = findInputFile(Arg->getValue(), SearchPaths); in libDriverMain() local 140 if (Path.empty()) { in libDriverMain() 146 NewArchiveMember::getFile(Saver.save(Path), /*Deterministic=*/true); in libDriverMain()
|
| /freebsd-12.1/contrib/llvm/lib/ToolDrivers/llvm-dlltool/ |
| H A D | DlltoolDriver.cpp | 58 static std::unique_ptr<MemoryBuffer> openFile(const Twine &Path) { in openFile() argument 59 ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MB = MemoryBuffer::getFile(Path); in openFile() 62 llvm::errs() << "cannot open file " << Path << ": " << EC.message() << "\n"; in openFile() 78 static std::string getImplibPath(StringRef Path) { in getImplibPath() argument 80 Out.append(Path); in getImplibPath() 156 std::string Path = Args.getLastArgValue(OPT_l); in dlltoolDriverMain() local 157 if (Path.empty()) in dlltoolDriverMain() 158 Path = getImplibPath(Def->OutputFile); in dlltoolDriverMain() 177 if (writeImportLibrary(Def->OutputFile, Path, Def->Exports, Machine, true)) in dlltoolDriverMain()
|