gnulib.git
16 years agovc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
Jim Meyering [Wed, 30 Apr 2008 09:36:06 +0000 (11:36 +0200)]
vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash

* build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
take more than one file argument, so .  Add quotes, just in case $dir
ever contains a shell meta-character.

16 years agoOptimize getndelim2 to use block operations when possible.
Eric Blake [Tue, 29 Apr 2008 17:59:35 +0000 (11:59 -0600)]
Optimize getndelim2 to use block operations when possible.

* modules/getndelim2 (Depends-on): Add stdbool, freadptr,
freadseek, and memchr2.
* lib/getndelim2.c (getndelim2): Use them for block reads.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoEnsure the system declares inet_ntop, inet_pton when possible.
Bruno Haible [Tue, 29 Apr 2008 23:27:49 +0000 (01:27 +0200)]
Ensure the system declares inet_ntop, inet_pton when possible.

16 years agoWhen the is more than one match in a block, match all of them.
Jim Meyering [Tue, 29 Apr 2008 20:04:47 +0000 (22:04 +0200)]
When the is more than one match in a block, match all of them.

* build-aux/useless-if-before-free: Iterate through each block
until there are no more matches.

16 years agoFix broken useless-if-before-free script.
Jim Meyering [Tue, 29 Apr 2008 18:02:22 +0000 (20:02 +0200)]
Fix broken useless-if-before-free script.

* build-aux/useless-if-before-free: Fix typo: missing "?" after
the expression to match cast of argument to free-like function.

16 years agoMention Simon's recent changes.
Bruno Haible [Tue, 29 Apr 2008 17:47:39 +0000 (19:47 +0200)]
Mention Simon's recent changes.

16 years agoUse new header.
Eric Blake [Tue, 29 Apr 2008 17:00:46 +0000 (11:00 -0600)]
Use new header.

* lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid test segfault on x86_64 due to lack of inet_ntop declaration.
Jim Meyering [Tue, 29 Apr 2008 16:48:40 +0000 (18:48 +0200)]
Avoid test segfault on x86_64 due to lack of inet_ntop declaration.

* tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
by gnulib to exist and to declare e.g., inet_ntop.
Don't include "inet_ntop.h", now removed.

16 years ago* m4/arpa_inet_h.m4: Remove trailing blanks.
Jim Meyering [Tue, 29 Apr 2008 16:00:32 +0000 (18:00 +0200)]
* m4/arpa_inet_h.m4: Remove trailing blanks.

16 years agoSilence valgrind on safe reads beyond potential array bounds.
Eric Blake [Tue, 29 Apr 2008 12:08:44 +0000 (06:08 -0600)]
Silence valgrind on safe reads beyond potential array bounds.

* lib/rawmemchr.valgrind: New file.
* lib/strchrnul.valgrind: Likewise.
* modules/rawmemchr (Files): Distribute new file.
* modules/strchrnul (Files): Likewise.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoEnable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to...
Bruno Haible [Tue, 29 Apr 2008 11:37:51 +0000 (13:37 +0200)]
Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.

16 years ago* modules/mkdir (License): Re-license as LGPLv2+.
Jim Meyering [Tue, 29 Apr 2008 11:15:02 +0000 (13:15 +0200)]
* modules/mkdir (License): Re-license as LGPLv2+.

16 years agoSet the module maintainer.
Bruno Haible [Tue, 29 Apr 2008 10:24:35 +0000 (12:24 +0200)]
Set the module maintainer.

16 years agoMake arpa/inet module build under MinGW.
Simon Josefsson [Tue, 29 Apr 2008 09:26:41 +0000 (11:26 +0200)]
Make arpa/inet module build under MinGW.

16 years agoTest getndelim2.
Eric Blake [Tue, 29 Apr 2008 03:36:17 +0000 (21:36 -0600)]
Test getndelim2.

* modules/getndelim2-tests: New file.
* tests/test-getndelim2.c: Likewise.
* lib/getndelim2.c (getndelim2): Never return 0.  Lock the
stream.
* m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument rawmemchr.
Eric Blake [Tue, 29 Apr 2008 02:16:06 +0000 (20:16 -0600)]
Document rawmemchr.

* MODULES.html.sh: Document new module.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoEnsure sane coding of ChangeLog.
Eric Blake [Tue, 29 Apr 2008 02:08:36 +0000 (20:08 -0600)]
Ensure sane coding of ChangeLog.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoUse 'raise'.
Bruno Haible [Tue, 29 Apr 2008 01:04:35 +0000 (03:04 +0200)]
Use 'raise'.

