bt_put can set the key, now, no longer const arg
[unix-history] / usr / src / lib / libc / db / btree / extern.h
CommitLineData
91b5c9e5
KB
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
8d4b018f 7 * @(#)extern.h 5.4 (Berkeley) %G%
91b5c9e5
KB
8 */
9
10int __bt_close __P((DB *));
11int __bt_cmp __P((BTREE *, const DBT *, EPG *));
12int __bt_crsrdel __P((BTREE *, EPGNO *));
13int __bt_defcmp __P((const DBT *, const DBT *));
14int __bt_defpfx __P((const DBT *, const DBT *));
15int __bt_delete __P((const DB *, const DBT *, u_int));
16int __bt_dleaf __P((BTREE *, PAGE *, int));
88cdae17 17EPG *__bt_first __P((BTREE *, const DBT *, int *));
a5d29441 18int __bt_free __P((BTREE *, PAGE *));
88cdae17 19int __bt_get __P((const DB *, const DBT *, DBT *, u_int));
a5d29441 20PAGE *__bt_new __P((BTREE *, pgno_t *));
91b5c9e5
KB
21DB *__bt_open __P((const char *, int, int, const BTREEINFO *));
22void __bt_pgin __P((void *, pgno_t, void *));
23void __bt_pgout __P((void *, pgno_t, void *));
24int __bt_push __P((BTREE *, pgno_t, int));
8d4b018f 25int __bt_put __P((const DB *dbp, DBT *, const DBT *, u_int));
91b5c9e5
KB
26int __bt_ret __P((BTREE *, EPG *, DBT *, DBT *));
27EPG *__bt_search __P((BTREE *, const DBT *, int *));
28int __bt_seq __P((const DB *, DBT *, DBT *, u_int));
29int __bt_split __P((BTREE *, PAGE *,
30 const DBT *, const DBT *, u_long, size_t, int));
31int __bt_sync __P((const DB *));
32
33int __ovfl_delete __P((BTREE *, void *));
34int __ovfl_get __P((BTREE *, void *, size_t *, char **, size_t *));
35int __ovfl_put __P((BTREE *, const DBT *, pgno_t *));
36
91b5c9e5
KB
37#ifdef DEBUG
38void __bt_dpage __P((PAGE *));
39void __bt_dump __P((DB *));
40#endif
41#ifdef STATISTICS
42void __bt_stat __P((DB *));
43#endif