Searched refs:scn (Results 1 - 25 of 43) sorted by relevance

12

/freebsd-10.1-release/lib/libelf/
H A Dlibelf_extended.c52 Elf_Scn *scn; local
55 if ((scn = _libelf_getscn0(e)) == NULL)
58 assert(scn->s_ndx == SHN_UNDEF);
61 scn->s_shdr.s_shdr32.sh_size = shnum;
63 scn->s_shdr.s_shdr64.sh_size = shnum;
65 (void) elf_flagshdr(scn, ELF_C_SET, ELF_F_DIRTY);
82 Elf_Scn *scn; local
85 if ((scn = _libelf_getscn0(e)) == NULL)
88 assert(scn->s_ndx == SHN_UNDEF);
91 scn
111 Elf_Scn *scn; local
[all...]
H A Delf_end.c42 Elf_Scn *scn, *tscn; local
68 STAILQ_FOREACH_SAFE(scn, &e->e_u.e_elf.e_scn, s_next, tscn)
69 scn = _libelf_release_scn(scn);
H A Dgelf_cap.c45 Elf_Scn *scn; local
52 (scn = d->d_scn) == NULL ||
53 (e = scn->s_elf) == NULL) {
62 sh_type = scn->s_shdr.s_shdr32.sh_type;
64 sh_type = scn->s_shdr.s_shdr64.sh_type;
102 Elf_Scn *scn; local
109 (scn = d->d_scn) == NULL ||
110 (e = scn->s_elf) == NULL) {
119 sh_type = scn->s_shdr.s_shdr32.sh_type;
121 sh_type = scn
[all...]
H A Dgelf_dyn.c42 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;
98 Elf_Scn *scn; local
105 (scn = d->d_scn) == NULL ||
106 (e = scn->s_elf) == NULL) {
115 sh_type = scn->s_shdr.s_shdr32.sh_type;
117 sh_type = scn
[all...]
H A Dgelf_syminfo.c45 Elf_Scn *scn; local
52 (scn = d->d_scn) == NULL ||
53 (e = scn->s_elf) == NULL) {
62 sh_type = scn->s_shdr.s_shdr32.sh_type;
64 sh_type = scn->s_shdr.s_shdr64.sh_type;
102 Elf_Scn *scn; local
109 (scn = d->d_scn) == NULL ||
110 (e = scn->s_elf) == NULL) {
119 sh_type = scn->s_shdr.s_shdr32.sh_type;
121 sh_type = scn
[all...]
H A Dgelf_symshndx.c43 Elf_Scn *scn; local
50 if (id == NULL || (scn = id->d_scn) == NULL ||
51 (e = scn->s_elf) == NULL || (e != d->d_scn->s_elf) ||
61 sh_type = scn->s_shdr.s_shdr32.sh_type;
63 sh_type = scn->s_shdr.s_shdr64.sh_type;
91 Elf_Scn *scn; local
98 if (id == NULL || (scn = id->d_scn) == NULL ||
99 (e = scn->s_elf) == NULL || (e != d->d_scn->s_elf)) {
108 sh_type = scn->s_shdr.s_shdr32.sh_type;
110 sh_type = scn
[all...]
H A Delf_scn.c50 Elf_Scn *scn; local
101 if ((scn = _libelf_allocate_scn(e, i)) == NULL)
104 (*xlator)((char *) &scn->s_shdr, sizeof(scn->s_shdr), src,
108 scn->s_offset = scn->s_rawoff =
109 scn->s_shdr.s_shdr32.sh_offset;
110 scn->s_size = scn->s_shdr.s_shdr32.sh_size;
112 scn
168 Elf_Scn *scn; local
[all...]
H A Dlibelf_checksum.c50 Elf_Scn *scn; local
80 if ((scn = elf_getscn(e, shn)) == NULL)
82 if (gelf_getshdr(scn, &shdr) == NULL)
90 while ((d = elf_rawdata(scn, d)) != NULL)
H A Dgelf_move.c45 Elf_Scn *scn; local
52 (scn = d->d_scn) == NULL ||
53 (e = scn->s_elf) == NULL) {
62 sh_type = scn->s_shdr.s_shdr32.sh_type;
64 sh_type = scn->s_shdr.s_shdr64.sh_type;
104 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 Dgelf_rel.c42 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;
100 Elf_Scn *scn; local
107 (scn = d->d_scn) == NULL ||
108 (e = scn->s_elf) == NULL) {
117 sh_type = scn->s_shdr.s_shdr32.sh_type;
119 sh_type = scn
[all...]
H A Dgelf_rela.c42 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
108 (scn = d->d_scn) == NULL ||
109 (e = scn->s_elf) == NULL) {
118 sh_type = scn->s_shdr.s_shdr32.sh_type;
120 sh_type = scn
[all...]
H A Dgelf_sym.c42 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;
103 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 Dgelf_shdr.c91 gelf_update_shdr(Elf_Scn *scn, GElf_Shdr *s) argument
98 if (s == NULL || scn == NULL || (e = scn->s_elf) == NULL ||
110 (void) elf_flagscn(scn, ELF_C_SET, ELF_F_DIRTY);
113 scn->s_shdr.s_shdr64 = *s;
117 sh32 = &scn->s_shdr.s_shdr32;
H A Delf_flag.c38 Elf_Scn *scn; local
44 if ((c != ELF_C_SET && c != ELF_C_CLR) || (scn = d->d_scn) == NULL ||
45 (e = scn->s_elf) == NULL || e->e_kind != ELF_K_ELF ||
52 r = scn->s_flags |= flags;
54 r = scn->s_flags &= ~flags;
H A Dlibelf_ehdr.c47 Elf_Scn *scn; local
62 if ((scn = _libelf_allocate_scn(e, (size_t) 0)) == NULL)
66 (*xlator)((char *) &scn->s_shdr, sizeof(scn->s_shdr),
70 #define GET_SHDR_MEMBER(M) ((ec == ELFCLASS32) ? scn->s_shdr.s_shdr32.M : \
71 scn->s_shdr.s_shdr64.M)
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddsl_scan.c103 #define DSL_SCAN_IS_SCRUB_RESILVER(scn) \
104 ((scn)->scn_phys.scn_func == POOL_SCAN_SCRUB || \
105 (scn)->scn_phys.scn_func == POOL_SCAN_RESILVER)
120 dsl_scan_t *scn; local
124 scn = dp->dp_scan = kmem_zalloc(sizeof (dsl_scan_t), KM_SLEEP);
125 scn->scn_dp = dp;
132 ASSERT(!scn->scn_async_destroying);
133 scn->scn_async_destroying = spa_feature_is_active(dp->dp_spa,
143 scn->scn_restart_txg = txg;
146 scn
197 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local
208 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local
276 dsl_scan_done(dsl_scan_t *scn, boolean_t complete, dmu_tx_t *tx) argument
358 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local
369 dsl_scan_t *scn = dmu_tx_pool(tx)->dp_scan; local
414 dsl_scan_sync_state(dsl_scan_t *scn, dmu_tx_t *tx) argument
423 dsl_scan_check_pause(dsl_scan_t *scn, const zbookmark_phys_t *zb) argument
479 dsl_scan_t *scn = dp->dp_scan; local
509 dsl_scan_t *scn = dp->dp_scan; local
560 dsl_scan_prefetch(dsl_scan_t *scn, arc_buf_t *buf, blkptr_t *bp, uint64_t objset, uint64_t object, uint64_t blkid) argument
581 dsl_scan_check_resume(dsl_scan_t *scn, const dnode_phys_t *dnp, const zbookmark_phys_t *zb) argument
620 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, arc_buf_t **bufp) argument
722 dsl_scan_visitdnode(dsl_scan_t *scn, dsl_dataset_t *ds, dmu_objset_type_t ostype, dnode_phys_t *dnp, arc_buf_t *buf, uint64_t object, dmu_tx_t *tx) argument
751 dsl_scan_visitbp(blkptr_t *bp, const zbookmark_phys_t *zb, dnode_phys_t *dnp, arc_buf_t *pbuf, dsl_dataset_t *ds, dsl_scan_t *scn, dmu_objset_type_t ostype, dmu_tx_t *tx) argument
812 dsl_scan_visit_rootbp(dsl_scan_t *scn, dsl_dataset_t *ds, blkptr_t *bp, dmu_tx_t *tx) argument
829 dsl_scan_t *scn = dp->dp_scan; local
890 dsl_scan_t *scn = dp->dp_scan; local
924 dsl_scan_t *scn = dp->dp_scan; local
994 dsl_scan_t *scn = dp->dp_scan; local
1021 dsl_scan_visitds(dsl_scan_t *scn, uint64_t dsobj, dmu_tx_t *tx) argument
1129 dsl_scan_t *scn = dp->dp_scan; local
1196 dsl_scan_ddt(dsl_scan_t *scn, dmu_tx_t *tx) argument
1236 dsl_scan_ddt_entry(dsl_scan_t *scn, enum zio_checksum checksum, ddt_entry_t *dde, dmu_tx_t *tx) argument
1259 dsl_scan_visit(dsl_scan_t *scn, dmu_tx_t *tx) argument
1346 dsl_scan_free_should_pause(dsl_scan_t *scn) argument
1363 dsl_scan_t *scn = arg; local
1381 dsl_scan_active(dsl_scan_t *scn) argument
1404 dsl_scan_t *scn = dp->dp_scan; local
1710 dsl_scan_t *scn = dp->dp_scan; local
[all...]
/freebsd-10.1-release/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dutil.c66 Elf_Scn *scn = NULL; local
73 while ((scn = elf_nextscn(elf, scn)) != NULL) {
76 if (gelf_getshdr(scn, &shdr) == NULL) {
79 elf_ndxscn(scn));
86 elf_ndxscn(scn));
90 return (elf_ndxscn(scn));
/freebsd-10.1-release/contrib/file/src/
H A Dreadcdf.c353 cdf_stream_t sst, scn; local
413 "FileHeader", &scn)) != -1) {
415 if (scn.sst_dirlen >= sizeof(HWP5_SIGNATURE) - 1
416 && memcmp(scn.sst_tab, HWP5_SIGNATURE,
429 free(scn.sst_tab);
430 scn.sst_tab = NULL;
431 scn.sst_len = 0;
432 scn.sst_dirlen = 0;
437 &scn)) == -1) {
440 &dir, &scn))
[all...]
H A Dcdf.c497 const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn)
501 scn->sst_len = cdf_count_chain(sat, sid, ss);
502 scn->sst_dirlen = len;
504 if (scn->sst_len == (size_t)-1)
507 scn->sst_tab = calloc(scn->sst_len, ss);
508 if (scn->sst_tab == NULL)
517 if (i >= scn->sst_len) {
520 scn->sst_len));
524 if ((nr = cdf_read_sector(info, scn
496 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
542 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
584 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
693 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
734 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
743 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
1226 cdf_stream_t scn; local
1400 cdf_stream_t sst, scn; local
[all...]
/freebsd-10.1-release/lib/libproc/
H A Dproc_sym.c236 Elf_Scn *scn, *dynsymscn = NULL, *symtabscn = NULL; local
266 scn = NULL;
267 while ((scn = elf_nextscn(e, scn)) != NULL) {
268 gelf_getshdr(scn, &shdr);
271 symtabscn = scn;
275 dynsymscn = scn;
416 Elf_Scn *scn, *dynsymscn = NULL, *symtabscn = NULL; local
447 scn = NULL;
448 while ((scn
517 Elf_Scn *scn, *foundscn = NULL; local
[all...]
/freebsd-10.1-release/cddl/contrib/opensolaris/cmd/lockstat/
H A Dsym.c170 Elf_Scn *scn = NULL; local
214 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) {
215 Shdr *shdr = elf_getshdr(scn);
217 symtab = (Sym *)elf_getdata(scn, NULL)->d_buf;
223 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) {
225 strtab = (char *)elf_getdata(scn, NULL)->d_buf;
/freebsd-10.1-release/contrib/libexecinfo/
H A Dsymtab.c88 Elf_Scn *scn = NULL; local
107 while ((scn = elf_nextscn(elf, scn)) != NULL) {
113 gelf_getshdr(scn, &shdr);
117 edata = elf_getdata(scn, NULL);
/freebsd-10.1-release/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddrti.c156 Elf_Scn *scn = NULL; local
204 while ((scn = elf_nextscn(e, scn)) != NULL) {
205 gelf_getshdr(scn, &shdr);
208 symtabdata = elf_getdata(scn, NULL);
211 dynsymdata = elf_getdata(scn, NULL);
215 dofdata = elf_getdata(scn, NULL);
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Ddsl_scan.h133 void dsl_scan_ddt_entry(dsl_scan_t *scn, enum zio_checksum checksum,
139 boolean_t dsl_scan_active(dsl_scan_t *scn);
/freebsd-10.1-release/contrib/ntp/sntp/libopts/
H A Dmakeshell.c815 char * scn; local
820 scn = strstr(txt, START_MARK);
821 if (scn == NULL) {
826 *(scn++) = NUL;
827 scn = strstr(scn, END_MARK);
828 if (scn == NULL) {
841 script_trailer = scn + END_MARK_LEN;

Completed in 294 milliseconds

12