aboutsummaryrefslogtreecommitdiff
path: root/doc/gdbm.texinfo
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-05 12:03:21 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-08-05 12:03:21 +0000
commit2c7ac4edb1a21c962420c14eee6ec0ab2e8c595b (patch)
tree7f21820122db99d40a77b5deca52afab919f1376 /doc/gdbm.texinfo
parente9390d217c43a165f712743eea499d5430b22bdc (diff)
downloadgdbm-2c7ac4edb1a21c962420c14eee6ec0ab2e8c595b.tar.gz
gdbm-2c7ac4edb1a21c962420c14eee6ec0ab2e8c595b.tar.bz2
Minor fixes.
Diffstat (limited to 'doc/gdbm.texinfo')
-rw-r--r--doc/gdbm.texinfo42
1 files changed, 20 insertions, 22 deletions
diff --git a/doc/gdbm.texinfo b/doc/gdbm.texinfo
index bfb967e..3553d0b 100644
--- a/doc/gdbm.texinfo
+++ b/doc/gdbm.texinfo
@@ -1305,20 +1305,18 @@ function names are the same as the UNIX @code{dbm} function
1305names. Their definitions follow: 1305names. Their definitions follow:
1306 1306
1307@example 1307@example
1308int dbminit(name); 1308int dbminit (char *file);
1309int store(key, content); 1309datum fetch (datum key);
1310datum fetch(key); 1310int store (datum key, datum content);
1311int delete(key); 1311int delete (datum key);
1312datum firstkey(); 1312datum firstkey (void);
1313datum nextkey(key); 1313datum nextkey (datum key);
1314int dbmclose(); 1314int dbmclose (void);
1315@end example 1315@end example
1316 1316
1317Standard UNIX @code{dbm} and GNU @code{dbm} do not have the same data 1317Standard UNIX @code{dbm} and GNU @code{dbm} do not have the same data
1318format in the file. You cannot access a standard UNIX @code{dbm} file 1318format in the file. You cannot access a standard UNIX @code{dbm} file
1319with GNU @code{dbm}! If you want to use an old database with GNU 1319with GNU @code{dbm}!
1320@code{dbm}, you must use the @code{conv2gdbm} program.
1321@c FIXME: What's it? Where to get it?
1322 1320
1323Also, GNU @code{dbm} has compatibility functions for @code{ndbm}. For 1321Also, GNU @code{dbm} has compatibility functions for @code{ndbm}. For
1324@code{ndbm} compatibility functions, you need the include file @code{ndbm.h}. 1322@code{ndbm} compatibility functions, you need the include file @code{ndbm.h}.
@@ -1330,18 +1328,18 @@ functions will do it for you.
1330The functions are: 1328The functions are:
1331 1329
1332@example 1330@example
1333DBM *dbm_open(name, flags, mode); 1331DBM *dbm_open (char *file, int flags, int mode);
1334void dbm_close(file); 1332void dbm_close (DBM *dbf);
1335datum dbm_fetch(file, key); 1333datum dbm_fetch (DBM *dbf, datum key);
1336int dbm_store(file, key, @code{content}, flags); 1334int dbm_store (DBM *dbf, datum key, datum content, int flags);
1337int dbm_delete(file, key); 1335int dbm_delete (DBM *dbf, datum key);
1338datum dbm_firstkey(file); 1336datum dbm_firstkey (DBM *dbf);
1339datum dbm_nextkey(file); 1337datum dbm_nextkey (DBM *dbf);
1340int dbm_error(file); 1338int dbm_error(DBM *dbf);
1341int dbm_clearerr(file); 1339void dbm_clearerr(DBM *dbf)
1342int dbm_dirfno(file); 1340int dbm_dirfno (DBM *dbf);
1343int dbm_pagfno(file); 1341int dbm_pagfno (DBM *dbf);
1344int dbm_rdonly(file); 1342int dbm_rdonly (DBM *dbf);
1345@end example 1343@end example
1346 1344
1347If you want to compile an old C program that used UNIX @code{dbm} or 1345If you want to compile an old C program that used UNIX @code{dbm} or

Return to:

Send suggestions and report system problems to the System administrator.