summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 1.17.libgpg-error-1.17Werner Koch2014-10-153-13/+16
| | | | * configure.ac: Set LT version to C13/A13/R0.
* po: Auto-updateWerner Koch2014-10-1514-0/+1399
| | | | --
* doc: Add a man page for gpg-error-config.Werner Koch2014-10-1511-3/+11882
| | | | | | | | | | | | * doc/gpgrt.texi: New. Just a start for now. * doc/gpl.texi, doc/lgpl.texi: New. Take from Libgcrypt. * doc/yat2m.c: New. Take from GnuPG master. * doc/Makefile.am: New. * configure.ac (AC_CONFIG_FILES): Add doc/Makefile. * Makefile.am (SUBDIRS): Add doc/. * build-aux/mdate-sh, build-aux/texinfo.tex: New. Signed-off-by: Werner Koch <wk@gnupg.org>
* Fix to help building native on Windows.Werner Koch2014-10-152-3/+10
| | | | | | | | | | | | * configure.ac (FORCE_USE_SYSCFG): New am_conditional. * src/Makefile.am: Use new conditional to decide whether to build the native lock object header. -- This should help to build using msys2 and mingw. GnuPG-bug-id: 1717 Signed-off-by: Werner Koch <wk@gnupg.org>
* Change gpgrt_pending{,_unlocked} to macros.Werner Koch2014-10-037-21/+30
| | | | | | | | | | | | | | | | | | | | * src/gpg-error.h.in (gpgrt_pending): Change to a macro. (gpgrt_pending_unlocked): Change to a macro. (_gpgrt_pending, _gpgrt_pending_unlocked): New private functions. * src/visibility.c, src/visibility.h: Change accordingly. * src/gpg-error.vers, src/gpg-error.def.in: Ditto. * src/estream.c (_gpgrt_pending_unlocked): Rename to _gpgrt__pending_unlocked. (_gpgrt_pending): Rename to _gpgrt__pending. -- The function are supposed to be used with gprt_getc and thus we need to avoid the function call overhead. We may want to change them to inline functions, though. gpgrt_pending is changed to a macro with the idea that we eventually can export the samestream flags and thus avoid the function call overhead in the samethread case too.
* w32: Make it build again.Werner Koch2014-10-021-1/+1
| | | | * src/estream.c (es_func_w32_read): Fix var name.
* build: Support SYSROOT based config script finding.Werner Koch2014-10-021-7/+26
| | | | | | | * src/gpg-error.m4: Add support for SYSROOT and set gpg_config_script_warn. Use AC_PATH_PROG instead of AC_PATH_TOOL because the config script is not expected to be installed with a prefix for its name.
* Add GPG_ERR_BOGUS_STRING and an experimental gpgrt_pending.Werner Koch2014-10-0210-7/+160
| | | | | | | | | * src/visibility.c (gpgrt_pending, gpgrt_pending_unlocked): New. * src/estream.c (_gpgrt_pending, _gpgrt_pending_unlocked): New. (check_pending): new. (check_pending_fbf, check_pending_nbf): New. (es_func_mem_read, es_func_fd_read, es_func_w32_read) (es_func_fp_read, es_fill): Take care of the special 0 value for SIZE.
* GNU calls little-endian powerpc64 powerpc64le, not powerpc64elDaniel Kahn Gillmor2014-09-292-1/+1
| | | | | | | | | | | | | | | | | * src/Makefile.am (lock_obj_pub): fix powerpc64el to powerpc64le * src/sysconfig/lock-obj-pub.powerpc64el-unknown-linux-gnu.h : move to src/sysconfig/lock-obj-pub.powerpc64le-unknown-linux-gnu.h -- 33e5504fbb5e5e2ff44023c0a22dfb668ff8b10f created lock-obj-pub for little-endian powerpc64, but misnamed the patch file as powerpc64el instead of powerpc64le. Sorry for the earlier mistake, this should correct it. See commentary from Helmut Grohne at https://bugs.debian.org/762322#34 Debian-bug-id: 762322
* Update error reference.Werner Koch2014-09-291-11/+156
| | | | --
* Add error codes for use by a TLS library.Werner Koch2014-09-293-4/+55
|
* Add DCO policy statement.Werner Koch2014-09-241-0/+9
| | | | | | | | | | -- Which is: We do not collect DCOs for libgpg-error. As a supporting library for GnuPG, Libgcrypt, and GPGME a DCO for any of these projects is sufficient.
* Allow ./configure to explicitly set libgpg-error's build timestampDaniel Kahn Gillmor2014-09-242-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: add --enable-build-timestamp -- A group within Debian is working on making the archive rebuildable in a reproducible way, so that the compiled binary outputs are byte-for-byte identical when built for the same platform using the same toolchain. This is useful in providing auditability and corroboration for users of the operating system. libgpg-error is very close to reproducible except for embedding the build timestamp in the generated binary. This timestamp is set in config.h during ./configure. This patch allows an external build system to set this embedded timestamp explicitly, which appears to make the package build repeatably when ./configure is called with (for example) --enable=build-timestamp=2014-09-23T01:02+0000 Debian-bug-id: 762397 (Minor reformatting and NEWS entry by wk.)
* Add new error source GPG_ERR_SOURCE_TLS.Werner Koch2014-09-242-0/+8
|
* Add new lock-obj-pub for sparc64-unknown-linux-gnu.Daniel Kahn Gillmor2014-09-232-0/+26
| | | | | | | | | | | | | | | | * src/syscfg/lock-obj-pub.sparc64-unknown-linux-gnu.h: New. * src/Makefile.am (lock_obj_pub): Add. -- Helmut Grohne writes: Julien Cristau pointed out that sparc porter machines run 64bit kernels and can execute 64bit executables. So here we go. I crossed gen-posix-lock-obj for sparc64, verified that it is indeed a 64bit executable and attach its output. Debian-bug-id: 762322
* Add new lock-obj-pub for powerpc64el-unknown-linux-gnu.Daniel Kahn Gillmor2014-09-232-0/+26
| | | | | | | | | | | | * src/syscfg/lock-obj-pub.powerpc64el-unknown-linux-gnu.h: New. * src/Makefile.am (lock_obj_pub): Add. -- Here is a arch-specific lock-obj header file for little-endian 64-bit powerpc. Debian-bug-id: 762322
* Post release updates.Werner Koch2014-09-182-1/+5
| | | | --
* Release 1.16.libgpg-error-1.16Werner Koch2014-09-182-2/+8
| | | | * configure.ac: Set LT version to C12/A12/R2.
* doc updates and type fixes.Werner Koch2014-09-182-3/+17
| | | | --
* Add new lock-obj-pub for Apple iOS.Werner Koch2014-09-183-0/+56
| | | | | | | | | | | | | | | * src/syscfg/lock-obj-pub.aarch64-apple-darwin.h: New. * src/syscfg/lock-obj-pub.arm-apple-darwin.h: New. -- Created by Chris Ballinger <chris@chatsecure.org>. He also noted: When cross-compiling for arm-apple-darwin and aarch64-apple-darwin I also needed to generate these files, so here they are. I made a little iOS utility to help people generate them in case Apple adds any more architectures in the future: https://github.com/chrisballinger/gen-posix-lock-obj-iOS
* Fix es_fclose for streams opened with "samethread".Werner Koch2014-09-121-2/+14
| | | | | * src/estream.c (destroy_stream_lock): New. (es_create, do_close): Use new wrapper function.
* Fix a prototypeWerner Koch2014-09-121-2/+2
| | | | * src/gpgrt-int.h: s/off_t/gpgrt_off_t/.
* Post release updates.Werner Koch2014-09-112-1/+5
| | | | --
* Release 1.15.libgpg-error-1.15Werner Koch2014-09-112-2/+2
| | | | * configure.ac: Set LT version to C12/A12/R1.
* Fix build problems with non-gmake (ie. AIX).Werner Koch2014-09-111-3/+4
| | | | | * src/Makefile.am: Do not distribute gpg-error.h. (lock-obj-pub.native.h): Prepend a "./" to match the dependency.
* Fix problems with ssize_t and off_t.Werner Koch2014-09-118-70/+271
| | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (AC_SYS_LARGEFILE): New. (AC_CHECK_HEADERS): Check for stdint.h. (AC_CHECK_SIZEOF): Add for int, long and long long. (REPLACEMENT_FOR_OFF_T): New ac_define. * src/mkheader.c (have_stdint_h, have_w32_system, have_w64_system) (replacement_for_off_type, stdint_h_included): New. (xfree, xstrdup): New. (parse_config_h): New. (write_special): Support "define:gpgrt_off_t", "define:gpgrt_ssize_t", "api_ssize_t" tags. (main): Add config.h arg. Call parse_config_h. Fix substitute code. * src/Makefile.am (gpg-error.h): Pass config.h to mkheader. * src/gpg-error.h.in: Include definitions for gpgrt_ssize_t and gpgrt_off_t. Let mkheader insert ssize_t keywords. Chnage all off_t to gpgrt_off_t. * src/estream.c: Change all off_t to gpgrt_off_t. Chnage all ssize_t to gpgrt_ssize_t. * src/visibility.c (gpgrt_fseeko): Use gpgrt_off_t. (gpgrt_ftello): Ditto. (gpgrt_getline): Use gpgrt_ssize_t. (gpgrt_read_line): Ditto.
* Fix compiler warning for w32.Werner Koch2014-09-111-7/+7
| | | | | * src/syscfg/lock-obj-pub.mingw32.h (GPGRT_LOCK_INITIALIZER): Add mssing braces.
* Post release updatesWerner Koch2014-09-082-1/+5
| | | | --
* Release 1.14.libgpg-error-1.14Werner Koch2014-09-082-4/+4
| | | | * configure.ac: Set LT version to C12/A12/R0.
* po: Auto-updateWerner Koch2014-09-0813-0/+65
| | | | --
* po: Update de.po.Werner Koch2014-09-081-2/+5
|
* Add gpgrt_set_alloc_func.Werner Koch2014-08-2611-26/+108
| | | | | | | | | | | | | * src/visibility.c (gpgrt_set_alloc_func): New. * configure.ac (_ESTREAM_PRINTF_REALLOC): Define. (_ESTREAM_PRINTF_EXTRA_INCLUDE): Define. * src/estream.c (mem_alloc, mem_realloc, mem_free): Simplify. (_gpgrt_free): Remove. * src/init.c (custom_realloc): New var. (_gpgrt_set_alloc_func): New. (_gpgrt_realloc, _gpgrt_malloc, _gpgrt_free): New. * src/visibility.h (gpg_err_deinit): Mark as visible.
* Export missing init functions.Werner Koch2014-08-269-22/+55
| | | | | | | | | | | | | | | | | * 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.
* Include required headers into gpg-error.h.Werner Koch2014-08-261-0/+1
| | | | * src/gpg-error.h.in: Include stdarg.h.
* Replace locking code in estream functions.Werner Koch2014-08-2511-212/+345
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/posix-lock.c: Add weak program for pthread_mutex_trylock. (_gpgrt_lock_trylock): New. * src/w32-lock.c (_gpgrt_lock_init): Add missing return statement. (_gpgrt_lock_trylock): New. * src/visibility.c (gpgrt_set_syscall_clamp): New. (gpgrt_lock_trylock): New. (gpgrt_vsnprintf): Fix symbol name. * src/init.c (DllMain): Mark unused arg. * src/estream.c: Replace npth mutexes by our own locks. Replace yeild macro by _gpgrt_yield. (pre_syscall_func, post_syscall_func): New. (do_deinit): Clear both new vars. (es_func_fd_read, es_func_fd_write): Call pre and post syscall functions instead of the former SYSCALL macros. (es_func_w32_read, es_func_w32_write): Ditto. (es_func_fd_seek, es_func_w32_seek, es_func_fp_read) (es_func_fp_write, es_func_fp_seek, es_func_fp_destroy): Bracket syscalls with the pre- and post-syscall fucntions. (do_npth_read, do_npth_write): Remove. (_gpgrt_es_init): Remove call to mutex init. It is now statically initialized. (_gpgrt_set_syscall_clamp): New. (es_create): Destroy stream lock on error. (do_close): Destroy stream lock.
* Remove GnuPG specific code.Werner Koch2014-08-251-47/+1
| | | | * src/estream.c (es_write_sanitized_utf8_buffer): Remove.
* Add test for the estream printf functionsWerner Koch2014-08-253-2/+431
| | | | | | | | | | | * tests/t-printf.c: New. * configure.ac: Check for vasprintf. -- These tests have been taken from Libestream and changed to be more portable. For example there is only va_start per function and the test return an error only for _GLIBC_ based systems because that is what we compare against.
* Add gpgrt_snprintf and gpgrt_vsnprintf.Werner Koch2014-08-255-5/+38
|
* Finish inclusion of estream into the API.Werner Koch2014-08-259-214/+1117
|
* Implement symbol visibility.Werner Koch2014-08-2521-52/+485
| | | | | | | | | | | | | * configure.ac: New option --enable-ld-version-script. (GPGRT_USE_VISIBILITY): New ac_define. (HAVE_LD_VERSION_SCRIPT): New am_conditional. * src/gpg-error.vers: New. * src/gpgrt-int.h: New. * src/visibility.c, src/visibility.h: New. Lot of changes to symbold names. -- This is only doe for the old API. The estream API needs to be added.
* First set of changes to include estream into the API.Werner Koch2014-08-256-597/+525
| | | | | | | | | | | * configure.ac (AH_BOTTOM): Define GPGRT_ENABLE_ES_MACROS. * src/gpg-error.h.in: include stdio.h. Include most of the estream functions and rename structures and types. * src/estream.h: Rewrite. Include only gpg-error.h and local prototypes. * src/estream.c: Rename types and macros. * src/estream-printf.c (_gpgrt_estream_snprintf): Prefix public functions with _gpgrt_.
* Fix some minor estream things.Werner Koch2014-08-253-22/+30
| | | | | | | * m4/estream.m4: Check for memrchr. * src/estream.c (memrchr) [!HAVE_MEMRCHR]: New. * src/init.c: Include estream.h (real_init): Init estream.
* Add missing redefine macros to cleanup the external symbols.Werner Koch2014-08-253-5/+13
|
* Add estream code from GnuPG.Werner Koch2014-08-258-3/+7132
| | | | | | | | | | | | | | | | | * src/estream-printf.c, src/estream-printf.h: New. * src/estream.c, src/estream.h: New. * m4/estream.m4: New. * src/Makefile.am (libgpg_error_la_SOURCES): Add new files. * configure.ac (AH_BOTTOM): Define estream prefix. <gcc>: Add useful gcc warning options. (estream_INIT): Call. -- This is the base line patch to move the estream code from GnuPG to libgpg-error. The code has been taken from the GnuPG repository at commit cb680c5ea540738692a5c74951802b0fdc658e85. Signed-off-by: Werner Koch <wk@gnupg.org>
* doc: Explain two error codes.Werner Koch2014-08-121-1/+10
| | | | --
* Update Danish translationJoe Hansen2014-08-121-35/+15
| | | | | | | * po/da.po: Update. -- Debian-bug-id: 754128
* tests: Fix compiler warning.Werner Koch2014-08-101-1/+3
| | | | | | | | | * tests/t-lock.c: Include header vor getpid. (revision_thread): Init "i" to avoid compiler warning. -- GnuPG-bug-id: 1681 Note that the non-initialization of I did not harm.
* Update ja.poNIIBE Yutaka2014-08-061-130/+90
|
* Use 16 byte alignment for hppa-unknown-linux-gnu.Werner Koch2014-08-053-1/+42
| | | | | | | | | | | * configure.ac (HAVE_GCC_ATTRIBUTE_ALIGNED): New. * src/gen-posix-lock-obj.c (USE_16BYTE_ALIGNMENT): Set for HPPA-Linux. (main): Enforce alignment if needed. * src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h: Use 16 byte alignment. -- Debian-bug-id: 757060
* Add new lock-obj-pub.*.h from debian buildds.Daniel Kahn Gillmor2014-07-2720-2/+478
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/syscfg/lock-obj-pub.aarch64-unknown-linux-gnu.h: New. * src/syscfg/lock-obj-pub.alpha-unknown-linux-gnu.h: New. * src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h: New. * src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabihf.h: New. * src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h: New. * src/syscfg/lock-obj-pub.i486-pc-gnu.h: New. * src/syscfg/lock-obj-pub.i486-pc-kfreebsd-gnu.h: New. * src/syscfg/lock-obj-pub.i486-pc-linux-gnu.h: New. * src/syscfg/lock-obj-pub.m68k-unknown-linux-gnu.h: New. * src/syscfg/lock-obj-pub.mips-unknown-linux-gnu.h: New. * src/syscfg/lock-obj-pub.mipsel-unknown-linux-gnu.h: New. * src/syscfg/lock-obj-pub.powerpc-unknown-linux-gnu.h: New. * src/syscfg/lock-obj-pub.powerpc64-unknown-linux-gnu.h: New. * src/syscfg/lock-obj-pub.s390x-ibm-linux-gnu.h: New. * src/syscfg/lock-obj-pub.sh4-unknown-linux-gnu.h: New. * src/syscfg/lock-obj-pub.sparc-unknown-linux-gnu.h: New. * src/syscfg/lock-obj-pub.x86_64-pc-kfreebsd-gnu.h: New. * src/syscfg/lock-obj-pub.x86_64-pc-linux-gnu.h: New. * src/syscfg/lock-obj-pub.x86_64-pc-linux-gnux32.h: New. * src/Makefile.am (lock_obj_pub): Add new files. -- To generate these: pull all the logs stored under the "install" links from: https://buildd.debian.org/status/package.php?p=libgpg-error&suite=unstable https://buildd.debian-ports.org/status/package.php?p=libgpg-error&suite=unstable and then extract the headers via: for x in fetch*; do awk '/^## lock-obj-pub\..*\.h$/{ X=2 } { if (X > 0) { print $0 } } /^##$/{ X = X-1 } ' < "$x" >tmp mv -f tmp $( head -n1 < tmp | cut -f2 -d\ ) done