Home
last modified time | relevance | path

Searched refs:mfp (Results 1 – 24 of 24) sorted by relevance

/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_machoread.c301 load_macho_header32(dwarf_macho_object_access_internals_t *mfp, int *errcode) in load_macho_header32() argument
306 if (sizeof(mh32) > mfp->mo_filesize) { in load_macho_header32()
310 res = RRMOA(mfp->mo_fd, &mh32, 0, sizeof(mh32), in load_macho_header32()
311 (off_t)mfp->mo_filesize, errcode); in load_macho_header32()
316 ASNAR(memcpy,mfp->mo_header.magic,mh32.magic); in load_macho_header32()
317 ASNAR(mfp->mo_copy_word,mfp->mo_header.cputype,mh32.cputype); in load_macho_header32()
318 ASNAR(mfp->mo_copy_word,mfp->mo_header.cpusubtype,mh32.cpusubtype); in load_macho_header32()
319 ASNAR(mfp->mo_copy_word,mfp->mo_header.filetype,mh32.filetype); in load_macho_header32()
320 ASNAR(mfp->mo_copy_word,mfp->mo_header.ncmds,mh32.ncmds); in load_macho_header32()
321 ASNAR(mfp->mo_copy_word,mfp->mo_header.sizeofcmds,mh32.sizeofcmds); in load_macho_header32()
[all …]
H A Ddwarf_machoread.h127 int dwarf_load_macho_header(dwarf_macho_object_access_internals_t * mfp,
129 int dwarf_load_macho_commands(dwarf_macho_object_access_internals_t * mfp,
H A Ddwarf_elf_load_headers.c205 dwarf_elf_object_access_internals_t *mfp = 0; in dwarf_construct_elf_access() local
214 mfp = calloc(1,sizeof(dwarf_elf_object_access_internals_t)); in dwarf_construct_elf_access()
215 if (!mfp) { in dwarf_construct_elf_access()
220 mfp->f_ident[0] = 'F'; in dwarf_construct_elf_access()
221 mfp->f_ident[1] = 1; in dwarf_construct_elf_access()
222 mfp->f_fd = fd; in dwarf_construct_elf_access()
223 mfp->f_destruct_close_fd = FALSE; in dwarf_construct_elf_access()
224 mfp->f_is_64bit = ((offsetsize==64)?TRUE:FALSE); in dwarf_construct_elf_access()
225 mfp->f_filesize = filesize; in dwarf_construct_elf_access()
226 mfp->f_offsetsize = offsetsize; in dwarf_construct_elf_access()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/mp/
H A Dmp_fopen.c73 __memp_fopen(dbmp, mfp, path, flags, mode, pagesize, needlock, finfop, retp) in __memp_fopen() argument
75 MPOOLFILE *mfp;
105 if (mfp != NULL) {
106 finfo.ftype = mfp->ftype;
109 finfo.lsn_offset = mfp->lsn_off;
110 finfo.clear_len = mfp->clear_len;
205 if (mfp == NULL)
207 path, pagesize, last_pgno, finfop, &mfp);
209 ++mfp->ref;
222 dbmfp->mfp = mfp;
[all …]
H A Dmp_bh.c37 __memp_bhwrite(dbmp, mfp, bhp, restartp, wrotep) in __memp_bhwrite() argument
39 MPOOLFILE *mfp;
62 if (dbmfp->mfp == mfp) {
64 __memp_upgrade(dbmp, dbmfp, mfp)) {
87 if (mfp->ftype != 0) {
91 if (mpreg->ftype == mfp->ftype)
122 if (F_ISSET(mfp, MP_TEMP))
125 if (__memp_fopen(dbmp, mfp, R_ADDR(dbmp, mfp->path_off),
126 0, 0, mfp->stat.st_pagesize, 0, NULL, &dbmfp) != 0)
154 MPOOLFILE *mfp; local
[all …]
H A Dmp_fget.c40 MPOOLFILE *mfp; local
47 mfp = dbmfp->mfp;
92 mf_offset = R_OFFSET(dbmp, mfp);
114 ++mfp->last_pgno;
115 *pgnoaddr = mfp->last_pgno;
116 bucket = BUCKET(mp, mf_offset, mfp->last_pgno);
143 if (dbmfp->addr != NULL && F_ISSET(mfp, MP_CAN_MMAP))
144 if (*pgnoaddr > mfp->orig_last_pgno) {
159 R_ADDR(dbmfp, *pgnoaddr * mfp->stat.st_pagesize);
161 ++mfp->stat.st_map;
[all …]
H A Dmp_pr.c45 MPOOLFILE *mfp; local
81 mfp = SH_TAILQ_FIRST(&dbmp->mp->mpfq, __mpoolfile);
82 mfp != NULL;
83 ++len, mfp = SH_TAILQ_NEXT(mfp, q, __mpoolfile))
100 mfp = SH_TAILQ_FIRST(&dbmp->mp->mpfq, __mpoolfile);
101 mfp != NULL;
102 ++tfsp, mfp = SH_TAILQ_NEXT(mfp, q, __mpoolfile)) {
103 name = __memp_fns(dbmp, mfp);
108 **tfsp = mfp->stat;
130 return (__memp_fns(dbmfp->dbmp, dbmfp->mfp));
[all …]
H A Dmp_sync.c41 MPOOLFILE *mfp; local
109 for (mfp = SH_TAILQ_FIRST(&dbmp->mp->mpfq, __mpoolfile);
110 mfp != NULL; mfp = SH_TAILQ_NEXT(mfp, q, __mpoolfile))
111 mfp->lsn_cnt = 0;
138 mfp = R_ADDR(dbmp, bhp->mf_offset);
139 ++mfp->lsn_cnt;
197 mfp = R_ADDR(dbmp, bharray[next]->mf_offset);
198 ret = __memp_bhwrite(dbmp, mfp, bharray[next], NULL, &wrote);
212 __memp_fns(dbmp, mfp),
234 for (mfp = SH_TAILQ_FIRST(&dbmp->mp->mpfq, __mpoolfile);
[all …]
H A Dmp_region.c60 MPOOLFILE *mfp; local
126 mfp = R_ADDR(dbmp, bhp->mf_offset);
142 mfp, bhp, &restart, &wrote)) != 0)
170 __memp_bhfree(dbmp, mfp, bhp, 0);
179 __memp_bhfree(dbmp, mfp, bhp, 1);
H A Dmp_fput.c140 dbmfp->mfp, bhp, NULL, &wrote) != 0 || !wrote)
145 --dbmfp->mfp->lsn_cnt;
/illumos-gate/usr/src/boot/i386/libi386/
H A Dmultiboot.c233 struct preloaded_file *mfp; in multiboot_exec() local
249 for (mfp = fp; mfp->f_next != NULL; mfp = mfp->f_next); in multiboot_exec()
252 last_addr = roundup(mfp->f_addr + mfp->f_size, MULTIBOOT_MOD_ALIGN); in multiboot_exec()
286 for (mfp = fp->f_next; mfp != NULL; mfp = mfp->f_next) { in multiboot_exec()
288 if (mfp->f_type != NULL && strcmp(mfp->f_type, "rootfs") == 0) in multiboot_exec()
290 if (mfp->f_type != NULL && strcmp(mfp->f_type, "kernel") == 0) in multiboot_exec()
311 for (mfp = fp->f_next; mfp != NULL; mfp = mfp->f_next) { in multiboot_exec()
312 mb_mod[num].mod_start = mfp->f_addr; in multiboot_exec()
313 mb_mod[num].mod_end = mfp->f_addr + mfp->f_size; in multiboot_exec()
315 if (strcmp(mfp->f_type, "kernel") == 0) { in multiboot_exec()
[all …]
H A Dlinux.c280 struct preloaded_file *mfp = fp->f_next; in linux_exec() local
347 if (mfp != NULL) { in linux_exec()
349 moveto = (moveto - mfp->f_size) & 0xfffff000; in linux_exec()
353 if (moveto + mfp->f_size >= max_addr) in linux_exec()
354 moveto = (max_addr - mfp->f_size) & 0xfffff000; in linux_exec()
373 relocater_data[0].src = mfp->f_addr; in linux_exec()
375 relocater_data[0].size = mfp->f_size; in linux_exec()
380 relocater_data[0].src = mfp->f_addr; in linux_exec()
382 relocater_data[0].size = mfp->f_size; in linux_exec()
385 lh->ramdisk_size = mfp->f_size; in linux_exec()
[all …]
H A Di386_copy.c110 struct preloaded_file *fp, *mfp; in i386_loadaddr() local
150 mfp = fp; in i386_loadaddr()
152 if (mfp == NULL) { in i386_loadaddr()
155 off = roundup2(mfp->f_addr + mfp->f_size + 1, in i386_loadaddr()
181 if (mfp == NULL) in i386_loadaddr()
183 mfp = mfp->f_next; in i386_loadaddr()
/illumos-gate/usr/src/boot/common/
H A Dmultiboot2.c677 struct preloaded_file *mfp; in module_size() local
680 for (mfp = fp->f_next; mfp != NULL; mfp = mfp->f_next) { in module_size()
681 len = strlen(mfp->f_name) + 1; in module_size()
682 len += strlen(mfp->f_type) + 5 + 1; /* 5 is for "type=" */ in module_size()
683 if (mfp->f_args != NULL) in module_size()
684 len += strlen(mfp->f_args) + 1; in module_size()
835 struct preloaded_file *mfp; in multiboot2_exec() local
916 for (mfp = fp; mfp->f_next != NULL; mfp = mfp->f_next) in multiboot2_exec()
929 last_addr = efi_loadaddr(LOAD_MEM, &size, mfp->f_addr + mfp->f_size); in multiboot2_exec()
938 last_addr = i386_loadaddr(LOAD_MEM, &size, mfp->f_addr + mfp->f_size); in multiboot2_exec()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/ipp/
H A Dipp.c318 mfdata_t *mfp; in mod() local
320 mfp = mdb_zalloc(sizeof (mfdata_t), UM_SLEEP); in mod()
323 'v', MDB_OPT_SETBITS, MF_VERBOSE, &mfp->mf_flags, in mod()
328 mfp->mf_banner = B_TRUE; in mod()
331 status = mod_format(addr, NULL, mfp); in mod()
336 if (mdb_pwalk("ipp_byid", mod_format, mfp, in mod()
343 mdb_free(mfp, sizeof (mfdata_t)); in mod()
355 mfdata_t *mfp = (mfdata_t *)arg; in mod_format() local
366 if (mfp->mf_flags & MF_VERBOSE) in mod_format()
367 rc = mod_dump(addr, imp, mfp->mf_banner); in mod_format()
[all …]
/illumos-gate/usr/src/cmd/fs.d/
H A Dfslib.c62 FILE *mfp; in fsgetmntlist() local
66 if ((mfp = fopen(MNTTAB, "r")) == NULL) { in fsgetmntlist()
72 mntl = fsmkmntlist(mfp); in fsgetmntlist()
74 (void) fclose(mfp); in fsgetmntlist()
164 fsmkmntlist(FILE *mfp) in fsmkmntlist() argument
172 resetmnttab(mfp); in fsmkmntlist()
173 while ((ret = getextmntent(mfp, &mnt, sizeof (struct extmnttab))) in fsmkmntlist()
/illumos-gate/usr/src/cmd/mdb/intel/mdb/
H A Dmdb_amd64util.c232 mdb_ctf_funcinfo_t mfp; in mdb_amd64_kvm_stack_iter() local
284 (mdb_ctf_func_info(&s, &sip, &mfp) == 0)) { in mdb_amd64_kvm_stack_iter()
285 int return_type = mdb_ctf_type_kind(mfp.mtf_return); in mdb_amd64_kvm_stack_iter()
288 argc = mfp.mtf_argc; in mdb_amd64_kvm_stack_iter()
298 mdb_ctf_type_size(mfp.mtf_return) > 16) in mdb_amd64_kvm_stack_iter()
309 if (mdb_ctf_func_args(&mfp, 5, args_types) == CTF_ERR) in mdb_amd64_kvm_stack_iter()
344 reg_argc = MIN((6 - start_index), mfp.mtf_argc); in mdb_amd64_kvm_stack_iter()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_ctf.c432 mdb_ctf_funcinfo_t *mfp) in mdb_ctf_func_info() argument
442 if (symp == NULL || mfp == NULL) in mdb_ctf_func_info()
467 set_ctf_id(&mfp->mtf_return, fp, f.ctc_return); in mdb_ctf_func_info()
468 mfp->mtf_argc = f.ctc_argc; in mdb_ctf_func_info()
469 mfp->mtf_flags = f.ctc_flags; in mdb_ctf_func_info()
470 mfp->mtf_symidx = si.sym_id; in mdb_ctf_func_info()
1626 ctf_file_t *mfp; in mdb_ctf_vread() local
1635 if ((mod = mdb_get_module()) == NULL || (mfp = mod->mod_ctfp) == NULL) { in mdb_ctf_vread()
1641 if ((mid = ctf_lookup_by_name(mfp, mdb_typename)) == CTF_ERR) { in mdb_ctf_vread()
1645 return (set_errno(ctf_to_errno(ctf_errno(mfp)))); in mdb_ctf_vread()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dmp.h185 MPOOLFILE *mfp; /* Underlying MPOOLFILE. */ member
/illumos-gate/usr/src/uts/common/io/dld/
H A Ddld_drv.c1073 dld_ioc_modifyflow_t *mfp = karg; in drv_ioc_modifyflow() local
1075 return (dld_modify_flow(mfp->mf_name, &mfp->mf_resource_props)); in drv_ioc_modifyflow()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvdisc.c881 register Namfun_t *fp, **mfp = &mp->nvfun, *nfp, *fpnext; in clone_all_disc() local
898 *mfp = nfp; in clone_all_disc()
899 mfp = &nfp->next; in clone_all_disc()
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c6453 FILE *mfp; local
6463 mfp = fopen(MNTTAB, "r");
6465 INJECT_ERROR1("CACHE_MNTTAB_MNTTAB_ERR", mfp = NULL);
6466 if (mfp == NULL) {
6474 resetmnttab(mfp);
6476 while (getextmntent(mfp, &mnt, sizeof (mnt)) == 0) {
6497 (void) fclose(mfp);
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dsadb.c2395 ipsa_match_fn_t mfp; in sadb_match_query() local
2397 for (mfp = *mfpp++; mfp != NULL; mfp = *mfpp++) { in sadb_match_query()
2398 if (!mfp(sq, sa)) in sadb_match_query()
/illumos-gate/usr/src/data/hwdata/
H A Dusb.ids615 6317 Color LaserJet 4730mfp