100 lines
2.6 KiB
Diff
100 lines
2.6 KiB
Diff
--- hash/hash.c 1994-06-24 09:12:29.000000000 -0600
|
|
+++ hash/hash.c 2010-05-26 13:54:28.000000000 -0600
|
|
@@ -505,7 +505,7 @@
|
|
else
|
|
if (wsize != sizeof(HASHHDR)) {
|
|
errno = EFTYPE;
|
|
- hashp->errno = errno;
|
|
+ hashp->errno_ = errno;
|
|
return (-1);
|
|
}
|
|
for (i = 0; i < NCACHED; i++)
|
|
@@ -536,7 +536,7 @@
|
|
|
|
hashp = (HTAB *)dbp->internal;
|
|
if (flag) {
|
|
- hashp->errno = errno = EINVAL;
|
|
+ hashp->errno_ = errno = EINVAL;
|
|
return (ERROR);
|
|
}
|
|
return (hash_access(hashp, HASH_GET, (DBT *)key, data));
|
|
@@ -553,11 +553,11 @@
|
|
|
|
hashp = (HTAB *)dbp->internal;
|
|
if (flag && flag != R_NOOVERWRITE) {
|
|
- hashp->errno = errno = EINVAL;
|
|
+ hashp->errno_ = errno = EINVAL;
|
|
return (ERROR);
|
|
}
|
|
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
|
|
- hashp->errno = errno = EPERM;
|
|
+ hashp->errno_ = errno = EPERM;
|
|
return (ERROR);
|
|
}
|
|
return (hash_access(hashp, flag == R_NOOVERWRITE ?
|
|
@@ -574,11 +574,11 @@
|
|
|
|
hashp = (HTAB *)dbp->internal;
|
|
if (flag && flag != R_CURSOR) {
|
|
- hashp->errno = errno = EINVAL;
|
|
+ hashp->errno_ = errno = EINVAL;
|
|
return (ERROR);
|
|
}
|
|
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
|
|
- hashp->errno = errno = EPERM;
|
|
+ hashp->errno_ = errno = EPERM;
|
|
return (ERROR);
|
|
}
|
|
return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL));
|
|
@@ -729,7 +729,7 @@
|
|
|
|
hashp = (HTAB *)dbp->internal;
|
|
if (flag && flag != R_FIRST && flag != R_NEXT) {
|
|
- hashp->errno = errno = EINVAL;
|
|
+ hashp->errno_ = errno = EINVAL;
|
|
return (ERROR);
|
|
}
|
|
#ifdef HASH_STATISTICS
|
|
--- hash/hash.h 1994-06-24 09:12:29.000000000 -0600
|
|
+++ hash/hash.h 2010-05-26 13:53:48.000000000 -0600
|
|
@@ -103,7 +103,7 @@
|
|
BUFHEAD *cpage; /* Current page */
|
|
int cbucket; /* Current bucket */
|
|
int cndx; /* Index of next item on cpage */
|
|
- int errno; /* Error Number -- for DBM
|
|
+ int errno_; /* Error Number -- for DBM
|
|
* compatability */
|
|
int new_file; /* Indicates if fd is backing store
|
|
* or no */
|
|
--- hash/ndbm.c 1994-07-21 12:02:40.000000000 -0600
|
|
+++ hash/ndbm.c 2010-05-26 13:54:45.000000000 -0600
|
|
@@ -180,7 +180,7 @@
|
|
HTAB *hp;
|
|
|
|
hp = (HTAB *)db->internal;
|
|
- return (hp->errno);
|
|
+ return (hp->errno_);
|
|
}
|
|
|
|
extern int
|
|
@@ -190,7 +190,7 @@
|
|
HTAB *hp;
|
|
|
|
hp = (HTAB *)db->internal;
|
|
- hp->errno = 0;
|
|
+ hp->errno_ = 0;
|
|
return (0);
|
|
}
|
|
|
|
--- PORT/linux/Makefile.orig 2014-03-13 14:58:27.943771560 +0100
|
|
+++ PORT/linux/Makefile 2014-03-13 14:58:43.678574848 +0100
|
|
@@ -15,8 +15,7 @@ MISC= snprintf.o
|
|
|
|
${LIBDB}: ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4} ${OBJ5} ${MISC}
|
|
rm -f $@
|
|
- ar cq $@ \
|
|
- `lorder ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4} ${OBJ5} ${MISC} | tsort`
|
|
+ ar rcs $@ $^
|
|
ranlib $@
|
|
|
|
clean:
|