37 #if defined(LIBC_SCCS) && !defined(lint) 38 static char sccsid[] =
"@(#)bt_utils.c 8.8 (Berkeley) 7/20/94";
41 #include <sys/param.h> 47 #include "../include/db.h" 70 DBT *key, *rkey, *data, *rdata;
200 return ((*t->bt_cmp)(k1, &k2));
220 register u_char *p1, *p2;
229 for (p1 = a->
data, p2 = b->
data; len--; ++p1, ++p2)
231 return ((
int)*p1 - (
int)*p2);
232 return ((
int)a->
size - (
int)b->
size);
249 register u_char *p1, *p2;
250 register size_t cnt,
len;
254 for (p1 = a->
data, p2 = b->
data; len--; ++p1, ++p2, ++cnt)
#define GETBLEAF(pg, indx)
int __ovfl_get(BTREE *t, void *p, size_t *ssz, void **buf, size_t *bufsz)
static int copy(char *infile, char *outfile)
Utility function to copy a file.
#define GETBINTERNAL(pg, indx)
int __bt_ret(BTREE *t, EPG *e, DBT *key, DBT *rkey, DBT *data, DBT *rdata, int copy)
int __bt_defcmp(DBT *a, DBT *b) const
int __bt_cmp(BTREE *t, const DBT *k1, EPG *e)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
size_t __bt_defpfx(DBT *a, DBT *b) const