aboutsummaryrefslogtreecommitdiff
path: root/src/util/db2
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/db2')
-rw-r--r--src/util/db2/ChangeLog10
-rw-r--r--src/util/db2/hash/dbm.c4
-rw-r--r--src/util/db2/hash/hash.c12
-rw-r--r--src/util/db2/hash/hash.h2
-rw-r--r--src/util/db2/obj/ChangeLog4
-rw-r--r--src/util/db2/obj/Makefile.in4
6 files changed, 23 insertions, 13 deletions
diff --git a/src/util/db2/ChangeLog b/src/util/db2/ChangeLog
index fdabe09..41774ba 100644
--- a/src/util/db2/ChangeLog
+++ b/src/util/db2/ChangeLog
@@ -1,3 +1,13 @@
+Sun Dec 21 18:33:14 1997 Tom Yu <tlyu@mit.edu>
+
+ * hash/dbm.c: Rename the errno member of HTAB.
+
+ * hash/hash.h: Rename the errno member of HTAB to local_errno to
+ avoid a collision with a glibc macro.
+
+ * hash/hash.c: Rename the errno member of HTAB to local_errno to
+ avoid a collision with a glibc macro.
+
Mon Nov 11 17:01:29 1996 Mark Eichin <eichin@cygnus.com>
* db2: overflow_page fixes, __P redef
diff --git a/src/util/db2/hash/dbm.c b/src/util/db2/hash/dbm.c
index c4ba92b..4745127 100644
--- a/src/util/db2/hash/dbm.c
+++ b/src/util/db2/hash/dbm.c
@@ -328,7 +328,7 @@ dbm_error(db)
HTAB *hp;
hp = (HTAB *)db->internal;
- return (hp->errno);
+ return (hp->local_errno);
}
int
@@ -338,7 +338,7 @@ dbm_clearerr(db)
HTAB *hp;
hp = (HTAB *)db->internal;
- hp->errno = 0;
+ hp->local_errno = 0;
return (0);
}
diff --git a/src/util/db2/hash/hash.c b/src/util/db2/hash/hash.c
index 2811688..e522754 100644
--- a/src/util/db2/hash/hash.c
+++ b/src/util/db2/hash/hash.c
@@ -632,7 +632,7 @@ hash_get(dbp, key, data, flag)
hashp = (HTAB *)dbp->internal;
if (flag) {
- hashp->errno = errno = EINVAL;
+ hashp->local_errno = errno = EINVAL;
return (ERROR);
}
return (hash_access(hashp, HASH_GET, (DBT *)key, data));
@@ -649,11 +649,11 @@ hash_put(dbp, key, data, flag)
hashp = (HTAB *)dbp->internal;
if (flag && flag != R_NOOVERWRITE) {
- hashp->errno = errno = EINVAL;
+ hashp->local_errno = errno = EINVAL;
return (ERROR);
}
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
- hashp->errno = errno = EPERM;
+ hashp->local_errno = errno = EPERM;
return (ERROR);
}
return (hash_access(hashp, flag == R_NOOVERWRITE ?
@@ -670,11 +670,11 @@ hash_delete(dbp, key, flag)
hashp = (HTAB *)dbp->internal;
if (flag) {
- hashp->errno = errno = EINVAL;
+ hashp->local_errno = errno = EINVAL;
return (ERROR);
}
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
- hashp->errno = errno = EPERM;
+ hashp->local_errno = errno = EPERM;
return (ERROR);
}
@@ -849,7 +849,7 @@ cursor_get(dbp, cursorp, key, val, flags)
hashp = (HTAB *)dbp->internal;
if (flags && flags != R_FIRST && flags != R_NEXT) {
- hashp->errno = errno = EINVAL;
+ hashp->local_errno = errno = EINVAL;
return (ERROR);
}
#ifdef HASH_STATISTICS
diff --git a/src/util/db2/hash/hash.h b/src/util/db2/hash/hash.h
index a12c8d4..170c24c 100644
--- a/src/util/db2/hash/hash.h
+++ b/src/util/db2/hash/hash.h
@@ -94,7 +94,7 @@ typedef struct htab { /* Memory resident data structure */
u_int8_t *bigkey_buf; /* Temporary Buffer for BIG keys */
u_int16_t *split_buf; /* Temporary buffer for splits */
CURSOR *seq_cursor; /* Cursor used for hash_seq */
- int32_t errno; /* Error Number -- for DBM compatability */
+ int32_t local_errno; /* Error Number -- for DBM compatability */
int32_t new_file; /* Indicates if fd is backing store or no */
int32_t save_file; /* Indicates whether we need to flush file at
* exit */
diff --git a/src/util/db2/obj/ChangeLog b/src/util/db2/obj/ChangeLog
index d2c8bb8..6f09fcd 100644
--- a/src/util/db2/obj/ChangeLog
+++ b/src/util/db2/obj/ChangeLog
@@ -1,3 +1,7 @@
+Mon Nov 25 16:20:35 1996 Sam Hartman <hartmans@mit.edu>
+
+ * Makefile.in (check): Remove install rule to fix pmake problem. [236]
+
Wed Sep 11 18:55:38 1996 Tom Yu <tlyu@mit.edu>
* Makefile.in (memmove.o): add -DMEMMOVE to compile as memmove
diff --git a/src/util/db2/obj/Makefile.in b/src/util/db2/obj/Makefile.in
index 4445e37..0c022e2 100644
--- a/src/util/db2/obj/Makefile.in
+++ b/src/util/db2/obj/Makefile.in
@@ -56,10 +56,6 @@ check:: dbtest
TMPDIR=$(TMPDIR) $(FCTSH) $(top_srcdir)/test/run.test
install::
- cp $(LIBDB) $(libdir)
- $(RANLIB) $(libdir)/$(LIBDB)
- cp $(top_srcdir)/include/db.h $(includedir)
- cp ../db-config.h $(includedir)
clean::
rm -f $(ALL_OBJS) $(LIBDB) \