bp 146 libdb/mpool.c BKT *bp; bp 160 libdb/mpool.c if ((bp = mpool_bkt(mp)) == NULL) bp 162 libdb/mpool.c *pgnoaddr = bp->pgno = mp->npages++; bp 163 libdb/mpool.c bp->flags = MPOOL_PINNED; bp 165 libdb/mpool.c head = &mp->hqh[HASHKEY(bp->pgno)]; bp 166 libdb/mpool.c CIRCLEQ_INSERT_HEAD(head, bp, hq); bp 167 libdb/mpool.c CIRCLEQ_INSERT_TAIL(&mp->lqh, bp, q); bp 168 libdb/mpool.c return (bp->page); bp 186 libdb/mpool.c BKT *bp; bp 201 libdb/mpool.c if ((bp = mpool_look(mp, pgno)) != NULL) { bp 203 libdb/mpool.c if (bp->flags & MPOOL_PINNED) { bp 205 libdb/mpool.c "mpool_get: page %d already pinned\n", bp->pgno); bp 213 libdb/mpool.c head = &mp->hqh[HASHKEY(bp->pgno)]; bp 214 libdb/mpool.c CIRCLEQ_REMOVE(head, bp, hq); bp 215 libdb/mpool.c CIRCLEQ_INSERT_HEAD(head, bp, hq); bp 216 libdb/mpool.c CIRCLEQ_REMOVE(&mp->lqh, bp, q); bp 217 libdb/mpool.c CIRCLEQ_INSERT_TAIL(&mp->lqh, bp, q); bp 220 libdb/mpool.c bp->flags |= MPOOL_PINNED; bp 221 libdb/mpool.c return (bp->page); bp 225 libdb/mpool.c if ((bp = mpool_bkt(mp)) == NULL) bp 234 libdb/mpool.c if ((nr = pread(mp->fd, bp->page, mp->pagesize, off)) != mp->pagesize) { bp 242 libdb/mpool.c if ((nr = read(mp->fd, bp->page, mp->pagesize)) != mp->pagesize) { bp 250 libdb/mpool.c bp->pgno = pgno; bp 251 libdb/mpool.c bp->flags = MPOOL_PINNED; bp 257 libdb/mpool.c head = &mp->hqh[HASHKEY(bp->pgno)]; bp 258 libdb/mpool.c CIRCLEQ_INSERT_HEAD(head, bp, hq); bp 259 libdb/mpool.c CIRCLEQ_INSERT_TAIL(&mp->lqh, bp, q); bp 263 libdb/mpool.c (mp->pgin)(mp->pgcookie, bp->pgno, bp->page); bp 265 libdb/mpool.c return (bp->page); bp 282 libdb/mpool.c BKT *bp; bp 287 libdb/mpool.c bp = (BKT *)((char *)page - sizeof(BKT)); bp 289 libdb/mpool.c if (!(bp->flags & MPOOL_PINNED)) { bp 291 libdb/mpool.c "mpool_put: page %d not pinned\n", bp->pgno); bp 295 libdb/mpool.c bp->flags &= ~MPOOL_PINNED; bp 296 libdb/mpool.c bp->flags |= flags & MPOOL_DIRTY; bp 310 libdb/mpool.c BKT *bp; bp 313 libdb/mpool.c while ((bp = mp->lqh.cqh_first) != (void *)&mp->lqh) { bp 315 libdb/mpool.c free(bp); bp 333 libdb/mpool.c BKT *bp; bp 336 libdb/mpool.c for (bp = mp->lqh.cqh_first; bp 337 libdb/mpool.c bp != (void *)&mp->lqh; bp = bp->q.cqe_next) bp 338 libdb/mpool.c if (bp->flags & MPOOL_DIRTY && bp 339 libdb/mpool.c mpool_write(mp, bp) == RET_ERROR) bp 357 libdb/mpool.c BKT *bp; bp 369 libdb/mpool.c for (bp = mp->lqh.cqh_first; bp 370 libdb/mpool.c bp != (void *)&mp->lqh; bp = bp->q.cqe_next) bp 371 libdb/mpool.c if (!(bp->flags & MPOOL_PINNED)) { bp 373 libdb/mpool.c if (bp->flags & MPOOL_DIRTY && bp 374 libdb/mpool.c mpool_write(mp, bp) == RET_ERROR) bp 380 libdb/mpool.c head = &mp->hqh[HASHKEY(bp->pgno)]; bp 381 libdb/mpool.c CIRCLEQ_REMOVE(head, bp, hq); bp 382 libdb/mpool.c CIRCLEQ_REMOVE(&mp->lqh, bp, q); bp 385 libdb/mpool.c spage = bp->page; bp 386 libdb/mpool.c memset(bp, 0xff, sizeof(BKT) + mp->pagesize); bp 387 libdb/mpool.c bp->page = spage; bp 390 libdb/mpool.c return (bp); bp 393 libdb/mpool.c new: if ((bp = (BKT *)malloc(sizeof(BKT) + mp->pagesize)) == NULL) bp 399 libdb/mpool.c memset(bp, 0xff, sizeof(BKT) + mp->pagesize); bp 401 libdb/mpool.c bp->page = (char *)bp + sizeof(BKT); bp 403 libdb/mpool.c return (bp); bp 414 libdb/mpool.c mpool_write(mp, bp) bp 416 libdb/mpool.c BKT *bp; bp 426 libdb/mpool.c (mp->pgout)(mp->pgcookie, bp->pgno, bp->page); bp 428 libdb/mpool.c off = mp->pagesize * bp->pgno; bp 430 libdb/mpool.c if (pwrite(mp->fd, bp->page, mp->pagesize, off) != mp->pagesize) bp 435 libdb/mpool.c if (write(mp->fd, bp->page, mp->pagesize) != mp->pagesize) bp 439 libdb/mpool.c bp->flags &= ~MPOOL_DIRTY; bp 456 libdb/mpool.c BKT *bp; bp 459 libdb/mpool.c for (bp = head->cqh_first; bp != (void *)head; bp = bp->hq.cqe_next) bp 460 libdb/mpool.c if (bp->pgno == pgno) { bp 464 libdb/mpool.c return (bp); bp 483 libdb/mpool.c BKT *bp; bp 505 libdb/mpool.c for (bp = mp->lqh.cqh_first; bp 506 libdb/mpool.c bp != (void *)&mp->lqh; bp = bp->q.cqe_next) { bp 507 libdb/mpool.c (void)fprintf(stderr, "%s%d", sep, bp->pgno); bp 508 libdb/mpool.c if (bp->flags & MPOOL_DIRTY) bp 510 libdb/mpool.c if (bp->flags & MPOOL_PINNED) bp 337 libutil/abs2rel.c const char *pp, *bp, *branch; bp 358 libutil/abs2rel.c for (pp = path, bp = base; *pp && *bp && *pp == *bp; pp++, bp++) bp 362 libutil/abs2rel.c (*bp == 0 || (*bp == '/' && *(bp + 1) == 0))) { bp 372 libutil/abs2rel.c if ((*pp == 0 && *bp == '/') || (*pp == '/' && *bp == 0)) bp 378 libutil/abs2rel.c for (bp = base + (branch - path); *bp; bp++) bp 379 libutil/abs2rel.c if (*bp == '/' && *(bp + 1) != 0) { bp 418 libutil/abs2rel.c const char *pp, *bp; bp 467 libutil/abs2rel.c bp = base + length; bp 468 libutil/abs2rel.c if (*(bp - 1) == '/') bp 469 libutil/abs2rel.c --bp; bp 476 libutil/abs2rel.c while (bp > base && *--bp != '/') bp 482 libutil/abs2rel.c while (bp > base && *--bp != '/') bp 490 libutil/abs2rel.c length = bp - base;