SCCS-vsn: lib/libc/db/btree/bt_overflow.c 5.2
SCCS-vsn: lib/libc/db/btree/bt_open.c 5.5
SCCS-vsn: lib/libc/db/btree/btree.h 5.2
SCCS-vsn: lib/libc/db/btree/bt_delete.c 5.2
SCCS-vsn: lib/libc/db/btree/bt_put.c 5.3
SCCS-vsn: lib/libc/db/btree/lrucache.c 5.3
SCCS-vsn: lib/libc/db/btree/lruhash.c 5.2
SCCS-vsn: lib/libc/db/btree/lrutils.c 5.2
SCCS-vsn: lib/libc/db/btree/bt_seq.c 5.3
SCCS-vsn: lib/libc/db/btree/bt_split.c 5.2
SCCS-vsn: lib/libc/db/btree/bt_get.c 5.2
SCCS-vsn: lib/libc/db/btree/updutils.c 5.2
SCCS-vsn: lib/libc/db/btree/bt_utils.c 5.2
SCCS-vsn: lib/libc/db/hash/hash_bigkey.c 5.2
SCCS-vsn: lib/libc/db/hash/hash_buf.c 5.5
SCCS-vsn: lib/libc/db/hash/hash.c 5.10
SCCS-vsn: lib/libc/db/hash/hsearch.c 5.3
SCCS-vsn: lib/libc/db/hash/ndbm.c 5.4
SCCS-vsn: lib/libc/db/hash/hash_page.c 5.9
19 files changed:
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_delete.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_delete.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
+#include <errno.h>
+#include <string.h>
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_get.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_get.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/errno.h>
-#include <sys/file.h>
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_open.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_open.c 5.5 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/*
#endif /* LIBC_SCCS and not lint */
/*
*/
#include <sys/param.h>
*/
#include <sys/param.h>
-#include <sys/signal.h>
-#include <sys/errno.h>
-#include <sys/types.h>
+#include <signal.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "btree.h"
BTREEINFO _DefaultBTInfo = {
#include "btree.h"
BTREEINFO _DefaultBTInfo = {
DB *
btree_open(f, flags, mode, b)
DB *
btree_open(f, flags, mode, b)
db->internal = (char *) t;
db->close = bt_close;
db->internal = (char *) t;
db->close = bt_close;
- db->delete = bt_delete;
db->get = bt_get;
db->put = bt_put;
db->seq = bt_seq;
db->get = bt_get;
db->put = bt_put;
db->seq = bt_seq;
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_overflow.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_overflow.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <db.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <db.h>
+#include <stdlib.h>
+#include <string.h>
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_put.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_put.c 5.3 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <db.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <db.h>
+#include <stdlib.h>
+#include <string.h>
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_seq.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_seq.c 5.3 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_split.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_split.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <db.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <db.h>
+#include <stdlib.h>
+#include <string.h>
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_utils.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_utils.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <db.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <db.h>
+#include <stdlib.h>
+#include <string.h>
- * @(#)btree.h 5.1 (Berkeley) %G%
+ * @(#)btree.h 5.2 (Berkeley) %G%
*/
typedef char *BTREE; /* should really be (void *) */
*/
typedef char *BTREE; /* should really be (void *) */
#define NULL 0
#endif /* ndef NULL */
#define NULL 0
#endif /* ndef NULL */
-/* libc */
-extern char *malloc();
-
/* these are defined in lrucache.c */
extern char *lruinit();
extern char *lruget();
/* these are defined in lrucache.c */
extern char *lruinit();
extern char *lruget();
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-char sccsid[] = "@(#)lrucache.c 5.2 (Berkeley) %G%";
+char sccsid[] = "@(#)lrucache.c 5.3 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/*
#endif /* LIBC_SCCS and not lint */
/*
* btrees.
*/
#include <sys/param.h>
* btrees.
*/
#include <sys/param.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)lruhash.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)lruhash.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
#include "lrucache.h"
#define HASH(l, pgno) (pgno % l->lru_csize)
#include "lrucache.h"
#define HASH(l, pgno) (pgno % l->lru_csize)
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)lrutils.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)lrutils.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
+#include <stdlib.h>
+#include <string.h>
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)updutils.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)updutils.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <db.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <db.h>
+#include <stdlib.h>
+#include <string.h>
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)hash.c 5.10 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#include <errno.h>
#include <assert.h>
#include <db.h>
#include <errno.h>
#include <assert.h>
#include <db.h>
+#include <stdlib.h>
+#include <unistd.h>
/* Fast arithmetic, relying on powers of 2, */
/* Fast arithmetic, relying on powers of 2, */
#define ERROR -1
#define ABNORMAL 1
#define ERROR -1
#define ABNORMAL 1
-/* external routines */
-extern char *calloc();
-
/* page.c */
extern int __get_page();
extern int __split_page();
/* page.c */
extern int __get_page();
extern int __split_page();
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash_bigkey.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)hash_bigkey.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/******************************************************************************
#endif /* LIBC_SCCS and not lint */
/******************************************************************************
collect_data
******************************************************************************/
/* Includes */
collect_data
******************************************************************************/
/* Includes */
-#include <sys/param.h>
-#include <sys/file.h>
#include <assert.h>
#include <errno.h>
#include <db.h>
#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include <db.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "hash.h"
#include "page.h"
#include "hash.h"
#include "page.h"
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash_buf.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)hash_buf.c 5.5 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/******************************************************************************
#endif /* LIBC_SCCS and not lint */
/******************************************************************************
newbuf
******************************************************************************/
newbuf
******************************************************************************/
-#include <sys/param.h>
-#include <sys/file.h>
#include <assert.h>
#include <errno.h>
#include <assert.h>
#include <errno.h>
+#include <stdlib.h>
+#include "hash.h"
/* Externals */
extern HTAB *hashp;
/* Externals */
extern HTAB *hashp;
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash_page.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)hash_page.c 5.9 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/******************************************************************************
#endif /* LIBC_SCCS and not lint */
/******************************************************************************
******************************************************************************/
#include <sys/param.h>
******************************************************************************/
#include <sys/param.h>
#include <signal.h>
#include <assert.h>
#include <errno.h>
#include <db.h>
#include <stdio.h>
#include <signal.h>
#include <assert.h>
#include <errno.h>
#include <db.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include "hash.h"
#include "page.h"
#include <unistd.h>
#include "hash.h"
#include "page.h"
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hsearch.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)hsearch.c 5.3 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
+#include <fcntl.h>
+#include <string.h>
#include <db.h>
#include "search.h"
#include <db.h>
#include "search.h"
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)ndbm.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)ndbm.c 5.4 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/*
#endif /* LIBC_SCCS and not lint */
/*
#include <sys/param.h>
#include <ndbm.h>
#include <sys/param.h>
#include <ndbm.h>
+#include <db.h>
+#include <stdio.h>