/freebsd-current/contrib/elftoolchain/libelf/ |
H A D | libelf_extended.c | 51 Elf_Scn *scn; local 54 if ((scn = _libelf_getscn0(e)) == NULL) 57 assert(scn->s_ndx == SHN_UNDEF); 60 scn->s_shdr.s_shdr32.sh_size = (Elf32_Word) shnum; 62 scn->s_shdr.s_shdr64.sh_size = shnum; 64 (void) elf_flagshdr(scn, ELF_C_SET, ELF_F_DIRTY); 81 Elf_Scn *scn; local 84 if ((scn = _libelf_getscn0(e)) == NULL) 87 assert(scn->s_ndx == SHN_UNDEF); 90 scn 110 Elf_Scn *scn; local [all...] |
H A D | gelf_symshndx.c | 41 Elf_Scn *scn; local 51 if (lid == NULL || (scn = lid->d_scn) == NULL || 52 (e = scn->s_elf) == NULL || (e != ld->d_scn->s_elf) || 62 sh_type = scn->s_shdr.s_shdr32.sh_type; 64 sh_type = scn->s_shdr.s_shdr64.sh_type; 94 Elf_Scn *scn; local 104 if (lid == NULL || (scn = lid->d_scn) == NULL || 105 (e = scn->s_elf) == NULL || (e != ld->d_scn->s_elf)) { 114 sh_type = scn->s_shdr.s_shdr32.sh_type; 116 sh_type = scn [all...] |
H A D | gelf_dyn.c | 42 Elf_Scn *scn; local 51 (scn = d->d_scn) == NULL || 52 (e = scn->s_elf) == NULL) { 61 sh_type = scn->s_shdr.s_shdr32.sh_type; 63 sh_type = scn->s_shdr.s_shdr64.sh_type; 102 Elf_Scn *scn; local 111 (scn = d->d_scn) == NULL || 112 (e = scn->s_elf) == NULL) { 121 sh_type = scn->s_shdr.s_shdr32.sh_type; 123 sh_type = scn [all...] |
H A D | gelf_cap.c | 42 Elf_Scn *scn; local 51 (scn = d->d_scn) == NULL || 52 (e = scn->s_elf) == NULL) { 61 sh_type = scn->s_shdr.s_shdr32.sh_type; 63 sh_type = scn->s_shdr.s_shdr64.sh_type; 101 Elf_Scn *scn; local 110 (scn = d->d_scn) == NULL || 111 (e = scn->s_elf) == NULL) { 120 sh_type = scn->s_shdr.s_shdr32.sh_type; 122 sh_type = scn [all...] |
H A D | gelf_syminfo.c | 40 Elf_Scn *scn; local 49 (scn = d->d_scn) == NULL || 50 (e = scn->s_elf) == NULL) { 59 sh_type = scn->s_shdr.s_shdr32.sh_type; 61 sh_type = scn->s_shdr.s_shdr64.sh_type; 101 Elf_Scn *scn; local 110 (scn = d->d_scn) == NULL || 111 (e = scn->s_elf) == NULL) { 120 sh_type = scn->s_shdr.s_shdr32.sh_type; 122 sh_type = scn [all...] |
H A D | elf_scn.c | 60 Elf_Scn *scn; local 121 if ((scn = _libelf_allocate_scn(e, i)) == NULL) 124 (*xlator)((unsigned char *) &scn->s_shdr, sizeof(scn->s_shdr), 128 scn->s_offset = scn->s_rawoff = 129 scn->s_shdr.s_shdr32.sh_offset; 130 scn->s_size = scn->s_shdr.s_shdr32.sh_size; 132 scn 194 Elf_Scn *scn; local [all...] |
H A D | libelf_checksum.c | 49 Elf_Scn *scn; local 79 if ((scn = elf_getscn(e, shn)) == NULL) 81 if (gelf_getshdr(scn, &shdr) == NULL) 89 while ((d = elf_rawdata(scn, d)) != NULL)
|
H A D | elf_end.c | 43 Elf_Scn *scn, *tscn; local 69 RB_FOREACH_SAFE(scn, scntree, &e->e_u.e_elf.e_scn, tscn) 70 scn = _libelf_release_scn(scn);
|
H A D | gelf_rela.c | 42 Elf_Scn *scn; local 51 (scn = d->d_scn) == NULL || 52 (e = scn->s_elf) == NULL) { 61 sh_type = scn->s_shdr.s_shdr32.sh_type; 63 sh_type = scn->s_shdr.s_shdr64.sh_type; 109 Elf_Scn *scn; local 118 (scn = d->d_scn) == NULL || 119 (e = scn->s_elf) == NULL) { 128 sh_type = scn->s_shdr.s_shdr32.sh_type; 130 sh_type = scn [all...] |
H A D | gelf_rel.c | 42 Elf_Scn *scn; local 51 (scn = d->d_scn) == NULL || 52 (e = scn->s_elf) == NULL) { 61 sh_type = scn->s_shdr.s_shdr32.sh_type; 63 sh_type = scn->s_shdr.s_shdr64.sh_type; 107 Elf_Scn *scn; local 116 (scn = d->d_scn) == NULL || 117 (e = scn->s_elf) == NULL) { 126 sh_type = scn->s_shdr.s_shdr32.sh_type; 128 sh_type = scn [all...] |
H A D | gelf_sym.c | 42 Elf_Scn *scn; local 51 (scn = d->d_scn) == NULL || 52 (e = scn->s_elf) == NULL) { 61 sh_type = scn->s_shdr.s_shdr32.sh_type; 63 sh_type = scn->s_shdr.s_shdr64.sh_type; 104 Elf_Scn *scn; local 113 (scn = d->d_scn) == NULL || 114 (e = scn->s_elf) == NULL) { 123 sh_type = scn->s_shdr.s_shdr32.sh_type; 125 sh_type = scn [all...] |
H A D | gelf_move.c | 42 Elf_Scn *scn; local 51 (scn = d->d_scn) == NULL || 52 (e = scn->s_elf) == NULL) { 61 sh_type = scn->s_shdr.s_shdr32.sh_type; 63 sh_type = scn->s_shdr.s_shdr64.sh_type; 105 Elf_Scn *scn; local 114 (scn = d->d_scn) == NULL || 115 (e = scn->s_elf) == NULL) { 124 sh_type = scn->s_shdr.s_shdr32.sh_type; 126 sh_type = scn [all...] |
H A D | gelf_shdr.c | 90 gelf_update_shdr(Elf_Scn *scn, GElf_Shdr *s) argument 97 if (s == NULL || scn == NULL || (e = scn->s_elf) == NULL || 109 (void) elf_flagscn(scn, ELF_C_SET, ELF_F_DIRTY); 112 scn->s_shdr.s_shdr64 = *s; 116 sh32 = &scn->s_shdr.s_shdr32;
|
H A D | libelf_ehdr.c | 45 Elf_Scn *scn; local 64 if ((scn = _libelf_allocate_scn(e, (size_t) 0)) == NULL) 69 (*xlator)((unsigned char *) &scn->s_shdr, sizeof(scn->s_shdr), 73 #define GET_SHDR_MEMBER(M) ((ec == ELFCLASS32) ? scn->s_shdr.s_shdr32.M : \ 74 scn->s_shdr.s_shdr64.M)
|
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_scan.c | 125 static void scan_ds_queue_clear(dsl_scan_t *scn); 126 static void scan_ds_prefetch_queue_clear(dsl_scan_t *scn); 127 static boolean_t scan_ds_queue_contains(dsl_scan_t *scn, uint64_t dsobj, 129 static void scan_ds_queue_insert(dsl_scan_t *scn, uint64_t dsobj, uint64_t txg); 130 static void scan_ds_queue_remove(dsl_scan_t *scn, uint64_t dsobj); 131 static void scan_ds_queue_sync(dsl_scan_t *scn, dmu_tx_t *tx); 133 static void read_by_block_level(dsl_scan_t *scn, zbookmark_phys_t zb); 227 #define DSL_SCAN_IS_SCRUB_RESILVER(scn) \ 228 ((scn)->scn_phys.scn_func == POOL_SCAN_SCRUB || \ 229 (scn) 415 dsl_scan_is_running(const dsl_scan_t *scn) argument 467 dsl_scan_t *scn; local 642 dsl_scan_t *scn = dp->dp_scan; local 658 dsl_scan_restarting(dsl_scan_t *scn, dmu_tx_t *tx) argument 690 dsl_errorscrub_is_paused(const dsl_scan_t *scn) argument 697 dsl_scan_is_paused_scrub(const dsl_scan_t *scn) argument 704 dsl_errorscrub_sync_state(dsl_scan_t *scn, dmu_tx_t *tx) argument 718 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local 753 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local 788 dsl_scan_sync_state(dsl_scan_t *scn, dmu_tx_t *tx, state_sync_type_t sync_type) argument 837 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local 851 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local 969 dsl_scan_t *scn = dp->dp_scan; local 1025 dsl_errorscrub_done(dsl_scan_t *scn, boolean_t complete, dmu_tx_t *tx) argument 1052 dsl_scan_done(dsl_scan_t *scn, boolean_t complete, dmu_tx_t *tx) argument 1202 dsl_scan_t *scn = dp->dp_scan; local 1228 dsl_scan_t *scn = dp->dp_scan; local 1264 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local 1275 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local 1287 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local 1298 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local 1322 dsl_scan_t *scn = dp->dp_scan; local 1345 dsl_scan_t *scn = dp->dp_scan; local 1436 scan_ds_queue_clear(dsl_scan_t *scn) argument 1446 scan_ds_queue_contains(dsl_scan_t *scn, uint64_t dsobj, uint64_t *txg) argument 1458 scan_ds_queue_insert(dsl_scan_t *scn, uint64_t dsobj, uint64_t txg) argument 1472 scan_ds_queue_remove(dsl_scan_t *scn, uint64_t dsobj) argument 1485 scan_ds_queue_sync(dsl_scan_t *scn, dmu_tx_t *tx) argument 1540 dsl_scan_should_clear(dsl_scan_t *scn) argument 1593 dsl_scan_check_suspend(dsl_scan_t *scn, const zbookmark_phys_t *zb) argument 1672 dsl_error_scrub_check_suspend(dsl_scan_t *scn, const zbookmark_phys_t *zb) argument 1719 dsl_scan_t *scn = dp->dp_scan; local 1753 dsl_scan_t *scn = dp->dp_scan; local 1832 scan_prefetch_ctx_create(dsl_scan_t *scn, dnode_phys_t *dnp, const void *tag) argument 1860 scan_ds_prefetch_queue_clear(dsl_scan_t *scn) argument 1901 dsl_scan_t *scn = spc->spc_scn; local 1943 dsl_scan_prefetch_dnode(dsl_scan_t *scn, dnode_phys_t *dnp, uint64_t objset, uint64_t object) argument 1978 dsl_scan_t *scn = spc->spc_scn; local 2044 dsl_scan_t *scn = arg; local 2114 dsl_scan_check_resume(dsl_scan_t *scn, const dnode_phys_t *dnp, const zbookmark_phys_t *zb) argument 2160 dsl_scan_recurse(dsl_scan_t *scn, dsl_dataset_t *ds, dmu_objset_type_t ostype, dnode_phys_t *dnp, const blkptr_t *bp, const zbookmark_phys_t *zb, dmu_tx_t *tx) argument 2284 dsl_scan_visitdnode(dsl_scan_t *scn, dsl_dataset_t *ds, dmu_objset_type_t ostype, dnode_phys_t *dnp, uint64_t object, dmu_tx_t *tx) argument 2304 &czb, dnp, ds, scn, ostype, tx); local 2313 dsl_scan_visitbp(const blkptr_t *bp, const zbookmark_phys_t *zb, dnode_phys_t *dnp, dsl_dataset_t *ds, dsl_scan_t *scn, dmu_objset_type_t ostype, dmu_tx_t *tx) argument 2388 dsl_scan_visit_rootbp(dsl_scan_t *scn, dsl_dataset_t *ds, blkptr_t *bp, dmu_tx_t *tx) argument 2465 dsl_scan_t *scn = dp->dp_scan; local 2541 dsl_scan_t *scn = dp->dp_scan; local 2605 dsl_scan_t *scn = dp->dp_scan; local 2707 dsl_scan_t *scn = dp->dp_scan; local 2733 dsl_scan_visitds(dsl_scan_t *scn, uint64_t dsobj, dmu_tx_t *tx) argument 2891 dsl_scan_t *scn = dp->dp_scan; local 2925 dsl_scan_ddt_entry(dsl_scan_t *scn, enum zio_checksum checksum, ddt_entry_t *dde, dmu_tx_t *tx) argument 2996 dsl_scan_ddt(dsl_scan_t *scn, dmu_tx_t *tx) argument 3044 dsl_scan_visit(dsl_scan_t *scn, dmu_tx_t *tx) argument 3170 scan_io_queue_check_suspend(dsl_scan_t *scn) argument 3200 dsl_scan_t *scn = queue->q_scn; local 3311 dsl_scan_t *scn = queue->q_scn; local 3466 scan_io_queues_run(dsl_scan_t *scn) argument 3511 dsl_scan_async_block_should_pause(dsl_scan_t *scn) argument 3538 dsl_scan_t *scn = arg; local 3558 dsl_scan_update_stats(dsl_scan_t *scn) argument 3605 dsl_scan_t *scn = arg; local 3619 dsl_scan_active(dsl_scan_t *scn) argument 3642 dsl_errorscrub_active(dsl_scan_t *scn) argument 3727 dsl_scan_t *scn = dp->dp_scan; local 3891 read_by_block_level(dsl_scan_t *scn, zbookmark_phys_t zb) argument 3970 dsl_scan_t *scn = dp->dp_scan; local 4100 dsl_scan_t *scn = dp->dp_scan; local 4263 dsl_scan_t *scn = dp->dp_scan; local 4575 count_block_skipped(dsl_scan_t *scn, const blkptr_t *bp, boolean_t all) argument 4634 dsl_scan_t *scn = queue->q_scn; local 4718 dsl_scan_t *scn = dp->dp_scan; local 4824 dsl_scan_t *scn = dp->dp_scan; local 4989 dsl_scan_t *scn = vd->vdev_spa->spa_dsl_pool->dp_scan; local 5013 dsl_scan_t *scn = queue->q_scn; local 5060 scan_io_queues_destroy(dsl_scan_t *scn) argument 5079 dsl_scan_t *scn = dp->dp_scan; local 5157 dsl_scan_t *scn = dp->dp_scan; local [all...] |
/freebsd-current/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_elf_init.c | 137 Elf_Scn *scn; local 149 scn = NULL; 151 while ((scn = elf_nextscn(elf, scn)) != NULL) { 152 if (gelf_getshdr(scn, &sh) == NULL) { 162 if ((rel = elf_getdata(scn, NULL)) == NULL) { 208 _dwarf_elf_decompress(Dwarf_Debug dbg, Dwarf_Elf_Object *e, Elf_Scn *scn, argument 215 if (gelf_getchdr(scn, &chdr) == NULL) { 259 Elf_Scn *scn; local 307 scn [all...] |
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | util.c | 67 Elf_Scn *scn = NULL; local 74 while ((scn = elf_nextscn(elf, scn)) != NULL) { 77 if (gelf_getshdr(scn, &shdr) == NULL) { 80 elf_ndxscn(scn)); 87 elf_ndxscn(scn)); 91 return (elf_ndxscn(scn));
|
/freebsd-current/contrib/elftoolchain/elfcopy/ |
H A D | binary.c | 50 Elf_Scn *scn; local 70 scn = NULL; 71 while ((scn = elf_nextscn(e, scn)) != NULL) { 72 if (gelf_getshdr(scn, &sh) == NULL) { 96 scn = NULL; 97 while ((scn = elf_nextscn(e, scn)) != NULL) { 98 if (gelf_getshdr(scn, &sh) == NULL) { 108 if ((d = elf_rawdata(scn, NUL [all...] |
/freebsd-current/usr.sbin/kldxref/ |
H A D | elf.c | 314 Elf_Scn *scn; local 326 scn = elf_getscn(efile->ef_elf, i); 327 if (scn == NULL) { 331 if (gelf_getshdr(scn, &shdr[i]) == NULL) { 350 Elf_Scn *scn; local 355 scn = elf_getscn(efile->ef_elf, section_index); 356 if (scn == NULL) 358 if (gelf_getshdr(scn, &shdr) == NULL) 360 data = elf_getdata(scn, NULL); 386 Elf_Scn *scn; local 438 Elf_Scn *scn; local 474 Elf_Scn *scn; local [all...] |
/freebsd-current/contrib/file/src/ |
H A D | cdf.c | 332 cdf_zero_stream(cdf_stream_t *scn) argument 334 scn->sst_len = 0; 335 scn->sst_dirlen = 0; 336 scn->sst_ss = 0; 337 free(scn->sst_tab); 338 scn->sst_tab = NULL; 598 const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn) 602 scn->sst_tab = NULL; 603 scn->sst_len = cdf_count_chain(sat, sid, ss); 604 scn 597 cdf_read_long_sector_chain(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn) argument 646 cdf_read_short_sector_chain(const cdf_header_t *h, const cdf_sat_t *ssat, const cdf_stream_t *sst, cdf_secid_t sid, size_t len, cdf_stream_t *scn) argument 688 cdf_read_sector_chain(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, cdf_secid_t sid, size_t len, cdf_stream_t *scn) argument 799 cdf_read_short_stream(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_dir_t *dir, cdf_stream_t *scn, const cdf_directory_t **root) argument 843 cdf_read_doc_summary_info(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) argument 852 cdf_read_summary_info(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) argument 861 cdf_read_user_stream(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, const char *name, cdf_stream_t *scn) argument 1430 cdf_stream_t scn; local 1604 cdf_stream_t sst, scn; local [all...] |
H A D | readcdf.c | 371 const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) 376 dir, "Catalog", scn)) == -1) 379 cdf_dump_catalog(h, scn); 381 if ((i = cdf_file_catalog(ms, h, scn)) == -1) 389 const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn, 399 cdf_dump_summary_info(h, scn); 401 if ((i = cdf_file_summary_info(ms, h, scn, root_storage)) < 0) { 429 dir, scn); 549 cdf_stream_t sst, scn; local 555 scn 369 cdf_file_catalog_info(struct magic_set *ms, const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) argument 387 cdf_check_summary_info(struct magic_set *ms, const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn, const cdf_directory_t *root_storage, const char **expn) argument [all...] |
/freebsd-current/cddl/contrib/opensolaris/cmd/lockstat/ |
H A D | sym.c | 171 Elf_Scn *scn = NULL; local 196 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { 198 (void) gelf_getshdr(scn, &shdr); 200 symtab = (GElf_Sym *)elf_getdata(scn, NULL)->d_buf; 206 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { 208 strtab = (char *)elf_getdata(scn, NULL)->d_buf;
|
/freebsd-current/sys/contrib/openzfs/include/sys/ |
H A D | dsl_scan.h | 196 boolean_t dsl_errorscrub_active(dsl_scan_t *scn); 204 void dsl_scan_ddt_entry(dsl_scan_t *scn, enum zio_checksum checksum, 210 boolean_t dsl_scan_active(dsl_scan_t *scn); 211 boolean_t dsl_scan_is_paused_scrub(const dsl_scan_t *scn); 212 boolean_t dsl_errorscrub_is_paused(const dsl_scan_t *scn);
|
/freebsd-current/sys/fs/msdosfs/ |
H A D | msdosfs_lookup.c | 149 daddr_t scn; /* starting cluster number */ local 189 scn = MSDOSFSROOT; 449 scn = getushort(dep->deStartCluster); 451 scn |= getushort(dep->deHighClust) << 16; 452 if (scn == pmp->pm_rootdirblk) { 457 scn = MSDOSFSROOT; 462 cluster = scn; 481 * entry of the filesystems root directory. isadir and scn were 484 if (FAT32(pmp) && scn == MSDOSFSROOT) 485 scn 836 daddr_t scn; local [all...] |
/freebsd-current/contrib/ntp/sntp/libopts/ |
H A D | makeshell.c | 777 char * scn; local 782 scn = strstr(txt, START_MARK); 783 if (scn == NULL) { 788 *(scn++) = NUL; 789 scn = strstr(scn, END_MARK); 790 if (scn == NULL) { 803 script_trailer = scn + END_MARK_LEN;
|