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

16 years ago* m4/math_h.m4 (gl_MATH_H): Fix typos.
Jim Meyering [Sat, 12 Apr 2008 15:25:00 +0000 (17:25 +0200)]
* m4/math_h.m4 (gl_MATH_H): Fix typos.

16 years agoFix mistake in EMX port.
Bruno Haible [Sat, 12 Apr 2008 15:10:44 +0000 (17:10 +0200)]
Fix mistake in EMX port.

16 years agoWork around Solaris 10 math.h bug.
Eric Blake [Sat, 12 Apr 2008 13:22:40 +0000 (07:22 -0600)]
Work around Solaris 10 math.h bug.

* m4/math_h.m4 (gl_MATH_H): Check for bug.
(gl_MATH_H_DEFAULTS): Set up default.
* modules/math (Makefile.am): Replace new indicators.
* lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
* tests/test-math.c (main): Test this.
* m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
* doc/posix-headers/math.texi (math.h): Mention bug.
Reported by Nelson H. F. Beebe and Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdapt to future versions of Apple GCC.
Bruno Haible [Sat, 12 Apr 2008 01:26:13 +0000 (03:26 +0200)]
Adapt to future versions of Apple GCC.

16 years agoAvoid test failure on IRIX.
Bruno Haible [Sat, 12 Apr 2008 00:34:33 +0000 (02:34 +0200)]
Avoid test failure on IRIX.

16 years agoLink test-strsignal with libintl.
Bruno Haible [Sat, 12 Apr 2008 00:03:40 +0000 (02:03 +0200)]
Link test-strsignal with libintl.

16 years agoLink test-getaddrinfo with libintl.
Bruno Haible [Fri, 11 Apr 2008 23:58:40 +0000 (01:58 +0200)]
Link test-getaddrinfo with libintl.

16 years agoFix two compilation errors.
Bruno Haible [Fri, 11 Apr 2008 23:34:34 +0000 (01:34 +0200)]
Fix two compilation errors.

16 years agoInclude stdbool, for 'true' and 'false'.
Bruno Haible [Fri, 11 Apr 2008 23:07:35 +0000 (01:07 +0200)]
Include stdbool, for 'true' and 'false'.

16 years agoFix compilation error with IRIX 6.5 cc.
Bruno Haible [Fri, 11 Apr 2008 22:24:39 +0000 (00:24 +0200)]
Fix compilation error with IRIX 6.5 cc.

16 years agoAvoid compile failure on OS/2.
Eric Blake [Fri, 11 Apr 2008 16:22:22 +0000 (10:22 -0600)]
Avoid compile failure on OS/2.

* lib/regex_internal.h (internal_function): Disable optimization
on OS/2 (__EMX__), where it caused compiler error.
Reported by Elbert Pol.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFlush the standard error stream before aborting.
Bruno Haible [Fri, 11 Apr 2008 14:31:39 +0000 (16:31 +0200)]
Flush the standard error stream before aborting.

16 years agoTweak comment.
Bruno Haible [Fri, 11 Apr 2008 13:57:56 +0000 (15:57 +0200)]
Tweak comment.

16 years agoFix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
Bruno Haible [Fri, 11 Apr 2008 13:13:24 +0000 (15:13 +0200)]
Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.

16 years agoFix a link error on MacOS X.
Bruno Haible [Fri, 11 Apr 2008 11:29:33 +0000 (13:29 +0200)]
Fix a link error on MacOS X.

16 years agoMerge branch 'master' of ssh://haible@git.sv.gnu.org/srv/git/gnulib
Bruno Haible [Fri, 11 Apr 2008 10:01:17 +0000 (12:01 +0200)]
Merge branch 'master' of ssh://haible@git.sv.gnu.org/srv/git/gnulib

16 years agoMake gc_random work under Windows.
Simon Josefsson [Fri, 11 Apr 2008 07:16:11 +0000 (09:16 +0200)]
Make gc_random work under Windows.
Based on patch from Adam Strzelecki <ono@java.pl> in
<http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.