gnulib.git
16 years agoSimplify and modernize strerror substitute, partly to fix Solaris 8 bug.
Paul Eggert [Thu, 11 Oct 2007 21:43:30 +0000 (14:43 -0700)]
Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.

* lib/strerror.c: Include <string.h> always, to test interface,
and to remove the need for the dummy.
Include intprops.h to compute width instead of doing it ourselves
and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
(strerror): Define it to return NULL if there's no system strerror.
(rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
Omit !HAVE_STRERROR code.  We don't need to worry about supporting
ancient pre-strerror Unix systems well any more.  Saying "unknown
system error" is enough.
* lib/string.in.h (strerror): Simplify the ifdef to reflect the
simpler strerror.c implementation.
* m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
Simplify the tests to reflect the simpler strerror implementation.
* modules/strerror (Depends-on): Add intprops.

16 years agoSilence test-fpending.
Eric Blake [Tue, 9 Oct 2007 14:09:48 +0000 (08:09 -0600)]
Silence test-fpending.

* modules/fpending-tests (Files): Add wrapper script.
* tests/test-fpending.sh: New file.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMention many new modules in the right categories.
Bruno Haible [Tue, 9 Oct 2007 12:56:47 +0000 (14:56 +0200)]
Mention many new modules in the right categories.

16 years agoFix typo in comment.
Ben Pfaff [Tue, 9 Oct 2007 01:56:32 +0000 (18:56 -0700)]
Fix typo in comment.

16 years agoFix some portability problems in the previous change.
Paul Eggert [Tue, 9 Oct 2007 00:11:13 +0000 (17:11 -0700)]
Fix some portability problems in the previous change.

16 years ago* lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
Paul Eggert [Mon, 8 Oct 2007 23:26:12 +0000 (16:26 -0700)]
* lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
when avoiding problems with integer overflow.  Use a portable test
instead.

16 years agoChange license to LGPLv2+ on dummy, float, realloc, stdlib.
Simon Josefsson [Mon, 8 Oct 2007 10:50:32 +0000 (12:50 +0200)]
Change license to LGPLv2+ on dummy, float, realloc, stdlib.

16 years agoMention the license change.
Bruno Haible [Mon, 8 Oct 2007 07:23:39 +0000 (09:23 +0200)]
Mention the license change.

16 years agoFix type of TWO_MANT_DIG.
Bruno Haible [Sun, 7 Oct 2007 22:01:02 +0000 (00:01 +0200)]
Fix type of TWO_MANT_DIG.

16 years agoRename parameter 'exp' to 'expptr', to avoid gcc warnings.
Bruno Haible [Sun, 7 Oct 2007 20:10:35 +0000 (22:10 +0200)]
Rename parameter 'exp' to 'expptr', to avoid gcc warnings.

16 years agoMake xnanosleep's integer overflow test more robust.
Jim Meyering [Sun, 7 Oct 2007 18:49:20 +0000 (20:49 +0200)]
Make xnanosleep's integer overflow test more robust.

* lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
so that gcc-4.3.0 doesn't optimize away this test for overflow.

Signed-off-by: Jim Meyering <meyering@redhat.com>
16 years agoUpdate the meaning of the license abbreviations.
Bruno Haible [Sun, 7 Oct 2007 17:47:13 +0000 (19:47 +0200)]
Update the meaning of the license abbreviations.

16 years agoChange copyright notice from GPLv2+ to GPLv3+.
Bruno Haible [Sun, 7 Oct 2007 17:14:58 +0000 (19:14 +0200)]
Change copyright notice from GPLv2+ to GPLv3+.

16 years agoChange copyright notice from LGPLv2.1+ to LGPLv3+.
Bruno Haible [Sun, 7 Oct 2007 15:38:16 +0000 (17:38 +0200)]
Change copyright notice from LGPLv2.1+ to LGPLv3+.

16 years agoChange copyright notice from LGPLv2.0+ to LGPLv3+.
Bruno Haible [Sun, 7 Oct 2007 15:23:24 +0000 (17:23 +0200)]
Change copyright notice from LGPLv2.0+ to LGPLv3+.

16 years agoChange copyright notice from LGPL to GPL.
Bruno Haible [Sun, 7 Oct 2007 15:00:27 +0000 (17:00 +0200)]
Change copyright notice from LGPL to GPL.

16 years agoTypo in last commit.
Bruno Haible [Sun, 7 Oct 2007 10:41:50 +0000 (12:41 +0200)]
Typo in last commit.

16 years agoEnsure glibc declares trunc().
Bruno Haible [Sun, 7 Oct 2007 03:10:20 +0000 (05:10 +0200)]
Ensure glibc declares trunc().

16 years agoTest for module 'freopen'.
Bruno Haible [Sun, 7 Oct 2007 02:48:29 +0000 (04:48 +0200)]
Test for module 'freopen'.

16 years agoTest for module 'fopen'.
Bruno Haible [Sun, 7 Oct 2007 02:47:49 +0000 (04:47 +0200)]
Test for module 'fopen'.

16 years agoNew modules 'fopen' and 'freopen'.
Bruno Haible [Sun, 7 Oct 2007 02:46:57 +0000 (04:46 +0200)]
New modules 'fopen' and 'freopen'.

16 years agoTest for 'open' module.
Bruno Haible [Sun, 7 Oct 2007 02:40:31 +0000 (04:40 +0200)]
Test for 'open' module.

16 years agoNew module 'open'.
Bruno Haible [Sun, 7 Oct 2007 02:39:17 +0000 (04:39 +0200)]
New module 'open'.

16 years agoTest for module 'ceill'.
Bruno Haible [Fri, 5 Oct 2007 01:55:37 +0000 (03:55 +0200)]
Test for module 'ceill'.

16 years agoNew module 'ceill'.
Bruno Haible [Fri, 5 Oct 2007 01:54:50 +0000 (03:54 +0200)]
New module 'ceill'.

16 years agoTest for module 'ceilf'.
Bruno Haible [Fri, 5 Oct 2007 01:44:19 +0000 (03:44 +0200)]
Test for module 'ceilf'.

16 years agoNew module 'ceilf'.
Bruno Haible [Fri, 5 Oct 2007 01:43:42 +0000 (03:43 +0200)]
New module 'ceilf'.

16 years agoTest for module 'floorl'.
Bruno Haible [Fri, 5 Oct 2007 01:34:16 +0000 (03:34 +0200)]
Test for module 'floorl'.

16 years agoNew module 'floorl'.
Bruno Haible [Fri, 5 Oct 2007 01:33:31 +0000 (03:33 +0200)]
New module 'floorl'.

16 years agoTest for module 'floorf'.
Bruno Haible [Fri, 5 Oct 2007 01:02:59 +0000 (03:02 +0200)]
Test for module 'floorf'.

16 years agoNew module 'floorf'.
Bruno Haible [Fri, 5 Oct 2007 01:02:08 +0000 (03:02 +0200)]
New module 'floorf'.

16 years agoTalk about git instead or in addition to cvs.
Bruno Haible [Fri, 5 Oct 2007 00:24:39 +0000 (02:24 +0200)]
Talk about git instead or in addition to cvs.

16 years agoExplain what an absent module means.
Bruno Haible [Fri, 5 Oct 2007 00:02:30 +0000 (02:02 +0200)]
Explain what an absent module means.

16 years agoTest for module 'truncl'.
Bruno Haible [Thu, 4 Oct 2007 23:41:26 +0000 (01:41 +0200)]
Test for module 'truncl'.

16 years agoNew module 'truncl'.
Bruno Haible [Thu, 4 Oct 2007 23:39:53 +0000 (01:39 +0200)]
New module 'truncl'.

16 years agoTest for module 'truncf'.
Bruno Haible [Thu, 4 Oct 2007 23:08:22 +0000 (01:08 +0200)]
Test for module 'truncf'.

16 years agoNew module 'truncf'.
Bruno Haible [Thu, 4 Oct 2007 23:06:37 +0000 (01:06 +0200)]
New module 'truncf'.

16 years agoSynthesize an EXTRA_DIST augmentation also for tests modules.
Bruno Haible [Thu, 4 Oct 2007 01:42:26 +0000 (03:42 +0200)]
Synthesize an EXTRA_DIST augmentation also for tests modules.

16 years agoTest for module 'trunc'.
Bruno Haible [Thu, 4 Oct 2007 01:23:10 +0000 (03:23 +0200)]
Test for module 'trunc'.

16 years agoNew module 'trunc'.
Bruno Haible [Thu, 4 Oct 2007 01:22:14 +0000 (03:22 +0200)]
New module 'trunc'.

16 years agoTest for __fpending function.
Bruno Haible [Wed, 3 Oct 2007 21:36:11 +0000 (23:36 +0200)]
Test for __fpending function.

16 years agoAdd support for QNX (untested).
Bruno Haible [Wed, 3 Oct 2007 20:16:40 +0000 (22:16 +0200)]
Add support for QNX (untested).

16 years agoPrefer @command as replacement of invalid @program.
Bruno Haible [Wed, 3 Oct 2007 13:09:50 +0000 (15:09 +0200)]
Prefer @command as replacement of invalid @program.

16 years agoAdd gnulib.html, generated by "make html".
Bruno Haible [Wed, 3 Oct 2007 12:07:57 +0000 (14:07 +0200)]
Add gnulib.html, generated by "make html".

16 years agoUse valid texinfo directives. @program is not a valid directive.
Bruno Haible [Wed, 3 Oct 2007 12:06:53 +0000 (14:06 +0200)]
Use valid texinfo directives. @program is not a valid directive.

16 years agoPerform one more "_.h" -> ".in.h" substitution.
Jim Meyering [Tue, 2 Oct 2007 07:57:35 +0000 (09:57 +0200)]
Perform one more "_.h" -> ".in.h" substitution.

* modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
instead of unistd_.h here, too.

16 years agoAC_LIBSOURCES([alloca.c]) must be a no-op, otherwise it breaks the 'alloca-opt'
Bruno Haible [Mon, 1 Oct 2007 23:14:09 +0000 (01:14 +0200)]
AC_LIBSOURCES([alloca.c]) must be a no-op, otherwise it breaks the 'alloca-opt'
module.

16 years agoUpdate after renamings.
Bruno Haible [Mon, 1 Oct 2007 22:43:39 +0000 (00:43 +0200)]
Update after renamings.

16 years agoRename wctype_.h to wctype.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:42:53 +0000 (00:42 +0200)]
Rename wctype_.h to wctype.in.h.

