gnulib.git
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.

16 years agotest-strtod: fix typos: s/abs/fabs/
Jim Meyering [Mon, 14 Apr 2008 08:20:22 +0000 (10:20 +0200)]
test-strtod: fix typos: s/abs/fabs/

* tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".

16 years agoAdd comment for last commit.
Bruno Haible [Sun, 13 Apr 2008 20:52:00 +0000 (22:52 +0200)]
Add comment for last commit.

16 years agoFix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
Bruno Haible [Sun, 13 Apr 2008 20:39:41 +0000 (22:39 +0200)]
Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.

16 years agoAvoid a test failure on AIX 4 and AIX 5.
Bruno Haible [Sun, 13 Apr 2008 20:17:09 +0000 (22:17 +0200)]
Avoid a test failure on AIX 4 and AIX 5.

16 years agoFix compilation failure on AIX with xlc.
Bruno Haible [Sun, 13 Apr 2008 19:58:00 +0000 (21:58 +0200)]
Fix compilation failure on AIX with xlc.

16 years agoWork around a HP-UX stdio bug.
Bruno Haible [Sun, 13 Apr 2008 19:41:13 +0000 (21:41 +0200)]
Work around a HP-UX stdio bug.

16 years agoAvoid negating 0.0L - it yields a wrong result on HP-UX/hppa.
Bruno Haible [Sun, 13 Apr 2008 19:20:17 +0000 (21:20 +0200)]
Avoid negating 0.0L - it yields a wrong result on HP-UX/hppa.

16 years agoMake truncl work on OSF/1 4.0.
Bruno Haible [Sun, 13 Apr 2008 18:43:12 +0000 (20:43 +0200)]
Make truncl work on OSF/1 4.0.

16 years agoAvoid trailing comma, for picky AIX compiler.
Bruno Haible [Sun, 13 Apr 2008 17:33:56 +0000 (19:33 +0200)]
Avoid trailing comma, for picky AIX compiler.

16 years agoWork around a HP cc compiler bug.
Bruno Haible [Sun, 13 Apr 2008 17:25:13 +0000 (19:25 +0200)]
Work around a HP cc compiler bug.

16 years agoCheck for libintl.h. Needed for HAVE_LIBINTL_H.
Bruno Haible [Sun, 13 Apr 2008 16:35:13 +0000 (18:35 +0200)]
Check for libintl.h. Needed for HAVE_LIBINTL_H.

16 years agoRemove stray semicolon.
Bruno Haible [Sun, 13 Apr 2008 16:29:05 +0000 (18:29 +0200)]
Remove stray semicolon.

16 years agotest-quotearg needs to be linked against libintl (at least on Solaris).
Bruno Haible [Sun, 13 Apr 2008 16:15:04 +0000 (18:15 +0200)]
test-quotearg needs to be linked against libintl (at least on Solaris).

16 years agoOverride <sys/socket.h> when it exists but is incomplete.
Bruno Haible [Sun, 13 Apr 2008 12:56:42 +0000 (14:56 +0200)]
Override <sys/socket.h> when it exists but is incomplete.

16 years agoAvoid warning on EMX.
Bruno Haible [Sun, 13 Apr 2008 10:57:48 +0000 (12:57 +0200)]
Avoid warning on EMX.

16 years agoAvoid warning on emx+gcc.
Bruno Haible [Sun, 13 Apr 2008 10:50:49 +0000 (12:50 +0200)]
Avoid warning on emx+gcc.

16 years agoEnable the fpucw handling also for x86_64.
Bruno Haible [Sun, 13 Apr 2008 00:26:28 +0000 (02:26 +0200)]
Enable the fpucw handling also for x86_64.

16 years agoUpdate ChangeLog entry: the problem on emx+gcc was a different one.
Bruno Haible [Sat, 12 Apr 2008 17:56:55 +0000 (19:56 +0200)]
Update ChangeLog entry: the problem on emx+gcc was a different one.

16 years agoFix link failure on Solaris 10/x86 with gcc.
Bruno Haible [Sat, 12 Apr 2008 17:53:25 +0000 (19:53 +0200)]
Fix link failure on Solaris 10/x86 with gcc.

16 years agoOverride the system isnanf also on IRIX 6.5 with gcc.
Bruno Haible [Sat, 12 Apr 2008 16:33:53 +0000 (18:33 +0200)]
Override the system isnanf also on IRIX 6.5 with gcc.