diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-07-15 19:36:39 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-07-15 19:36:39 +0300 |
commit | 493772dc60886a315c749bf31fc1cbe682df5973 (patch) | |
tree | 9743f55e082e3306cf7ea3add00c152323afd065 /doc | |
parent | 44ca2b760b393e993b2a42fc489fa170910ad810 (diff) | |
download | gdbm-493772dc60886a315c749bf31fc1cbe682df5973.tar.gz gdbm-493772dc60886a315c749bf31fc1cbe682df5973.tar.bz2 |
New gdbm_setopt option to get the actual block size value
* src/gdbm.h.in (GDBM_GETBLOCKSIZE): New option.
* src/gdbmcount.c (gdbm_count): Fix memory leak on
error.
* src/gdbmsetopt.c (gdbm_setopt): Rewrite.
Handle GDBM_GETBLOCKSIZE.
* NEWS: Document GDBM_GETBLOCKSIZE
* doc/gdbm.texi: Likewise.
* tests/gtload.c: New options -bsexact and -verbose.
* tests/Makefile.am: Add new testcases.
* tests/testsuite.at: Likewise.
* tests/blocksize00.at: New testcase.
* tests/blocksize01.at: Likewise.
* tests/blocksize02.at: Likewise.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gdbm.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/gdbm.texi b/doc/gdbm.texi index 8096215..c823ee9 100644 --- a/doc/gdbm.texi +++ b/doc/gdbm.texi @@ -1102,6 +1102,10 @@ else @} @end example +@kwindex GDBM_GETBLOCKSIZE +@item GDBM_GETBLOCKSIZE +Return the block size in bytes. The @var{value} should point to @code{int}. + @end table The return value will be @samp{-1} upon failure, or @samp{0} upon |