16 years agoRename wchar_.h to wchar.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:41:54 +0000 (00:41 +0200)]
Rename wchar_.h to wchar.in.h.

16 years agoRename unistd_.h to unistd.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:40:59 +0000 (00:40 +0200)]
Rename unistd_.h to unistd.in.h.

16 years agoRename time_.h to time.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:39:46 +0000 (00:39 +0200)]
Rename time_.h to time.in.h.

16 years agoRename sysexits_.h to sysexits.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:38:39 +0000 (00:38 +0200)]
Rename sysexits_.h to sysexits.in.h.

16 years agoRename sys_time_.h to sys_time.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:37:40 +0000 (00:37 +0200)]
Rename sys_time_.h to sys_time.in.h.

16 years agoRename sys_stat_.h to sys_stat.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:36:42 +0000 (00:36 +0200)]
Rename sys_stat_.h to sys_stat.in.h.

16 years agoRename sys_socket_.h to sys_socket.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:35:36 +0000 (00:35 +0200)]
Rename sys_socket_.h to sys_socket.in.h.

16 years agoRename sys_select_.h to sys_select.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:34:23 +0000 (00:34 +0200)]
Rename sys_select_.h to sys_select.in.h.

16 years agoRename string_.h to string.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:33:23 +0000 (00:33 +0200)]
Rename string_.h to string.in.h.

