1 2011-12-01 Werner Koch <wk@g10code.com>
3 NB: ChangeLog files are no longer manually maintained. Starting
4 on December 1st, 2011 we put change information only in the GIT
5 commit log, and generate a top-level ChangeLog file from logs at
6 "make dist". See doc/HACKING for details.
8 2011-11-28 Jim Meyering <meyering@redhat.com>
10 accept --with-libgpg-error-prefix as well as --with-gpg-error-prefix
11 * src/gpg-error.m4 (AM_PATH_GPG_ERROR): Also accept
12 --with-libgpg-error-prefix=PFX, for consistency with our three
13 library sibling packages.
15 2011-08-23 Werner Koch <wk@g10code.com>
17 * src/err-codes.h.in: Add GPG_ERR_DUP_KEY and GPG_ERR_AMBIGUOUS.
19 2011-04-06 Werner Koch <wk@g10code.com>
21 * autogen.sh: Support option --build-w64.
22 * configure.ac (HAVE_W64_SYSTEM): New.
24 * src/gpg-error.m4: Test whether gpg-error-config exists.
26 2011-02-23 Werner Koch <wk@g10code.com>
28 * autogen.sh: Check git setup.
30 * src/gpg-error-config.in: Add option --host.
31 * configure.ac (GPG_ERROR_CONFIG_HOST): New.
32 * src/gpg-error.m4: Use AC_PATH_TOOL to look for
33 gpg-error-config. Print a warning if host does not match.
35 2011-02-01 Werner Koch <wk@g10code.com>
37 * src/err-codes.h.in: Add GPG_ERR_INV_CURVE and GPG_ERR_UNKNOWN_CURVE.
39 2011-01-06 Werner Koch <wk@g10code.com>
41 * src/err-codes.h.in: Add GPG_ERR_NO_KEYSERVER.
43 2010-12-23 Werner Koch <wk@g10code.com>
45 * configure.ac: Support git_revision.
47 2010-11-01 Marcus Brinkmann <marcus@g10code.de>
49 * src/w32-gettext.c (CreateFileA): Rename to ...
50 (MyCreateFileA): ... this, but provide macro CreateFileA.
52 2010-10-31 Werner Koch <wk@g10code.com>
54 * src/init.c (abort): Use TerminateProcess; exit would call atexit
57 2010-10-29 Marcus Brinkmann <marcus@g10code.de>
59 * src/w32-gettext.c: Guard include of <sys/types.h>. Do not
61 (CreateFileA) [HAVE_W32CE_SYSTEM]: New wrapper function.
62 (load_domain): Use native Windows API.
64 * src/init.c (TLS_OUT_OF_INDEXES) [HAVE_W32CE_SYSTEM,
65 !TLS_OUT_OF_INDEXES]: Define it.
66 (abort) [!__MINGW32CE__]: Define it.
68 2010-10-28 Werner Koch <wk@g10code.com>
70 * src/mkstrtable.awk: s/inline/GPG_ERR_INLINE/
71 * src/w32-gettext.c: Include gpg-error.h and replace all
72 __inline__ by GPG_ERR_INLINE.
73 (module_init): Use _GPG_ERR_CONSTRUCTOR.
74 (_gpg_w32__init_gettext_module): Build also if we don't have
76 * src/gpg-error.h.in (GPG_ERR_INLINE) [_MSC_VER]: Define as __inline.
78 2010-10-26 Werner Koch <wk@g10code.com>
82 * configure.ac: Set LT version to C8/A8/R0.
83 * config.guess: Update to version 2010-09-24.
84 * config.sub: Update to version 2010-09-11.
86 2010-10-20 Werner Koch <wk@g10code.com>
88 * potomo: New. Copied from GnuPG.
89 * Makefile.am (install-data-hook) [W32]: New.
91 * src/init.c (get_locale_dir): Strip the "bin" part.
92 * src/gpg-error.c (get_locale_dir): Ditto.
94 2010-09-30 Werner Koch <wk@g10code.com>
96 * src/err-codes.h.in: Add GPG_ERR_FULLY_CANCELED.
98 2010-09-16 Werner Koch <wk@g10code.com>
100 * src/w32-gettext.c (module_init): Do not set a constructur if not
102 (_gpg_w32__init_gettext_module): New.
104 2010-09-16 gettextize <bug-gnu-gettext@gnu.org>
106 * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
108 2010-09-16 Werner Koch <wk@g10code.com>
110 * src/err-codes.h.in: Add GPG_ERR_MISSING_ISSUER_CERT.
112 * src/Makefile.am (err-sources.h, err-codes.h): Built them in the
115 2010-09-02 Werner Koch <wk@g10code.com>
117 * src/err-codes.h.in: Add GPG_ERR_NOT_INITIALIZED.
119 2010-08-19 Werner Koch <wk@g10code.com>
121 * configure.ac (AH_BOTTOM): Define GPG_ERR_ENABLE_ERRNO_MACROS.
122 * src/w32ce-add.h (strerror) [!GPG_ERR_ENABLE_ERRNO_MACROS]: Do
125 2010-07-21 Werner Koch <wk@g10code.com>
129 * configure.ac: Set LT version to C7/A7/R0.
131 2010-07-20 Werner Koch <wk@g10code.com>
133 * src/init.c (DllMain) [!DLL_EXPORT]: Do not build.
134 (gpg_err_init) [W32][!DLL_EXPORT]: Init TLS.
135 (gpg_err_deinit): New.
136 * src/gpg-error.def.in: Add gpg_err_deinit.
137 * src/gpg-error.h.in: Add gpg_err_deinit.
139 2010-07-05 Werner Koch <wk@g10code.com>
141 * src/err-codes.h.in (GPG_ERR_TOO_MANY, GPG_ERR_LIMIT_REACHED): New.
143 2010-06-18 Werner Koch <wk@g10code.com>
145 * src/err-codes.h.in (GPG_ERR_MISSING_KEY): New.
147 2010-05-06 Werner Koch <wk@g10code.com>
151 * configure.ac: Set LT version to C6/A6/R0.
153 2010-04-14 Werner Koch <wk@g10code.com>
155 * src/init.c (_gpg_w32ce_get_errno): Add native error mapping.
156 * src/Makefile.am (mkw32errmap.map.c): New.
157 * src/mkw32errmap.c (struct table_s): Add field W32CODE2.
158 (table): Init this field.
159 (main): Add option --map.
161 2010-03-15 Werner Koch <wk@g10code.com>
163 * src/mkheader.awk: Add emacs local-var line.
165 * src/w32-add.h (gettext_localename): Fix type in name.
167 2010-03-09 Werner Koch <wk@g10code.com>
169 * src/w32-add.h [!GPG_ERR_ENABLE_GETTEXT_MACROS]: Do not provide
172 2010-03-08 Werner Koch <wk@g10code.com>
174 * src/w32-add.h (_GPG_ERR_ATTR_FORMAT_ARG): New.
175 (_gpg_w32_gettext, _gpg_w32_dgettext, _gpg_w32_dngettext): Use it.
177 2010-03-01 Werner Koch <wk@g10code.com>
179 * src/mkw32errmap.c: Map ESPIPE.
181 2010-02-17 Werner Koch <wk@g10code.com>
183 * src/Makefile.am: Revert last change.
184 (gpg_extra_headers): New.
185 (nobase_include_HEADERS): Rename to include_HEADERS and remove
187 (mkerrcodes.h): Depend on gpg_extra_headers.
188 (install-data-local): New.
189 (gpg-extra/errno.h): Create gpg-extra dir if needed.
191 2010-02-17 Werner Koch <wk@g10code.com>
193 * src/Makefile.am (extra_headers): Remove.
195 2010-01-21 Werner Koch <wk@g10code.com>
197 * configure.ac (have_w32ce_system): Initialize to no.
199 * src/mkstrtable.awk (END): Do not print PREFIX before
202 * src/init.c (get_locale_dir): Rework to match what gnupg is doing.
203 (get_root_key, read_w32_registry_string): Remove.
204 * src/gpg-error.c (get_locale_dir): Replace by code from init.c
205 (get_root_key, read_w32_registry_string): Remove.
207 2010-01-20 Werner Koch <wk@g10code.com>
209 * src/init.c (gpg_err_init): Factor code out to ..
212 * src/Makefile.am (gpg_error_SOURCES): Remove arch_sources.
213 (export_symbols): Do not prefix gpg-error-def with srcdir.
215 2010-01-19 Werner Koch <wk@g10code.com>
217 * src/init.c (DllMain): Call _w32_gettext_init.
218 (get_tls): Use it also for standard Windows.
220 (struct tls_space_s): Move to ..
221 (get_tls): Make global.
222 * src/init.h: .. New.
223 * src/gettext.h: Do not include w32-gettext.h.
224 * src/w32-gettext.c: Replace by version from GnuPG.
225 (my_nl_locale_name) [W32CE]: Do not use getenv. Use
226 GetSystemDefaultLCID.
227 (struct loaded_domain): Use uint16_t for NSTRINGS and MAPPED to
229 (load_domain): Check for too large MO files.
230 (utf8_to_wchar): Use gpg_err_set_errno.
231 (bindtextdomain): Rename to _gpg_w32_bindtextdomain.
232 (textdomain): Rename to _gpg_w32_textdomain.
233 (gettext): Rename to _gpg_w32_gettext.
234 (dgettext): Rename to _gpg_w32_dgettext.
236 (gettext_localename): Rename to _gpg_w32_gettext_localename.
237 (gettext_select_utf8): Rename to _gpg_w32_gettext_use_utf8.
238 (_gpg_w32_bindtextdomain): Change to only register the directory.
239 Return the current directory if asked to.
240 (do_gettext): Add DOMAINNAME arg and take care of it.
241 * src/w32-add.h: New.
242 * src/w32-gettext.h: Remove.
243 * src/Makefile.am (extra-h.in): Process w32-add.h.
244 (arch_sources): Remove w32-gettext.h.
246 2010-01-18 Werner Koch <wk@g10code.com>
248 * src/init.c (wchar_to_utf8, utf8_to_wchar): New.
250 * src/gpg-error.c (main): Add option --list.
252 2010-01-18 Werner Koch <wk@g10code.com>
254 * ltmain.sh (wrappers_required): Don't set for mingw32ce.
256 * tests/Makefile.am (extra_includes): New.
257 * tests/t-syserror.c (main): Use gpg_err_set_errno.
259 * src/w32ce-add.h: New.
260 * src/Makefile.am (EXTRA_DIST): Add it
261 (extra-h.in): New rule
262 (gpg-error.h): Pass extra-h.in to mkheader.
263 * src/mkheader.awk (extra_body): New.
265 * src/gpg-error.c (get_err_from_number): Use gpg_err_set_errno.
267 * src/mkw32errmap.c: New
268 * src/gpg-error.def: Rename to ..
269 * src/gpg-error.def.in: .. this.
270 (_gpg_errno_location): New.
271 * src/init.c (struct tls_space_s, tls_index): New.
272 (get_tls, _gpg_errno_location, DllMain): New.
273 (read_w32_registry_string) [W32CE]: Don't expand envvars.
274 (_gpg_w32ce_strerror): New.
275 * src/Makefile.am (extra_headers, extra_cppflags): New.
276 (include_HEADERS): Add extra_headers. Prefix with nobase_.
277 (libgpg_error_la_CPPFLAGS, gpg_error_CPPFLAGS)
278 (mkerrcodes.h): Add extra_cppflags.
279 (RCCOMPILE): Replace libgpg_error_la_CPPFLAGS by direct inclusion
281 * configure.ac (HAVE_W32CE_SYSTEM): New AM_CONDITIONAL and
283 (GPG_ERROR_CONFIG_ISUBDIRAFTER): New.
284 * src/gpg-error-config.in <--libs>: Replace fixed -lgpg-error
287 <--cflags>: Take subst variable in account. Add idirafter stuff.
289 2009-10-26 Marcus Brinkmann <marcus@g10code.de>
291 * src/gpg-error.h.in (GPG_ERR_SOURCE_DIM): Reduce to 128.
293 2009-09-29 Werner Koch <wk@g10code.com>
295 * src/err-codes.h.in (GPG_ERR_NO_ENGINE): New.
297 2009-09-21 Werner Koch <wk@g10code.com>
299 * src/err-sources.h.in (GPG_ERR_SOURCE_G13): New.
301 2009-08-20 Werner Koch <wk@g10code.com>
303 * src/err-codes.h.in: s/octadecimal/octal/. Reported by Petr Pisar.
305 2009-07-23 Werner Koch <wk@g10code.com>
307 * src/err-codes.h.in: Add GPG_ERR_NOT_ENABLED.
309 2009-07-17 Marcus Brinkmann <marcus@g10code.de>
311 * src/mkerrnos.awk: Output code to cause WSA Errors to be found
312 from gpg error codes.
313 * README: Add problem of translating error codes back and forth.
315 * src/mkerrcodes1.awk: Output code to cause WSA Errors to be
316 transparently translated.
317 * src/code-from-errno.c [HAVE_W32_SYSTEM]: Don't include winsock2.h.
318 (w32_special_errnos) [HAVE_W32_SYSTEM]: Removed.
319 (gpg_err_code_from_errno) [HAVE_W32_SYSTEM]: Remove special case.
320 * README: Document problem with printing some WSA Errors.
322 2009-06-23 Marcus Brinkmann <marcus@g10code.de>
324 Update to libtool 2.2.6a.
325 * configure.ac: Invoke AC_CONFIG_MACRO_DIR.
326 (AC_LIBTOOL_WIN32_DLL, AC_LIBTOOL_RC): Replace by ...
327 (LT_PREREQ, LT_INIT, LT_LANG): ... these.
328 * config.guess, config.sub, install-sh, ltmain.sh, m4/libtool.m4:
329 Updated to libtool 2.2.6a.
330 * m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4,
331 m4/lt~obsolete.m4: New files from libtool 2.2.6a.
332 * src/Makefile.am (LTRCCOMPILE): Refactor with ...
333 (RCCOMPILE): ... this new macro. Add $(libgpg_error_la_CPPFLAGS).
335 (.rc.o): Change to ...
336 (.rc.lo): ... this implicit rule.
337 (gpg_error_res_ldflag): Removed.
338 (gpg_error_res): Use libtool object file name here.
339 (install-def-file): Fix typo.
340 (libgpg_error_la_LDFLAGS): Remove gpg_error_res_ldflag usage.
341 (libgpg_error_la_LIBADD): Add gpg_error_res.
343 2008-11-26 Werner Koch <wk@g10code.com>
347 * configure.ac: Set LT version to C5/A5/R0.
349 2008-11-12 Werner Koch <wk@g10code.com>
351 * src/err-codes.h.in: Add GPG_ERR_NO_PASSPHRASE and GPG_ERR_NO_PIN.
353 2008-11-08 Moritz <moritz@gnu.org>
355 * lang/cl/gpg-error.lisp ("gpg_err_code_from_syserror"): Fix
356 defcfun: removed "(void)".
358 * lang/cl/gpg-error.lisp (size-t): Wrong call to defctype:
359 function accepts optional, not keyword argument.
360 (gpg-error-t): Likewise.
362 2008-10-29 Marcus Brinkmann <marcus@g10code.de>
364 * src/mkstrtable.awk: Make generated code -W clean to silence gcc
367 2008-08-06 Werner Koch <wk@g10code.com>
369 * src/err-codes.h.in (GPG_ERR_NOT_OPERATIONAL): New.
371 2008-04-01 Werner Koch <wk@g10code.com>
373 * configure.ac (AC_INIT): Fix m4 quoting.
375 2007-12-11 Werner Koch <wk@g10code.com>
377 * Makefile.am (EXTRA_DIST): Add COPYING.
379 2007-10-29 Werner Koch <wk@g10code.com>
383 * configure.ac: Set LT version to C4/A4/R0.
385 * config.guess, config.sub: Updated.
387 * src/err-sources.h.in: (GPG_ERR_SOURCE_KLEO): New.
389 * w32-gettext.c (SUBLANG_BENGALI_BANGLADESH): Fix to 2 as per MSDN.
390 (SUBLANG_PUNJABI_PAKISTAN): Remove as it is not in MSDN.
391 (SUBLANG_ROMANIAN_MOLDOVA): Remove as it is not in MSDN.
392 (SUBLANG_ROMANIAN_ROMANIA): Change to value 1 as per MSDN.
394 2007-09-27 Marcus Brinkmann <marcus@g10code.de>
396 * src/Makefile.am (%.o): Replace pattern rule with suffix rule.
397 (SUFFIXES): New variable.
399 2007-09-27 Werner Koch <wk@g10code.com>
401 * src/err-sources.h.in (GPG_ERR_SOURCE_GPA): New.
402 * src/err-codes.h.in (GPG_ERR_UNFINISHED): New.
404 2007-08-03 Marcus Brinkmann <marcus@g10code.de>
406 * configure.ac: Call AM_PROG_CC_C_O. Allow --disable-languages.
407 * autogen.sh: Use = not == in test.
408 * lang/cl/Makefile.am: Do not use :=, but =.
409 * Makefile.am [!LANGUAGES_SOME]: Don't add lang to subdirs.
410 * m4/inttypes-h.m4, m4/lock.m4, m4/visibility.m4: New files.
412 2007-05-19 Marcus Brinkmann <marcus@g10code.de>
414 * lang/cl/gpg-error.lisp (gpg-err-source-t): Add
417 2007-06-18 Werner Koch <wk@g10code.com>
419 * src/code-from-errno.c (w32_special_errnos) [W32]: New. This is
420 to provide some common mappings for winsocket error codes.
421 (gpg_err_code_from_errno, gpg_err_code_from_syserror): Use it.
423 2007-05-09 Werner Koch <wk@g10code.com>
425 * src/gpg-error.m4: Print found version on success.
427 2006-12-09 Marcus Brinkmann <marcus@g10code.de>
429 * src/Makefile.am (EXTRA_DIST): Add README.
430 * src/README: New file.
432 2006-12-01 Marcus Brinkmann <marcus@g10code.de>
434 * src/gpg-error.c (get_err_from_number): Fix last change.
436 * src/gpg-error.c (get_err_from_number): Support source and code
437 number in split format like "7.17".
439 2006-11-30 Werner Koch <wk@g10code.com>
443 * configure.ac: Set LT version to C3/A3/R1.
445 * README: Switch to tar.bz2 and sha1sum.
447 * src/gpg-error.c (main): Add option --version.
449 * autogen.sh (FORCE): Add option --force.
452 * Makefile.am (SUBDIRS): Removed intl.
453 * configure.ac (AM_GNU_GETTEXT): Use external flag
454 * src/Makefile.am: Removed -I../intl.
456 2006-11-23 Werner Koch <wk@g10code.com>
458 * configure.ac: Display configuration status after AC_OUTPUT.
459 (AC_INIT): Use SVN revision magic.
460 (AC_GNU_SOURCE): New.
462 2006-11-23 gettextize <bug-gnu-gettext@gnu.org>
464 * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.15.
466 2006-11-15 Werner Koch <wk@g10code.com>
468 * autogen.sh: Add convenience option --build-amd64.
470 2006-10-20 Werner Koch <wk@g10code.com>
472 * Makefile.am (stowinstall): New convenience target.
474 2006-09-18 Werner Koch <wk@g10code.com>
476 * src/gpg-error.def: Added gpg_err_code_from_syserror.
478 2006-09-14 Werner Koch <wk@g10code.com>
482 * configure.ac: Set LT version to C3/A3/R0.
485 * autogen.sh (--build-w32): Better cross-compiler locating.
487 * src/strerror.c (system_strerror_r): Made static.
489 * tests/t-syserror.c: New.
490 * tests/Makefile.am (TESTS): Added new test.
492 * lang/cl/gpg-error.lisp ("gpg_err_code_from_syserror"): New.
493 (gpg-err-code-from-syserror): New.
494 (gpg-error-from-syserror): New.
495 * lang/cl/gpg-error-package.lisp: Export new functions
497 * src/gpg-error.h.in (gpg_error_from_syserror): New.
498 * src/code-from-errno.c (gpg_err_code_from_errno): Cosmetic change
499 to first check whether ERR is zero.
500 (gpg_err_code_from_syserror): New.
502 2006-09-06 Werner Koch <wk@g10code.com>
504 * src/err-codes.h.in: Add GPG_ERR_UNKNOWN_OPTION and
505 GPG_ERR_UNKNOWN_COMMAND.
507 2006-09-05 Werner Koch <wk@g10code.com>
509 * src/err-sources.h.in (GPG_ERR_SOURCE_ANY): New. This is so that
510 we have source distinguished from the Unknown one but declaring
511 that it is an gpg-error style error code.
513 * src/err-codes.h.in: Added GPG_ERR_ASS_* codes, rabnge 257-281.
514 (GPG_ERR_MISSING_ERRNO): New.
516 2006-07-04 Marcus Brinkmann <marcus@g10code.de>
518 * src/init.c (get_locale_dir): Return NULL instead of garbage.
519 * src/gpg-error.c (get_locale_dir): Likewise.
520 Reported by Simon Josefsson <jas@extundo.com>.
522 2006-05-30 Marcus Brinkmann <marcus@g10code.de>
524 * lang/cl/gpg-error.asd.in (gpg-error): Add "depends-on" on cffi.
526 2006-05-29 Marcus Brinkmann <marcus@g10code.de>
528 * src/init.c (gpg_err_init) [!ENABLE_NLS]: Do not initialize the
530 * src/gpg-error.c (i18n_init) [!ENABLE_NLS]: Likewise.
531 Patch submitted by Nils Durner <ndurner@web.de>.
533 2006-05-25 Marcus Brinkmann <marcus@g10code.de>
535 * lang/cl/gpg-error.asd: Renamed to ...
536 * lang/cl/gpg-error.asd.in: ... this.
537 * configure.ac (AC_CONFIG_FILES): Add lang/cl/gpg-error.asd.in.
539 * lang/cl/mkerrcodes.awk, lang/cl/gpg-error-package.lisp,
540 lang/cl/gpg-error.lisp, lang/cl/gpg-error.asd, lang/cl/Makefile.am
541 (clfilesdir): Fix package and file names.
543 * lang/cl/Makefile.am (clfilesdir): Use datadir, not prefix.
545 2006-05-05 Marcus Brinkmann <marcus@g10code.de>
547 * configure.ac (AC_CONFIG_FILES): Add lang/Makefile and
549 * Makefile.am (SUBDIRS): Add lang.
550 * lang: New directory.
551 * lang/README, lang/Makefile.am: New files.
552 * lang/cl: New directory.
553 * lang/cl/Makefile.am, lang/cl/README, lang/cl/gpg-error.asd,
554 lang/cl/gpg-error-package.lisp, lang/cl/gpg-error.lisp,
555 lang/cl/mkerrcodes.awk: New files.
557 2006-03-14 Marcus Brinkmann <marcus@g10code.de>
561 * configure.ac (LIBGPG_ERROR_LT_REVISION): Bump for release.
563 Many files regenerated.
564 * src/Makefile.am (gpg_error_CPPFLAGS, libgpg_error_la_CPPFLAGS):
566 * Makefile.am (SUBDIRS): Add intl.
567 * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
568 (AM_GNU_GETTEXT_VERSION): Bump to 0.14.5.
570 2006-03-06 Marcus Brinkmann <marcus@g10code.de>
572 * configure.ac (min_automake_version): Bump to 1.9.6.
573 * mkinstalldirs, depcomp, compile, INSTALL, COPYING, missing,
574 install-sh: Update from automake 1.9.6.
575 ltmain.sh: Update from libtool 1.5.22.
577 2006-03-03 Marcus Brinkmann <marcus@g10code.de>
579 * configure.ac (LIBGPG_ERROR_LT_CURRENT, LIBGPG_ERROR_LT_AGE):
581 (LIBGPG_ERROR_LT_REVISION): Reset to 0 for release.
583 2005-11-02 Werner Koch <wk@g10code.com>
585 * src/Makefile.am (gpg_error_SOURCES): Include ARCH_SOURCES.
586 * src/gpg-error.c [W32]: Include gettext.h instead of libintl.h.
588 * configure.ac (AH_BOTTOM): Define ENABLE_NLS for W32 builds.
589 * src/w32-gettext.h (dgettext): Changed prototype from
591 * src/w32-gettext.c: Replaced use of WIN32 by HAVE_W32_SYSTEM on
592 demand of the holy GNUquisition.
593 (bindtextdomain, textdomain, dgettext): Need to cast the const way
594 from the return value.
596 2005-10-26 Werner Koch <wk@g10code.com>
598 * Makefile.am: Used dist-bzip2 option.
600 2005-10-25 Marcus Brinkmann <marcus@g10code.de>
602 * src/w32-gettext.c (get_string): Remove extra arguments to
603 utf8_to_native_invocation.
604 (utf8_to_wchar, wchar_to_native): New function.
605 (utf8_to_native): Rewritten.
607 * src/Makefile.am (gpg_error_CPPFLAGS): New variable.
608 * src/gpg-error.c (i18n_init): Don't return anything.
610 * src/Makefile.am (arch_sources): New variable.
611 (libgpg_error_la_SOURCES): Add $(arch_sources).
612 * src/gettext.h [HAVE_W32_SYSTEM]: Include w32-gettext.h.
613 * src/w32-gettext.h: New file.
614 * src/w32-gettext.c: New file.
615 * src/gpg-error.h.in: Check for gcc's constructor attribute.
616 Use it for gpg_err_init.
617 (GPG_ERR_INITIALIZED): Define if constructor is available.
618 * src/gpg-error.c (main) [GPG_ERR_INITIALIZED]: Don't invoke
620 (i18n_init): Call bindtextdomain as well. Now that gpg-error has
621 its own gettext implementation, we can't rely on it anymore.
622 Also, repeat all the w32 stuff for fetching the registry.
624 2005-10-23 Marcus Brinkmann <marcus@g10code.de>
626 * src/Makefile.am (libgpg_error_la_SOURCES): Add init.c.
627 * src/init.c: New file.
628 * src/gpg-error.h.in (gpg_error_init): New function.
629 * src/gpg-error.def: Add gpg_err_init.
630 * src/gpg-error.c: Remove SIMPLE_GETTEXT stuff.
631 (i18n_init): Don't bind text domain.
632 (main): Call gpg_err_init.
634 2005-10-20 Marcus Brinkmann <marcus@g10code.de>
636 * configure.ac: Instead checking for windres and dlltool, invoke
637 AC_LIBTOOL_WIN32_DLL and AC_LIBTOOL_RC.
638 * src/Makefile.am [HAVE_W32_SYSTEM]: Use libtool, which simplifies
641 2005-10-02 Marcus Brinkmann <marcus@g10code.de>
643 * configure.ac: Escape arguments in AC_INIT invocation.
644 * config.guess, config.sub, ltmain.sh: Update.
646 2005-08-19 Werner Koch <wk@g10code.com>
648 * configure.ac: Add code to allow building a W32 DLL.
649 * src/Makefile.am: Changed to allow building for W32.
650 * src/versioninfo.rc.in: New.
651 * src/gpg-error.def: New.
653 2005-06-20 Marcus Brinkmann <marcus@g10code.de>
657 * configure.ac: Bump up LIBGPG_ERROR_LT_REVISION, update version
660 2005-06-16 Marcus Brinkmann <marcus@g10code.de>
662 * src/mkerrcodes.awk: Fix comment. Allow any non-empty line to
663 start the processing, not only lines starting with numbers.
664 Reported by Guillaume Libersat <glibersat@hurdfr.org>.
666 2005-01-05 Marcus Brinkmann <marcus@g10code.de>
668 * configure.ac: Check for locale.h.
670 2005-04-20 Werner Koch <wk@g10code.com>
672 * src/err-codes.h.in: Add GPG_ERR_LOCKED.
674 2005-04-18 Werner Koch <wk@g10code.com>
676 * src/err-codes.h.in: Add GPG_ERR_UNKNOWN_EXTN and
677 GPG_ERR_UNKNOWN_CRIT_EXTN.
679 2004-12-18 Werner Koch <wk@g10code.com>
681 * autogen.sh: Add option --build-w32.
683 2004-09-14 Marcus Brinkmann <marcus@g10code.de>
685 * src/gpg-error.m4: Add copyright note.
687 * configure.ac: Call AC_CANONICAL_HOST. Suppress warning about
688 lack of strerror_r on all Solaris platforms.
690 2004-07-30 Werner Koch <wk@g10code.de>
694 * configure.ac: Bumbed version to 1.0, LT to C1/A1/R3.
696 2004-07-15 Werner Koch <wk@gnupg.org>
698 * src/err-codes.h.in: Renamed description for CARD_RESET.
700 2004-06-28 Werner Koch <wk@gnupg.org>
702 * src/err-codes.h.in: Add GPG_ERR_INV_REQUEST.
704 2004-06-08 Marcus Brinkmann <marcus@g10code.de>
706 * src/Makefile.am (mkerrcodes): Prefix mkerrcodes.c with $(srcdir)
709 2004-05-25 Marcus Brinkmann <marcus@g10code.de>
711 * src/err-codes.h.in: Add GPG_ERR_PROTOCOL_VIOLATION and
714 2004-04-23 Marcus Brinkmann <marcus@g10code.de>
716 * src/Makefile.am (mkerrcodes): Do not use $< in non-inference rule.
717 (code-from-errno.h): Likewise.
719 2004-04-22 Marcus Brinkmann <marcus@g10code.de>
721 * src/Makefile.am (gpg_error_CPPFLAGS): New variable.
722 (localedir): Likewise.
723 * gpg-error.c: Include the gettext headers.
724 (init_i18n): New function.
725 (main): Call init_i18n, gettextize messages.
727 2004-04-02 Thomas Schwinge <schwinge@nic-nac-project.de>
729 * autogen.sh: Added ACLOCAL_FLAGS.
731 2004-04-19 Marcus Brinkmann <marcus@g10code.de>
733 * src/gpg-error.m4: Quote first argument to AC_DEFUN.
735 * src/mkerrcodes.awk: Allow whitespace before expanded
736 preprocessor macro (ie, the error code value). Needed for Solaris 2.8.
738 2004-04-08 Moritz Schulte <moritz@g10code.de>
740 * src/gpg-error.c (main): Return zero on success.
742 2004-03-09 Marcus Brinkmann <marcus@g10code.de>
744 * libgpg-error.spec.in (%files): Add gpg-error. Submitted by
745 Albrecht Dreß <albrecht.dress@arcor.de>.
747 * src/mkerrcodes.c (main): Fix type of argv. Return something.
749 2004-03-09 Werner Koch <wk@gnupg.org>
751 * Makefile.am (dist-hook): Create a VERSION file for use by mkdiff.
753 * src/Makefile.am (mkerrcodes.h): Let CPP work on a temporary file.
754 (CLEANFILES): Add that temporary file.
755 * configure.ac (AC_PROG_CPP): Added.
757 * src/err-codes.h.in: Removed trailing spaces from
760 2004-03-08 Werner Koch <wk@gnupg.org>
762 * src/err-sources.h.in: Added GPG_ERR_SOURCE_GSTI.
764 2004-03-07 Marcus Brinkmann <marcus@g10code.de>
768 * configure.ac: Bumbed up LIBGPG_ERROR_LT_REVISON.
770 * src/gpg-error-config.in: Fix last change.
771 * src/gpg-error-config.in (Options): Do not emit include and lib
772 directory for prefix "/usr" or "".
774 * tests/Makefile.am (INCLUDES): Change to -I$(top_srcdir)/src to
777 2004-03-01 Marcus Brinkmann <marcus@g10code.de>
779 * configure.ac: Define CC_FOR_BUILD.
780 * src/Makefile.am (BUILT_SOURCES): Add gpg-error.h.
781 (EXTRA_DIST): Add mkerrcodes.awk and mkerrcodes.c.
782 (CLEANFILES): Add mkerrcodes.h and mkerrcodes.
783 (mkerrcodes.h): New target.
784 (mkerrcodes): New target.
785 (code-from-errno.h): Rewritten.
787 * src/errnos.in: Remove include statement (which was ignored
789 * src/mkerrcodes.awk: New file.
790 * src/mkerrcodes.c: New file.
792 2004-02-27 Marcus Brinkmann <marcus@g10code.de>
794 * src/Makefile.am (noinst_PROGRAMS): Rename to ...
795 (bin_PROGRAMS): ... this.
797 * src/gpg-error.h.in: Add extern "C" closure for C-- compilers.
799 * src/Makefile.am (noinst_PROGRAMS): New variable.
800 (gpg_error_LDADD): New variable.
801 (gpg_error_SOURCES): New variable.
802 (EXTRA_DIST): Add mkheader.awk and gpg-error.h.in.
803 (BUILT_SOURCES): Add err-sources-sym.h, err-codes-sym.h and
805 (CLEANFILES): Add err-sources-sym.h, err-codes-sym.h,
806 errnos-sym.h and gpg-error.h.
807 (err-codes.h, err-sources.h): Add -v textidx=3 to mkstrtable.awk
809 (err-codes-sym.h): New target.
810 (err-sources-sym.h): New target.
811 (gpg-error.h): New rule.
812 * src/mkstrtable.awk: Skip the second field (which contains the
814 (FS): Allow more than one tab as field separator.
815 Allow to specify the field to be used as text with the variable
817 Allow to suppress gettext markers in the output.
818 Allow to specify a prefix to the messages.
819 Allow to specify a namespace for the variable and macro names.
820 * src/mkerrnos.awk (FS): Initialize. Understand variable
821 errnoidx, which defaults to 2, to cope with the error names being
822 in a different column than the first.
823 * src/mkerrcodes1.awk: Likewise. Use \t as separator.
824 * src/mkheader.awk: New file.
825 * src/errnos.in: Add error code numbers (relativ to
826 GPG_ERR_SYSTEM_ERROR).
827 * src/strerror-sym.c: New file.
828 * src/strsources-sym.c: New file.
829 * src/err-codes.h.in: Add the error code symbol for every error
831 (GPG_ERR_BUFFER_TOO_SHORT): Fix error code (it is 200, not 199).
832 * src/err-sources.h.in: Likewise.
833 * src/gpg-error.h.in: New file.
834 * src/gpg-error.h: File removed.
835 * src/gpg-error.c: New file.
837 2004-02-18 Werner Koch <wk@gnupg.org>
839 * src/gpg-error-config.in: Ignore setting of --prefix.
841 2004-02-11 Werner Koch <wk@gnupg.org>
843 * autogen.sh (check_version): Removed bashism and simplified.
845 2004-02-03 Werner Koch <wk@gnupg.org>
847 * src/gpg-error.h: Added GPG_ERR_NOT_LOCKED.
849 2003-12-22 Werner Koch <wk@gnupg.org>
851 * src/gpg-error.h: Added GPG_ERR_LOCALE_PROBLEM.
853 2003-12-12 Werner Koch <wk@gnupg.org>
855 * src/err-codes.h.in: s/revoced/revoked/.
857 2003-12-08 Werner Koch <wk@gnupg.org>
859 * README.CVS: Enhanced.
862 * Makefile.am (EXTRA_DIST): Added autogen.sh.
864 2003-11-14 Werner Koch <wk@gnupg.org>
866 * configure.ac: Bumbed version number to 0.7.
870 * configure.ac: Bumbed up LIBGPG_ERROR_LT_REVISON.
872 2003-11-13 Werner Koch <wk@gnupg.org>
874 * src/gpg-error.h, src/err-codes.h.in: Removed: GPG_ERR_IO_ERROR,
875 GPG_ERR_FILE_ERROR, GPG_ERR_READ_ERROR, GPG_ERR_WRITE_ERROR,
878 * src/gpg-error.h (GPG_ERR_SOURCE_DIRMNGR): Fixed typo.
880 2003-11-12 Werner Koch <wk@gnupg.org>
882 * src/gpg-error.h, src/err-codes.h.in: Added these codes:
883 GPG_ERR_INV_ATTR, GPG_ERR_NO_VALUE, GPG_ERR_NOT_FOUND,
884 GPG_ERR_VALUE_NOT_FOUND, GPG_ERR_SYNTAX, GPG_ERR_INV_CRL,
885 GPG_ERR_BAD_BER, GPG_ERR_INV_BER, GPG_ERR_ELEMENT_NOT_FOUND,
886 GPG_ERR_IDENTIFIER_NOT_FOUND, GPG_ERR_INV_TAG, GPG_ERR_INV_LENGTH,
887 GPG_ERR_INV_KEYINFO, GPG_ERR_UNEXPECTED_TAG, GPG_ERR_NOT_DER_ENCODED,
888 GPG_ERR_NO_CMS_OBJ, GPG_ERR_INV_CMS_OBJ, GPG_ERR_UNKNOWN_CMS_OBJ,
889 GPG_ERR_UNSUPPORTED_CMS_OBJ, GPG_ERR_UNSUPPORTED_ENCODING,
890 GPG_ERR_UNSUPPORTED_CMS_VERSION, GPG_ERR_UNKNOWN_ALGORITHM,
891 GPG_ERR_ENCODING_PROBLEM, GPG_ERR_INV_STATE, GPG_ERR_DUP_VALUE,
892 GPG_ERR_MISSING_ACTION, GPG_ERR_MODULE_NOT_FOUND,
893 GPG_ERR_INV_OID_STRING, GPG_ERR_INV_TIME, GPG_ERR_INV_CRL_OBJ,
894 GPG_ERR_UNSUPPORTED_CRL_VERSION, GPG_ERR_INV_CERT_OBJ,
895 GPG_ERR_UNKNOWN_NAME, GPG_ERR_IO_ERROR, GPG_ERR_FILE_ERROR,
896 GPG_ERR_READ_ERROR, GPG_ERR_WRITE_ERROR, GPG_ERR_LOCK_ERROR,
897 GPG_ERR_BUFFER_TOO_SHORT.
899 2003-11-06 Werner Koch <wk@gnupg.org>
901 * src/gpg-error.h, src/err-sources.h.in: Added error sources for
902 Libksba and Dirmngr. Added GPG_ERR_TRUNCATED.
904 2003-11-03 Werner Koch <wk@gnupg.org>
906 * src/gpg-error.h: Allow GPG_ERR_INLINE to get overriden, so that
907 one can use the -D flag to specify the inline keyword. Suggested
910 2003-10-28 Moritz Schulte <mo@g10code.com>
912 * src/gpg-error.h (gpg_err_code_t): Added:
913 GPG_ERR_NO_ENCODING_METHOD, GPG_ERR_NO_ENCRYPTION_SCHEME,
914 GPG_ERR_NO_SIGNATURE_SCHEME.
915 * src/err-codes.h.in: Likewise.
917 2003-10-25 Werner Koch <wk@gnupg.org>
919 * src/strerror.c: Include stdio.h for snprintf
920 prototype. Suggested by papadopo@shfj.cea.fr, fixes #gnupg/214.
922 2003-10-11 Moritz Schulte <mo@g10code.com>
924 * src/gpg-error.m4: Do not ask gpg-error-config to change the
925 prefix, if --with-gpg-error-prefix=... is used.
927 2003-10-06 Marcus Brinkmann <marcus@g10code.de>
931 * configure.ac (LIBGPG_ERROR_LT_CURRENT, LIBGPG_ERROR_LT_AGE):
934 2003-09-30 Marcus Brinkmann <marcus@g10code.de>
936 * src/gpg-error.h: Include <stddef.h>.
937 (gpg_strerror_r): Change prototype to match POSIX. Rewritten for
939 * src/strerror.c: Include <errno.h>.
940 (gpg_strerror_r, system_strerror_r): Change prototype to match
941 POSIX. Rewritten for that prototype. Rewritten for that
944 2003-09-30 Werner Koch <wk@gnupg.org>
946 * src/gpg-error.h: Add PIN_NOT_SYNCED.
948 2003-09-13 Marcus Brinkmann <marcus@g10code.de>
950 * configure.ac: Invoke AC_FUNC_STRERROR_R.
951 * src/gpg-error.h (gpg_strerror_r): New prototype.
952 * src/strerror.c (system_strerror_r): New function.
953 (gpg_strerror_r): New function.
955 2003-09-04 Marcus Brinkmann <marcus@g10code.de>
957 * libgpg-error.spec.in: New file.
958 * Makefile.am (EXTRA_DIST): Add libgpg-error.spec.in.
959 * AUTHORS (Maintainer): Add Robert Schiele as contributor.
961 2003-09-03 Marcus Brinkmann <marcus@g10code.de>
963 * src/gpg-error-config.in: Rewritten.
965 2003-09-03 Marcus Brinkmann <marcus@g10code.de>
967 * configure.ac (AC_INIT): Bump up version number.
969 2003-09-03 Marcus Brinkmann <marcus@g10code.de>
973 * src/gpg-error.h: Define GPG_ERR_INLINE to nothing if the
974 compiler does not implement C99.
975 * configure.ac: (AC_INIT): Bump up version number.
977 2003-09-02 Moritz Schulte <mo@g10code.com>
979 * src/gpg-error.h (gpg_err_code_t): Added: GPG_ERR_NO_PRIME.
980 * src/err-codes.h.in: Likewise.
982 2003-08-19 Marcus Brinkmann <marcus@g10code.de>
984 * src/gpg-error.h (GPG_ERR_SYSTEM_ERROR): Fix value (should have
985 been 2^15, was 2^14).
986 (GPG_ERR_CODE_DIM): Fix value (should have been 65536, was 32768).
987 Change the error codes of all system errors to have the
988 GPG_ERR_SYSTEM_ERROR bit set.
990 2003-08-06 Marcus Brinkmann <marcus@g10code.de>
992 * code-from-errno.c, code-to-errno.c, err-codes.h.in,
993 err-sources.h.in, errnos.in, gpg-error.h, strerror.c, strsource.c:
994 Fix typo in copyright notice.
996 2003-07-31 Marcus Brinkmann <marcus@g10code.de>
998 * README: Clarify copyright conditions.
999 * src/mkstrtable.awk: Don't claim in the copyright information
1000 that this program is part of libgpg-error.
1001 * src/mkerrnos.awk: Likewise.
1002 * src/mkerrcodes1.awk: Likewise.
1003 * src/mkerrcodes2.awk: Likewise.
1005 2003-07-31 Marcus Brinkmann <marcus@g10code.de>
1007 * src/strerror.c (gpg_strerror): Use CODE, not ERR to map error
1010 * configure.ac (AC_INIT): Bump version to 0.3.
1014 2003-07-30 Marcus Brinkmann <marcus@g10code.de>
1016 * configure.ac (AC_INIT): Bump version to 0.2.
1020 2003-07-17 Werner Koch <wk@gnupg.org>
1022 * src/gpg-error.h: Add HARDWARE, PIN_BLOCKED and USE_CONDITIONS.
1024 2003-07-16 Moritz Schulte <moritz@g10code.com>
1026 * src/gpg-error.h (gpg_err_code): Cast return value to
1027 gpg_err_code_t. Thanks to Ralf Schneider
1028 <ralf@tapfere-schneiderleins.de>.
1029 (gpg_err_source): Cast return value to gpg_err_source_t. Thanks
1030 to Ralf Schneider <ralf@tapfere-schneiderleins.de>.
1032 2003-07-15 Moritz Schulte <moritz@g10code.com>
1034 * src/gpg-error.m4 (AM_PATH_GPG_ERROR): Use `0.0' instead of
1035 `0.0.0' in case no version number is given, since the following
1036 sed commands expect the former form, not a triplet.
1038 2003-07-06 Marcus Brinkmann <marcus@g10code.de>
1040 * src/gpg-error.h (GPG_ERR_INLINE): Define macro. Use it instead
1041 of __inline__ in this file.
1043 2003-06-30 Werner Koch <wk@gnupg.org>
1045 * src/gpg-error.h: Add WRONG_CARD.
1047 2003-06-22 Marcus Brinkmann <marcus@g10code.de>
1049 * src/gpg-error.h: Fix value of GPG_ERR_CANCELED.
1051 2003-06-06 Marcus Brinkmann <marcus@g10code.de>
1053 * configure.ac: Define GPG_ERROR_CONFIG_LIBS and
1054 GPG_ERROR_CONFIG_CFLAGS.
1055 Add src/gpg-error-config to config files.
1056 * src/Makefile.am (EXTRA_DIST): Add gpg-error-config.in and
1058 (bin_SCRIPTS): New variable.
1059 (m4datadir, m4data_DATA): New variables.
1060 * src/gpg-error-config.in: New file.
1061 * src/gpg-error.m4: New file.
1065 2003-06-05 Marcus Brinkmann <marcus@g10code.de>
1067 * src/gpg-error.h (gpg_err_make_from_errno): Fix implementation.
1069 * src/gpg-error.h (gpg_err_code_t): Add GPG_ERR_SIG_EXPIRED.
1070 (err-codes.h.in): Likewise.
1072 * src/gpg-error.h (gpg_error_from_errno): Change return type to
1075 2003-06-04 Marcus Brinkmann <marcus@g10code.de>
1077 * src/gpg-error.h (gpg_err_code_t): Add GPG_ERR_INV_ENGINE,
1078 GPG_ERR_PUBKEY_NOT_TRUSTED, GPG_ERR_DECRYPT_FAILED,
1079 GPG_ERR_KEY_EXPIRED.
1080 (gpg_make_error): Rename to gpg_err_make.
1081 (gpg_error): Use here.
1082 * tests/t-strerror.c (main): And here.
1083 (gpg_make_error_from_errno): Rename to gpg_err_make_from_errno.
1085 * src/gpg-error.h (gpg_make_error_from_errno): New inline function.
1086 (gpg_error_from_errno): Likewise.
1088 * src/code-from-errno.c (gpg_err_code_from_errno): Handle the case
1091 2003-06-04 Marcus Brinkmann <marcus@g10code.de>
1093 * src/gpg-error.h (gpg_err_source_t): Add GPG_ERR_SOURCE_USER_1 to
1094 GPG_ERR_SOURCE_USER_4.
1095 (gpg_err_code_t): Add GPG_ERR_USER_1 to GPG_ERR_USER_16.
1096 * src/err-sources.h.in: Likewise.
1097 * src/err-codes.h.in: Likewise.
1099 * src/gpg-error.h: Rename GPG_ERR_INVALID_RESPONSE to
1100 GPG_ERR_INV_RESPONSE, GPG_ERR_INVALID_CARD to GPG_ERR_INV_CARD,
1101 GPG_ERR_INVALID_INDEX to GPG_ERR_INV_INDEX, GPG_ERR_INVALID_ID to
1102 GPG_ERR_INV_ID, GPG_ERR_AGENT_ERROR to GPG_ERR_AGENT,
1103 GPG_ERR_ASSUAN_ERROR to GPG_ERR_ASSUAN, GPG_ERR_PIN_ENTRY_ERROR to
1104 GPG_ERR_PIN_ENTRY, GPG_ERR_DIRMNGR_ERROR to GPG_ERR_DIRMNGR,
1105 GPG_ERR_CARD_ERROR to GPG_ERR_CARD, GPG_ERR_CONFIGURATION_ERROR to
1106 GPG_ERR_CONFIGURATION, GPG_ERR_SCDAEMON_ERROR to GPG_ERR_SCDAEMON.
1108 2003-06-03 Werner Koch <wk@gnupg.org>
1110 * src/gpg-error.h, src/err-codes.h.in: Add codes for TIMEOUT,
1111 INV_HANDLE, NOTHING_FOUND, WRONG_BLOB_TYPE and MISSING_VALUE.
1112 * src/gpg-error.h, src/err-sources.h.in: Add KEYBOX which is the
1113 keybox subsystem of GnuPG.
1115 2003-06-02 Moritz Schulte <moritz@g10code.com>
1117 * src/gpg-error.h: Fix description of gpg_err_code_to_errno
1118 (i.e. substitute `ERR' with `CODE').
1119 * src/code-to-errno.c: Likewise.
1121 * tests/t-strerror.c: Include <gpg-error.h> instead of
1124 2003-06-01 Marcus Brinkmann <marcus@g10code.de>
1126 * src/strerror.c: Include <string.h>.
1128 * src/gpg-error.h (gpg_err_code_t): Remove GPG_ERR_FILE_READ,
1129 GPG_ERR_FILE_WRITE, GPG_ERR_FILE_OPEN, GPG_ERR_FILE_CREATE,
1130 GPG_ERR_FILE_CLOSE, GPG_ERR_FILE_DELETE, GPG_ERR_FILE_EXISTS,
1131 GPG_ERR_FILE, GPG_ERR_IO, GPG_ERR_OUT_OF_CORE, GPG_ERR_READ_ERROR,
1132 GPG_ERR_WRITE_ERROR.
1133 * src/err-codes.h.in: Likewise.
1135 * src/Makefile.am (EXTRA_DIST): Add err-sources.h and err-codes.h.
1137 * src/mkerrcodes1.awk: New file.
1138 * src/mkerrcodes2.awk: New file.
1139 * src/mkerrnos.awk: New file.
1140 * src/errnos.in: New file.
1141 * src/code-from-errno.c: New file.
1142 * src/code-to-errno.c: New file.
1143 * src/Makefile.am (libgpg_error_la_SOURCES): Remove err-sources.h
1144 and err-codes.h. Add code-to-errno.c and code-from-errno.c.
1145 (code-to-errno.h): New target.
1146 (code-from-errno.h): Likewise.
1147 (EXTRA_DIST): Add mkerrnos.awk, errnos.in, and mkerrcodes1.awk.
1148 (BUILT_SOURCES): Add code-to-errno.h and code-from-errno.h.
1149 (CLEANFILES): Likewise.
1150 * src/strerror.c (gpg_strerror): Use strerror for system errors.
1151 * src/err-codes.h.in: Add 16382 (Unknown system error).
1152 * src/gpg-error.h (gpg_err_code_t): Add system errors.
1153 (GPG_ERR_CODE_DIM): Change to 32768.
1154 (GPG_ERR_SYSTEM_ERROR): New macro.
1155 (gpg_err_code_from_errno): New prototype.
1156 (gpg_err_code_to_errno): Likewise.
1158 * src/Makefile.am (nobase_include_HEADERS): Rename target to ...
1159 (include_HEADERS): ... this. Change file to gpg-error.h
1160 (libgpg_error_la_SOURCES): Change gpg/error.h to gpg-error.h.
1161 * src/gpg/error.h: Move to ...
1162 * src/gpg-error.h: ... here. New file.
1163 * src/strerror.c: Include <gpg-error.h>, not <gpg/error.h>.
1164 * src/strsource.c: Likewise.
1166 * src/gpg/error.h (gpg_error_t): Change type to unsigned int, not
1169 2003-05-26 Marcus Brinkmann <marcus@g10code.de>
1171 * src/gpg/error.h (gpg_make_error): Only OR in the error source if
1172 there is an error, this allows to test for success with "if (!err)"
1175 2003-05-15 Marcus Brinkmann <marcus@g10code.de>
1177 * src/mkstrtable.awk: Add exception clause to license about the
1178 output of the script.
1179 * configure.ac: Change license to LGPL 2.1 or later.
1180 * Makefile.am: Likewise.
1181 * src/Makefile.am: Likewise.
1182 * src/err-codes.h.in: Likewise.
1183 * src/err-sources.h.in: Likewise.
1184 * src/strsource.c: Likewise.
1185 * src/strerror.c: Likewise.
1186 * src/gpg/error.h: Likewise.
1187 * tests/Makefile.am: Likewise.
1189 * src/mkstrtable.awk: New variable HEADER. Copy input until first
1190 line with an actual code and description occurs.
1191 * src/err-codes.h.in: Uncomment license, so it is copied into the
1193 * src/err-sources.h.in: Likewise.
1195 2003-05-15 Marcus Brinkmann <marcus@g10code.de>
1197 * COPYING.LIB: New file.
1199 2003-05-15 Marcus Brinkmann <marcus@g10code.de>
1203 Copyright 2003, 2004, 2005, 2006, 2007, 2010, 2011 g10 Code GmbH
1205 This file is free software; as a special exception the author gives
1206 unlimited permission to copy and/or distribute it, with or without
1207 modifications, as long as this notice is preserved.
1209 This file is distributed in the hope that it will be useful, but
1210 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
1211 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.