summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-10 07:01:39 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-08-10 07:01:39 +0000
commit6b6dcc80555d77858733e44b72e92d1dc60e2c38 (patch)
tree192a74781180555afbc432c6e7f9f40e9c837965
parent9266cd41ceee6c577c6e52e0bce9af0f91cae520 (diff)
downloadgdbm-6b6dcc80555d77858733e44b72e92d1dc60e2c38.tar.gz
Docs: "Additional information" section.
-rw-r--r--NEWS2
-rw-r--r--README13
-rw-r--r--doc/gdbm.texinfo41
-rw-r--r--src/gdbmopen.c2
4 files changed, 50 insertions, 8 deletions
diff --git a/NEWS b/NEWS
index 0846e19..f8ca701 100644
--- a/NEWS
+++ b/NEWS
@@ -4,7 +4,7 @@ See the end of file for copying conditions.
Please send gdbm bug reports to <bug-gdbm@gnu.org>.
-Version 1.9, 2011-08-09
+Version 1.9
* Use of mmap
diff --git a/README b/README
index 7e416f8..f106aba 100644
--- a/README
+++ b/README
@@ -63,6 +63,19 @@ Build gdbmexport with gdbm.h from the specified directory.
Please report bugs to <bug-gdbm@gnu.org>
+* Documentation, updates etc.
+
+For the latest updates, visit <http://www.gnu.org/software/gdbm>,
+
+In particular, a copy of GDBM documentation in various formats is
+available online at <http://www.gnu.org/software/gdbm/manual>.
+
+Latest versions of GDBM can be downloaded from anonymous
+ftp://ftp.gnu.org/gnu/gdbm.
+
+To track the development, visit
+<http://puszcza.gnu.org.ua/projects/gdbm>.
+
* Copyright information:
diff --git a/doc/gdbm.texinfo b/doc/gdbm.texinfo
index 53bc1c5..c349941 100644
--- a/doc/gdbm.texinfo
+++ b/doc/gdbm.texinfo
@@ -145,6 +145,7 @@ Other topics:
* Variables:: Two useful variables.
* Compatibility:: Compatibility with UNIX dbm and ndbm.
* Bugs:: Problems and bugs.
+* Resources:: Additional resources,
* GNU Free Documentation License:: Document license.
* Index:: Index
@@ -766,13 +767,14 @@ to an integer holding the desired cache size.
@kwindex GDBM_FASTMODE
@item GDBM_FASTMODE
-@emph{This option is now obsolete and has no effect. The following
-description reflects its historical usage:}
+Enable or disable the @dfn{fast writes mode}, i.e. writes without
+subsequent synchronization. The @var{value} should point
+to an integer: @samp{TRUE} to enable fast mode, and @samp{FALSE} to
+disable it.
-Enable or disable the fast mode. This allows fast mode to be toggled
-on an already open and active database. The @var{value} should point
-to an integer: @samp{TRUE} to enable fast mode, and @samp{FALSE} to disable
-it.
+This option is retained for compatibility with previous versions of
+@code{gdbm}. Its effect is the reverse of @code{GDBM_SYNCMODE}
+(see below).
@kwindex GDBM_SYNCMODE
@item GDBM_SYNCMODE
@@ -781,6 +783,10 @@ setting defaults to off. The @var{value} should point
to an integer: @samp{TRUE} to turn synchronization on, and @samp{FALSE} to
turn it off.
+Note, that this option is a reverse of @code{GDBM_FASTMODE},
+i.e. calling @code{GDBM_SYNCMODE} with @samp{TRUE} has the same effect
+as calling @code{GDBM_FASTMODE} with @samp{FALSE}.
+
@kwindex GDBM_CENTFREE
@item GDBM_CENTFREE
@emph{NOTICE: This feature is still under study.}
@@ -1654,6 +1660,29 @@ You may contact the authors and maintainers by e-mail:
@email{phil@@cs.wwu.edu}, @email{downsj@@downsj.com}, @email{gray@@gnu.org.ua}
@end example
+@node Resources
+@chapter Additional resources
+
+For the latest updates and pointers to additional resources, visit
+@uref{http://www.gnu.org/software/gdbm}.
+
+In particular, a copy of @code{gdbm} documentation in various formats
+is available online at @uref{http://www.gnu.org/software/gdbm/manual}.
+
+Latest versions of @code{gdbm} can be downloaded from anonymous FTP:
+@uref{ftp://ftp.gnu.org/gnu/gdbm}, or via HTTP from
+@uref{http://ftp.gnu.org/gnu/gdbm}, or from any
+@ifhtml
+@uref{http://www.gnu.org/order/ftp.html,,GNU mirror} worldwide.
+@end ifhtml
+@ifnothtml
+GNU mirror worldwide. See @uref{http://www.gnu.org/order/ftp.html},
+for a list of mirrors.
+@end ifnothtml
+
+To track @code{gdbm} development, visit
+@uref{http://puszcza.gnu.org.ua/projects/gdbm}.
+
@node GNU Free Documentation License
@appendix GNU Free Documentation License
diff --git a/src/gdbmopen.c b/src/gdbmopen.c
index 4b1614a..7cd9040 100644
--- a/src/gdbmopen.c
+++ b/src/gdbmopen.c
@@ -109,7 +109,7 @@ gdbm_open (const char *file, int block_size, int flags, int mode,
dbf->coalesce_blocks = FALSE; /* Default to not coalescing blocks. */
dbf->allow_mmap = TRUE; /* Default to using mmap(). */
- /* GDBM_FAST used to determine whethere or not we set fast_write. */
+ /* GDBM_FAST used to determine whether or not we set fast_write. */
if (flags & GDBM_SYNC)
{
/* If GDBM_SYNC has been requested, don't do fast_write. */