|
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.
|
|
f19812de
|
2008-03-01T12:14:27
|
|
lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
|
|
7dd49d28
|
2008-02-18T14:12:07
|
|
Remove useless "if" tests before free. Deprecate "free" module.
* doc/posix-functions/free.texi: Mention that this
module is no longer useful.
* modules/free (Notice): Say this module is obsolete.
* modules/readutmp (Depends-on): Remove free.
* lib/save-cwd.c (free_cwd): Remove useless "if" before free.
* lib/putenv.c (putenv): Likewise.
* lib/gc-gnulib.c (gc_cipher_close): Likewise.
* lib/getaddrinfo.c (freeaddrinfo): Likewise.
* tests/test-c-strcasestr.c (main): Likewise.
* tests/test-c-strstr.c (main): Likewise.
* tests/test-mbscasestr1.c (main): Likewise.
* tests/test-mbscasestr2.c (main): Likewise.
* tests/test-mbsstr1.c (main): Likewise.
* tests/test-mbsstr2.c (main): Likewise.
* tests/test-memmem.c (main): Likewise.
* tests/test-strcasestr.c (main): Likewise.
* tests/test-striconv.c (main): Likewise.
* tests/test-striconveh.c (main): Likewise.
* tests/test-striconveha.c (main): Likewise.
* tests/test-strstr.c (main): Likewise.
|
|
03e82390
|
2008-03-01T08:40:22
|
|
Fix bugs in last patch.
* lib/memchr2.c (memchr2): Fix typo.
* tests/test-memchr2.c: Test previous bug, and don't use GNU
extension.
Reported by Bruce Korb.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
f91b9f97
|
2008-03-01T06:54:29
|
|
New module 'memchr2'.
* modules/memchr2: New file.
* modules/memchr2-tests: Likewise.
* lib/memchr2.h: Likewise.
* lib/memchr2.c: Likewise, based on memchr.c.
* tests/test-memchr2.c: New test.
* MODULES.html.sh (String handling): Add memchr2.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
e9ad5470
|
2008-02-29T10:29:38
|
|
New module 'freadseek'.
|
|
e8014c6b
|
2008-02-29T00:58:02
|
|
Change specification for the sake of ungetc on hypothetic platforms.
|
|
d71a1102
|
2008-02-28T15:26:44
|
|
Fix typo in comment.
|
|
56690adc
|
2008-02-28T13:19:17
|
|
New module 'freadptr'.
|
|
25071b01
|
2008-02-27T00:09:20
|
|
Sync from Libtool:
* libltdl/argz.c (argz_add, argz_count): New functions.
* libltdl/argz.in.h: Declare them.
Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
|
|
22eb7728
|
2008-02-24T16:40:15
|
|
New module 'environ'.
|
|
5b4cf2a6
|
2008-02-20T12:15:12
|
|
* lib/fts.c (fts_build): Typo correction to comment.
|
|
ea180b80
|
2008-02-18T03:36:33
|
|
Avoid generating no-op conflicts.
|
|
0eb77fc8
|
2008-02-18T03:11:40
|
|
Speed up by 10%.
|
|
65bd1047
|
2008-02-18T03:09:00
|
|
Speed up by 25%.
|
|
29b57c22
|
2008-02-18T02:41:03
|
|
Speed up from O(n^2) to O(n).
|
|
5f193761
|
2008-02-18T01:55:47
|
|
New option --split-merged-entry.
|
|
177498a1
|
2008-02-17T15:42:34
|
|
Support the "git pull --rebase" situation.
|
|
3d986f52
|
2008-02-16T07:40:47
|
|
Avoid doubling \ in common case of "c-maybe" quoting style.
* lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
eliding outer quotes.
* lib/quotearg.h: Document this.
* tests/test-quotearg.c (result_strings, inputs, results_g)
(flag_results, locale_results): Test it by adding a new string to
each test group.
(compare_strings): Test new string.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
df4e570b
|
2008-02-13T21:46:03
|
|
Avoid trigraph quoting in default output.
* lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
* lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
unless explicitly requested.
* tests/test-quotearg.c (flag_results, main): Add additional tests.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
a76230b7
|
2008-01-23T17:48:40
|
|
Don't rely on signed integer overflowing to negative value.
* lib/getugroups.c (getugroups): Include <limits.h>.
Instead, compare against INT_MAX, and increment only if the test passes.
|
|
cbfa4bf0
|
2008-02-12T21:05:57
|
|
Silence warning in last patch.
* lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
05230b80
|
2008-02-12T11:42:29
|
|
Quotearg part 4: add tests, fix c-maybe colon quoting.
* lib/quotearg.h: Improve documentation.
* lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
escapes when adding outer quotes. When quoting trigraphs, use
valid C notation. When quoting NUL, omit extra characters if next
character is not digit. Alter prototype.
(quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
callers.
* modules/quotearg-tests: New module.
* tests/test-quotearg.c: New test.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
74dd1966
|
2008-02-07T16:44:01
|
|
Quotearg part 3: add flag to control outer quote elision.
* lib/quotearg.h (c_maybe_quoting_style): New style.
(enum quoting_flags): Better documentation of flags.
* lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
c-maybe style.
(quotearg_buffer_restyled): Handle new flag to elide outer
quotes.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
71e66c91
|
2008-02-07T14:35:51
|
|
Quotearg part 2: add flag that can control NUL elision.
* lib/quotearg.h (set_quoting_flags): New prototype.
* lib/quotearg.c (struct quoting_options): Add flag field.
(set_quoting_flags): New function.
(quotearg_buffer_restyled): Add flags parameter.
(quotearg_alloc_mem): Set the flag if length cannot be returned.
(quotearg_n_options): Set the flag, since length cannot be
returned.
(quoting_options_from_style): Default flags correctly.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
2aa21ba3
|
2008-02-07T06:39:57
|
|
Quotearg part 1: more wrappers, restore quotearg_char state.
* lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
(quotearg_mem, quotearg_style_mem, quotearg_char_mem)
(quotearg_colon_mem): New wrappers.
* lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
(quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
functions.
(quotearg_n_mem, quotearg_mem, quotearg_style_mem)
(quotearg_colon_mem): New functions.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
0f37e2e6
|
2008-02-11T13:24:11
|
|
Comment changes.
|
|
521cc733
|
2008-02-11T01:16:24
|
|
New module 'git-merge-changelog'.
|
|
92877a2d
|
2008-02-10T19:35:54
|
|
New abstract list operation 'node_set_value'.
|
|
506bbd42
|
2008-02-10T19:22:48
|
|
Avoid gcc warnings due to misplaced 'const'.
|
|
6878fc73
|
2008-02-10T09:49:40
|
|
xstrtol_error: Fix typo.
* lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
s/exit_failure/exit_status/.
|
|
81eb8486
|
2008-02-08T17:49:35
|
|
Avoid two "parameter unused" warnings.
* lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
Mark "st" as used.
|
|
ba739e56
|
2008-02-08T02:32:48
|
|
Don't use %n on native Woe32 systems, to avoid a crash on Windows Vista systems.
|
|
6cad9c91
|
2008-02-07T02:08:13
|
|
Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
|
|
e2cc522f
|
2008-02-07T01:47:53
|
|
Fix bug introduced on 2008-01-26.
|
|
e302472d
|
2008-02-06T23:58:36
|
|
Fix bug introduced on 2007-06-10.
|
|
44cf2af4
|
2008-02-03T09:15:52
|
|
getloadavg: use libperfstat on AIX5
* lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
|
|
1fe8736c
|
2008-02-03T21:06:40
|
|
Add comments about required includes.
|
|
ca89940f
|
2008-01-31T23:37:55
|
|
Mark set_uint32 function as 'inline'.
|
|
17bdb83a
|
2008-01-31T14:32:19
|
|
Use "sizeof VAR", rather than a literal "4".
* lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
* lib/md4.c (md4_read_ctx): Likewise.
* lib/sha1.c (sha1_read_ctx): Likewise.
|
|
fe99f6e2
|
2008-01-31T13:57:17
|
|
Add SHA1_DIGEST_SIZE #define to sha1.h.
|
|
1ad22580
|
2008-01-31T13:04:07
|
|
Prefer "sizeof v" over the equivalent "4".
* lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
* lib/md5.c (set_uint32): Likewise.
* lib/sha1.c (set_uint32): Likewise.
|
|
ec5ea464
|
2008-01-31T11:13:13
|
|
sha1.c (set_uint32): Mark function as static.
|
|
dcad82d8
|
2008-01-31T11:10:36
|
|
md2: clarify comments to say that alignment is not required.
* lib/md2.h: Remove warning about alignment in comment.
* lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment
has never been required.
|
|
b618722d
|
2008-01-31T11:08:05
|
|
md4: adapt alignment constraint fix from sha1.
* lib/md4.c (set_uint32): New function, from sha1.c
(md4_read_ctx): Use it.
(md4_finish_ctx): Doc fix.
* lib/md4.h: Doc fix.
|
|
569ee54e
|
2008-01-31T11:05:46
|
|
md5: adapt alignment constraint fix from sha1.
* lib/md5.c (set_uint32): New function, from sha1.c
(md5_read_ctx): Use it.
(md5_finish_ctx): Doc fix.
* lib/md5.h: Doc fix.
|
|
5065830c
|
2008-01-30T13:36:13
|
|
sha1: remove the result buffer alignment constraint
* lib/sha1.c (set_uint32): New function.
(sha1_read_ctx): Rewrite to remove the result buffer alignment
constraint.
(sha1_finish_ctx): Remove comment warning about alignment constraint.
* lib/sha1.h: Likewise.
|
|
f7a926a4
|
2008-01-29T10:32:15
|
|
vasnprintf.c: Avoid warning about unused label
* lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
"overflow" label definition and associated code with the
same cpp condition that guards the sole use of that label.
|
|
814389d9
|
2008-01-26T15:45:42
|
|
Use the GCC built-in __builtin_isnanl (if it works).
|
|
3e4b5182
|
2008-01-26T15:37:59
|
|
Make use of GCC's __builtin_isnan.
|
|
767cae75
|
2008-01-26T13:23:24
|
|
Use the GCC built-in when available.
|
|
b17d7ac7
|
2008-01-26T15:17:58
|
|
Rename isnan, applicable to 'double' only, to isnand.
|
|
ce867563
|
2008-01-26T02:26:52
|
|
Exploit the __builtin_signbit GCC built-in.
|
|
f026d2bb
|
2008-01-25T21:52:02
|
|
Prefer <config.h> over "config.h". See autoconf doc for explanation.
* lib/poll.c: Include <config.h>, not "config.h".
* tests/test-getaddrinfo.c: Likewise.
|
|
bb2bf54f
|
2008-01-24T15:55:56
|
|
Add module sockets.
|
|
ec2a031a
|
2008-01-17T11:07:41
|
|
Need string.h unconditionally, for strncpy or strcpy.
|
|
174af8a7
|
2008-01-16T20:35:00
|
|
Convert c-strcasestr to be more efficient.
* modules/c-strcasestr (Files): Use Two-Way, not KMP.
(Depends-on): Add c-strcase, remove malloca, strnlen.
* tests/test-c-strcasestr.c (main): Enhance test.
* lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
f355f86f
|
2008-01-16T15:53:45
|
|
Disable secure memory in gc-libgcrypt.c.
|
|
e9ad8e62
|
2008-01-16T15:01:09
|
|
Need string.h for strcpy in gethostname module.
|
|
2f2f93bf
|
2008-01-15T16:32:59
|
|
Fix problem with getdate on mingw32 reported by Simon Josefsson
in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
* lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
tzname", when deciding whether to declare tzname.
* lib/strftime.c (tzname): Likewise.
|
|
9c063a2a
|
2008-01-10T22:22:51
|
|
Convert strcasestr module to use Two-Way algorithm.
* modules/strcasestr-simple: New module, based on the old
strcasestr, but with Two-Way rather than KMP.
* modules/strcasestr (Depends-on): Change to strcasestr-simple.
* lib/string.in.h (rpl_strcasestr): Declare.
* m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
performance.
* lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
* modules/string (Makefile.am): Support strcasestr.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
* modules/strcasestr-tests (Depends-on): Check for alarm.
* tests/test-strcasestr.c: Augment test.
* lib/str-two-way.h: Clean up stray macro.
* NEWS: Document new module.
* MODULES.html.sh (string handling): Likewise.
* doc/functions/strcasestr.texi: New file.
* doc/gnulib.texi (Function Substitutes): New node. Move memmem
here, since it is not a POSIX function.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
f9462738
|
2008-01-15T02:25:14
|
|
Replace strsignal if it does not work fine.
|
|
bd642010
|
2008-01-14T00:26:30
|
|
New module 'strsignal'.
|
|
15834b98
|
2008-01-13T16:51:48
|
|
Don't redefine __attribute__ without a need.
|
|
321e8651
|
2008-01-11T03:57:18
|
|
Make c-strstr rely on strstr.
|
|
4de3b7f8
|
2008-01-11T00:36:17
|
|
Fix a comment.
|
|
c358da1e
|
2008-01-10T12:06:35
|
|
Share two-way algorithm.
* lib/str-two-way.h: New file, merged from...
* lib/memmem.c: ...here...
* lib/strstr.c: ...and here.
* modules/memmem (Files): Use it.
* modules/strstr (Files): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
96facb24
|
2008-01-10T07:38:11
|
|
Avoid quadratic strstr implementations.
* lib/strstr.c: New file.
* m4/strstr.m4: Likewise.
* modules/strstr: Likewise.
* modules/strstr-tests: Likewise.
* tests/test-strstr.c: Likewise.
* lib/string.in.h (rpl_strstr): Declare.
(memmem) [GNULIB_POSIXCHECK]: Document speed issue.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
* modules/string (Makefile.am): Likewise.
* MODULES.html.sh (string handling): Mention new module.
* doc/functions/strstr.texi (strstr): Document the bug.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
619c189e
|
2008-01-10T11:12:06
|
|
Make it possible to avoid all memory leaks when calling relocate().
|
|
7ba813f0
|
2008-01-10T10:56:41
|
|
Update copyright year.
|
|
13abf457
|
2008-01-10T10:16:08
|
|
* lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
s/S_ISNLK/S_ISLNK/.
|
|
06cd74c1
|
2008-01-10T02:46:55
|
|
Work around OpenBSD 4.0 tdelete() bug.
|
|
c01669e0
|
2008-01-08T17:15:27
|
|
Give gcc some memmem optimization hints.
* lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
(strcasestr): Declare as pure.
* modules/memmem (Maintainer): Claim my implementation.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
2caf4791
|
2008-01-09T02:15:36
|
|
Handle the particular PRIdMAX values on MacOS X and mingw.
|
|
5c26c7d4
|
2008-01-08T23:54:30
|
|
Document the knuth_morris_pratt calling convention better.
|
|
9d8d6cd7
|
2008-01-05T14:09:11
|
|
Rewrite memmem to guarantee linear complexity without malloc.
* lib/memmem.c (memmem): Use Two-Way rather than
Knuth-Morris-Pratt, to allow O(1) space usage.
(critical_factorization, two_way_short_needle)
(two_way_long_needle): New functions.
(knuth_morris_pratt): Delete.
* modules/memmem (Depends-on): No longer need malloca or stdbool.
Add stdint.
* tests/test-memmem.c (main): Add tests for periodic needle and
sublinear performance.
* doc/functions/memmem.texi (memmem): Document other deficiencies
in cygwin and older glibc.
Signed-off-by: Eric Blake <ebb9@byu.net>
|
|
ad73d852
|
2008-01-08T02:16:21
|
|
Don't strip off a leading "lt-" prefix outside a .libs directory.
|
|
1146b210
|
2008-01-08T00:28:30
|
|
Improve memory cleanup in 'relocatable' module.
|
|
e883a11c
|
2008-01-04T00:24:10
|
|
Treat untyped memory as an 'unsigned char' array.
|
|
d8fd7da0
|
2008-01-02T10:00:47
|
|
lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
|
|
cd5cd034
|
2007-12-31T14:00:17
|
|
Avoid use of private FTS type name.
* lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
|
|
7855e1e3
|
2007-12-31T11:57:16
|
|
Unify 5 copies of the KMP code.
|
|
f4637bbf
|
2007-12-31T11:55:46
|
|
Don't define xmmalloca if not needed.
|
|
a464478c
|
2007-12-31T11:54:37
|
|
New macro xnmalloca.
|
|
bffe05f4
|
2007-12-31T11:53:40
|
|
Protect against integer overflow in malloca() calls.
|
|
666d3edd
|
2007-12-31T11:51:57
|
|
Ensure that 'glob' stays under LGPLv2+.
|
|
f1c88d2e
|
2007-12-29T01:17:08
|
|
* lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
when multiplying M by sizeof (size_t).
|
|
e3e32d7b
|
2007-12-26T16:37:29
|
|
Override getpagesize on mingw.
|
|
c293bc46
|
2007-12-26T16:28:08
|
|
Use plain ANSI C syntax.
|
|
3f443c98
|
2007-12-26T16:25:28
|
|
Fix link error in relocatability wrappers, due to xalloc_die().
|
|
81e61b22
|
2007-12-26T16:20:10
|
|
Split setenv module into setenv and unsetenv. Get rid of setenv.h.
|