diff options
author | no author <devnull@mit.edu> | 1999-03-31 22:12:50 +0000 |
---|---|---|
committer | no author <devnull@mit.edu> | 1999-03-31 22:12:50 +0000 |
commit | 0e71a99c616ae11b7895aefa5b8023453b7a196f (patch) | |
tree | 1911e85fcd6fe81939bdbe3dde9785024fd9c4a7 /src/util/db2/hash | |
parent | 2ac4a834a034a836554037cbc72ae06ecc1bcb75 (diff) | |
download | krb5-0e71a99c616ae11b7895aefa5b8023453b7a196f.zip krb5-0e71a99c616ae11b7895aefa5b8023453b7a196f.tar.gz krb5-0e71a99c616ae11b7895aefa5b8023453b7a196f.tar.bz2 |
This commit was manufactured by cvs2svn to create tag 'V1_0_6_BETA2'krb5-1.0.6-beta2
git-svn-id: svn://anonsvn.mit.edu/krb5/tags/V1_0_6_BETA2@11338 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/db2/hash')
-rw-r--r-- | src/util/db2/hash/dbm.c | 4 | ||||
-rw-r--r-- | src/util/db2/hash/hash.c | 12 | ||||
-rw-r--r-- | src/util/db2/hash/hash.h | 2 |
3 files changed, 9 insertions, 9 deletions
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 */ |