summaryrefslogtreecommitdiff
path: root/databases/gdbm/Makefile.common
diff options
context:
space:
mode:
authoradam <adam>2017-03-20 06:02:26 +0000
committeradam <adam>2017-03-20 06:02:26 +0000
commitf840e2b527983cd75ebea702045ae089754e27c0 (patch)
tree45d50ce97ca44faad592b6d46756567ea91d2f76 /databases/gdbm/Makefile.common
parentd63c74399d1b6226e77e003a5ce881ae7dd13e6c (diff)
downloadpkgsrc-f840e2b527983cd75ebea702045ae089754e27c0.tar.gz
Version 1.13 - 2017-03-11
* gdbm_fetch, gdbm_firstkey, and gdbm_nextkey behavior If the requested key was not found, these functions return datum with dptr pointing to NULL and set gdbm_errno to GDBM_ITEM_NOT_FOUND (in prior releases, gdbm_errno was set to GDBM_NO_ERROR), If an error occurred, dptr is set to NULL, and gdbm_errno to the error code. In any case gdbm_errno is guaranteed to have meaningful value upon return. * Error handling In previous versions of GDBM, fatal errors (such as write error while storing the key/data pair or bucket) caused immediate termination of the program via call to exit(3). This is no longer the case. Starting from this version, if a fatal error occurrs while modifying the database file, that database is marked as needing recovery and gdbm_errno is set to GDBM_NEED_RECOVERY. Calls to any GDBM functions, except gdbm_recover, will then return immediately with the same error code. The function gdbm_recover examines the database file and fixes eventual inconsistencies. Upon successful return it clears the error state and makes the database operational again. For backward compatibility, the fatal_func argument to gdbm_open is retained and its functionality is not changed. If it is not NULL, the new error handling procedures are disabled, the function it points to will be called upon fatal errors. When it returns, exit(1) will be called. * Per-database error codes In addition to gdbm_error global variable, the most recent error state is saved in the GDBM_FILE structure. This facilitates error handling when operating multiple GDBM databases simultaneously.
Diffstat (limited to 'databases/gdbm/Makefile.common')
-rw-r--r--databases/gdbm/Makefile.common4
1 files changed, 2 insertions, 2 deletions
diff --git a/databases/gdbm/Makefile.common b/databases/gdbm/Makefile.common
index cedcab23159..73ca7a2f1e2 100644
--- a/databases/gdbm/Makefile.common
+++ b/databases/gdbm/Makefile.common
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.4 2016/05/22 17:24:32 wiz Exp $
+# $NetBSD: Makefile.common,v 1.5 2017/03/20 06:02:26 adam Exp $
#
# used by databases/gdbm/Makefile
# used by databases/gdbm_compat/Makefile
-DISTNAME= gdbm-1.12
+DISTNAME= gdbm-1.13
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GNU:=gdbm/}