16 years agoExpect rpmatch to be declared.
Bruno Haible [Tue, 29 Apr 2008 01:00:57 +0000 (03:00 +0200)]
Expect rpmatch to be declared.

16 years agoDeclare rpmatch.
Bruno Haible [Tue, 29 Apr 2008 00:55:59 +0000 (02:55 +0200)]
Declare rpmatch.

16 years agoChange rpmatch to use nl_langinfo when appropriate.
Bruno Haible [Tue, 29 Apr 2008 00:37:52 +0000 (02:37 +0200)]
Change rpmatch to use nl_langinfo when appropriate.

16 years agoAdd rawmemchr module, matching glibc.
Eric Blake [Mon, 28 Apr 2008 23:08:43 +0000 (17:08 -0600)]
Add rawmemchr module, matching glibc.

* modules/string (Makefile.am): New indicator.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
* lib/string.in.h (rawmemchr): Declare when appropriate.
* modules/rawmemchr: New file.
* m4/rawmemchr.m4: Likewise.
* lib/rawmemchr.c: Likewise.
* modules/rawmemchr-tests: Likewise.
* tests/test-rawmemchr.c: Likewise.
* doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
module.
* modules/strchrnul (Depends-on): Add rawmemchr.
* lib/strchrnul.c (strchrnul): Optimize a corner case.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoWhitespace cleanup.
Eric Blake [Mon, 28 Apr 2008 23:02:16 +0000 (17:02 -0600)]
Whitespace cleanup.

* tests/test-strchrnul.c: Reindent.
* lib/strchrnul.c: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoOptimize and test strchrnul.
Eric Blake [Mon, 28 Apr 2008 21:43:04 +0000 (15:43 -0600)]
Optimize and test strchrnul.

* lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
* modules/strchrnul-tests: New file.
* tests/test-strchrnul.c: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years ago* .gitignore: Ignore bad patch applications.
Eric Blake [Mon, 28 Apr 2008 21:18:09 +0000 (15:18 -0600)]
* .gitignore: Ignore bad patch applications.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoRemove intprops dependency.
Eric Blake [Mon, 28 Apr 2008 16:24:14 +0000 (10:24 -0600)]
Remove intprops dependency.

* modules/memchr (Depends-on): Remove intprops.
* modules/memrchr (Depends-on): Likewise.
* modules/memchr2 (Depends-on): Likewise.
* lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
* lib/memrchr.c (__memrchr): Likewise.
* lib/memrchr2.c (memchr2): Likewise.
Reported by Simon Josefsson.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMove AC_REQUIRE([AC_C_INLINE]) to top.
Simon Josefsson [Mon, 28 Apr 2008 18:08:35 +0000 (20:08 +0200)]
Move AC_REQUIRE([AC_C_INLINE]) to top.
Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.

16 years agoMove inet_ntop and inet_pton declarations to arpa/inet.h.
Simon Josefsson [Mon, 28 Apr 2008 15:40:25 +0000 (17:40 +0200)]
Move inet_ntop and inet_pton declarations to arpa/inet.h.

16 years agoFix proper win32 checks and use of inline for setsockopt.
Simon Josefsson [Mon, 28 Apr 2008 14:38:34 +0000 (16:38 +0200)]
Fix proper win32 checks and use of inline for setsockopt.
Reported by Bruno Haible  <bruno@clisp.org>.

16 years agoMention a problem on mingw.
Bruno Haible [Mon, 28 Apr 2008 09:24:51 +0000 (11:24 +0200)]
Mention a problem on mingw.

16 years agoMake test-stat-time pass on mingw.
Bruno Haible [Sun, 27 Apr 2008 22:12:56 +0000 (00:12 +0200)]
Make test-stat-time pass on mingw.

16 years agoAdd some comments.
Bruno Haible [Sun, 27 Apr 2008 21:30:18 +0000 (23:30 +0200)]
Add some comments.

16 years agoStricter test whether isnanl works.
Bruno Haible [Sun, 27 Apr 2008 20:51:28 +0000 (22:51 +0200)]
Stricter test whether isnanl works.

16 years agoMake test-yesno.sh work on mingw.
Bruno Haible [Sun, 27 Apr 2008 14:22:30 +0000 (16:22 +0200)]
Make test-yesno.sh work on mingw.

16 years agoFix 'isfinite' on x86, x86_64, ia64 platforms.
Bruno Haible [Sun, 27 Apr 2008 12:07:20 +0000 (14:07 +0200)]
Fix 'isfinite' on x86, x86_64, ia64 platforms.

