1 *** ./hash/hash.h.bak Fri May 12 11:00:42 1995
2 --- ./hash/hash.h Fri May 12 11:01:07 1995
5 BUFHEAD *cpage; /* Current page */
6 int cbucket; /* Current bucket */
7 int cndx; /* Index of next item on cpage */
8 ! int errno; /* Error Number -- for DBM
10 int new_file; /* Indicates if fd is backing store
13 BUFHEAD *cpage; /* Current page */
14 int cbucket; /* Current bucket */
15 int cndx; /* Index of next item on cpage */
16 ! int h_errno; /* Error Number -- for DBM
18 int new_file; /* Indicates if fd is backing store
20 *** ./hash/hash.c.bak Fri May 12 11:02:03 1995
21 --- ./hash/hash.c Fri May 12 11:02:42 1995
25 if (wsize != sizeof(HASHHDR)) {
27 ! hashp->errno = errno;
30 for (i = 0; i < NCACHED; i++)
33 if (wsize != sizeof(HASHHDR)) {
35 ! hashp->h_errno = errno;
38 for (i = 0; i < NCACHED; i++)
42 hashp = (HTAB *)dbp->internal;
44 ! hashp->errno = errno = EINVAL;
47 return (hash_access(hashp, HASH_GET, (DBT *)key, data));
50 hashp = (HTAB *)dbp->internal;
52 ! hashp->h_errno = errno = EINVAL;
55 return (hash_access(hashp, HASH_GET, (DBT *)key, data));
59 hashp = (HTAB *)dbp->internal;
60 if (flag && flag != R_NOOVERWRITE) {
61 ! hashp->errno = errno = EINVAL;
64 if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
65 ! hashp->errno = errno = EPERM;
68 return (hash_access(hashp, flag == R_NOOVERWRITE ?
71 hashp = (HTAB *)dbp->internal;
72 if (flag && flag != R_NOOVERWRITE) {
73 ! hashp->h_errno = errno = EINVAL;
76 if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
77 ! hashp->h_errno = errno = EPERM;
80 return (hash_access(hashp, flag == R_NOOVERWRITE ?
84 hashp = (HTAB *)dbp->internal;
85 if (flag && flag != R_CURSOR) {
86 ! hashp->errno = errno = EINVAL;
89 if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
90 ! hashp->errno = errno = EPERM;
93 return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL));
96 hashp = (HTAB *)dbp->internal;
97 if (flag && flag != R_CURSOR) {
98 ! hashp->h_errno = errno = EINVAL;
101 if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
102 ! hashp->h_errno = errno = EPERM;
105 return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL));
109 hashp = (HTAB *)dbp->internal;
110 if (flag && flag != R_FIRST && flag != R_NEXT) {
111 ! hashp->errno = errno = EINVAL;
114 #ifdef HASH_STATISTICS
117 hashp = (HTAB *)dbp->internal;
118 if (flag && flag != R_FIRST && flag != R_NEXT) {
119 ! hashp->h_errno = errno = EINVAL;
122 #ifdef HASH_STATISTICS
123 *** ./hash/ndbm.c.bak Fri May 12 11:02:06 1995
124 --- ./hash/ndbm.c Fri May 12 11:02:54 1995
129 hp = (HTAB *)db->internal;
130 ! return (hp->errno);
137 hp = (HTAB *)db->internal;
138 ! return (hp->h_errno);
146 hp = (HTAB *)db->internal;
154 hp = (HTAB *)db->internal;