Home
last modified time | relevance | path

Searched refs:pgno_t (Results 1 – 21 of 21) sorted by relevance

/netbsd/src/include/
Dmpool.h55 pgno_t pgno; /* page number */
67 pgno_t curcache; /* current number of cached pages */
68 pgno_t maxcache; /* max number of cached pages */
69 pgno_t npages; /* number of pages in the file */
73 void (*pgin)(void *, pgno_t, void *);
75 void (*pgout)(void *, pgno_t, void *);
99 MPOOL *mpool_open(void *, int, pgno_t, pgno_t);
100 void mpool_filter(MPOOL *, void (*)(void *, pgno_t, void *),
101 void (*)(void *, pgno_t, void *), void *);
102 void *mpool_new(MPOOL *, pgno_t *);
[all …]
Ddb.h47 typedef uint32_t pgno_t; typedef
/netbsd/src/lib/libc/db/btree/
Dbtree.h70 pgno_t pgno; /* this page's page number */
71 pgno_t prevpg; /* left sibling */
72 pgno_t nextpg; /* right sibling */
90 (sizeof(pgno_t) + sizeof(pgno_t) + sizeof(pgno_t) + \
121 #define BTLALIGN(n) (((n) + sizeof(pgno_t) - 1) & ~(sizeof(pgno_t) - 1))
122 #define NOVFLSIZE (sizeof(pgno_t) + sizeof(uint32_t))
135 pgno_t pgno; /* page number stored on */
148 BTLALIGN(sizeof(uint32_t) + sizeof(pgno_t) + sizeof(uint8_t) + (len))
165 *(pgno_t *)(void *)p = pgno; \
166 p += sizeof(pgno_t); \
[all …]
Dextern.h46 PAGE *__bt_new(BTREE *, pgno_t *);
47 void __bt_pgin(void *, pgno_t, void *);
48 void __bt_pgout(void *, pgno_t, void *);
49 int __bt_push(BTREE *, pgno_t, int);
55 void __bt_setcur(BTREE *, pgno_t, unsigned int);
62 int __ovfl_put(BTREE *, const DBT *, pgno_t *);
66 void __bt_dnpage(DB *, pgno_t);
Dbt_conv.c62 __bt_pgin(void *t, pgno_t pg, void *pp) in __bt_pgin()
93 p += sizeof(pgno_t); in __bt_pgin()
97 p += sizeof(pgno_t); in __bt_pgin()
115 p += sizeof(pgno_t); in __bt_pgin()
121 p += sizeof(pgno_t); in __bt_pgin()
129 __bt_pgout(void *t, pgno_t pg, void *pp) in __bt_pgout()
152 p += sizeof(pgno_t); in __bt_pgout()
156 p += sizeof(pgno_t); in __bt_pgout()
174 p += sizeof(pgno_t); in __bt_pgout()
180 p += sizeof(pgno_t); in __bt_pgout()
Dbt_overflow.c86 pgno_t pg; in __ovfl_get()
91 memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(uint32_t)); in __ovfl_get()
140 __ovfl_put(BTREE *t, const DBT *dbt, pgno_t *pg) in __ovfl_put()
144 pgno_t npg; in __ovfl_put()
200 pgno_t pg; in __ovfl_delete()
205 (void)memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(uint32_t)); in __ovfl_delete()
Dbt_debug.c85 pgno_t i; in __bt_dump()
155 static pgno_t
158 pgno_t r; in __bt_pgno_t()
178 __bt_dnpage(DB *dbp, pgno_t pgno) in __bt_dnpage()
259 __bt_uint32_t(bl->bytes + sizeof(pgno_t))); in __bt_dpage()
268 sizeof(pgno_t))); in __bt_dpage()
279 __bt_uint32_t(rl->bytes + sizeof(pgno_t))); in __bt_dpage()
305 pgno_t i, pcont, pinternal, pleaf; in __bt_stat()
Dbt_seq.c159 pgno_t pg; in __bt_seqset()
251 pgno_t pg; in __bt_seqadv()
380 pgno_t pg; in __bt_rseq_next()
419 pgno_t pg; in __bt_rseq_prev()
468 pgno_t pg; in __bt_first()
561 __bt_setcur(BTREE *t, pgno_t pgno, u_int idx) in __bt_setcur()
Dbt_search.c73 pgno_t pg; in __bt_search()
157 pgno_t pgno; in __bt_snext()
234 pgno_t pgno; in __bt_sprev()
Dbt_put.c77 pgno_t pg; in __bt_put()
131 memmove(kb + sizeof(pgno_t), in __bt_put()
144 (void)memmove(db + sizeof(pgno_t), in __bt_put()
Dbt_split.c56 static int bt_preserve(BTREE *, pgno_t);
249 pgno_t pgno; in __bt_split()
350 pgno_t npg; in bt_page()
451 pgno_t lnpg, rnpg; in bt_root()
570 pgno_t pgno; in bt_broot()
798 bt_preserve(BTREE *t, pgno_t pg) in bt_preserve()
Dbt_page.c87 __bt_new(BTREE *t, pgno_t *npg) in __bt_new()
Dbt_open.c100 pgno_t ncache; in __bt_open()
355 pgno_t npg; in nroot()
Dbt_delete.c151 pgno_t pgno; in __bt_stkacq()
/netbsd/src/lib/libc/db/mpool/
Dmpool.c66 static BKT *mpool_look(MPOOL *, pgno_t);
75 mpool_open(void *key, int fd, pgno_t pagesize, pgno_t maxcache) in mpool_open()
101 mp->npages = (pgno_t)(sb.st_size / pagesize); in mpool_open()
112 mpool_filter(MPOOL *mp, void (*pgin)(void *, pgno_t, void *), in mpool_filter() argument
113 void (*pgout)(void *, pgno_t, void *), void *pgcookie) in mpool_filter()
125 mpool_newf(MPOOL *mp, pgno_t *pgnoaddr, unsigned int flags) in mpool_newf()
160 mpool_new(MPOOL *mp, pgno_t *pgnoaddr) in mpool_new()
196 mpool_get(MPOOL *mp, pgno_t pgno, unsigned int flags) in mpool_get()
460 mpool_look(MPOOL *mp, pgno_t pgno) in mpool_look()
/netbsd/src/external/bsd/nvi/usr.bin/nvi/
Dcompat.h129 #undef pgno_t /* IRIX has its own version. */
130 #define pgno_t L__db_pgno_t macro
Dport.h130 #undef pgno_t /* IRIX has its own version. */
131 #define pgno_t L__db_pgno_t macro
/netbsd/src/lib/libc/db/recno/
Drec_put.c199 pgno_t pg; in __rec_iput()
217 *(uint32_t *)(void *)(db + sizeof(pgno_t)) = in __rec_iput()
Drec_search.c73 pgno_t pg; in __rec_search()
/netbsd/src/external/bsd/nvi/dist/dist/
Dport.h.in129 #undef pgno_t /* IRIX has its own version. */
130 #define pgno_t L__db_pgno_t macro
/netbsd/src/tests/lib/libc/db/
Dh_db.c528 pgno_t pg; in unlinkpg()