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>
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.
Jim Meyering [Tue, 29 Apr 2008 11:15:02 +0000 (13:15 +0200)]
* modules/mkdir (License): Re-license as LGPLv2+.
Bruno Haible [Tue, 29 Apr 2008 10:24:35 +0000 (12:24 +0200)]
Set the module maintainer.
Simon Josefsson [Tue, 29 Apr 2008 09:26:41 +0000 (11:26 +0200)]
Make arpa/inet module build under MinGW.
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>
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>
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>
Bruno Haible [Tue, 29 Apr 2008 01:04:35 +0000 (03:04 +0200)]
Use 'raise'.
Bruno Haible [Tue, 29 Apr 2008 01:00:57 +0000 (03:00 +0200)]
Expect rpmatch to be declared.
Bruno Haible [Tue, 29 Apr 2008 00:55:59 +0000 (02:55 +0200)]
Declare rpmatch.
Bruno Haible [Tue, 29 Apr 2008 00:37:52 +0000 (02:37 +0200)]
Change rpmatch to use nl_langinfo when appropriate.
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>
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>
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>
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>
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>
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>.
Simon Josefsson [Mon, 28 Apr 2008 15:40:25 +0000 (17:40 +0200)]
Move inet_ntop and inet_pton declarations to arpa/inet.h.
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>.
Bruno Haible [Mon, 28 Apr 2008 09:24:51 +0000 (11:24 +0200)]
Mention a problem on mingw.
Bruno Haible [Sun, 27 Apr 2008 22:12:56 +0000 (00:12 +0200)]
Make test-stat-time pass on mingw.
Bruno Haible [Sun, 27 Apr 2008 21:30:18 +0000 (23:30 +0200)]
Add some comments.
Bruno Haible [Sun, 27 Apr 2008 20:51:28 +0000 (22:51 +0200)]
Stricter test whether isnanl works.
Bruno Haible [Sun, 27 Apr 2008 14:22:30 +0000 (16:22 +0200)]
Make test-yesno.sh work on mingw.
Bruno Haible [Sun, 27 Apr 2008 12:07:20 +0000 (14:07 +0200)]
Fix 'isfinite' on x86, x86_64, ia64 platforms.
Bruno Haible [Sun, 27 Apr 2008 10:41:21 +0000 (12:41 +0200)]
Allow local renaming in config.h.
Bruno Haible [Sun, 27 Apr 2008 10:37:28 +0000 (12:37 +0200)]
Avoid gcc warnings.
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>
Bruno Haible [Sat, 26 Apr 2008 17:42:00 +0000 (19:42 +0200)]
Oops, fix mistake in third-to-last commit.
Bruno Haible [Sat, 26 Apr 2008 16:58:00 +0000 (18:58 +0200)]
Add tentative support for DragonFly BSD.
Bruno Haible [Sat, 26 Apr 2008 16:12:05 +0000 (18:12 +0200)]
New 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.
Bruno Haible [Sat, 26 Apr 2008 14:48:23 +0000 (16:48 +0200)]
Fix indentation.
Bruno Haible [Sat, 26 Apr 2008 14:47:30 +0000 (16:47 +0200)]
Put 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.
Bruno Haible [Sat, 26 Apr 2008 12:14:12 +0000 (14:14 +0200)]
Work around limitation of an old 'tr' program on Solaris.
Bruno Haible [Sat, 26 Apr 2008 10:43:40 +0000 (12:43 +0200)]
Tests for module 'memchr'.
Bruno Haible [Sat, 26 Apr 2008 10:38:15 +0000 (12:38 +0200)]
Optimize parallel detection of matching bytes.
Bruno Haible [Sat, 26 Apr 2008 10:31:13 +0000 (12:31 +0200)]
Define memchr, not __memchr.
Bruno Haible [Sat, 26 Apr 2008 09:31:20 +0000 (11:31 +0200)]
Superficial improvements and comments.
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>
Karl Berry [Fri, 25 Apr 2008 18:42:13 +0000 (11:42 -0700)]
autoupdate
Karl Berry [Thu, 24 Apr 2008 13:38:34 +0000 (06:38 -0700)]
autoupdate
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>
Simon Josefsson [Wed, 23 Apr 2008 06:09:44 +0000 (08:09 +0200)]
Make setsockopt replacement more typesafe.
Simon Josefsson [Wed, 23 Apr 2008 06:02:48 +0000 (08:02 +0200)]
Add file, was missing from last commit.
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.
Jim Meyering [Tue, 22 Apr 2008 17:17:58 +0000 (19:17 +0200)]
* modules/verify (License): Re-license as LGPLv2+.
Simon Josefsson [Tue, 22 Apr 2008 08:57:31 +0000 (10:57 +0200)]
Cast fourth argument to setsockopt on MinGW.
Bruno Haible [Mon, 21 Apr 2008 23:58:02 +0000 (01:58 +0200)]
Give attribution.
Bruno Haible [Mon, 21 Apr 2008 23:56:52 +0000 (01:56 +0200)]
Replace the isw* functions on Linux libc5.
Bruno Haible [Mon, 21 Apr 2008 23:19:07 +0000 (01:19 +0200)]
Fix typo in last commit.
Bruno Haible [Mon, 21 Apr 2008 22:43:52 +0000 (00:43 +0200)]
Fix test failures on mingw.
Bruno Haible [Mon, 21 Apr 2008 22:31:48 +0000 (00:31 +0200)]
Fix test failure on mingw.
Bruno Haible [Mon, 21 Apr 2008 22:16:03 +0000 (00:16 +0200)]
Fix mistake in last commit.
Bruno Haible [Mon, 21 Apr 2008 22:01:17 +0000 (00:01 +0200)]
Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl' differently.
Bruno Haible [Mon, 21 Apr 2008 21:57:39 +0000 (23:57 +0200)]
Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible [Mon, 21 Apr 2008 21:47:45 +0000 (23:47 +0200)]
Port to native Windows platforms.
Bruno Haible [Mon, 21 Apr 2008 21:45:08 +0000 (23:45 +0200)]
Fix compilation error on mingw.
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>
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.
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>.
Bruno Haible [Sun, 20 Apr 2008 18:05:53 +0000 (20:05 +0200)]
Fix module dependencies.
Bruno Haible [Sun, 20 Apr 2008 18:05:25 +0000 (20:05 +0200)]
Remove trailing spaces.
Bruno Haible [Sun, 20 Apr 2008 18:02:43 +0000 (20:02 +0200)]
Fix test failure on platforms with non-GNU iconv.
Bruno Haible [Sun, 20 Apr 2008 17:57:36 +0000 (19:57 +0200)]
The test was a little too strict.
Bruno Haible [Sun, 20 Apr 2008 14:15:49 +0000 (16:15 +0200)]
Work around roundf() bug on mingw.
Bruno Haible [Sun, 20 Apr 2008 11:15:16 +0000 (13:15 +0200)]
Fix link error on mingw.
Bruno Haible [Sun, 20 Apr 2008 07:53:38 +0000 (09:53 +0200)]
<sys/stat.h> must provide the nlink_t type.
Bruno Haible [Sun, 20 Apr 2008 07:51:46 +0000 (09:51 +0200)]
Document 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.
Bruno Haible [Sat, 19 Apr 2008 15:55:05 +0000 (17:55 +0200)]
Make floorlog10 function more precise.
Bruno Haible [Sat, 19 Apr 2008 15:26:36 +0000 (17:26 +0200)]
Fix rounding when a precision is given.
Karl Berry [Fri, 18 Apr 2008 17:41:18 +0000 (10:41 -0700)]
update from texinfo
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>.
Bruno Haible [Thu, 17 Apr 2008 22:06:33 +0000 (00:06 +0200)]
Provide missing no-op definitions for the dummy implementation.
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>
Simon Josefsson [Thu, 17 Apr 2008 11:18:42 +0000 (13:18 +0200)]
Fix typo.
Simon Josefsson [Thu, 17 Apr 2008 11:16:54 +0000 (13:16 +0200)]
Mention that strftime %e doesn't work under Windows.
Bruno Haible [Thu, 17 Apr 2008 02:51:06 +0000 (04:51 +0200)]
Update the list of Windows locales.
Bruno Haible [Thu, 17 Apr 2008 02:35:33 +0000 (04:35 +0200)]
Update after Microsoft change the value if SUBLANG_SINDHI_PAKISTAN.
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>
Bruno Haible [Thu, 17 Apr 2008 00:01:23 +0000 (02:01 +0200)]
Add tentative support for Linux libc5.
Bruno Haible [Wed, 16 Apr 2008 01:46:36 +0000 (03:46 +0200)]
Define module indicator, used by math.in.h.
Bruno Haible [Wed, 16 Apr 2008 01:39:15 +0000 (03:39 +0200)]
Remove unused variables.
Bruno Haible [Wed, 16 Apr 2008 01:35:29 +0000 (03:35 +0200)]
Fix bug in error handling code.
Bruno Haible [Wed, 16 Apr 2008 01:26:46 +0000 (03:26 +0200)]
Fix use of isspace() function.
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.
Karl Berry [Tue, 15 Apr 2008 13:24:27 +0000 (06:24 -0700)]
autoupdate
Bruno Haible [Mon, 14 Apr 2008 23:52:03 +0000 (01:52 +0200)]
Fix underquoting of AC_LANG_PROGRAM arguments.
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".
Bruno Haible [Sun, 13 Apr 2008 20:52:00 +0000 (22:52 +0200)]
Add comment for last commit.
Bruno Haible [Sun, 13 Apr 2008 20:39:41 +0000 (22:39 +0200)]
Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
Bruno Haible [Sun, 13 Apr 2008 20:17:09 +0000 (22:17 +0200)]
Avoid a test failure on AIX 4 and AIX 5.
Bruno Haible [Sun, 13 Apr 2008 19:58:00 +0000 (21:58 +0200)]
Fix compilation failure on AIX with xlc.
Bruno Haible [Sun, 13 Apr 2008 19:41:13 +0000 (21:41 +0200)]
Work around a HP-UX stdio bug.
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.
Bruno Haible [Sun, 13 Apr 2008 18:43:12 +0000 (20:43 +0200)]
Make truncl work on OSF/1 4.0.
Bruno Haible [Sun, 13 Apr 2008 17:33:56 +0000 (19:33 +0200)]
Avoid trailing comma, for picky AIX compiler.