16 years agoRename stdlib_.h to stdlib.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:31:18 +0000 (00:31 +0200)]
Rename stdlib_.h to stdlib.in.h.

16 years agoRename stdio_.h to stdio.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:29:20 +0000 (00:29 +0200)]
Rename stdio_.h to stdio.in.h.

16 years agoRename stdint_.h to stdint.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:28:19 +0000 (00:28 +0200)]
Rename stdint_.h to stdint.in.h.

16 years agoRename stdbool_.h to stdbool.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:27:14 +0000 (00:27 +0200)]
Rename stdbool_.h to stdbool.in.h.

16 years agoRename signal_.h to signal.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:26:06 +0000 (00:26 +0200)]
Rename signal_.h to signal.in.h.

16 years agoRename search_.h to search.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:24:48 +0000 (00:24 +0200)]
Rename search_.h to search.in.h.

16 years agoRename poll_.h to poll.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:23:40 +0000 (00:23 +0200)]
Rename poll_.h to poll.in.h.

16 years agoRename netinet_in_.h to netinet_in.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:22:31 +0000 (00:22 +0200)]
Rename netinet_in_.h to netinet_in.in.h.

16 years agoRename math_.h to math.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:21:15 +0000 (00:21 +0200)]
Rename math_.h to math.in.h.

