Searched defs:mfp (Results 1 - 23 of 23) sorted by relevance

/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_lib_prv.c36 static FILE *mfp = NULL; variable
41 if (mfp != NULL) {
42 if (fseeko(mfp, (off_t)0L, SEEK_SET) == -1) {
43 (void) fclose(mfp);
44 mfp = NULL;
47 return (mfp);
50 if ((mfp = fopen(MNTTAB, "r")) == NULL)
53 return (mfp);
61 if (mfp == NULL)
64 ret = fclose(mfp);
[all...]
H A Dmeta_mdcf.c56 FILE *mfp = NULL; local
102 if ((mfp = fopen(METACONF, "w+")) == NULL) {
106 if (fputs(line, mfp) == NULL) {
118 if (fflush(mfp) != 0) {
121 if (fsync(fileno(mfp)) != 0) {
124 if (fclose(mfp) != 0) {
125 mfp = NULL;
128 mfp = NULL;
144 if (mfp != NULL) {
145 (void) fclose(mfp);
[all...]
H A Dmeta_mount.c48 FILE *mfp; local
58 if ((mfp = open_mnttab()) == NULL) {
63 while ((!mountp) && (getmntent(mfp, &m) == 0)) {
H A Dmeta_check.c287 FILE *mfp; local
297 if ((mfp = open_mnttab()) == NULL)
299 while ((getmntent(mfp, &m) == 0) && (rval == 0)) {
355 FILE *mfp; local
365 if ((mfp = open_mnttab()) == NULL)
367 while ((getmntent(mfp, &m) == 0) && (rval == 0)) {
H A Dmeta_db.c433 FILE *mfp = NULL; local
546 if ((mfp = fopen(META_DBCONF, "w+")) == NULL)
549 if (fputs(line, mfp) == NULL)
554 if (fflush(mfp) != 0)
556 if (fsync(fileno(mfp)) != 0)
558 if (fclose(mfp) != 0) {
559 mfp = NULL;
1186 FILE *mfp = NULL; local
1245 if ((mfp = fopen(sname, "w+")) == NULL)
1248 if (fputs(line, mfp)
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/mp/
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
[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_fopen.c73 __memp_fopen(dbmp, mfp, path, flags, mode, pagesize, needlock, finfop, retp)
75 MPOOLFILE *mfp;
98 * If mfp is provided, we take the DB_MPOOL_FINFO information from
99 * the mfp. We don't bother initializing everything, because some
100 * of them are expensive to acquire. If no mfp is provided and the
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
306 MPOOLFILE *mfp; local
503 MPOOLFILE *mfp; local
[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);
175 MPOOLFILE *mfp; local
[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, bharra
448 MPOOLFILE *mfp; local
[all...]
H A Dmp_bh.c37 __memp_bhwrite(dbmp, mfp, bhp, restartp, wrotep)
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
154 MPOOLFILE *mfp; local
268 MPOOLFILE *mfp; local
468 MPOOLFILE *mfp; local
[all...]
/illumos-gate/usr/src/cmd/rexd/
H A Dwhere.c142 FILE *mfp; local
157 mfp = setmntent("/etc/mnttab", "r");
158 if (mfp != NULL)
163 if (mfp == NULL) {
169 while ((getmntent(mfp, &mp)) == 0) {
198 endmntent(mfp);
223 if (mfp = setsharetab()) {
224 while (getshare(mfp, &exp) > 0)
231 endsharetab(mfp);
/illumos-gate/usr/src/cmd/mdb/intel/mdb/
H A Dmdb_amd64util.c226 mdb_ctf_funcinfo_t mfp; local
276 (mdb_ctf_func_info(&s, &sip, &mfp) == 0)) {
277 int return_type = mdb_ctf_type_kind(mfp.mtf_return);
280 argc = mfp.mtf_argc;
290 mdb_ctf_type_size(mfp.mtf_return) > 16)
301 if (mdb_ctf_func_args(&mfp, 5, args_types) == CTF_ERR)
335 reg_argc = MIN((6 - start_index), mfp.mtf_argc);
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dlinux.c281 struct preloaded_file *mfp = fp->f_next; local
350 if (mfp != NULL) {
352 moveto = (moveto - mfp->f_size) & 0xfffff000;
356 if (moveto + mfp->f_size >= max_addr)
357 moveto = (max_addr - mfp->f_size) & 0xfffff000;
376 rdata[0].src = mfp->f_addr;
378 rdata[0].size = mfp->f_size;
383 rdata[0].src = mfp->f_addr;
385 rdata[0].size = mfp->f_size;
388 lh->ramdisk_size = mfp
415 struct preloaded_file *mfp; local
[all...]
H A Dmultiboot.c407 struct preloaded_file *mfp; local
426 for (mfp = fp; mfp->f_next != NULL; mfp = mfp->f_next);
429 last_addr = roundup(mfp->f_addr + mfp->f_size, MULTIBOOT_MOD_ALIGN);
462 for (mfp = fp->f_next; mfp != NULL; mfp
622 struct preloaded_file *mfp, *kfp, *rfp; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/ipp/
H A Dipp.c320 mfdata_t *mfp; local
322 mfp = mdb_zalloc(sizeof (mfdata_t), UM_SLEEP);
325 'v', MDB_OPT_SETBITS, MF_VERBOSE, &mfp->mf_flags,
330 mfp->mf_banner = B_TRUE;
333 status = mod_format(addr, NULL, mfp);
338 if (mdb_pwalk("ipp_byid", mod_format, mfp,
345 mdb_free(mfp, sizeof (mfdata_t));
357 mfdata_t *mfp = (mfdata_t *)arg; local
368 if (mfp->mf_flags & MF_VERBOSE)
369 rc = mod_dump(addr, imp, mfp
[all...]
/illumos-gate/usr/src/cmd/fs.d/
H A Dfslib.c64 FILE *mfp; local
68 if ((mfp = fopen(MNTTAB, "r")) == NULL) {
74 mntl = fsmkmntlist(mfp);
76 (void) fclose(mfp);
166 fsmkmntlist(FILE *mfp) argument
174 resetmnttab(mfp);
175 while ((ret = getextmntent(mfp, &mnt, sizeof (struct extmnttab)))
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dmp.h185 MPOOLFILE *mfp; /* Underlying MPOOLFILE. */ member in struct:__db_mpoolfile
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dnvdisc.c853 register Namfun_t *fp, **mfp = &mp->nvfun, *nfp, *fpnext; local
870 *mfp = nfp;
871 mfp = &nfp->next;
/illumos-gate/usr/src/uts/common/io/dld/
H A Ddld_drv.c1062 dld_ioc_modifyflow_t *mfp = karg; local
1064 return (dld_modify_flow(mfp->mf_name, &mfp->mf_resource_props));
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_ctf.c431 mdb_ctf_funcinfo_t *mfp)
441 if (symp == NULL || mfp == NULL)
466 set_ctf_id(&mfp->mtf_return, fp, f.ctc_return);
467 mfp->mtf_argc = f.ctc_argc;
468 mfp->mtf_flags = f.ctc_flags;
469 mfp->mtf_symidx = si.sym_id;
1601 ctf_file_t *mfp; local
1609 if ((mod = mdb_get_module()) == NULL || (mfp = mod->mod_ctfp) == NULL) {
1615 if ((mid = ctf_lookup_by_name(mfp, mdb_typename)) == CTF_ERR) {
1619 return (set_errno(ctf_to_errno(ctf_errno(mfp))));
430 mdb_ctf_func_info(const GElf_Sym *symp, const mdb_syminfo_t *sip, mdb_ctf_funcinfo_t *mfp) argument
[all...]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dsadb.c2379 ipsa_match_fn_t mfp; local
2381 for (mfp = *mfpp++; mfp != NULL; mfp = *mfpp++) {
2382 if (!mfp(sq, sa))
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c6302 FILE *mfp; local
6312 mfp = fopen(MNTTAB, "r");
6314 INJECT_ERROR1("CACHE_MNTTAB_MNTTAB_ERR", mfp = NULL);
6315 if (mfp == NULL) {
6323 resetmnttab(mfp);
6325 while (getextmntent(mfp, &mnt, sizeof (mnt)) == 0) {
6346 (void) fclose(mfp);

Completed in 112 milliseconds