/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
H A D | dsl_scan.c | 101 #define DSL_SCAN_IS_SCRUB_RESILVER(scn) \ argument 102 ((scn)->scn_phys.scn_func == POOL_SCAN_SCRUB || \ 103 (scn)->scn_phys.scn_func == POOL_SCAN_RESILVER) 126 dsl_scan_t *scn; in dsl_scan_init() local 130 scn = dp->dp_scan = kmem_zalloc(sizeof (dsl_scan_t), KM_SLEEP); in dsl_scan_init() 131 scn->scn_dp = dp; in dsl_scan_init() 138 ASSERT(!scn->scn_async_destroying); in dsl_scan_init() 139 scn->scn_async_destroying = spa_feature_is_active(dp->dp_spa, in dsl_scan_init() 149 scn->scn_restart_txg = txg; in dsl_scan_init() 152 scn->scn_restart_txg); in dsl_scan_init() [all …]
|
/netbsd-src/external/bsd/elftoolchain/dist/libelf/ |
H A D | libelf_extended.c | 60 Elf_Scn *scn; in _libelf_setshnum() local 63 if ((scn = _libelf_getscn0(e)) == NULL) in _libelf_setshnum() 66 assert(scn->s_ndx == SHN_UNDEF); in _libelf_setshnum() 69 scn->s_shdr.s_shdr32.sh_size = (Elf32_Word) shnum; in _libelf_setshnum() 71 scn->s_shdr.s_shdr64.sh_size = shnum; in _libelf_setshnum() 73 (void) elf_flagshdr(scn, ELF_C_SET, ELF_F_DIRTY); in _libelf_setshnum() 90 Elf_Scn *scn; in _libelf_setshstrndx() local 93 if ((scn = _libelf_getscn0(e)) == NULL) in _libelf_setshstrndx() 96 assert(scn->s_ndx == SHN_UNDEF); in _libelf_setshstrndx() 99 scn->s_shdr.s_shdr32.sh_link = (Elf32_Word) shstrndx; in _libelf_setshstrndx() [all …]
|
H A D | elf_scn.c | 54 Elf_Scn *scn; in _libelf_load_section_headers() local 119 if ((scn = _libelf_allocate_scn(e, i)) == NULL) in _libelf_load_section_headers() 122 (*xlator)((void *) &scn->s_shdr, sizeof(scn->s_shdr), in _libelf_load_section_headers() 126 scn->s_offset = scn->s_rawoff = in _libelf_load_section_headers() 127 scn->s_shdr.s_shdr32.sh_offset; in _libelf_load_section_headers() 128 scn->s_size = scn->s_shdr.s_shdr32.sh_size; in _libelf_load_section_headers() 130 scn->s_offset = scn->s_rawoff = in _libelf_load_section_headers() 131 scn->s_shdr.s_shdr64.sh_offset; in _libelf_load_section_headers() 132 scn->s_size = scn->s_shdr.s_shdr64.sh_size; in _libelf_load_section_headers() 186 Elf_Scn *scn; in elf_newscn() local [all …]
|
H A D | gelf_symshndx.c | 50 Elf_Scn *scn; in gelf_getsymshndx() local 68 if ((scn = lid->d_scn) == NULL || in gelf_getsymshndx() 69 (e = scn->s_elf) == NULL || (e != ld->d_scn->s_elf)) { in gelf_getsymshndx() 78 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsymshndx() 80 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsymshndx() 110 Elf_Scn *scn; in gelf_update_symshndx() local 120 if (lid == NULL || (scn = lid->d_scn) == NULL || in gelf_update_symshndx() 121 (e = scn->s_elf) == NULL || (e != ld->d_scn->s_elf)) { in gelf_update_symshndx() 130 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_symshndx() 132 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_symshndx()
|
H A D | gelf_cap.c | 50 Elf_Scn *scn; in gelf_getcap() local 59 (scn = d->d_scn) == NULL || in gelf_getcap() 60 (e = scn->s_elf) == NULL) { in gelf_getcap() 69 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getcap() 71 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getcap() 109 Elf_Scn *scn; in gelf_update_cap() local 118 (scn = d->d_scn) == NULL || in gelf_update_cap() 119 (e = scn->s_elf) == NULL) { in gelf_update_cap() 128 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_cap() 130 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_cap()
|
H A D | gelf_syminfo.c | 49 Elf_Scn *scn; in gelf_getsyminfo() local 58 (scn = d->d_scn) == NULL || in gelf_getsyminfo() 59 (e = scn->s_elf) == NULL) { in gelf_getsyminfo() 68 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsyminfo() 70 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsyminfo() 110 Elf_Scn *scn; in gelf_update_syminfo() local 119 (scn = d->d_scn) == NULL || in gelf_update_syminfo() 120 (e = scn->s_elf) == NULL) { in gelf_update_syminfo() 129 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_syminfo() 131 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_syminfo()
|
H A D | gelf_dyn.c | 50 Elf_Scn *scn; in gelf_getdyn() local 59 (scn = d->d_scn) == NULL || in gelf_getdyn() 60 (e = scn->s_elf) == NULL) { in gelf_getdyn() 69 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getdyn() 71 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getdyn() 110 Elf_Scn *scn; in gelf_update_dyn() local 119 (scn = d->d_scn) == NULL || in gelf_update_dyn() 120 (e = scn->s_elf) == NULL) { in gelf_update_dyn() 129 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_dyn() 131 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_dyn()
|
H A D | gelf_move.c | 51 Elf_Scn *scn; in gelf_getmove() local 60 (scn = d->d_scn) == NULL || in gelf_getmove() 61 (e = scn->s_elf) == NULL) { in gelf_getmove() 70 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getmove() 72 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getmove() 114 Elf_Scn *scn; in gelf_update_move() local 123 (scn = d->d_scn) == NULL || in gelf_update_move() 124 (e = scn->s_elf) == NULL) { in gelf_update_move() 133 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_move() 135 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_move()
|
H A D | gelf_rel.c | 50 Elf_Scn *scn; in gelf_getrel() local 59 (scn = d->d_scn) == NULL || in gelf_getrel() 60 (e = scn->s_elf) == NULL) { in gelf_getrel() 69 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getrel() 71 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getrel() 112 Elf_Scn *scn; in gelf_update_rel() local 121 (scn = d->d_scn) == NULL || in gelf_update_rel() 122 (e = scn->s_elf) == NULL) { in gelf_update_rel() 131 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rel() 133 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rel()
|
H A D | gelf_rela.c | 51 Elf_Scn *scn; in gelf_getrela() local 60 (scn = d->d_scn) == NULL || in gelf_getrela() 61 (e = scn->s_elf) == NULL) { in gelf_getrela() 70 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getrela() 72 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getrela() 114 Elf_Scn *scn; in gelf_update_rela() local 123 (scn = d->d_scn) == NULL || in gelf_update_rela() 124 (e = scn->s_elf) == NULL) { in gelf_update_rela() 133 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rela() 135 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rela()
|
H A D | gelf_sym.c | 51 Elf_Scn *scn; in gelf_getsym() local 60 (scn = d->d_scn) == NULL || in gelf_getsym() 61 (e = scn->s_elf) == NULL) { in gelf_getsym() 70 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsym() 72 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsym() 113 Elf_Scn *scn; in gelf_update_sym() local 122 (scn = d->d_scn) == NULL || in gelf_update_sym() 123 (e = scn->s_elf) == NULL) { in gelf_update_sym() 132 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_sym() 134 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_sym()
|
H A D | gelf_shdr.c | 99 gelf_update_shdr(Elf_Scn *scn, GElf_Shdr *s) in gelf_update_shdr() argument 106 if (s == NULL || scn == NULL || (e = scn->s_elf) == NULL || in gelf_update_shdr() 118 (void) elf_flagscn(scn, ELF_C_SET, ELF_F_DIRTY); in gelf_update_shdr() 121 scn->s_shdr.s_shdr64 = *s; in gelf_update_shdr() 125 sh32 = &scn->s_shdr.s_shdr32; in gelf_update_shdr()
|
H A D | elf_end.c | 52 Elf_Scn *scn, *tscn; in elf_end() local 78 STAILQ_FOREACH_SAFE(scn, &e->e_u.e_elf.e_scn, s_next, in elf_end() 80 scn = _libelf_release_scn(scn); in elf_end()
|
H A D | libelf_checksum.c | 54 Elf_Scn *scn; in _libelf_checksum() local 84 if ((scn = elf_getscn(e, shn)) == NULL) in _libelf_checksum() 86 if (gelf_getshdr(scn, &shdr) == NULL) in _libelf_checksum() 94 while ((d = elf_rawdata(scn, d)) != NULL) in _libelf_checksum()
|
H A D | libelf_ehdr.c | 54 Elf_Scn *scn; in _libelf_load_extended() local 73 if ((scn = _libelf_allocate_scn(e, (size_t) 0)) == NULL) in _libelf_load_extended() 83 (*xlator)((unsigned char *) &scn->s_shdr, sizeof(scn->s_shdr), in _libelf_load_extended() 87 #define GET_SHDR_MEMBER(M) ((ec == ELFCLASS32) ? scn->s_shdr.s_shdr32.M : \ in _libelf_load_extended() 88 scn->s_shdr.s_shdr64.M) in _libelf_load_extended()
|
/netbsd-src/external/bsd/elftoolchain/dist/libdwarf/ |
H A D | libdwarf_elf_init.c | 140 Elf_Scn *scn; in _dwarf_elf_relocate() local 152 scn = NULL; in _dwarf_elf_relocate() 154 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_relocate() 155 if (gelf_getshdr(scn, &sh) == NULL) { in _dwarf_elf_relocate() 165 if ((rel = elf_getdata(scn, NULL)) == NULL) { in _dwarf_elf_relocate() 210 Elf_Scn *scn; in _dwarf_elf_init() local 258 scn = NULL; in _dwarf_elf_init() 260 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_init() 261 if (gelf_getshdr(scn, &sh) == NULL) { in _dwarf_elf_init() 275 symtab_ndx = elf_ndxscn(scn); in _dwarf_elf_init() [all …]
|
/netbsd-src/external/bsd/libproc/dist/ |
H A D | proc_sym.c | 287 lookup_addr(Elf *e, Elf_Scn *scn, u_long stridx, uintptr_t off, uintptr_t addr, in lookup_addr() argument 296 if ((data = elf_getdata(scn, NULL)) == NULL) { in lookup_addr() 327 Elf_Scn *scn, *dynsymscn = NULL, *symtabscn = NULL; in proc_addr2sym() local 353 scn = NULL; in proc_addr2sym() 354 while ((scn = elf_nextscn(e, scn)) != NULL) { in proc_addr2sym() 355 gelf_getshdr(scn, &shdr); in proc_addr2sym() 358 symtabscn = scn; in proc_addr2sym() 362 dynsymscn = scn; in proc_addr2sym() 444 lookup_name(Elf *e, Elf_Scn *scn, u_long stridx, const char *symbol, in lookup_name() argument 452 if ((data = elf_getdata(scn, NULL)) == NULL) { in lookup_name() [all …]
|
/netbsd-src/external/bsd/file/dist/src/ |
H A D | readcdf.c | 377 const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) in cdf_file_catalog_info() argument 382 dir, "Catalog", scn)) == -1) in cdf_file_catalog_info() 385 cdf_dump_catalog(h, scn); in cdf_file_catalog_info() 387 if ((i = cdf_file_catalog(ms, h, scn)) == -1) in cdf_file_catalog_info() 395 const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn, in cdf_check_summary_info() argument 405 cdf_dump_summary_info(h, scn); in cdf_check_summary_info() 407 if ((i = cdf_file_summary_info(ms, h, scn, root_storage)) < 0) { in cdf_check_summary_info() 435 dir, scn); in cdf_check_summary_info() 555 cdf_stream_t sst, scn; in file_trycdf() local 561 scn.sst_tab = NULL; in file_trycdf() [all …]
|
H A D | cdf.c | 338 cdf_zero_stream(cdf_stream_t *scn) in cdf_zero_stream() argument 340 scn->sst_len = 0; in cdf_zero_stream() 341 scn->sst_dirlen = 0; in cdf_zero_stream() 342 scn->sst_ss = 0; in cdf_zero_stream() 343 free(scn->sst_tab); in cdf_zero_stream() 344 scn->sst_tab = NULL; in cdf_zero_stream() 604 const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_long_sector_chain() argument 608 scn->sst_tab = NULL; in cdf_read_long_sector_chain() 609 scn->sst_len = cdf_count_chain(sat, sid, ss); in cdf_read_long_sector_chain() 610 scn->sst_dirlen = MAX(h->h_min_size_standard_stream, len); in cdf_read_long_sector_chain() [all …]
|
/netbsd-src/external/cddl/osnet/dist/tools/ctf/cvt/ |
H A D | util.c | 70 Elf_Scn *scn = NULL; in findelfsecidx() local 77 while ((scn = elf_nextscn(elf, scn)) != NULL) { in findelfsecidx() 80 if (gelf_getshdr(scn, &shdr) == NULL) { in findelfsecidx() 83 elf_ndxscn(scn)); in findelfsecidx() 90 elf_ndxscn(scn)); in findelfsecidx() 94 return (elf_ndxscn(scn)); in findelfsecidx()
|
/netbsd-src/external/gpl3/binutils/dist/binutils/ |
H A D | od-pe.c | 633 struct external_scnhdr scn; in dump_pe_sections_header() local 636 if (bfd_read (&scn, sizeof (scn), abfd) != sizeof (scn)) in dump_pe_sections_header() 643 i + 1, scn.s_name, in dump_pe_sections_header() 644 (unsigned int) bfd_h_get_32 (abfd, scn.s_paddr), in dump_pe_sections_header() 645 (unsigned int) bfd_h_get_32 (abfd, scn.s_vaddr), in dump_pe_sections_header() 646 (unsigned int) bfd_h_get_32 (abfd, scn.s_size), in dump_pe_sections_header() 647 (unsigned int) bfd_h_get_32 (abfd, scn.s_scnptr), in dump_pe_sections_header() 648 (unsigned int) bfd_h_get_32 (abfd, scn.s_relptr), in dump_pe_sections_header() 649 (unsigned int) bfd_h_get_32 (abfd, scn.s_lnnoptr), in dump_pe_sections_header() 650 (unsigned int) bfd_h_get_16 (abfd, scn.s_nreloc), in dump_pe_sections_header() [all …]
|
H A D | od-xcoff.c | 542 struct external_scnhdr scn; in dump_xcoff32_sections_header() local 545 if (bfd_read (&scn, sizeof (scn), abfd) != sizeof (scn)) in dump_xcoff32_sections_header() 550 flags = bfd_h_get_32 (abfd, scn.s_flags); in dump_xcoff32_sections_header() 552 i + 1, scn.s_name, in dump_xcoff32_sections_header() 553 (unsigned int)bfd_h_get_32 (abfd, scn.s_paddr), in dump_xcoff32_sections_header() 554 (unsigned int)bfd_h_get_32 (abfd, scn.s_vaddr), in dump_xcoff32_sections_header() 555 (unsigned int)bfd_h_get_32 (abfd, scn.s_size), in dump_xcoff32_sections_header() 556 (unsigned int)bfd_h_get_32 (abfd, scn.s_scnptr), in dump_xcoff32_sections_header() 557 (unsigned int)bfd_h_get_32 (abfd, scn.s_relptr), in dump_xcoff32_sections_header() 558 (unsigned int)bfd_h_get_32 (abfd, scn.s_lnnoptr), in dump_xcoff32_sections_header() [all …]
|
/netbsd-src/external/gpl3/binutils.old/dist/binutils/ |
H A D | od-xcoff.c | 541 struct external_scnhdr scn; in dump_xcoff32_sections_header() local 544 if (bfd_bread (&scn, sizeof (scn), abfd) != sizeof (scn)) in dump_xcoff32_sections_header() 549 flags = bfd_h_get_32 (abfd, scn.s_flags); in dump_xcoff32_sections_header() 551 i + 1, scn.s_name, in dump_xcoff32_sections_header() 552 (unsigned int)bfd_h_get_32 (abfd, scn.s_paddr), in dump_xcoff32_sections_header() 553 (unsigned int)bfd_h_get_32 (abfd, scn.s_vaddr), in dump_xcoff32_sections_header() 554 (unsigned int)bfd_h_get_32 (abfd, scn.s_size), in dump_xcoff32_sections_header() 555 (unsigned int)bfd_h_get_32 (abfd, scn.s_scnptr), in dump_xcoff32_sections_header() 556 (unsigned int)bfd_h_get_32 (abfd, scn.s_relptr), in dump_xcoff32_sections_header() 557 (unsigned int)bfd_h_get_32 (abfd, scn.s_lnnoptr), in dump_xcoff32_sections_header() [all …]
|
/netbsd-src/sys/fs/msdosfs/ |
H A D | msdosfs_lookup.c | 116 u_long scn; /* starting cluster number */ in msdosfs_lookup() local 177 scn = MSDOSFSROOT; in msdosfs_lookup() 435 scn = getushort(dep->deStartCluster); in msdosfs_lookup() 437 scn |= getushort(dep->deHighClust) << 16; in msdosfs_lookup() 438 if (scn == pmp->pm_rootdirblk) { in msdosfs_lookup() 443 scn = MSDOSFSROOT; in msdosfs_lookup() 448 cluster = scn; in msdosfs_lookup() 469 if (FAT32(pmp) && scn == MSDOSFSROOT) in msdosfs_lookup() 470 scn = pmp->pm_rootdirblk; in msdosfs_lookup() 495 if (dp->de_StartCluster == scn && isadir) { /* "." */ in msdosfs_lookup() [all …]
|
/netbsd-src/lib/libexecinfo/ |
H A D | symtab.c | 96 Elf_Scn *scn = NULL; in symtab_create() local 123 while ((scn = elf_nextscn(elf, scn)) != NULL) { in symtab_create() 129 gelf_getshdr(scn, &shdr); in symtab_create() 133 edata = elf_getdata(scn, NULL); in symtab_create()
|