16 years agoRename locale_.h to locale.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:19:59 +0000 (00:19 +0200)]
Rename locale_.h to locale.in.h.

16 years agoRename inttypes_.h to inttypes.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:18:55 +0000 (00:18 +0200)]
Rename inttypes_.h to inttypes.in.h.

16 years agoRename iconv_.h to iconv.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:17:23 +0000 (00:17 +0200)]
Rename iconv_.h to iconv.in.h.

16 years agoRename glob_.h to glob.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:16:21 +0000 (00:16 +0200)]
Rename glob_.h to glob.in.h.

16 years agoRename getopt_.h to getopt.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:14:33 +0000 (00:14 +0200)]
Rename getopt_.h to getopt.in.h.

16 years agoRename fnmatch_.h to fnmatch.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:13:04 +0000 (00:13 +0200)]
Rename fnmatch_.h to fnmatch.in.h.

16 years agoRename float_.h to float.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:11:20 +0000 (00:11 +0200)]
Rename float_.h to float.in.h.

16 years agoRename fcntl_.h to fcntl.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:10:04 +0000 (00:10 +0200)]
Rename fcntl_.h to fcntl.in.h.

16 years agoRename dirent_.h to dirent.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:08:48 +0000 (00:08 +0200)]
Rename dirent_.h to dirent.in.h.

16 years agoRename byteswap_.h to byteswap.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:07:19 +0000 (00:07 +0200)]
Rename byteswap_.h to byteswap.in.h.

16 years agoRename argz_.h to argz.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:05:40 +0000 (00:05 +0200)]
Rename argz_.h to argz.in.h.

16 years agoRename alloca_.h to alloca.in.h.
Bruno Haible [Mon, 1 Oct 2007 22:03:53 +0000 (00:03 +0200)]
Rename alloca_.h to alloca.in.h.

16 years agoIgnore files created by makeinfo or texi2dvi.
Bruno Haible [Sun, 30 Sep 2007 23:06:50 +0000 (01:06 +0200)]
Ignore files created by makeinfo or texi2dvi.

16 years agoMake the test compile on BeOS.
Bruno Haible [Sun, 30 Sep 2007 13:54:30 +0000 (15:54 +0200)]
Make the test compile on BeOS.

16 years agoUse check_PROGRAMS instead of noinst_PROGRAMS.
Bruno Haible [Sun, 30 Sep 2007 11:15:40 +0000 (13:15 +0200)]
Use check_PROGRAMS instead of noinst_PROGRAMS.

16 years agoTweak doc of getdelim and getline declarations.
Bruno Haible [Sun, 30 Sep 2007 03:53:48 +0000 (05:53 +0200)]
Tweak doc of getdelim and getline declarations.

16 years agoChange xreadlink module to use areadlink.
Bruno Haible [Sun, 30 Sep 2007 02:17:42 +0000 (04:17 +0200)]
Change xreadlink module to use areadlink.

16 years agom4 macro indentation.
Bruno Haible [Sat, 29 Sep 2007 23:23:51 +0000 (01:23 +0200)]
m4 macro indentation.

16 years agoRemove execute permission.
Bruno Haible [Sat, 29 Sep 2007 23:06:17 +0000 (01:06 +0200)]
Remove execute permission.

16 years agoAdd CVS checkout update instructions.
Bruno Haible [Sat, 29 Sep 2007 22:59:45 +0000 (00:59 +0200)]
Add CVS checkout update instructions.

16 years agoProvide move-if-change.
Eric Blake [Fri, 28 Sep 2007 22:51:52 +0000 (16:51 -0600)]
Provide move-if-change.

