diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-05 12:03:21 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-05 12:03:21 +0000 |
commit | 2c7ac4edb1a21c962420c14eee6ec0ab2e8c595b (patch) | |
tree | 7f21820122db99d40a77b5deca52afab919f1376 /doc/gdbm.texinfo | |
parent | e9390d217c43a165f712743eea499d5430b22bdc (diff) | |
download | gdbm-2c7ac4edb1a21c962420c14eee6ec0ab2e8c595b.tar.gz gdbm-2c7ac4edb1a21c962420c14eee6ec0ab2e8c595b.tar.bz2 |
Minor fixes.
Diffstat (limited to 'doc/gdbm.texinfo')
-rw-r--r-- | doc/gdbm.texinfo | 42 |
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 | |||
1305 | names. Their definitions follow: | 1305 | names. Their definitions follow: |
1306 | 1306 | ||
1307 | @example | 1307 | @example |
1308 | int dbminit(name); | 1308 | int dbminit (char *file); |
1309 | int store(key, content); | 1309 | datum fetch (datum key); |
1310 | datum fetch(key); | 1310 | int store (datum key, datum content); |
1311 | int delete(key); | 1311 | int delete (datum key); |
1312 | datum firstkey(); | 1312 | datum firstkey (void); |
1313 | datum nextkey(key); | 1313 | datum nextkey (datum key); |
1314 | int dbmclose(); | 1314 | int dbmclose (void); |
1315 | @end example | 1315 | @end example |
1316 | 1316 | ||
1317 | Standard UNIX @code{dbm} and GNU @code{dbm} do not have the same data | 1317 | Standard UNIX @code{dbm} and GNU @code{dbm} do not have the same data |
1318 | format in the file. You cannot access a standard UNIX @code{dbm} file | 1318 | format in the file. You cannot access a standard UNIX @code{dbm} file |
1319 | with GNU @code{dbm}! If you want to use an old database with GNU | 1319 | with 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 | ||
1323 | Also, GNU @code{dbm} has compatibility functions for @code{ndbm}. For | 1321 | Also, 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. | |||
1330 | The functions are: | 1328 | The functions are: |
1331 | 1329 | ||
1332 | @example | 1330 | @example |
1333 | DBM *dbm_open(name, flags, mode); | 1331 | DBM *dbm_open (char *file, int flags, int mode); |
1334 | void dbm_close(file); | 1332 | void dbm_close (DBM *dbf); |
1335 | datum dbm_fetch(file, key); | 1333 | datum dbm_fetch (DBM *dbf, datum key); |
1336 | int dbm_store(file, key, @code{content}, flags); | 1334 | int dbm_store (DBM *dbf, datum key, datum content, int flags); |
1337 | int dbm_delete(file, key); | 1335 | int dbm_delete (DBM *dbf, datum key); |
1338 | datum dbm_firstkey(file); | 1336 | datum dbm_firstkey (DBM *dbf); |
1339 | datum dbm_nextkey(file); | 1337 | datum dbm_nextkey (DBM *dbf); |
1340 | int dbm_error(file); | 1338 | int dbm_error(DBM *dbf); |
1341 | int dbm_clearerr(file); | 1339 | void dbm_clearerr(DBM *dbf) |
1342 | int dbm_dirfno(file); | 1340 | int dbm_dirfno (DBM *dbf); |
1343 | int dbm_pagfno(file); | 1341 | int dbm_pagfno (DBM *dbf); |
1344 | int dbm_rdonly(file); | 1342 | int dbm_rdonly (DBM *dbf); |
1345 | @end example | 1343 | @end example |
1346 | 1344 | ||
1347 | If you want to compile an old C program that used UNIX @code{dbm} or | 1345 | If you want to compile an old C program that used UNIX @code{dbm} or |