1. 01 Jan, 2016 1 commit
    • Paul Eggert's avatar
      version-etc: new year · 71090a2a
      Paul Eggert authored
      * build-aux/gendocs.sh (version):
      * doc/gendocs_template:
      * doc/gendocs_template_min:
      * doc/gnulib.texi:
      * lib/version-etc.c (COPYRIGHT_YEAR):
      Update copyright dates by hand in templates and the like.
      * all files: Run 'make update-copyright'.
      71090a2a
  2. 01 Jan, 2015 1 commit
    • Paul Eggert's avatar
      version-etc: new year · b9bfe784
      Paul Eggert authored
      * doc/gnulib.texi:
      * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
      * all files: Run 'make update-copyright'.
      b9bfe784
  3. 01 Jan, 2014 1 commit
  4. 01 Jan, 2013 1 commit
  5. 01 Jan, 2012 1 commit
  6. 23 Sep, 2011 1 commit
    • Bruno Haible's avatar
      raise: Support for MSVC. · 492fd301
      Bruno Haible authored
      * lib/signal.in.h (raise): New declaration.
      * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
      for native Windows platforms.
      * m4/raise.m4: New file.
      * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
      HAVE_RAISE, REPLACE_RAISE.
      * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
      REPLACE_RAISE.
      * modules/raise (Status, Notice): Remove fields.
      (Files): Add m4/raise.m4.
      (Depends-on): Add signal, msvc-inval.
      (configure.ac): Use the common idioms.
      (Maintainer): Add me.
      * tests/test-signal-c++.cc: Check the signature of raise.
      * doc/posix-functions/raise.texi: Mention the problem on MSVC.
      492fd301
  7. 11 Sep, 2011 1 commit
    • Bruno Haible's avatar
      Ensure pid_t gets defined. · 0b88a15d
      Bruno Haible authored
      * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
      * m4/sched_h.m4 (gl_SCHED_H): Likewise.
      * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
      * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
      * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
      * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
      * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
      * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
      * tests/test-fcntl-h.c: Check that pid_t is defined.
      * tests/test-sched.c: Likewise.
      * tests/test-termios.c: Likewise.
      * tests/test-time.c: Likewise.
      * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
      * doc/posix-headers/signal.texi: Likewise.
      * doc/posix-headers/sys_types.texi: Likewise.
      * doc/posix-headers/time.texi: Likewise.
      0b88a15d
  8. 08 Jul, 2011 2 commits
    • Bruno Haible's avatar
      pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth. · fb3f7540
      Bruno Haible authored
      * lib/signal.in.h (pthread_sigmask): Override if
      REPLACE_PTHREAD_SIGMASK is 1.
      * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
      REPLACE_PTHREAD_SIGMASK.
      * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
      REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
      * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
      * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
      (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
      fb3f7540
    • Bruno Haible's avatar
      pthread_sigmask: Make declaration C++ safe. · bfb5ec49
      Bruno Haible authored
      * lib/signal.in.h: In two special conditions, just do an #include_next.
      (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
      Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
      * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
      HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
      * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
      not REPLACE_PTHREAD_MASK.
      * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
      not REPLACE_PTHREAD_MASK.
      * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
      bfb5ec49
  9. 06 Jul, 2011 2 commits
    • Paul Eggert's avatar
      sys_select: define sigset_t more portably · 8db49630
      Paul Eggert authored
      * lib/sys_select.in.h: Always include <sys/types.h>, since
      we now need sigset_t and mingw defines it there.
      Include <signal.h> before split inclusion guard, to avoid
      mishaps on Solaris, whose <signal.h> eventually includes us.
      * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
      (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
      which come from ...
      * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
      gl_CHECK_TYPE_SIGSET_T.
      (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
      does the real work.
      * modules/sys_select (Depends-on): Add 'signal'.
      8db49630
    • Paul Eggert's avatar
      pthread_sigmask: new module · cf74a395
      Paul Eggert authored
      * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
      * doc/posix-functions/pthread_sigmask.texi: Document new module.
      * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
      This is done only as a macro; I don't know how well that'll
      work for C++.  Move <sys/types.h> include before the include_next,
      to avoid mishap on Solaris.
      * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
      * modules/signal (Makefile.am): Substitute the check's results.
      * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
      cf74a395
  10. 05 May, 2011 1 commit
    • Bruno Haible's avatar
      signal: Define sighandler_t. · fa6f0000
      Bruno Haible authored
      * lib/signal.in.h (sighandler_t): New type.
      * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
      whether sighandler_t is defined.
      (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
      * modules/signal (Depends-on): Add extensions.
      (Makefile.am): Substitute HAVE_SIGHANDLER_T.
      * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
      Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
      fa6f0000
  11. 20 Jan, 2011 1 commit
    • Paul Eggert's avatar
      assume <ctype.h>, ..., <time.h> exist · 80905e10
      Paul Eggert authored
      For years gnulib has been assuming the existence of the headers
      <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
      <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
      them, since they don't appear to be needed.
      * README (Portability guidelines): Document this.
      * lib/flock.c: Assume <fcntl.h> exists.
      * lib/regex_internal.h: Assume <locale.h> exists.
      * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
      * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
      * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
      * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
      * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
      * m4/regex.m4 (gl_REGEX): Likewise.
      * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
      * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
      * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
      * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
      * tests/test-argp.c: Likewise.
      * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
      80905e10
  12. 01 Jan, 2011 1 commit
  13. 27 Mar, 2010 2 commits
  14. 08 Mar, 2010 1 commit
  15. 20 Jan, 2010 1 commit
    • Eric Blake's avatar
      warn-on-use: use instead of link-warning · cbd5934b
      Eric Blake authored
      Each *.in.h file serves two purposes - provide enough self-contained
      content to serve as a replacement for the system header regardless of
      the user's compiler, and offer the developer the ability to detect any
      gnulib modules that might have been inadvertantly excluded.  The
      former requires independence from config.h, and routes everything
      through a Makefile.am snippet that uses @@ substitution specific to
      the modules that were in use, with details learned at configure time.
      
      The latter works by poisoning anything that gnulib did not replace,
      but which the developer had natively available, explaining why their
      tests passed during development.  Poisoning relies on gcc features,
      and requires manual triggering by adding -DGNULIB_POSIXCHECK to
      CFLAGS; it assumes that <config.h> is properly included.  In fact, we
      do not want to use @@ substitution for HAVE_DECL_* during poisoning,
      because the warning is only relevant for the gnulib modules which were
      not included, and thus where the m4 macros to set proper @@ values
      have not been run.  Furthermore, we only need to poison interfaces
      that already have a declaration; if something is not declared, then
      the developer wouldn't have been able to link, so their code won't be
      using the problematic interface in the first place.
      
      * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
      * modules/unistd (Depends-on, Makefile.am): Likewise.
      * modules/arpa_inet (Depends-on): Replace link-warning with
      warn-on-use.
      (Makefile.am): Update rules accordingly.
      * modules/ctype (Depends-on, Makefile.am): Likewise.
      * modules/dirent (Depends-on, Makefile.am): Likewise.
      * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
      * modules/inttypes (Depends-on, Makefile.am): Likewise.
      * modules/langinfo (Depends-on, Makefile.am): Likewise.
      * modules/locale (Depends-on, Makefile.am): Likewise.
      * modules/math (Depends-on, Makefile.am): Likewise.
      * modules/search (Depends-on, Makefile.am): Likewise.
      * modules/signal (Depends-on, Makefile.am): Likewise.
      * modules/spawn (Depends-on, Makefile.am): Likewise.
      * modules/stdlib (Depends-on, Makefile.am): Likewise.
      * modules/string (Depends-on, Makefile.am): Likewise.
      * modules/strings (Depends-on, Makefile.am): Likewise.
      * modules/sys_file (Depends-on, Makefile.am): Likewise.
      * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
      * modules/sys_select (Depends-on, Makefile.am): Likewise.
      * modules/sys_socket (Depends-on, Makefile.am): Likewise.
      * modules/sys_stat (Depends-on, Makefile.am): Likewise.
      * modules/sys_times (Depends-on, Makefile.am): Likewise.
      * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
      * modules/wchar (Depends-on, Makefile.am): Likewise.
      * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
      should be poisoned.
      * m4/ctype.m4 (gl_CTYPE_H): Likewise.
      * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
      * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
      * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
      * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
      * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
      * m4/math_h.m4 (gl_MATH_H): Likewise.
      * m4/search_h.m4 (gl_SEARCH_H): Likewise.
      * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
      * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
      * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
      * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
      * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
      * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
      * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
      * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
      * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
      * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
      * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
      * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
      * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
      * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
      * m4/wchar.m4 (gl_WCHAR_H): Likewise.
      * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
      GL_LINK_WARNING.
      * lib/ctype.in.h: Likewise.
      * lib/dirent.in.h: Likewise.
      * lib/fcntl.in.h: Likewise.
      * lib/inttypes.in.h: Likewise.
      * lib/langinfo.in.h: Likewise.
      * lib/locale.in.h: Likewise.
      * lib/math.in.h: Likewise.
      * lib/search.in.h: Likewise.
      * lib/signal.in.h: Likewise.
      * lib/spawn.in.h: Likewise.
      * lib/stdio.in.h: Likewise.
      * lib/stdlib.in.h: Likewise.
      * lib/string.in.h: Likewise.
      * lib/strings.in.h: Likewise.
      * lib/sys_file.in.h: Likewise.
      * lib/sys_ioctl.in.h: Likewise.
      * lib/sys_select.in.h: Likewise.
      * lib/sys_socket.in.h: Likewise.
      * lib/sys_stat.in.h: Likewise.
      * lib/sys_times.in.h: Likewise.
      * lib/sys_utsname.in.h: Likewise.
      * lib/unistd.in.h: Likewise.
      * lib/wchar.in.h: Likewise.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      cbd5934b
  16. 01 Jan, 2010 1 commit
  17. 31 Dec, 2009 1 commit
    • Eric Blake's avatar
      signal, spawn: use link warnings · 2adf9eb9
      Eric Blake authored
      These modules depended on link-warning, then didn't use it.
      
      * lib/signal.in.h (sigset_t): Make unconditional.
      (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
      (sigpending, sigprocmask, sigaction): Add link warnings.
      * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
      (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
      (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
      (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
      (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
      (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
      (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
      (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
      (posix_spawn_file_actions_destroy)
      (posix_spawn_file_actions_addopen)
      (posix_spawn_file_actions_addclose)
      (posix_spawwn_file_actions_adddup2): Likewise.
      * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
      * tests/test-signal.c (main): Enhance test.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      2adf9eb9
  18. 23 Mar, 2009 1 commit
    • Eric Blake's avatar
      signal.h: always support 'volatile sig_atomic_t' · bde8c798
      Eric Blake authored
      * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
      (gl_SIGNAL_H_DEFAULTS): Add a default.
      * modules/signal (Makefile.am): Substitute if needed.
      * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
      users can blindly add volatile.
      * doc/posix-headers/signal.texi (signal.h): Document it.
      Reported by Matthew Woehlke.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      bde8c798
  19. 26 Sep, 2008 1 commit
  20. 17 Aug, 2008 1 commit
    • Eric Blake's avatar
      c-stack: fix regression on Irix 5.3 from 2008-06-21 · a3f953e8
      Eric Blake authored
      * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
      sa_sigaction...
      * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
      (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
      * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
      * modules/signal (Makefile.am): Use the value.
      * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
      && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
      * doc/posix-headers/signal.texi (signal.h): Document this
      portability issue.
      * doc/posix-functions/sigaction.texi (sigaction): Likewise.
      Reported by Tom G. Christensen.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      a3f953e8
  21. 21 Jun, 2008 1 commit
    • Eric Blake's avatar
      New module sigaction, for mingw. · cfb3906f
      Eric Blake authored
      * modules/sigaction: New module...
      * modules/sigaction-tests: ...and its test.
      * m4/sigaction.m4: New file.
      * lib/sigaction.c: Likewise.
      * tests/test-sigaction.c: Likewise.
      * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
      * modules/signal (Makefile.am): Likewise.
      * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
      needed.
      * doc/posix-headers/signal.texi (signal.h): Mention provided
      types.
      * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
      that sigaction is preferable.
      * doc/posix-functions/sigaction.texi (sigaction): Mention new
      module.
      * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
      sigaction.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      cfb3906f
  22. 21 Jun, 2007 1 commit
    • Paul Eggert's avatar
      * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST · b6a9d33e
      Paul Eggert authored
      INCLUDE_NEXT.
      (gl_CHECK_NEXT_HEADERS): New macro.
      * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
      the obsolescent gl_ABSOLUTE_HEADER.
      * m4/float_h.m4 (gl_FLOAT_H): Likewise.
      * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
      * m4/math_h.m4 (gl_MATH_H): Likewise.
      * m4/search_h.m4 (gl_SEARCH_H): Likewise.
      * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
      * m4/stdint.m4 (gl_STDINT_H): Likewise.
      * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
      * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
      * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
      * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
      * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
      * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
      * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
      * m4/wchar.m4 (gl_WCHAR_H): Likewise.
      * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
      * m4/inttypes.m4 (gl_INTTYPES_H): Define
      _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
      builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
      * m4/stdint.m4 (gl_STDINT_H): Likewise, for
      _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
      * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
      rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
      * lib/float_.h: Likewise.
      * lib/inttypes_.h: Likewise.
      * lib/math_.h: Likewise.
      * lib/search_.h: Likewise.
      * lib/signal_.h: Likewise.
      * lib/stdint_.h: Likewise.
      * lib/stdio_.h: Likewise.
      * lib/stdlib_.h: Likewise.
      * lib/string_.h: Likewise.
      * lib/sys_stat_.h: Likewise.
      * lib/sys_time_.h: Likewise.
      * lib/time_.h: Likewise.
      * lib/unistd_.h: Likewise.
      * lib/wchar_.h: Likewise.
      * lib/wctype_.h: Likewise.
      * modules/fcntl (Depends-on): Depend on absolute-header, not
      include_next.
      (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
      HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
      * modules/float: Likewise.
      * modules/inttypes: Likewise.
      * modules/math: Likewise.
      * modules/search: Likewise.
      * modules/signal: Likewise.
      * modules/stdint: Likewise.
      * modules/stdio: Likewise.
      * modules/stdlib: Likewise.
      * modules/string: Likewise.
      * modules/sys_stat: Likewise.
      * modules/sys_time: Likewise.
      * modules/time: Likewise.
      * modules/unistd: Likewise.
      * modules/wchar: Likewise.
      * modules/wctype: Likewise.
      * modules/sys_stat: Change maintainer to "all".
      * modules/unistd: Likewise.
      b6a9d33e
  23. 01 May, 2007 2 commits
  24. 31 Mar, 2007 1 commit