* build-aux/move-if-change: New file, based on best practice
rather than any canonical upstream location.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix canonicalize loop-detection corner case.
Jim Meyering [Fri, 28 Sep 2007 21:26:49 +0000 (23:26 +0200)]
Fix canonicalize loop-detection corner case.

Do not attempt to stat the symlink values stored via seen_triple.
Without this, coreutils' tests/misc/readlink-fp-loop test would fail
on linux-2.6.18, (but not 2.6.22).
* lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
triple_compare.  The former compares dev,ino,filename, while the latter
would actually stat dirname(filename) when dev and ino were equal.
* lib/hash-triple.c: Install <string.h>.
(STREQ): Define.
(triple_compare_ino_str): New function.
* lib/hash-triple.h (triple_compare_ino_str): Declare it.

16 years agoEnforce that AC_REPLACE_FUNCS files exist.
Eric Blake [Tue, 25 Sep 2007 13:11:35 +0000 (07:11 -0600)]
Enforce that AC_REPLACE_FUNCS files exist.

* gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
override check for typos.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoGive proper credit.
Eric Blake [Fri, 28 Sep 2007 13:16:44 +0000 (07:16 -0600)]
Give proper credit.

16 years agoFix test-closein on Solaris 10.
Eric Blake [Fri, 28 Sep 2007 12:33:50 +0000 (06:33 -0600)]
Fix test-closein on Solaris 10.

* tests/test-closein.c (main): Don't assume stdin can be inherited
closed on all systems.
* tests/test-closein.sh: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years ago* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
Jim Meyering [Fri, 28 Sep 2007 08:38:32 +0000 (10:38 +0200)]
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.

16 years agoMention that the file-set and hash-triple modules come from coreutils.
Jim Meyering [Thu, 27 Sep 2007 09:39:36 +0000 (11:39 +0200)]
Mention that the file-set and hash-triple modules come from coreutils.

16 years agocanonicalize: Avoid a false-positive cycle failure.
Jim Meyering [Mon, 24 Sep 2007 11:39:37 +0000 (13:39 +0200)]
canonicalize: Avoid a false-positive cycle failure.

* modules/canonicalize (Depends-on): Add file-set and hash-triple.  Sort.
Remove cycle-check.
* lib/canonicalize.c: Include file-set.h and hash-triple.h, not cycle-check.h.
(seen_triple): New function.
(canonicalize_filename_mode): Use it instead of cycle-check.
* tests/test-canonicalize.c: Add a test for this bug.
* tests/test-canonicalize.sh: Set up and run the test.

16 years agoNew module, file-set.
Jim Meyering [Tue, 25 Sep 2007 20:17:24 +0000 (22:17 +0200)]
New module, file-set.

* modules/file-set: Define it.
* lib/file-set.c, lib/file-set.h: Implement.

16 years agoNew module, hash-triple.
Jim Meyering [Tue, 25 Sep 2007 20:11:42 +0000 (22:11 +0200)]
New module, hash-triple.

* modules/hash-triple: Define it.
* lib/hash-triple.c, lib/hash-triple.h: Implement.

16 years agoFix strerror on Interix.
Eric Blake [Tue, 25 Sep 2007 16:40:16 +0000 (10:40 -0600)]
Fix strerror on Interix.

* lib/string_.h (strerror): Declare replacement.
* doc/functions/strerror.texi (strerror): Document the Interix
shortcoming.
* modules/string (Makefile.am): Support new hooks.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
* m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
gl_FUNC_STRERROR_SEPARATE.
(gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
* lib/strerror.c (rpl_strerror): Provide replacement.
* modules/strerror (Depends-on): Add string.
(configure.ac): Detect use of module.
* tests/test-strerror.c: New file.
* modules/strerror-tests: New test module.
* modules/argp (Depends-on): Add strerror.
* modules/error (Depends-on): Likewise.
Reported by Martin Koeppe.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoExplain how to get a read-write checkout of gnulib.
Bruno Haible [Tue, 25 Sep 2007 00:05:06 +0000 (02:05 +0200)]
Explain how to get a read-write checkout of gnulib.

16 years agoRevert fpending breakage from 2007-09-08.
Eric Blake [Mon, 24 Sep 2007 22:13:39 +0000 (16:13 -0600)]
Revert fpending breakage from 2007-09-08.

* m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
__fpending.c.

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