16 years agoAllow local renaming in config.h.
Bruno Haible [Sun, 27 Apr 2008 10:41:21 +0000 (12:41 +0200)]
Allow local renaming in config.h.

16 years agoAvoid gcc warnings.
Bruno Haible [Sun, 27 Apr 2008 10:37:28 +0000 (12:37 +0200)]
Avoid gcc warnings.

16 years agoOptimize and test memrchr.
Eric Blake [Sun, 27 Apr 2008 03:26:10 +0000 (21:26 -0600)]
Optimize and test memrchr.

* modules/memrchr (Depends-on): Add intprops.
* lib/memrchr.c (__memrchr): Avoid false positives in loop.
* modules/memrchr-tests: New file.
* tests/test-memrchr.c: New file.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoOops, fix mistake in third-to-last commit.
Bruno Haible [Sat, 26 Apr 2008 17:42:00 +0000 (19:42 +0200)]
Oops, fix mistake in third-to-last commit.

16 years agoAdd tentative support for DragonFly BSD.
Bruno Haible [Sat, 26 Apr 2008 16:58:00 +0000 (18:58 +0200)]
Add tentative support for DragonFly BSD.

16 years agoNew private include file lib/stdio-impl.h.
Bruno Haible [Sat, 26 Apr 2008 16:12:05 +0000 (18:12 +0200)]
New private include file lib/stdio-impl.h.

16 years agoNew private include file lib/stdio-impl.h.
Bruno Haible [Sat, 26 Apr 2008 16:10:54 +0000 (18:10 +0200)]
New private include file lib/stdio-impl.h.

16 years agoFix indentation.
Bruno Haible [Sat, 26 Apr 2008 14:48:23 +0000 (16:48 +0200)]
Fix indentation.

16 years agoPut system dependent routines into inline functions.
Bruno Haible [Sat, 26 Apr 2008 14:47:30 +0000 (16:47 +0200)]
Put system dependent routines into inline functions.

16 years agoPut system dependent routines into inline functions.
Bruno Haible [Sat, 26 Apr 2008 14:42:17 +0000 (16:42 +0200)]
Put system dependent routines into inline functions.

16 years agoWork around limitation of an old 'tr' program on Solaris.
Bruno Haible [Sat, 26 Apr 2008 12:14:12 +0000 (14:14 +0200)]
Work around limitation of an old 'tr' program on Solaris.

16 years agoTests for module 'memchr'.
Bruno Haible [Sat, 26 Apr 2008 10:43:40 +0000 (12:43 +0200)]
Tests for module 'memchr'.

16 years agoOptimize parallel detection of matching bytes.
Bruno Haible [Sat, 26 Apr 2008 10:38:15 +0000 (12:38 +0200)]
Optimize parallel detection of matching bytes.

16 years agoDefine memchr, not __memchr.
Bruno Haible [Sat, 26 Apr 2008 10:31:13 +0000 (12:31 +0200)]
Define memchr, not __memchr.

16 years agoSuperficial improvements and comments.
Bruno Haible [Sat, 26 Apr 2008 09:31:20 +0000 (11:31 +0200)]
Superficial improvements and comments.

16 years agoUse native fstatat on cygwin 1.7.0.
Eric Blake [Fri, 25 Apr 2008 20:52:38 +0000 (14:52 -0600)]
Use native fstatat on cygwin 1.7.0.

* m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
first.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoautoupdate
Karl Berry [Fri, 25 Apr 2008 18:42:13 +0000 (11:42 -0700)]
autoupdate

16 years agoautoupdate
Karl Berry [Thu, 24 Apr 2008 13:38:34 +0000 (06:38 -0700)]
autoupdate

16 years agoImprove memchr2 performance.
Eric Blake [Wed, 23 Apr 2008 21:03:40 +0000 (15:03 -0600)]
Improve memchr2 performance.

* lib/memchr2.c (memchr2): Further optimize parallel detection of
NUL bytes.
* modules/memchr2 (Depends-on): Use intprops.h.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMake setsockopt replacement more typesafe.
Simon Josefsson [Wed, 23 Apr 2008 06:09:44 +0000 (08:09 +0200)]
Make setsockopt replacement more typesafe.

16 years agoAdd file, was missing from last commit.
Simon Josefsson [Wed, 23 Apr 2008 06:02:48 +0000 (08:02 +0200)]
Add file, was missing from last commit.

16 years agoAdd inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson [Wed, 23 Apr 2008 05:59:31 +0000 (07:59 +0200)]
Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.

