gnulib.git
15 years agomicrooptimization of lib/poll.c
Paolo Bonzini [Wed, 6 Aug 2008 08:27:53 +0000 (10:27 +0200)]
microoptimization of lib/poll.c

2008-08-06  Paolo Bonzini  <bonzini@gnu.org>

* lib/poll.c (poll): Avoid division when timeout is 0, cache
_SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.

15 years ago* modules/inet_pton (License): Relicense under LGPLv2+.
Jim Meyering [Wed, 6 Aug 2008 07:40:32 +0000 (09:40 +0200)]
* modules/inet_pton (License): Relicense under LGPLv2+.

15 years agoautoupdate
Karl Berry [Tue, 5 Aug 2008 17:36:33 +0000 (10:36 -0700)]
autoupdate

15 years agoAdditional non-aborting API for lock and tls.
Bruno Haible [Sun, 3 Aug 2008 18:45:40 +0000 (20:45 +0200)]
Additional non-aborting API for lock and tls.

15 years agognumakefile: use space, not TAB, outside of targets
Eric Blake [Mon, 4 Aug 2008 18:45:23 +0000 (12:45 -0600)]
gnumakefile: use space, not TAB, outside of targets

* top/GNUmakefile (_dummy): Fix whitespace error in prior edit.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoadd replacement for ncftpput that uses cmdline ftp
Karl Berry [Mon, 4 Aug 2008 17:54:29 +0000 (10:54 -0700)]
add replacement for ncftpput that uses cmdline ftp

15 years agogetdate.y: avoid locale-dependent date parsing failure
Jim Meyering [Sat, 2 Aug 2008 13:40:39 +0000 (15:40 +0200)]
getdate.y: avoid locale-dependent date parsing failure

