/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/ |
H A D | MachOYAML.cpp | 85 IO &IO, MachOYAML::FileHeader &FileHdr) { in mapping() argument 86 IO.mapRequired("magic", FileHdr.magic); in mapping() 87 IO.mapRequired("cputype", FileHdr.cputype); in mapping() 88 IO.mapRequired("cpusubtype", FileHdr.cpusubtype); in mapping() 89 IO.mapRequired("filetype", FileHdr.filetype); in mapping() 90 IO.mapRequired("ncmds", FileHdr.ncmds); in mapping() 91 IO.mapRequired("sizeofcmds", FileHdr.sizeofcmds); in mapping() 92 IO.mapRequired("flags", FileHdr.flags); in mapping() 95 IO.mapRequired("reserved", FileHdr.reserved); in mapping() 98 void MappingTraits<MachOYAML::Object>::mapping(IO &IO, in mapping() argument [all …]
|
H A D | WasmYAML.cpp | 32 IO &IO, WasmYAML::FileHeader &FileHdr) { in mapping() argument 33 IO.mapRequired("Version", FileHdr.Version); in mapping() 36 void MappingTraits<WasmYAML::Object>::mapping(IO &IO, in mapping() argument 38 IO.setContext(&Object); in mapping() 39 IO.mapTag("!WASM", true); in mapping() 40 IO.mapRequired("FileHeader", Object.Header); in mapping() 41 IO.mapOptional("Sections", Object.Sections); in mapping() 42 IO.setContext(nullptr); in mapping() 45 static void commonSectionMapping(IO &IO, WasmYAML::Section &Section) { in commonSectionMapping() argument 46 IO.mapRequired("Type", Section.Type); in commonSectionMapping() [all …]
|
H A D | CodeViewYAMLSymbols.cpp | 78 void ScalarEnumerationTraits<SymbolKind>::enumeration(IO &io, in enumeration() argument 82 io.enumCase(Value, E.Name.str().c_str(), E.Value); in enumeration() 85 void ScalarBitSetTraits<CompileSym2Flags>::bitset(IO &io, in bitset() argument 89 io.bitSetCase(Flags, E.Name.str().c_str(), in bitset() 94 void ScalarBitSetTraits<CompileSym3Flags>::bitset(IO &io, in bitset() argument 98 io.bitSetCase(Flags, E.Name.str().c_str(), in bitset() 103 void ScalarBitSetTraits<ExportFlags>::bitset(IO &io, ExportFlags &Flags) { in bitset() argument 106 io.bitSetCase(Flags, E.Name.str().c_str(), in bitset() 111 void ScalarBitSetTraits<PublicSymFlags>::bitset(IO &io, PublicSymFlags &Flags) { in bitset() argument 114 io.bitSetCase(Flags, E.Name.str().c_str(), in bitset() [all …]
|
H A D | CodeViewYAMLTypes.cpp | 84 virtual void map(yaml::IO &io) = 0; 93 void map(yaml::IO &io) override; 110 void map(yaml::IO &io) override; 123 virtual void map(yaml::IO &io) = 0; 131 void map(yaml::IO &io) override; 198 void ScalarEnumerationTraits<TypeLeafKind>::enumeration(IO &io, in enumeration() argument 200 #define CV_TYPE(name, val) io.enumCase(Value, #name, name); in enumeration() 206 IO &IO, PointerToMemberRepresentation &Value) { in enumeration() argument 207 IO.enumCase(Value, "Unknown", PointerToMemberRepresentation::Unknown); in enumeration() 208 IO.enumCase(Value, "SingleInheritanceData", in enumeration() [all …]
|
H A D | DWARFYAML.cpp | 91 void MappingTraits<DWARFYAML::Data>::mapping(IO &IO, DWARFYAML::Data &DWARF) { in mapping() argument 92 void *OldContext = IO.getContext(); in mapping() 94 IO.setContext(&DWARFCtx); in mapping() 95 IO.mapOptional("debug_str", DWARF.DebugStrings); in mapping() 96 IO.mapOptional("debug_abbrev", DWARF.DebugAbbrev); in mapping() 97 IO.mapOptional("debug_aranges", DWARF.DebugAranges); in mapping() 98 IO.mapOptional("debug_ranges", DWARF.DebugRanges); in mapping() 99 IO.mapOptional("debug_pubnames", DWARF.PubNames); in mapping() 100 IO.mapOptional("debug_pubtypes", DWARF.PubTypes); in mapping() 102 IO.mapOptional("debug_gnu_pubnames", DWARF.GNUPubNames); in mapping() [all …]
|
H A D | XCOFFYAML.cpp | 29 IO &IO, XCOFF::SectionTypeFlags &Value) { in bitset() argument 30 #define ECase(X) IO.bitSetCase(Value, #X, XCOFF::X) in bitset() 48 IO &IO, XCOFF::StorageClass &Value) { in enumeration() argument 49 #define ECase(X) IO.enumCase(Value, #X, XCOFF::X) in enumeration() 104 IO &IO, XCOFF::StorageMappingClass &Value) { in enumeration() argument 105 #define ECase(X) IO.enumCase(Value, #X, XCOFF::X) in enumeration() 131 IO &IO, XCOFFYAML::AuxSymbolType &Type) { in enumeration() argument 132 #define ECase(X) IO.enumCase(Type, #X, XCOFFYAML::X) in enumeration() 144 IO &IO, XCOFF::CFileStringType &Type) { in enumeration() argument 145 #define ECase(X) IO.enumCase(Type, #X, XCOFF::X) in enumeration() [all …]
|
H A D | COFFYAML.cpp | 19 #define ECase(X) IO.enumCase(Value, #X, COFF::X); 34 IO &IO, COFFYAML::COMDATType &Value) { in enumeration() argument 35 IO.enumCase(Value, "0", 0); in enumeration() 47 IO &IO, COFFYAML::WeakExternalCharacteristics &Value) { in enumeration() argument 48 IO.enumCase(Value, "0", 0); in enumeration() 56 IO &IO, COFFYAML::AuxSymbolType &Value) { in enumeration() argument 61 IO &IO, COFF::MachineTypes &Value) { in enumeration() argument 91 IO &IO, COFF::SymbolBaseType &Value) { in enumeration() argument 111 IO &IO, COFF::SymbolStorageClass &Value) { in enumeration() argument 142 IO &IO, COFF::SymbolComplexType &Value) { in enumeration() argument [all …]
|
H A D | MinidumpYAML.cpp | 20 static inline void mapOptional(yaml::IO &IO, const char *Key, EndianType &Val, in mapOptional() argument 22 IO.mapOptional(Key, Val, EndianType(Default)); in mapOptional() 27 static inline void mapRequiredAs(yaml::IO &IO, const char *Key, in mapRequiredAs() argument 30 IO.mapRequired(Key, Mapped); in mapRequiredAs() 37 static inline void mapOptionalAs(yaml::IO &IO, const char *Key, EndianType &Val, in mapOptionalAs() argument 40 IO.mapOptional(Key, Mapped, Default); in mapOptionalAs() 54 static inline void mapRequiredHex(yaml::IO &IO, const char *Key, in mapRequiredHex() argument 56 mapRequiredAs<typename HexType<EndianType>::type>(IO, Key, Val); in mapRequiredHex() 62 static inline void mapOptionalHex(yaml::IO &IO, const char *Key, in mapOptionalHex() argument 65 mapOptionalAs<typename HexType<EndianType>::type>(IO, Key, Val, Default); in mapOptionalHex() [all …]
|
H A D | ELFYAML.cpp | 47 IO &IO, ELFYAML::ELF_ET &Value) { in enumeration() argument 48 #define ECase(X) IO.enumCase(Value, #X, ELF::X) in enumeration() 55 IO.enumFallback<Hex16>(Value); in enumeration() 59 IO &IO, ELFYAML::ELF_PT &Value) { in enumeration() argument 60 #define ECase(X) IO.enumCase(Value, #X, ELF::X) in enumeration() 74 IO.enumFallback<Hex32>(Value); in enumeration() 78 IO &IO, ELFYAML::ELF_NT &Value) { in enumeration() argument 79 #define ECase(X) IO.enumCase(Value, #X, ELF::X) in enumeration() 186 IO.enumFallback<Hex32>(Value); in enumeration() 190 IO &IO, ELFYAML::ELF_EM &Value) { in enumeration() argument [all …]
|
/openbsd-src/usr.sbin/lpd/ |
H A D | io.c | 1 /* $OpenBSD: io.c,v 1.1.1.1 2018/04/27 16:14:36 eric Exp $ */ 32 #include "io.h" 58 struct io { struct 61 void (*cb)(struct io*, int, void *); argument 77 static void io_reload(struct io *); argument 78 static void io_reset(struct io *, short, void (*)(int, short, void*)); 79 static void io_frame_enter(const char *, struct io *, int); 80 static void io_frame_leave(struct io *); 81 static void io_hold(struct io *); 82 static void io_release(struct io *); [all …]
|
H A D | iobuf.c | 45 iobuf_init(struct iobuf *io, size_t size, size_t max) in iobuf_init() argument 47 memset(io, 0, sizeof *io); in iobuf_init() 58 if ((io->buf = calloc(size, 1)) == NULL) in iobuf_init() 61 io->size = size; in iobuf_init() 62 io->max = max; in iobuf_init() 68 iobuf_clear(struct iobuf *io) in iobuf_clear() argument 72 free(io->buf); in iobuf_clear() 74 while ((q = io->outq)) { in iobuf_clear() 75 io->outq = q->next; in iobuf_clear() 79 memset(io, 0, sizeof (*io)); in iobuf_clear() [all …]
|
H A D | io.h | 1 /* $OpenBSD: io.h,v 1.2 2022/12/28 21:30:17 jmc Exp $ */ 36 struct io; 39 const char* io_strio(struct io *); 42 /* IO management */ 43 struct io *io_new(void); 44 void io_free(struct io *); 46 /* IO setup */ 47 int io_set_callback(struct io *, void(*)(struct io *, int, void *), void *); 48 int io_set_bindaddr(struct io *, const struct sockaddr *); 49 int io_set_bufsize(struct io *, size_t); [all …]
|
/openbsd-src/usr.sbin/smtpd/ |
H A D | ioev.c | 54 struct io { struct 57 void (*cb)(struct io*, int, void *); argument 73 void io_hold(struct io *); argument 74 void io_release(struct io *); 75 void io_callback(struct io*, int); 78 size_t io_pending(struct io *); 79 size_t io_queued(struct io*); 80 void io_reset(struct io *, short, void (*)(int, short, void*)); 81 void io_frame_enter(const char *, struct io *, int); 82 void io_frame_leave(struct io *); [all …]
|
H A D | iobuf.c | 40 iobuf_init(struct iobuf *io, size_t size, size_t max) in iobuf_init() argument 42 memset(io, 0, sizeof *io); in iobuf_init() 53 if ((io->buf = calloc(size, 1)) == NULL) in iobuf_init() 56 io->size = size; in iobuf_init() 57 io->max = max; in iobuf_init() 63 iobuf_clear(struct iobuf *io) in iobuf_clear() argument 67 free(io->buf); in iobuf_clear() 69 while ((q = io->outq)) { in iobuf_clear() 70 io->outq = q->next; in iobuf_clear() 74 memset(io, 0, sizeof (*io)); in iobuf_clear() [all …]
|
/openbsd-src/gnu/llvm/llvm/tools/llvm-pdbutil/ |
H A D | PdbYaml.cpp | 34 static void enumeration(IO &io, llvm::pdb::PDB_Machine &Value) { in enumeration() 35 io.enumCase(Value, "Invalid", PDB_Machine::Invalid); in enumeration() 36 io.enumCase(Value, "Am33", PDB_Machine::Am33); in enumeration() 37 io.enumCase(Value, "Amd64", PDB_Machine::Amd64); in enumeration() 38 io.enumCase(Value, "Arm", PDB_Machine::Arm); in enumeration() 39 io.enumCase(Value, "ArmNT", PDB_Machine::ArmNT); in enumeration() 40 io.enumCase(Value, "Ebc", PDB_Machine::Ebc); in enumeration() 41 io.enumCase(Value, "x86", PDB_Machine::x86); in enumeration() 42 io.enumCase(Value, "Ia64", PDB_Machine::Ia64); in enumeration() 43 io.enumCase(Value, "M32R", PDB_Machine::M32R); in enumeration() [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/CodeView/ |
H A D | SymbolRecordMapping.cpp | 20 Error operator()(CodeViewRecordIO &IO, LocalVariableAddrGap &Gap) const { in operator ()() 21 error(IO.mapInteger(Gap.GapStartOffset)); in operator ()() 22 error(IO.mapInteger(Gap.Range)); in operator ()() 28 static Error mapLocalVariableAddrRange(CodeViewRecordIO &IO, in mapLocalVariableAddrRange() argument 30 error(IO.mapInteger(Range.OffsetStart)); in mapLocalVariableAddrRange() 31 error(IO.mapInteger(Range.ISectStart)); in mapLocalVariableAddrRange() 32 error(IO.mapInteger(Range.Range)); in mapLocalVariableAddrRange() 37 error(IO.beginRecord(MaxRecordLength - sizeof(RecordPrefix))); in visitSymbolBegin() 42 error(IO.padToAlignment(alignOf(Container))); in visitSymbolEnd() 43 error(IO.endRecord()); in visitSymbolEnd() [all …]
|
H A D | TypeRecordMapping.cpp | 67 static std::string getFlagNames(CodeViewRecordIO &IO, T Value, in getFlagNames() argument 69 if (!IO.isStreaming()) in getFlagNames() 104 static StringRef getEnumName(CodeViewRecordIO &IO, T Value, in getEnumName() argument 106 if (!IO.isStreaming()) in getEnumName() 119 static std::string getMemberAttributes(CodeViewRecordIO &IO, in getMemberAttributes() argument 122 if (!IO.isStreaming()) in getMemberAttributes() 125 getEnumName(IO, uint8_t(Access), ArrayRef(getMemberAccessNames()))); in getMemberAttributes() 129 getEnumName(IO, unsigned(Kind), ArrayRef(getMemberKindNames()))); in getMemberAttributes() 134 getFlagNames(IO, unsigned(Options), ArrayRef(getMethodOptionNames())); in getMemberAttributes() 144 Error operator()(CodeViewRecordIO &IO, OneMethodRecord &Method) const { in operator ()() [all …]
|
/openbsd-src/gnu/llvm/clang/lib/APINotes/ |
H A D | APINotesYAMLCompiler.cpp | 41 static void enumeration(IO &IO, APIAvailability &AA) { in enumeration() 42 IO.enumCase(AA, "OSX", APIAvailability::OSX); in enumeration() 43 IO.enumCase(AA, "iOS", APIAvailability::IOS); in enumeration() 44 IO.enumCase(AA, "none", APIAvailability::None); in enumeration() 45 IO.enumCase(AA, "nonswift", APIAvailability::NonSwift); in enumeration() 46 IO.enumCase(AA, "available", APIAvailability::Available); in enumeration() 62 static void enumeration(IO &IO, MethodKind &MK) { in enumeration() 63 IO.enumCase(MK, "Class", MethodKind::Class); in enumeration() 64 IO.enumCase(MK, "Instance", MethodKind::Instance); in enumeration() 88 static void enumeration(IO &IO, NullabilityKind &NK) { in enumeration() [all …]
|
/openbsd-src/sbin/pfctl/ |
H A D | pfctl_radix.c | 74 struct pfioc_table io; in pfr_clr_tables() local 76 bzero(&io, sizeof io); in pfr_clr_tables() 77 io.pfrio_flags = flags; in pfr_clr_tables() 79 io.pfrio_table = *filter; in pfr_clr_tables() 80 if (ioctl(dev, DIOCRCLRTABLES, &io) == -1) in pfr_clr_tables() 83 *ndel = io.pfrio_ndel; in pfr_clr_tables() 90 struct pfioc_table io; in pfr_add_tables() local 96 bzero(&io, sizeof io); in pfr_add_tables() 111 struct pfioc_table io; pfr_del_tables() local 133 struct pfioc_table io; pfr_get_tables() local 156 struct pfioc_table io; pfr_get_tstats() local 178 struct pfioc_table io; pfr_clr_addrs() local 198 struct pfioc_table io; pfr_add_addrs() local 221 struct pfioc_table io; pfr_del_addrs() local 244 struct pfioc_table io; pfr_set_addrs() local 274 struct pfioc_table io; pfr_get_addrs() local 297 struct pfioc_table io; pfr_get_astats() local 319 struct pfioc_table io; pfr_clr_tstats() local 341 struct pfioc_table io; pfr_tst_addrs() local 364 struct pfioc_table io; pfr_ina_define() local 392 struct pfioc_iface io; pfi_get_ifaces() local [all...] |
/openbsd-src/gnu/usr.bin/perl/dist/IO/ |
H A D | ChangeLog | 1 IO 1.55 3 * moved the binmode method from IO::File to IO::Handle, since all types 4 of IO handle support layers https://github.com/Perl/perl5/issues/17457 5 * IO::Select documentation updates 7 IO 1.54 10 IO 1.52 13 IO 1.51 14 * #20201 bump dist/IO to v1.51, due to PR 19663 15 * [doc] Update IO [all...] |
H A D | IO.pm | 3 package IO; package 11 XSLoader::load 'IO', $VERSION; 16 warnings::warnif('deprecated', qq{Parameterless "use IO" deprecated}) 23 eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l) 33 IO - load various IO modules 37 use IO qw(Handle File); # loads IO modules, here IO::Handle, IO [all...] |
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
H A D | ModuleSummaryIndexYAML.h | 19 static void enumeration(IO &io, TypeTestResolution::Kind &value) { 20 io.enumCase(value, "Unknown", TypeTestResolution::Unknown); 21 io.enumCase(value, "Unsat", TypeTestResolution::Unsat); 22 io.enumCase(value, "ByteArray", TypeTestResolution::ByteArray); 23 io.enumCase(value, "Inline", TypeTestResolution::Inline); 24 io.enumCase(value, "Single", TypeTestResolution::Single); 25 io.enumCase(value, "AllOnes", TypeTestResolution::AllOnes); 30 static void mapping(IO &io, TypeTestResolution &res) { 31 io.mapOptional("Kind", res.TheKind); 32 io.mapOptional("SizeM1BitWidth", res.SizeM1BitWidth); [all …]
|
/openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/t/compress/ |
H A D | tied.pl | 37 use IO::Handle qw(SEEK_SET SEEK_CUR SEEK_END); 126 # these tests come almost 100% from IO::String 130 my $io = $CompressClass->new($name); 132 is $io->tell(), 0 ; 135 print $io $heisan ; 137 ok ! $io->eof; 139 is $io->tell(), length($heisan) ; 141 print($io "a", "b", "c"); 145 print $io "d", "e"; 147 print $io " [all...] |
H A D | newtied.pl | 37 use IO::Handle qw(SEEK_SET SEEK_CUR SEEK_END); 76 # these tests come almost 100% from IO::String 80 my $io = $CompressClass->new($name); 82 is tell($io), 0 ; 83 is $io->tell(), 0 ; 86 print $io $heisan ; 88 ok ! eof($io); 89 ok ! $io->eof(); 91 is tell($io), length($heisan) ; 92 is $io [all...] |
/openbsd-src/gnu/usr.bin/perl/dist/IO/lib/IO/ |
H A D | Handle.pm | 1 package IO::Handle; 5 IO::Handle - supply object methods for I/O handles 9 use IO::Handle; 11 my $io = IO::Handle->new(); 12 if ($io->fdopen(fileno(STDIN),"r")) { 13 print $io->getline; 14 $io->close; 17 my $io = IO [all...] |