aboutsummaryrefslogtreecommitdiff
path: root/compat/ndbm.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-06 09:24:04 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-08-06 09:24:04 +0000
commitde03844917b6785e1b005a547c0b61e26817c93e (patch)
tree1c496a8be939b8bb9b9596a927fb593043d3a12c /compat/ndbm.h
parentc441c706a5c6d2606f8e7e58778ddf7f086b3e7f (diff)
downloadgdbm-de03844917b6785e1b005a547c0b61e26817c93e.tar.gz
gdbm-de03844917b6785e1b005a547c0b61e26817c93e.tar.bz2
(DBM) <dirfd>: New member.
Diffstat (limited to 'compat/ndbm.h')
-rw-r--r--compat/ndbm.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/compat/ndbm.h b/compat/ndbm.h
index 0a28e6c..f6607bc 100644
--- a/compat/ndbm.h
+++ b/compat/ndbm.h
@@ -34,9 +34,10 @@
/* The file information header. */
typedef struct
{
- GDBM_FILE file;
- datum _dbm_memory;
- char *_dbm_fetch_val;
+ GDBM_FILE file; /* Actual gdbm file (held in the .pag file */
+ int dirfd; /* Descriptor of the .dir file */
+ datum _dbm_memory; /* Keeps the last returned key */
+ char *_dbm_fetch_val; /* Keeps the dptr of the last fetched datum */
} DBM;
/* These are the routines (with some macros defining them!) */

Return to:

Send suggestions and report system problems to the System administrator.