1. 28 Jan, 2015 1 commit
    • Werner Koch's avatar
      Switch to automake 1.14. · a2614eaf
      Werner Koch authored
      * Makefile.am (AUTOMAKE_OPTIONS): Move to ...
      * configure.ac (AM_INIT_AUTOMAKE): here.  Add serial-tests.
      * build-aux/compile: Add.
      * build-aux/config.guess, build-aux/config.sub: Update.
      * build-aux/depcomp: Update.
      * build-aux/missing: Update.
      a2614eaf
  2. 18 Dec, 2014 1 commit
  3. 31 Oct, 2014 2 commits
  4. 29 Oct, 2014 1 commit
    • Werner Koch's avatar
      Allow use on systems which return ENOSYS for sem_init. · 510135a2
      Werner Koch authored
      * src/npth.c: Include some more headers.
      (sceptre_buffer): New.
      (sceptre): Change to a pointer and init to sceptre_buffer.
      (enter_npth, leave_npth): Adjust.
      (try_sem_open): New.
      (npth_init): Check for ENOSYS and use sem_open.
      --
      
      This is for example the case on OS X and some AIX versions Thanks to
      Patrick Brunschwig for finding this problem and suggesting a solution.
      510135a2
  5. 18 Sep, 2014 2 commits
  6. 27 Jun, 2014 3 commits
  7. 26 Jun, 2014 1 commit
  8. 19 Feb, 2014 2 commits
    • Werner Koch's avatar
      w32: Make npth_eselect actually work. · 75dba175
      Werner Koch authored
      * w32/npth.c (npth_eselect): Rewrite.
      --
      
      It never worked because the result FDSETs were first cleared and then
      used to see which fd to check after the WFMO.  The new way better
      resembles the way a select is expected to work under Windows (ignoring
      the first arg) and will also work if this library is used by
      application which have been build with a different FD_SETSIZE.
      75dba175
    • Werner Koch's avatar
      w32: Avoid calling FD_ISSET with a NULL fdset. · 4312f967
      Werner Koch authored
      * w32/npth.c (npth_eselect): Check fdset before callig FD_foo.
      4312f967
  9. 10 Jan, 2014 2 commits
  10. 09 Jan, 2014 9 commits
    • Werner Koch's avatar
      Fix creation of w32 npth-config tool. · f976b55f
      Werner Koch authored
      * src/npth-config.in: Move to ../.
      * src/npth.m4: Move to ../.
      * w32/npth-config.in: Remove.
      * w32/npth.m4: Remove.
      * Makefile.am (EXTRA_DIST): Add npth-config.in and npth.m4.
      (bin_SCRIPTS): new.
      (m4datadir, m4data_DATA): New.
      * configure.ac (AC_CONFIG_FILES): Adjust accordingly.
      f976b55f
    • Werner Koch's avatar
      Add configure option --enable-silent-rules. · 8115fbf3
      Werner Koch authored
      * configure.ac: Add AM_SILENT_RULES.
      8115fbf3
    • Werner Koch's avatar
      autogen.sh: Change preferences of w32 toolchains · 7ee4275e
      Werner Koch authored
      --
      7ee4275e
    • Werner Koch's avatar
      Update libtool to support Android. · e63e1d4f
      Werner Koch authored
      * m4/libtool.m4: Add "linux*android*" case.  Taken from the
      libgpg-error.
      --
      
      This is the libgpg-error commit
      
        commit bf0d67dbfa4161e529781d6dfbfcce7126c3bf22
        Author: David 'Digit' Turner <digit@google.com>
        Date:   Tue Oct 22 14:26:53 2013 +0200
      e63e1d4f
    • Werner Koch's avatar
      6dce1db4
    • Werner Koch's avatar
      Add hack to have different names for 64 bit Windows DLLs. · 0ec6f3af
      Werner Koch authored
      * ltmain.sh: Prefix the SO number for W64 with a "6".
      --
      
      We need to stick to libtool 2.4.2 anyway, thus we take the easy way
      and hack libtool instead of adding "-release 6" to the Makefile.  This
      also avoids an extra dash before the 6 and thus yields a prettier name
      than the one produced by the -release option.  The header files and
      def files are supposed to be identical for w32 and w64 thus we don't
      need to do any special code for them.
      
      Having a different namespace for 64 bit DLLs is such a good idea that
      I hope this or a similar feature will be provided by future libtool
      versions.
      0ec6f3af
    • Werner Koch's avatar
      Fix libtool 2.4.2 to correctly detect .def files. · f69b1749
      Werner Koch authored
      * ltmain.sh (sed_uncomment_deffile): New.
      (orig_export_symbols): Uncomment def file before testing for EXPORTS.
      * m4/libtool.m4: Do the same for the generated code.
      --
      
      The old code was not correct in that it only looked at the first line
      and puts an EXPORTS keyword in front if missing.  Binutils 2.22
      accepted a duplicated EXPORTS keyword but at least 2.23.2 is more
      stringent and bails out without this fix.
      
      There is no need to send this upstream.  Upstream's git master has a
      lot of changes including a similar fix for this problems.  There are
      no signs that a libtool 2.4.3 will be released to fix this problem and
      thus we need to stick to our copy of 2.4.2 along with this patch.
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      f69b1749
    • Werner Koch's avatar
      Update libtool to Debian's 2.4.2. · 296a3865
      Werner Koch authored
      296a3865
    • Werner Koch's avatar
      w32: Fix build problems with current compilers. · b116a294
      Werner Koch authored
      * configure.ac (NTELIBS): ac_subst for W32.
      * w32/npth.h (struct timespec): Do not define for current mingw-w64
      versions.
      b116a294
  11. 10 Dec, 2013 1 commit
    • NIIBE Yutaka's avatar
      Conditionalize use of pthread_atfork. · 34bafb36
      NIIBE Yutaka authored
      * configure.ac: Add checking pthread_atfork.
      
      * src/npth-sigev.c (npth_sigev_fini): Call pthread_atfork only when
      it's available.
      
      --
      
      GnuPG-bug-id: 1576
      34bafb36
  12. 03 Jul, 2013 1 commit
    • NIIBE Yutaka's avatar
      Restore sigmask at fork. · 9a3377bb
      NIIBE Yutaka authored
      * src/npth-sigev.c (restore_sigmask_for_child_process): New.
      (npth_sigev_fini): Register restore_sigmask_for_child_process.
      9a3377bb
  13. 21 Nov, 2012 1 commit
  14. 16 Nov, 2012 2 commits
  15. 26 Sep, 2012 1 commit
  16. 08 Aug, 2012 2 commits
  17. 15 May, 2012 2 commits
  18. 10 May, 2012 6 commits
    • Werner Koch's avatar
      Provide gettimeofday fallback for clock_gettime. · 4e25a69e
      Werner Koch authored
      * configure.ac (AC_CHECK_FUNCS): Check for gettimeofday.
      * src/npth.c (npth_clock_gettime): Use gettimeofday if clock_gettime
      is not available.
      --
      
      This should fix the MacOS problem.
      4e25a69e
    • Werner Koch's avatar
      Return an error if npth_rwlock_timedwrlock is not supported. · 363c370b
      Werner Koch authored
      * src/npth.c (npth_rwlock_timedwrlock): Return ENOSYS if there is no
      way to build it.
      363c370b
    • Werner Koch's avatar
      Avoid compiler warning for debug variable. · 4b84b652
      Werner Koch authored
      * src/npth.c (main_thread): Flag as volatile.
      4b84b652
    • Werner Koch's avatar
      Include required headers into pth.h. · 09f3fccf
      Werner Koch authored
      * src/npth.h.in: Include sys/time.h and signal.h.  Include time.h only
      if available.
      * configure.ac (INSERT_SYS_TIME_H, INSERT_TIME_H, INSERT_SIGNAL_H):
      Detect header files and ac_subst snippets.
      --
      
      sys/time.h is required for struct timeval and signal.h for sigset_t.
      Without that them the regression test fails on IRIX.  Conditional
      inclusion of these files might not bee required, but it should not
      harm, either.
      09f3fccf
    • Werner Koch's avatar
      Remove obsolete debug stuff. · 95704455
      Werner Koch authored
      * src/npth.c (enter_npth, leave_npth): Remove argument and debug
      stuff.
      (ENTER, LEAVE): Adjust macros accordingly.
      --
      
      The debug calls used c99 style varmarco arguments which is not good
      for pre-c99 systems.  The debug stuff is not anymore needed, standard
      system trace utilities are better suited for this task.
      95704455
    • Werner Koch's avatar
      Add a basic create and join thread test case. · 246d9e5f
      Werner Koch authored
      * tests/t-thread.c: New
      * tests/t-support.h (opt_verbose):  New.
      (fail_msg, info_msg): New.
      246d9e5f