aboutsummaryrefslogtreecommitdiff
path: root/doc/gdbm.texinfo
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-17 18:20:48 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-08-17 18:20:48 +0000
commit9fd45622e2cda584e13bf1d3f08960d4fead3c0d (patch)
tree31ce33c0642a9fde9c9c47514bbdf2022eded831 /doc/gdbm.texinfo
parente22604d840c4db32fed14e59f56c5e4f419692d8 (diff)
downloadgdbm-9fd45622e2cda584e13bf1d3f08960d4fead3c0d.tar.gz
gdbm-9fd45622e2cda584e13bf1d3f08960d4fead3c0d.tar.bz2
Make sure errno is preserved, if it can contain details about the gdbm error.
* src/gdbmdefs.h (SAVE_ERRNO): New macro. * src/gdbmopen.c: Use SAVE_ERRNO where it is important to preserve system errno. * src/mmap.c: Likewise. * doc/gdbm.texinfo: Document which gdbm errors can be detailed by inspecting the system errno.
Diffstat (limited to 'doc/gdbm.texinfo')
-rw-r--r--doc/gdbm.texinfo15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/gdbm.texinfo b/doc/gdbm.texinfo
index 98e3bc3..8487de2 100644
--- a/doc/gdbm.texinfo
+++ b/doc/gdbm.texinfo
@@ -1350,23 +1350,35 @@ The library was not able to open a disk file. This can be set by
@code{gdbm_open} (@pxref{Open}), @code{gdbm_export} and
@code{gdbm_import} functions (@pxref{Flat files}).
+Inspect the value of the system @code{errno} variable to get more
+detailed diagnostics.
+
@kwindex GDBM_FILE_WRITE_ERROR
@item GDBM_FILE_WRITE_ERROR
Writing to a disk file failed. This can be set by
@code{gdbm_open} (@pxref{Open}), @code{gdbm_export} and
@code{gdbm_import} functions.
+Inspect the value of the system @code{errno} variable to get more
+detailed diagnostics.
+
@kwindex GDBM_FILE_SEEK_ERROR
@item GDBM_FILE_SEEK_ERROR
Positioning in a disk file failed. This can be set by
@code{gdbm_open} (@pxref{Open}) function.
+Inspect the value of the system @code{errno} variable to get a more
+detailed diagnostics.
+
@kwindex GDBM_FILE_READ_ERROR
@item GDBM_FILE_READ_ERROR
Reading from a disk file failed. This can be set by
@code{gdbm_open} (@pxref{Open}), @code{gdbm_export} and
@code{gdbm_import} functions.
+Inspect the value of the system @code{errno} variable to get a more
+detailed diagnostics.
+
@kwindex GDBM_BAD_MAGIC_NUMBER
@item GDBM_BAD_MAGIC_NUMBER
The file given as argument to @code{gdbm_open} function is not a valid
@@ -1464,6 +1476,9 @@ Set by the @code{gdbm_export} function if supplied an invalid
@item GDBM_FILE_STAT_ERROR
Getting information about a disk file failed. The system @code{errno}
will give more details about the error.
+
+This error can be set by the following functions: @code{gdbm_open},
+@code{gdbm_reorganize}.
@end table
@node Compatibility

Return to:

Send suggestions and report system problems to the System administrator.