16 years ago* modules/verify (License): Re-license as LGPLv2+.
Jim Meyering [Tue, 22 Apr 2008 17:17:58 +0000 (19:17 +0200)]
* modules/verify (License): Re-license as LGPLv2+.

16 years agoCast fourth argument to setsockopt on MinGW.
Simon Josefsson [Tue, 22 Apr 2008 08:57:31 +0000 (10:57 +0200)]
Cast fourth argument to setsockopt on MinGW.

16 years agoGive attribution.
Bruno Haible [Mon, 21 Apr 2008 23:58:02 +0000 (01:58 +0200)]
Give attribution.

16 years agoReplace the isw* functions on Linux libc5.
Bruno Haible [Mon, 21 Apr 2008 23:56:52 +0000 (01:56 +0200)]
Replace the isw* functions on Linux libc5.

16 years agoFix typo in last commit.
Bruno Haible [Mon, 21 Apr 2008 23:19:07 +0000 (01:19 +0200)]
Fix typo in last commit.

16 years agoFix test failures on mingw.
Bruno Haible [Mon, 21 Apr 2008 22:43:52 +0000 (00:43 +0200)]
Fix test failures on mingw.

16 years agoFix test failure on mingw.
Bruno Haible [Mon, 21 Apr 2008 22:31:48 +0000 (00:31 +0200)]
Fix test failure on mingw.

16 years agoFix mistake in last commit.
Bruno Haible [Mon, 21 Apr 2008 22:16:03 +0000 (00:16 +0200)]
Fix mistake in last commit.

16 years agoFix conflict between modules 'canonicalize' and 'canonicalize-lgpl' differently.
Bruno Haible [Mon, 21 Apr 2008 22:01:17 +0000 (00:01 +0200)]
Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl' differently.

16 years agoFix compilation errors related to rpl_mkdir on mingw.
Bruno Haible [Mon, 21 Apr 2008 21:57:39 +0000 (23:57 +0200)]
Fix compilation errors related to rpl_mkdir on mingw.

16 years agoPort to native Windows platforms.
Bruno Haible [Mon, 21 Apr 2008 21:47:45 +0000 (23:47 +0200)]
Port to native Windows platforms.

16 years agoFix compilation error on mingw.
Bruno Haible [Mon, 21 Apr 2008 21:45:08 +0000 (23:45 +0200)]
Fix compilation error on mingw.

16 years agoWork around preprocessors that don't handle UINTMAX_MAX.
Eric Blake [Mon, 21 Apr 2008 15:57:07 +0000 (09:57 -0600)]
Work around preprocessors that don't handle UINTMAX_MAX.

* lib/memchr2.c (memchr2): Avoid embedded #if.
Reported by Alain Guibert, fix suggested by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd a ChangeLog entry for an already committed change to lib/localename.c.
Bruno Haible [Mon, 21 Apr 2008 15:38:59 +0000 (17:38 +0200)]
Add a ChangeLog entry for an already committed change to lib/localename.c.

16 years ago(strftime): Explain better Windows incompatibility.
Simon Josefsson [Mon, 21 Apr 2008 09:03:51 +0000 (11:03 +0200)]
(strftime): Explain better Windows incompatibility.
Suggested by Micah Cowan <micah@cowan.name>.

16 years agoFix module dependencies.
Bruno Haible [Sun, 20 Apr 2008 18:05:53 +0000 (20:05 +0200)]
Fix module dependencies.

16 years agoRemove trailing spaces.
Bruno Haible [Sun, 20 Apr 2008 18:05:25 +0000 (20:05 +0200)]
Remove trailing spaces.

16 years agoFix test failure on platforms with non-GNU iconv.
Bruno Haible [Sun, 20 Apr 2008 18:02:43 +0000 (20:02 +0200)]
Fix test failure on platforms with non-GNU iconv.

16 years agoThe test was a little too strict.
Bruno Haible [Sun, 20 Apr 2008 17:57:36 +0000 (19:57 +0200)]
The test was a little too strict.

16 years agoWork around roundf() bug on mingw.
Bruno Haible [Sun, 20 Apr 2008 14:15:49 +0000 (16:15 +0200)]
Work around roundf() bug on mingw.

16 years agoFix link error on mingw.
Bruno Haible [Sun, 20 Apr 2008 11:15:16 +0000 (13:15 +0200)]
Fix link error on mingw.

16 years ago<sys/stat.h> must provide the nlink_t type.
Bruno Haible [Sun, 20 Apr 2008 07:53:38 +0000 (09:53 +0200)]
<sys/stat.h> must provide the nlink_t type.

