|
f54ab4c7
|
2008-04-29T06:08:44
|
|
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>
|
|
da79138d
|
2008-04-29T13:37:51
|
|
Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
|
|
463890ea
|
2008-04-28T21:36:17
|
|
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>
|
|
a52746a7
|
2008-04-29T03:04:35
|
|
Use 'raise'.
|
|
01dfd175
|
2008-04-29T03:00:57
|
|
Expect rpmatch to be declared.
|
|
b52ae09f
|
2008-04-29T02:55:59
|
|
Declare rpmatch.
|
|
cdf60d1a
|
2008-04-29T02:37:52
|
|
Change rpmatch to use nl_langinfo when appropriate.
|
|
2b430e39
|
2008-04-28T17:08:43
|
|
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>
|
|
657b5b96
|
2008-04-28T17:02:16
|
|
Whitespace cleanup.
* tests/test-strchrnul.c: Reindent.
* lib/strchrnul.c: Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
d2a45d9a
|
2008-04-28T15:43:04
|
|
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>
|
|
8b8527c5
|
2008-04-28T10:24:14
|
|
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>
|
|
33d11481
|
2008-04-28T17:40:25
|
|
Move inet_ntop and inet_pton declarations to arpa/inet.h.
|
|
c404b313
|
2008-04-28T16:38:34
|
|
Fix proper win32 checks and use of inline for setsockopt.
Reported by Bruno Haible <bruno@clisp.org>.
|
|
2eb7a002
|
2008-04-27T23:30:18
|
|
Add some comments.
|
|
2c336787
|
2008-04-27T12:41:21
|
|
Allow local renaming in config.h.
|
|
2fc694a8
|
2008-04-27T12:37:28
|
|
Avoid gcc warnings.
|
|
189c0696
|
2008-04-26T21:26:10
|
|
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>
|
|
6226b4cf
|
2008-04-26T19:42:00
|
|
Oops, fix mistake in third-to-last commit.
|
|
284866a4
|
2008-04-26T18:58:00
|
|
Add tentative support for DragonFly BSD.
|
|
569eba62
|
2008-04-26T18:12:05
|
|
New private include file lib/stdio-impl.h.
|
|
0bdd1c68
|
2008-04-26T18:10:54
|
|
New private include file lib/stdio-impl.h.
|
|
0012df13
|
2008-04-26T16:48:23
|
|
Fix indentation.
|
|
02a3c767
|
2008-04-26T16:42:17
|
|
Put system dependent routines into inline functions.
|
|
945223b6
|
2008-04-26T12:38:15
|
|
Optimize parallel detection of matching bytes.
|
|
d5ac73d5
|
2008-04-26T12:31:13
|
|
Define memchr, not __memchr.
|
|
1f90f54e
|
2008-04-26T11:31:20
|
|
Superficial improvements and comments.
|
|
09262165
|
2008-04-23T15:03:40
|
|
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>
|
|
70189e75
|
2008-04-23T08:09:44
|
|
Make setsockopt replacement more typesafe.
|
|
49671ec9
|
2008-04-23T08:02:48
|
|
Add file, was missing from last commit.
|
|
38db0dfa
|
2008-04-22T10:57:31
|
|
Cast fourth argument to setsockopt on MinGW.
|
|
5feb6a2e
|
2008-04-22T01:56:52
|
|
Replace the isw* functions on Linux libc5.
|
|
81f3e544
|
2008-04-22T00:16:03
|
|
Fix mistake in last commit.
|
|
56feeb13
|
2008-04-22T00:01:17
|
|
Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl' differently.
|
|
bfca3459
|
2008-04-21T23:57:39
|
|
Fix compilation errors related to rpl_mkdir on mingw.
|
|
f908ffa5
|
2008-04-21T23:47:45
|
|
Port to native Windows platforms.
|
|
2958cd80
|
2008-04-21T23:45:08
|
|
Fix compilation error on mingw.
|
|
218c1d23
|
2008-04-21T09:57:07
|
|
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>
|
|
cab313c6
|
2008-04-20T20:02:43
|
|
Fix test failure on platforms with non-GNU iconv.
|
|
5fc2139c
|
2008-04-19T21:42:16
|
|
Work around snprintf bug on Linux libc5.
|
|
ee761da9
|
2008-04-19T17:55:05
|
|
Make floorlog10 function more precise.
|
|
f797ae74
|
2008-04-19T17:26:36
|
|
Fix rounding when a precision is given.
|
|
4c57aa62
|
2008-04-18T00:06:33
|
|
Provide missing no-op definitions for the dummy implementation.
|
|
bae553f3
|
2008-04-17T04:51:06
|
|
Update the list of Windows locales.
|
|
2358dac7
|
2008-04-17T04:35:33
|
|
Update after Microsoft change the value if SUBLANG_SINDHI_PAKISTAN.
|
|
b3dc1843
|
2008-04-17T02:01:23
|
|
Add tentative support for Linux libc5.
|
|
6c38d728
|
2008-04-16T03:39:15
|
|
Remove unused variables.
|
|
b2a72dab
|
2008-04-16T03:35:29
|
|
Fix bug in error handling code.
|
|
da7ca7f1
|
2008-04-16T03:26:46
|
|
Fix use of isspace() function.
|
|
a5c02266
|
2008-04-15T15:25:38
|
|
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.
|
|
fc0fe78e
|
2008-04-13T22:52:00
|
|
Add comment for last commit.
|
|
6a157512
|
2008-04-13T22:39:41
|
|
Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
|
|
c2a386bb
|
2008-04-13T20:43:12
|
|
Make truncl work on OSF/1 4.0.
|
|
41fa1f3d
|
2008-04-13T19:33:56
|
|
Avoid trailing comma, for picky AIX compiler.
|
|
d8965b78
|
2008-04-13T19:25:13
|
|
Work around a HP cc compiler bug.
|
|
47e4c43c
|
2008-04-13T18:29:05
|
|
Remove stray semicolon.
|
|
95454b6b
|
2008-04-13T14:56:42
|
|
Override <sys/socket.h> when it exists but is incomplete.
|
|
10d5e97c
|
2008-04-13T12:57:48
|
|
Avoid warning on EMX.
|
|
8b61f0d6
|
2008-04-13T12:50:49
|
|
Avoid warning on emx+gcc.
|
|
35dda745
|
2008-04-13T02:26:28
|
|
Enable the fpucw handling also for x86_64.
|
|
61175dcb
|
2008-04-12T17:10:44
|
|
Fix mistake in EMX port.
|
|
833333f7
|
2008-04-12T07:22:40
|
|
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>
|
|
b2cf43d6
|
2008-04-12T03:26:13
|
|
Adapt to future versions of Apple GCC.
|
|
829d0e0c
|
2008-04-12T01:34:34
|
|
Fix two compilation errors.
|
|
fc38bafd
|
2008-04-12T01:07:35
|
|
Include stdbool, for 'true' and 'false'.
|
|
457a1aa1
|
2008-04-12T00:24:39
|
|
Fix compilation error with IRIX 6.5 cc.
|
|
e9136009
|
2008-04-11T10:22:22
|
|
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>
|
|
cda63667
|
2008-04-11T15:57:56
|
|
Tweak comment.
|
|
e2cf2fc5
|
2008-04-11T12:01:17
|
|
Merge branch 'master' of ssh://haible@git.sv.gnu.org/srv/git/gnulib
|
|
2fd7e918
|
2008-04-11T09:16:11
|
|
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>.
|
|
ce72b419
|
2008-04-11T01:45:36
|
|
Typo in comment.
|
|
cc6492ad
|
2008-04-10T00:56:00
|
|
Port the extended stdio functions to emx+gcc.
|
|
b0db0595
|
2008-04-08T13:11:19
|
|
Add tentative support for OpenServer.
|
|
0a565096
|
2008-04-02T03:06:02
|
|
Use macros NaNf, NaNd, NaNl instead of NAN.
|
|
06945b7c
|
2008-03-31T20:56:25
|
|
Guarantee a definition of NAN.
* lib/math.in.h (NAN): Define if missing.
* tests/test-math.c (main): Test it.
* doc/posix-headers/math.texi (math.h): Document this.
* lib/isnan.c (rpl_isnand): Use it.
* tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
* tests/test-floorf1.c (NaN): Likewise.
* tests/test-frexp.c (NaN): Likewise.
* tests/test-isnand.c (NaN): Likewise.
* tests/test-isnanf.c (NaN): Likewise.
* tests/test-round1.c (NaN): Likewise.
* tests/test-roundf1.c (NaN): Likewise.
* tests/test-snprintf-posix.h (NaN): Likewise.
* tests/test-sprintf-posix.h (NaN): Likewise.
* tests/test-trunc1.c (NaN): Likewise.
* tests/test-truncf1.c (NaN): Likewise.
* tests/test-vasnprintf-posix.c (NaN): Likewise.
* tests/test-vasprintf-posix.c (NaN): Likewise.
* modules/isnand-nolibm (Depends-on): Add math.
* modules/isnanf-nolibm (Depends-on): Likewise.
* modules/isnanl (Depends-on): Likewise.
* modules/isnanl-nolibm (Depends-on): Likewise.
* modules/snprintf-posix-tests (Depends-on): Likewise.
* modules/sprintf-posix-tests (Depends-on): Likewise.
* modules/vsnprintf-posix-tests (Depends-on): Likewise.
* modules/vsprintf-posix-tests (Depends-on): Likewise.
* modules/vasnprintf-posix-tests (Depends-on): Likewise.
* modules/vasprintf-posix-tests (Depends-on): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
ce003b23
|
2008-03-31T00:50:54
|
|
* lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
Problem reported by Erik Benada in
<http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
|
|
38f9d631
|
2008-03-30T18:56:58
|
|
Optimize conversion from UTF-8 to UTF-8//TRANSLIT.
|
|
53ddc721
|
2008-03-30T18:48:14
|
|
Avoid failure when attempting to return empty iconv results on some platforms.
|
|
a4ce14d5
|
2008-03-30T18:29:39
|
|
Fix buffer overrun.
|
|
a9b48644
|
2008-03-30T08:07:51
|
|
strtod touchups.
* lib/strtod.c (strtod): Avoid compiler warnings.
Reported by Jim Meyering.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
7aa2549d
|
2008-03-30T15:58:28
|
|
Use the EOVERFLOW module instead of a manual fallback for EOVERFLOW.
|
|
dac3bbf9
|
2008-03-30T15:18:13
|
|
Use module 'EOVERFLOW' rather than defining an EOVERFLOW replacement in the C
code.
|
|
d80538de
|
2008-03-30T14:38:27
|
|
Remove EOVERFLOW override.
|
|
67271ef2
|
2008-03-30T14:09:00
|
|
Fix a bug in unistdio routines, introduced on 2007-06-10.
|
|
82752441
|
2008-03-30T12:25:40
|
|
Improve freadseek's efficiency after ungetc.
|
|
cb0bb143
|
2008-03-30T11:32:20
|
|
Use freadptr's return value.
|
|
bdc599c7
|
2008-03-29T21:24:07
|
|
Add hex float support.
* modules/strtod (Depends-on): Add c-ctype.
(Link): Mention POW_LIB.
* lib/strtod.c (strtod): Recognize hex floats. Don't allow
whitespace between 'e' and exponent.
* tests/test-strtod.c (main): Enable hex float tests.
* doc/posix-functions/strtod.texi (strtod): Document what gnulib
now provides.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
de138ad6
|
2008-03-29T13:50:21
|
|
Document various strtod bugs, with some fixes.
* doc/posix-functions/strtod.texi (strtod): Document bugs with
"-0x", "inf", "nan", and hex constants.
* doc/posix-functions/atof.texi (atof): Likewise.
* modules/stdlib (Makefile.am): Support strtod.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
* m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
detect additional strtod bugs.
* lib/stdlib.in.h (rpl_strtod): Add declarations.
* lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
bool where appropriate. Parse 'inf' and 'nan'.
* tests/test-strtod.c: New file.
* modules/strtod (Depends-on): Add stdbool, stdlib.
(configure.ac): Turn on module indicator.
* modules/strtod-tests: New module.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
85752366
|
2008-03-29T16:55:56
|
|
Fix ftell on mingw.
* lib/ftell.c (EOVERFLOW): Define if the system lacks it.
* modules/ftell-tests (Depends-on): Add binary-io.
* modules/ftello-tests (Depends-on): Likewise.
* tests/test-ftell.c (main): Enhance test to cover behavior after
ungetc. Enforce binary mode.
* tests/test-ftello.c (main): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
16e40377
|
2008-03-29T07:15:50
|
|
Pass test-freadseek on cygwin.
* modules/freadseek (Depends-on): Use freadptr, not freadseek.
* lib/freadseek.c (freadseek): Don't increment beyond bounds of
ungetc buffer.
* tests/test-fflush2.c (main): Fix typo.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
47ce26fc
|
2008-03-28T15:50:04
|
|
Support SHA-224 in gc.
|
|
a2040312
|
2008-03-15T16:06:44
|
|
Undo last change.
* lib/sha1.c, lib/md5.c: 63 != ~63.
Reported by Andreas Schwab.
|
|
fdc2a188
|
2008-03-15T15:24:39
|
|
sha1.c, md5.c: Hoist a redundant expression.
* lib/sha1.c (sha1_process_bytes): AND-off the low bits in
"ctx->buflen" only once, before calling *_process_block.
* lib/md5.c (md5_process_bytes): Likewise.
|
|
916b62dd
|
2008-03-11T05:38:53
|
|
Correct the va_copy definition for AIX 5.
|
|
f58214d6
|
2008-03-10T02:01:23
|
|
Take into account the number of pushed-back bytes (ungetc).
|
|
03400ebf
|
2008-03-10T00:23:20
|
|
Extend freadptr to return also the buffer size.
|
|
4a11bb6c
|
2008-03-09T22:12:35
|
|
Fix comments in last commit.
|
|
679b14d8
|
2008-03-07T03:34:46
|
|
Make fflush after ungetc work on BSD platforms.
|
|
b7285ef5
|
2008-03-03T12:52:53
|
|
Oops, fix last commit.
|
|
79edddd8
|
2008-03-03T12:49:54
|
|
Add VMS support.
|
|
84a14b9a
|
2008-03-03T12:39:56
|
|
Update VMS specifics.
|