projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
errno is defined in <sys/errno.h; BTREEMAGIC/BTREEVERSION are in <db.h>
[unix-history]
/
usr
/
src
/
lib
/
libc
/
db
/
btree
/
bt_open.c
diff --git
a/usr/src/lib/libc/db/btree/bt_open.c
b/usr/src/lib/libc/db/btree/bt_open.c
index
7aaa28a
..
32e7a81
100644
(file)
--- a/
usr/src/lib/libc/db/btree/bt_open.c
+++ b/
usr/src/lib/libc/db/btree/bt_open.c
@@
-9,7
+9,7
@@
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_open.c 5.
1
(Berkeley) %G%";
+static char sccsid[] = "@(#)bt_open.c 5.
2
(Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/*
#endif /* LIBC_SCCS and not lint */
/*
@@
-65,8
+65,6
@@
typedef char *BTREE; /* should really be (void *) */
#define FALSE 0
#endif /* ndef TRUE */
#define FALSE 0
#endif /* ndef TRUE */
-extern int errno;
-
/* libc */
extern char *malloc();
/* libc */
extern char *malloc();
@@
-237,10
+235,6
@@
typedef struct BTMETA {
#define INSERT 0 /* doing an insert operation */
#define DELETE 1 /* doing a delete operation */
#define INSERT 0 /* doing an insert operation */
#define DELETE 1 /* doing a delete operation */
-/* magic number for identifying btree files */
-#define BTREEMAGIC 053162L /* magic */
-#define BTREEVERSION 2 /* last changed 6 jan 1991 */
-
/* get the next free index on a btree page */
#define NEXTINDEX(p) ((((int)(p)->h_lower) - ((int)((((char *)(&(p)->h_linp[0]))) - ((char *) (p)))))/(sizeof(index_t)))
/* get the next free index on a btree page */
#define NEXTINDEX(p) ((((int)(p)->h_lower) - ((int)((((char *)(&(p)->h_linp[0]))) - ((char *) (p)))))/(sizeof(index_t)))