| /freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | MinidumpEmitter.cpp | 117 static LocationDescriptor layout(BlobAllocator &File, yaml::BinaryRef Data) { in layout() argument 119 support::ulittle32_t(File.allocateBytes(Data))}; in layout() 122 static size_t layout(BlobAllocator &File, MinidumpYAML::ExceptionStream &S) { in layout() argument 123 File.allocateObject(S.MDExceptionStream); in layout() 125 size_t DataEnd = File.tell(); in layout() 134 S.MDExceptionStream.ThreadContext = layout(File, S.ThreadContext); in layout() 139 static size_t layout(BlobAllocator &File, MinidumpYAML::Memory64ListStream &S) { in layout() argument 140 size_t BaseRVA = File.tell() + sizeof(minidump::Memory64ListHeader); in layout() 144 File.allocateObject(S.Header); in layout() 146 File.allocateObject(E.Entry); in layout() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/TextAPI/ |
| H A D | TextStub.cpp | 402 NormalizedTBD(IO &IO, const InterfaceFile *&File) { in NormalizedTBD() 403 Architectures = File->getArchitectures(); in NormalizedTBD() 404 Platforms = File->getPlatforms(); in NormalizedTBD() 405 InstallName = File->getInstallName(); in NormalizedTBD() 406 CurrentVersion = PackedVersion(File->getCurrentVersion()); in NormalizedTBD() 407 CompatibilityVersion = PackedVersion(File->getCompatibilityVersion()); in NormalizedTBD() 408 SwiftABIVersion = File->getSwiftABIVersion(); in NormalizedTBD() 409 ObjCConstraint = File->getObjCConstraint(); in NormalizedTBD() 412 if (!File->isApplicationExtensionSafe()) in NormalizedTBD() 415 if (!File->isTwoLevelNamespace()) in NormalizedTBD() [all …]
|
| H A D | TextStubV5.cpp | 267 Expected<FileType> getVersion(const Object *File) { in getVersion() argument 269 TBDKey::TBDVersion, File, &Object::getInteger, in getVersion() 393 Expected<StringRef> getNameSection(const Object *File) { in getNameSection() argument 394 const Array *Section = File->getArray(Keys[TBDKey::InstallName]); in getNameSection() 407 Expected<TargetsToSymbols> getSymbolSection(const Object *File, TBDKey Key, in getSymbolSection() argument 410 const Array *Section = File->getArray(Keys[Key]); in getSymbolSection() 468 Expected<ReturnT> getLibSection(const Object *File, TBDKey Key, TBDKey SubKey, in getLibSection() argument 470 auto *Section = File->getArray(Keys[Key]); in getLibSection() 499 Expected<AttrToTargets> getUmbrellaSection(const Object *File, in getUmbrellaSection() argument 501 const auto *Umbrella = File->getArray(Keys[TBDKey::ParentUmbrella]); in getUmbrellaSection() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
| H A D | BytesOutputStyle.cpp | 85 BytesOutputStyle::BytesOutputStyle(PDBFile &File) in BytesOutputStyle() argument 86 : File(File), P(2, false, outs(), opts::Filters) {} in BytesOutputStyle() 98 if (Max >= File.getBlockCount()) in dump() 109 uint32_t Max = R.Max.value_or(File.getFileSize()); in dump() 114 if (Max >= File.getFileSize()) in dump() 201 auto &InfoS = Err(File.getPDBInfoStream()); in dumpNameMap() 203 auto Layout = File.getStreamLayout(StreamPDB); in dumpNameMap() 204 P.formatMsfStreamData("Named Stream Map", File, Layout, NS); in dumpNameMap() 213 Base *= File.getBlockSize(); in dumpBlockRanges() 215 auto ExpectedData = File.getBlockData(I, File.getBlockSize()); in dumpBlockRanges() [all …]
|
| H A D | ExplainOutputStyle.cpp | 34 ExplainOutputStyle::ExplainOutputStyle(InputFile &File, uint64_t FileOffset) in ExplainOutputStyle() argument 35 : File(File), FileOffset(FileOffset), P(2, false, outs(), opts::Filters) {} in ExplainOutputStyle() 39 File.getFilePath()); in dump() 41 if (File.isPdb()) in dump() 70 File.unknown().getBuffer(), llvm::endianness::little); in explainBinaryFile() 93 return FileOffset / File.pdb().getBlockSize(); in pdbBlockIndex() 97 uint64_t BlockStart = pdbBlockIndex() * File.pdb().getBlockSize(); in pdbBlockOffset() 107 return ((pdbBlockIndex() - 1) % File.pdb().getBlockSize() == 0); in isPdbFpm1() 110 return ((pdbBlockIndex() - 2) % File.pdb().getBlockSize() == 0); in isPdbFpm2() 118 return pdbBlockIndex() == File.pdb().getBlockMapIndex(); in isPdbBlockMapBlock() [all …]
|
| H A D | YAMLOutputStyle.cpp | 41 YAMLOutputStyle::YAMLOutputStyle(PDBFile &File) in YAMLOutputStyle() argument 42 : File(File), Out(outs()), Obj(File.getAllocator()) { in YAMLOutputStyle() 96 Obj.Headers->SuperBlock.NumBlocks = File.getBlockCount(); in dumpFileHeaders() 97 Obj.Headers->SuperBlock.BlockMapAddr = File.getBlockMapIndex(); in dumpFileHeaders() 98 Obj.Headers->SuperBlock.BlockSize = File.getBlockSize(); in dumpFileHeaders() 99 auto Blocks = File.getDirectoryBlockArray(); in dumpFileHeaders() 101 Obj.Headers->NumDirectoryBlocks = File.getNumDirectoryBlocks(); in dumpFileHeaders() 102 Obj.Headers->SuperBlock.NumDirectoryBytes = File.getNumDirectoryBytes(); in dumpFileHeaders() 104 opts::pdb2yaml::StreamMetadata ? File.getNumStreams() : 0; in dumpFileHeaders() 105 Obj.Headers->SuperBlock.FreeBlockMapBlock = File.getFreeBlockMapBlock(); in dumpFileHeaders() [all …]
|
| H A D | TypeReferenceTracker.cpp | 33 TypeReferenceTracker::TypeReferenceTracker(InputFile &File) in TypeReferenceTracker() argument 34 : File(File), Types(File.types()), in TypeReferenceTracker() 35 Ids(File.isPdb() ? &File.ids() : nullptr) { in TypeReferenceTracker() 47 if (File.isPdb()) { in TypeReferenceTracker() 48 Tpi = &cantFail(File.pdb().getPDBTpiStream()); in TypeReferenceTracker() 58 for (const SymbolGroup &SG : File.symbol_groups()) { in mark() 59 if (File in mark() [all...] |
| /freebsd/contrib/pam-krb5/tests/tap/perl/Test/RRA/ |
| H A D | Automake.pm | 24 use File::Find qw(find); 25 use File::Spec; 36 $PERL_BLIB_ARCH = File::Spec->catdir(qw(perl blib arch)); 37 $PERL_BLIB_LIB = File::Spec->catdir(qw(perl blib lib)); 41 my ($vol, $dirs) = File::Spec->splitpath($ENV{C_TAP_BUILD}, 1); 42 my @dirs = File::Spec->splitdir($dirs); 44 $PERL_BLIB_ARCH = File::Spec->catdir(@dirs, qw(perl blib arch)); 45 $PERL_BLIB_LIB = File::Spec->catdir(@dirs, qw(perl blib lib)); 104 my $path = $File::Find::name; 107 $File::Find::prune = 1; [all …]
|
| /freebsd/contrib/llvm-project/libc/src/__support/File/linux/ |
| H A D | file.cpp | 27 FileIOResult linux_file_write(File *f, const void *data, size_t size) { in linux_file_write() 37 FileIOResult linux_file_read(File *f, void *buf, size_t size) { in linux_file_read() 47 ErrorOr<off_t> linux_file_seek(File *f, off_t offset, int whence) { in linux_file_seek() 55 int linux_file_close(File *f) { in linux_file_close() 65 ErrorOr<File *> openfile(const char *path, const char *mode) { in openfile() 66 using ModeFlags = File::ModeFlags; in openfile() 67 auto modeflags = File::mode_flags(mode); in openfile() 73 if (modeflags & ModeFlags(File::OpenMode::APPEND)) { in openfile() 75 if (modeflags & ModeFlags(File::OpenMode::PLUS)) in openfile() 79 } else if (modeflags & ModeFlags(File::OpenMode::WRITE)) { in openfile() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | File.cpp | 45 File::GetStreamOpenModeFromOptions(File::OpenOptions options) { in GetStreamOpenModeFromOptions() 46 File::OpenOptions rw = in GetStreamOpenModeFromOptions() 47 options & (File::eOpenOptionReadOnly | File::eOpenOptionWriteOnly | in GetStreamOpenModeFromOptions() 48 File::eOpenOptionReadWrite); in GetStreamOpenModeFromOptions() 50 if (options & File::eOpenOptionAppend) { in GetStreamOpenModeFromOptions() 51 if (rw == File::eOpenOptionReadWrite) { in GetStreamOpenModeFromOptions() 52 if (options & File::eOpenOptionCanCreateNewOnly) in GetStreamOpenModeFromOptions() 56 } else if (rw == File::eOpenOptionWriteOnly) { in GetStreamOpenModeFromOptions() 57 if (options & File::eOpenOptionCanCreateNewOnly) in GetStreamOpenModeFromOptions() 62 } else if (rw == File::eOpenOptionReadWrite) { in GetStreamOpenModeFromOptions() [all …]
|
| /freebsd/sys/contrib/dev/acpica/common/ |
| H A D | acfileio.c | 167 FILE *File, 229 FILE *File; in AcGetAllTablesFromFile() local 235 File = fopen (Filename, "rb"); in AcGetAllTablesFromFile() 236 if (!File) in AcGetAllTablesFromFile() 249 FileSize = CmGetFileSize (File); in AcGetAllTablesFromFile() 270 if (!AcIsFileBinary (File)) in AcGetAllTablesFromFile() 286 Filename, File, GetOnlyAmlTables, &Table); in AcGetAllTablesFromFile() 355 fclose(File); in AcGetAllTablesFromFile() 382 FILE *File, in AcGetOneTableFromFile() argument 411 Status = AcValidateTableHeader (File, TableOffset); in AcGetOneTableFromFile() [all …]
|
| H A D | adisasm.c | 174 FILE *File, 181 FILE *File, 301 FILE *File = NULL; in AdAmlDisassemble() local 375 File = fopen (DisasmFilename, "w+"); in AdAmlDisassemble() 376 if (!File) in AdAmlDisassemble() 392 File, Filename, DisasmFilename); in AdAmlDisassemble() 412 if (File) in AdAmlDisassemble() 414 fclose (File); in AdAmlDisassemble() 442 FILE *File, in AdDisassembleOneTable() argument 469 if (File) in AdDisassembleOneTable() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingFile.c | 107 static int mmapForContinuousMode(uint64_t CurrentFileOffset, FILE *File) { in mmapForContinuousMode() argument 144 int Fileno = fileno(File); in mmapForContinuousMode() 247 static int mmapForContinuousMode(uint64_t CurrentFileOffset, FILE *File) { in mmapForContinuousMode() argument 263 if (getProfileFileSizeForMerging(File, &FileSize)) in mmapForContinuousMode() 266 int Fileno = fileno(File); in mmapForContinuousMode() 310 static int mmapForContinuousMode(uint64_t CurrentFileOffset, FILE *File) { in mmapForContinuousMode() argument 322 static void setProfileFile(FILE *File) { ProfileFile = File; } in setProfileFile() argument 334 FILE *File = (FILE *)This->WriterCtx; in fileWriter() local 338 if (fwrite(IOVecs[I].Data, IOVecs[I].ElmSize, IOVecs[I].NumElm, File) != in fileWriter() 346 if (fwrite(Zeroes, sizeof(uint8_t), PartialWriteLen, File) != in fileWriter() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 161 FileID File; in range() local 163 std::tie(File, StartOffset) = SM.getDecomposedLoc(location()); in range() 164 return FileRange(File, StartOffset, StartOffset + length()); in range() 182 FileRange::FileRange(FileID File, unsigned BeginOffset, unsigned EndOffset) in FileRange() argument 183 : File(File), Begin(BeginOffset), End(EndOffset) { in FileRange() 184 assert(File.isValid()); in FileRange() 193 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange() 205 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange() 218 StringRef Text = SM.getBufferData(File, &Invalid); in text() 264 SourceRange(SM.getComposedLoc(File, Begin), SM.getComposedLoc(File, End)), in toCharRange() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | InputFile.cpp | 39 llvm::pdb::getModuleDebugStream(PDBFile &File, StringRef &ModuleName, in getModuleDebugStream() argument 41 Expected<DbiStream &> DbiOrErr = File.getPDBDbiStream(); in getModuleDebugStream() 59 auto ModStreamData = File.createIndexedStream(ModiStream); in getModuleDebugStream() 69 Expected<ModuleDebugStreamRef> llvm::pdb::getModuleDebugStream(PDBFile &File, in getModuleDebugStream() argument 71 Expected<DbiStream &> DbiOrErr = File.getPDBDbiStream(); in getModuleDebugStream() 83 auto ModStreamData = File.createIndexedStream(ModiStream); in getModuleDebugStream() 157 SymbolGroup::SymbolGroup(InputFile *File, uint32_t GroupIndex) : File(File) { in SymbolGroup() argument 158 if (!File) in SymbolGroup() 259 formatFromFileName(LinePrinter & Printer,StringRef File,bool Append) const formatFromFileName() argument 486 SymbolGroupIterator(InputFile & File) SymbolGroupIterator() argument [all...] |
| /freebsd/sys/contrib/dev/acpica/components/utilities/ |
| H A D | utbuffer.c | 369 ACPI_FILE File, in AcpiUtDumpBufferToFile() argument 383 fprintf (File, "Null Buffer Pointer in DumpBuffer!\n"); in AcpiUtDumpBufferToFile() 398 fprintf (File, "%8.4X: ", (BaseOffset + i)); in AcpiUtDumpBufferToFile() 408 fprintf (File, "%*s", ((Display * 2) + 1), " "); in AcpiUtDumpBufferToFile() 418 fprintf (File, "%02X ", Buffer[(ACPI_SIZE) i + j]); in AcpiUtDumpBufferToFile() 424 fprintf (File, "%04X ", Temp32); in AcpiUtDumpBufferToFile() 430 fprintf (File, "%08X ", Temp32); in AcpiUtDumpBufferToFile() 436 fprintf (File, "%08X", Temp32); in AcpiUtDumpBufferToFile() 439 fprintf (File, "%08X ", Temp32); in AcpiUtDumpBufferToFile() 450 fprintf (File, " "); in AcpiUtDumpBufferToFile() [all …]
|
| /freebsd/tools/regression/usr.bin/env/ |
| H A D | regress-sb.rb | 96 rdata = File.open(fname) 136 symres = File.symlink(fnames[0], fnames[1]) 138 return false unless File.symlink?(fnames[1]) 148 if File.symlink?(fnames[1]) 149 if File.delete(fnames[1]) != 1 164 File.delete(@stderr) if File.exists?(@stderr) 165 File.delete(@stdout) if File.exists?(@stdout) 197 tscript = File.open($scriptfile, "w") 203 File.chmod(0755, $scriptfile) 285 if not File.exists?(fname) [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/ |
| H A D | DWARFLinkerImpl.h | |
| /freebsd/contrib/llvm-project/lldb/include/lldb/Host/ |
| H A D | StreamFile.h | 31 StreamFile(const char *path, File::OpenOptions options, 36 StreamFile(std::shared_ptr<File> file) : m_file_sp(file) { assert(file); }; in StreamFile() 40 File &GetFile() { return *m_file_sp; } in GetFile() 42 const File &GetFile() const { return *m_file_sp; } in GetFile() 44 std::shared_ptr<File> GetFileSP() { return m_file_sp; } in GetFileSP() 50 std::shared_ptr<File> m_file_sp; // never NULL 67 LockedStreamFile(std::shared_ptr<File> file, std::recursive_mutex &mutex) in LockedStreamFile() 86 LockableStreamFile(std::shared_ptr<File> file_sp, Mutex &mutex) in LockableStreamFile() 94 File &GetUnlockedFile() { return *m_file_sp; } in GetUnlockedFile() 95 std::shared_ptr<File> GetUnlockedFileSP() { return m_file_sp; } in GetUnlockedFileSP() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | HeaderSearch.cpp | 451 auto File = getFileMgr().getFileRef(FileName, OpenFile, CacheFailures); in getFileAndSuggestModule() local 452 if (!File) { in getFileAndSuggestModule() 455 std::error_code EC = llvm::errorToErrorCode(File.takeError()); in getFileAndSuggestModule() 467 *File, Dir ? Dir : File->getFileEntry().getDir(), RequestingModule, in getFileAndSuggestModule() 471 return *File; in getFileAndSuggestModule() 522 [&](FileEntryRef File) -> OptionalFileEntryRef { in LookupFile() argument 532 if (!HS.findUsableModuleForHeader(File, File.getFileEntry().getDir(), in LookupFile() 537 return File; in LookupFile() 703 auto File = in DoFrameworkLookup() local 705 if (!File) { in DoFrameworkLookup() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/Classic/ |
| H A D | DWARFLinker.h | 241 DWARFFile &File, ObjFileLoaderTy Loader = nullptr, 384 void verifyInput(const DWARFFile &File); 389 void reportWarning(const Twine &Warning, const DWARFFile &File, 392 WarningHandler(Warning, File.FileName, DIE); 395 void reportError(const Twine &Warning, const DWARFFile &File, 398 ErrorHandler(Warning, File.FileName, DIE); 406 RefModuleUnit(DWARFFile &File, std::unique_ptr<CompileUnit> Unit) in RefModuleUnit() 407 : File(File), Unit(std::move(Unit)) {} in RefModuleUnit() 409 : File(Other.File), Unit(std::move(Other.Unit)) {} in RefModuleUnit() 412 DWARFFile &File; member [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/FileSystem/ |
| H A D | UniqueID.h | 28 uint64_t File; variable 32 UniqueID(uint64_t Device, uint64_t File) : Device(Device), File(File) {} in UniqueID() argument 35 return Device == Other.Device && File == Other.File; 44 return File < Other.File; 48 uint64_t getFile() const { return File; } in getFile()
|
| /freebsd/contrib/llvm-project/libc/src/__support/File/ |
| H A D | file.h | 40 class File { 44 using LockFunc = void(File *); 45 using UnlockFunc = void(File *); 47 using WriteFunc = FileIOResult(File *, const void *, size_t); 48 using ReadFunc = FileIOResult(File *, void *, size_t); 51 using SeekFunc = ErrorOr<off_t>(File *, off_t, int); 52 using CloseFunc = int(File *); 125 File *file; 128 explicit FileLock(File *f) : file(f) { file->lock(); } in FileLock() 156 constexpr File(WriteFunc *wf, ReadFunc *rf, SeekFunc *sf, CloseFunc *cf, in File() function [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/ |
| H A D | DWARFLinker.h | |
| /freebsd/contrib/llvm-project/llvm/tools/llvm-cov/ |
| H A D | CoverageReport.cpp | 218 void CoverageReport::render(const FileCoverageSummary &File, in render() argument 221 determineCoveragePercentageColor(File.RegionCoverage); in render() 223 determineCoveragePercentageColor(File.FunctionCoverage); in render() 225 determineCoveragePercentageColor(File.InstantiationCoverage); in render() 226 auto LineCoverageColor = determineCoveragePercentageColor(File.LineCoverage); in render() 227 SmallString<256> FileName = File.Name; in render() 240 (unsigned)File.RegionCoverage.getNumRegions()); in render() 243 (unsigned)(File.RegionCoverage.getNumRegions() - in render() 244 File.RegionCoverage.getCovered())); in render() 245 if (File.RegionCoverage.getNumRegions()) in render() [all …]
|