In Turkish locales, getdate would fail to recognize keywords
containing a lowercase "i".  The solution is not to rely on
locale-sensitive case-conversion.
* lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
(lookup_word): Use c_toupper in place of toupper.
(yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
Reported by Vefa Bicakci <bicave@superonline.com> in
<http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
* modules/getdate (Depends-on): Add c-ctype.

15 years agognupload: restore lost executable bit
Eric Blake [Sun, 3 Aug 2008 19:28:46 +0000 (13:28 -0600)]
gnupload: restore lost executable bit

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoautoupdate
Karl Berry [Sun, 3 Aug 2008 14:02:43 +0000 (07:02 -0700)]
autoupdate

15 years ago-mautoupdate
Karl Berry [Sat, 2 Aug 2008 16:21:31 +0000 (09:21 -0700)]
-mautoupdate

15 years agoPrepend each added line in .gitignore files with a slash.
Bruno Haible [Sat, 2 Aug 2008 11:38:58 +0000 (13:38 +0200)]
Prepend each added line in .gitignore files with a slash.

15 years agoPortability fix for GNU make 3.79.1.
Ralf Wildenhues [Sat, 2 Aug 2008 08:23:16 +0000 (10:23 +0200)]
Portability fix for GNU make 3.79.1.

* top/GNUmakefile: Avoid 'else COND', which older GNU make
versions do not understand.

15 years agoWork around bug of HP-UX 10.20 cc with -0.0 literal.
Bruno Haible [Fri, 1 Aug 2008 09:30:27 +0000 (11:30 +0200)]
Work around bug of HP-UX 10.20 cc with -0.0 literal.

15 years agosha256.h: correct definition on SHA224_DIGEST_SIZE
Jim Meyering [Thu, 31 Jul 2008 13:35:25 +0000 (15:35 +0200)]
sha256.h: correct definition on SHA224_DIGEST_SIZE

* lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
Reported by Paulie Pena IV <paulie4@gmail.com>.
Define as 224 / 8, rather than as a literal.
(SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
* lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
(SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.

15 years agoMake determination of BITSET_WORD_MAX work also with old HP-UX cc compilers.
Bruno Haible [Thu, 31 Jul 2008 10:04:14 +0000 (12:04 +0200)]
Make determination of BITSET_WORD_MAX work also with old HP-UX cc compilers.

15 years agoMake a sed program more robust.
Bruno Haible [Thu, 31 Jul 2008 09:34:41 +0000 (11:34 +0200)]
Make a sed program more robust.

15 years agotest-strtod: allow compilation without -lm
Eric Blake [Wed, 30 Jul 2008 14:37:31 +0000 (08:37 -0600)]
test-strtod: allow compilation without -lm

* tests/test-strtod.c (main): Avoid link dependence on fabs.
Reported by Dennis Clarke <blastwave@gmail.com>.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agobootstrap: work also when there are no .po files in po/
Jim Meyering [Mon, 28 Jul 2008 18:40:23 +0000 (20:40 +0200)]
bootstrap: work also when there are no .po files in po/

* build-aux/bootstrap (update_po_files): Complete the change
that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.

15 years agoautoupdate
Karl Berry [Mon, 28 Jul 2008 14:27:55 +0000 (07:27 -0700)]
autoupdate

15 years ago* users.txt: Add zile.
Jim Meyering [Sun, 27 Jul 2008 21:38:05 +0000 (23:38 +0200)]
* users.txt: Add zile.

15 years agoAdd missing dependencies on new m4/exponent[fdl].m4 files.
Ben Pfaff [Sat, 26 Jul 2008 15:01:12 +0000 (08:01 -0700)]
Add missing dependencies on new m4/exponent[fdl].m4 files.

15 years agoAdd isinf module.
Ben Pfaff [Thu, 24 Jul 2008 04:48:35 +0000 (21:48 -0700)]
Add isinf module.

15 years agoMove macros for finding floating-point exponents into separate M4 files.
Ben Pfaff [Thu, 24 Jul 2008 04:34:48 +0000 (21:34 -0700)]
Move macros for finding floating-point exponents into separate M4 files.

15 years agomktime.c: normalize tp->tm_isdst value to -1/0/1.
Ulrich Drepper [Wed, 23 Jul 2008 14:19:15 +0000 (16:19 +0200)]
mktime.c: normalize tp->tm_isdst value to -1/0/1.

* lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
Reported by Michael Ringe <Michael.Ringe@gmx.de> in
<http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.

15 years agoImprove ChangeLog entry for Ulrich Drepper's change.
Bruno Haible [Wed, 23 Jul 2008 10:34:14 +0000 (12:34 +0200)]
Improve ChangeLog entry for Ulrich Drepper's change.

15 years ago* lib/canonicalize-lgpl.c (__realpath): readlink can write too
Ulrich Drepper [Wed, 23 Jul 2008 08:24:43 +0000 (10:24 +0200)]
* lib/canonicalize-lgpl.c (__realpath): readlink can write too

much into the buffer on platforms without PATH_MAX.

15 years agoWarn, not fail, on stale version.
Eric Blake [Tue, 22 Jul 2008 03:45:30 +0000 (21:45 -0600)]
Warn, not fail, on stale version.

* top/GNUmakefile (_curr-ver): Tone down previous patch.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoDon't allow installation with stale devel version number.
Eric Blake [Mon, 21 Jul 2008 15:13:38 +0000 (09:13 -0600)]
Don't allow installation with stale devel version number.

* top/GNUmakefile (_is-install-target): New macro.
(_curr-ver): Forbid installation with stale version number.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoTest must fail if libsigsegv could not distinguish stack overflow and crash.
Bruno Haible [Sun, 20 Jul 2008 23:03:26 +0000 (01:03 +0200)]
Test must fail if libsigsegv could not distinguish stack overflow and crash.

15 years agoImprove documentation.
Bruno Haible [Sun, 20 Jul 2008 16:25:12 +0000 (18:25 +0200)]
Improve documentation.

15 years agoRelicense under LGPLv2+.
Bruno Haible [Sun, 20 Jul 2008 11:43:28 +0000 (13:43 +0200)]
Relicense under LGPLv2+.

15 years agoc-stack: fix typo.
Eric Blake [Thu, 17 Jul 2008 22:21:42 +0000 (16:21 -0600)]
c-stack: fix typo.

* modules/c-stack (Link): Fix typo.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoMake c-stack use libsigsegv, when available.
Eric Blake [Thu, 17 Jul 2008 12:23:47 +0000 (06:23 -0600)]
Make c-stack use libsigsegv, when available.

* modules/c-stack (Depends-on): Add libsigsegv.
* modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
needed.
* lib/c-stack.c (SIGSTKSZ): Define fallback.
(segv_handler, overflow_handler, c_stack_action)
[HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
implementation when libsigsegv is available, but only when using
the library is necessary.
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
comment, explaining why XSI check fails on Linux.
(gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
* tests/test-c-stack2.sh: Tweak skip message.
* NEWS: Document new link-time requirements.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoc-stack: Expose false positives when not using libsigsegv.
Eric Blake [Wed, 16 Jul 2008 22:28:13 +0000 (16:28 -0600)]
c-stack: Expose false positives when not using libsigsegv.

* modules/c-stack-tests (Files): Expand test.
* tests/test-c-stack.c (main): Add means to conditionally trigger
non-overflow SIGSEGV.
* tests/test-c-stack2.sh: New file.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoRemove unneeded AC_PREREQ.
Bruno Haible [Mon, 14 Jul 2008 22:30:36 +0000 (00:30 +0200)]
Remove unneeded AC_PREREQ.

15 years agoNew module 'libsigsegv'.
Bruno Haible [Mon, 14 Jul 2008 11:17:26 +0000 (13:17 +0200)]
New module 'libsigsegv'.

15 years agoImproves the doc in MODULES.html.
Bruno Haible [Mon, 14 Jul 2008 10:37:46 +0000 (12:37 +0200)]
Improves the doc in MODULES.html.

15 years agoNew module 'longlong'.
Ben Pfaff [Sun, 13 Jul 2008 03:56:44 +0000 (20:56 -0700)]
New module 'longlong'.

15 years agoChangeLog formatting.
Bruno Haible [Sat, 12 Jul 2008 23:12:18 +0000 (01:12 +0200)]
ChangeLog formatting.

15 years agoSet ISNAN_LIBM to empty when libm is not actually needed.
Bruno Haible [Sat, 12 Jul 2008 23:07:35 +0000 (01:07 +0200)]
Set ISNAN_LIBM to empty when libm is not actually needed.

15 years agoComment.
Bruno Haible [Sat, 12 Jul 2008 23:06:59 +0000 (01:06 +0200)]
Comment.

15 years agoAdd isnan module.
Ben Pfaff [Sat, 12 Jul 2008 17:50:41 +0000 (10:50 -0700)]
Add isnan module.

15 years agoAdd isnanf module.
Ben Pfaff [Sat, 12 Jul 2008 17:46:03 +0000 (10:46 -0700)]
Add isnanf module.

15 years agoAdd isnand module.
Ben Pfaff [Sat, 12 Jul 2008 17:45:22 +0000 (10:45 -0700)]
Add isnand module.

15 years agoRename isnand.h to isnand-nolibm.h, similarly for isnanf.h.
Ben Pfaff [Sat, 12 Jul 2008 17:41:34 +0000 (10:41 -0700)]
Rename isnand.h to isnand-nolibm.h, similarly for isnanf.h.

15 years agoautoupdate
Karl Berry [Sat, 12 Jul 2008 13:12:48 +0000 (06:12 -0700)]
autoupdate

15 years agovc-list-files: make the last-resort awk code more portable
Jim Meyering [Fri, 11 Jul 2008 17:32:46 +0000 (19:32 +0200)]
vc-list-files: make the last-resort awk code more portable

* build-aux/vc-list-files: Don't rely on awk's "sub" command.
/bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
does not support it.

15 years agoWork with tar's bootstrap.
Eric Blake [Thu, 10 Jul 2008 21:10:42 +0000 (15:10 -0600)]
Work with tar's bootstrap.

* gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
where LIBSOURCES_DIR contains .#bootmp but must not be treated as
an m4 comment.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoposix-shell.m4: fix typo that made this test malfunction
Jim Meyering [Wed, 9 Jul 2008 09:53:32 +0000 (11:53 +0200)]
posix-shell.m4: fix typo that made this test malfunction

* m4/posix-shell.m4: Remove capitalization in variable name.

15 years agoUpdate comments.
Bruno Haible [Tue, 8 Jul 2008 10:18:03 +0000 (12:18 +0200)]
Update comments.

15 years agousers.txt: Add vc-dwim.
Jim Meyering [Fri, 4 Jul 2008 11:39:19 +0000 (13:39 +0200)]
users.txt: Add vc-dwim.

* users.txt: Add vc-dwim.
(bison, coreutils): Use the gitweb URL.

15 years ago* users.txt: Add libffcall. From Sam Steingold.
Jim Meyering [Thu, 3 Jul 2008 20:52:50 +0000 (22:52 +0200)]
* users.txt: Add libffcall.  From Sam Steingold.

15 years agogetdate.y: do not ignore TZ with relative day, month or year offset
Ondřej Vašík [Thu, 3 Jul 2008 10:17:11 +0000 (12:17 +0200)]
getdate.y: do not ignore TZ with relative day, month or year offset

* lib/getdate.y (get_date): Move the tz-handling block to follow the
relative-date-handling, since otherwise, the latter would clobber the
sole output (an updated Start value) of the tz-handling block.
* tests/test-getdate.c: Tests for the fix

15 years agoRecognize 'foo_LIBRARIES += libgnu.a'.
Ralf Wildenhues [Thu, 3 Jul 2008 18:17:33 +0000 (20:17 +0200)]
Recognize 'foo_LIBRARIES += libgnu.a'.

* gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
makefile snippet has already specified an installation location,
also using '+='.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agogetdate.y: factor out common actions
Ondřej Vašík [Fri, 27 Jun 2008 15:37:40 +0000 (17:37 +0200)]
getdate.y: factor out common actions

* lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
Use them in place of open-coded actions.

15 years agoAdd self-test for getdate module.
Simon Josefsson [Tue, 1 Jul 2008 12:55:29 +0000 (14:55 +0200)]
Add self-test for getdate module.
* modules/getdate-tests: New file.
* tests/test-getdate.c: New file.

15 years agoPut gnulib-comp.m4 into .cvsignore or .gitignore.
Bruno Haible [Sun, 29 Jun 2008 23:44:56 +0000 (01:44 +0200)]
Put gnulib-comp.m4 into .cvsignore or .gitignore.

15 years agoUpdate to match current gnulib-tool.
Bruno Haible [Sun, 29 Jun 2008 23:28:02 +0000 (01:28 +0200)]
Update to match current gnulib-tool.

15 years agoRecommend to put gnulib-cache.m4 into EXTRA_DIST.
Bruno Haible [Sun, 29 Jun 2008 23:18:28 +0000 (01:18 +0200)]
Recommend to put gnulib-cache.m4 into EXTRA_DIST.

15 years agoadd ChangeLog entry for previous change
Jim Meyering [Thu, 26 Jun 2008 06:11:16 +0000 (08:11 +0200)]
add ChangeLog entry for previous change

15 years agomake several modules depend on the "open" module
Jim Meyering [Tue, 24 Jun 2008 07:40:36 +0000 (09:40 +0200)]
make several modules depend on the "open" module

This provides slightly increased consistency when opening-for-write
the name of a non-directory spelled with a trailing slash.
* modules/chdir-safer: Likewise.
* modules/chown: Likewise.
* modules/clean-temp: Likewise.
* modules/copy-file: Likewise.
* modules/fchdir: Likewise.
* modules/fcntl-safer: Likewise.
* modules/pipe: Likewise.
* modules/utime: Likewise.
Prompted by Eric Blake and Bruno Haible.

15 years agoDon't test whether compound literals can be used as initializers.
Andreas Schwab [Tue, 24 Jun 2008 22:59:18 +0000 (00:59 +0200)]
Don't test whether compound literals can be used as initializers.

15 years agoMake gnulib-cache.m4 easier to diff.
Eric Blake [Mon, 23 Jun 2008 17:30:06 +0000 (11:30 -0600)]
Make gnulib-cache.m4 easier to diff.

* gnulib-tool (func_import): Allow newlines when reading cached
gl_MODULES, and generate newlines when outputting gnulib-cache.m4.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoUpdate after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
Bruno Haible [Mon, 23 Jun 2008 20:45:30 +0000 (22:45 +0200)]
Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.

15 years agoReenter the fatal_signal_handler in case of nested signal.
Bruno Haible [Mon, 23 Jun 2008 20:33:28 +0000 (22:33 +0200)]
Reenter the fatal_signal_handler in case of nested signal.

15 years agoComment fixes.
Bruno Haible [Mon, 23 Jun 2008 20:30:46 +0000 (22:30 +0200)]
Comment fixes.

15 years agoFix typo.
Eric Blake [Mon, 23 Jun 2008 12:44:55 +0000 (06:44 -0600)]
Fix typo.

* tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoAvoid SA_ namespace.
Eric Blake [Mon, 23 Jun 2008 12:41:08 +0000 (06:41 -0600)]
Avoid SA_ namespace.

* tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoAvoid test failure due to SA_RESTORER.
Eric Blake [Mon, 23 Jun 2008 12:24:53 +0000 (06:24 -0600)]
Avoid test failure due to SA_RESTORER.

* tests/test-sigaction.c (SA_MASK): New macro.
(main): Avoid failing due to extension flags being set.
Reported by Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoRevert use of sig-handler.h in sigprocmask.c.
Eric Blake [Mon, 23 Jun 2008 12:02:40 +0000 (06:02 -0600)]
Revert use of sig-handler.h in sigprocmask.c.

* modules/sigprocmask (Files): Don't rely on sig-handler.h, since
it requires the existence of struct sigaction.
* lib/sigprocmask.c (handler_t): Restore typedef.
(rpl_signal, old_handlers): Use local type.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoConditionally disable part of the test.
Bruno Haible [Sun, 22 Jun 2008 20:20:15 +0000 (22:20 +0200)]
Conditionally disable part of the test.

15 years agoMove and fix the obsolescence note.
Bruno Haible [Sun, 22 Jun 2008 20:02:39 +0000 (22:02 +0200)]
Move and fix the obsolescence note.

15 years agoDefine SA_RESTART also for mingw.
Bruno Haible [Sun, 22 Jun 2008 19:54:08 +0000 (21:54 +0200)]
Define SA_RESTART also for mingw.

15 years agoUpdate a comment.
Bruno Haible [Sun, 22 Jun 2008 19:49:39 +0000 (21:49 +0200)]
Update a comment.

15 years agoRequire gl_SIGNAL_H_DEFAULTS.
Bruno Haible [Sun, 22 Jun 2008 19:47:14 +0000 (21:47 +0200)]
Require gl_SIGNAL_H_DEFAULTS.

15 years agoRequire AC_C_INLINE.
Bruno Haible [Sun, 22 Jun 2008 19:43:15 +0000 (21:43 +0200)]
Require AC_C_INLINE.

15 years agoSimplify code.
Bruno Haible [Sun, 22 Jun 2008 19:34:47 +0000 (21:34 +0200)]
Simplify code.

15 years agoUpdate a comment.
Bruno Haible [Sun, 22 Jun 2008 19:07:54 +0000 (21:07 +0200)]
Update a comment.

15 years agoUse sigaction module rather than signal().
Eric Blake [Sat, 21 Jun 2008 13:08:49 +0000 (07:08 -0600)]
Use sigaction module rather than signal().

* modules/c-stack (Depends-on): Add sigaction.
* modules/fatal-signal (Depends-on): Likewise.
* modules/nanosleep (Depends-on): Likewise.
* modules/sigprocmask (Files): Add sig-handler.h.
* modules/sigaction (Files): Likewise.
* lib/sig-handler.h (get_handler): New file, suggested by Paul
Eggert.
* lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
(c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
* lib/fatal-signal.c (uninstall_handlers, install_handlers)
(init_fatal_signals): Likewise.
* lib/nanosleep.c (rpl_nanosleep): Likewise.
(siginterrupt): Delete fallback.
* lib/sigprocmask.c (handler_t): Delete.
(old_handlers): Use sa_handler_t instead.
* m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
siginterrupt.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoNew module sigaction, for mingw.
Eric Blake [Sat, 21 Jun 2008 20:32:55 +0000 (14:32 -0600)]
New module sigaction, for mingw.

* 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: Eric Blake <ebb9@byu.net>
15 years agoImprove robustness of sigprocmask by overriding signal.
Eric Blake [Sat, 21 Jun 2008 13:06:28 +0000 (07:06 -0600)]
Improve robustness of sigprocmask by overriding signal.

* lib/signal.in.h (rpl_signal): Override signal when sigprocmask
is in use.
* lib/sigprocmask.c (blocked_handler): Reinstall block handler.
(SIGKILL, SIGSTOP): Provide fallbacks.
(rpl_signal): Implement.
(old_handlers, blocked_set): Mark volatile, since sigprocmask and
signal can be called inside handlers.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix nanosleep module on mingw.
Eric Blake [Sat, 21 Jun 2008 19:04:16 +0000 (13:04 -0600)]
Fix nanosleep module on mingw.

* modules/nanosleep (Depends-on): Add sys_select.
* lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix licensing of sigprocmask.
Eric Blake [Sat, 21 Jun 2008 18:57:35 +0000 (12:57 -0600)]
Fix licensing of sigprocmask.

* modules/raise (License): Relicense as LGPL.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoAvoid question marks in proper_name_utf8 result.
Bruno Haible [Sat, 21 Jun 2008 15:50:05 +0000 (17:50 +0200)]
Avoid question marks in proper_name_utf8 result.

15 years agoFix CVS-isms.
Bruno Haible [Thu, 19 Jun 2008 11:51:54 +0000 (13:51 +0200)]
Fix CVS-isms.

15 years agoUpdate dependencies.
Bruno Haible [Thu, 19 Jun 2008 11:47:14 +0000 (13:47 +0200)]
Update dependencies.

15 years agoFix VPATH 'make dist' with GNU make and non-VCS tarball.
Eric Blake [Thu, 19 Jun 2008 04:33:37 +0000 (22:33 -0600)]
Fix VPATH 'make dist' with GNU make and non-VCS tarball.

* top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
Reported by Stepan Kasal.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoAdd a comment.
Bruno Haible [Thu, 19 Jun 2008 01:34:29 +0000 (03:34 +0200)]
Add a comment.

15 years agoWork around cygwin 1.5.25 strsignal bug.
Eric Blake [Wed, 18 Jun 2008 16:50:06 +0000 (10:50 -0600)]
Work around cygwin 1.5.25 strsignal bug.

* tests/test-strsignal.c: Allow for const char *.
* doc/glibc-functions/strsignal.texi (strsignal): Document the bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoAdd ChangeLog entry for last commit.
Simon Josefsson [Wed, 18 Jun 2008 14:48:01 +0000 (16:48 +0200)]
Add ChangeLog entry for last commit.

15 years agoUpdate URL to article and add author/date information.
Simon Josefsson [Wed, 18 Jun 2008 14:46:55 +0000 (16:46 +0200)]
Update URL to article and add author/date information.

15 years agoNew macro gl_DISABLE_THREADS.
Bruno Haible [Wed, 18 Jun 2008 00:31:53 +0000 (02:31 +0200)]
New macro gl_DISABLE_THREADS.

15 years agoAvoid unused value warnings.
Bruno Haible [Wed, 18 Jun 2008 00:06:26 +0000 (02:06 +0200)]
Avoid unused value warnings.

15 years agoRelicense under LGPLv2+ license.
Bruno Haible [Tue, 17 Jun 2008 23:52:21 +0000 (01:52 +0200)]
Relicense under LGPLv2+ license.

15 years agoSimplify c-stack prerequisites.
Eric Blake [Tue, 17 Jun 2008 17:07:45 +0000 (11:07 -0600)]
Simplify c-stack prerequisites.

* lib/c-stack.c (includes): Remove unused <sys/resource.h>.
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
no longer requires <ucontext.h> to exist.  Optimize setrlimit
check.
(gl_PREREQ_C_STACK): Remove check for unused getcontext and
<sys/resource.h>.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoMove c-stack test into testsuite.
Eric Blake [Tue, 17 Jun 2008 14:43:38 +0000 (08:43 -0600)]
Move c-stack test into testsuite.

* modules/c-stack-tests: New file.
* lib/c-stack.c [DEBUG]: Move test program...
* tests/test-c-stack.c: ...into this new file.  Skip rather than
fail test if sigaltstack is lacking.
* tests/test-c-stack.sh: New driver file.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoRepair executable bit, again.
Eric Blake [Tue, 17 Jun 2008 02:54:38 +0000 (20:54 -0600)]
Repair executable bit, again.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoNormalize whitespace.
Bruno Haible [Mon, 16 Jun 2008 23:27:14 +0000 (01:27 +0200)]
Normalize whitespace.

15 years agoUse raise module consistently.
Eric Blake [Mon, 16 Jun 2008 22:45:09 +0000 (16:45 -0600)]
Use raise module consistently.

* modules/fatal-signal (Depends-on): Add raise.
* modules/sigprocmask (Depends-on): Likewise.
* lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
* lib/sigprocmask.c (sigprocmask): Likewise.
* m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
* m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix compliance bug in sigpending.
Eric Blake [Mon, 16 Jun 2008 20:17:11 +0000 (14:17 -0600)]
Fix compliance bug in sigpending.

* lib/sigprocmask.c (sigpending): Return pending array via
parameter, not return value.

Signed-off-by: Eric Blake <ebb9@byu.net>