37#if defined(LIBC_SCCS) && !defined(lint)
38static char sccsid[] =
"@(#)bt_utils.c 8.8 (Berkeley) 7/20/94";
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)
259 return (
a->size <
b->size ?
a->size + 1 :
a->size);
static int copy(char *infile, char *outfile)
Utility function to copy a file.
int __ovfl_get(BTREE *t, void *p, size_t *ssz, void **buf, size_t *bufsz)
size_t __bt_defpfx(DBT *a, DBT *b) const
int __bt_ret(BTREE *t, EPG *e, DBT *key, DBT *rkey, DBT *data, DBT *rdata, int copy)
int __bt_cmp(BTREE *t, const DBT *k1, EPG *e)
int __bt_defcmp(DBT *a, DBT *b) const
#define GETBLEAF(pg, indx)
#define GETBINTERNAL(pg, indx)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)