Searched refs:dbmfp (Results 1 – 8 of 8) sorted by relevance
/titanic_41/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_bh.c | 43 DB_MPOOLFILE *dbmfp; local 60 for (dbmfp = TAILQ_FIRST(&dbmp->dbmfq); 61 dbmfp != NULL; dbmfp = TAILQ_NEXT(dbmfp, q)) 62 if (dbmfp->mfp == mfp) { 63 if (F_ISSET(dbmfp, MP_READONLY) && 64 __memp_upgrade(dbmp, dbmfp, mfp)) { 73 ++dbmfp->ref; 78 if (dbmfp != NULL) 126 0, 0, mfp->stat.st_pagesize, 0, NULL, &dbmfp) != 0) 129 found: ret = __memp_pgwrite(dbmfp, bhp, restartp, wrotep); [all …]
|
H A D | mp_fopen.c | 84 DB_MPOOLFILE *dbmfp; local 122 if ((ret = __os_calloc(1, sizeof(DB_MPOOLFILE), &dbmfp)) != 0) 124 dbmfp->dbmp = dbmp; 125 dbmfp->fd = -1; 126 dbmfp->ref = 1; 128 F_SET(dbmfp, MP_READONLY); 145 DB_CREATE | DB_RDONLY, mode, &dbmfp->fd)) != 0) { 164 dbmfp->fd, &mbytes, &bytes, NULL)) != 0) { 214 __memp_alloc(dbmp, sizeof(db_mutex_t), NULL, &dbmfp->mutexp)) == 0) 215 LOCKINIT(dbmp, dbmfp->mutexp); [all …]
|
H A D | mp_fput.c | 30 memp_fput(dbmfp, pgaddr, flags) in memp_fput() argument 31 DB_MPOOLFILE *dbmfp; in memp_fput() 40 dbmp = dbmfp->dbmp; 54 if (LF_ISSET(DB_MPOOL_DIRTY) && F_ISSET(dbmfp, MP_READONLY)) { 57 __memp_fn(dbmfp)); 65 if (dbmfp->pinref == 0) 68 __memp_fn(dbmfp)); 70 --dbmfp->pinref; 78 if (dbmfp->addr != NULL && pgaddr >= dbmfp->addr && 79 (u_int8_t *)pgaddr <= (u_int8_t *)dbmfp->addr + dbmfp->len) { [all …]
|
H A D | mp_sync.c | 251 memp_fsync(dbmfp) in memp_fsync() argument 252 DB_MPOOLFILE *dbmfp; in memp_fsync() 257 dbmp = dbmfp->dbmp; 266 if (F_ISSET(dbmfp, MP_READONLY)) 270 is_tmp = F_ISSET(dbmfp->mfp, MP_TEMP); 275 return (__memp_fsync(dbmfp)); 285 __mp_xxx_fd(dbmfp, fdp) in __mp_xxx_fd() argument 286 DB_MPOOLFILE *dbmfp; in __mp_xxx_fd() 305 ret = dbmfp->fd == -1 ? __memp_fsync(dbmfp) : 0; 307 return ((*fdp = dbmfp->fd) == -1 ? ENOENT : ret); [all …]
|
H A D | mp_fget.c | 31 memp_fget(dbmfp, pgnoaddr, flags, addrp) in memp_fget() argument 32 DB_MPOOLFILE *dbmfp; in memp_fget() 45 dbmp = dbmfp->dbmp; 47 mfp = dbmfp->mfp; 143 if (dbmfp->addr != NULL && F_ISSET(mfp, MP_CAN_MMAP)) 153 __memp_fn(dbmfp), (u_long)*pgnoaddr); 159 R_ADDR(dbmfp, *pgnoaddr * mfp->stat.st_pagesize); 176 __memp_fn(dbmfp), (u_long)bhp->pgno); 231 if ((ret = __memp_pg(dbmfp, bhp, 1)) != 0) 302 reread: if ((ret = __memp_pgread(dbmfp, [all …]
|
H A D | mp_pr.c | 127 __memp_fn(dbmfp) in __memp_fn() argument 128 DB_MPOOLFILE *dbmfp; in __memp_fn() 130 return (__memp_fns(dbmfp->dbmp, dbmfp->mfp)); 173 DB_MPOOLFILE *dbmfp; local 220 for (dbmfp = TAILQ_FIRST(&dbmp->dbmfq); 221 dbmfp != NULL; dbmfp = TAILQ_NEXT(dbmfp, q), ++cnt) { 223 cnt + 1, __memp_fn(dbmfp), dbmfp->fd, 224 F_ISSET(dbmfp, MP_READONLY) ? "readonly" : "read/write");
|
H A D | mp_fset.c | 30 memp_fset(dbmfp, pgaddr, flags) in memp_fset() argument 31 DB_MPOOLFILE *dbmfp; in memp_fset() 40 dbmp = dbmfp->dbmp; 56 if (LF_ISSET(DB_MPOOL_DIRTY) && F_ISSET(dbmfp, MP_READONLY)) { 59 __memp_fn(dbmfp));
|
H A D | mp_open.c | 112 DB_MPOOLFILE *dbmfp; local 127 while ((dbmfp = TAILQ_FIRST(&dbmp->dbmfq)) != NULL) 128 if ((t_ret = memp_fclose(dbmfp)) != 0 && ret == 0)
|