diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-17 17:57:30 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-17 17:57:30 +0000 |
commit | e22604d840c4db32fed14e59f56c5e4f419692d8 (patch) | |
tree | dc3260374404d1ce013bbcd1a29164b3e14aef7e | |
parent | 360cc1a82c0bebebd70f4890a8dcaa78891c032a (diff) | |
download | gdbm-e22604d840c4db32fed14e59f56c5e4f419692d8.tar.gz gdbm-e22604d840c4db32fed14e59f56c5e4f419692d8.tar.bz2 |
Introduce new error code.
* configure.ac, NEWS: Raise patchlevel to 90.
* src/gdbm.h.in: Enclose entire file in conditional
extern "C".
(GDBM_FILE_STAT_ERROR): New error code.
(_GDBM_MAX_ERRNO): Update.
* src/gdbmerrno.c (gdbm_errlist): Update.
* src/gdbmopen.c: Set GDBM_FILE_STAT_ERROR on fstat
failure.
* src/gdbmreorg.c: Likewise.
* src/mmap.c: Likewise.
* src/systems.h: Include errno.h
* gdbm.texinfo: Document GDBM_FILE_STAT_ERROR.
-rw-r--r-- | ChangeLog | 17 | ||||
-rw-r--r-- | NEWS | 7 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | doc/gdbm.texinfo | 5 | ||||
-rw-r--r-- | po/Makefile | 557 | ||||
-rw-r--r-- | src/gdbm.h.in | 23 | ||||
-rw-r--r-- | src/gdbmerrno.c | 3 | ||||
-rw-r--r-- | src/gdbmopen.c | 13 | ||||
-rw-r--r-- | src/gdbmreorg.c | 10 | ||||
-rw-r--r-- | src/mmap.c | 10 | ||||
-rw-r--r-- | src/systems.h | 1 |
11 files changed, 65 insertions, 583 deletions
@@ -1,3 +1,20 @@ | |||
1 | 2011-08-17 Sergey Poznyakoff <gray@gnu.org.ua> | ||
2 | |||
3 | Introduce new error code. | ||
4 | |||
5 | * configure.ac, NEWS: Raise patchlevel to 90. | ||
6 | * src/gdbm.h.in: Enclose entire file in conditional | ||
7 | extern "C". | ||
8 | (GDBM_FILE_STAT_ERROR): New error code. | ||
9 | (_GDBM_MAX_ERRNO): Update. | ||
10 | * src/gdbmerrno.c (gdbm_errlist): Update. | ||
11 | * src/gdbmopen.c: Set GDBM_FILE_STAT_ERROR on fstat | ||
12 | failure. | ||
13 | * src/gdbmreorg.c: Likewise. | ||
14 | * src/mmap.c: Likewise. | ||
15 | * src/systems.h: Include errno.h | ||
16 | * gdbm.texinfo: Document GDBM_FILE_STAT_ERROR. | ||
17 | |||
1 | 2011-08-16 Sergey Poznyakoff <gray@gnu.org.ua> | 18 | 2011-08-16 Sergey Poznyakoff <gray@gnu.org.ua> |
2 | 19 | ||
3 | Minor housekeeping for Gnits compliance. | 20 | Minor housekeeping for Gnits compliance. |
@@ -1,9 +1,14 @@ | |||
1 | GNU dbm NEWS -- history of user-visible changes. 2011-08-13 | 1 | GNU dbm NEWS -- history of user-visible changes. 2011-08-17 |
2 | Copyright (C) 1990-2011 Free Software Foundation, Inc. | 2 | Copyright (C) 1990-2011 Free Software Foundation, Inc. |
3 | See the end of file for copying conditions. | 3 | See the end of file for copying conditions. |
4 | 4 | ||
5 | Please send gdbm bug reports to <bug-gdbm@gnu.org>. | 5 | Please send gdbm bug reports to <bug-gdbm@gnu.org>. |
6 | 6 | ||
7 | Version 1.9.90 (Git) | ||
8 | |||
9 | * Internationalization | ||
10 | |||
11 | |||
7 | Version 1.9.1 | 12 | Version 1.9.1 |
8 | 13 | ||
9 | * Bugfix | 14 | * Bugfix |
diff --git a/configure.ac b/configure.ac index 23da438..bd6c591 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | m4_define([_GDBM_VERSION_MAJOR], 1) | 17 | m4_define([_GDBM_VERSION_MAJOR], 1) |
18 | m4_define([_GDBM_VERSION_MINOR], 9) | 18 | m4_define([_GDBM_VERSION_MINOR], 9) |
19 | m4_define([_GDBM_VERSION_PATCH], 1) | 19 | m4_define([_GDBM_VERSION_PATCH], 90) |
20 | 20 | ||
21 | AC_INIT([gdbm], | 21 | AC_INIT([gdbm], |
22 | _GDBM_VERSION_MAJOR._GDBM_VERSION_MINOR[]m4_ifdef([_GDBM_VERSION_PATCH],._GDBM_VERSION_PATCH), | 22 | _GDBM_VERSION_MAJOR._GDBM_VERSION_MINOR[]m4_ifdef([_GDBM_VERSION_PATCH],._GDBM_VERSION_PATCH), |
diff --git a/doc/gdbm.texinfo b/doc/gdbm.texinfo index 3463b84..98e3bc3 100644 --- a/doc/gdbm.texinfo +++ b/doc/gdbm.texinfo | |||
@@ -1459,6 +1459,11 @@ the file it tries to open has a wrong magic number. | |||
1459 | @item GDBM_BAD_OPEN_FLAGS | 1459 | @item GDBM_BAD_OPEN_FLAGS |
1460 | Set by the @code{gdbm_export} function if supplied an invalid | 1460 | Set by the @code{gdbm_export} function if supplied an invalid |
1461 | @var{flags} argument. @xref{Flat files}. | 1461 | @var{flags} argument. @xref{Flat files}. |
1462 | |||
1463 | @kwindex GDBM_FILE_STAT_ERROR | ||
1464 | @item GDBM_FILE_STAT_ERROR | ||
1465 | Getting information about a disk file failed. The system @code{errno} | ||
1466 | will give more details about the error. | ||
1462 | @end table | 1467 | @end table |
1463 | 1468 | ||
1464 | @node Compatibility | 1469 | @node Compatibility |
diff --git a/po/Makefile b/po/Makefile deleted file mode 100644 index 2a987f0..0000000 --- a/po/Makefile +++ /dev/null | |||
@@ -1,557 +0,0 @@ | |||
1 | # Makefile for PO directory in any package using GNU gettext. | ||
2 | # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu> | ||
3 | # | ||
4 | # This file can be copied and used freely without restrictions. It can | ||
5 | # be used in projects which are not available under the GNU General Public | ||
6 | # License but which still want to provide support for the GNU gettext | ||
7 | # functionality. | ||
8 | # Please note that the actual code of GNU gettext is covered by the GNU | ||
9 | # General Public License and is *not* in the public domain. | ||
10 | # | ||
11 | # Origin: gettext-0.18 | ||
12 | GETTEXT_MACRO_VERSION = 0.18 | ||
13 | |||
14 | PACKAGE = gdbm | ||
15 | VERSION = 1.9.1 | ||
16 | PACKAGE_BUGREPORT = bug-gdbm@gnu.org | ||
17 | |||
18 | SHELL = /bin/sh | ||
19 | |||
20 | |||
21 | srcdir = . | ||
22 | top_srcdir = .. | ||
23 | |||
24 | |||
25 | prefix = /home/gray/alpha | ||
26 | exec_prefix = ${prefix} | ||
27 | datarootdir = ${prefix}/share | ||
28 | datadir = ${datarootdir} | ||
29 | localedir = ${datarootdir}/locale | ||
30 | gettextsrcdir = $(datadir)/gettext/po | ||
31 | |||
32 | INSTALL = /usr/bin/ginstall -c | ||
33 | INSTALL_DATA = ${INSTALL} -m 644 | ||
34 | |||
35 | # We use $(mkdir_p). | ||
36 | # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as | ||
37 | # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, | ||
38 | # ${SHELL} /home/gray/gnu/gdbm/build-aux/install-sh does not start with $(SHELL), so we add it. | ||
39 | # In automake >= 1.10, /usr/bin/mkdir -p is derived from ${MKDIR_P}, which is defined | ||
40 | # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake | ||
41 | # versions, $(mkinstalldirs) and $(install_sh) are unused. | ||
42 | mkinstalldirs = $(SHELL) ${SHELL} /home/gray/gnu/gdbm/build-aux/install-sh -d | ||
43 | install_sh = $(SHELL) ${SHELL} /home/gray/gnu/gdbm/build-aux/install-sh | ||
44 | MKDIR_P = /usr/bin/mkdir -p | ||
45 | mkdir_p = /usr/bin/mkdir -p | ||
46 | |||
47 | GMSGFMT_ = /usr/bin/msgfmt | ||
48 | GMSGFMT_no = /usr/bin/msgfmt | ||
49 | GMSGFMT_yes = /usr/bin/msgfmt | ||
50 | GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) | ||
51 | MSGFMT_ = /usr/bin/msgfmt | ||
52 | MSGFMT_no = /usr/bin/msgfmt | ||
53 | MSGFMT_yes = /usr/bin/msgfmt | ||
54 | MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) | ||
55 | XGETTEXT_ = /usr/bin/xgettext | ||
56 | XGETTEXT_no = /usr/bin/xgettext | ||
57 | XGETTEXT_yes = /usr/bin/xgettext | ||
58 | XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) | ||
59 | MSGMERGE = msgmerge | ||
60 | MSGMERGE_UPDATE = /usr/bin/msgmerge --update | ||
61 | MSGINIT = msginit | ||
62 | MSGCONV = msgconv | ||
63 | MSGFILTER = msgfilter | ||
64 | |||
65 | POFILES = | ||
66 | GMOFILES = | ||
67 | UPDATEPOFILES = | ||
68 | DUMMYPOFILES = | ||
69 | DISTFILES.common = Makefile.in.in remove-potcdate.sin \ | ||
70 | $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) | ||
71 | DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ | ||
72 | $(POFILES) $(GMOFILES) \ | ||
73 | $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) | ||
74 | |||
75 | POTFILES = \ | ||
76 | ../src/gdbmerrno.c \ | ||
77 | ../src/bucket.c \ | ||
78 | ../src/falloc.c \ | ||
79 | ../src/findkey.c \ | ||
80 | ../src/gdbmseq.c \ | ||
81 | ../src/testgdbm.c \ | ||
82 | ../src/update.c | ||
83 | CATALOGS = | ||
84 | |||
85 | # Makevars gets inserted here. (Don't remove this line!) | ||
86 | # Gettext variables for GDBM | ||
87 | # Copyright (C) 2011 Free Software Foundation, Inc. | ||
88 | # | ||
89 | # GDBM is free software; you can redistribute it and/or modify | ||
90 | # it under the terms of the GNU General Public License as published by | ||
91 | # the Free Software Foundation; either version 3, or (at your option) | ||
92 | # any later version. | ||
93 | # | ||
94 | # GDBM is distributed in the hope that it will be useful, | ||
95 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
96 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
97 | # GNU General Public License for more details. | ||
98 | # | ||
99 | # You should have received a copy of the GNU General Public License | ||
100 | # along with GDBM. If not, see <http://www.gnu.org/licenses/>. | ||
101 | |||
102 | # Usually the message domain is the same as the package name. | ||
103 | DOMAIN = $(PACKAGE) | ||
104 | |||
105 | # These two variables depend on the location of this directory. | ||
106 | subdir = po | ||
107 | top_builddir = .. | ||
108 | |||
109 | # These options get passed to xgettext. | ||
110 | XGETTEXT_OPTIONS = \ | ||
111 | --keyword=_\ | ||
112 | --keyword=N_\ | ||
113 | --flag=_:1:pass-c-format\ | ||
114 | --flag=N_:1:pass-c-format\ | ||
115 | --flag=error:2:c-format | ||
116 | |||
117 | # This is the copyright holder that gets inserted into the header of the | ||
118 | # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding | ||
119 | # package. (Note that the msgstr strings, extracted from the package's | ||
120 | # sources, belong to the copyright holder of the package.) Translators are | ||
121 | # expected to transfer the copyright for their translations to this person | ||
122 | # or entity, or to disclaim their copyright. The empty string stands for | ||
123 | # the public domain; in this case the translators are expected to disclaim | ||
124 | # their copyright. | ||
125 | COPYRIGHT_HOLDER = Free Software Foundation, Inc. | ||
126 | |||
127 | # This is the email address or URL to which the translators shall report | ||
128 | # bugs in the untranslated strings: | ||
129 | # - Strings which are not entire sentences, see the maintainer guidelines | ||
130 | # in the GNU gettext documentation, section 'Preparing Strings'. | ||
131 | # - Strings which use unclear terms or require additional context to be | ||
132 | # understood. | ||
133 | # - Strings which make invalid assumptions about notation of date, time or | ||
134 | # money. | ||
135 | # - Pluralisation problems. | ||
136 | # - Incorrect English spelling. | ||
137 | # - Incorrect formatting. | ||
138 | # It can be your email address, or a mailing list address where translators | ||
139 | # can write to without being subscribed, or the URL of a web page through | ||
140 | # which the translators can contact you. | ||
141 | MSGID_BUGS_ADDRESS = bug-gdbm@gnu.org | ||
142 | |||
143 | # This is the list of locale categories, beyond LC_MESSAGES, for which the | ||
144 | # message catalogs shall be used. It is usually empty. | ||
145 | EXTRA_LOCALE_CATEGORIES = | ||
146 | |||
147 | .SUFFIXES: | ||
148 | .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update | ||
149 | |||
150 | .po.mo: | ||
151 | @echo "$(MSGFMT) -c -o $@ $<"; \ | ||
152 | $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ | ||
153 | |||
154 | .po.gmo: | ||