+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
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));
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 ?
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);
}
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
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 */