aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg-error.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add commands mkdir and chdir to gpg-errorWerner Koch2025-04-241-32/+62
| | | | | | | | * src/gpg-error.c (main): Add new commands mkdir and chdir. Allow for commands w/o dashes. -- Again some more or less useful stuff for testing on Windows.
* Add command --fopen to gpg-error to help testingWerner Koch2025-04-161-2/+22
| | | | | | | | | | * src/gpg-error.c (main): Implement command --fopen. Also ignore log file settings from the Registry. -- To test estream functions it is useful to have commands to run some of them. Here we use gpgrt_fopen (fname, "r,sysopen") for the --fopen command.
* Update the copyright notice.Werner Koch2025-04-071-1/+1
| | | | | * configure.ac (GPGRT_STD_COPYRIGHT_LINE): New. * src/gpg-error.c (my_strusage): Use it here.
* New Windows API gpgrt_w32_reg_get_string.Werner Koch2024-12-121-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | * src/w32-reg.c (_gpgrt_w32_reg_query_string): Implement a prefix for root and consider an empty string for root also HKCU. * src/visibility.c (gpgrt_w32_reg_get_string): New. * src/gpg-error.def.in: Add new function. * src/gpg-error.c (my_strusage): Print the Windows version (32 or 64 bit) of the binary. (main): New command --getreg. -- This function is already used internally and we have a similar function in GnuPG. It is much more convenient to work with this function. Also we can now pass the KEY_WOW64_32KEY andKEY_WOW64_64KEY flags to the registry read functions. For example !32key!HKLM\software\gnu\gnupg:ntdskeyserver returns the value using the KEY_WOW64_32KEY flag; likewise for !64key!. If !cross! is used the reversed flag of the binary type is used.
* Make --lib-version work again.Werner Koch2020-08-051-3/+36
| | | | | | | | | | | * src/gpg-error.c (main): Add printing code. -- This was lost while changing to the included option parser back in 2018. The new code also does some prettying of the output. Fixes-commit: 11ce9bc3d6fe75859e18112824ae7ec3ca0fc8df Signed-off-by: Werner Koch <[email protected]>
* tools: Allow error symbol lookup w/o the GPG_ERR_ prefix.Werner Koch2020-02-061-0/+71
| | | | | | | | | | | * src/gpg-error.c (get_err_from_codesymbol): New. (main): Use it here. -- Saves lot of typing for example when looking up an error description using --desc. Signed-off-by: Werner Koch <[email protected]>
* Fix gpg-error.c for preprocessor use.NIIBE Yutaka2019-09-241-4/+4
| | | | | | | | | * src/gpg-error.c (main): Fix conditional compilation. -- Reported-by: Rey Abeleda <[email protected]> Signed-off-by: NIIBE Yutaka <[email protected]>
* Release 1.34libgpg-error-1.34gpgrt-1.34Werner Koch2019-01-161-1/+1
| | | | | | * configure.ac: Bump LT version to C26/A26/R0. Signed-off-by: Werner Koch <[email protected]>
* Add W32-only function gpgrt_w32_override_locale.Werner Koch2018-12-071-3/+35
| | | | | | | | | | | | * src/w32-gettext.c (struct override_locale): new. (my_nl_locale_name): Take care of that. (gpgrt_w32_override_locale): New. * src/gpg-error.def.in: Add gpgrt_w32_override_locale. * src/gpg-error.c: New command --locale for Windows. -- GnuPG-bug-id: 3733 Signed-off-by: Werner Koch <[email protected]>
* Remove leftover debug output from gpg-error.Werner Koch2018-07-051-1/+0
| | | | | | | | | * src/gpg-error.c (main): Remove a log_debug. -- Also a few typo fixes. Signed-off-by: Werner Koch <[email protected]>
* tools: Use gpgrt_argparse for the gpg-error tool.Werner Koch2018-03-211-67/+60
| | | | | | | | * src/gpg-error.c (show_usage): Remove. (my_strusage): New. (main): Change to use argparse. Also use log_error. Signed-off-by: Werner Koch <[email protected]>
* Fix NULL segv in new option --descWerner Koch2016-12-021-0/+3
| | | | | | * src/gpg-error.c (print_desc): Shortcur for unknown symbols. Signed-off-by: Werner Koch <[email protected]>
* New option --desc for gpg-error.Werner Koch2016-12-021-45/+163
| | | | | | | | | | | | | | | * doc/errorref.txt: Remove all tabs. * doc/Makefile.am (install-data-local): New to install errorref.txt. (uninstall-local): New. (errorref.txt.x): New. * src/Makefile.am (gpg_error_CPPFLAGS): Define PKGDATADIR * src/gpg-error.c (print_desc): New. (show_usage): New. (main): Improve option parser. Add new option --desc. Call print_desc. -- Signed-off-by: Werner Koch <[email protected]>
* Add option --lib-version to the gpg-error tool.Werner Koch2015-07-271-4/+14
| | | | * src/gpg-error.c (main): Add new option.
* Add option --defines to gpg-error.Werner Koch2015-03-191-17/+75
| | | | | | * src/gpg-error.c (main): Add option --help and --defines. Signed-off-by: Werner Koch <[email protected]>
* Avoid false warning about uninitialized var.Werner Koch2015-01-051-1/+1
| | | | * src/gpg-error.c (get_err_from_str): Init SAVED_CHAR.
* Export missing init functions.Werner Koch2014-08-261-16/+12
| | | | | | | | | | | | | | | | | * src/gpg-error.h.in (gpgrt_init): New macro. (gpgrt_check_version): New prototype. * src/init.c (_gpg_err_init): Rename from gpg_err_init. (_gpg_err_deinit): Rename from gpg_err_deinit. * src/visibility.c (gpg_err_init): New. (gpg_err_deinit): New. (gpgrt_check_version): New. * src/gpg-error.vers (gpg_err_init, gpg_err_deinit): Add missing symbols. (gpgrt_check_version): New. * src/gpg-error.def.in (gpg_err_init, gpg_err_deinit): Add missing symbols. (gpgrt_check_version): New. * src/gpg-error.c (main): Use gpgrt_init macro.
* Fix for W32CE.Werner Koch2010-10-201-0/+6
|
* Finished W32CE support.Werner Koch2010-01-211-146/+53
|
* Fix w32ce strerror.Werner Koch2010-01-181-4/+36
| | | | | Fix non-w32ce dependency problem.
* Add some code to build nativley under WindowsCE - not finished.Werner Koch2010-01-181-2/+8
|
* 2006-12-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-12-011-2/+2
| | | | | * src/gpg-error.c (get_err_from_number): Fix last change.
* 2006-12-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-12-011-2/+14
| | | | | | * src/gpg-error.c (get_err_from_number): Support source and code number in split format like "7.17".
* * configure.ac: Set LT version to C3/A3/R1.libgpg-error-1.5Werner Koch2006-11-301-1/+9
| | | | | | | | | | | | | | | * README: Switch to tar.bz2 and sha1sum. * src/gpg-error.c (main): Add option --version. * autogen.sh (FORCE): Add option --force. * intl/: Removed. * Makefile.am (SUBDIRS): Removed intl. * configure.ac (AM_GNU_GETTEXT): Use external flag * src/Makefile.am: Removed -I../intl.
* 2006-07-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-07-041-2/+2
| | | | | | | * src/init.c (get_locale_dir): Return NULL instead of garbage. * src/gpg-error.c (get_locale_dir): Likewise. Submitted by Simon Josefsson <[email protected]>.
* 2006-05-29 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-05-291-2/+2
| | | | | | | | * src/init.c (gpg_err_init) [!ENABLE_NLS]: Do not initialize the locale. * src/gpg-error.c (i18n_init) [!ENABLE_NLS]: Likewise. Patch submitted by Nils Durner <[email protected]>.
* Changes for building on W32 without needing libintl.Werner Koch2005-11-021-0/+4
|
* 2005-10-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-10-251-2/+0
| | | | | | * src/Makefile.am (gpg_error_CPPFLAGS): New variable. * src/gpg-error.c (i18n_init): Don't return anything.
* 2005-10-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-10-251-20/+200
| | | | | | | | | | | | | | | | | | * src/Makefile.am (arch_sources): New variable. (libgpg_error_la_SOURCES): Add $(arch_sources). * src/gettext.h [HAVE_W32_SYSTEM]: Include w32-gettext.h. * src/w32-gettext.h: New file. * src/w32-gettext.c: New file. * src/gpg-error.h.in: Check for gcc's constructor attribute. Use it for gpg_err_init. (GPG_ERR_INITIALIZED): Define if constructor is available. * src/gpg-error.c (main) [GPG_ERR_INITIALIZED]: Don't invoke gpg_err_init. (i18n_init): Call bindtextdomain as well. Now that gpg-error has its own gettext implementation, we can't rely on it anymore. Also, repeat all the w32 stuff for fetching the registry.
* 2005-10-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-10-231-30/+23
| | | | | | | | | | | * src/Makefile.am (libgpg_error_la_SOURCES): Add init.c. * src/init.c: New file. * src/gpg-error.h.in (gpg_error_init): New function. * src/gpg-error.def: Add gpg_err_init. * src/gpg-error.c: Remove SIMPLE_GETTEXT stuff. (i18n_init): Don't bind text domain. (main): Call gpg_err_init.
* 2004-04-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-04-221-2/+48
| | | | | | | | | * src/Makefile.am (gpg_error_CPPFLAGS): New variable. (localedir): Likewise. * gpg-error.c: Include the gettext headers. (init_i18n): New function. (main): Call init_i18n, gettextize messages.
* 2004-04-08 Moritz Schulte <[email protected]>Moritz Schulte2004-04-081-0/+2
| | | | | * src/gpg-error.c (main): Return zero on success.
* Fix copyright year.Marcus Brinkmann2004-03-071-1/+1
|
* 2004-02-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-02-271-0/+260
* src/Makefile.am (noinst_PROGRAMS): New variable. (gpg_error_LDADD): New variable. (gpg_error_SOURCES): New variable. (EXTRA_DIST): Add mkheader.awk and gpg-error.h.in. (BUILT_SOURCES): Add err-sources-sym.h, err-codes-sym.h and errnos-sym.h. (CLEANFILES): Add err-sources-sym.h, err-codes-sym.h, errnos-sym.h and gpg-error.h. (err-codes.h, err-sources.h): Add -v textidx=3 to mkstrtable.awk invocation. (err-codes-sym.h): New target. (err-sources-sym.h): New target. (gpg-error.h): New rule. * src/mkstrtable.awk: Skip the second field (which contains the error code symbol). (FS): Allow more than one tab as field separator. Allow to specify the field to be used as text with the variable textidx. Allow to suppress gettext markers in the output. Allow to specify a prefix to the messages. Allow to specify a namespace for the variable and macro names. * src/mkerrnos.awk (FS): Initialize. Understand variable errnoidx, which defaults to 2, to cope with the error names being in a different column than the first. * src/mkerrcodes1.awk: Likewise. Use \t as separator. * src/mkheader.awk: New file. * src/errnos.in: Add error code numbers (relativ to GPG_ERR_SYSTEM_ERROR). * src/strerror-sym.c: New file. * src/strsources-sym.c: New file. * src/err-codes.h.in: Add the error code symbol for every error code. (GPG_ERR_BUFFER_TOO_SHORT): Fix error code (it is 200, not 199). * src/err-sources.h.in: Likewise. * src/gpg-error.h.in: New file. * src/gpg-error.h: File removed. * src/gpg-error.c: New file.