16 years agoDocument snprintf bug on Linux libc5.
Bruno Haible [Sun, 20 Apr 2008 07:51:46 +0000 (09:51 +0200)]
Document snprintf bug on Linux libc5.

16 years agoWork around snprintf bug on Linux libc5.
Bruno Haible [Sat, 19 Apr 2008 19:42:16 +0000 (21:42 +0200)]
Work around snprintf bug on Linux libc5.

16 years agoMake floorlog10 function more precise.
Bruno Haible [Sat, 19 Apr 2008 15:55:05 +0000 (17:55 +0200)]
Make floorlog10 function more precise.

16 years agoFix rounding when a precision is given.
Bruno Haible [Sat, 19 Apr 2008 15:26:36 +0000 (17:26 +0200)]
Fix rounding when a precision is given.

16 years agoupdate from texinfo
Karl Berry [Fri, 18 Apr 2008 17:41:18 +0000 (10:41 -0700)]
update from texinfo

16 years agodoc/posix-functions/strftime.texi (strftime): Clarify platform.
Simon Josefsson [Fri, 18 Apr 2008 05:57:51 +0000 (07:57 +0200)]
doc/posix-functions/strftime.texi (strftime): Clarify platform.
Suggested by Bruno Haible <bruno@clisp.org>.

16 years agoProvide missing no-op definitions for the dummy implementation.
Bruno Haible [Thu, 17 Apr 2008 22:06:33 +0000 (00:06 +0200)]
Provide missing no-op definitions for the dummy implementation.

16 years agoCorrect attribution of previous patch.
Eric Blake [Thu, 17 Apr 2008 12:13:17 +0000 (06:13 -0600)]
Correct attribution of previous patch.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix typo.
Simon Josefsson [Thu, 17 Apr 2008 11:18:42 +0000 (13:18 +0200)]
Fix typo.

16 years agoMention that strftime %e doesn't work under Windows.
Simon Josefsson [Thu, 17 Apr 2008 11:16:54 +0000 (13:16 +0200)]
Mention that strftime %e doesn't work under Windows.

16 years agoUpdate the list of Windows locales.
Bruno Haible [Thu, 17 Apr 2008 02:51:06 +0000 (04:51 +0200)]
Update the list of Windows locales.

16 years agoUpdate after Microsoft change the value if SUBLANG_SINDHI_PAKISTAN.
Bruno Haible [Thu, 17 Apr 2008 02:35:33 +0000 (04:35 +0200)]
Update after Microsoft change the value if SUBLANG_SINDHI_PAKISTAN.

16 years agoAdjust strtod detection to catch glibc 2.7 bug.
Eric Blake [Thu, 17 Apr 2008 01:28:29 +0000 (19:28 -0600)]
Adjust strtod detection to catch glibc 2.7 bug.

* m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
Reported by BuraphaLinux Server.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd tentative support for Linux libc5.
Bruno Haible [Thu, 17 Apr 2008 00:01:23 +0000 (02:01 +0200)]
Add tentative support for Linux libc5.

16 years agoDefine module indicator, used by math.in.h.
Bruno Haible [Wed, 16 Apr 2008 01:46:36 +0000 (03:46 +0200)]
Define module indicator, used by math.in.h.

16 years agoRemove unused variables.
Bruno Haible [Wed, 16 Apr 2008 01:39:15 +0000 (03:39 +0200)]
Remove unused variables.

16 years agoFix bug in error handling code.
Bruno Haible [Wed, 16 Apr 2008 01:35:29 +0000 (03:35 +0200)]
Fix bug in error handling code.

16 years agoFix use of isspace() function.
Bruno Haible [Wed, 16 Apr 2008 01:26:46 +0000 (03:26 +0200)]
Fix use of isspace() function.

16 years agofix typos in mathl
Paolo Bonzini [Tue, 15 Apr 2008 13:25:38 +0000 (15:25 +0200)]
fix typos in mathl

2008-04-15  Paolo Bonzini  <bonzini@gnu.org>

* lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
to 0.
* lib/trigl.c (ieee754_rem_pio2l): Fix range checks.

16 years agoautoupdate
Karl Berry [Tue, 15 Apr 2008 13:24:27 +0000 (06:24 -0700)]
autoupdate

16 years agoFix underquoting of AC_LANG_PROGRAM arguments.
Bruno Haible [Mon, 14 Apr 2008 23:52:03 +0000 (01:52 +0200)]
Fix underquoting of AC_LANG_PROGRAM arguments.