1 2008-02-17 Bruno Haible <bruno@clisp.org>
4 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
5 result_entries, rather than an index-based loop.
7 2008-02-17 Bruno Haible <bruno@clisp.org>
10 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
12 (entry_create): New function.
13 (entry_hashcode): Use the cached hashcode if possible.
14 (read_changelog_file, try_split_merged_entry): Use entry_create.
16 2008-02-17 Bruno Haible <bruno@clisp.org>
18 Speed up from O(n^2) to O(n) for long ChangeLog files.
19 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
20 (read_changelog_file): Change implementation of entries_reversed list
22 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
24 2008-02-17 Bruno Haible <bruno@clisp.org>
26 New option --split-merged-entry.
27 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
28 (find_paragraph_end, try_split_merged_entry): New functions.
29 (long_options): Add option --split-merged-entry.
30 (usage): Document option --split-merged-entry.
31 (main): Implement option --split-merged-entry.
32 Reported by Eric Blake.
34 2008-02-17 Bruno Haible <bruno@clisp.org>
36 * lib/git-merge-changelog.c: Include c-strstr.h.
37 (main): Support the "git pull --rebase" situation.
38 * modules/git-merge-changelog (Depends-on): Add c-strstr.
39 Reported by Eric Blake.
41 2008-02-16 Eric Blake <ebb9@byu.net>
43 Avoid doubling \ in common case of "c-maybe" quoting style.
44 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46 * lib/quotearg.h: Document this.
47 * tests/test-quotearg.c (result_strings, inputs, results_g)
48 (flag_results, locale_results): Test it by adding a new string to
50 (compare_strings): Test new string.
52 2008-02-13 Eric Blake <ebb9@byu.net>
54 Avoid trigraph quoting in default output.
55 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57 unless explicitly requested.
58 * tests/test-quotearg.c (flag_results, main): Add additional tests.
60 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
62 Don't rely on signed integer overflowing to negative value.
63 * lib/getugroups.c (getugroups): Include <limits.h>.
64 Instead, compare against INT_MAX, and increment only if the test passes.
66 2008-02-13 Jim Meyering <meyering@redhat.com>
67 and Eric Blake <ebb9@byu.net>
69 Avoid shadowing warning and compile errors on Linux.
70 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
71 forwarding macros on Linux.
72 (dcgettext): Define a stub, for Linux.
73 (results_g, main): Avoid warnings.
75 2008-02-12 Eric Blake <ebb9@byu.net>
77 Silence warning in last patch.
78 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
80 Quotearg part 4: add tests, fix c-maybe colon quoting.
81 * lib/quotearg.h: Improve documentation.
82 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
83 escapes when adding outer quotes. When quoting trigraphs, use
84 valid C notation. When quoting NUL, omit extra characters if next
85 character is not digit. Alter prototype.
86 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
88 * modules/quotearg-tests: New module.
89 * tests/test-quotearg.c: New test.
91 2008-02-07 Eric Blake <ebb9@byu.net>
93 Quotearg part 3: add flag to control outer quote elision.
94 * lib/quotearg.h (c_maybe_quoting_style): New style.
95 (enum quoting_flags): Better documentation of flags.
96 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
98 (quotearg_buffer_restyled): Handle new flag to elide outer
101 Quotearg part 2: add flag that can control NUL elision.
102 * lib/quotearg.h (set_quoting_flags): New prototype.
103 * lib/quotearg.c (struct quoting_options): Add flag field.
104 (set_quoting_flags): New function.
105 (quotearg_buffer_restyled): Add flags parameter.
106 (quotearg_alloc_mem): Set the flag if length cannot be returned.
107 (quotearg_n_options): Set the flag, since length cannot be
109 (quoting_options_from_style): Default flags correctly.
111 Quotearg part 1: more wrappers, restore quotearg_char state.
112 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
113 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
114 (quotearg_colon_mem): New wrappers.
115 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
116 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
118 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
119 (quotearg_colon_mem): New functions.
121 2008-02-11 Bruno Haible <bruno@clisp.org>
123 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
124 library in the current directory: it does not work with parallel make.
125 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
127 2008-02-11 Bruno Haible <bruno@clisp.org>
129 * .gitattributes: New file.
131 2008-02-11 Jim Meyering <meyering@redhat.com>
133 useless-if-before-free: Fix reversed exit values.
134 * build-aux/useless-if-before-free: Use correct values
135 for EXIT_MATCH and EXIT_NO_MATCH.
137 * build-aux/useless-if-before-free: Close stdout carefully.
139 2008-02-10 Bruno Haible <bruno@clisp.org>
141 New module 'git-merge-changelog'.
142 * modules/git-merge-changelog: New file.
143 * lib/git-merge-changelog.c: New file.
145 2008-02-10 Jim Meyering <meyering@redhat.com>
147 useless-if-before-free: New option: --list (-l).
149 useless-if-before-free: Don't exit immediately upon open failure.
150 * build-aux/useless-if-before-free: Exit 2 for errors.
151 Upon failure to open a file, don't exit immediately.
152 Rather, just warn and continue with any remaining files.
154 2008-02-10 Bruno Haible <bruno@clisp.org>
156 New abstract list operation 'node_set_value'.
157 * lib/gl_list.h (gl_list_node_set_value): New function.
158 (struct gl_list_implementation): New field node_set_value.
159 * lib/gl_list.c (gl_list_node_set_value): New function.
160 * lib/gl_array_list.c (gl_array_node_set_value): New function.
161 (gl_array_list_implementation): Update.
162 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
163 (gl_carray_list_implementation): Update.
164 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
165 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
166 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
167 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
168 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
169 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
170 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
172 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
173 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
174 (gl_sublist_list_implementation): Update.
176 2008-02-10 Bruno Haible <bruno@clisp.org>
178 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
179 Needed when ELEMENT is #defined to 'some_type *'.
181 2008-02-10 Jim Meyering <meyering@redhat.com>
183 New script and module: useless-if-before-free
184 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
185 * build-aux/useless-if-before-free: New file.
186 * modules/useless-if-before-free: New file.
188 * build-aux/gitlog-to-changelog: Use committer date, not author date.
190 xstrtol_error: Fix typo.
191 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
192 s/exit_failure/exit_status/.
194 2008-02-09 Jim Meyering <meyering@redhat.com>
196 New script and module: gitlog-to-changelog
197 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
198 * modules/gitlog-to-changelog: New file.
199 * build-aux/gitlog-to-changelog: New file.
201 2008-02-08 Jim Meyering <meyering@redhat.com>
203 Avoid two "parameter unused" warnings.
204 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
207 Use "git COMMAND", not "git-COMMAND".
208 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
209 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
210 * build-aux/git-version-gen: Use "git status", not "git-status".
212 2008-02-07 Bruno Haible <bruno@clisp.org>
214 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
215 Avoids a crash on Windows Vista.
216 Reported by Adam Strzelecki <ono@java.pl> via
217 Simon Josefsson <simon@josefsson.org>.
219 2008-02-06 Bruno Haible <bruno@clisp.org>
221 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
222 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
223 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
224 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
225 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
226 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
227 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
228 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
229 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
230 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
231 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
232 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
233 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
234 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
235 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
236 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
238 * tests/test-snprintf-posix.h (test_function): Likewise.
239 * tests/test-sprintf-posix.h (test_function): Likewise.
240 * tests/test-vasprintf-posix.c (test_function): Likewise.
241 * doc/posix-functions/fprintf.texi: Update.
242 * doc/posix-functions/printf.texi: Update.
243 * doc/posix-functions/snprintf.texi: Update.
244 * doc/posix-functions/sprintf.texi: Update.
245 * doc/posix-functions/vfprintf.texi: Update.
246 * doc/posix-functions/vprintf.texi: Update.
247 * doc/posix-functions/vsnprintf.texi: Update.
248 * doc/posix-functions/vsprintf.texi: Update.
249 Reported by Peter Fales <psfales@alcatel-lucent.com>.
251 2008-02-06 Bruno Haible <bruno@clisp.org>
253 Fix bug introduced on 2008-01-26.
254 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
256 2008-02-06 Bruno Haible <bruno@clisp.org>
258 Fix bug introduced on 2007-06-10.
259 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
260 !NEED_PRINTF_FLAG_ZERO.
262 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
264 getloadavg: use libperfstat on AIX5
265 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
267 2008-02-03 Bruno Haible <bruno@clisp.org>
269 * lib/diffseq.h: Add comments about required #includes.
270 Reported by Michael Biggs <gnulib@doubleplum.net>.
272 2008-02-01 Bruno Haible <bruno@clisp.org>
274 * users.txt: Add gnuit.
276 2008-01-31 Bruno Haible <bruno@clisp.org>
278 * lib/md4.c (set_uint32): Mark as inline.
279 * lib/md5.c (set_uint32): Likewise.
280 * lib/sha1.c (set_uint32): Likewise.
281 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
282 * m4/md5.m4 (gl_MD5): Likewise.
283 * m4/sha1.m4 (gl_SHA1): Likewise.
285 2008-01-31 Jim Meyering <meyering@redhat.com>
287 Use "sizeof VAR", rather than a literal "4".
288 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
289 * lib/md4.c (md4_read_ctx): Likewise.
290 * lib/sha1.c (sha1_read_ctx): Likewise.
292 2008-01-31 Simon Josefsson <simon@josefsson.org>
294 * tests/test-sha1.c: New file, based on test-md5.c.
296 * modules/crypto/sha1-tests: New file.
298 2008-01-31 Simon Josefsson <simon@josefsson.org>
300 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
302 2008-01-31 Jim Meyering <meyering@redhat.com>
304 Prefer "sizeof v" over the equivalent "4".
305 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
306 * lib/md5.c (set_uint32): Likewise.
307 * lib/sha1.c (set_uint32): Likewise.
309 2008-01-31 Simon Josefsson <simon@josefsson.org>
311 * lib/sha1.c (set_uint32): Mark function as static.
313 2008-01-31 Simon Josefsson <simon@josefsson.org>
315 md2: clarify comments to say that alignment is not required.
316 * lib/md2.h: Remove warning about alignment in comment.
317 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
320 2008-01-31 Simon Josefsson <simon@josefsson.org>
322 md4: adapt alignment constraint fix from sha1.
323 * lib/md4.c (set_uint32): New function, from sha1.c
324 (md4_read_ctx): Use it.
325 (md4_finish_ctx): Doc fix.
326 * lib/md4.h: Doc fix.
328 2008-01-31 Simon Josefsson <simon@josefsson.org>
330 md5: adapt alignment constraint fix from sha1.
331 * lib/md5.c (set_uint32): New function, from sha1.c
332 (md5_read_ctx): Use it.
333 (md5_finish_ctx): Doc fix.
334 * lib/md5.h: Doc fix.
336 2008-01-30 Peter Palfrader <weasel@debian.org>
338 sha1: remove the result buffer alignment constraint
339 * lib/sha1.c (set_uint32): New function.
340 (sha1_read_ctx): Rewrite to remove the result buffer alignment
342 (sha1_finish_ctx): Remove comment warning about alignment constraint.
343 * lib/sha1.h: Likewise.
345 2008-01-30 Andreas Schwab <schwab@suse.de>
346 Bruno Haible <bruno@clisp.org>
348 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
349 correct definition of LDBL_MIN_EXP.
351 2008-01-30 Karl Berry <karl@gnu.org>
353 * config/srclist-update: try to preserve x bit on updates.
354 * config/srclistvars.sh: update for karl.
356 2008-01-29 Jim Meyering <meyering@redhat.com>
358 vasnprintf.c: Avoid warning about unused label
359 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
360 "overflow" label definition and associated code with the
361 same cpp condition that guards the sole use of that label.
363 2008-01-26 Bruno Haible <bruno@clisp.org>
365 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
366 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
367 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
368 * lib/isnanl-nolibm.h (isnanl): Likewise.
369 Reported by Paul Eggert <eggert@cs.ucla.edu>.
371 2008-01-26 Bruno Haible <bruno@clisp.org>
373 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
374 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
376 2008-01-26 Bruno Haible <bruno@clisp.org>
378 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
380 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
382 2008-01-26 Bruno Haible <bruno@clisp.org>
384 Rename isnan, applicable to 'double' only, to isnand.
385 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
386 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
387 (configure.ac): Update.
388 (Include): Replace "isnan.h" with "isnand.h".
389 * m4/isnand.m4: Renamed from m4/isnan.m4.
390 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
391 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
393 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
394 instead of HAVE_ISNAN_IN_LIBC.
395 (isnand): Renamed from isnan.
396 * lib/isnand.c: New file.
397 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
398 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
399 (Makefile.am): Update.
400 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
401 Include isnand.h instead of isnan.h.
402 (main): Test isnand instead of isnan.
403 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
405 * modules/frexp (Depends-on): Likewise.
406 * modules/frexp-tests (Depends-on): Likewise.
407 * modules/frexp-nolibm (Depends-on): Likewise.
408 * modules/frexp-nolibm-tests (Depends-on): Likewise.
409 * modules/isfinite (Depends-on): Likewise.
410 * modules/round-tests (Depends-on): Likewise.
411 * modules/signbit (Depends-on): Likewise.
412 * modules/signbit-tests (Depends-on): Likewise.
413 * modules/snprintf-posix (Depends-on): Likewise.
414 * modules/sprintf-posix (Depends-on): Likewise.
415 * modules/trunc-tests (Depends-on): Likewise.
416 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
417 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
418 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
419 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
420 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
421 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
422 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
423 * modules/vasnprintf-posix (Depends-on): Likewise.
424 * modules/vasprintf-posix (Depends-on): Likewise.
425 * modules/vfprintf-posix (Depends-on): Likewise.
426 * modules/vsnprintf-posix (Depends-on): Likewise.
427 * modules/vsprintf-posix (Depends-on): Likewise.
428 * lib/frexp.c: Include isnand.h instead of isnan.h.
429 (ISNAN): Set to isnand instead of isnan.
430 * lib/isfinite.c: Include isnand.h instead of isnan.h.
431 (gl_isfinited): Use isnand instead of isnan.
432 * lib/signbitd.c: Include isnand.h instead of isnan.h.
433 (gl_signbitd): Use isnand instead of isnan.
434 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
435 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
436 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
437 (main): Use isnand instead of isnan.
438 * tests/test-round1.c: Include isnand.h.
439 (main): Use isnand instead of isnan.
440 * tests/test-round2.c: Include isnand.h instead of isnan.h.
441 (ISNAN): Set to isnand instead of isnan.
442 * tests/test-trunc1.c: Include isnand.h.
443 (main): Use isnand instead of isnan.
444 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
445 (equal): Use isnand instead of isnan.
446 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
448 * NEWS: Mention the change.
450 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
451 Bruno Haible <bruno@clisp.org>
453 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
454 the GCC builtins for signbits are present and set
455 REPLACE_SIGNBIT_USING_GCC if so.
456 * lib/math.in.h (signbit): Define using GCC builtins if
457 REPLACE_SIGNBIT_USING_GCC is set.
458 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
459 REPLACE_SIGNBIT_USING_GCC.
460 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
462 2008-01-25 Jim Meyering <meyering@redhat.com>
464 Prefer <config.h> over "config.h". See autoconf doc for explanation.
465 * lib/poll.c: Include <config.h>, not "config.h".
466 * tests/test-getaddrinfo.c: Likewise.
468 2008-01-25 Simon Josefsson <simon@josefsson.org>
470 * modules/sockets-tests: New file.
472 2008-01-24 Simon Josefsson <simon@josefsson.org>
474 * modules/sockets: New module, can be used to call WSA_Startup and
475 WSA_Cleanup when needed.
477 * lib/sockets.h, lib/sockets.c: New files.
479 * m4/sockets.m4: New file.
481 * tests/test-sockets.c: New file.
483 2008-01-19 Bruno Haible <bruno@clisp.org>
485 * doc/posix-headers: Renamed from doc/headers.
486 * doc/posix-functions: Renamed from doc/functions.
487 * doc/gnulib.texi: Update.
489 2008-01-19 Bruno Haible <bruno@clisp.org>
491 * doc/glibc-functions/strcasestr.texi: Include contents of
492 doc/functions/strcasestr.texi, fixing the list of platforms.
493 * doc/functions/strcasestr.texi: Remove file.
495 2008-01-19 Bruno Haible <bruno@clisp.org>
497 * doc/glibc-functions/memmem.texi: Include contents of
498 doc/functions/memmem.texi.
499 * doc/functions/memmem.texi: Remove file.
501 2008-01-18 Bruno Haible <bruno@clisp.org>
503 * doc/glibc-functions/*.texi: New files.
504 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
505 to use the new files.
507 2008-01-17 Bruno Haible <bruno@clisp.org>
509 * tests/test-gethostname.c (main): Fix printf statement.
511 2008-01-17 Simon Josefsson <simon@josefsson.org>
513 * modules/gethostname-tests: New file.
515 * tests/test-gethostname.c: New file.
517 2008-01-17 Simon Josefsson <simon@josefsson.org>
519 * lib/gethostname.c: Include string.h unconditionally, strncpy is
520 used by the UNAME case. Reported by Bruno Haible
523 2008-01-17 Eric Blake <ebb9@byu.net>
525 Convert c-strcasestr to be more efficient.
526 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
527 (Depends-on): Add c-strcase, remove malloca, strnlen.
528 * tests/test-c-strcasestr.c (main): Enhance test.
529 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
531 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
533 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
534 Use it in creating po/Makevars.
536 2008-01-15 Simon Josefsson <simon@josefsson.org>
538 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
539 Applications that requires it should initialize libgcrypt
542 2008-01-16 Simon Josefsson <simon@josefsson.org>
544 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
546 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
548 Fix problem with getdate on mingw32 reported by Simon Josefsson
549 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
550 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
551 tzname", when deciding whether to declare tzname.
552 * lib/strftime.c (tzname): Likewise.
554 2008-01-15 Bruno Haible <bruno@clisp.org>
556 Work around a MacOS X 10.5 bug in frexpl().
557 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
558 * doc/functions/frexpl.texi: Document the bug.
559 Reported by Elias Pipping <pipping@gentoo.org>.
561 2008-01-14 Eric Blake <ebb9@byu.net>
563 Touch up previous patch.
564 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
565 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
567 Convert strcasestr module to use Two-Way algorithm.
568 * modules/strcasestr-simple: New module, based on the old
569 strcasestr, but with Two-Way rather than KMP.
570 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
571 * lib/string.in.h (rpl_strcasestr): Declare.
572 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
574 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
575 * modules/string (Makefile.am): Support strcasestr.
576 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
577 * modules/strcasestr-tests (Depends-on): Check for alarm.
578 * tests/test-strcasestr.c: Augment test.
579 * lib/str-two-way.h: Clean up stray macro.
580 * NEWS: Document new module.
581 * MODULES.html.sh (string handling): Likewise.
582 * doc/functions/strcasestr.texi: New file.
583 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
584 here, since it is not a POSIX function.
586 2008-01-14 Colin Watson <cjwatson@debian.org>
587 Bruno Haible <bruno@clisp.org>
589 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
590 works fine; if not, set REPLACE_STRSIGNAL.
591 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
592 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
594 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
595 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
596 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
598 2008-01-14 Bruno Haible <bruno@clisp.org>
600 * modules/strsignal (Include): Change to <string.h>.
602 2008-01-14 Colin Watson <cjwatson@debian.org>
604 * modules/argp (Notice): Add a notice recommending to change
606 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
608 2008-01-13 Colin Watson <cjwatson@debian.org>
610 * modules/strsignal-tests: New file.
611 * tests/test-strsignal.c: New file.
613 * lib/strsignal.c: New file, from glibc with modifications.
614 * lib/siglist.h: New file, from glibc with modifications.
615 * lib/string.in.h (strsignal): New declaration.
616 * m4/strsignal.m4: New file.
617 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
618 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
619 * modules/strsignal: New file.
620 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
623 2008-01-13 Bruno Haible <bruno@clisp.org>
625 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
626 locale encoding is not ASCII. Needed for OpenBSD 4.0.
627 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
628 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
630 2008-01-13 Bruno Haible <bruno@clisp.org>
632 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
633 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
634 * lib/argp.h (__attribute__): Likewise.
635 * lib/c-stack.c (__attribute__): Likewise.
636 * lib/error.h (__attribute__): Likewise.
637 * lib/fts.c (__attribute__): Likewise.
638 * lib/openat.h (__attribute__): Likewise.
639 * lib/stdio.in.h (__attribute__): Likewise.
640 * lib/string.in.h (__attribute__): Likewise.
641 * lib/utimens.c (__attribute__): Likewise.
642 * lib/vasnprintf.h (__attribute__): Likewise.
643 * lib/xalloc.h (__attribute__): Likewise.
644 * lib/xprintf.h (__attribute__): Likewise.
645 * lib/xstrtol.h (__attribute__): Likewise.
646 * lib/xvasprintf.h (__attribute__): Likewise.
648 2008-01-12 Bruno Haible <bruno@clisp.org>
650 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
651 * doc/glibc-headers/a.out.texi: New file.
652 * doc/glibc-headers/aliases.texi: New file.
653 * doc/glibc-headers/alloca.texi: New file.
654 * doc/glibc-headers/ar.texi: New file.
655 * doc/glibc-headers/argp.texi: New file.
656 * doc/glibc-headers/argz.texi: New file.
657 * doc/glibc-headers/byteswap.texi: New file.
658 * doc/glibc-headers/crypt.texi: New file.
659 * doc/glibc-headers/endian.texi: New file.
660 * doc/glibc-headers/envz.texi: New file.
661 * doc/glibc-headers/err.texi: New file.
662 * doc/glibc-headers/error.texi: New file.
663 * doc/glibc-headers/execinfo.texi: New file.
664 * doc/glibc-headers/fpu_control.texi: New file.
665 * doc/glibc-headers/fstab.texi: New file.
666 * doc/glibc-headers/fts.texi: New file.
667 * doc/glibc-headers/getopt.texi: New file.
668 * doc/glibc-headers/ieee754.texi: New file.
669 * doc/glibc-headers/ifaddrs.texi: New file.
670 * doc/glibc-headers/libintl.texi: New file.
671 * doc/glibc-headers/mcheck.texi: New file.
672 * doc/glibc-headers/mntent.texi: New file.
673 * doc/glibc-headers/obstack.texi: New file.
674 * doc/glibc-headers/paths.texi: New file.
675 * doc/glibc-headers/printf.texi: New file.
676 * doc/glibc-headers/pty.texi: New file.
677 * doc/glibc-headers/resolv.texi: New file.
678 * doc/glibc-headers/shadow.texi: New file.
679 * doc/glibc-headers/sysexits.texi: New file.
680 * doc/glibc-headers/ttyent.texi: New file.
682 2008-01-12 Jim Meyering <meyering@redhat.com>
684 announce-gen: emit Gnulib's git-based version string.
685 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
686 New option --gnulib-version=V, where V is expected to be
687 the output of running git describe in the gnulib directory.
688 (get_tool_versions): Request feedback on xdelta. I suspect it's
689 not useful, and plan to stop publishing an xdelta file with each
692 * build-aux/announce-gen: Also check for lzma-compressed files.
694 2008-01-11 Bruno Haible <bruno@clisp.org>
696 * tests/test-memmem.c (main): Increase maximum allowed time.
697 * tests/test-strstr.c (main): Likewise.
699 2008-01-11 Bruno Haible <bruno@clisp.org>
701 * doc/functions/memmem.texi: Add more precisions about platforms.
702 * doc/functions/strstr.texi: Likewise.
704 2008-01-10 Eric Blake <ebb9@byu.net>
706 * m4/strstr.m4: Delete cruft from copy-n-paste.
707 Reported by Bruno Haible.
709 2008-01-10 Bruno Haible <bruno@clisp.org>
711 Make c-strstr rely on strstr.
712 * lib/c-strstr.c: Don't include str-kmp.h.
713 (c_strstr): Define in terms of strstr.
714 * modules/c-strstr (Files): Remove lib/str-kmp.h.
715 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
717 2008-01-10 Bruno Haible <bruno@clisp.org>
719 * doc/gnulib.texi (String Functions in C Locale): New section.
720 * doc/c-ctype.texi: New file.
721 * doc/c-strcase.texi: New file.
722 * doc/c-strcaseeq.texi: New file.
723 * doc/c-strcasestr.texi: New file.
724 * doc/c-strstr.texi: New file.
725 * doc/c-strtod.texi: New file.
726 * doc/c-strtold.texi: New file.
728 2008-01-10 Eric Blake <ebb9@byu.net>
730 * lib/relocatable.h: Fix a comment.
732 2008-01-10 Eric Blake <ebb9@byu.net>
734 Share two-way algorithm.
735 * lib/str-two-way.h: New file, merged from...
736 * lib/memmem.c: ...here...
737 * lib/strstr.c: ...and here.
738 * modules/memmem (Files): Use it.
739 * modules/strstr (Files): Likewise.
741 Avoid quadratic strstr implementations.
742 * lib/strstr.c: New file.
743 * m4/strstr.m4: Likewise.
744 * modules/strstr: Likewise.
745 * modules/strstr-tests: Likewise.
746 * tests/test-strstr.c: Likewise.
747 * lib/string.in.h (rpl_strstr): Declare.
748 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
749 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
750 * modules/string (Makefile.am): Likewise.
751 * MODULES.html.sh (string handling): Mention new module.
752 * doc/functions/strstr.texi (strstr): Document the bug.
754 2008-01-10 Bruno Haible <bruno@clisp.org>
756 * lib/relocatable.h (relocate): State whether result is freshly
758 * lib/relocatable.c (relocate): Return a freshly allocated string
759 instead of a pointer to a privately held string.
760 Reported by Sylvain Beucler <beuc@gnu.org>.
762 2008-01-10 Colin Watson <cjwatson@debian.org>
764 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
767 2008-01-09 Bruno Haible <bruno@clisp.org>
769 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
771 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
772 if it's only a guess.
773 * modules/memmem: Simplify by depending on memmem-simple.
775 2008-01-09 Bruno Haible <bruno@clisp.org>
777 Work around OpenBSD 4.0 tdelete() bug.
778 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
779 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
780 macros and don't redefine the enum values.
781 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
782 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
783 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
785 2008-01-09 Bruno Haible <bruno@clisp.org>
787 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
788 (main): Don't perform the tests if setlocale did not install a UTF-8
789 locale. Needed on OpenBSD 4.0.
790 * modules/wcwidth-tests (Depends-on): Add localcharset.
792 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
794 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
795 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
796 * NEWS: announce this.
797 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
799 2008-01-09 Simon Josefsson <simon@josefsson.org>
800 and Eric Blake <ebb9@byu.net>
802 Add memmem-simple module.
803 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
804 (gl_FUNC_MEMMEM): Separate performance from presence checks.
805 * modules/memmem-simple: New file.
806 * modules/memmem (Description): Tweak.
807 * MODULES.html.sh (string handling): Mention new module.
808 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
809 addressed by memmem-simple.
810 * NEWS: Document the difference.
812 2008-01-09 Eric Blake <ebb9@byu.net>
814 Give gcc some memmem optimization hints.
815 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
816 (strcasestr): Declare as pure.
817 * modules/memmem (Maintainer): Claim my implementation.
819 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
821 Support AIX 6.1 and higher.
822 * build-aux/config.libpath: Likewise.
823 * build-aux/config.rpath: Likewise.
825 2008-01-08 Jim Meyering <meyering@redhat.com>
826 Bruno Haible <bruno@clisp.org>
828 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
829 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
830 Reported by Peter Fales in
831 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
833 2008-01-08 Bruno Haible <bruno@clisp.org>
835 * modules/unictype/category-of (Depends-on): Add
836 unictype/category-none.
837 * modules/unictype/category-and-tests (Depends-on): Add
838 unictype/category-{L,N,Lu,Nd}.
839 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
840 * modules/unictype/category-or-tests (Depends-on): Add
841 unictype/category-{L,N}.
842 * modules/unictype/category-name-tests (Depends-on): Add
843 unictype/category-{Z,Nl}.
844 Reported by Simon Josefsson.
846 2008-01-08 Bruno Haible <bruno@clisp.org>
848 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
850 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
851 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
852 Reported by Peter Miller <millerp@canb.auug.org.au>.
854 2008-01-08 Eric Blake <ebb9@byu.net>
856 Rewrite memmem to guarantee linear complexity without malloc.
857 * lib/memmem.c (memmem): Use Two-Way rather than
858 Knuth-Morris-Pratt, to allow O(1) space usage.
859 (critical_factorization, two_way_short_needle)
860 (two_way_long_needle): New functions.
861 (knuth_morris_pratt): Delete.
862 * modules/memmem (Depends-on): No longer need malloca or stdbool.
864 * tests/test-memmem.c (main): Add tests for periodic needle and
865 sublinear performance.
866 * doc/functions/memmem.texi (memmem): Document other deficiencies
867 in cygwin and older glibc.
869 2008-01-08 Bruno Haible <bruno@clisp.org>
871 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
874 2008-01-08 Mike Frysinger <vapier@gentoo.org>
876 Add a configure time option: --disable-acl.
877 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
880 2008-01-06 Simon Josefsson <simon@josefsson.org>
882 * tests/test-localename.c: Don't include obsolete "setenv.h".
884 * modules/localename-tests (Depends-on): Need unsetenv.
886 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
888 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
890 2008-01-06 Colin Watson <cjwatson@debian.org>
892 * users.txt: Add man-db.
894 2008-01-07 Bruno Haible <bruno@clisp.org>
896 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
897 previous section name.
899 2008-01-07 Bruno Haible <bruno@clisp.org>
901 * lib/progname.c (set_program_name): Don't strip off a leading
902 "lt-" prefix outside a .libs directory.
903 Suggested by Paul Eggert.
905 2008-01-01 Sylvain Beucler <beuc@gnu.org>
906 Bruno Haible <bruno@clisp.org>
908 Improve memory cleanup in 'relocatable' module.
909 * lib/relocatable.h (compute_curr_prefix): Change return type to
911 * lib/relocatable.c (compute_curr_prefix): Change return type to
912 'char *'. Free curr_installdir after use.
913 (relocate): Free curr_prefix_better after use.
914 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
916 2008-01-01 Bruno Haible <bruno@clisp.org>
918 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
919 failure on older glibc systems.
920 Reported by Peter Fales <psfales@alcatel-lucent.com>.
922 2008-01-05 Eric Blake <ebb9@byu.net>
924 Avoid quadratic system memmem.
925 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
926 Reported by Ralf Wildenhues.
928 Fix memmem test for mingw.
929 * modules/memmem-tests (configure.ac): Check for alarm.
930 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
932 * doc/functions/memmem.texi: New file.
933 * doc/gnulib.texi (Function Substitutes): Add memmem.
934 Reported by Bruno Haible.
936 2008-01-04 Bruno Haible <bruno@clisp.org>
938 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
939 Require gl_HEADER_STRINGS_H_DEFAULTS, not
940 gl_HEADER_STRING_H_DEFAULTS.
942 2008-01-04 Eric Blake <ebb9@byu.net>
944 Shorten duration of memmem test.
945 * tests/test-memmem.c (main): Use alarm to declare failure if test
947 Reported by Ralf Wildenhues.
949 2007-12-21 Simon Josefsson <simon@josefsson.org>
951 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
952 string, needed by strerror.
954 2008-01-03 Colin Watson <cjwatson@debian.org>
955 Bruno Haible <bruno@clisp.org>
957 * doc/gnulib-tool.texi (Localization): New section.
959 2008-01-02 Bruno Haible <bruno@clisp.org>
961 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
962 variables to 'unsigned char *' type.
963 Reported by Paul Eggert.
965 2008-01-02 Jim Meyering <jim@meyering.net>
967 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
969 2007-12-31 Jim Meyering <jim@meyering.net>
971 Avoid use of private FTS type name.
972 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
974 2007-12-30 Karl Berry <karl@gnu.org>
976 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
977 work around defect in Texinfo and/or the standalone Info browser.
979 2007-12-30 Bruno Haible <bruno@clisp.org>
981 Unify 5 copies of the KMP code.
982 * lib/str-kmp.h: New file.
983 * lib/c-strcasestr.c: Include str-kmp.h.
984 (knuth_morris_pratt): Remove function.
985 (c_strcasestr): Update.
986 * lib/c-strstr.c: Include str-kmp.h.
987 (knuth_morris_pratt): Remove function.
988 (c_strcasestr): Update.
989 * lib/mbscasestr.c: Include str-kmp.h.
990 (knuth_morris_pratt_unibyte): Remove function.
991 * lib/mbsstr.c: Include str-kmp.h.
992 (knuth_morris_pratt_unibyte): Remove function.
993 * lib/strcasestr.c: Include str-kmp.h.
994 (knuth_morris_pratt): Remove function.
995 (strcasestr): Update.
996 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
997 * modules/c-strstr (Files): Likewise.
998 * modules/mbscasestr (Files): Likewise.
999 * modules/mbsstr (Files): Likewise.
1000 * modules/strcasestr (Files): Likewise.
1001 Suggested by Paul Eggert.
1003 2007-12-30 Bruno Haible <bruno@clisp.org>
1005 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
1008 2007-12-30 Bruno Haible <bruno@clisp.org>
1010 * lib/xmalloca.h: Include xalloc.h.
1011 (xnmalloca): New macro.
1013 2007-12-30 Bruno Haible <bruno@clisp.org>
1015 * lib/malloca.h (nmalloca): New macro.
1016 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
1017 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
1018 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
1019 knuth_morris_pratt_multibyte): Likewise.
1020 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
1021 knuth_morris_pratt_multibyte): Likewise.
1022 * lib/memmem.c (knuth_morris_pratt): Likewise.
1023 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
1025 2007-12-25 Bruno Haible <bruno@clisp.org>
1027 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
1028 * lib/glob.c: Don't include openat.h.
1029 (link_exists2_p): Add back the code that deals with the
1030 !GLOB_ALTDIRFUNC case.
1031 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
1032 let it do the filename concatenation.
1033 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
1034 * modules/glob (Depends-on): Remove openat.
1036 2007-12-31 Bruno Haible <bruno@clisp.org>
1038 * modules/dirfd (License): Change to LGPLv2+.
1039 Approved by Jim Meyering.
1041 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
1043 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
1044 when multiplying M by sizeof (size_t).
1046 2007-12-10 Martin Lambers <marlam@marlam.de>
1048 Override getpagesize on mingw.
1049 * lib/getpagesize.c: New file.
1050 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
1051 * modules/getpagesize (Files): Add lib/getpagesize.c.
1052 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
1053 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1054 REPLACE_GETPAGESIZE.
1055 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
1057 2007-12-25 Bruno Haible <bruno@clisp.org>
1059 * modules/localcharset (Notice): New field.
1060 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
1061 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1063 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
1064 Bruno Haible <bruno@clisp.org>
1066 Avoid using the syntax symbol() in formatted documentation.
1067 * MODULES.html.sh (func_module): When replacing symbol() with a
1068 hyperlink, remove the parentheses. Show an error if some remain.
1069 Recognize and render the '...' syntax.
1070 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
1071 Rework. Add paragraph about GCC's inlining.
1072 * doc/alloca.texi: Likewise.
1073 * doc/error.texi: Remove parentheses from symbol reference.
1074 * doc/gnulib-intro.texi: Likewise.
1075 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
1076 * modules/fnmatch (Description): Reword to say "the ... function".
1077 * modules/full-read (Description): Likewise.
1078 * modules/full-write (Description): Likewise.
1079 * modules/safe-read (Description): Likewise.
1080 * modules/safe-write (Description): Likewise.
1081 * modules/strchrnul (Description): Likewise.
1082 * modules/trim (Description): Likewise.
1083 * modules/error (Description): Remove parentheses from symbol
1085 * modules/verror (Description): Likewise.
1086 Reported by Karl Berry.
1088 2007-12-25 Bruno Haible <bruno@clisp.org>
1090 Fixup after 2007-10-16 commit.
1091 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
1093 2007-12-24 Bruno Haible <bruno@clisp.org>
1095 Make --enable-relocatable work with DESTDIR.
1096 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
1097 to compute installdir from destprog.
1098 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
1099 also set the RELOC_DESTDIR variable.
1100 Reported by Левашев Иван <octagram@bluebottle.com>.
1102 2007-12-24 Bruno Haible <bruno@clisp.org>
1104 Fix link error due to xalloc_die().
1105 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
1107 * lib/relocwrapper.c: Update comments.
1108 * build-aux/install-reloc: Remove xreadlink.c from file list.
1109 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
1111 Reported by Левашев Иван <octagram@bluebottle.com>.
1113 2007-12-24 Bruno Haible <bruno@clisp.org>
1115 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
1116 * lib/setenv.h: Remove file.
1117 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
1119 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
1120 (Depends-on): Add stdlib.
1121 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
1123 (Include): Replace setenv.h with <stdlib.h>.
1124 * modules/unsetenv: New file.
1125 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
1126 * lib/unsetenv.c: Include <stdlib.h> first.
1127 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
1128 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
1129 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
1130 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
1131 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
1132 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
1133 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
1134 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
1135 * doc/functions/unsetenv.texi: Update.
1136 * modules/xsetenv (Depends-on): Add unsetenv.
1137 * modules/getdate (Depends-on): Likewise.
1138 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
1139 * lib/xsetenv.c: Don't include setenv.h.
1140 * lib/getdate.y: Likewise.
1141 * lib/relocwrapper.c: Likewise.
1142 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
1143 (Depends-on): Add stdlib.
1144 * NEWS: Mention the changes.
1145 Reported by Левашев Иван <octagram@bluebottle.com>.
1147 2007-12-23 Bruno Haible <bruno@clisp.org>
1149 * lib/memmem.c (memmem): Use lowercase variable names. Tab
1152 2007-12-23 Bruno Haible <bruno@clisp.org>
1154 * lib/c-strcasestr.c: Add more comments.
1155 * lib/c-strstr.c: Likewise.
1156 * lib/mbscasestr.c: Likewise.
1157 * lib/mbsstr.c: Likewise.
1158 * lib/strcasestr.c: Likewise.
1159 * lib/memmem.c: Likewise.
1161 2007-12-23 Bruno Haible <bruno@clisp.org>
1163 * tests/test-memmem.c: Include <string.h> first.
1165 2007-12-22 Bruno Haible <bruno@clisp.org>
1167 * gnulib-tool (func_create_testdir): Change $auxdir while generating
1168 the contents of $testsbase.
1169 Reported by Ralf Wildenhues.
1171 2007-12-22 Bruno Haible <bruno@clisp.org>
1173 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
1174 two variables local_ldadd_before, local_ldadd_last.
1176 2007-12-20 Eric Blake <ebb9@byu.net>
1178 Work around circular library issue when cross-compiling.
1179 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
1180 that progname.o does not need to pull in rpl_memcmp.
1182 2007-12-19 Eric Blake <ebb9@byu.net>
1184 Fix memmem to avoid O(n^2) worst-case complexity.
1185 * lib/memmem.c (knuth_morris_pratt): New function.
1186 (memmem): Use it if first few naive iterations fail.
1187 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
1188 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
1189 * modules/memchr (License): Likewise.
1190 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
1192 * tests/test-memmem.c: Rewrite, borrowing ideas from
1193 test-mbsstr1.c; the old version wouldn't even compile!
1194 * modules/memmem-tests: New file.
1195 * lib/string.in.h (rpl_memmem): Add declaration.
1196 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
1197 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
1200 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
1202 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
1203 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
1204 before any system include files, and undef after them all. This
1205 should fix a problem on VMS reported by John E. Malmberg in
1206 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
1208 2007-12-17 Eric Blake <ebb9@byu.net>
1210 Revert addition of verify, for BSD/OS.
1211 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
1212 can't handle large files, for the sake of obsolete platforms.
1213 * modules/fseeko (Depends-on): Remove verify.
1214 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
1215 * doc/functions/ftello.texi (ftello): Likewise.
1216 * doc/functions/fgetpos.texi (fgetpos): Likewise.
1217 Reported by Larry Jones.
1219 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
1221 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
1222 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
1224 2007-12-17 Jim Meyering <meyering@redhat.com>
1226 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
1227 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
1228 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
1229 * modules/getcwd (Depends-on): Add openat.
1230 Reported by Petr Salinger.
1232 2007-12-17 Bruno Haible <bruno@clisp.org>
1234 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
1235 avoid a segmentation fault of the configure test on x86_64 systems.
1237 2007-12-15 Jim Meyering <meyering@redhat.com>
1239 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
1241 2007-12-13 Eric Blake <ebb9@byu.net>
1244 * tests/test-fseek.c (main): Also test ungetc handling.
1245 * tests/test-fseeko.c (main): Likewise.
1246 * modules/fseeko (Depends-on): Add verify.
1247 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
1249 Reported by Larry Jones.
1251 Fix fseeko on mingw.
1252 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
1255 Beef up fseek tests.
1256 * tests/test-fseek.c (main): Also test eof handling.
1257 * tests/test-fseeko.c (main): Likewise.
1258 Reported by Larry Jones.
1260 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
1262 Fix fseeko on BSD-based platforms.
1263 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
1266 2007-12-12 Eric Blake <ebb9@byu.net>
1268 Allow circular dependency of separate libtests.a
1269 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
1272 2007-12-11 Eric Blake <ebb9@byu.net>
1274 Fix bug with -0.0L in previous patch.
1275 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
1276 * tests/test-isnan.c (main): Also test on zeroes.
1277 * tests/test-isnanf.c (main): Likewise.
1278 * tests/test-isnanl.h (main): Likewise.
1280 Detect pseudo-denormals on x86 even when cross-compiling.
1281 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
1282 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
1283 invalid bit patterns that happen to satisfy ==.
1285 Avoid link failures with separate libtests.a.
1286 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
1287 last, to satisfy circular dependencies.
1289 2007-12-11 Eric Blake <ebb9@byu.net>
1290 and Bruno Haible <bruno@clisp.org>
1292 Fix OpenBSD 4.0 <float.h> handling of long double.
1293 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
1294 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
1295 * doc/headers/float.texi (float.h): Document OpenBSD bug.
1297 2007-12-11 Jim Meyering <meyering@redhat.com>
1299 * users.txt: Add libvirt.
1301 Support versions of autoconf prior to 2.59c.
1302 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
1303 if it is not already defined.
1305 2007-12-09 Bruno Haible <bruno@clisp.org>
1307 Let 'gnulib-tool --import' collect sources needed for the tests in
1308 tests/ rather than in lib/.
1309 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
1310 argument. If true, add rules to generate libtests.a, and put libtests.a
1311 into $(LDADD). Consider source files in subdirectories and set
1313 (func_emit_initmacro_start, func_emit_initmacro_end,
1314 func_emit_initmacro_done): Pass all arguments explicitly.
1315 (func_import): Determine two module lists main_modules,
1316 testsrelated_modules. Determine use_libtests. Determine two variables
1317 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
1318 instead of just sed_transform_lib_file. Determine two variables
1319 main_files and testsrelated_files. Compute 'files' as the union of
1320 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
1321 func_add_or_update. In the generated gnulib-comp.m4, collect the
1322 object files for tests/ in different variables than those for lib/.
1323 Substitute LIBTESTS_LIBDEPS.
1324 (func_create_testdir): Combine the uses_subdirs results from
1325 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
1327 2007-12-09 Bruno Haible <bruno@clisp.org>
1329 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
1330 the build-aux directory.
1332 2007-12-09 Bruno Haible <bruno@clisp.org>
1334 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
1335 introduced on 2006-09-09.
1337 2007-12-07 Jim Meyering <meyering@redhat.com>
1339 Let these macros work also with autoconf-2.59.
1340 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
1341 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
1342 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1344 2007-12-06 Jim Meyering <meyering@redhat.com>
1346 Avoid a configure-time syntax error in gl_FUNC_ACL.
1347 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
1348 function in each branch, before testing the cache variable.
1350 2007-12-04 Eric Blake <ebb9@byu.net>
1352 Make scripts executable.
1353 * build-aux/config.guess: Add execute permissions.
1354 * build-aux/config.sub: Likewise.
1355 * build-aux/gendocs.sh: Likewise.
1358 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
1360 * doc/functions/frexp.texi (frexp): Document the bug.
1362 Make cygwin fseeko check more reliable.
1363 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
1364 version numbers, rather than unrelated feature check.
1365 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
1366 * doc/functions/ftello.texi (ftello): Likewise.
1367 Reported by Bruno Haible.
1369 * m4/strerror.m4: Bump version number.
1371 2007-12-03 Bruno Haible <bruno@clisp.org>
1373 * doc/functions/mprotect.texi: Mention the mingw problem.
1375 2007-12-03 Eric Blake <ebb9@byu.net>
1377 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
1378 REPLACE_STRERROR is initialized before this macro.
1380 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
1382 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
1383 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
1384 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
1385 put -lsec in even for programs other than 'ls'. This fixes a problem
1386 for gettext reported by Bruno Haible in
1387 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
1388 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
1389 Add support for Solaris 10. This isn't efficient, but should get the
1392 2007-12-03 James Youngman <jay@gnu.org>
1394 * doc/regexprops-generic.texi: change "an close-group" to "a
1395 close-group" and "illegal" to "not allowed".
1397 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1399 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
1400 pr_byname.h. Needed for the rare case when the maintainer has done
1401 "make maintainer-clean" in the source directory and then attempts a
1402 build outside the source directory.
1403 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
1406 2007-12-02 Martin Lambers <marlam@marlam.de>
1407 Bruno Haible <bruno@clisp.org>
1409 * lib/getpagesize.h: Remove file.
1410 * lib/unistd.in.h: Include declaration of getpagesize here.
1411 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
1412 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
1414 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
1415 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
1416 * modules/getpagesize (Files): Remove lib/getpagesize.h.
1417 (Depends-on): Add unistd.
1418 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1419 (Include): Use <unistd.h> instead of getpagesize.h.
1420 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
1421 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
1422 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
1423 gl_GETPAGESIZE invocation, already handled by module dependency.
1424 * lib/pagealign_alloc.c: Don't include getpagesize.h.
1426 2007-12-02 Bruno Haible <bruno@clisp.org>
1428 * modules/strings-tests: New file.
1429 * tests/test-strings.c: New file.
1431 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
1432 * lib/strings.in.h: New file.
1433 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
1434 * m4/strings_h.m4: New file.
1435 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
1436 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
1437 * modules/strings: New file.
1438 * modules/string (Makefile.am): Update.
1439 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
1440 Reported by Karl Berry.
1442 2007-12-01 Eric Blake <ebb9@byu.net>
1444 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
1445 accomodate fix in cygwin 1.5.25.
1447 2007-12-01 Jim Meyering <meyering@redhat.com>
1449 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
1450 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
1451 that would inhibit utf8-optimization of a regexp containing line-
1452 or buffer-anchors, e.g., `^', `$'.
1454 2007-11-30 Bruno Haible <bruno@clisp.org>
1456 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
1457 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
1458 glthread_recursive_lock_init.
1459 * lib/lock.c (glthread_recursive_lock_init)
1460 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
1461 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1463 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
1465 New function qset_acl, like set_acl but with syscall semantics.
1466 * lib/acl.h (qset_acl): New decl.
1467 * lib/acl.c (qset_acl): New function.
1468 (set_acl): Use new function. Use more-consistent diagnostics.
1470 2007-11-28 Jim Meyering <meyering@redhat.com>
1472 * modules/physmem (License): Change from GPL to LGPLv2+.
1474 2007-11-26 Bruno Haible <bruno@clisp.org>
1476 * lib/vasnprintf.c (decode_long_double): Don't abort if the
1477 'long double' type has excess precision.
1478 Reported by Jim Meyering in
1479 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
1481 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1483 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
1484 Sync from <http://gnu.org/licenses>.
1485 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
1486 with license text from same location.
1487 * doc/maintain.texi, doc/standards.texi: Sync from
1488 <http://savannah.gnu.org/projects/gnustandards>.
1490 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
1491 and Jim Meyering <meyering@redhat.com>
1493 Adjust getdate' grammar to accept a slightly more regular language.
1494 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
1495 Before, the former was rejected.
1496 * lib/getdate.y (digits_to_date_time): New function, factored
1498 (number): ...here. Just call digits_to_date_time.
1499 (hybrid): New non-terminal to handle an <unsigned number,
1500 signed relative offset> sequence consistently.
1502 2007-11-18 Jim Meyering <meyering@redhat.com>
1504 Pull my changes from coreutils:
1505 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
1506 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
1507 use of $gnulib_tool_option_extras, so that it's separated from the
1510 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
1511 * build-aux/bootstrap (cp_mark_as_generated): Create any required
1512 parent destination directories before copying a file into place.
1514 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
1516 bootstrap: work also with 4-argument variant of AC_INIT
1517 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
1519 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
1521 Port test-getaddrinfo to Solaris.
1522 Problem reported by Bruno Haible in
1523 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
1524 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
1525 explanation of setting 'hints'.
1526 Don't reject an implementation merely because it returns EAI_SERVICE.
1527 (EAI_SERVICE): Define to 0 if not defined.
1529 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
1531 The license of gnu-make and posix-shell is now "GPLed build tool".
1532 * modules/gnu-make (License): Likewise.
1533 * modules/posix-shell (License): Likewise.
1535 New module posix-shell, for determining a POSIX shell
1536 or perhaps something that is close enough to a POSIX shell.
1537 * m4/posix-shell.m4: New file.
1538 * modules/posix-shell: New file.
1540 * MODULES.html.sh: Mention new module.
1542 New module gnu-make, for determining whether we're using GNU Make.
1543 * m4/gnu-make.m4: New file.
1544 * modules/gnu-make: New file.
1545 * MODULES.html.sh: Mention new module.
1547 2007-11-14 Jim Meyering <meyering@redhat.com>
1549 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
1550 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
1551 use this macro to create a function _definition_.
1552 Remove useless "#undef ARGMATCH_DIE".
1554 2007-11-14 Bruno Haible <bruno@clisp.org>
1556 * lib/config.charset: Update for OpenBSD 4.1.
1557 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
1559 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
1561 Document 64-bit #if problems in stdint.texi.
1562 * doc/headers/stdint.texi (stdint.h): Mention problems with
1563 64-bit-#if, and how to work around them.
1565 Don't insist on 'long long int' support in the preprocessor. It
1566 breaks too many things. For example, PRIdMAX still uses a 'long
1567 long int' format with the latest Sun compiler, even though
1568 HAVE_LONG_LONG_INT isn't defined due to that compiler's
1569 preprocessor problem. This causes the latest coreutils to dump
1570 core on Solaris 10 sparc with the Sun C compiler.
1571 Instead, fix the 2007-10-16 problem in a different way, by evaluating
1572 the troublesome expressions at configure-time, not at #if-time.
1573 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
1575 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
1576 compile-time C checks, done at 'configure'-time.
1577 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
1578 * modules/inttypes (Makefile): Substitute the new symbols that
1579 gl_INTTYPES_H now generates.
1580 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
1582 2007-11-12 Bruno Haible <bruno@clisp.org>
1584 Tests for Unicode character classification functions.
1586 * modules/unictype/bidicategory-byname-tests: New file.
1587 * modules/unictype/bidicategory-name-tests: New file.
1588 * modules/unictype/bidicategory-of-tests: New file.
1589 * modules/unictype/bidicategory-test-tests: New file.
1590 * modules/unictype/block-list-tests: New file.
1591 * modules/unictype/block-of-tests: New file.
1592 * modules/unictype/block-test-tests: New file.
1593 * modules/unictype/category-C-tests: New file.
1594 * modules/unictype/category-Cc-tests: New file.
1595 * modules/unictype/category-Cf-tests: New file.
1596 * modules/unictype/category-Cn-tests: New file.
1597 * modules/unictype/category-Co-tests: New file.
1598 * modules/unictype/category-Cs-tests: New file.
1599 * modules/unictype/category-L-tests: New file.
1600 * modules/unictype/category-Ll-tests: New file.
1601 * modules/unictype/category-Lm-tests: New file.
1602 * modules/unictype/category-Lo-tests: New file.
1603 * modules/unictype/category-Lt-tests: New file.
1604 * modules/unictype/category-Lu-tests: New file.
1605 * modules/unictype/category-M-tests: New file.
1606 * modules/unictype/category-Mc-tests: New file.
1607 * modules/unictype/category-Me-tests: New file.
1608 * modules/unictype/category-Mn-tests: New file.
1609 * modules/unictype/category-N-tests: New file.
1610 * modules/unictype/category-Nd-tests: New file.
1611 * modules/unictype/category-Nl-tests: New file.
1612 * modules/unictype/category-No-tests: New file.
1613 * modules/unictype/category-P-tests: New file.
1614 * modules/unictype/category-Pc-tests: New file.
1615 * modules/unictype/category-Pd-tests: New file.
1616 * modules/unictype/category-Pe-tests: New file.
1617 * modules/unictype/category-Pf-tests: New file.
1618 * modules/unictype/category-Pi-tests: New file.
1619 * modules/unictype/category-Po-tests: New file.
1620 * modules/unictype/category-Ps-tests: New file.
1621 * modules/unictype/category-S-tests: New file.
1622 * modules/unictype/category-Sc-tests: New file.
1623 * modules/unictype/category-Sk-tests: New file.
1624 * modules/unictype/category-Sm-tests: New file.
1625 * modules/unictype/category-So-tests: New file.
1626 * modules/unictype/category-Z-tests: New file.
1627 * modules/unictype/category-Zl-tests: New file.
1628 * modules/unictype/category-Zp-tests: New file.
1629 * modules/unictype/category-Zs-tests: New file.
1630 * modules/unictype/category-and-not-tests: New file.
1631 * modules/unictype/category-and-tests: New file.
1632 * modules/unictype/category-byname-tests: New file.
1633 * modules/unictype/category-name-tests: New file.
1634 * modules/unictype/category-none-tests: New file.
1635 * modules/unictype/category-of-tests: New file.
1636 * modules/unictype/category-or-tests: New file.
1637 * modules/unictype/category-test-withtable-tests: New file.
1638 * modules/unictype/combining-class-tests: New file.
1639 * modules/unictype/ctype-alnum-tests: New file.
1640 * modules/unictype/ctype-alpha-tests: New file.
1641 * modules/unictype/ctype-blank-tests: New file.
1642 * modules/unictype/ctype-cntrl-tests: New file.
1643 * modules/unictype/ctype-digit-tests: New file.
1644 * modules/unictype/ctype-graph-tests: New file.
1645 * modules/unictype/ctype-lower-tests: New file.
1646 * modules/unictype/ctype-print-tests: New file.
1647 * modules/unictype/ctype-punct-tests: New file.
1648 * modules/unictype/ctype-space-tests: New file.
1649 * modules/unictype/ctype-upper-tests: New file.
1650 * modules/unictype/ctype-xdigit-tests: New file.
1651 * modules/unictype/decimal-digit-tests: New file.
1652 * modules/unictype/digit-tests: New file.
1653 * modules/unictype/mirror-tests: New file.
1654 * modules/unictype/numeric-tests: New file.
1655 * modules/unictype/property-alphabetic-tests: New file.
1656 * modules/unictype/property-ascii-hex-digit-tests: New file.
1657 * modules/unictype/property-bidi-arabic-digit-tests: New file.
1658 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
1659 * modules/unictype/property-bidi-block-separator-tests: New file.
1660 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
1661 * modules/unictype/property-bidi-common-separator-tests: New file.
1662 * modules/unictype/property-bidi-control-tests: New file.
1663 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
1664 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
1665 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
1666 * modules/unictype/property-bidi-european-digit-tests: New file.
1667 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
1668 * modules/unictype/property-bidi-left-to-right-tests: New file.
1669 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
1670 * modules/unictype/property-bidi-other-neutral-tests: New file.
1671 * modules/unictype/property-bidi-pdf-tests: New file.
1672 * modules/unictype/property-bidi-segment-separator-tests: New file.
1673 * modules/unictype/property-bidi-whitespace-tests: New file.
1674 * modules/unictype/property-byname-tests: New file.
1675 * modules/unictype/property-combining-tests: New file.
1676 * modules/unictype/property-composite-tests: New file.
1677 * modules/unictype/property-currency-symbol-tests: New file.
1678 * modules/unictype/property-dash-tests: New file.
1679 * modules/unictype/property-decimal-digit-tests: New file.
1680 * modules/unictype/property-default-ignorable-code-point-tests: New file.
1681 * modules/unictype/property-deprecated-tests: New file.
1682 * modules/unictype/property-diacritic-tests: New file.
1683 * modules/unictype/property-extender-tests: New file.
1684 * modules/unictype/property-format-control-tests: New file.
1685 * modules/unictype/property-grapheme-base-tests: New file.
1686 * modules/unictype/property-grapheme-extend-tests: New file.
1687 * modules/unictype/property-grapheme-link-tests: New file.
1688 * modules/unictype/property-hex-digit-tests: New file.
1689 * modules/unictype/property-hyphen-tests: New file.
1690 * modules/unictype/property-id-continue-tests: New file.
1691 * modules/unictype/property-id-start-tests: New file.
1692 * modules/unictype/property-ideographic-tests: New file.
1693 * modules/unictype/property-ids-binary-operator-tests: New file.
1694 * modules/unictype/property-ids-trinary-operator-tests: New file.
1695 * modules/unictype/property-ignorable-control-tests: New file.
1696 * modules/unictype/property-iso-control-tests: New file.
1697 * modules/unictype/property-join-control-tests: New file.
1698 * modules/unictype/property-left-of-pair-tests: New file.
1699 * modules/unictype/property-line-separator-tests: New file.
1700 * modules/unictype/property-logical-order-exception-tests: New file.
1701 * modules/unictype/property-lowercase-tests: New file.
1702 * modules/unictype/property-math-tests: New file.
1703 * modules/unictype/property-non-break-tests: New file.
1704 * modules/unictype/property-not-a-character-tests: New file.
1705 * modules/unictype/property-numeric-tests: New file.
1706 * modules/unictype/property-other-alphabetic-tests: New file.
1707 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
1708 * modules/unictype/property-other-grapheme-extend-tests: New file.
1709 * modules/unictype/property-other-id-continue-tests: New file.
1710 * modules/unictype/property-other-id-start-tests: New file.
1711 * modules/unictype/property-other-lowercase-tests: New file.
1712 * modules/unictype/property-other-math-tests: New file.
1713 * modules/unictype/property-other-uppercase-tests: New file.
1714 * modules/unictype/property-paired-punctuation-tests: New file.
1715 * modules/unictype/property-paragraph-separator-tests: New file.
1716 * modules/unictype/property-pattern-syntax-tests: New file.
1717 * modules/unictype/property-pattern-white-space-tests: New file.
1718 * modules/unictype/property-private-use-tests: New file.
1719 * modules/unictype/property-punctuation-tests: New file.
1720 * modules/unictype/property-quotation-mark-tests: New file.
1721 * modules/unictype/property-radical-tests: New file.
1722 * modules/unictype/property-sentence-terminal-tests: New file.
1723 * modules/unictype/property-soft-dotted-tests: New file.
1724 * modules/unictype/property-space-tests: New file.
1725 * modules/unictype/property-terminal-punctuation-tests: New file.
1726 * modules/unictype/property-test-tests: New file.
1727 * modules/unictype/property-titlecase-tests: New file.
1728 * modules/unictype/property-unassigned-code-value-tests: New file.
1729 * modules/unictype/property-unified-ideograph-tests: New file.
1730 * modules/unictype/property-uppercase-tests: New file.
1731 * modules/unictype/property-variation-selector-tests: New file.
1732 * modules/unictype/property-white-space-tests: New file.
1733 * modules/unictype/property-xid-continue-tests: New file.
1734 * modules/unictype/property-xid-start-tests: New file.
1735 * modules/unictype/property-zero-width-tests: New file.
1736 * modules/unictype/scripts-tests: New file.
1737 * modules/unictype/syntax-c-ident-tests: New file.
1738 * modules/unictype/syntax-c-whitespace-tests: New file.
1739 * modules/unictype/syntax-java-ident-tests: New file.
1740 * modules/unictype/syntax-java-whitespace-tests: New file.
1741 * tests/unictype/test-bidi_byname.c: New file.
1742 * tests/unictype/test-bidi_name.c: New file.
1743 * tests/unictype/test-bidi_of.c: New file.
1744 * tests/unictype/test-bidi_test.c: New file.
1745 * tests/unictype/test-block_list.c: New file.
1746 * tests/unictype/test-block_of.c: New file.
1747 * tests/unictype/test-block_test.c: New file.
1748 * tests/unictype/test-categ_and.c: New file.
1749 * tests/unictype/test-categ_and_not.c: New file.
1750 * tests/unictype/test-categ_byname.c: New file.
1751 * tests/unictype/test-categ_name.c: New file.
1752 * tests/unictype/test-categ_none.c: New file.
1753 * tests/unictype/test-categ_of.c: New file.
1754 * tests/unictype/test-categ_or.c: New file.
1755 * tests/unictype/test-categ_test_withtable.c: New file.
1756 * tests/unictype/test-combining.c: New file.
1757 * tests/unictype/test-decdigit.c: New file.
1758 * tests/unictype/test-digit.c: New file.
1759 * tests/unictype/test-mirror.c: New file.
1760 * tests/unictype/test-numeric.c: New file.
1761 * tests/unictype/test-pr_byname.c: New file.
1762 * tests/unictype/test-pr_test.c: New file.
1763 * tests/unictype/test-predicate-part1.h: New file.
1764 * tests/unictype/test-predicate-part2.h: New file.
1765 * tests/unictype/test-scripts.c: New file.
1766 * tests/unictype/test-sy_c_ident.c: New file.
1767 * tests/unictype/test-sy_java_ident.c: New file.
1769 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
1771 * tests/unictype/test-categ_Cc.c: Likewise.
1772 * tests/unictype/test-categ_Cf.c: Likewise.
1773 * tests/unictype/test-categ_Cn.c: Likewise.
1774 * tests/unictype/test-categ_Co.c: Likewise.
1775 * tests/unictype/test-categ_Cs.c: Likewise.
1776 * tests/unictype/test-categ_L.c: Likewise.
1777 * tests/unictype/test-categ_Ll.c: Likewise.
1778 * tests/unictype/test-categ_Lm.c: Likewise.
1779 * tests/unictype/test-categ_Lo.c: Likewise.
1780 * tests/unictype/test-categ_Lt.c: Likewise.
1781 * tests/unictype/test-categ_Lu.c: Likewise.
1782 * tests/unictype/test-categ_M.c: Likewise.
1783 * tests/unictype/test-categ_Mc.c: Likewise.
1784 * tests/unictype/test-categ_Me.c: Likewise.
1785 * tests/unictype/test-categ_Mn.c: Likewise.
1786 * tests/unictype/test-categ_N.c: Likewise.
1787 * tests/unictype/test-categ_Nd.c: Likewise.
1788 * tests/unictype/test-categ_Nl.c: Likewise.
1789 * tests/unictype/test-categ_No.c: Likewise.
1790 * tests/unictype/test-categ_P.c: Likewise.
1791 * tests/unictype/test-categ_Pc.c: Likewise.
1792 * tests/unictype/test-categ_Pd.c: Likewise.
1793 * tests/unictype/test-categ_Pe.c: Likewise.
1794 * tests/unictype/test-categ_Pf.c: Likewise.
1795 * tests/unictype/test-categ_Pi.c: Likewise.
1796 * tests/unictype/test-categ_Po.c: Likewise.
1797 * tests/unictype/test-categ_Ps.c: Likewise.
1798 * tests/unictype/test-categ_S.c: Likewise.
1799 * tests/unictype/test-categ_Sc.c: Likewise.
1800 * tests/unictype/test-categ_Sk.c: Likewise.
1801 * tests/unictype/test-categ_Sm.c: Likewise.
1802 * tests/unictype/test-categ_So.c: Likewise.
1803 * tests/unictype/test-categ_Z.c: Likewise.
1804 * tests/unictype/test-categ_Zl.c: Likewise.
1805 * tests/unictype/test-categ_Zp.c: Likewise.
1806 * tests/unictype/test-categ_Zs.c: Likewise.
1807 * tests/unictype/test-ctype_alnum.c: Likewise.
1808 * tests/unictype/test-ctype_alpha.c: Likewise.
1809 * tests/unictype/test-ctype_blank.c: Likewise.
1810 * tests/unictype/test-ctype_cntrl.c: Likewise.
1811 * tests/unictype/test-ctype_digit.c: Likewise.
1812 * tests/unictype/test-ctype_graph.c: Likewise.
1813 * tests/unictype/test-ctype_lower.c: Likewise.
1814 * tests/unictype/test-ctype_print.c: Likewise.
1815 * tests/unictype/test-ctype_punct.c: Likewise.
1816 * tests/unictype/test-ctype_space.c: Likewise.
1817 * tests/unictype/test-ctype_upper.c: Likewise.
1818 * tests/unictype/test-ctype_xdigit.c: Likewise.
1819 * tests/unictype/test-decdigit.h: Likewise.
1820 * tests/unictype/test-digit.h: Likewise.
1821 * tests/unictype/test-numeric.h: Likewise.
1822 * tests/unictype/test-pr_alphabetic.c: Likewise.
1823 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
1824 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1825 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1826 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
1827 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1828 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
1829 * tests/unictype/test-pr_bidi_control.c: Likewise.
1830 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
1831 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
1832 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1833 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1834 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1835 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1836 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1837 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1838 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
1839 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
1840 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
1841 * tests/unictype/test-pr_combining.c: Likewise.
1842 * tests/unictype/test-pr_composite.c: Likewise.
1843 * tests/unictype/test-pr_currency_symbol.c: Likewise.
1844 * tests/unictype/test-pr_dash.c: Likewise.
1845 * tests/unictype/test-pr_decimal_digit.c: Likewise.
1846 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
1847 * tests/unictype/test-pr_deprecated.c: Likewise.
1848 * tests/unictype/test-pr_diacritic.c: Likewise.
1849 * tests/unictype/test-pr_extender.c: Likewise.
1850 * tests/unictype/test-pr_format_control.c: Likewise.
1851 * tests/unictype/test-pr_grapheme_base.c: Likewise.
1852 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1853 * tests/unictype/test-pr_grapheme_link.c: Likewise.
1854 * tests/unictype/test-pr_hex_digit.c: Likewise.
1855 * tests/unictype/test-pr_hyphen.c: Likewise.
1856 * tests/unictype/test-pr_id_continue.c: Likewise.
1857 * tests/unictype/test-pr_id_start.c: Likewise.
1858 * tests/unictype/test-pr_ideographic.c: Likewise.
1859 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
1860 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
1861 * tests/unictype/test-pr_ignorable_control.c: Likewise.
1862 * tests/unictype/test-pr_iso_control.c: Likewise.
1863 * tests/unictype/test-pr_join_control.c: Likewise.
1864 * tests/unictype/test-pr_left_of_pair.c: Likewise.
1865 * tests/unictype/test-pr_line_separator.c: Likewise.
1866 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1867 * tests/unictype/test-pr_lowercase.c: Likewise.
1868 * tests/unictype/test-pr_math.c: Likewise.
1869 * tests/unictype/test-pr_non_break.c: Likewise.
1870 * tests/unictype/test-pr_not_a_character.c: Likewise.
1871 * tests/unictype/test-pr_numeric.c: Likewise.
1872 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1873 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
1874 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
1875 * tests/unictype/test-pr_other_id_continue.c: Likewise.
1876 * tests/unictype/test-pr_other_id_start.c: Likewise.
1877 * tests/unictype/test-pr_other_lowercase.c: Likewise.
1878 * tests/unictype/test-pr_other_math.c: Likewise.
1879 * tests/unictype/test-pr_other_uppercase.c: Likewise.
1880 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
1881 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
1882 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
1883 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
1884 * tests/unictype/test-pr_private_use.c: Likewise.
1885 * tests/unictype/test-pr_punctuation.c: Likewise.
1886 * tests/unictype/test-pr_quotation_mark.c: Likewise.
1887 * tests/unictype/test-pr_radical.c: Likewise.
1888 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1889 * tests/unictype/test-pr_soft_dotted.c: Likewise.
1890 * tests/unictype/test-pr_space.c: Likewise.
1891 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1892 * tests/unictype/test-pr_titlecase.c: Likewise.
1893 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1894 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1895 * tests/unictype/test-pr_uppercase.c: Likewise.
1896 * tests/unictype/test-pr_variation_selector.c: Likewise.
1897 * tests/unictype/test-pr_white_space.c: Likewise.
1898 * tests/unictype/test-pr_xid_continue.c: Likewise.
1899 * tests/unictype/test-pr_xid_start.c: Likewise.
1900 * tests/unictype/test-pr_zero_width.c: Likewise.
1901 * tests/unictype/test-sy_c_whitespace.c: Likewise.
1902 * tests/unictype/test-sy_java_whitespace.c: Likewise.
1904 2007-11-12 Bruno Haible <bruno@clisp.org>
1906 Unicode character classification functions.
1907 * lib/unictype.h: New file.
1908 * modules/unictype/base: New file.
1909 * modules/unictype/category-L: New file.
1910 * modules/unictype/category-Lu: New file.
1911 * modules/unictype/category-Ll: New file.
1912 * modules/unictype/category-Lt: New file.
1913 * modules/unictype/category-Lm: New file.
1914 * modules/unictype/category-Lo: New file.
1915 * modules/unictype/category-M: New file.
1916 * modules/unictype/category-Mn: New file.
1917 * modules/unictype/category-Mc: New file.
1918 * modules/unictype/category-Me: New file.
1919 * modules/unictype/category-N: New file.
1920 * modules/unictype/category-Nd: New file.
1921 * modules/unictype/category-Nl: New file.
1922 * modules/unictype/category-No: New file.
1923 * modules/unictype/category-P: New file.
1924 * modules/unictype/category-Pc: New file.
1925 * modules/unictype/category-Pd: New file.
1926 * modules/unictype/category-Ps: New file.
1927 * modules/unictype/category-Pe: New file.
1928 * modules/unictype/category-Pi: New file.
1929 * modules/unictype/category-Pf: New file.
1930 * modules/unictype/category-Po: New file.
1931 * modules/unictype/category-S: New file.
1932 * modules/unictype/category-Sm: New file.
1933 * modules/unictype/category-Sc: New file.
1934 * modules/unictype/category-Sk: New file.
1935 * modules/unictype/category-So: New file.
1936 * modules/unictype/category-Z: New file.
1937 * modules/unictype/category-Zs: New file.
1938 * modules/unictype/category-Zl: New file.
1939 * modules/unictype/category-Zp: New file.
1940 * modules/unictype/category-C: New file.
1941 * modules/unictype/category-Cc: New file.
1942 * modules/unictype/category-Cf: New file.
1943 * modules/unictype/category-Cs: New file.
1944 * modules/unictype/category-Co: New file.
1945 * modules/unictype/category-Cn: New file.
1946 * modules/unictype/category-or: New file.
1947 * modules/unictype/category-of: New file.
1948 * modules/unictype/category-test: New file.
1949 * modules/unictype/category-test-withtable: New file.
1950 * modules/unictype/category-byname: New file.
1951 * modules/unictype/category-none: New file.
1952 * modules/unictype/category-and: New file.
1953 * modules/unictype/category-and-not: New file.
1954 * modules/unictype/category-name: New file.
1955 * modules/unictype/combining-class: New file.
1956 * modules/unictype/category-all: New file.
1957 * modules/unictype/bidicategory-all: New file.
1958 * modules/unictype/bidicategory-byname: New file.
1959 * modules/unictype/bidicategory-name: New file.
1960 * modules/unictype/bidicategory-of: New file.
1961 * modules/unictype/bidicategory-test: New file.
1962 * modules/unictype/decimal-digit: New file.
1963 * modules/unictype/digit: New file.
1964 * modules/unictype/numeric: New file.
1965 * modules/unictype/mirror: New file.
1966 * modules/unictype/property-white-space: New file.
1967 * modules/unictype/property-alphabetic: New file.
1968 * modules/unictype/property-other-alphabetic: New file.
1969 * modules/unictype/property-not-a-character: New file.
1970 * modules/unictype/property-default-ignorable-code-point: New file.
1971 * modules/unictype/property-other-default-ignorable-code-point: New
1973 * modules/unictype/property-deprecated: New file.
1974 * modules/unictype/property-logical-order-exception: New file.
1975 * modules/unictype/property-variation-selector: New file.
1976 * modules/unictype/property-private-use: New file.
1977 * modules/unictype/property-unassigned-code-value: New file.
1978 * modules/unictype/property-uppercase: New file.
1979 * modules/unictype/property-other-uppercase: New file.
1980 * modules/unictype/property-lowercase: New file.
1981 * modules/unictype/property-other-lowercase: New file.
1982 * modules/unictype/property-titlecase: New file.
1983 * modules/unictype/property-soft-dotted: New file.
1984 * modules/unictype/property-id-start: New file.
1985 * modules/unictype/property-other-id-start: New file.
1986 * modules/unictype/property-id-continue: New file.
1987 * modules/unictype/property-other-id-continue: New file.
1988 * modules/unictype/property-xid-start: New file.
1989 * modules/unictype/property-xid-continue: New file.
1990 * modules/unictype/property-pattern-white-space: New file.
1991 * modules/unictype/property-pattern-syntax: New file.
1992 * modules/unictype/property-join-control: New file.
1993 * modules/unictype/property-grapheme-base: New file.
1994 * modules/unictype/property-grapheme-extend: New file.
1995 * modules/unictype/property-other-grapheme-extend: New file.
1996 * modules/unictype/property-grapheme-link: New file.
1997 * modules/unictype/property-bidi-control: New file.
1998 * modules/unictype/property-bidi-left-to-right: New file.
1999 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
2000 * modules/unictype/property-bidi-arabic-right-to-left: New file.
2001 * modules/unictype/property-bidi-european-digit: New file.
2002 * modules/unictype/property-bidi-eur-num-separator: New file.
2003 * modules/unictype/property-bidi-eur-num-terminator: New file.
2004 * modules/unictype/property-bidi-arabic-digit: New file.
2005 * modules/unictype/property-bidi-common-separator: New file.
2006 * modules/unictype/property-bidi-block-separator: New file.
2007 * modules/unictype/property-bidi-segment-separator: New file.
2008 * modules/unictype/property-bidi-whitespace: New file.
2009 * modules/unictype/property-bidi-non-spacing-mark: New file.
2010 * modules/unictype/property-bidi-boundary-neutral: New file.
2011 * modules/unictype/property-bidi-pdf: New file.
2012 * modules/unictype/property-bidi-embedding-or-override: New file.
2013 * modules/unictype/property-bidi-other-neutral: New file.
2014 * modules/unictype/property-hex-digit: New file.
2015 * modules/unictype/property-ascii-hex-digit: New file.
2016 * modules/unictype/property-ideographic: New file.
2017 * modules/unictype/property-unified-ideograph: New file.
2018 * modules/unictype/property-radical: New file.
2019 * modules/unictype/property-ids-binary-operator: New file.
2020 * modules/unictype/property-ids-trinary-operator: New file.
2021 * modules/unictype/property-zero-width: New file.
2022 * modules/unictype/property-space: New file.
2023 * modules/unictype/property-non-break: New file.
2024 * modules/unictype/property-iso-control: New file.
2025 * modules/unictype/property-format-control: New file.
2026 * modules/unictype/property-dash: New file.
2027 * modules/unictype/property-hyphen: New file.
2028 * modules/unictype/property-punctuation: New file.
2029 * modules/unictype/property-line-separator: New file.
2030 * modules/unictype/property-paragraph-separator: New file.
2031 * modules/unictype/property-quotation-mark: New file.
2032 * modules/unictype/property-sentence-terminal: New file.
2033 * modules/unictype/property-terminal-punctuation: New file.
2034 * modules/unictype/property-currency-symbol: New file.
2035 * modules/unictype/property-math: New file.
2036 * modules/unictype/property-other-math: New file.
2037 * modules/unictype/property-paired-punctuation: New file.
2038 * modules/unictype/property-left-of-pair: New file.
2039 * modules/unictype/property-combining: New file.
2040 * modules/unictype/property-composite: New file.
2041 * modules/unictype/property-decimal-digit: New file.
2042 * modules/unictype/property-numeric: New file.
2043 * modules/unictype/property-diacritic: New file.
2044 * modules/unictype/property-extender: New file.
2045 * modules/unictype/property-ignorable-control: New file.
2046 * modules/unictype/property-test: New file.
2047 * modules/unictype/property-byname: New file.
2048 * modules/unictype/property-all: New file.
2049 * modules/unictype/scripts: New file.
2050 * modules/unictype/scripts-all: New file.
2051 * modules/unictype/block-of: New file.
2052 * modules/unictype/block-test: New file.
2053 * modules/unictype/block-list: New file.
2054 * modules/unictype/block-all: New file.
2055 * modules/unictype/syntax-c-whitespace: New file.
2056 * modules/unictype/syntax-java-whitespace: New file.
2057 * modules/unictype/syntax-c-ident: New file.
2058 * modules/unictype/syntax-java-ident: New file.
2059 * modules/unictype/ctype-alnum: New file.
2060 * modules/unictype/ctype-alpha: New file.
2061 * modules/unictype/ctype-cntrl: New file.
2062 * modules/unictype/ctype-digit: New file.
2063 * modules/unictype/ctype-graph: New file.
2064 * modules/unictype/ctype-lower: New file.
2065 * modules/unictype/ctype-print: New file.
2066 * modules/unictype/ctype-punct: New file.
2067 * modules/unictype/ctype-space: New file.
2068 * modules/unictype/ctype-upper: New file.
2069 * modules/unictype/ctype-xdigit: New file.
2070 * modules/unictype/ctype-blank: New file.
2071 * lib/unictype/bidi_byname.c: New file.
2072 * lib/unictype/bidi_name.c: New file.
2073 * lib/unictype/bidi_of.c: New file.
2074 * lib/unictype/bidi_test.c: New file.
2075 * lib/unictype/bitmap.h: New file.
2076 * lib/unictype/block_test.c: New file.
2077 * lib/unictype/blocks.c: New file.
2078 * lib/unictype/categ_C.c: New file.
2079 * lib/unictype/categ_Cc.c: New file.
2080 * lib/unictype/categ_Cf.c: New file.
2081 * lib/unictype/categ_Cn.c: New file.
2082 * lib/unictype/categ_Co.c: New file.
2083 * lib/unictype/categ_Cs.c: New file.
2084 * lib/unictype/categ_L.c: New file.
2085 * lib/unictype/categ_Ll.c: New file.
2086 * lib/unictype/categ_Lm.c: New file.
2087 * lib/unictype/categ_Lo.c: New file.
2088 * lib/unictype/categ_Lt.c: New file.
2089 * lib/unictype/categ_Lu.c: New file.
2090 * lib/unictype/categ_M.c: New file.
2091 * lib/unictype/categ_Mc.c: New file.
2092 * lib/unictype/categ_Me.c: New file.
2093 * lib/unictype/categ_Mn.c: New file.
2094 * lib/unictype/categ_N.c: New file.
2095 * lib/unictype/categ_Nd.c: New file.
2096 * lib/unictype/categ_Nl.c: New file.
2097 * lib/unictype/categ_No.c: New file.
2098 * lib/unictype/categ_P.c: New file.
2099 * lib/unictype/categ_Pc.c: New file.
2100 * lib/unictype/categ_Pd.c: New file.
2101 * lib/unictype/categ_Pe.c: New file.
2102 * lib/unictype/categ_Pf.c: New file.
2103 * lib/unictype/categ_Pi.c: New file.
2104 * lib/unictype/categ_Po.c: New file.
2105 * lib/unictype/categ_Ps.c: New file.
2106 * lib/unictype/categ_S.c: New file.
2107 * lib/unictype/categ_Sc.c: New file.
2108 * lib/unictype/categ_Sk.c: New file.
2109 * lib/unictype/categ_Sm.c: New file.
2110 * lib/unictype/categ_So.c: New file.
2111 * lib/unictype/categ_Z.c: New file.
2112 * lib/unictype/categ_Zl.c: New file.
2113 * lib/unictype/categ_Zp.c: New file.
2114 * lib/unictype/categ_Zs.c: New file.
2115 * lib/unictype/categ_and.c: New file.
2116 * lib/unictype/categ_and_not.c: New file.
2117 * lib/unictype/categ_byname.c: New file.
2118 * lib/unictype/categ_name.c: New file.
2119 * lib/unictype/categ_none.c: New file.
2120 * lib/unictype/categ_of.c: New file.
2121 * lib/unictype/categ_or.c: New file.
2122 * lib/unictype/categ_test.c: New file.
2123 * lib/unictype/combining.c: New file.
2124 * lib/unictype/ctype_alnum.c: New file.
2125 * lib/unictype/ctype_alpha.c: New file.
2126 * lib/unictype/ctype_blank.c: New file.
2127 * lib/unictype/ctype_cntrl.c: New file.
2128 * lib/unictype/ctype_digit.c: New file.
2129 * lib/unictype/ctype_graph.c: New file.
2130 * lib/unictype/ctype_lower.c: New file.
2131 * lib/unictype/ctype_print.c: New file.
2132 * lib/unictype/ctype_punct.c: New file.
2133 * lib/unictype/ctype_space.c: New file.
2134 * lib/unictype/ctype_upper.c: New file.
2135 * lib/unictype/ctype_xdigit.c: New file.
2136 * lib/unictype/decdigit.c: New file.
2137 * lib/unictype/digit.c: New file.
2138 * lib/unictype/identsyntaxmap.h: New file.
2139 * lib/unictype/mirror.c: New file.
2140 * lib/unictype/numeric.c: New file.
2141 * lib/unictype/pr_alphabetic.c: New file.
2142 * lib/unictype/pr_ascii_hex_digit.c: New file.
2143 * lib/unictype/pr_bidi_arabic_digit.c: New file.
2144 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
2145 * lib/unictype/pr_bidi_block_separator.c: New file.
2146 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
2147 * lib/unictype/pr_bidi_common_separator.c: New file.
2148 * lib/unictype/pr_bidi_control.c: New file.
2149 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
2150 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
2151 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
2152 * lib/unictype/pr_bidi_european_digit.c: New file.
2153 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
2154 * lib/unictype/pr_bidi_left_to_right.c: New file.
2155 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
2156 * lib/unictype/pr_bidi_other_neutral.c: New file.
2157 * lib/unictype/pr_bidi_pdf.c: New file.
2158 * lib/unictype/pr_bidi_segment_separator.c: New file.
2159 * lib/unictype/pr_bidi_whitespace.c: New file.
2160 * lib/unictype/pr_byname.c: New file.
2161 * lib/unictype/pr_byname.gperf: New file.
2162 * lib/unictype/pr_combining.c: New file.
2163 * lib/unictype/pr_composite.c: New file.
2164 * lib/unictype/pr_currency_symbol.c: New file.
2165 * lib/unictype/pr_dash.c: New file.
2166 * lib/unictype/pr_decimal_digit.c: New file.
2167 * lib/unictype/pr_default_ignorable_code_point.c: New file.
2168 * lib/unictype/pr_deprecated.c: New file.
2169 * lib/unictype/pr_diacritic.c: New file.
2170 * lib/unictype/pr_extender.c: New file.
2171 * lib/unictype/pr_format_control.c: New file.
2172 * lib/unictype/pr_grapheme_base.c: New file.
2173 * lib/unictype/pr_grapheme_extend.c: New file.
2174 * lib/unictype/pr_grapheme_link.c: New file.
2175 * lib/unictype/pr_hex_digit.c: New file.
2176 * lib/unictype/pr_hyphen.c: New file.
2177 * lib/unictype/pr_id_continue.c: New file.
2178 * lib/unictype/pr_id_start.c: New file.
2179 * lib/unictype/pr_ideographic.c: New file.
2180 * lib/unictype/pr_ids_binary_operator.c: New file.
2181 * lib/unictype/pr_ids_trinary_operator.c: New file.
2182 * lib/unictype/pr_ignorable_control.c: New file.
2183 * lib/unictype/pr_iso_control.c: New file.
2184 * lib/unictype/pr_join_control.c: New file.
2185 * lib/unictype/pr_left_of_pair.c: New file.
2186 * lib/unictype/pr_line_separator.c: New file.
2187 * lib/unictype/pr_logical_order_exception.c: New file.
2188 * lib/unictype/pr_lowercase.c: New file.
2189 * lib/unictype/pr_math.c: New file.
2190 * lib/unictype/pr_non_break.c: New file.
2191 * lib/unictype/pr_not_a_character.c: New file.
2192 * lib/unictype/pr_numeric.c: New file.
2193 * lib/unictype/pr_other_alphabetic.c: New file.
2194 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
2195 * lib/unictype/pr_other_grapheme_extend.c: New file.
2196 * lib/unictype/pr_other_id_continue.c: New file.
2197 * lib/unictype/pr_other_id_start.c: New file.
2198 * lib/unictype/pr_other_lowercase.c: New file.
2199 * lib/unictype/pr_other_math.c: New file.
2200 * lib/unictype/pr_other_uppercase.c: New file.
2201 * lib/unictype/pr_paired_punctuation.c: New file.
2202 * lib/unictype/pr_paragraph_separator.c: New file.
2203 * lib/unictype/pr_pattern_syntax.c: New file.
2204 * lib/unictype/pr_pattern_white_space.c: New file.
2205 * lib/unictype/pr_private_use.c: New file.
2206 * lib/unictype/pr_punctuation.c: New file.
2207 * lib/unictype/pr_quotation_mark.c: New file.
2208 * lib/unictype/pr_radical.c: New file.
2209 * lib/unictype/pr_sentence_terminal.c: New file.
2210 * lib/unictype/pr_soft_dotted.c: New file.
2211 * lib/unictype/pr_space.c: New file.
2212 * lib/unictype/pr_terminal_punctuation.c: New file.
2213 * lib/unictype/pr_test.c: New file.
2214 * lib/unictype/pr_titlecase.c: New file.
2215 * lib/unictype/pr_unassigned_code_value.c: New file.
2216 * lib/unictype/pr_unified_ideograph.c: New file.
2217 * lib/unictype/pr_uppercase.c: New file.
2218 * lib/unictype/pr_variation_selector.c: New file.
2219 * lib/unictype/pr_white_space.c: New file.
2220 * lib/unictype/pr_xid_continue.c: New file.
2221 * lib/unictype/pr_xid_start.c: New file.
2222 * lib/unictype/pr_zero_width.c: New file.
2223 * lib/unictype/scripts.c: New file.
2224 * lib/unictype/sy_c_ident.c: New file.
2225 * lib/unictype/sy_c_whitespace.c: New file.
2226 * lib/unictype/sy_java_ident.c: New file.
2227 * lib/unictype/sy_java_whitespace.c: New file.
2229 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
2231 * lib/unictype/blocks.h: Likewise.
2232 * lib/unictype/categ_C.h: Likewise.
2233 * lib/unictype/categ_Cc.h: Likewise.
2234 * lib/unictype/categ_Cf.h: Likewise.
2235 * lib/unictype/categ_Cn.h: Likewise.
2236 * lib/unictype/categ_Co.h: Likewise.
2237 * lib/unictype/categ_Cs.h: Likewise.
2238 * lib/unictype/categ_L.h: Likewise.
2239 * lib/unictype/categ_Ll.h: Likewise.
2240 * lib/unictype/categ_Lm.h: Likewise.
2241 * lib/unictype/categ_Lo.h: Likewise.
2242 * lib/unictype/categ_Lt.h: Likewise.
2243 * lib/unictype/categ_Lu.h: Likewise.
2244 * lib/unictype/categ_M.h: Likewise.
2245 * lib/unictype/categ_Mc.h: Likewise.
2246 * lib/unictype/categ_Me.h: Likewise.
2247 * lib/unictype/categ_Mn.h: Likewise.
2248 * lib/unictype/categ_N.h: Likewise.
2249 * lib/unictype/categ_Nd.h: Likewise.
2250 * lib/unictype/categ_Nl.h: Likewise.
2251 * lib/unictype/categ_No.h: Likewise.
2252 * lib/unictype/categ_P.h: Likewise.
2253 * lib/unictype/categ_Pc.h: Likewise.
2254 * lib/unictype/categ_Pd.h: Likewise.
2255 * lib/unictype/categ_Pe.h: Likewise.
2256 * lib/unictype/categ_Pf.h: Likewise.
2257 * lib/unictype/categ_Pi.h: Likewise.
2258 * lib/unictype/categ_Po.h: Likewise.
2259 * lib/unictype/categ_Ps.h: Likewise.
2260 * lib/unictype/categ_S.h: Likewise.
2261 * lib/unictype/categ_Sc.h: Likewise.
2262 * lib/unictype/categ_Sk.h: Likewise.
2263 * lib/unictype/categ_Sm.h: Likewise.
2264 * lib/unictype/categ_So.h: Likewise.
2265 * lib/unictype/categ_Z.h: Likewise.
2266 * lib/unictype/categ_Zl.h: Likewise.
2267 * lib/unictype/categ_Zp.h: Likewise.
2268 * lib/unictype/categ_Zs.h: Likewise.
2269 * lib/unictype/categ_of.h: Likewise.
2270 * lib/unictype/combining.h: Likewise.
2271 * lib/unictype/ctype_alnum.h: Likewise.
2272 * lib/unictype/ctype_alpha.h: Likewise.
2273 * lib/unictype/ctype_blank.h: Likewise.
2274 * lib/unictype/ctype_cntrl.h: Likewise.
2275 * lib/unictype/ctype_digit.h: Likewise.
2276 * lib/unictype/ctype_graph.h: Likewise.
2277 * lib/unictype/ctype_lower.h: Likewise.
2278 * lib/unictype/ctype_print.h: Likewise.
2279 * lib/unictype/ctype_punct.h: Likewise.
2280 * lib/unictype/ctype_space.h: Likewise.
2281 * lib/unictype/ctype_upper.h: Likewise.
2282 * lib/unictype/ctype_xdigit.h: Likewise.
2283 * lib/unictype/decdigit.h: Likewise.
2284 * lib/unictype/digit.h: Likewise.
2285 * lib/unictype/mirror.h: Likewise.
2286 * lib/unictype/numeric.h: Likewise.
2287 * lib/unictype/pr_alphabetic.h: Likewise.
2288 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2289 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2290 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2291 * lib/unictype/pr_bidi_block_separator.h: Likewise.
2292 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2293 * lib/unictype/pr_bidi_common_separator.h: Likewise.
2294 * lib/unictype/pr_bidi_control.h: Likewise.
2295 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2296 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2297 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2298 * lib/unictype/pr_bidi_european_digit.h: Likewise.
2299 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2300 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2301 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2302 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2303 * lib/unictype/pr_bidi_pdf.h: Likewise.
2304 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2305 * lib/unictype/pr_bidi_whitespace.h: Likewise.
2306 * lib/unictype/pr_combining.h: Likewise.
2307 * lib/unictype/pr_composite.h: Likewise.
2308 * lib/unictype/pr_currency_symbol.h: Likewise.
2309 * lib/unictype/pr_dash.h: Likewise.
2310 * lib/unictype/pr_decimal_digit.h: Likewise.
2311 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2312 * lib/unictype/pr_deprecated.h: Likewise.
2313 * lib/unictype/pr_diacritic.h: Likewise.
2314 * lib/unictype/pr_extender.h: Likewise.
2315 * lib/unictype/pr_format_control.h: Likewise.
2316 * lib/unictype/pr_grapheme_base.h: Likewise.
2317 * lib/unictype/pr_grapheme_extend.h: Likewise.
2318 * lib/unictype/pr_grapheme_link.h: Likewise.
2319 * lib/unictype/pr_hex_digit.h: Likewise.
2320 * lib/unictype/pr_hyphen.h: Likewise.
2321 * lib/unictype/pr_id_continue.h: Likewise.
2322 * lib/unictype/pr_id_start.h: Likewise.
2323 * lib/unictype/pr_ideographic.h: Likewise.
2324 * lib/unictype/pr_ids_binary_operator.h: Likewise.
2325 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2326 * lib/unictype/pr_ignorable_control.h: Likewise.
2327 * lib/unictype/pr_iso_control.h: Likewise.
2328 * lib/unictype/pr_join_control.h: Likewise.
2329 * lib/unictype/pr_left_of_pair.h: Likewise.
2330 * lib/unictype/pr_line_separator.h: Likewise.
2331 * lib/unictype/pr_logical_order_exception.h: Likewise.
2332 * lib/unictype/pr_lowercase.h: Likewise.
2333 * lib/unictype/pr_math.h: Likewise.
2334 * lib/unictype/pr_non_break.h: Likewise.
2335 * lib/unictype/pr_not_a_character.h: Likewise.
2336 * lib/unictype/pr_numeric.h: Likewise.
2337 * lib/unictype/pr_other_alphabetic.h: Likewise.
2338 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2339 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2340 * lib/unictype/pr_other_id_continue.h: Likewise.
2341 * lib/unictype/pr_other_id_start.h: Likewise.
2342 * lib/unictype/pr_other_lowercase.h: Likewise.
2343 * lib/unictype/pr_other_math.h: Likewise.
2344 * lib/unictype/pr_other_uppercase.h: Likewise.
2345 * lib/unictype/pr_paired_punctuation.h: Likewise.
2346 * lib/unictype/pr_paragraph_separator.h: Likewise.
2347 * lib/unictype/pr_pattern_syntax.h: Likewise.
2348 * lib/unictype/pr_pattern_white_space.h: Likewise.
2349 * lib/unictype/pr_private_use.h: Likewise.
2350 * lib/unictype/pr_punctuation.h: Likewise.
2351 * lib/unictype/pr_quotation_mark.h: Likewise.
2352 * lib/unictype/pr_radical.h: Likewise.
2353 * lib/unictype/pr_sentence_terminal.h: Likewise.
2354 * lib/unictype/pr_soft_dotted.h: Likewise.
2355 * lib/unictype/pr_space.h: Likewise.
2356 * lib/unictype/pr_terminal_punctuation.h: Likewise.
2357 * lib/unictype/pr_titlecase.h: Likewise.
2358 * lib/unictype/pr_unassigned_code_value.h: Likewise.
2359 * lib/unictype/pr_unified_ideograph.h: Likewise.
2360 * lib/unictype/pr_uppercase.h: Likewise.
2361 * lib/unictype/pr_variation_selector.h: Likewise.
2362 * lib/unictype/pr_white_space.h: Likewise.
2363 * lib/unictype/pr_xid_continue.h: Likewise.
2364 * lib/unictype/pr_xid_start.h: Likewise.
2365 * lib/unictype/pr_zero_width.h: Likewise.
2366 * lib/unictype/scripts.h: Likewise.
2367 * lib/unictype/scripts_byname.gperf: Likewise.
2368 * lib/unictype/sy_c_ident.h: Likewise.
2369 * lib/unictype/sy_c_whitespace.h: Likewise.
2370 * lib/unictype/sy_java_ident.h: Likewise.
2371 * lib/unictype/sy_java_whitespace.h: Likewise.
2373 * lib/unictype/Makefile: New file.
2374 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
2376 * lib/unictype/3level.h: New file, copied from glibc.
2377 * lib/unictype/3levelbit.h: New file.
2379 2007-11-11 Bruno Haible <bruno@clisp.org>
2381 * modules/gperf: New file.
2382 * modules/iconv_open (Depends-on): Add it.
2383 (Makefile.am): Remove the GPERF definition.
2385 2007-11-11 Bruno Haible <bruno@clisp.org>
2387 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
2388 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
2390 2007-11-11 Bruno Haible <bruno@clisp.org>
2392 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
2393 (usage): Remove function.
2395 2007-11-11 Bruno Haible <bruno@clisp.org>
2397 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
2399 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
2401 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
2403 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
2404 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
2405 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
2407 2007-11-11 Bruno Haible <bruno@clisp.org>
2409 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
2410 roundf were declared but do not exist on functions.
2411 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
2412 roundl were declared but do not exist on functions.
2413 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
2414 HAVE_FLOORL_AND_CEILL, respectively.
2415 Needed for Sun C on Solaris 10.
2417 2007-11-11 Bruno Haible <bruno@clisp.org>
2419 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
2420 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
2421 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
2422 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
2423 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
2424 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
2425 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
2427 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
2428 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
2429 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
2430 of HAVE_DECL_ROUND*.
2431 * modules/math (Makefile.am): Update.
2433 2007-11-10 Bruno Haible <bruno@clisp.org>
2435 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
2436 ptrdiff_t as m4/intl.m4.
2438 2007-11-10 Jim Meyering <meyering@redhat.com>
2440 Avoid link failure for the argmatch test.
2441 * tests/test-argmatch.c (usage): Define function to avoid a link
2442 failure: argmatch_die requires a usage function.
2444 2007-11-09 Bruno Haible <bruno@clisp.org>
2446 * doc/functions/snprintf.texi: Mention BeOS deficiency.
2447 * doc/functions/vsnprintf.texi: Likewise.
2448 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
2449 with a size argument < 2.
2451 2007-11-09 Bruno Haible <bruno@clisp.org>
2453 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
2454 buffer. Fixes an inefficiency introduced on 2007-11-03.
2456 2007-11-09 Bruno Haible <bruno@clisp.org>
2458 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
2459 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
2461 2007-11-08 Jim Meyering <meyering@redhat.com>
2463 Change cache variable name prefix "jm_" to "gl_" everywhere.
2464 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
2465 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
2466 * m4/uptime.m4: s/gl_/jm_/
2468 2007-11-07 Bruno Haible <bruno@clisp.org>
2470 Update to GNU gettext 0.17.
2471 * m4/intl.m4: Update to GNU gettext 0.17.
2472 * m4/po.m4: Likewise.
2473 * modules/gettext (Files): Remove m4/ulonglong.m4.
2474 (configure.ac): Require gettext infrastructure from version 0.17.
2476 2007-11-06 Bruno Haible <bruno@clisp.org>
2478 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
2479 symbolic values are not defined in a public header.
2480 * lib/freadable.c (freadable) [QNX]: Likewise.
2481 * lib/freadahead.c (freadahead) [QNX]: Likewise.
2482 * lib/freading.c (freading) [QNX]: Likewise.
2483 * lib/fseterr.c (fseterr) [QNX]: Likewise.
2484 * lib/fwritable.c (fwritable) [QNX]: Likewise.
2485 * lib/fwriting.c (fwriting) [QNX]: Likewise.
2486 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
2487 Reported by Alain Magloire.
2489 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
2491 2007-11-05 Bruno Haible <bruno@clisp.org>
2493 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
2494 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
2495 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
2496 Reported by Eric Blake.
2498 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2499 Bruno Haible <bruno@clisp.org>
2501 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
2502 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
2503 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
2504 (malloc): Undefine also before including <stdlib.h>.
2505 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
2506 Needed on OSF/1 4.0.
2508 2007-11-05 Jim Meyering <meyering@redhat.com>
2510 git-version-gen: sync from coreutils.
2511 * build-aux/git-version-gen: Add comments.
2512 Change the first '-' to '.' in the snapshot version string,
2513 e.g., 6.9-377-08144 -> 6.9.377-08144
2514 Remove first parameter.
2515 Don't declare a version "-dirty" merely because a time
2518 2007-11-04 Bruno Haible <bruno@clisp.org>
2520 * lib/lock.h: Protect all macro definitions containing an 'if'
2521 statement through a "do { ... } while (0)".
2522 * lib/tls.h: Likewise.
2524 2007-11-04 Bruno Haible <bruno@clisp.org>
2526 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
2528 2007-11-04 Bruno Haible <bruno@clisp.org>
2530 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
2531 * modules/fprintf-posix (Depends-on): Add nocrash.
2532 * modules/snprintf-posix (Depends-on): Likewise.
2533 * modules/sprintf-posix (Depends-on): Likewise.
2534 * modules/vasnprintf-posix (Depends-on): Likewise.
2535 * modules/vasprintf-posix (Depends-on): Likewise.
2536 * modules/vfprintf-posix (Depends-on): Likewise.
2537 * modules/vsnprintf-posix (Depends-on): Likewise.
2538 * modules/vsprintf-posix (Depends-on): Likewise.
2539 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2540 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2541 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2542 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2543 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2544 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2545 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2547 2007-11-04 Bruno Haible <bruno@clisp.org>
2549 * modules/nocrash: New file.
2550 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
2551 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
2553 2007-11-04 Bruno Haible <bruno@clisp.org>
2555 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
2557 * tests/test-vasprintf-posix.c (test_function): Likewise.
2558 * tests/test-snprintf-posix.h (test_function): Likewise.
2559 * tests/test-sprintf-posix.h (test_function): Likewise.
2561 Fix *printf behaviour for large precisions on mingw and BeOS.
2562 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
2563 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
2564 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
2565 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2566 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2567 gl_PRINTF_PRECISION and test its result. Invoke
2568 gl_PREREQ_VASNPRINTF_PRECISION.
2569 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2570 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2571 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2572 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2573 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2574 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2575 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2576 * doc/functions/fprintf.texi: Update.
2577 * doc/functions/printf.texi: Update.
2578 * doc/functions/snprintf.texi: Update.
2579 * doc/functions/sprintf.texi: Update.
2580 * doc/functions/vfprintf.texi: Update.
2581 * doc/functions/vprintf.texi: Update.
2582 * doc/functions/vsnprintf.texi: Update.
2583 * doc/functions/vsprintf.texi: Update.
2585 2007-11-04 Bruno Haible <bruno@clisp.org>
2587 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
2589 2007-11-04 Bruno Haible <bruno@clisp.org>
2591 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
2592 Reported by Sylvain Beucler <beuc@gnu.org>.
2594 2007-11-03 Bruno Haible <bruno@clisp.org>
2596 * tests/test-fprintf-posix2.sh: New file.
2597 * tests/test-fprintf-posix2.c: New file.
2598 * modules/fprintf-posix-tests (Files): Add them.
2599 (TESTS): Add test-fprintf-posix2.sh.
2600 (configure.ac): Check for getrlimit and setrlimit.
2601 (check_PROGRAMS): Add test-fprintf-posix2.
2603 * tests/test-printf-posix2.sh: New file.
2604 * tests/test-printf-posix2.c: New file.
2605 * modules/printf-posix-tests (Files): Add them.
2606 (TESTS): Add test-printf-posix2.sh.
2607 (configure.ac): Check for getrlimit and setrlimit.
2608 (check_PROGRAMS): Add test-printf-posix2.
2610 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
2611 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
2612 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
2613 (decode_double): New function, copied from decode_long_double.
2614 (scale10_round_decimal_decoded): New function, extracted from
2615 scale10_round_decimal_long_double.
2616 (scale10_round_decimal_long_double): Use it.
2617 (scale10_round_decimal_double): New function.
2618 (floorlog10): New function.
2619 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
2620 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
2621 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2622 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2623 gl_PRINTF_ENOMEM and test its result. Invoke
2624 gl_PREREQ_VASNPRINTF_ENOMEM.
2625 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2626 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2627 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2628 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2629 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2630 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2631 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2632 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
2633 * modules/snprintf-posix (Depends-on): Likewise.
2634 * modules/sprintf-posix (Depends-on): Likewise.
2635 * modules/vasnprintf-posix (Depends-on): Likewise.
2636 * modules/vasprintf-posix (Depends-on): Likewise.
2637 * modules/vfprintf-posix (Depends-on): Likewise.
2638 * modules/vsnprintf-posix (Depends-on): Likewise.
2639 * modules/vsprintf-posix (Depends-on): Likewise.
2640 * doc/functions/fprintf.texi: Update.
2641 * doc/functions/printf.texi: Update.
2642 * doc/functions/snprintf.texi: Update.
2643 * doc/functions/sprintf.texi: Update.
2644 * doc/functions/vfprintf.texi: Update.
2645 * doc/functions/vprintf.texi: Update.
2646 * doc/functions/vsnprintf.texi: Update.
2647 * doc/functions/vsprintf.texi: Update.
2649 2007-11-03 Bruno Haible <bruno@clisp.org>
2651 * modules/frexp-nolibm-tests: New file.
2653 * modules/frexp-nolibm: New file.
2654 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
2656 2007-11-03 Bruno Haible <bruno@clisp.org>
2658 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
2659 value is C99 compliant.
2660 Needed for OSF/1 5.1.
2662 2007-11-03 Bruno Haible <bruno@clisp.org>
2664 Fix out-of-memory handling of vasnprintf.
2665 * lib/printf-parse.c: Include <errno.h>.
2666 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
2667 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
2670 2007-11-02 Eric Blake <ebb9@byu.net>
2672 Fix tests on cygwin.
2673 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
2675 2007-11-01 Bruno Haible <bruno@clisp.org>
2677 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
2679 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
2680 needed for POSIX compatibility.
2682 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
2684 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
2685 for compatibility with GNU.
2687 2007-11-01 Bruno Haible <bruno@clisp.org>
2689 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
2690 (putenv): Renamed from rpl_putenv. Change argument type from
2691 'const char *' to 'char *'.
2692 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
2693 of defining putenv in config.h, just set REPLACE_PUTENV.
2694 * modules/putenv (Depends-on): Add stdlib.
2695 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2696 (Include): Use <stdlib.h>.
2697 * lib/stdlib.in.h (putenv): New declaration.
2698 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
2700 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
2702 Needed for MacOS X 10.5.0.
2703 Reported by Peter O'Gorman <peter@pogma.com>.
2705 2007-11-01 Jim Meyering <meyering@redhat.com>
2707 Treat an empty date string exactly like "0".
2708 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
2709 if the remaining date string (to be parsed) is empty, use "0".
2710 Reported by Mischa Molhoek and discussed in this thread:
2711 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
2713 2007-10-31 Bruno Haible <bruno@clisp.org>
2715 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
2716 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
2717 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
2718 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
2719 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
2720 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
2722 2007-10-31 Bruno Haible <bruno@clisp.org>
2724 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
2725 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
2726 (AC_TYPE_LONG_LONG_INT): Use it.
2727 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
2729 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
2731 * modules/stdint (Files): Remove m4/ulonglong.m4.
2732 * modules/strtoull (Files): Use m4/longlong.m4 instead of
2734 * modules/strtoumax (Files): Likewise.
2736 2007-10-30 Bruno Haible <bruno@clisp.org>
2738 * modules/xvasprintf-posix: New file.
2739 Suggested by Eric Blake.
2741 2007-10-30 Bruno Haible <bruno@clisp.org>
2743 * modules/xprintf-posix-tests: New file.
2744 * tests/test-xprintf-posix.sh: New file.
2745 * tests/test-xprintf-posix.c: New file.
2746 * tests/test-xfprintf-posix.c: New file.
2748 * modules/xprintf-posix: New file.
2750 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2752 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
2753 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
2754 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
2756 2007-10-29 Bruno Haible <bruno@clisp.org>
2758 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
2759 contain the special marker '_cv_'.
2760 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2761 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2762 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2763 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2764 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2765 Reported by Ralf Wildenhues.
2767 2007-10-29 Bruno Haible <bruno@clisp.org>
2769 * gnulib-tool (func_import): When --lgpl is not specified, set
2770 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
2772 Reported by Simon Josefsson.
2774 2007-10-28 Bruno Haible <bruno@clisp.org>
2776 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
2777 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
2779 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
2780 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
2783 2007-10-28 Bruno Haible <bruno@clisp.org>
2785 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
2786 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
2788 2007-10-28 Bruno Haible <bruno@clisp.org>
2790 Fix link errors with Sun C 5.0 on Solaris 10.
2791 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
2792 function is declared but not present in the compiler's libm.
2793 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2794 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2795 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
2796 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
2797 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
2798 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
2799 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
2800 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
2801 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
2802 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
2803 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
2806 2007-10-28 Bruno Haible <bruno@clisp.org>
2808 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
2809 gl_FUNC_FLOORL. Cache the result.
2810 (gl_FUNC_FLOORL): Use it.
2811 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
2812 gl_FUNC_CEILL. Cache the result.
2813 (gl_FUNC_CEILL): Use it.
2815 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
2816 gl_FUNC_FLOOR. Cache the result.
2817 (gl_FUNC_FLOOR): Use it.
2818 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
2819 gl_FUNC_CEIL. Cache the result.
2820 (gl_FUNC_CEIL): Use it.
2822 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
2823 gl_FUNC_FLOORF. Cache the result.
2824 (gl_FUNC_FLOORF): Use it.
2825 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
2826 gl_FUNC_CEILF. Cache the result.
2827 (gl_FUNC_CEILF): Use it.
2829 2007-10-28 Bruno Haible <bruno@clisp.org>
2831 * gnulib-tool: Allow specifying the LGPL version number through
2832 --lgpl=2 or --lgpl=3.
2833 (func_usage): Document --lgpl with argument.
2834 Handle --lgpl=... arguments.
2835 (func_import): Recognize also gl_LGPL calls with an argument. When
2836 --lgpl=2 is used and the module's license is just LGPL, report an
2837 error. Set sed_transform_lib_file according to the lgpl variable. In
2838 the generated files, use --lgpl or gl_LGPL invocations with argument,
2840 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
2842 * doc/gnulib-tool.texi (Modified imports): Update explanation of
2845 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2846 Bruno Haible <bruno@clisp.org>
2848 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
2849 (u16_uctomb_aux): Likewise.
2850 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
2852 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
2854 2007-10-28 Bruno Haible <bruno@clisp.org>
2856 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
2857 Invoke AM_GETTEXT_OPTION if it exists.
2858 * modules/vasprintf: Likewise.
2859 * modules/verror: Likewise.
2860 * modules/xprintf: Likewise.
2861 * modules/xvasprintf: Likewise.
2863 2007-10-27 Ben Pfaff <blp@gnu.org>
2865 * lib/math.in.h: Define isfinite macro and prototypes for
2866 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
2868 * m4/math_h.m4: New substitutions for isfinite module.
2869 * lib/isfinite.c: New file.
2870 * m4/isfinite.m4: New file.
2871 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
2872 * modules/isfinite: New file.
2873 * modules/isfinite-tests: New file.
2874 * tests/tests-isfinite.c: New file.
2875 * doc/functions/isfinite.texi: Mention isfinite module.
2876 * MODULES.html.sh: Mention new module.
2878 2007-10-27 Ben Pfaff <blp@gnu.org>
2880 Ralf Wildenhues reported that Tru64 4.0D declares the round
2881 functions but does not have definitions.
2882 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
2883 cannot be found in any library, set the output variable to
2884 "missing" instead of "".
2885 * m4/round.m4: Also use our substitute if we cannot find round in
2886 any library, even if it is declared.
2887 * m4/roundf.m4: Likewise for roundf.
2888 * m4/roundl.m4: Likewise for roundl.
2889 * lib/math.in.h: Undefine roundf, round, roundl before defining
2890 their replacements, to allow for hypothetical systems where these
2891 may be defined as macros but not available in libraries.
2893 2007-10-27 Bruno Haible <bruno@clisp.org>
2895 * doc/gnulib.texi: Invoke @firstparagraphindent.
2896 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
2898 (Source changes): New section.
2900 2007-10-26 Bruno Haible <bruno@clisp.org>
2902 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
2903 borrowed from autoconf.
2905 2007-10-26 Bruno Haible <bruno@clisp.org>
2907 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
2908 strerror returned the empty string. Needed on HP-UX 11.00.
2910 2007-10-24 Micah Cowan <micah@cowan.name>
2912 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
2913 * build-aux/bootstrap: Remove support for now-unnecessary option,
2914 --cvs-user, and envvars CVS_USER, CVS_RSH.
2916 2007-10-24 Jim Meyering <meyering@redhat.com>
2918 Avoid diagnostics from sha1sum when there is no cached checksum.
2919 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
2920 if the po.s1 file hasn't been created yet.
2922 * build-aux/bootstrap: Sync from coreutils:
2923 2007-10-24 Jim Meyering <meyering@redhat.com>
2924 Get gnulib from the git repository, not from an obsolete cvs one.
2925 * build-aux/bootstrap: Suggestion from Micah Cowan.
2926 2007-10-04 Jim Meyering <jim@meyering.net>
2927 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
2928 (update_po_files): Work also when there are no .po files in po/.
2930 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
2932 * README: Append ".git" to git and cg examples.
2933 Problem reported by Benoit Sigoure.
2935 2007-10-23 Micah Cowan <micah@cowan.name>
2937 * users.txt: Add wget.
2939 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2941 Fix linking of some unistdio tests on FreeBSD.
2942 * modules/unistdio/u16-vsnprintf-tests
2943 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
2944 * modules/unistdio/u16-vsprintf-tests
2945 (test_u16_vsnprintf1_LDADD): Likewise.
2946 * modules/unistdio/u32-vsnprintf-tests
2947 (test_u32_vsnprintf1_LDADD): Likewise.
2948 * modules/unistdio/u32-vsprintf-tests
2949 (test_u32_vsprintf1_LDADD): Likewise.
2950 * modules/unistdio/u8-vsnprintf-tests
2951 (test_u8_vsnprintf1_LDADD): Likewise.
2952 * modules/unistdio/u8-vsprintf-tests
2953 (test_u8_vsprintf1_LDADD): Likewise.
2954 * modules/unistdio/ulc-vsnprintf-tests
2955 (test_ulc_vsnprintf1_LDADD): Likewise.
2956 * modules/unistdio/ulc-vsprintf-tests
2957 (test_ulc_vsprintf1_LDADD): Likewise.
2959 Fix linking of some uniconv tests on FreeBSD.
2960 * modules/uniconv/u16-conv-from-enc-tests
2961 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
2962 * modules/uniconv/u16-conv-to-enc-tests
2963 (test_u16_conv_to_enc_LDADD): Likewise.
2964 * modules/uniconv/u16-strconv-from-enc-tests
2965 (test_u16_strconv_from_enc_LDADD): Likewise.
2966 * modules/uniconv/u16-strconv-to-enc-tests
2967 (test_u16_strconv_to_enc_LDADD): Likewise.
2968 * modules/uniconv/u32-conv-from-enc-tests
2969 (test_u32_conv_from_enc_LDADD): Likewise.
2970 * modules/uniconv/u32-conv-to-enc-tests
2971 (test_u32_conv_to_enc_LDADD): Likewise.
2972 * modules/uniconv/u32-strconv-from-enc-tests
2973 (test_u32_strconv_from_enc_LDADD): Likewise.
2974 * modules/uniconv/u32-strconv-to-enc-tests
2975 (test_u32_strconv_to_enc_LDADD): Likewise.
2976 * modules/uniconv/u8-conv-from-enc-tests
2977 (test_u8_conv_from_enc_LDADD): Likewise.
2978 * modules/uniconv/u8-conv-to-enc-tests
2979 (test_u8_conv_to_enc_LDADD): Likewise.
2980 * modules/uniconv/u8-strconv-from-enc-tests
2981 (test_u8_strconv_from_enc_LDADD): Likewise.
2982 * modules/uniconv/u8-strconv-to-enc-tests
2983 (test_u8_strconv_to_enc_LDADD): Likewise.
2985 2007-10-22 Bruno Haible <bruno@clisp.org>
2987 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
2990 2007-10-22 Eric Blake <ebb9@byu.net>
2992 Tweak x*printf documentation.
2993 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
2994 variable name and comments.
2995 Suggested by Bruno Haible.
2997 2007-10-22 Bruno Haible <bruno@clisp.org>
2999 * lib/acl.c (copy_acl): Fix file name in comment.
3001 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
3003 Fix Tru64 problem with stdbool.h.
3004 * lib/stdbool.in.h (false, true):
3005 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
3006 Don't declare as an enum in this situation; it runs afoul of Tru64.
3007 Problem reported by Steven M. Schweda in
3008 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
3010 2007-10-22 Eric Blake <ebb9@byu.net>
3012 Also wrap vf?printf.
3013 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
3014 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
3015 (xvprintf, xvfprintf): New functions.
3017 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3019 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
3020 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
3022 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
3023 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
3025 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
3027 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
3030 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3033 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
3034 Undef `sys' after including sys/table.h, for Tru64 4.0D.
3036 * tests/test-i-ring.c: Work for C89.
3038 2007-10-22 Bruno Haible <bruno@clisp.org>
3040 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
3041 -1u, in preprocessor expression, so that we don't test for the bug
3042 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
3043 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
3045 2007-10-22 Eric Blake <ebb9@byu.net>
3047 * tests/test-yesno.sh: Silence stderr during test.
3049 2007-10-22 Simon Josefsson <simon@josefsson.org>
3051 * modules/crypto/gc-camellia: New file.
3053 * m4/gc-camellia.m4: New file.
3055 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
3057 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
3059 2007-10-22 Simon Josefsson <simon@josefsson.org>
3061 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
3062 --help to stdout. Reported by sms@antinode.org (Steven
3065 2007-10-22 Simon Josefsson <simon@josefsson.org>
3067 * users.txt: Fix link to libksba.
3069 2007-10-21 Ben Pfaff <blp@gnu.org>
3071 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
3072 round.c roundf implementation that depends on floorf and ceilf to
3073 be tested unconditionally.
3075 2007-10-21 Ben Pfaff <blp@gnu.org>
3077 * m4/check-libm-func.m4: Removed.
3078 * m4/check-math-lib.m4: New file.
3079 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
3080 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
3081 definition and lack of AC_LIBOBJ([roundf]).
3082 * m4/roundl.m4: Ditto, and similarly for roundl.
3083 * modules/round: Reference new m4 file.
3084 * modules/roundf: Ditto.
3085 * modules/roundl: Ditto.
3086 * tests/test-round2.c (main): Use ROUND instead of round.
3087 Bug report from Bruno Haible.
3089 2007-10-21 Bruno Haible <bruno@clisp.org>
3091 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
3094 2007-10-21 Bruno Haible <bruno@clisp.org>
3096 * tests/test-wcwidth.c (main): Allow negative result for some control
3099 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
3100 Needed on OSF/1 5.1.
3102 2007-10-21 Bruno Haible <bruno@clisp.org>
3104 * tests/test-floorf1.c: Include isnanf.h.
3105 (main): Use isnanf() instead of isnan().
3106 * tests/test-ceilf1.c: Include isnanf.h.
3107 (main): Use isnanf() instead of isnan().
3108 * tests/test-truncf1.c: Include isnanf.h.
3109 (main): Use isnanf() instead of isnan().
3110 * tests/test-roundf1.c: Include isnanf.h.
3111 (main): Use isnanf() instead of isnan().
3113 2007-10-21 Eric Blake <ebb9@byu.net>
3115 * users.txt: Update URL for m4.
3117 2007-10-21 Bruno Haible <bruno@clisp.org>
3119 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
3121 2007-10-21 Bruno Haible <bruno@clisp.org>
3123 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
3124 Git's management files if the CVS files are not present.
3126 2007-10-20 Bruno Haible <bruno@clisp.org>
3128 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
3131 2007-10-20 Ben Pfaff <blp@gnu.org>
3133 * lib/math.in.h: Declare round, roundf, roundl if we are providing
3135 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
3136 * lib/round.c: New file.
3137 * lib/roundf.c: New file.
3138 * lib/roundl.c: New file.
3139 * m4/round.m4: New file.
3140 * m4/roundf.m4: New file.
3141 * m4/roundl.m4: New file.
3142 * m4/check-libm-func-m4: New file.
3143 * modules/math: Replace round, roundf, roundl related @VARS@ in
3145 * modules/round: New file.
3146 * modules/round-tests: New file.
3147 * modules/roundf: New file.
3148 * modules/roundf-tests: New file.
3149 * modules/roundl: New file.
3150 * modules/roundl-tests: New file.
3151 * tests/test-round1.c: New file.
3152 * tests/test-round2.c: New file.
3153 * tests/test-roundf1.c: New file.
3154 * tests/test-roundf2.c: New file.
3155 * tests/test-roundl.c: New file.
3156 * doc/functions/round.texi: Mention round module.
3157 * doc/functions/roundf.texi: Mention roundf module.
3158 * doc/functions/roundl.texi: Mention roundl module.
3159 * MODULES.html.sh: Mention new modules.
3160 Thanks to Bruno Haible for suggestions.
3162 2007-10-20 Jim Meyering <meyering@redhat.com>
3164 * lib/xprintf.c: Include <config.h> unconditionally.
3166 Change xprintf's license to GPL.
3167 * modules/xprintf (License): s/LGPL/GPL/, since this module
3168 depends on modules (exit and exitfail) which are GPL.
3169 Suggestion from Bruno Haible.
3172 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
3173 Use a clearer diagnostic.
3174 Patch from Bruno Haible.
3176 2007-10-20 Bruno Haible <bruno@clisp.org>
3178 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
3179 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
3180 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3182 2007-10-20 Bruno Haible <bruno@clisp.org>
3184 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
3185 precision in the comparison result > x - 1 or similar.
3186 * tests/test-ceilf2.c (correct_result_p): Likewise.
3187 * tests/test-truncf2.c (correct_result_p): Likewise.
3188 * tests/test-trunc2.c (correct_result_p): Likewise.
3189 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3191 2007-10-20 Bruno Haible <bruno@clisp.org>
3193 * modules/ceil: New file.
3194 * m4/ceil.m4: New file.
3195 * doc/functions/ceil.texi: Mention the 'ceil' module.
3197 2007-10-20 Bruno Haible <bruno@clisp.org>
3199 * modules/floor: New file.
3200 * m4/floor.m4: New file.
3201 * doc/functions/floor.texi: Mention the 'floor' module.
3203 2007-10-20 Bruno Haible <bruno@clisp.org>
3205 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
3207 * modules/floorf-tests (Depends-on): Likewise.
3208 * modules/truncf-tests (Depends-on): Likewise.
3209 * modules/trunc-tests (Depends-on): Likewise.
3210 Reported by Ben Pfaff.
3212 2007-10-19 Jim Meyering <meyering@redhat.com>
3214 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
3215 Don't bother testing specific errno values. Just test ferror.
3218 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
3220 2007-10-19 Bruno Haible <bruno@clisp.org>
3222 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
3224 * modules/javaexec (Makefile.am): Likewise.
3225 * modules/relocatable-prog (Makefile.am): Likewise.
3226 Suggested by Jim Meyering.
3228 2007-10-18 Bruno Haible <bruno@clisp.org>
3230 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
3231 Reported by Jim Meyering.
3233 2007-10-18 Eric Blake <ebb9@byu.net>
3235 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
3237 2007-10-18 Bruno Haible <bruno@clisp.org>
3239 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
3240 the format string into writable memory. Needed in Fortify conditions.
3242 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
3243 Bruno Haible <bruno@clisp.org>
3245 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
3246 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
3247 * modules/trim (Depends-on): Add mbchar.
3248 (configure.ac): Add gl_FUNC_MBRTOWC.
3249 (Makefile.am): Augment lib_SOURCES.
3251 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
3253 Modify glob.c to use fstatat and dirfd, to simplify it.
3254 Suggested by Eric Blake.
3255 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
3256 Don't include <stdbool.h>; not used.
3257 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
3258 (link_exists_p): Simplify implementation, since we can now assume
3260 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
3262 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3264 * gnulib-tool (func_get_dependencies): Fix sed script to
3267 2007-10-17 Bruno Haible <bruno@clisp.org>
3269 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
3270 allow locale names without encoding suffix.
3271 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3272 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3274 2007-10-16 Bruno Haible <bruno@clisp.org>
3276 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
3277 * lib/getgroups.c (getgroups): Likewise.
3278 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
3280 2007-10-16 Bruno Haible <bruno@clisp.org>
3282 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
3283 * modules/malloc-posix (License): Likewise.
3284 * modules/realloc-posix (License): Likewise.
3285 * modules/calloc-posix (License): Likewise.
3286 * modules/intprops (License): Change from GPL to LGPL, with
3287 Paul Eggert's approval.
3289 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
3291 Merge glibc changes into lib/glob.c.
3293 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
3294 2007-10-15 04:59:03 UTC. Here are the changes:
3296 2007-10-14 Ulrich Drepper <drepper@redhat.com>
3298 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
3300 * lib/glob.c: Add some branch prediction throughout.
3302 2007-10-07 Ulrich Drepper <drepper@redhat.com>
3305 * lib/glob.c (glob): Recognize patterns starting \/.
3307 2007-02-14 Jakub Jelinek <jakub@redhat.com>
3310 * lib/glob.c (attribute_hidden): Define if not defined.
3311 (glob): Unescape dirname, filename or username when needed and not
3312 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
3313 is NULL. Handle unescaped [ in pattern without closing ].
3314 Don't pass GLOB_CHECK down to recursive glob for directories.
3315 (__glob_pattern_type): New function.
3316 (__glob_pattern_p): Implement using __glob_pattern_type.
3317 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
3318 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
3319 Remove unreachable code.
3321 2006-09-30 Ulrich Drepper <drepper@redhat.com>
3323 * lib/glob.c (glob_in_dir): Add some comments and asserts to
3324 explain why there are no leaks.
3326 2006-09-25 Jakub Jelinek <jakub@redhat.com>
3329 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
3330 time, rather allocate increasingly bigger arrays of pointers, if
3331 possible with alloca, if too large with malloc.
3333 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
3335 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
3336 Problem reported by H.Merijn Brand in
3337 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
3338 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
3339 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
3341 2007-10-15 Bruno Haible <bruno@clisp.org>
3343 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
3344 with explicit rpl_ prefix.
3345 * lib/fopen.c (fopen): Likewise.
3346 * lib/freopen.c (freopen): Likewise.
3347 * lib/iconv.c (iconv): Likewise.
3348 * lib/iconv_close.c (iconv_close): Likewise.
3350 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3352 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
3354 2007-10-15 Bruno Haible <bruno@clisp.org>
3356 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
3357 <stddef.h> instead of <stdlib.h> since we only need NULL.
3358 Reported by Ben Pfaff <blp@cs.stanford.edu>.
3360 2007-10-15 Bruno Haible <bruno@clisp.org>
3362 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
3363 Replace paragraph talking about LIBOBJS.
3364 Reported by Colin Watson <cjwatson@debian.org>.
3366 2007-10-15 Bruno Haible <bruno@clisp.org>
3368 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
3369 <stdlib.h> before using NULL.
3371 2007-10-15 Simon Josefsson <simon@josefsson.org>
3373 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
3374 Reported by Albert Chin <china@thewrittenword.com>.
3376 2007-10-14 Bruno Haible <bruno@clisp.org>
3378 * modules/iconv_open-utf-tests: New file.
3379 * tests/test-iconv-utf.c: New file.
3381 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
3382 * modules/iconv_open-utf: New file.
3383 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
3384 (iconv, iconv_close): New declarations.
3385 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
3387 (iconv_open): Add special handling of conversion between UTF-8 and
3389 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
3390 * lib/iconv_close.c: New file.
3391 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
3393 (gl_FUNC_ICONV_OPEN): Use it.
3394 (gl_FUNC_ICONV_OPEN_UTF): New macro.
3395 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
3396 and REPLACE_ICONV_UTF.
3397 * modules/iconv_open (Depends-on): Add c-strcase.
3398 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
3400 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
3402 2007-10-13 Albert Chin <china@thewrittenword.com>
3403 Bruno Haible <bruno@clisp.org>
3405 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
3406 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
3408 2007-10-13 Bruno Haible <bruno@clisp.org>
3410 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
3411 defined, use the ISO C99 inline semantics.
3412 * lib/argp.h (ARGP_EI): Likewise.
3414 2007-10-13 Bruno Haible <bruno@clisp.org>
3416 Handle 'inline' change in gcc 4.3.0.
3417 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
3418 argp_fmtstream_write, argp_fmtstream_set_lmargin,
3419 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
3420 argp_fmtstream_point): Disable 'extern' declaration if the function
3421 definition is going to be provided inline.
3422 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
3423 semantics, not the ISO C99 inline semantics.
3424 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
3425 'extern' declaration if the function definition is going to be provided
3427 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
3428 the GNU C inline semantics, not the ISO C99 inline semantics. With
3429 GCC 4.2, avoid a warning.
3431 2007-10-13 Bruno Haible <bruno@clisp.org>
3433 * lib/freading.h (freading): Enable the use of __freading for
3435 * lib/freading.c (freading): Likewise.
3437 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
3439 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
3440 "warning: C99 inline functions are not supported; using GNU89".
3442 2007-10-12 Bruno Haible <bruno@clisp.org>
3444 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
3446 * tests/test-ceilf2.c: New file.
3447 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
3449 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
3450 * modules/ceilf-tests: Update.
3452 2007-10-12 Bruno Haible <bruno@clisp.org>
3454 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
3456 * tests/test-floorf2.c: New file.
3457 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
3459 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
3460 * modules/floorf-tests: Update.
3462 2007-10-12 Bruno Haible <bruno@clisp.org>
3464 * tests/test-trunc2.c: New file.
3465 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
3467 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
3468 * modules/trunc-tests: Update.
3470 2007-10-12 Bruno Haible <bruno@clisp.org>
3472 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
3474 * tests/test-truncf2.c: New file.
3475 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
3477 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
3478 * modules/truncf-tests: Update.
3480 2007-10-11 Eric Blake <ebb9@byu.net>
3482 Don't claim strerror is broken on Interix.
3483 * doc/functions/strerror.texi (strerror): Known broken systems are
3484 now Solaris 8, and not Interix.
3485 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
3486 Interix on cross-compile.
3487 Reported by Martin Koeppe in
3488 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
3490 2007-10-11 Bruno Haible <bruno@clisp.org>
3492 * modules/i-ring-tests: New file.
3493 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
3496 2007-10-11 Bruno Haible <bruno@clisp.org>
3498 * modules/filenamecat-tests: New file.
3499 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
3500 * lib/filenamecat.c: Remove test code.
3502 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
3504 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
3506 * lib/strerror.c: Include <string.h> always, to test interface,
3507 and to remove the need for the dummy.
3508 Include intprops.h to compute width instead of doing it ourselves
3509 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
3510 (strerror): Define it to return NULL if there's no system strerror.
3511 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
3512 Omit !HAVE_STRERROR code. We don't need to worry about supporting
3513 ancient pre-strerror Unix systems well any more. Saying "unknown
3514 system error" is enough.
3515 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
3516 simpler strerror.c implementation.
3517 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
3518 Simplify the tests to reflect the simpler strerror implementation.
3519 * modules/strerror (Depends-on): Add intprops.
3521 2007-10-09 Eric Blake <ebb9@byu.net>
3523 Silence test-fpending.
3524 * modules/fpending-tests (Files): Add wrapper script.
3525 * tests/test-fpending.sh: New file.
3527 2007-10-09 Bruno Haible <bruno@clisp.org>
3529 * MODULES.html.sh (func_module): Don't create a hyperlink for
3530 function names like 'printf_frexp'.
3531 (Misc): Add crc, memxor.
3532 (Characteristics of floating types): New section.
3533 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
3534 isnanf-nolibm, signbit, trunc, truncf, truncl.
3535 (Enhancements for ISO C 99 functions): New subsection Input/output.
3536 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
3537 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
3538 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
3539 (Compatibility checks for POSIX:2001 functions): Add clock-time.
3540 (Enhancements for POSIX:2001 functions): Add chdir-long.
3541 (File system functions): Add areadlink, chdir-safer, read-file.
3543 (File system as inode set): New section.
3544 (Date and time): Add gethrxtime.
3545 (Multithreading): Add openmp.
3546 (Internationalization functions): Add localename.
3547 (Unicode string functions): Add unistr/u*-mbsnlen.
3548 (Support for maintaining and releasing projects): Add git-version-gen.
3549 (Lone files): Remove directories.
3551 2007-10-08 Ben Pfaff <blp@gnu.org>
3553 * lib/xmalloca.h: Fix typo in comment.
3555 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
3557 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
3558 when avoiding problems with integer overflow. Use a portable test
3561 2007-10-08 Simon Josefsson <simon@josefsson.org>
3563 * modules/dummy (License): Change to LGPLv2+.
3564 * modules/float (License): Likewise
3565 * modules/realloc (License): Likewise
3566 * modules/stdlib (License): Likewise
3568 2007-10-07 Bruno Haible <bruno@clisp.org>
3570 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
3571 * floor.c (TWO_MANT_DIG): Likewise.
3572 * ceil.c (TWO_MANT_DIG): Likewise.
3573 Reported by Ben Pfaff.
3575 2007-10-07 Bruno Haible <bruno@clisp.org>
3577 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
3578 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
3579 * lib/frexp.c (FUNC): Likewise.
3580 * lib/printf-frexp.h (printf_frexp): Likewise.
3581 * lib/printf-frexpl.h (printf_frexpl): Likewise.
3582 * lib/printf-frexp.c (FUNC): Likewise.
3583 Suggested by Jim Meyering.
3585 2007-10-07 Jim Meyering <meyering@redhat.com>
3587 Make xnanosleep's integer overflow test more robust.
3588 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
3589 so that gcc-4.3.0 doesn't optimize away this test for overflow.
3591 2007-10-07 Bruno Haible <bruno@clisp.org>
3593 * NEWS: Mention the license change.
3595 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
3596 abbreviations in the modules files.
3598 Change copyright notice from GPLv2+ to GPLv3+.
3599 * README: Change copyright notice.
3600 * MODULES.html.sh: Likewise.
3601 * build-aux/bootstrap.conf: Likewise.
3602 * build-aux/config.libpath: Likewise.
3603 * build-aux/csharpcomp.sh.in: Likewise.
3604 * build-aux/csharpexec.sh.in: Likewise.
3605 * build-aux/install-reloc: Likewise.
3606 * build-aux/javacomp.sh.in: Likewise.
3607 * build-aux/javaexec.sh.in: Likewise.
3608 * build-aux/ldd.sh.in: Likewise.
3609 * build-aux/reloc-ldflags: Likewise.
3610 * build-aux/relocatable.sh.in: Likewise.
3611 * build-aux/x-to-1.in: Likewise.
3612 * check-module: Likewise.
3613 * config/srclistvars.sh: Likewise.
3614 * gnulib-tool: Likewise.
3615 * lib/acl-internal.h: Likewise.
3616 * lib/acl.c: Likewise.
3617 * lib/acl.h: Likewise.
3618 * lib/acl_entries.c: Likewise.
3619 * lib/areadlink-with-size.c: Likewise.
3620 * lib/areadlink.c: Likewise.
3621 * lib/areadlink.h: Likewise.
3622 * lib/argmatch.c: Likewise.
3623 * lib/argmatch.h: Likewise.
3624 * lib/argp-ba.c: Likewise.
3625 * lib/argp-eexst.c: Likewise.
3626 * lib/argp-fmtstream.c: Likewise.
3627 * lib/argp-fmtstream.h: Likewise.
3628 * lib/argp-fs-xinl.c: Likewise.
3629 * lib/argp-help.c: Likewise.
3630 * lib/argp-namefrob.h: Likewise.
3631 * lib/argp-parse.c: Likewise.
3632 * lib/argp-pin.c: Likewise.
3633 * lib/argp-pv.c: Likewise.
3634 * lib/argp-pvh.c: Likewise.
3635 * lib/argp-xinl.c: Likewise.
3636 * lib/argp.h: Likewise.
3637 * lib/at-func.c: Likewise.
3638 * lib/atanl.c: Likewise.
3639 * lib/backupfile.c: Likewise.
3640 * lib/backupfile.h: Likewise.
3641 * lib/basename.c: Likewise.
3642 * lib/binary-io.h: Likewise.
3643 * lib/byteswap.in.h: Likewise.
3644 * lib/c-stack.c: Likewise.
3645 * lib/c-stack.h: Likewise.
3646 * lib/c-strcasestr.c: Likewise.
3647 * lib/c-strcasestr.h: Likewise.
3648 * lib/c-strstr.c: Likewise.
3649 * lib/c-strstr.h: Likewise.
3650 * lib/c-strtod.c: Likewise.
3651 * lib/calloc.c: Likewise.
3652 * lib/canon-host.c: Likewise.
3653 * lib/canon-host.h: Likewise.
3654 * lib/canonicalize-lgpl.c: Likewise.
3655 * lib/canonicalize.c: Likewise.
3656 * lib/canonicalize.h: Likewise.
3657 * lib/ceil.c: Likewise.
3658 * lib/ceilf.c: Likewise.
3659 * lib/ceill.c: Likewise.
3660 * lib/chdir-long.c: Likewise.
3661 * lib/chdir-long.h: Likewise.
3662 * lib/chdir-safer.c: Likewise.
3663 * lib/chdir-safer.h: Likewise.
3664 * lib/chown.c: Likewise.
3665 * lib/classpath.c: Likewise.
3666 * lib/classpath.h: Likewise.
3667 * lib/clean-temp.c: Likewise.
3668 * lib/clean-temp.h: Likewise.
3669 * lib/cloexec.c: Likewise.
3670 * lib/close-stream.c: Likewise.
3671 * lib/closein.c: Likewise.
3672 * lib/closein.h: Likewise.
3673 * lib/closeout.c: Likewise.
3674 * lib/closeout.h: Likewise.
3675 * lib/concat-filename.c: Likewise.
3676 * lib/copy-file.c: Likewise.
3677 * lib/copy-file.h: Likewise.
3678 * lib/count-one-bits.h: Likewise.
3679 * lib/crc.c: Likewise.
3680 * lib/crc.h: Likewise.
3681 * lib/creat-safer.c: Likewise.
3682 * lib/csharpcomp.c: Likewise.
3683 * lib/csharpcomp.h: Likewise.
3684 * lib/csharpexec.c: Likewise.
3685 * lib/csharpexec.h: Likewise.
3686 * lib/cycle-check.c: Likewise.
3687 * lib/cycle-check.h: Likewise.
3688 * lib/diacrit.c: Likewise.
3689 * lib/diacrit.h: Likewise.
3690 * lib/diffseq.h: Likewise.
3691 * lib/dirchownmod.c: Likewise.
3692 * lib/dirent.in.h: Likewise.
3693 * lib/dirfd.c: Likewise.
3694 * lib/dirfd.h: Likewise.
3695 * lib/dirname.c: Likewise.
3696 * lib/dirname.h: Likewise.
3697 * lib/dummy.c: Likewise.
3698 * lib/dup-safer.c: Likewise.
3699 * lib/dup2.c: Likewise.
3700 * lib/eealloc.h: Likewise.
3701 * lib/error.c: Likewise.
3702 * lib/error.h: Likewise.
3703 * lib/euidaccess.c: Likewise.
3704 * lib/exclude.c: Likewise.
3705 * lib/exclude.h: Likewise.
3706 * lib/execute.c: Likewise.
3707 * lib/execute.h: Likewise.
3708 * lib/exitfail.c: Likewise.
3709 * lib/exitfail.h: Likewise.
3710 * lib/expl.c: Likewise.
3711 * lib/fatal-signal.c: Likewise.
3712 * lib/fatal-signal.h: Likewise.
3713 * lib/fbufmode.c: Likewise.
3714 * lib/fbufmode.h: Likewise.
3715 * lib/fchdir.c: Likewise.
3716 * lib/fchmodat.c: Likewise.
3717 * lib/fchownat.c: Likewise.
3718 * lib/fcntl--.h: Likewise.
3719 * lib/fcntl-safer.h: Likewise.
3720 * lib/fcntl.in.h: Likewise.
3721 * lib/fd-safer.c: Likewise.
3722 * lib/fflush.c: Likewise.
3723 * lib/file-has-acl.c: Likewise.
3724 * lib/file-set.c: Likewise.
3725 * lib/file-type.c: Likewise.
3726 * lib/file-type.h: Likewise.
3727 * lib/fileblocks.c: Likewise.
3728 * lib/filemode.c: Likewise.
3729 * lib/filemode.h: Likewise.
3730 * lib/filename.h: Likewise.
3731 * lib/filenamecat.c: Likewise.
3732 * lib/filenamecat.h: Likewise.
3733 * lib/findprog.c: Likewise.
3734 * lib/findprog.h: Likewise.
3735 * lib/float.in.h: Likewise.
3736 * lib/floor.c: Likewise.
3737 * lib/floorf.c: Likewise.
3738 * lib/floorl.c: Likewise.
3739 * lib/fopen-safer.c: Likewise.
3740 * lib/fopen.c: Likewise.
3741 * lib/fpending.c: Likewise.
3742 * lib/fpending.h: Likewise.
3743 * lib/fprintf.c: Likewise.
3744 * lib/fprintftime.h: Likewise.
3745 * lib/fpucw.h: Likewise.
3746 * lib/fpurge.c: Likewise.
3747 * lib/fpurge.h: Likewise.
3748 * lib/freadable.c: Likewise.
3749 * lib/freadable.h: Likewise.
3750 * lib/freadahead.c: Likewise.
3751 * lib/freadahead.h: Likewise.
3752 * lib/freading.c: Likewise.
3753 * lib/freading.h: Likewise.
3754 * lib/free.c: Likewise.
3755 * lib/freopen.c: Likewise.
3756 * lib/frexp.c: Likewise.
3757 * lib/frexpl.c: Likewise.
3758 * lib/fseek.c: Likewise.
3759 * lib/fseterr.c: Likewise.
3760 * lib/fseterr.h: Likewise.
3761 * lib/fstatat.c: Likewise.
3762 * lib/fstrcmp.c: Likewise.
3763 * lib/fstrcmp.h: Likewise.
3764 * lib/fsusage.c: Likewise.
3765 * lib/fsusage.h: Likewise.
3766 * lib/ftell.c: Likewise.
3767 * lib/ftello.c: Likewise.
3768 * lib/fts-cycle.c: Likewise.
3769 * lib/fts.c: Likewise.
3770 * lib/fts_.h: Likewise.
3771 * lib/full-read.c: Likewise.
3772 * lib/full-read.h: Likewise.
3773 * lib/full-write.c: Likewise.
3774 * lib/full-write.h: Likewise.
3775 * lib/fwritable.c: Likewise.
3776 * lib/fwritable.h: Likewise.
3777 * lib/fwriteerror.c: Likewise.
3778 * lib/fwriteerror.h: Likewise.
3779 * lib/fwriting.c: Likewise.
3780 * lib/fwriting.h: Likewise.
3781 * lib/gcd.c: Likewise.
3782 * lib/gcd.h: Likewise.
3783 * lib/getcwd.c: Likewise.
3784 * lib/getdate.h: Likewise.
3785 * lib/getdate.y: Likewise.
3786 * lib/getdomainname.c: Likewise.
3787 * lib/getdomainname.h: Likewise.
3788 * lib/getgroups.c: Likewise.
3789 * lib/gethostname.c: Likewise.
3790 * lib/gethrxtime.c: Likewise.
3791 * lib/gethrxtime.h: Likewise.
3792 * lib/getloadavg.c: Likewise.
3793 * lib/getndelim2.c: Likewise.
3794 * lib/getndelim2.h: Likewise.
3795 * lib/getnline.c: Likewise.
3796 * lib/getnline.h: Likewise.
3797 * lib/getopt.c: Likewise.
3798 * lib/getopt.in.h: Likewise.
3799 * lib/getopt1.c: Likewise.
3800 * lib/getopt_int.h: Likewise.
3801 * lib/getpagesize.h: Likewise.
3802 * lib/getsubopt.c: Likewise.
3803 * lib/gettime.c: Likewise.
3804 * lib/getugroups.c: Likewise.
3805 * lib/getugroups.h: Likewise.
3806 * lib/getusershell.c: Likewise.
3807 * lib/gl_anyavltree_list1.h: Likewise.
3808 * lib/gl_anyavltree_list2.h: Likewise.
3809 * lib/gl_anyhash_list1.h: Likewise.
3810 * lib/gl_anyhash_list2.h: Likewise.
3811 * lib/gl_anylinked_list1.h: Likewise.
3812 * lib/gl_anylinked_list2.h: Likewise.
3813 * lib/gl_anyrbtree_list1.h: Likewise.
3814 * lib/gl_anyrbtree_list2.h: Likewise.
3815 * lib/gl_anytree_list1.h: Likewise.
3816 * lib/gl_anytree_list2.h: Likewise.
3817 * lib/gl_anytree_oset.h: Likewise.
3818 * lib/gl_anytreehash_list1.h: Likewise.
3819 * lib/gl_anytreehash_list2.h: Likewise.
3820 * lib/gl_array_list.c: Likewise.
3821 * lib/gl_array_list.h: Likewise.
3822 * lib/gl_array_oset.c: Likewise.
3823 * lib/gl_array_oset.h: Likewise.
3824 * lib/gl_avltree_list.c: Likewise.
3825 * lib/gl_avltree_list.h: Likewise.
3826 * lib/gl_avltree_oset.c: Likewise.
3827 * lib/gl_avltree_oset.h: Likewise.
3828 * lib/gl_avltreehash_list.c: Likewise.
3829 * lib/gl_avltreehash_list.h: Likewise.
3830 * lib/gl_carray_list.c: Likewise.
3831 * lib/gl_carray_list.h: Likewise.
3832 * lib/gl_linked_list.c: Likewise.
3833 * lib/gl_linked_list.h: Likewise.
3834 * lib/gl_linkedhash_list.c: Likewise.
3835 * lib/gl_linkedhash_list.h: Likewise.
3836 * lib/gl_list.c: Likewise.
3837 * lib/gl_list.h: Likewise.
3838 * lib/gl_oset.c: Likewise.
3839 * lib/gl_oset.h: Likewise.
3840 * lib/gl_rbtree_list.c: Likewise.
3841 * lib/gl_rbtree_list.h: Likewise.
3842 * lib/gl_rbtree_oset.c: Likewise.
3843 * lib/gl_rbtree_oset.h: Likewise.
3844 * lib/gl_rbtreehash_list.c: Likewise.
3845 * lib/gl_rbtreehash_list.h: Likewise.
3846 * lib/gl_sublist.c: Likewise.
3847 * lib/gl_sublist.h: Likewise.
3848 * lib/group-member.c: Likewise.
3849 * lib/group-member.h: Likewise.
3850 * lib/hard-locale.c: Likewise.
3851 * lib/hard-locale.h: Likewise.
3852 * lib/hash-pjw.c: Likewise.
3853 * lib/hash-pjw.h: Likewise.
3854 * lib/hash-triple.c: Likewise.
3855 * lib/hash.c: Likewise.
3856 * lib/hash.h: Likewise.
3857 * lib/human.c: Likewise.
3858 * lib/human.h: Likewise.
3859 * lib/i-ring.c: Likewise.
3860 * lib/i-ring.h: Likewise.
3861 * lib/idcache.c: Likewise.
3862 * lib/imaxabs.c: Likewise.
3863 * lib/imaxdiv.c: Likewise.
3864 * lib/inet_pton.c: Likewise.
3865 * lib/inet_pton.h: Likewise.
3866 * lib/intprops.h: Likewise.
3867 * lib/inttostr.c: Likewise.
3868 * lib/inttostr.h: Likewise.
3869 * lib/inttypes.in.h: Likewise.
3870 * lib/isapipe.c: Likewise.
3871 * lib/isdir.c: Likewise.
3872 * lib/isnan.c: Likewise.
3873 * lib/isnan.h: Likewise.
3874 * lib/isnanf.c: Likewise.
3875 * lib/isnanf.h: Likewise.
3876 * lib/isnanl-nolibm.h: Likewise.
3877 * lib/isnanl.c: Likewise.
3878 * lib/isnanl.h: Likewise.
3879 * lib/javacomp.c: Likewise.
3880 * lib/javacomp.h: Likewise.
3881 * lib/javaexec.c: Likewise.
3882 * lib/javaexec.h: Likewise.
3883 * lib/javaversion.c: Likewise.
3884 * lib/javaversion.h: Likewise.
3885 * lib/javaversion.java: Likewise.
3886 * lib/lbrkprop.h: Likewise.
3887 * lib/lchmod.h: Likewise.
3888 * lib/lchown.c: Likewise.
3889 * lib/ldexpl.c: Likewise.
3890 * lib/linebreak.c: Likewise.
3891 * lib/linebreak.h: Likewise.
3892 * lib/linebuffer.c: Likewise.
3893 * lib/linebuffer.h: Likewise.
3894 * lib/locale.in.h: Likewise.
3895 * lib/logl.c: Likewise.
3896 * lib/long-options.c: Likewise.
3897 * lib/long-options.h: Likewise.
3898 * lib/lstat.c: Likewise.
3899 * lib/lstat.h: Likewise.
3900 * lib/math.in.h: Likewise.
3901 * lib/mbchar.c: Likewise.
3902 * lib/mbchar.h: Likewise.
3903 * lib/mbfile.h: Likewise.
3904 * lib/mbiter.h: Likewise.
3905 * lib/mbscasecmp.c: Likewise.
3906 * lib/mbscasestr.c: Likewise.
3907 * lib/mbschr.c: Likewise.
3908 * lib/mbscspn.c: Likewise.
3909 * lib/mbslen.c: Likewise.
3910 * lib/mbsncasecmp.c: Likewise.
3911 * lib/mbsnlen.c: Likewise.
3912 * lib/mbspbrk.c: Likewise.
3913 * lib/mbspcasecmp.c: Likewise.
3914 * lib/mbsrchr.c: Likewise.
3915 * lib/mbssep.c: Likewise.
3916 * lib/mbsspn.c: Likewise.
3917 * lib/mbsstr.c: Likewise.
3918 * lib/mbstok_r.c: Likewise.
3919 * lib/mbswidth.c: Likewise.
3920 * lib/mbswidth.h: Likewise.
3921 * lib/mbuiter.h: Likewise.
3922 * lib/memcasecmp.c: Likewise.
3923 * lib/memcasecmp.h: Likewise.
3924 * lib/memchr.c: Likewise.
3925 * lib/memcmp.c: Likewise.
3926 * lib/memcoll.c: Likewise.
3927 * lib/memcoll.h: Likewise.
3928 * lib/memcpy.c: Likewise.
3929 * lib/memrchr.c: Likewise.
3930 * lib/mkancesdirs.c: Likewise.
3931 * lib/mkdir-p.c: Likewise.
3932 * lib/mkdir-p.h: Likewise.
3933 * lib/mkdir.c: Likewise.
3934 * lib/mkdirat.c: Likewise.
3935 * lib/mkdtemp.c: Likewise.
3936 * lib/mkstemp-safer.c: Likewise.
3937 * lib/mkstemp.c: Likewise.
3938 * lib/modechange.c: Likewise.
3939 * lib/modechange.h: Likewise.
3940 * lib/mountlist.c: Likewise.
3941 * lib/mountlist.h: Likewise.
3942 * lib/mpsort.c: Likewise.
3943 * lib/nanosleep.c: Likewise.
3944 * lib/obstack.c: Likewise.
3945 * lib/obstack.h: Likewise.
3946 * lib/open-safer.c: Likewise.
3947 * lib/open.c: Likewise.
3948 * lib/openat-die.c: Likewise.
3949 * lib/openat-priv.h: Likewise.
3950 * lib/openat-proc.c: Likewise.
3951 * lib/openat.c: Likewise.
3952 * lib/openat.h: Likewise.
3953 * lib/pagealign_alloc.c: Likewise.
3954 * lib/pagealign_alloc.h: Likewise.
3955 * lib/physmem.c: Likewise.
3956 * lib/physmem.h: Likewise.
3957 * lib/pipe-safer.c: Likewise.
3958 * lib/pipe.c: Likewise.
3959 * lib/pipe.h: Likewise.
3960 * lib/posixtm.c: Likewise.
3961 * lib/posixtm.h: Likewise.
3962 * lib/posixver.c: Likewise.
3963 * lib/printf-frexp.c: Likewise.
3964 * lib/printf-frexp.h: Likewise.
3965 * lib/printf-frexpl.c: Likewise.
3966 * lib/printf-frexpl.h: Likewise.
3967 * lib/printf.c: Likewise.
3968 * lib/progname.c: Likewise.
3969 * lib/progname.h: Likewise.
3970 * lib/progreloc.c: Likewise.
3971 * lib/putenv.c: Likewise.
3972 * lib/quote.c: Likewise.
3973 * lib/quote.h: Likewise.
3974 * lib/quotearg.c: Likewise.
3975 * lib/quotearg.h: Likewise.
3976 * lib/raise.c: Likewise.
3977 * lib/readline.c: Likewise.
3978 * lib/readline.h: Likewise.
3979 * lib/readlink.c: Likewise.
3980 * lib/readtokens.c: Likewise.
3981 * lib/readtokens.h: Likewise.
3982 * lib/readtokens0.c: Likewise.
3983 * lib/readtokens0.h: Likewise.
3984 * lib/readutmp.c: Likewise.
3985 * lib/readutmp.h: Likewise.
3986 * lib/realloc.c: Likewise.
3987 * lib/relocwrapper.c: Likewise.
3988 * lib/rename-dest-slash.c: Likewise.
3989 * lib/rename.c: Likewise.
3990 * lib/rmdir.c: Likewise.
3991 * lib/rpmatch.c: Likewise.
3992 * lib/safe-read.c: Likewise.
3993 * lib/safe-read.h: Likewise.
3994 * lib/safe-write.c: Likewise.
3995 * lib/safe-write.h: Likewise.
3996 * lib/same-inode.h: Likewise.
3997 * lib/same.c: Likewise.
3998 * lib/same.h: Likewise.
3999 * lib/save-cwd.c: Likewise.
4000 * lib/save-cwd.h: Likewise.
4001 * lib/savedir.c: Likewise.
4002 * lib/savedir.h: Likewise.
4003 * lib/savewd.c: Likewise.
4004 * lib/savewd.h: Likewise.
4005 * lib/search.in.h: Likewise.
4006 * lib/setenv.c: Likewise.
4007 * lib/setenv.h: Likewise.
4008 * lib/settime.c: Likewise.
4009 * lib/sh-quote.c: Likewise.
4010 * lib/sh-quote.h: Likewise.
4011 * lib/sig2str.c: Likewise.
4012 * lib/sig2str.h: Likewise.
4013 * lib/signal.in.h: Likewise.
4014 * lib/signbitd.c: Likewise.
4015 * lib/signbitf.c: Likewise.
4016 * lib/signbitl.c: Likewise.
4017 * lib/sigprocmask.c: Likewise.
4018 * lib/sincosl.c: Likewise.
4019 * lib/sleep.c: Likewise.
4020 * lib/sprintf.c: Likewise.
4021 * lib/sqrtl.c: Likewise.
4022 * lib/stat-time.h: Likewise.
4023 * lib/stdio--.h: Likewise.
4024 * lib/stdio-safer.h: Likewise.
4025 * lib/stdlib--.h: Likewise.
4026 * lib/stdlib-safer.h: Likewise.
4027 * lib/stdlib.in.h: Likewise.
4028 * lib/stpcpy.c: Likewise.
4029 * lib/stpncpy.c: Likewise.
4030 * lib/strchrnul.c: Likewise.
4031 * lib/strcspn.c: Likewise.
4032 * lib/strerror.c: Likewise.
4033 * lib/strftime.c: Likewise.
4034 * lib/strftime.h: Likewise.
4035 * lib/striconveh.c: Likewise.
4036 * lib/striconveh.h: Likewise.
4037 * lib/striconveha.c: Likewise.
4038 * lib/striconveha.h: Likewise.
4039 * lib/stripslash.c: Likewise.
4040 * lib/strnlen1.c: Likewise.
4041 * lib/strnlen1.h: Likewise.
4042 * lib/strtod.c: Likewise.
4043 * lib/strtoimax.c: Likewise.
4044 * lib/strtok_r.c: Likewise.
4045 * lib/strtol.c: Likewise.
4046 * lib/strtoll.c: Likewise.
4047 * lib/strtoul.c: Likewise.
4048 * lib/strtoull.c: Likewise.
4049 * lib/sysexits.in.h: Likewise.
4050 * lib/tempname.c: Likewise.
4051 * lib/tempname.h: Likewise.
4052 * lib/timespec.h: Likewise.
4053 * lib/tls.c: Likewise.
4054 * lib/tls.h: Likewise.
4055 * lib/tmpdir.c: Likewise.
4056 * lib/tmpdir.h: Likewise.
4057 * lib/tmpfile-safer.c: Likewise.
4058 * lib/tmpfile.c: Likewise.
4059 * lib/trigl.c: Likewise.
4060 * lib/trigl.h: Likewise.
4061 * lib/trim.c: Likewise.
4062 * lib/trim.h: Likewise.
4063 * lib/trunc.c: Likewise.
4064 * lib/truncf.c: Likewise.
4065 * lib/truncl.c: Likewise.
4066 * lib/tsearch.c: Likewise.
4067 * lib/unicodeio.c: Likewise.
4068 * lib/unicodeio.h: Likewise.
4069 * lib/unistd--.h: Likewise.
4070 * lib/unistd-safer.h: Likewise.
4071 * lib/unistdio/ulc-fprintf.c: Likewise.
4072 * lib/unistdio/ulc-vfprintf.c: Likewise.
4073 * lib/unlinkdir.c: Likewise.
4074 * lib/unlinkdir.h: Likewise.
4075 * lib/unlocked-io.h: Likewise.
4076 * lib/unsetenv.c: Likewise.
4077 * lib/userspec.c: Likewise.
4078 * lib/utime.c: Likewise.
4079 * lib/utimecmp.c: Likewise.
4080 * lib/utimecmp.h: Likewise.
4081 * lib/utimens.c: Likewise.
4082 * lib/verify.h: Likewise.
4083 * lib/verror.c: Likewise.
4084 * lib/verror.h: Likewise.
4085 * lib/version-etc-fsf.c: Likewise.
4086 * lib/version-etc.c: Likewise.
4087 * lib/version-etc.h: Likewise.
4088 * lib/vfprintf.c: Likewise.
4089 * lib/vprintf.c: Likewise.
4090 * lib/vsprintf.c: Likewise.
4091 * lib/w32spawn.h: Likewise.
4092 * lib/wait-process.c: Likewise.
4093 * lib/wait-process.h: Likewise.
4094 * lib/wcwidth.c: Likewise.
4095 * lib/write-any-file.c: Likewise.
4096 * lib/xalloc-die.c: Likewise.
4097 * lib/xalloc.h: Likewise.
4098 * lib/xasprintf.c: Likewise.
4099 * lib/xgetcwd.c: Likewise.
4100 * lib/xgetcwd.h: Likewise.
4101 * lib/xgetdomainname.c: Likewise.
4102 * lib/xgetdomainname.h: Likewise.
4103 * lib/xgethostname.c: Likewise.
4104 * lib/xmalloc.c: Likewise.
4105 * lib/xmalloca.c: Likewise.
4106 * lib/xmalloca.h: Likewise.
4107 * lib/xmemcoll.c: Likewise.
4108 * lib/xnanosleep.c: Likewise.
4109 * lib/xreadlink.c: Likewise.
4110 * lib/xreadlink.h: Likewise.
4111 * lib/xsetenv.c: Likewise.
4112 * lib/xsetenv.h: Likewise.
4113 * lib/xstriconv.c: Likewise.
4114 * lib/xstriconv.h: Likewise.
4115 * lib/xstrndup.c: Likewise.
4116 * lib/xstrndup.h: Likewise.
4117 * lib/xstrtod.c: Likewise.
4118 * lib/xstrtod.h: Likewise.
4119 * lib/xstrtol-error.c: Likewise.
4120 * lib/xstrtol.c: Likewise.
4121 * lib/xstrtol.h: Likewise.
4122 * lib/xtime.h: Likewise.
4123 * lib/xvasprintf.c: Likewise.
4124 * lib/xvasprintf.h: Likewise.
4125 * lib/yesno.c: Likewise.
4126 * lib/yesno.h: Likewise.
4127 * posix-modules: Likewise.
4128 * tests/test-alloca-opt.c: Likewise.
4129 * tests/test-arcfour.c: Likewise.
4130 * tests/test-arctwo.c: Likewise.
4131 * tests/test-argmatch.c: Likewise.
4132 * tests/test-argp-2.sh: Likewise.
4133 * tests/test-argp.c: Likewise.
4134 * tests/test-arpa_inet.c: Likewise.
4135 * tests/test-array_list.c: Likewise.
4136 * tests/test-array_oset.c: Likewise.
4137 * tests/test-atexit.c: Likewise.
4138 * tests/test-avltree_list.c: Likewise.
4139 * tests/test-avltree_oset.c: Likewise.
4140 * tests/test-avltreehash_list.c: Likewise.
4141 * tests/test-base64.c: Likewise.
4142 * tests/test-binary-io.c: Likewise.
4143 * tests/test-byteswap.c: Likewise.
4144 * tests/test-c-ctype.c: Likewise.
4145 * tests/test-c-strcasecmp.c: Likewise.
4146 * tests/test-c-strcasestr.c: Likewise.
4147 * tests/test-c-strncasecmp.c: Likewise.
4148 * tests/test-c-strstr.c: Likewise.
4149 * tests/test-canonicalize-lgpl.c: Likewise.
4150 * tests/test-canonicalize.c: Likewise.
4151 * tests/test-carray_list.c: Likewise.
4152 * tests/test-ceilf.c: Likewise.
4153 * tests/test-ceill.c: Likewise.
4154 * tests/test-count-one-bits.c: Likewise.
4155 * tests/test-crc.c: Likewise.
4156 * tests/test-dirname.c: Likewise.
4157 * tests/test-fbufmode.c: Likewise.
4158 * tests/test-fcntl.c: Likewise.
4159 * tests/test-fflush.c: Likewise.
4160 * tests/test-floorf.c: Likewise.
4161 * tests/test-floorl.c: Likewise.
4162 * tests/test-fopen.c: Likewise.
4163 * tests/test-fprintf-posix.c: Likewise.
4164 * tests/test-fprintf-posix.h: Likewise.
4165 * tests/test-fpurge.c: Likewise.
4166 * tests/test-freadable.c: Likewise.
4167 * tests/test-freadahead.c: Likewise.
4168 * tests/test-freading.c: Likewise.
4169 * tests/test-freopen.c: Likewise.
4170 * tests/test-frexp.c: Likewise.
4171 * tests/test-frexpl.c: Likewise.
4172 * tests/test-fseek.c: Likewise.
4173 * tests/test-fseeko.c: Likewise.
4174 * tests/test-fseterr.c: Likewise.
4175 * tests/test-fstrcmp.c: Likewise.
4176 * tests/test-ftell.c: Likewise.
4177 * tests/test-ftello.c: Likewise.
4178 * tests/test-fwritable.c: Likewise.
4179 * tests/test-fwriting.c: Likewise.
4180 * tests/test-getaddrinfo.c: Likewise.
4181 * tests/test-getpass.c: Likewise.
4182 * tests/test-gettimeofday.c: Likewise.
4183 * tests/test-hmac-md5.c: Likewise.
4184 * tests/test-hmac-sha1.c: Likewise.
4185 * tests/test-iconv.c: Likewise.
4186 * tests/test-iconvme.c: Likewise.
4187 * tests/test-inttypes.c: Likewise.
4188 * tests/test-isnan.c: Likewise.
4189 * tests/test-isnanf.c: Likewise.
4190 * tests/test-isnanl-nolibm.c: Likewise.
4191 * tests/test-isnanl.c: Likewise.
4192 * tests/test-isnanl.h: Likewise.
4193 * tests/test-ldexpl.c: Likewise.
4194 * tests/test-linked_list.c: Likewise.
4195 * tests/test-linkedhash_list.c: Likewise.
4196 * tests/test-locale.c: Likewise.
4197 * tests/test-localename.c: Likewise.
4198 * tests/test-lock.c: Likewise.
4199 * tests/test-lseek.c: Likewise.
4200 * tests/test-malloca.c: Likewise.
4201 * tests/test-math.c: Likewise.
4202 * tests/test-mbscasecmp.c: Likewise.
4203 * tests/test-mbscasestr1.c: Likewise.
4204 * tests/test-mbscasestr2.c: Likewise.
4205 * tests/test-mbscasestr3.c: Likewise.
4206 * tests/test-mbscasestr4.c: Likewise.
4207 * tests/test-mbschr.c: Likewise.
4208 * tests/test-mbscspn.c: Likewise.
4209 * tests/test-mbsncasecmp.c: Likewise.
4210 * tests/test-mbspbrk.c: Likewise.
4211 * tests/test-mbspcasecmp.c: Likewise.
4212 * tests/test-mbsrchr.c: Likewise.
4213 * tests/test-mbsspn.c: Likewise.
4214 * tests/test-mbsstr1.c: Likewise.
4215 * tests/test-mbsstr2.c: Likewise.
4216 * tests/test-mbsstr3.c: Likewise.
4217 * tests/test-md5.c: Likewise.
4218 * tests/test-memmem.c: Likewise.
4219 * tests/test-netinet_in.c: Likewise.
4220 * tests/test-open.c: Likewise.
4221 * tests/test-printf-frexp.c: Likewise.
4222 * tests/test-printf-frexpl.c: Likewise.
4223 * tests/test-printf-posix.c: Likewise.
4224 * tests/test-printf-posix.h: Likewise.
4225 * tests/test-rbtree_list.c: Likewise.
4226 * tests/test-rbtree_oset.c: Likewise.
4227 * tests/test-rbtreehash_list.c: Likewise.
4228 * tests/test-read-file.c: Likewise.
4229 * tests/test-rijndael.c: Likewise.
4230 * tests/test-search.c: Likewise.
4231 * tests/test-signbit.c: Likewise.
4232 * tests/test-sleep.c: Likewise.
4233 * tests/test-snprintf-posix.c: Likewise.
4234 * tests/test-snprintf-posix.h: Likewise.
4235 * tests/test-snprintf.c: Likewise.
4236 * tests/test-sprintf-posix.c: Likewise.
4237 * tests/test-sprintf-posix.h: Likewise.
4238 * tests/test-stat-time.c: Likewise.
4239 * tests/test-stdbool.c: Likewise.
4240 * tests/test-stdint.c: Likewise.
4241 * tests/test-stdio.c: Likewise.
4242 * tests/test-stdlib.c: Likewise.
4243 * tests/test-stpncpy.c: Likewise.
4244 * tests/test-strcasestr.c: Likewise.
4245 * tests/test-striconv.c: Likewise.
4246 * tests/test-striconveh.c: Likewise.
4247 * tests/test-striconveha.c: Likewise.
4248 * tests/test-string.c: Likewise.
4249 * tests/test-sys_select.c: Likewise.
4250 * tests/test-sys_socket.c: Likewise.
4251 * tests/test-sys_stat.c: Likewise.
4252 * tests/test-sys_time.c: Likewise.
4253 * tests/test-sysexits.c: Likewise.
4254 * tests/test-time.c: Likewise.
4255 * tests/test-tls.c: Likewise.
4256 * tests/test-trunc.c: Likewise.
4257 * tests/test-truncf.c: Likewise.
4258 * tests/test-truncl.c: Likewise.
4259 * tests/test-unistd.c: Likewise.
4260 * tests/test-vasnprintf-posix.c: Likewise.
4261 * tests/test-vasnprintf-posix2.c: Likewise.
4262 * tests/test-vasnprintf.c: Likewise.
4263 * tests/test-vasprintf-posix.c: Likewise.
4264 * tests/test-vasprintf.c: Likewise.
4265 * tests/test-verify.c: Likewise.
4266 * tests/test-vfprintf-posix.c: Likewise.
4267 * tests/test-vprintf-posix.c: Likewise.
4268 * tests/test-vsnprintf-posix.c: Likewise.
4269 * tests/test-vsnprintf.c: Likewise.
4270 * tests/test-vsprintf-posix.c: Likewise.
4271 * tests/test-wchar.c: Likewise.
4272 * tests/test-wctype.c: Likewise.
4273 * tests/test-wcwidth.c: Likewise.
4274 * tests/test-xstrtol.c: Likewise.
4275 * tests/test-xvasprintf.c: Likewise.
4276 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4277 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4278 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4279 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4280 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4281 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4282 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4283 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4284 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4285 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4286 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4287 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4288 * tests/uniname/test-uninames.c: Likewise.
4289 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4290 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
4291 * tests/unistdio/test-u16-printf1.h: Likewise.
4292 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4293 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4294 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4295 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4296 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4297 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4298 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4299 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
4300 * tests/unistdio/test-u32-printf1.h: Likewise.
4301 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4302 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4303 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4304 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4305 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4306 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4307 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4308 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
4309 * tests/unistdio/test-u8-printf1.h: Likewise.
4310 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4311 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4312 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4313 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4314 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4315 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4316 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4317 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
4318 * tests/unistdio/test-ulc-printf1.h: Likewise.
4319 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4320 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4321 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4322 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4323 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4324 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4325 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4326 * tests/uniwidth/test-u16-width.c: Likewise.
4327 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4328 * tests/uniwidth/test-u32-width.c: Likewise.
4329 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4330 * tests/uniwidth/test-u8-width.c: Likewise.
4331 * tests/uniwidth/test-uc_width.c: Likewise.
4332 * config/srclist-update: Likewise.
4333 (fixlicense): Update to GPLv3+.
4335 Change copyright notice from LGPLv2.1+ to LGPLv3+.
4336 * tests/test-tsearch.c: Change copyright notice.
4338 Change copyright notice from LGPLv2.0+ to LGPLv3+.
4339 * lib/c-strcaseeq.h: Change copyright notice.
4340 * lib/streq.h: Likewise.
4341 * lib/uniconv.h: Likewise.
4342 * lib/uniconv/u-conv-from-enc.h: Likewise.
4343 * lib/uniconv/u-conv-to-enc.h: Likewise.
4344 * lib/uniconv/u-strconv-from-enc.h: Likewise.
4345 * lib/uniconv/u-strconv-to-enc.h: Likewise.
4346 * lib/uniconv/u16-conv-from-enc.c: Likewise.
4347 * lib/uniconv/u16-conv-to-enc.c: Likewise.
4348 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
4349 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
4350 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
4351 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
4352 * lib/uniconv/u32-conv-from-enc.c: Likewise.
4353 * lib/uniconv/u32-conv-to-enc.c: Likewise.
4354 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
4355 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
4356 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
4357 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
4358 * lib/uniconv/u8-conv-from-enc.c: Likewise.
4359 * lib/uniconv/u8-conv-to-enc.c: Likewise.
4360 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
4361 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
4362 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
4363 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
4364 * lib/uniname.h: Likewise.
4365 * lib/uniname/uniname.c: Likewise.
4366 * lib/unistdio.h: Likewise.
4367 * lib/unistdio/u-asnprintf.h: Likewise.
4368 * lib/unistdio/u-asprintf.h: Likewise.
4369 * lib/unistdio/u-printf-args.c: Likewise.
4370 * lib/unistdio/u-printf-args.h: Likewise.
4371 * lib/unistdio/u-printf-parse.h: Likewise.
4372 * lib/unistdio/u-snprintf.h: Likewise.
4373 * lib/unistdio/u-sprintf.h: Likewise.
4374 * lib/unistdio/u-vasprintf.h: Likewise.
4375 * lib/unistdio/u-vsnprintf.h: Likewise.
4376 * lib/unistdio/u-vsprintf.h: Likewise.
4377 * lib/unistdio/u16-asnprintf.c: Likewise.
4378 * lib/unistdio/u16-asprintf.c: Likewise.
4379 * lib/unistdio/u16-printf-parse.c: Likewise.
4380 * lib/unistdio/u16-snprintf.c: Likewise.
4381 * lib/unistdio/u16-sprintf.c: Likewise.
4382 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
4383 * lib/unistdio/u16-u16-asprintf.c: Likewise.
4384 * lib/unistdio/u16-u16-snprintf.c: Likewise.
4385 * lib/unistdio/u16-u16-sprintf.c: Likewise.
4386 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
4387 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
4388 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
4389 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
4390 * lib/unistdio/u16-vasnprintf.c: Likewise.
4391 * lib/unistdio/u16-vasprintf.c: Likewise.
4392 * lib/unistdio/u16-vsnprintf.c: Likewise.
4393 * lib/unistdio/u16-vsprintf.c: Likewise.
4394 * lib/unistdio/u32-asnprintf.c: Likewise.
4395 * lib/unistdio/u32-asprintf.c: Likewise.
4396 * lib/unistdio/u32-printf-parse.c: Likewise.
4397 * lib/unistdio/u32-snprintf.c: Likewise.
4398 * lib/unistdio/u32-sprintf.c: Likewise.
4399 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
4400 * lib/unistdio/u32-u32-asprintf.c: Likewise.
4401 * lib/unistdio/u32-u32-snprintf.c: Likewise.
4402 * lib/unistdio/u32-u32-sprintf.c: Likewise.
4403 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
4404 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
4405 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
4406 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
4407 * lib/unistdio/u32-vasnprintf.c: Likewise.
4408 * lib/unistdio/u32-vasprintf.c: Likewise.
4409 * lib/unistdio/u32-vsnprintf.c: Likewise.
4410 * lib/unistdio/u32-vsprintf.c: Likewise.
4411 * lib/unistdio/u8-asnprintf.c: Likewise.
4412 * lib/unistdio/u8-asprintf.c: Likewise.
4413 * lib/unistdio/u8-printf-parse.c: Likewise.
4414 * lib/unistdio/u8-snprintf.c: Likewise.
4415 * lib/unistdio/u8-sprintf.c: Likewise.
4416 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
4417 * lib/unistdio/u8-u8-asprintf.c: Likewise.
4418 * lib/unistdio/u8-u8-snprintf.c: Likewise.
4419 * lib/unistdio/u8-u8-sprintf.c: Likewise.
4420 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
4421 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
4422 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
4423 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
4424 * lib/unistdio/u8-vasnprintf.c: Likewise.
4425 * lib/unistdio/u8-vasprintf.c: Likewise.
4426 * lib/unistdio/u8-vsnprintf.c: Likewise.
4427 * lib/unistdio/u8-vsprintf.c: Likewise.
4428 * lib/unistdio/ulc-asnprintf.c: Likewise.
4429 * lib/unistdio/ulc-asprintf.c: Likewise.
4430 * lib/unistdio/ulc-printf-parse.c: Likewise.
4431 * lib/unistdio/ulc-snprintf.c: Likewise.
4432 * lib/unistdio/ulc-sprintf.c: Likewise.
4433 * lib/unistdio/ulc-vasnprintf.c: Likewise.
4434 * lib/unistdio/ulc-vasprintf.c: Likewise.
4435 * lib/unistdio/ulc-vsnprintf.c: Likewise.
4436 * lib/unistdio/ulc-vsprintf.c: Likewise.
4437 * lib/unistr.h: Likewise.
4438 * lib/unistr/u-cpy-alloc.h: Likewise.
4439 * lib/unistr/u-cpy.h: Likewise.
4440 * lib/unistr/u-endswith.h: Likewise.
4441 * lib/unistr/u-move.h: Likewise.
4442 * lib/unistr/u-set.h: Likewise.
4443 * lib/unistr/u-startswith.h: Likewise.
4444 * lib/unistr/u-stpcpy.h: Likewise.
4445 * lib/unistr/u-stpncpy.h: Likewise.
4446 * lib/unistr/u-strcat.h: Likewise.
4447 * lib/unistr/u-strcpy.h: Likewise.
4448 * lib/unistr/u-strcspn.h: Likewise.
4449 * lib/unistr/u-strdup.h: Likewise.
4450 * lib/unistr/u-strlen.h: Likewise.
4451 * lib/unistr/u-strncat.h: Likewise.
4452 * lib/unistr/u-strncpy.h: Likewise.
4453 * lib/unistr/u-strnlen.h: Likewise.
4454 * lib/unistr/u-strpbrk.h: Likewise.
4455 * lib/unistr/u-strspn.h: Likewise.
4456 * lib/unistr/u-strstr.h: Likewise.
4457 * lib/unistr/u-strtok.h: Likewise.
4458 * lib/unistr/u16-check.c: Likewise.
4459 * lib/unistr/u16-chr.c: Likewise.
4460 * lib/unistr/u16-cmp.c: Likewise.
4461 * lib/unistr/u16-cpy-alloc.c: Likewise.
4462 * lib/unistr/u16-cpy.c: Likewise.
4463 * lib/unistr/u16-endswith.c: Likewise.
4464 * lib/unistr/u16-mblen.c: Likewise.
4465 * lib/unistr/u16-mbsnlen.c: Likewise.
4466 * lib/unistr/u16-mbtouc-aux.c: Likewise.
4467 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
4468 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
4469 * lib/unistr/u16-mbtouc.c: Likewise.
4470 * lib/unistr/u16-mbtoucr.c: Likewise.
4471 * lib/unistr/u16-move.c: Likewise.
4472 * lib/unistr/u16-next.c: Likewise.
4473 * lib/unistr/u16-prev.c: Likewise.
4474 * lib/unistr/u16-set.c: Likewise.
4475 * lib/unistr/u16-startswith.c: Likewise.
4476 * lib/unistr/u16-stpcpy.c: Likewise.
4477 * lib/unistr/u16-stpncpy.c: Likewise.
4478 * lib/unistr/u16-strcat.c: Likewise.
4479 * lib/unistr/u16-strchr.c: Likewise.
4480 * lib/unistr/u16-strcmp.c: Likewise.
4481 * lib/unistr/u16-strcpy.c: Likewise.
4482 * lib/unistr/u16-strcspn.c: Likewise.
4483 * lib/unistr/u16-strdup.c: Likewise.
4484 * lib/unistr/u16-strlen.c: Likewise.
4485 * lib/unistr/u16-strmblen.c: Likewise.
4486 * lib/unistr/u16-strmbtouc.c: Likewise.
4487 * lib/unistr/u16-strncat.c: Likewise.
4488 * lib/unistr/u16-strncmp.c: Likewise.
4489 * lib/unistr/u16-strncpy.c: Likewise.
4490 * lib/unistr/u16-strnlen.c: Likewise.
4491 * lib/unistr/u16-strpbrk.c: Likewise.
4492 * lib/unistr/u16-strrchr.c: Likewise.
4493 * lib/unistr/u16-strspn.c: Likewise.
4494 * lib/unistr/u16-strstr.c: Likewise.
4495 * lib/unistr/u16-strtok.c: Likewise.
4496 * lib/unistr/u16-to-u32.c: Likewise.
4497 * lib/unistr/u16-to-u8.c: Likewise.
4498 * lib/unistr/u16-uctomb-aux.c: Likewise.
4499 * lib/unistr/u16-uctomb.c: Likewise.
4500 * lib/unistr/u32-check.c: Likewise.
4501 * lib/unistr/u32-chr.c: Likewise.
4502 * lib/unistr/u32-cmp.c: Likewise.
4503 * lib/unistr/u32-cpy-alloc.c: Likewise.
4504 * lib/unistr/u32-cpy.c: Likewise.
4505 * lib/unistr/u32-endswith.c: Likewise.
4506 * lib/unistr/u32-mblen.c: Likewise.
4507 * lib/unistr/u32-mbsnlen.c: Likewise.
4508 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
4509 * lib/unistr/u32-mbtouc.c: Likewise.
4510 * lib/unistr/u32-mbtoucr.c: Likewise.
4511 * lib/unistr/u32-move.c: Likewise.
4512 * lib/unistr/u32-next.c: Likewise.
4513 * lib/unistr/u32-prev.c: Likewise.
4514 * lib/unistr/u32-set.c: Likewise.
4515 * lib/unistr/u32-startswith.c: Likewise.
4516 * lib/unistr/u32-stpcpy.c: Likewise.
4517 * lib/unistr/u32-stpncpy.c: Likewise.
4518 * lib/unistr/u32-strcat.c: Likewise.
4519 * lib/unistr/u32-strchr.c: Likewise.
4520 * lib/unistr/u32-strcmp.c: Likewise.
4521 * lib/unistr/u32-strcpy.c: Likewise.
4522 * lib/unistr/u32-strcspn.c: Likewise.
4523 * lib/unistr/u32-strdup.c: Likewise.
4524 * lib/unistr/u32-strlen.c: Likewise.
4525 * lib/unistr/u32-strmblen.c: Likewise.
4526 * lib/unistr/u32-strmbtouc.c: Likewise.
4527 * lib/unistr/u32-strncat.c: Likewise.
4528 * lib/unistr/u32-strncmp.c: Likewise.
4529 * lib/unistr/u32-strncpy.c: Likewise.
4530 * lib/unistr/u32-strnlen.c: Likewise.
4531 * lib/unistr/u32-strpbrk.c: Likewise.
4532 * lib/unistr/u32-strrchr.c: Likewise.
4533 * lib/unistr/u32-strspn.c: Likewise.
4534 * lib/unistr/u32-strstr.c: Likewise.
4535 * lib/unistr/u32-strtok.c: Likewise.
4536 * lib/unistr/u32-to-u16.c: Likewise.
4537 * lib/unistr/u32-to-u8.c: Likewise.
4538 * lib/unistr/u32-uctomb.c: Likewise.
4539 * lib/unistr/u8-check.c: Likewise.
4540 * lib/unistr/u8-chr.c: Likewise.
4541 * lib/unistr/u8-cmp.c: Likewise.
4542 * lib/unistr/u8-cpy-alloc.c: Likewise.
4543 * lib/unistr/u8-cpy.c: Likewise.
4544 * lib/unistr/u8-endswith.c: Likewise.
4545 * lib/unistr/u8-mblen.c: Likewise.
4546 * lib/unistr/u8-mbsnlen.c: Likewise.
4547 * lib/unistr/u8-mbtouc-aux.c: Likewise.
4548 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
4549 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
4550 * lib/unistr/u8-mbtouc.c: Likewise.
4551 * lib/unistr/u8-mbtoucr.c: Likewise.
4552 * lib/unistr/u8-move.c: Likewise.
4553 * lib/unistr/u8-next.c: Likewise.
4554 * lib/unistr/u8-prev.c: Likewise.
4555 * lib/unistr/u8-set.c: Likewise.
4556 * lib/unistr/u8-startswith.c: Likewise.
4557 * lib/unistr/u8-stpcpy.c: Likewise.
4558 * lib/unistr/u8-stpncpy.c: Likewise.
4559 * lib/unistr/u8-strcat.c: Likewise.
4560 * lib/unistr/u8-strchr.c: Likewise.
4561 * lib/unistr/u8-strcmp.c: Likewise.
4562 * lib/unistr/u8-strcpy.c: Likewise.
4563 * lib/unistr/u8-strcspn.c: Likewise.
4564 * lib/unistr/u8-strdup.c: Likewise.
4565 * lib/unistr/u8-strlen.c: Likewise.
4566 * lib/unistr/u8-strmblen.c: Likewise.
4567 * lib/unistr/u8-strmbtouc.c: Likewise.
4568 * lib/unistr/u8-strncat.c: Likewise.
4569 * lib/unistr/u8-strncmp.c: Likewise.
4570 * lib/unistr/u8-strncpy.c: Likewise.
4571 * lib/unistr/u8-strnlen.c: Likewise.
4572 * lib/unistr/u8-strpbrk.c: Likewise.
4573 * lib/unistr/u8-strrchr.c: Likewise.
4574 * lib/unistr/u8-strspn.c: Likewise.
4575 * lib/unistr/u8-strstr.c: Likewise.
4576 * lib/unistr/u8-strtok.c: Likewise.
4577 * lib/unistr/u8-to-u16.c: Likewise.
4578 * lib/unistr/u8-to-u32.c: Likewise.
4579 * lib/unistr/u8-uctomb-aux.c: Likewise.
4580 * lib/unistr/u8-uctomb.c: Likewise.
4581 * lib/unitypes.h: Likewise.
4582 * lib/uniwidth.h: Likewise.
4583 * lib/uniwidth/cjk.h: Likewise.
4584 * lib/uniwidth/u16-strwidth.c: Likewise.
4585 * lib/uniwidth/u16-width.c: Likewise.
4586 * lib/uniwidth/u32-strwidth.c: Likewise.
4587 * lib/uniwidth/u32-width.c: Likewise.
4588 * lib/uniwidth/u8-strwidth.c: Likewise.
4589 * lib/uniwidth/u8-width.c: Likewise.
4590 * lib/uniwidth/width.c: Likewise.
4592 2007-10-07 Bruno Haible <bruno@clisp.org>
4594 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
4595 The file is still under LGPL (see modules/inttypes).
4597 2007-10-06 Bruno Haible <bruno@clisp.org>
4599 * modules/trunc (Dependencies): Add 'extensions'.
4600 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
4601 Reported by Ben Pfaff <blp@gnu.org>.
4603 2007-10-06 Bruno Haible <bruno@clisp.org>
4605 * modules/freopen-tests: New file.
4606 * tests/test-freopen.c: New file.
4608 * modules/fopen-tests: New file.
4609 * tests/test-fopen.c: New file.
4611 * modules/fopen: New file.
4612 * lib/fopen.c: New file.
4613 * m4/fopen.m4: New file.
4614 * modules/freopen: New file.
4615 * lib/freopen.c: New file.
4616 * m4/freopen.m4: New file.
4617 * lib/stdio.in.h (fopen, freopen): New declarations.
4618 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
4619 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
4620 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
4621 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
4622 * doc/functions/fopen.texi: Mention the 'fopen' module.
4623 * doc/functions/freopen.texi: Mention the 'freopen' module.
4625 2007-10-06 Bruno Haible <bruno@clisp.org>
4627 * modules/open-tests: New file.
4628 * tests/test-open.c: New file.
4630 * modules/open: New file.
4631 * lib/open.c: New file.
4632 * m4/open.m4: New file.
4633 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
4635 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
4636 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
4638 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
4639 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
4641 * doc/functions/open.texi: Mention the 'open' module.
4643 2007-10-04 Bruno Haible <bruno@clisp.org>
4645 * modules/ceill-tests: New file.
4646 * tests/test-ceill.c: New file.
4648 * modules/ceill: New file.
4649 * lib/ceill.c: Replace entire file.
4650 * m4/ceill.m4: New file.
4651 * lib/math.in.h (ceill): Replace declaration.
4652 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
4653 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
4654 * doc/functions/ceill.texi: Mention the 'ceill' module.
4655 * modules/mathl (Files): Remove lib/ceill.c.
4656 (Depends-on): Add ceill.
4658 2007-10-04 Bruno Haible <bruno@clisp.org>
4660 * modules/ceilf-tests: New file.
4661 * tests/test-ceilf.c: New file.
4663 * modules/ceilf: New file.
4664 * lib/ceil.c: New file.
4665 * lib/ceilf.c: New file.
4666 * m4/ceilf.m4: New file.
4667 * lib/math.in.h (ceilf): New declaration.
4668 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
4670 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
4672 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
4674 2007-10-04 Bruno Haible <bruno@clisp.org>
4676 * modules/floorl-tests: New file.
4677 * tests/test-floorl.c: New file.
4679 * modules/floorl: New file.
4680 * lib/floorl.c: Replace entire file.
4681 * m4/floorl.m4: New file.
4682 * lib/math.in.h (floorl): Replace declaration.
4683 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
4684 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
4685 * doc/functions/floorl.texi: Mention the 'floorl' module.
4686 * modules/mathl (Files): Remove lib/floorl.c.
4687 (Depends-on): Add floorl.
4689 2007-10-04 Bruno Haible <bruno@clisp.org>
4691 * modules/floorf-tests: New file.
4692 * tests/test-floorf.c: New file.
4694 * modules/floorf: New file.
4695 * lib/floor.c: New file.
4696 * lib/floorf.c: New file.
4697 * m4/floorf.m4: New file.
4698 * lib/math.in.h (floorf): New declaration.
4699 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
4701 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
4703 * doc/functions/floorf.texi: Mention the 'floorf' module.
4705 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
4706 Bruno Haible <bruno@clisp.org>
4708 Advertise for the Git server instead of the CVS server.
4709 * doc/gnulib-intro.texi (Steady Development): Mention the Git
4710 repository instead of the CVS one.
4711 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
4712 about all VCS systems generically.
4713 * doc/gnulib.texi (Introduction): Capitalize `Git'.
4715 2007-10-04 Bruno Haible <bruno@clisp.org>
4717 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
4719 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
4721 2007-10-04 Bruno Haible <bruno@clisp.org>
4723 * modules/truncl-tests: New file.
4724 * tests/test-truncl.c: New file.
4726 * modules/truncl: New file.
4727 * lib/truncl.c: New file.
4728 * m4/truncl.m4: New file.
4729 * lib/math.in.h (truncl): New declaration.
4730 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
4732 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
4734 * doc/functions/truncl.texi: Mention the 'truncl' module.
4736 2007-10-04 Bruno Haible <bruno@clisp.org>
4738 * modules/truncf-tests: New file.
4739 * tests/test-truncf.c: New file.
4741 * modules/truncf: New file.
4742 * lib/trunc.c: Make paramerizable through USE_* macros.
4743 * lib/truncf.c: New file.
4744 * m4/truncf.m4: New file.
4745 * lib/math.in.h (truncf): New declaration.
4746 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
4748 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
4750 * doc/functions/truncf.texi: Mention the 'truncf' module.
4752 2007-10-03 Bruno Haible <bruno@clisp.org>
4754 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4755 augmentation also for tests modules.
4756 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
4757 * modules/atexit-tests (Makefile.am): Likewise.
4758 * modules/binary-io-tests (Makefile.am): Likewise.
4759 * modules/c-strcase-tests (Makefile.am): Likewise.
4760 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
4761 * modules/canonicalize-tests (Makefile.am): Likewise.
4762 * modules/closein-tests (Makefile.am): Likewise.
4763 * modules/fprintf-posix-tests (Makefile.am): Likewise.
4764 * modules/freadahead-tests (Makefile.am): Likewise.
4765 * modules/fseek-tests (Makefile.am): Likewise.
4766 * modules/fseeko-tests (Makefile.am): Likewise.
4767 * modules/ftell-tests (Makefile.am): Likewise.
4768 * modules/ftello-tests (Makefile.am): Likewise.
4769 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
4770 * modules/isnanl-tests (Makefile.am): Likewise.
4771 * modules/lseek-tests (Makefile.am): Likewise.
4772 * modules/mbscasecmp-tests (Makefile.am): Likewise.
4773 * modules/mbscasestr-tests (Makefile.am): Likewise.
4774 * modules/mbschr-tests (Makefile.am): Likewise.
4775 * modules/mbscspn-tests (Makefile.am): Likewise.
4776 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
4777 * modules/mbspbrk-tests (Makefile.am): Likewise.
4778 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
4779 * modules/mbsrchr-tests (Makefile.am): Likewise.
4780 * modules/mbsspn-tests (Makefile.am): Likewise.
4781 * modules/mbsstr-tests (Makefile.am): Likewise.
4782 * modules/printf-posix-tests (Makefile.am): Likewise.
4783 * modules/snprintf-posix-tests (Makefile.am): Likewise.
4784 * modules/sprintf-posix-tests (Makefile.am): Likewise.
4785 * modules/tsearch-tests (Makefile.am): Likewise.
4786 * modules/uniname/uniname-tests (Makefile.am): Likewise.
4787 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
4788 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
4789 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
4790 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
4791 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
4792 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
4793 * modules/vprintf-posix-tests (Makefile.am): Likewise.
4794 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
4795 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
4796 * modules/xstrtoimax-tests (Makefile.am): Likewise.
4797 * modules/xstrtol-tests (Makefile.am): Likewise.
4798 * modules/xstrtoumax-tests (Makefile.am): Likewise.
4799 * modules/yesno-tests (Makefile.am): Likewise.
4801 2007-10-03 Bruno Haible <bruno@clisp.org>
4803 * modules/trunc-tests: New file.
4804 * tests/test-trunc.c: New file.
4806 * modules/trunc: New file.
4807 * lib/trunc.c: New file.
4808 * m4/trunc.m4: New file.
4809 * lib/math.in.h (trunc): New declaration.
4810 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
4812 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
4814 * doc/functions/trunc.texi: Mention the 'trunc' module.
4816 2007-10-03 Bruno Haible <bruno@clisp.org>
4818 * tests/test-fpending.c: New file, mostly copied
4819 from coreutils/lib/t-fpending.c.
4820 * modules/fpending-tests: New file.
4822 2007-10-03 Bruno Haible <bruno@clisp.org>
4824 Port the stdio extensions to QNX (untested).
4825 * lib/fseterr.c (fseterr): Add support for QNX.
4826 * lib/fbufmode.c (fbufmode): Likewise.
4827 * lib/freadable.c (freadable): Likewise.
4828 * lib/fwritable.c (fwritable): Likewise.
4829 * lib/freading.c (freading): Likewise.
4830 * lib/fwriting.c (fwriting): Likewise.
4831 * lib/freadahead.c (freadahed): Likewise.
4832 * lib/fpurge.c (fpurge): Likewise.
4833 * lib/fseeko.c (rpl_fseeko): Likewise.
4835 2007-10-03 Bruno Haible <bruno@clisp.org>
4836 Jim Meyering <jim@meyering.net>
4837 Eric Blake <ebb9@byu.net>
4839 * doc/relocatable.texi: Use @command instead of @program.
4841 2007-10-02 Jim Meyering <jim@meyering.net>
4843 Perform one more "_.h" -> ".in.h" substitution.
4844 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
4845 instead of unistd_.h here, too.
4847 2007-10-01 Bruno Haible <bruno@clisp.org>
4849 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
4850 Needed for the alloca-opt module.
4852 2007-09-30 Bruno Haible <bruno@clisp.org>
4854 * lib/alloca.in.h: Renamed from lib/alloca_.h.
4855 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
4857 * lib/argz.in.h: Renamed from lib/argz_.h.
4858 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
4859 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
4860 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
4862 * lib/dirent.in.h: Renamed from lib/dirent_.h.
4863 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
4865 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
4866 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
4868 * lib/float.in.h: Renamed from lib/float_.h.
4869 * modules/float (Files, Makefile.am): Use float.in.h instead of
4871 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
4872 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
4874 * lib/getopt.in.h: Renamed from lib/getopt_.h.
4875 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
4877 * lib/glob.in.h: Renamed from lib/glob_.h.
4878 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
4879 * lib/iconv.in.h: Renamed from lib/iconv_.h.
4880 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
4882 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
4883 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
4885 * lib/locale.in.h: Renamed from lib/locale_.h.
4886 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
4888 * lib/math.in.h: Renamed from lib/math_.h.
4889 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
4890 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
4891 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
4892 of netinet_in_.h. Add dependency.
4893 * lib/poll.in.h: Renamed from lib/poll_.h.
4894 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
4895 * lib/search.in.h: Renamed from lib/search_.h.
4896 * modules/search (Files, Makefile.am): Use search.in.h instead of
4898 * lib/signal.in.h: Renamed from lib/signal_.h.
4899 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
4901 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
4902 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
4904 * lib/stdint.in.h: Renamed from lib/stdint_.h.
4905 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
4907 * lib/stdio.in.h: Renamed from lib/stdio_.h.
4908 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
4910 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
4911 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
4913 * lib/string.in.h: Renamed from lib/string_.h.
4914 * modules/string (Files, Makefile.am): Use string.in.h instead of
4916 * doc/gnulib-tool.texi (Initial import): Update.
4917 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
4918 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
4919 of sys_select_.h. Add dependency.
4920 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
4921 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
4923 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
4924 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
4926 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
4927 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
4929 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
4930 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
4932 * lib/time.in.h: Renamed from lib/time_.h.
4933 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
4934 * lib/unistd.in.h: Renamed from lib/unistd_.h.
4935 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
4937 * lib/wchar.in.h: Renamed from lib/wchar_.h.
4938 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
4940 * lib/wctype.in.h: Renamed from lib/wctype_.h.
4941 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
4943 * build-aux/bootstrap (slurp): Update.
4944 * lib/.cppi-disable: Update.
4946 2007-09-30 Bruno Haible <bruno@clisp.org>
4948 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
4951 2007-09-30 Bruno Haible <bruno@clisp.org>
4953 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
4955 2007-09-29 Bruno Haible <bruno@clisp.org>
4957 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
4959 2007-09-29 Bruno Haible <bruno@clisp.org>
4961 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
4962 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
4963 * build-aux/install-reloc: Compile also areadlink.c.
4964 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
4966 2007-09-29 Bruno Haible <bruno@clisp.org>
4968 * gnulib-tool (func_emit_initmacro_done): Indentation.
4970 2007-09-29 Bruno Haible <bruno@clisp.org>
4972 * README: Add CVS checkout update instructions.
4973 Info from Bob Proulx <bob@proulx.com>.
4975 2007-09-28 Eric Blake <ebb9@byu.net>
4977 Provide move-if-change.
4978 * build-aux/move-if-change: New file, based on best practice
4979 rather than any canonical upstream location.
4981 2007-09-28 Jim Meyering <jim@meyering.net>
4983 Fix canonicalize loop-detection corner case.
4984 Do not attempt to stat the symlink values stored via seen_triple.
4985 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
4986 on linux-2.6.18, (but not 2.6.22).
4987 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
4988 triple_compare. The former compares dev,ino,filename, while the latter
4989 would actually stat dirname(filename) when dev and ino were equal.
4990 * lib/hash-triple.c: Install <string.h>.
4992 (triple_compare_ino_str): New function.
4993 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
4995 2007-09-28 Eric Blake <ebb9@byu.net>
4997 Enforce that AC_REPLACE_FUNCS files exist.
4998 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
4999 override check for typos.
5001 Fix test-closein on Solaris 10.
5002 * tests/test-closein.c (main): Don't assume stdin can be inherited
5003 closed on all systems.
5004 * tests/test-closein.sh: Likewise.
5005 Reported by Piotr Tarnowski.
5007 2007-09-28 Jim Meyering <jim@meyering.net>
5009 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
5011 2007-09-27 Jim Meyering <jim@meyering.net>
5013 canonicalize: Avoid a false-positive cycle failure.
5014 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
5015 Sort. Remove cycle-check.
5016 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
5018 (seen_triple): New function.
5019 (canonicalize_filename_mode): Use it instead of cycle-check.
5020 * tests/test-canonicalize.c: Add a test for this bug.
5021 * tests/test-canonicalize.sh: Set up and run the test.
5023 New module, file-set, from coreutils.
5024 * modules/file-set: Define it.
5025 * lib/file-set.c, lib/file-set.h: Implement.
5027 New module, hash-triple, from coreutils.
5028 * modules/hash-triple: Define it.
5029 * lib/hash-triple.c, lib/hash-triple.h: Implement.
5031 2007-09-25 Eric Blake <ebb9@byu.net>
5033 Fix strerror on Interix.
5034 * lib/string_.h (strerror): Declare replacement.
5035 * doc/functions/strerror.texi (strerror): Document the Interix
5037 * modules/string (Makefile.am): Support new hooks.
5038 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
5039 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
5040 gl_FUNC_STRERROR_SEPARATE.
5041 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
5042 * lib/strerror.c (rpl_strerror): Provide replacement.
5043 * modules/strerror (Depends-on): Add string.
5044 (configure.ac): Detect use of module.
5045 * tests/test-strerror.c: New file.
5046 * modules/strerror-tests: New test module.
5047 * modules/argp (Depends-on): Add strerror.
5048 * modules/error (Depends-on): Likewise.
5049 Reported by Martin Koeppe.
5051 2007-09-24 Bruno Haible <bruno@clisp.org>
5053 * README: Update git instructions.
5055 2007-09-24 Eric Blake <ebb9@byu.net>
5057 Revert fpending breakage from 2007-09-08.
5058 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
5061 2007-09-24 Jim Meyering <jim@meyering.net>
5063 filenamecat.c: Add a test.
5064 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
5065 showing how the function works when DIR is the empty string.
5067 2007-09-21 Simon Josefsson <simon@josefsson.org>
5069 * tests/test-canonicalize.sh: Turn on executable bit.
5071 2007-09-19 Eric Blake <ebb9@byu.net>
5073 * README: Update CVS instructions.
5075 2007-09-18 Bruno Haible <bruno@clisp.org>
5077 * modules/areadlink: New file.
5078 * lib/areadlink.h (areadlink): New declaration.
5079 * lib/areadlink.c: New file, based on lib/xreadlink.c.
5081 2007-09-17 Jim Meyering <jim@meyering.net>
5083 * lib/savewd.c (ESTALE) [!defined]: Define.
5084 Reported to be required on Interix by Martin Koeppe.
5086 2007-09-17 Bruno Haible <bruno@clisp.org>
5088 * gnulib-tool (func_version): Use $version.
5090 2007-09-16 Bruno Haible <bruno@clisp.org>
5092 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
5093 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
5094 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
5095 Reported by Greg Schafer <gschafer@zip.com.au>.
5097 2007-09-15 Bruno Haible <bruno@clisp.org>
5099 * gnulib-tool (sed): Try a little harder to make bash understand the
5101 Reported by Bruce Korb <bruce.korb@gmail.com>.
5103 2007-09-13 Eric Blake <ebb9@byu.net>
5105 * ChangeLog: Remove conflict markers.
5107 2007-09-13 Simon Josefsson <simon@josefsson.org>
5109 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
5110 Reported by Bruno Haible <bruno@clisp.org>.
5112 2007-09-12 Bruno Haible <bruno@clisp.org>
5114 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
5115 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
5118 2007-09-12 Eric Blake <ebb9@byu.net>
5120 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
5121 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
5122 Autoconf definition.
5123 * modules/euidaccess (Depends-on): Add extensions, for
5124 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
5125 * modules/fnmatch (Depends-on): Likewise.
5126 * modules/getaddrinfo (Depends-on): Likewise.
5127 * modules/getdelim (Depends-on): Likewise.
5128 * modules/getline (Depends-on): Likewise.
5129 * modules/getsubopt (Depends-on): Likewise.
5130 * modules/gettext (Depends-on): Likewise.
5131 * modules/group-member (Depends-on): Likewise.
5132 * modules/mbchar (Depends-on): Likewise.
5133 * modules/memmem (Depends-on): Likewise.
5134 * modules/mempcpy (Depends-on): Likewise.
5135 * modules/memrchr (Depends-on): Likewise.
5136 * modules/pagealign_alloc (Depends-on): Likewise.
5137 * modules/readutmp (Depends-on): Likewise.
5138 * modules/stpcpy (Depends-on): Likewise.
5139 * modules/stpncpy (Depends-on): Likewise.
5140 * modules/strchrnul (Depends-on): Likewise.
5141 * modules/strndup (Depends-on): Likewise.
5142 * modules/strsep (Depends-on): Likewise.
5143 * modules/strverscmp (Depends-on): Likewise.
5144 * modules/vasprintf (Depends-on): Likewise.
5145 * modules/wcwidth (Depends-on): Likewise.
5146 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
5147 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
5148 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
5149 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
5150 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5151 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5152 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
5153 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5154 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
5155 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
5156 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5157 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
5158 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
5159 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5160 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
5161 * m4/readutmp.m4 (gl_READUTMP): Likewise.
5162 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5163 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
5164 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5165 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
5166 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5167 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
5168 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
5169 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
5170 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
5171 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5172 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
5173 so that lock.m4 can be used in gettext without extensions module.
5175 2007-09-11 Bruno Haible <bruno@clisp.org>
5177 * m4/isc-posix.m4: Remove file.
5178 Suggested by Eric Blake.
5180 2007-09-11 Eric Blake <ebb9@byu.net>
5182 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
5184 2007-09-10 Bruno Haible <bruno@clisp.org>
5186 * posix-modules: Fix typo in error message.
5187 Reported by Matt <mkraai@beckman.com>.
5189 2007-09-09 Bruno Haible <bruno@clisp.org>
5191 * doc/functions/getdelim.texi: Update list of platforms lacking the
5193 * doc/functions/getline.texi: Likewise.
5195 2007-09-09 Jim Meyering <jim@meyering.net>
5197 * lib/hash.c (hash_initialize): Detect calloc failure.
5198 Reported by Bruno Haible.
5200 2007-09-09 Bruno Haible <bruno@clisp.org>
5202 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
5203 malloc or realloc fails.
5205 2007-09-09 Bruno Haible <bruno@clisp.org>
5207 * modules/getcwd (Depends-on): Add malloc-posix.
5208 * modules/glob (Depends-on): Likewise.
5209 * modules/putenv (Depends-on): Likewise.
5210 * modules/strdup (Depends-on): Likewise.
5211 * modules/getdelim (Depends-on): Add realloc-posix.
5212 * modules/read-file (Depends-on): Likewise.
5214 2007-09-09 Bruno Haible <bruno@clisp.org>
5216 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
5217 (gl_FUNC_MALLOC_POSIX): Require it.
5218 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
5219 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
5220 * modules/realloc (Files): Add m4/malloc.m4.
5221 * modules/calloc (Files): Likewise.
5223 2007-09-09 Bruno Haible <bruno@clisp.org>
5225 * modules/malloc-posix: New file.
5226 * modules/malloc (Depends-on): Add malloc-posix.
5227 * lib/malloc.c: Include errno.h.
5228 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
5229 and a POSIX-compatible malloc into a single function. Set ENOMEM
5230 when returning NULL.
5231 * m4/malloc.m4: New file.
5232 * doc/functions/malloc.texi: Mention the malloc-posix module.
5233 * lib/stdlib_.h (malloc): New declaration.
5234 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5235 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
5236 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
5237 and HAVE_MALLOC_POSIX.
5239 2007-09-09 Bruno Haible <bruno@clisp.org>
5241 * modules/realloc-posix: New file.
5242 * modules/realloc (Depends-on): Add realloc-posix.
5243 * lib/realloc.c: Include errno.h.
5244 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
5245 and a POSIX-compatible realloc into a single function. Set ENOMEM
5246 when returning NULL.
5247 * m4/realloc.m4: New file.
5248 * doc/functions/realloc.texi: Mention the realloc-posix module.
5249 * lib/stdlib_.h (realloc): New declaration.
5250 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5251 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
5252 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
5253 and HAVE_REALLOC_POSIX.
5255 2007-09-09 Bruno Haible <bruno@clisp.org>
5257 * modules/calloc-posix: New file.
5258 * modules/calloc (Depends-on): Add calloc-posix.
5259 * lib/calloc.c: Include errno.h.
5260 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
5261 and a POSIX-compatible calloc into a single function. Set ENOMEM
5262 when returning NULL.
5263 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
5264 * doc/functions/calloc.texi: Mention the calloc-posix module.
5265 * lib/stdlib_.h (calloc): New declaration.
5266 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5267 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
5268 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
5269 and HAVE_CALLOC_POSIX.
5271 2007-09-09 Bruno Haible <bruno@clisp.org>
5273 Allow for modules to show an arbitrary notice.
5274 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
5275 * gnulib-tool: New option --extract-notice.
5276 (func_usage): Document it.
5277 (sed_extract_prog): Update.
5278 (func_get_notice): New function.
5279 (func_modules_notice): New function.
5280 (func_import, func_create_testdir): Invoke it.
5281 Suggested by Jim Meyering.
5283 2007-09-09 Bruno Haible <bruno@clisp.org>
5285 * gnulib-tool: New options --verbose, --quiet.
5286 (func_usage): Document them.
5287 (verbose): New variable.
5288 (func_execute_command): New function.
5289 (func_import): Don't show the module list and the file list if
5291 (func_create_testdir): Likewise. Use func_execute_command.
5292 (func_create_megatestdir): Use func_execute_command.
5294 2007-09-08 Bruno Haible <bruno@clisp.org>
5296 * gnulib-tool (func_import): Prefer rsync over wget when available,
5297 for fetching the PO files.
5299 2007-09-08 Bruno Haible <bruno@clisp.org>
5301 * posix-modules: New file. Portions copied from gnulib-tool.
5302 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
5304 2007-09-08 Jim Meyering <jim@meyering.net>
5306 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
5307 * lib/fpending.h: Rename from __fpending.h.
5308 * lib/fpending.c: Rename from __fpending.c.
5309 Include "fpending.h", not "__fpending.h".
5310 * lib/__fpending.h, lib/__fpending.c: Remove files.
5311 * modules/fpending (Files): Reflect new file names.
5312 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
5314 2007-09-08 Bruno Haible <bruno@clisp.org>
5316 * m4/inttypes-h.m4: Remove stub file.
5318 2007-09-07 Simon Josefsson <simon@josefsson.org>
5320 * doc/headers/stdint.texi: Discuss #include_next issue.
5322 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
5324 * build-aux/bootstrap: Remove obsolete comment about wget --help.
5326 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5328 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
5331 2007-09-03 Jim Meyering <jim@meyering.net>
5333 New module: git-version-gen.
5334 * modules/git-version-gen: New file.
5336 Import changes from coreutils for bootstrap script.
5338 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
5340 bootstrap: uses rsync to download the .po files
5341 * build-aux/bootstrap (po_download_command_format): New global.
5342 (download_po_files): Use rsync.
5343 (update_po_files): Don't remove .po files after download,
5344 so future rsync runs can take advantage of the copies.
5346 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
5348 Solve the unnecessary-.po-file-regeneration problem once and for all.
5349 * build-aux/bootstrap (download_po_files): New function, renamed from
5350 get_translations. Now, downloads, but doesn't update LINGUAS.
5351 (update_po_files): New function.
5353 bootstrap: Ignore more.
5354 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
5355 uniwidth to e.g., lib/.gitignore.
5356 (slurp): Handle the sys_stat_.h -> sys mapping, too.
5358 * build-aux/bootstrap: New setting: vc_ignore.
5359 (insert_sorted_if_absent): Create $file if absent.
5360 Adapt to new, possibly empty, list: $vc_ignore.
5362 bootstrap: generate more ignorable names
5363 * build-aux/bootstrap (slurp): When generating ignorable names,
5364 also map .sin to .sed, .gperf to .c, and .y to .c.
5366 2007-09-03 Jim Meyering <jim@meyering.net>
5368 * build-aux/git-version-gen: New file, from coreutils. For details, see
5369 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
5371 2007-09-02 Bruno Haible <bruno@clisp.org>
5373 Fix mis-recognition of 'mcs' on QNX 6.
5374 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
5375 output contains the string "Mono".
5376 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
5377 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
5379 2007-09-01 Bruno Haible <bruno@clisp.org>
5381 Fix collision between uniwidth/* and linebreak modules.
5382 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
5383 u32_width): Remove declarations.
5384 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
5385 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
5386 streq3, streq2, streq1, streq0): Remove functions.
5387 (STREQ): Remove macro.
5388 (is_cjk_encoding): Remove function.
5389 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
5390 (uc_width, u8_width, u16_width, u32_width): Remove functions.
5391 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
5392 * NEWS: Document the change.
5394 2007-09-01 Bruno Haible <bruno@clisp.org>
5396 * lib/streq.h: Add double-inclusion guard.
5398 2007-09-01 Karl Berry <karl@gnu.org>
5400 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
5402 2007-08-28 Jim Meyering <jim@meyering.net>
5404 Rename mreadlink_with_size to areadlink_with_size.
5405 * NEWS: Document the change.
5406 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
5407 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
5408 * lib/mreadlink.h: Rename this to...
5409 * lib/areadlink.h: ...this.
5410 * modules/mreadlink-with-size: Rename this to...
5411 * modules/areadlink-with-size: ...this.
5412 * lib/canonicalize.c: Reflect the renaming.
5413 * modules/canonicalize: Likewise.
5415 2007-08-26 Bruno Haible <bruno@clisp.org>
5417 * gnulib-tool (func_import): When deciding which files to remove,
5418 consider also dangling symbolic links.
5419 Reported by Eric Blake.
5421 2007-08-26 Bruno Haible <bruno@clisp.org>
5423 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
5425 2007-08-23 Simon Josefsson <simon@josefsson.org>
5427 * lib/readline.c: Don't include getline.h, the prototype is now
5430 2007-08-23 Jim Meyering <jim@meyering.net>
5433 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
5434 around the funlockfile call, since funlockfile never sets errno.
5435 Don't set errno upon failed realloc.
5437 2007-08-22 Eric Blake <ebb9@byu.net>
5440 * lib/getdelim.c (getdelim): Revert regression that required *n to
5441 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
5442 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
5443 getdelim, rather than whether implementation is missing.
5444 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
5445 * lib/stdio_.h (getline): Also declare if replacement is
5447 * doc/functions/getdelim.texi: New file.
5448 * doc/functions/getline.texi: Likewise.
5449 * doc/gnulib.texi (Function Substitutes): Add new files.
5450 Reported by Bruno Haible.
5452 2007-08-22 Ludovic Courtès <ludo@gnu.org>
5454 * users.txt: Add Guile.
5456 2007-08-22 Eric Blake <ebb9@byu.net>
5458 * tests/test-getdelim.c (main): Use remove, not unlink.
5459 * tests/test-getline.c (main): Likewise.
5461 Move getline and getdelim into stdio.h, per POSIX 200x.
5462 * modules/getline (Files): Remove getline.h.
5463 (Depends-on): Add stdio.
5464 (configure.ac): Add module indicator.
5465 * modules/getdelim (Files): Remove getdelim.h.
5466 (Depends-on): Add stdio.
5467 (configure.ac): Add module indicator.
5468 * modules/stdio (Makefile.am): Work with new indicators.
5469 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
5470 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
5471 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5472 * lib/getdelim.h: Delete.
5473 * lib/getline.h: Delete.
5474 * lib/stdio_.h (getdelim, getline): Declare.
5475 * modules/getdelim-tests: New module.
5476 * modules/getline-tests: Likewise.
5477 * tests/test-getdelim.c: New file.
5478 * tests/test-getline.c: Likewise.
5479 * NEWS: Document the change.
5480 * lib/getline.c: Update choice of header.
5481 * lib/csharpcomp.c: Likewise.
5482 * lib/getpass.c: Likewise.
5483 * lib/javacomp.c: Likewise.
5484 * lib/javaversion.c: Likewise.
5485 * lib/yesno.c: Likewise.
5486 * lib/getdelim.c: Likewise.
5487 (getdelim): Set errno on failure, and avoid memory leak.
5489 2007-08-19 Bruno Haible <bruno@clisp.org>
5491 * modules/closein (Depends-on): Add freadahead.
5492 * lib/closein.c: Include freadahead.h.
5493 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
5496 2007-08-19 Bruno Haible <bruno@clisp.org>
5498 * modules/freadahead-tests: New file.
5499 * tests/test-freadahead.sh: New file.
5500 * tests/test-freadahead.c: New file.
5502 * modules/freadahead: New file.
5503 * lib/freadahead.h: New file.
5504 * lib/freadahead.c: New file.
5505 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
5506 fbufmode, fpurge, freadable, fwritable.
5508 2007-08-19 Eric Blake <ebb9@byu.net>
5510 Test yesno in combination with closein.
5511 * lib/yesno.c (yesno): Document use of stdin.
5512 * modules/yesno-tests (Files): New module.
5513 * tests/test-yesno.c (main): New file.
5514 * tests/test-yesno.sh: Likewise.
5516 2007-08-19 Bruno Haible <bruno@clisp.org>
5518 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
5519 * lib/fseeko.c (rpl_fseeko): Likewise.
5520 * lib/fseterr.c (fseterr): Likewise.
5522 2007-08-19 Bruno Haible <bruno@clisp.org>
5524 * tests/test-lseek.c (main): Disable a test for BeOS.
5525 * doc/functions/lseek.texi: Document the BeOS bug.
5527 2007-08-19 Bruno Haible <bruno@clisp.org>
5528 Eric Blake <ebb9@byu.net>
5530 * lib/lseek.c: Include <sys/stat.h>.
5531 (rpl_lseek): Add workaround code also for Unix platforms.
5533 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
5534 * doc/functions/lseek.texi: Document BeOS definiency.
5536 2007-08-18 Bruno Haible <bruno@clisp.org>
5538 * modules/fstrcmp-tests: New file.
5539 * tests/test-fstrcmp.c: New file.
5541 2007-08-18 Bruno Haible <bruno@clisp.org>
5543 * modules/fstrcmp: New file, from GNU gettext with modifications.
5544 * lib/fstrcmp.h: New file, from GNU gettext.
5545 * lib/fstrcmp.c: New file, from GNU gettext.
5546 * MODULES.html.sh (String handling): Add fstrcmp.
5548 2007-08-18 Bruno Haible <bruno@clisp.org>
5550 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
5552 (diag, compareseq): Remove const from the ctxt argument.
5553 (USE_HEURISTIC): Undefine at the end.
5555 2007-08-18 Jim Meyering <jim@meyering.net>
5557 New file: lib/idcache.h
5558 * NEWS: Mention the addition.
5559 * modules/idcache (Files): Add lib/idcache.h
5560 * lib/idcache.c: Include "idcache.h".
5561 Don't include <sys/types.h>.
5562 Add a FIXME comment.
5563 Move file-scoped "static" declarations to the top.
5564 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
5566 2007-08-17 Bruno Haible <bruno@clisp.org>
5567 and Paul Eggert <eggert@cs.ucla.edu>
5569 * MODULES.html.sh: Add diffseq.
5570 * modules/diffseq: New file.
5571 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
5572 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
5574 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
5576 Import changes from coreutils for bootstrap script.
5578 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
5580 * build-aux/bootstrap (slurp): Work even in environments where
5581 "ls" defaults to "ls -A". Put in a FIXME, though, since the
5582 current code does not slurp files whose names start with ".", and
5583 this looks like it might be a troublesome area.
5585 2007-07-11 Jim Meyering <jim@meyering.net>
5587 If there's a GPL vN copyright comment, require that N == 3.
5589 2007-07-08 Jim Meyering <jim@meyering.net>
5591 Run the coreutils-specific code only if tests/Makefile.am.in exists.
5592 * build-aux/bootstrap (mam_template): Move definition out of loop.
5594 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
5596 * build-aux/bootstrap (symlink_to_dir): Rename function from
5597 symlink_to_gnulib. Add a directory parameter. Update all
5599 (cp_mark_as_generated): Also check for -- and link to -- files in
5602 2007-07-08 Jim Meyering <jim@meyering.net>
5604 Adapt to deeper hierarchy in gnulib.
5605 * build-aux/bootstrap (symlink_to_dir): If the destination
5606 directory doesn't exist, create it. This is required at least for
5607 "lib/uniwidth/cjk.h".
5609 2007-05-15 Jim Meyering <jim@meyering.net>
5611 * build-aux/bootstrap: Now that generated Makefile.am files
5612 are no longer under version control, they must be created at
5615 2007-08-14 Ben Pfaff <blp@gnu.org>
5617 * lib/count-one-bits.h: Add comments. From Bruno Haible.
5619 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
5621 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
5622 given the changes below.
5623 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
5624 even on hosts that have padding bits beyond the supported 64.
5626 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
5628 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
5629 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
5630 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
5632 (xstrtol_error): Remove.
5633 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
5634 but with a different signature.
5635 (ATTRIBUTE_NORETURN, __attribute__): New macros.
5636 * lib/xstrtol-error.c: Include exitfail.h.
5637 (xstrtol_fatal): New function, with a different signature from the
5638 old xstrtol_error, so that the caller need not worry about passing
5639 in an exit status, or about storage management of the option argument.
5640 (xstrtol_error): Now a static function. Redo signature to
5641 implement xstrtol_fatal. Output the correct number of hyphens in
5642 front of the option so that the caller need not worry about
5645 (_): Remove; not used now.
5646 * modules/xstrtol: Depend on getopt.
5647 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
5648 of old STRTOL_FATAL_ERROR macro.
5649 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
5651 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
5652 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
5654 2007-08-08 Eric Blake <ebb9@byu.net>
5656 * lib/xstrtol-error.c: Add missing include.
5658 Move xstrtol messages into gnulib domain, when --pobase is used.
5659 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
5660 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
5661 * modules/xstrtol (Files): Distribute new file.
5662 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
5663 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
5664 * tests/test-xstrtol.c: ...into new file.
5665 * tests/test-xstrtoul.c: Also test xstrtoul.
5666 * tests/test-xstrtoimax.c: Also test xstrtoimax.
5667 * tests/test-xstrtoumax.c: Also test xstrtoumax.
5668 * tests/test-xstrtol.sh: Drive the tests.
5669 * tests/test-xstrtoimax.sh: Likewise.
5670 * tests/test-xstrtoumax.sh: Likewise.
5671 * modules/xstrtol-tests: New module.
5672 * modules/xstrtoimax-tests: Likewise.
5673 * modules/xstrtoumax-tests: Likewise.
5675 2007-08-08 Jim Meyering <jim@meyering.net>
5677 New function: mfile_name_concat.
5678 * lib/filenamecat.c (mfile_name_concat): New function, just like
5679 file_name_concat, but return NULL upon failure rather than exiting
5681 * lib/filenamecat.h: Declare it.
5683 2007-08-07 Bruno Haible <bruno@clisp.org>
5685 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
5686 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
5688 Reported by Eric Blake.
5690 2007-08-07 Simon Josefsson <simon@josefsson.org>
5692 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
5693 * modules/crypto/arcfour (License): Likewise.
5694 * modules/crypto/des-tests (License): Likewise.
5695 * modules/crypto/gc-arctwo-tests (License): Likewise.
5696 * modules/crypto/gc-des-tests (License): Likewise.
5697 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
5698 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
5699 * modules/crypto/gc-md2-tests (License): Likewise.
5700 * modules/crypto/gc-md4-tests (License): Likewise.
5701 * modules/crypto/gc-md5-tests (License): Likewise.
5702 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
5703 * modules/crypto/gc-rijndael-tests (License): Likewise.
5704 * modules/crypto/gc-sha1-tests (License): Likewise.
5705 * modules/crypto/gc-tests (License): Likewise.
5706 * modules/crypto/hmac-md5 (License): Likewise.
5707 * modules/crypto/hmac-sha1 (License): Likewise.
5708 * modules/crypto/md2-tests (License): Likewise.
5709 * modules/crypto/md4-tests (License): Likewise.
5710 * modules/crypto/md5 (License): Likewise.
5711 * modules/crypto/rijndael (License): Likewise.
5712 * modules/crypto/sha1 (License): Likewise.
5713 * modules/memxor (License): Likewise.
5715 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
5716 and Bruno Haible <bruno@clisp.org>
5718 * NEWS: Describe interface changes to human, xstrtol.
5719 * lib/human.h: Include <xstrtol.h>.
5720 (human_options): Return enum strtol_error, not int. Remove
5721 bool arg; take int * instead.
5722 * lib/human.c: Don't include "gettext.h".
5723 (_): Remove; no longer used.
5724 Don't include <xstrtol.h>, since human.h does it.
5725 (human_options): Adjust to abovementioned interface changes.
5726 Do not report error to stderr; that's now the caller's
5728 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
5730 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
5731 Str, Argument_type_string. All uses changed. Put " argument"
5732 in diagnostics to make them clearer. Change wording of suffix
5733 message for clarity.
5734 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
5735 Argument_type_string.
5736 (STRTOL_FATAL_WARN): Remove; no longer used.
5737 * modules/human (Depends-on): Remove gettext-h.
5739 2007-08-06 Simon Josefsson <simon@josefsson.org>
5741 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
5743 2007-07-31 Bruno Haible <bruno@clisp.org>
5745 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
5746 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
5747 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
5749 2007-07-31 Bruno Haible <bruno@clisp.org>
5751 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
5752 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
5754 2007-07-30 Bruno Haible <bruno@clisp.org>
5756 * modules/base64 (License): Use the synonymous term "LGPLv2+".
5757 * modules/c-ctype (License): Likewise.
5758 * modules/c-strcase (License): Likewise.
5759 * modules/check-version (License): Likewise.
5760 * modules/iconv (License): Likewise.
5761 * modules/iconv_open (License): Likewise.
5762 * modules/read-file (License): Likewise.
5763 * modules/striconv (License): Likewise.
5764 * modules/strverscmp (License): Likewise.
5765 * modules/vasprintf (License): Likewise.
5766 * modules/crypto/des (License): Likewise.
5767 * modules/crypto/gc (License): Likewise.
5768 * modules/crypto/gc-arcfour (License): Likewise.
5769 * modules/crypto/gc-arctwo (License): Likewise.
5770 * modules/crypto/gc-des (License): Likewise.
5771 * modules/crypto/gc-hmac-md5 (License): Likewise.
5772 * modules/crypto/gc-hmac-sha1 (License): Likewise.
5773 * modules/crypto/gc-md2 (License): Likewise.
5774 * modules/crypto/gc-md4 (License): Likewise.
5775 * modules/crypto/gc-md5 (License): Likewise.
5776 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
5777 * modules/crypto/gc-random (License): Likewise.
5778 * modules/crypto/gc-rijndael (License): Likewise.
5779 * modules/crypto/gc-sha1 (License): Likewise.
5780 * modules/crypto/md2 (License): Likewise.
5781 * modules/crypto/md4 (License): Likewise.
5783 2007-07-30 Jim Meyering <jim@meyering.net>
5785 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
5786 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
5787 it has valid stat data. This bug would cause du not to count the
5788 sizes of inaccessible directories.
5789 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
5790 in <http://bugzilla.redhat.com/250077>.
5792 2007-07-25 Peter O'Gorman <peter@pogma.com>
5793 Bruno Haible <bruno@clisp.org>
5795 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
5796 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
5797 #include_next, gives a diagnostic about it, but reports no error in
5799 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5801 2007-07-24 Ben Pfaff <blp@gnu.org>
5803 Improve name: "count-one-bits" is better than "popcount".
5804 * MODULES.html.sh: Update name.
5805 * lib/popcount.h: Renamed lib/count-one-bits.h.
5806 (popcount): Renamed count_one_bits.
5807 (popcountl): Renamed count_one_bits_l.
5808 (popcountll): Renamed count_one_bits_ll.
5809 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
5810 * modules/popcount: Renamed module/count-one-bits.
5811 * modules/popcount-tests: Renamed module/count-one-bits-tests.
5812 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
5814 2007-07-23 Ben Pfaff <blp@gnu.org>
5816 * lib/popcount.h (popcount32): Reduce size of constants, to allow
5817 better code generation, and add U to large constants to avoid
5818 warnings, in non-GCC case.
5819 Suggested by Bruno Haible.
5821 2007-07-23 Ben Pfaff <blp@gnu.org>
5823 * lib/popcount.h: Use verify_true instead of if...abort.
5824 * modules/popcount: Depend on verify module.
5825 Suggested by Jim Meyering.
5827 2007-07-23 Bruno Haible <bruno@clisp.org>
5829 * gnulib-tool (func_import): Create a .cvsignore file also when the
5830 directory is not yet in CVS but the toplevel directory is. When
5831 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
5832 Reported by Karl Berry.
5834 2007-07-22 Ben Pfaff <blp@gnu.org>
5836 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
5838 Suggested by Eric Blake.
5840 2007-07-22 Ben Pfaff <blp@gnu.org>
5842 New module: popcount.
5843 * MODULES.html.sh: Add popcount.
5844 * modules/popcount: New file.
5845 * modules/popcount-tests: New file.
5846 * tests/test-popcount.c: New file.
5847 * lib/popcount.h: New file.
5848 * m4/popcount.m4: New file.
5850 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
5852 * build-aux/announce-gen: Update to GPLv3.
5854 * build-aux/config.guess: Update from config.
5856 2007-07-21 Bruno Haible <bruno@clisp.org>
5858 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
5859 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
5861 2007-07-20 Jim Meyering <jim@meyering.net>
5863 * check-module: Diagnose a self-dependency.
5865 2007-07-19 Bruno Haible <bruno@clisp.org>
5867 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
5869 Reported by Eric Blake.
5871 2007-07-18 Bruno Haible <bruno@clisp.org>
5873 * gnulib-tool: New options --po-base, --po-domain.
5874 (func_usage): Document them.
5875 (pobase, po_domain): New variables.
5876 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
5877 DEFAULT_TEXT_DOMAIN.
5878 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
5879 (func_import): Consider pobase and po_domain. Create a po/ directory.
5880 (func_create_testdir): Set pobase and po_domain to empty.
5881 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
5882 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
5884 2007-07-18 Bruno Haible <bruno@clisp.org>
5886 * gnulib-tool (func_get_automake_snippet): Synthesize also an
5887 EXTRA_DIST augmentation for files in build-aux/.
5889 2007-07-16 Bruno Haible <bruno@clisp.org>
5891 * modules/lseek (License): Use the synonymous term "LGPLv2+".
5892 * modules/getdelim (License): Likewise.
5894 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5896 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
5897 * modules/d-type (License): Likewise.
5898 * modules/extensions (License): Likewise.
5899 * modules/fnmatch (License): Likewise.
5900 * modules/fseeko (License): Likewise.
5901 * modules/getaddrinfo (License): Likewise.
5902 * modules/getline (License): Likewise.
5903 * modules/getlogin_r (License): Likewise.
5904 * modules/getpass (License): Likewise.
5905 * modules/gettimeofday (License): Likewise.
5906 * modules/glob (License): Likewise.
5907 * modules/inet_ntop (License): Likewise.
5908 * modules/malloc (License): Likewise.
5909 * modules/malloca (License): Likewise.
5910 * modules/memmem (License): Likewise.
5911 * modules/mempcpy (License): Likewise.
5912 * modules/memset (License): Likewise.
5913 * modules/minmax (License): Likewise.
5914 * modules/mktime (License): Likewise.
5915 * modules/netinet_in (License): Likewise.
5916 * modules/pathmax (License): Likewise.
5917 * modules/poll (License): Likewise.
5918 * modules/regex (License): Likewise.
5919 * modules/snprintf (License): Likewise.
5920 * modules/stdbool (License): Likewise.
5921 * modules/stdint (License): Likewise.
5922 * modules/stdio (License): Likewise.
5923 * modules/strcase (License): Likewise.
5924 * modules/strcasestr (License): Likewise.
5925 * modules/strdup (License): Likewise.
5926 * modules/string (License): Likewise.
5927 * modules/strndup (License): Likewise.
5928 * modules/strnlen (License): Likewise.
5929 * modules/strpbrk (License): Likewise.
5930 * modules/strptime (License): Likewise.
5931 * modules/strsep (License): Likewise.
5932 * modules/sys_select (License): Likewise.
5933 * modules/sys_socket (License): Likewise.
5934 * modules/sys_stat (License): Likewise.
5935 * modules/sys_time (License): Likewise.
5936 * modules/time (License): Likewise.
5937 * modules/time_r (License): Likewise.
5938 * modules/timegm (License): Likewise.
5939 * modules/unistd (License): Likewise.
5940 * modules/vsnprintf (License): Likewise.
5941 * modules/wctype (License): Likewise.
5943 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5945 * modules/argz (License): LGPLv2+.
5947 2007-07-15 Karl Berry <karl@gnu.org>
5949 * doc/gnulib.texi: revise node structure per new fdl.texi.
5951 2007-07-14 Bruno Haible <bruno@clisp.org>
5953 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
5955 * lib/uniname/uninames.h: Regenerated.
5957 2007-07-14 Karl Berry <karl@gnu.org>
5959 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
5960 omitting sectioning and index commands.
5962 2007-07-13 Bruno Haible <bruno@clisp.org>
5964 New gnulib-tool option --more-symlinks.
5965 * gnulib-tool (func_usage): Document --more-symlinks.
5966 (do_copyrights): New variable.
5967 Recognize option --more-symlinks.
5968 (func_import): Don't add a copyright notice transform to
5969 sed_transform_lib_file if do_copyrights is empty.
5971 2007-07-13 Bruno Haible <bruno@clisp.org>
5973 * lib/vasnprintf.c (decimal_point_char): Define also if
5974 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
5975 && !NEED_PRINTF_DIRECTIVE_A.
5976 Reported by Clemens Koller <clemens.koller@anagramm.de> via
5977 Gary V. Vaughan <gary@gnu.org>.
5979 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
5981 * lib/inttypes_.h: Undo previous change, since it was fixed
5982 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
5984 2007-07-13 Bruno Haible <bruno@clisp.org>
5986 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
5987 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
5989 2007-07-13 Jim Meyering <jim@meyering.net>
5991 df: Don't fail for Tru64's "file-on-file mount".
5992 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
5993 so we fall through and use statfs instead. Details here:
5994 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
5995 Reported by Albert Chin.
5997 2007-07-13 Bruno Haible <bruno@clisp.org>
5999 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
6000 * modules/configmake (License): Likewise.
6001 * modules/gettext (License): Likewise.
6002 * modules/gettext-h (License): Likewise.
6003 * modules/include_next (License): Likewise.
6004 * modules/link-warning (License): Likewise.
6005 * modules/localcharset (License): Likewise.
6006 * modules/localename (License): Likewise.
6007 * modules/lock (License): Likewise.
6008 * modules/relocatable-lib-lgpl (License): Likewise.
6009 * modules/size_max (License): Likewise.
6010 * modules/vasnprintf (License): Likewise.
6011 * modules/wchar (License): Likewise.
6012 * modules/xsize (License): Likewise.
6014 2007-07-13 Bruno Haible <bruno@clisp.org>
6016 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
6017 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
6019 2007-07-12 Bruno Haible <bruno@clisp.org>
6021 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
6022 in the modules files.
6024 2007-07-11 Karl Berry <karl@gnu.org>
6026 * MODULES.html.sh (func_module): use
6027 sed -e '\|^'"${includefile}"'$|d'
6028 instead of /.../d, to avoid errors on $includefile's containing /.
6030 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
6032 * gnulib-tool (func_import): Avoid duplication of --avoid
6034 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
6035 names to `_' in variable names.
6037 2007-07-10 Eric Blake <ebb9@byu.net>
6039 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
6040 * NEWS: Document this change.
6042 2007-07-08 Bruno Haible <bruno@clisp.org>
6044 Update to Unicode 5.0.
6045 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
6046 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
6047 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
6048 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
6049 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
6050 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
6051 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
6052 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
6053 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
6054 U+10A3F, U+1D242..U+1D244.
6055 (nonspacing_table_ind): Update.
6056 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
6057 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
6059 2007-07-08 Bruno Haible <bruno@clisp.org>
6061 Update to Unicode 5.0.
6062 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
6063 code transform. Extend the name index field of unicode_name_to_code and
6064 unicode_code_to_name from 16 to 24 bits.
6065 * lib/uniname/uniname.c (unicode_character_name,
6066 unicode_name_character): Add the range 0x12xxx to the code transform.
6067 * lib/uniname/uninames.h: Regenerated.
6068 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
6070 2007-07-07 Bruno Haible <bruno@clisp.org>
6072 * modules/wcwidth-tests: New file.
6073 * tests/test-wcwidth.c: New file.
6075 Work around MacOS X wcwidth() bug.
6076 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
6077 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
6078 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
6079 original wcwidth in non-UTF-8 locales.
6080 * modules/wcwidth (Depends-on): Add localcharset, streq,
6082 * doc/functions/wcwidth.texi: Update.
6084 2007-07-07 Bruno Haible <bruno@clisp.org>
6086 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
6087 (wcwidth): New declaration.
6088 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
6090 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
6091 here. Prepare for creating <wchar.h> unconditionally.
6092 * modules/wchar (Depends-on): Add link-warning.
6093 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
6094 REPLACE_WCWIDTH, and GL_LINK_WARNING.
6095 * lib/wcwidth.h: Remove file.
6096 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
6097 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
6098 * modules/wcwidth (Files): Remove lib/wcwidth.h.
6099 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
6100 (Include): Replace wcwidth.h with <wchar.h>.
6101 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
6102 * lib/mbchar.h: Don't include wcwidth.h.
6103 * lib/mbswidth.c: Likewise.
6104 * NEWS: Mention the change.
6106 2007-07-07 Bruno Haible <bruno@clisp.org>
6108 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
6109 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
6110 definition with an external declaration.
6111 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
6112 defined as a function. Remove AC_C_INLINE requirement.
6113 * modules/wcwidth (Files): Add lib/wcwidth.c.
6114 (Makefile.am): Remove redundant statement.
6116 2007-07-07 Bruno Haible <bruno@clisp.org>
6118 * MODULES.html.sh (Unicode string functions): Add the new modules.
6120 * tests/uniwidth/test-u32-strwidth.c: New file.
6121 * modules/uniwidth/u32-strwidth-tests: New file.
6123 * lib/uniwidth/u32-strwidth.c: New file.
6124 * modules/uniwidth/u32-strwidth: New file.
6126 * tests/uniwidth/test-u16-strwidth.c: New file.
6127 * modules/uniwidth/u16-strwidth-tests: New file.
6129 * lib/uniwidth/u16-strwidth.c: New file.
6130 * modules/uniwidth/u16-strwidth: New file.
6132 * tests/uniwidth/test-u8-strwidth.c: New file.
6133 * modules/uniwidth/u8-strwidth-tests: New file.
6135 * lib/uniwidth/u8-strwidth.c: New file.
6136 * modules/uniwidth/u8-strwidth: New file.
6138 * tests/uniwidth/test-u32-width.c: New file.
6139 * modules/uniwidth/u32-width-tests: New file.
6141 * lib/uniwidth/u32-width.c: New file.
6142 * modules/uniwidth/u32-width: New file.
6144 * tests/uniwidth/test-u16-width.c: New file.
6145 * modules/uniwidth/u16-width-tests: New file.
6147 * lib/uniwidth/u16-width.c: New file.
6148 * modules/uniwidth/u16-width: New file.
6150 * tests/uniwidth/test-u8-width.c: New file.
6151 * modules/uniwidth/u8-width-tests: New file.
6153 * lib/uniwidth/u8-width.c: New file.
6154 * modules/uniwidth/u8-width: New file.
6156 * tests/uniwidth/test-uc_width.c: New file.
6157 * modules/uniwidth/width-tests: New file.
6159 * lib/uniwidth/width.c: New file, from GNU libiconv.
6160 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
6161 * modules/uniwidth/width: New file.
6163 * lib/uniwidth.h: New file, from GNU libiconv.
6164 * modules/uniwidth/base: New file.
6166 2007-07-07 Bruno Haible <bruno@clisp.org>
6168 * lib/uniname.h: New file, from GNU gettext.
6169 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
6170 * lib/uniname/uninames.h: New file, from GNU gettext.
6171 * lib/uniname/uniname.c: New file, from GNU gettext.
6172 * tests/uniname/test-uninames.sh: New file.
6173 * tests/uniname/test-uninames.c: New file, from GNU gettext.
6174 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
6175 * modules/uniname/base: New file.
6176 * modules/uniname/uniname: New file.
6177 * modules/uniname/uniname-tests: New file.
6178 * MODULES.html.sh (Unicode string functions): Add the new modules.
6180 2007-07-06 Bruno Haible <bruno@clisp.org>
6182 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
6184 2007-07-06 Bruno Haible <bruno@clisp.org>
6186 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
6187 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
6188 includes <cygwin/sys_time.h> which includes <sys/select.h> which
6189 include <sys/time.h>.
6190 Reported by Eric Blake.
6192 2007-07-06 Eric Blake <ebb9@byu.net>
6194 Fix testing canonicalize on cygwin.
6195 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
6196 Revert patch from 2007-06-19.
6197 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
6198 canonicalize module is also in use.
6199 * tests/test-canonicalize.c: New file.
6200 * tests/test-canonicalize.sh: Likewise.
6201 * modules/canonicalize-tests: Likewise.
6203 2007-07-06 Jim Meyering <jim@meyering.net>
6205 * lib/getugroups.c (getugroups): Detect getgrent failure.
6206 Adjust comment to reflect reality: this function may return -1.
6208 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
6210 * build-aux/bootstrap (TP_URL,get_translations): Update to use
6213 (gnulib_mk): New variable.
6215 2007-07-05 Jim Meyering <jim@meyering.net>
6217 Don't let endgrent clobber errno, no matter how improbable.
6218 * lib/getugroups.c (getugroups): Save and restore errno around
6221 Close the group DB even when failing with 2^31 or more members.
6222 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
6224 2007-07-04 Jim Meyering <jim@meyering.net>
6226 * lib/getugroups.h: New file.
6227 * lib/getugroups.c: Include "getugroups.h".
6228 Remove uses of "register" keyword.
6229 Move local variable, "cp", down into scope where used.
6230 Give "username" parameter the "const" attribute.
6231 * modules/getugroups (Files): Add lib/getugroups.h
6233 2007-07-04 Karl Berry <karl@gnu.org>
6235 * MODULES.html.sh (func_all_modules): Complete rename of
6236 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
6238 2007-07-02 Bruno Haible <bruno@clisp.org>
6240 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
6241 mode, when inttypes.h comes from gnulib.
6242 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6244 2007-07-02 Simon Josefsson <simon@josefsson.org>
6246 * NEWS: Mention lgpl module name change.
6248 * modules/lgpl-2.1: Renamed from lgpl.
6250 * NEWS: Mention gpl module name change.
6252 * modules/gpl-3.0: New file, based on gpl-2.0.
6254 * modules/gpl-2.0: Renamed from gpl.
6256 * modules/gpl: Fix filename, doc/gpl.texi is now found at
6259 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
6261 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
6262 #define __STDC_LIMIT_MACROS temporarily while including
6263 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
6264 Problem reported by Joel E. Denny in
6265 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
6267 2007-07-01 Bruno Haible <bruno@clisp.org>
6269 * lib/unistdio.h: New file.
6270 * lib/unistdio/u-asnprintf.h: New file.
6271 * lib/unistdio/u-asprintf.h: New file.
6272 * lib/unistdio/u-printf-args.c: New file.
6273 * lib/unistdio/u-printf-args.h: New file.
6274 * lib/unistdio/u-printf-parse.h: New file.
6275 * lib/unistdio/u-snprintf.h: New file.
6276 * lib/unistdio/u-sprintf.h: New file.
6277 * lib/unistdio/u-vasprintf.h: New file.
6278 * lib/unistdio/u-vsnprintf.h: New file.
6279 * lib/unistdio/u-vsprintf.h: New file.
6280 * lib/unistdio/ulc-asnprintf.c: New file.
6281 * lib/unistdio/ulc-asprintf.c: New file.
6282 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
6283 * lib/unistdio/ulc-printf-parse.c: New file.
6284 * lib/unistdio/ulc-snprintf.c: New file.
6285 * lib/unistdio/ulc-sprintf.c: New file.
6286 * lib/unistdio/ulc-vasnprintf.c: New file.
6287 * lib/unistdio/ulc-vasprintf.c: New file.
6288 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
6289 * lib/unistdio/ulc-vsnprintf.c: New file.
6290 * lib/unistdio/ulc-vsprintf.c: New file.
6291 * lib/unistdio/u8-asnprintf.c: New file.
6292 * lib/unistdio/u8-asprintf.c: New file.
6293 * lib/unistdio/u8-printf-parse.c: New file.
6294 * lib/unistdio/u8-snprintf.c: New file.
6295 * lib/unistdio/u8-sprintf.c: New file.
6296 * lib/unistdio/u8-vasnprintf.c: New file.
6297 * lib/unistdio/u8-vasprintf.c: New file.
6298 * lib/unistdio/u8-vsnprintf.c: New file.
6299 * lib/unistdio/u8-vsprintf.c: New file.
6300 * lib/unistdio/u8-u8-asnprintf.c: New file.
6301 * lib/unistdio/u8-u8-asprintf.c: New file.
6302 * lib/unistdio/u8-u8-snprintf.c: New file.
6303 * lib/unistdio/u8-u8-sprintf.c: New file.
6304 * lib/unistdio/u8-u8-vasnprintf.c: New file.
6305 * lib/unistdio/u8-u8-vasprintf.c: New file.
6306 * lib/unistdio/u8-u8-vsnprintf.c: New file.
6307 * lib/unistdio/u8-u8-vsprintf.c: New file.
6308 * lib/unistdio/u16-asnprintf.c: New file.
6309 * lib/unistdio/u16-asprintf.c: New file.
6310 * lib/unistdio/u16-printf-parse.c: New file.
6311 * lib/unistdio/u16-snprintf.c: New file.
6312 * lib/unistdio/u16-sprintf.c: New file.
6313 * lib/unistdio/u16-vasnprintf.c: New file.
6314 * lib/unistdio/u16-vasprintf.c: New file.
6315 * lib/unistdio/u16-vsnprintf.c: New file.
6316 * lib/unistdio/u16-vsprintf.c: New file.
6317 * lib/unistdio/u16-u16-asnprintf.c: New file.
6318 * lib/unistdio/u16-u16-asprintf.c: New file.
6319 * lib/unistdio/u16-u16-snprintf.c: New file.
6320 * lib/unistdio/u16-u16-sprintf.c: New file.
6321 * lib/unistdio/u16-u16-vasnprintf.c: New file.
6322 * lib/unistdio/u16-u16-vasprintf.c: New file.
6323 * lib/unistdio/u16-u16-vsnprintf.c: New file.
6324 * lib/unistdio/u16-u16-vsprintf.c: New file.
6325 * lib/unistdio/u32-asnprintf.c: New file.
6326 * lib/unistdio/u32-asprintf.c: New file.
6327 * lib/unistdio/u32-printf-parse.c: New file.
6328 * lib/unistdio/u32-snprintf.c: New file.
6329 * lib/unistdio/u32-sprintf.c: New file.
6330 * lib/unistdio/u32-vasnprintf.c: New file.
6331 * lib/unistdio/u32-vasprintf.c: New file.
6332 * lib/unistdio/u32-vsnprintf.c: New file.
6333 * lib/unistdio/u32-vsprintf.c: New file.
6334 * lib/unistdio/u32-u32-asnprintf.c: New file.
6335 * lib/unistdio/u32-u32-asprintf.c: New file.
6336 * lib/unistdio/u32-u32-snprintf.c: New file.
6337 * lib/unistdio/u32-u32-sprintf.c: New file.
6338 * lib/unistdio/u32-u32-vasnprintf.c: New file.
6339 * lib/unistdio/u32-u32-vasprintf.c: New file.
6340 * lib/unistdio/u32-u32-vsnprintf.c: New file.
6341 * lib/unistdio/u32-u32-vsprintf.c: New file.
6342 * tests/unistdio/test-ulc-asnprintf1.c: New file.
6343 * tests/unistdio/test-ulc-asnprintf1.h: New file.
6344 * tests/unistdio/test-ulc-printf1.h: New file.
6345 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
6346 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
6347 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
6348 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
6349 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
6350 * tests/unistdio/test-ulc-vasprintf1.c: New file.
6351 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
6352 * tests/unistdio/test-ulc-vsprintf1.c: New file.
6353 * tests/unistdio/test-u8-asnprintf1.c: New file.
6354 * tests/unistdio/test-u8-asnprintf1.h: New file.
6355 * tests/unistdio/test-u8-printf1.h: New file.
6356 * tests/unistdio/test-u8-vasnprintf1.c: New file.
6357 * tests/unistdio/test-u8-vasnprintf2.c: New file.
6358 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
6359 * tests/unistdio/test-u8-vasnprintf3.c: New file.
6360 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
6361 * tests/unistdio/test-u8-vasprintf1.c: New file.
6362 * tests/unistdio/test-u8-vsnprintf1.c: New file.
6363 * tests/unistdio/test-u8-vsprintf1.c: New file.
6364 * tests/unistdio/test-u16-asnprintf1.c: New file.
6365 * tests/unistdio/test-u16-asnprintf1.h: New file.
6366 * tests/unistdio/test-u16-printf1.h: New file.
6367 * tests/unistdio/test-u16-vasnprintf1.c: New file.
6368 * tests/unistdio/test-u16-vasnprintf2.c: New file.
6369 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
6370 * tests/unistdio/test-u16-vasnprintf3.c: New file.
6371 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
6372 * tests/unistdio/test-u16-vasprintf1.c: New file.
6373 * tests/unistdio/test-u16-vsnprintf1.c: New file.
6374 * tests/unistdio/test-u16-vsprintf1.c: New file.
6375 * tests/unistdio/test-u32-asnprintf1.c: New file.
6376 * tests/unistdio/test-u32-asnprintf1.h: New file.
6377 * tests/unistdio/test-u32-printf1.h: New file.
6378 * tests/unistdio/test-u32-vasnprintf1.c: New file.
6379 * tests/unistdio/test-u32-vasnprintf2.c: New file.
6380 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
6381 * tests/unistdio/test-u32-vasnprintf3.c: New file.
6382 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
6383 * tests/unistdio/test-u32-vasprintf1.c: New file.
6384 * tests/unistdio/test-u32-vsnprintf1.c: New file.
6385 * tests/unistdio/test-u32-vsprintf1.c: New file.
6386 * modules/unistdio/base: New file.
6387 * modules/unistdio/u-printf-args: New file.
6388 * modules/unistdio/ulc-asnprintf: New file.
6389 * modules/unistdio/ulc-asprintf: New file.
6390 * modules/unistdio/ulc-fprintf: New file.
6391 * modules/unistdio/ulc-printf-parse: New file.
6392 * modules/unistdio/ulc-snprintf: New file.
6393 * modules/unistdio/ulc-sprintf: New file.
6394 * modules/unistdio/ulc-vasnprintf: New file.
6395 * modules/unistdio/ulc-vasprintf: New file.
6396 * modules/unistdio/ulc-vfprintf: New file.
6397 * modules/unistdio/ulc-vsnprintf: New file.
6398 * modules/unistdio/ulc-vsprintf: New file.
6399 * modules/unistdio/u8-asnprintf: New file.
6400 * modules/unistdio/u8-asprintf: New file.
6401 * modules/unistdio/u8-printf-parse: New file.
6402 * modules/unistdio/u8-snprintf: New file.
6403 * modules/unistdio/u8-sprintf: New file.
6404 * modules/unistdio/u8-vasnprintf: New file.
6405 * modules/unistdio/u8-vasprintf: New file.
6406 * modules/unistdio/u8-vsnprintf: New file.
6407 * modules/unistdio/u8-vsprintf: New file.
6408 * modules/unistdio/u8-u8-asnprintf: New file.
6409 * modules/unistdio/u8-u8-asprintf: New file.
6410 * modules/unistdio/u8-u8-snprintf: New file.
6411 * modules/unistdio/u8-u8-sprintf: New file.
6412 * modules/unistdio/u8-u8-vasnprintf: New file.
6413 * modules/unistdio/u8-u8-vasprintf: New file.
6414 * modules/unistdio/u8-u8-vsnprintf: New file.
6415 * modules/unistdio/u8-u8-vsprintf: New file.
6416 * modules/unistdio/u16-asnprintf: New file.
6417 * modules/unistdio/u16-asprintf: New file.
6418 * modules/unistdio/u16-printf-parse: New file.
6419 * modules/unistdio/u16-snprintf: New file.
6420 * modules/unistdio/u16-sprintf: New file.
6421 * modules/unistdio/u16-vasnprintf: New file.
6422 * modules/unistdio/u16-vasprintf: New file.
6423 * modules/unistdio/u16-vsnprintf: New file.
6424 * modules/unistdio/u16-vsprintf: New file.
6425 * modules/unistdio/u16-u16-asnprintf: New file.
6426 * modules/unistdio/u16-u16-asprintf: New file.
6427 * modules/unistdio/u16-u16-snprintf: New file.
6428 * modules/unistdio/u16-u16-sprintf: New file.
6429 * modules/unistdio/u16-u16-vasnprintf: New file.
6430 * modules/unistdio/u16-u16-vasprintf: New file.
6431 * modules/unistdio/u16-u16-vsnprintf: New file.
6432 * modules/unistdio/u16-u16-vsprintf: New file.
6433 * modules/unistdio/u32-asnprintf: New file.
6434 * modules/unistdio/u32-asprintf: New file.
6435 * modules/unistdio/u32-printf-parse: New file.
6436 * modules/unistdio/u32-snprintf: New file.
6437 * modules/unistdio/u32-sprintf: New file.
6438 * modules/unistdio/u32-vasnprintf: New file.
6439 * modules/unistdio/u32-vasprintf: New file.
6440 * modules/unistdio/u32-vsnprintf: New file.
6441 * modules/unistdio/u32-vsprintf: New file.
6442 * modules/unistdio/u32-u32-asnprintf: New file.
6443 * modules/unistdio/u32-u32-asprintf: New file.
6444 * modules/unistdio/u32-u32-snprintf: New file.
6445 * modules/unistdio/u32-u32-sprintf: New file.
6446 * modules/unistdio/u32-u32-vasnprintf: New file.
6447 * modules/unistdio/u32-u32-vasprintf: New file.
6448 * modules/unistdio/u32-u32-vsnprintf: New file.
6449 * modules/unistdio/u32-u32-vsprintf: New file.
6450 * modules/unistdio/ulc-asnprintf-tests: New file.
6451 * modules/unistdio/ulc-vasnprintf-tests: New file.
6452 * modules/unistdio/ulc-vasprintf-tests: New file.
6453 * modules/unistdio/ulc-vsnprintf-tests: New file.
6454 * modules/unistdio/ulc-vsprintf-tests: New file.
6455 * modules/unistdio/u8-asnprintf-tests: New file.
6456 * modules/unistdio/u8-vasnprintf-tests: New file.
6457 * modules/unistdio/u8-vasprintf-tests: New file.
6458 * modules/unistdio/u8-vsnprintf-tests: New file.
6459 * modules/unistdio/u8-vsprintf-tests: New file.
6460 * modules/unistdio/u16-asnprintf-tests: New file.
6461 * modules/unistdio/u16-vasnprintf-tests: New file.
6462 * modules/unistdio/u16-vasprintf-tests: New file.
6463 * modules/unistdio/u16-vsnprintf-tests: New file.
6464 * modules/unistdio/u16-vsprintf-tests: New file.
6465 * modules/unistdio/u32-asnprintf-tests: New file.
6466 * modules/unistdio/u32-vasnprintf-tests: New file.
6467 * modules/unistdio/u32-vasprintf-tests: New file.
6468 * modules/unistdio/u32-vsnprintf-tests: New file.
6469 * modules/unistdio/u32-vsprintf-tests: New file.
6470 * MODULES.html.sh (Unicode string functions): Add the new modules.
6472 2007-07-01 Bruno Haible <bruno@clisp.org>
6474 * lib/sprintf.c (sprintf): Limit the available length estimation,
6475 to avoid address wraparound.
6476 * lib/vsprintf.c (vsprintf): Likewise.
6477 * modules/sprintf-posix (Dependencies): Add stdint.
6478 * modules/vsprintf-posix (Dependencies): Likewise.
6480 2007-07-01 Bruno Haible <bruno@clisp.org>
6482 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
6483 Windows PATH as well. Conservative double-quoting. Comments.
6485 2007-07-01 Bruno Haible <bruno@clisp.org>
6486 Eric Blake <ebb9@byu.net>
6487 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6489 * gnulib-tool (self_abspathname): Fix algorithm to cope with
6490 empty components in $PATH, denoting '.'.
6492 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6494 * gnulib-tool: Fix indentation.
6495 (func_create_megatestdir): Likewise.
6496 Report by Bruno Haible.
6498 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6501 * build-aux/gnupload: Fix shell portability issues with for loops.
6502 Report by Karl Berry.
6504 2007-06-29 Simon Josefsson <simon@josefsson.org>
6506 * build-aux/maint.mk (POURL): Use translationproject.org.
6508 2007-06-27 Simon Josefsson <simon@josefsson.org>
6509 Bruno Haible <bruno@clisp.org>
6511 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
6512 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
6513 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
6514 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
6515 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
6517 2007-06-27 Bruno Haible <bruno@clisp.org>
6519 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
6520 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
6522 2007-06-26 Karl Berry <karl@gnu.org>
6524 * MODULES.html.sh: remove xreadlink-with-size.
6526 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
6528 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
6529 method that I hope also handles the double-include problem noted
6531 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
6533 2007-06-23 Bruno Haible <bruno@clisp.org>
6535 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6536 Don't let the 'mostlyclean' target fail if the last subdirectory could
6538 Reported by Karl Berry.
6540 2007-06-23 Bruno Haible <bruno@clisp.org>
6542 * gnulib-tool (echo): Add a speedier workaround for ksh.
6543 * tests/test-echo.sh: Likewise.
6545 2007-06-23 Bruno Haible <bruno@clisp.org>
6547 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
6548 * tests/test-echo.sh: Likewise.
6550 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6552 * gnulib-tool (IFS): Initialize early, so we don't set it to
6554 (self_abspathname): Rewrite algorithm to set it, reindent.
6555 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
6556 (func_create_megatestdir): Merge some sed scripts.
6558 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
6560 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
6561 exposed by Sun Studio 11 cc on Solaris 8.
6563 2007-06-22 Bruno Haible <bruno@clisp.org>
6565 * gnulib-tool (echo): Ensure the echo primitive does not interpret
6567 * tests/test-echo.sh: New file.
6569 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6571 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
6572 simplify `sed_replace_build_aux' scripts, they are portable but
6573 echoing them with `echo' is not.
6574 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
6576 2007-06-21 Karl Berry <karl@gnu.org>
6578 * config/srclist.txt: guess we can't handle the licenses via
6579 srclist at the moment.
6581 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
6583 * MODULES.html.sh: Add include_next.
6584 * modules/include_next: New file.
6586 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
6588 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
6590 (gl_CHECK_NEXT_HEADERS): New macro.
6591 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
6592 the obsolescent gl_ABSOLUTE_HEADER.
6593 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6594 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6595 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6596 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6597 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6598 * m4/math_h.m4 (gl_MATH_H): Likewise.
6599 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6600 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6601 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6602 * m4/stdint.m4 (gl_STDINT_H): Likewise.
6603 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6604 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6605 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6606 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6607 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6608 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6609 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
6610 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
6611 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6612 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6613 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6614 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6615 * m4/inttypes.m4 (gl_INTTYPES_H): Define
6616 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
6617 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
6618 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
6619 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
6620 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
6621 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
6622 * lib/float_.h: Likewise.
6623 * lib/inttypes_.h: Likewise.
6624 * lib/math_.h: Likewise.
6625 * lib/search_.h: Likewise.
6626 * lib/signal_.h: Likewise.
6627 * lib/stdint_.h: Likewise.
6628 * lib/stdio_.h: Likewise.
6629 * lib/stdlib_.h: Likewise.
6630 * lib/string_.h: Likewise.
6631 * lib/sys_stat_.h: Likewise.
6632 * lib/sys_time_.h: Likewise.
6633 * lib/time_.h: Likewise.
6634 * lib/unistd_.h: Likewise.
6635 * lib/wchar_.h: Likewise.
6636 * lib/wctype_.h: Likewise.
6637 * lib/dirent_.h: Likewise.
6638 * lib/iconv_.h: Likewise.
6639 * lib/locale_.h: Likewise.
6640 * lib/netinet_in_.h: Likewise.
6641 * lib/sys_select_.h: Likewise.
6642 * lib/sys_socket_.h: Likewise.
6643 * lib/sysexits_.h: Likewise.
6644 * modules/fcntl (Depends-on): Depend on include_next, not
6646 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
6647 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
6648 * modules/fchdir: Likewise.
6649 * modules/float: Likewise.
6650 * modules/iconv_open: Likewise.
6651 * modules/inttypes: Likewise.
6652 * modules/locale: Likewise.
6653 * modules/math: Likewise.
6654 * modules/netinet_in: Likewise.
6655 * modules/search: Likewise.
6656 * modules/signal: Likewise.
6657 * modules/stdint: Likewise.
6658 * modules/stdio: Likewise.
6659 * modules/stdlib: Likewise.
6660 * modules/string: Likewise.
6661 * modules/sys_select: Likewise.
6662 * modules/sys_socket: Likewise.
6663 * modules/sys_stat: Likewise.
6664 * modules/sys_time: Likewise.
6665 * modules/sysexits: Likewise.
6666 * modules/time: Likewise.
6667 * modules/unistd: Likewise.
6668 * modules/wchar: Likewise.
6669 * modules/wctype: Likewise.
6670 * modules/sys_stat: Change maintainer to "all".
6671 * modules/unistd: Likewise.
6673 2007-06-20 Karl Berry <karl@gnu.org>
6675 * config/srclist.txt: track www changes in license files.
6677 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
6679 * build-aux/bootstrap: Remove stray dot.
6680 Make sure build_aux settings are honored when linking
6683 2007-06-19 Eric Blake <ebb9@byu.net>
6685 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
6686 Allow compilation on cygwin.
6688 2007-06-19 Jim Meyering <jim@meyering.net>
6690 xreadlink-with-size: Remove module. No longer used.
6691 Ex-callers now use xreadlink or mreadlink-with-size.
6692 * modules/xreadlink-with-size: Remove module.
6693 * lib/xreadlink-with-size.c: Remove file.
6694 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
6695 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
6696 just before the function definition *is* accurate.
6698 Eliminate one way canonicalize_filename_mode could exit.
6699 * lib/canonicalize.c (canonicalize_filename_mode):
6700 Use mreadlink_with_size, not xreadlink_with_size.
6702 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
6704 Detect porting problems to FreeBSD/arm, which has time_t wider than
6705 long int. Original problem reported for GNU diff by Xin Li in
6706 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
6707 * modules/getdate (Depends-on): Add intprops, verify.
6708 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
6709 is an integer type no wider than long int.
6711 2007-06-18 Jim Meyering <jim@meyering.net>
6713 New module: mreadlink-with-size.
6714 * MODULES.html.sh: Add mreadlink-with-size.
6715 * modules/mreadlink-with-size: New module
6716 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
6717 not xreadlink-with-size.
6718 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
6720 2007-06-16 Bruno Haible <bruno@clisp.org>
6722 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
6723 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
6724 Reported by Gary V. Vaughan <gary@gnu.org>.
6726 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
6728 Revamp lchown so that it lives in unistd.h where it belongs.
6729 * lib/lchown.h: Remove.
6730 * lib/dirchownmod.c: Don't include lib/lchown.h.
6731 * lib/fchownat.c: Likewise.
6732 * lib/openat.c: Likewise.
6733 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
6734 does not follow symlinks.
6735 (EOPNOTSUPP): Define if not defined.
6736 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
6739 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
6740 Do not check for lchown decl.
6742 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
6744 * modules/chown: Make it clear it follows symlinks.
6745 * modules/lchown: Make it clear it doesn't follow symlinks.
6746 (Files): Remove lib/lchown.h
6747 (Depends-on): Add unistd.
6748 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
6749 (Include): Include <unistd.h>, not "lchown.h".
6750 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
6753 2007-06-15 Jim Meyering <jim@meyering.net>
6755 Change license (GPL to LGPL) of fsusage and dependents.
6756 * modules/fsusage (License): Change to LGPL.
6757 * modules/full-read (License): Likewise.
6758 * modules/full-write (License): Likewise.
6759 * modules/safe-read (License): Likewise.
6760 * modules/safe-write (License): Likewise.
6762 2007-06-14 Ben Pfaff <blp@gnu.org>
6764 Missing part of allocsa -> malloca transition.
6765 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
6768 2007-06-12 Bruno Haible <bruno@clisp.org>
6770 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
6771 to ia64, x86_64, i386.
6772 Reported by Eric Blake.
6774 2007-06-12 Bruno Haible <bruno@clisp.org>
6776 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
6777 cross-compiling to x86_64.
6779 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
6781 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
6782 glitch reported by Ralf Wildenhues in
6783 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
6785 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
6788 2007-06-11 Bruno Haible <bruno@clisp.org>
6790 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
6792 Reported by Eric Blake.
6794 2007-06-10 Bruno Haible <bruno@clisp.org>
6796 Prepare vasnprintf code for use with Unicode strings.
6797 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
6798 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
6800 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
6801 a_u32_string variants.
6802 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
6803 * lib/printf-args.c: Don't include config.h and the specification
6804 header if PRINTF_FETCHARGS is already defined.
6805 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
6806 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
6807 TYPE_U16_STRING, TYPE_U32_STRING.
6808 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
6809 u16_directive, u16_directives, u32_directive, u32_directives): New
6811 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
6813 * lib/printf-parse.c: Don't include config.h and the specification
6814 header if PRINTF_PARSE is already defined. Eliminate the set of
6815 parameters for WIDE_CHAR_VERSION; the user of this file must provide
6816 them now. Include c-ctype.h.
6817 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
6818 directive and CHAR_T_ONLY_ASCII.
6819 * lib/vasnprintf.c: Don't include config.h and the specification header
6820 if VASNPRINTF is already defined.
6821 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
6822 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
6823 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
6824 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
6825 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
6826 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
6828 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
6829 pad_ourselves also in this case, with the 'c' and 's' directives, and
6830 with a different notion of "width".
6831 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
6833 2007-06-10 Bruno Haible <bruno@clisp.org>
6835 * modules/unistr/u32-mbsnlen: New file.
6836 * lib/unistr/u32-mbsnlen.c: New file.
6838 * modules/unistr/u16-mbsnlen: New file.
6839 * lib/unistr/u16-mbsnlen.c: New file.
6841 * modules/unistr/u8-mbsnlen: New file.
6842 * lib/unistr/u8-mbsnlen.c: New file.
6844 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
6847 2007-06-10 Bruno Haible <bruno@clisp.org>
6849 * lib/string_.h (mbsnlen): New declaration.
6850 * lib/mbsnlen.c: New file.
6851 * m4/mbsnlen.m4: New file.
6852 * modules/mbsnlen: New file.
6853 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
6854 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
6855 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
6857 2007-06-10 Bruno Haible <bruno@clisp.org>
6859 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
6861 2007-06-10 Bruno Haible <bruno@clisp.org>
6863 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
6864 * lib/mbuiter.h: Likewise.
6866 2007-06-10 Bruno Haible <bruno@clisp.org>
6868 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
6871 2007-06-10 Karl Berry <karl@gnu.org>
6873 * config/srclist.txt: remove gettext entries, Bruno prefers
6874 to update individually.
6876 2007-06-10 Bruno Haible <bruno@clisp.org>
6878 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
6879 'maxlen'. Ensure only length + width bytes are allocated, not
6882 2007-06-09 Bruno Haible <bruno@clisp.org>
6884 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
6885 (CHAR_T): Remove macro.
6886 (VASNPRINTF): Update.
6888 2007-06-09 Bruno Haible <bruno@clisp.org>
6890 * MODULES.html.sh (Unicode string functions): Add the new modules.
6892 * modules/uniconv/u32-conv-to-enc: New file.
6893 * lib/uniconv/u32-conv-to-enc.c: New file.
6894 * modules/uniconv/u32-conv-to-enc-tests: New file.
6895 * tests/uniconv/test-u32-conv-to-enc.c: New file.
6897 * modules/uniconv/u16-conv-to-enc: New file.
6898 * lib/uniconv/u16-conv-to-enc.c: New file.
6899 * lib/uniconv/u-conv-to-enc.h: New file.
6900 * modules/uniconv/u16-conv-to-enc-tests: New file.
6901 * tests/uniconv/test-u16-conv-to-enc.c: New file.
6903 * modules/uniconv/u8-conv-to-enc: New file.
6904 * lib/uniconv/u8-conv-to-enc.c: New file.
6905 * modules/uniconv/u8-conv-to-enc-tests: New file.
6906 * tests/uniconv/test-u8-conv-to-enc.c: New file.
6908 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
6909 u32_conv_to_encoding): New declarations.
6911 2007-06-09 Bruno Haible <bruno@clisp.org>
6913 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
6915 2007-06-09 Bruno Haible <bruno@clisp.org>
6917 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
6918 * modules/malloca: Renamed from modules/allocsa, updated.
6919 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
6920 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
6921 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
6922 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
6923 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
6924 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
6925 * modules/xmalloca: Renamed from modules/xallocsa, updated.
6926 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
6927 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
6928 * modules/c-strcasestr (Depends-on): Update.
6929 * lib/c-strcasestr.c: Update.
6930 * modules/c-strstr (Depends-on): Update.
6931 * lib/c-strstr.c: Update.
6932 * modules/canonicalize-lgpl (Depends-on): Update.
6933 * lib/canonicalize-lgpl.c: Update.
6934 * modules/clean-temp (Depends-on): Update.
6935 * lib/clean-temp.c: Update.
6936 * modules/csharpcomp (Depends-on): Update.
6937 * lib/csharpcomp.c: Update.
6938 * modules/csharpexec (Depends-on): Update.
6939 * lib/csharpexec.c: Update.
6940 * modules/javacomp (Depends-on): Update.
6941 * lib/javacomp.c: Update.
6942 * modules/javaexec (Depends-on): Update.
6943 * lib/javaexec.c: Update.
6944 * modules/mbscasestr (Depends-on): Update.
6945 * lib/mbscasestr.c: Update.
6946 * modules/mbsstr (Depends-on): Update.
6947 * lib/mbsstr.c: Update.
6948 * modules/setenv (Depends-on): Update.
6949 * lib/setenv.c: Update.
6950 * modules/strcasestr (Depends-on): Update.
6951 * lib/strcasestr.c: Update.
6952 * modules/striconveha (Depends-on): Update.
6953 * lib/striconveha.c: Update.
6954 * modules/relocatable-prog-wrapper (Files): Update.
6955 * lib/relocwrapper.c: Update.
6956 * build-aux/install-reloc: Update.
6957 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
6959 2007-06-08 Bruno Haible <bruno@clisp.org>
6962 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
6963 * lib/fpurge.c (fpurge): Likewise.
6964 * lib/freading.c (freading): Likewise.
6965 * lib/fseeko.c (rpl_fseeko): Likewise.
6966 * lib/fseterr.c (fseterr): Likewise.
6967 * lib/fwriting.c (fwriting): Likewise.
6968 * tests/test-fflush.c (main): Avoid a failure on uClibc.
6970 2007-06-08 Bruno Haible <bruno@clisp.org>
6972 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
6973 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
6974 * modules/gettext (Files): Add m4/intlmacosx.m4.
6976 2007-06-07 Bruno Haible <bruno@clisp.org>
6978 * modules/localename-tests: New file.
6979 * tests/test-localename.c: New file.
6981 New module 'localename'.
6982 * lib/localename.h: New file.
6983 * lib/localename.c: New file, from GNU gettext.
6984 * m4/localename.m4: New file.
6985 * modules/localename: New file.
6987 2007-06-07 Bruno Haible <bruno@clisp.org>
6989 Work around the lack of <wchar.h> on some builds of uClibc.
6990 * doc/headers/wchar.texi: Update.
6991 * lib/wchar_.h: Include <wchar.h> only if it exists.
6992 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
6993 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
6994 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
6996 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
6997 * modules/mbfile (Depends-on): Add wchar.
6998 * modules/mbiter (Depends-on): Likewise.
6999 * modules/mbuiter (Depends-on): Likewise.
7000 Reported by Simon Josefsson.
7002 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
7004 Work around problem reported by Steven M. Schweda in
7005 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
7006 Tru64 5.1B with the Compaq compiler environment installed declares
7007 an 'isblank' function but does not define it in the C library.
7008 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
7009 * lib/regex_internal.h (isblank): Likewise.
7010 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
7011 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7013 2007-06-05 Bruno Haible <bruno@clisp.org>
7015 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
7017 * modules/printf-safe: New file.
7018 * modules/fprintf-posix (Depends-on): Add printf-safe.
7019 * modules/printf-posix (Depends-on): Likewise.
7020 * modules/snprintf-posix (Depends-on): Likewise.
7021 * modules/sprintf-posix (Depends-on): Likewise.
7022 * modules/vasnprintf-posix (Depends-on): Likewise.
7023 * modules/vasprintf-posix (Depends-on): Likewise.
7024 * modules/vfprintf-posix (Depends-on): Likewise.
7025 * modules/vprintf-posix (Depends-on): Likewise.
7026 * modules/vsnprintf-posix (Depends-on): Likewise.
7027 * modules/vsprintf-posix (Depends-on): Likewise.
7028 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7029 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
7030 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
7031 "no" on i386, x86_64, ia64.
7032 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
7033 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7034 on i386, x86_64, ia64.
7035 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
7036 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7037 on i386, x86_64, ia64.
7038 * tests/test-vasnprintf-posix.c: Include float.h.
7039 (LDBL80_WORDS): New macro.
7040 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7041 on i386, x86_64, ia64.
7042 * tests/test-vasprintf-posix.c: Include float.h.
7043 (LDBL80_WORDS): New macro.
7044 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7045 on i386, x86_64, ia64.
7046 * tests/test-snprintf-posix.c: Include float.h.
7047 * tests/test-sprintf-posix.c: Likewise.
7048 * tests/test-vsnprintf-posix.c: Likewise.
7049 * tests/test-vsprintf-posix.c: Likewise.
7051 2007-06-05 Bruno Haible <bruno@clisp.org>
7053 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
7054 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
7055 non-IEEE numbers on i386, x86_64, ia64.
7056 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
7057 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
7058 * tests/test-isnanl.h: Include float.h.
7059 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
7061 2007-06-05 Bruno Haible <bruno@clisp.org>
7063 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
7064 also the %a / %A. Handle the %a / %A code before this extra handling.
7066 2007-06-05 Bruno Haible <bruno@clisp.org>
7068 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
7069 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
7071 2007-06-05 Bruno Haible <bruno@clisp.org>
7073 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
7074 typo in variable name.
7076 2007-06-05 Eric Blake <ebb9@byu.net>
7078 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
7079 Reported by Simon Josefsson.
7081 2007-06-04 Bruno Haible <bruno@clisp.org>
7083 Avoid test failures on some PowerPC platforms.
7084 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
7085 Define differently for PowerPC.
7086 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
7087 Reported by Gary V. Vaughan <gary@gnu.org>.
7089 2007-06-02 Bruno Haible <bruno@clisp.org>
7091 Fix test-stdint failure on FreeBSD/ia64.
7092 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
7093 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
7094 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
7095 * doc/headers/stdint.texi: Update.
7097 2007-06-01 Bruno Haible <bruno@clisp.org>
7099 * tests/test-binary-io.c (main): Pass a third argument to open().
7100 Reported by Gary V. Vaughan <gary@gnu.org>.
7102 2007-06-01 Bruno Haible <bruno@clisp.org>
7104 * doc/functions/frexpl.texi: Update for mingw.
7106 2007-06-01 Bruno Haible <bruno@clisp.org>
7108 * tests/test-lseek.c (main): Disable test of errno for invalid third
7110 * doc/functions/lseek.texi: Update.
7111 Reported by Gary V. Vaughan <gary@gnu.org>.
7113 2007-05-28 Bruno Haible <bruno@clisp.org>
7115 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
7117 2007-05-31 Eric Blake <ebb9@byu.net>
7119 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
7122 2007-05-30 Eric Blake <ebb9@byu.net>
7123 and Bruno Haible <bruno@clisp.org>
7125 Work around mingw test failures exposed by m4-1.4.9b.
7126 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
7127 * tests/test-unistd.c: Disable uid_t and git_t tests for the
7130 2007-05-30 Bruno Haible <bruno@clisp.org>
7132 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
7133 assuming that they are closed. Needed on HP-UX 11.
7135 2007-05-29 Bruno Haible <bruno@clisp.org>
7137 Fix a problem with #include_next.
7138 * lib/dirent_.h: Split the double-inclusion guard.
7139 * lib/fcntl_.h: Likewise.
7140 * lib/float_.h: Likewise.
7141 * lib/iconv_.h: Likewise.
7142 * lib/inttypes_.h: Likewise.
7143 * lib/locale_.h: Likewise.
7144 * lib/math_.h: Likewise.
7145 * lib/netinet_in_.h: Likewise.
7146 * lib/search_.h: Likewise.
7147 * lib/signal_.h: Likewise.
7148 * lib/stdint_.h: Likewise.
7149 * lib/stdio_.h: Likewise.
7150 * lib/stdlib_.h: Likewise.
7151 * lib/string_.h: Likewise.
7152 * lib/sys_select_.h: Likewise.
7153 * lib/sys_socket_.h: Likewise.
7154 * lib/sys_stat_.h: Likewise.
7155 * lib/sys_time_.h: Likewise.
7156 * lib/sysexits_.h: Likewise.
7157 * lib/time_.h: Likewise.
7158 * lib/unistd_.h: Likewise.
7159 * lib/wchar_.h: Likewise.
7160 * lib/wctype_.h: Likewise.
7162 2007-05-29 Bruno Haible <bruno@clisp.org>
7164 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
7167 2007-05-29 Bruno Haible <bruno@clisp.org>
7169 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
7171 Reported by Eric Blake.
7173 2007-05-29 Bruno Haible <bruno@clisp.org>
7175 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
7178 2007-05-29 Eric Blake <ebb9@byu.net>
7179 Bruno Haible <bruno@clisp.org>
7181 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
7184 2007-05-28 Eric Blake <ebb9@byu.net>
7186 * modules/closein-tests (test_closein_LDADD): Support test on
7187 cygwin with libtool.
7189 2007-05-28 Bruno Haible <bruno@clisp.org>
7191 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
7192 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7193 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7194 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7195 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7196 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7197 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7198 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7199 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7201 2007-05-28 Eric Blake <ebb9@byu.net>
7203 Unconditionally include <config.h> in unit tests.
7204 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
7205 * tests/test-allocsa.c, tests/test-arcfour.c,
7206 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
7207 tests/test-array_list.c, tests/test-array_oset.c,
7208 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
7209 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
7210 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
7211 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
7212 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
7213 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
7214 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
7215 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
7216 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
7217 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
7218 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
7219 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
7220 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
7221 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
7222 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
7223 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
7224 test-md5.c, test-memmem.c, test-printf-posix.c,
7225 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
7226 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
7227 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
7228 test-strcasestr.c, test-striconv.c, test-striconveh.c,
7229 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
7230 test-vasnprintf-posix2.c, test-vasnprintf.c,
7231 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
7232 test-vfprintf-posix.c, test-vprintf-posix.c,
7233 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
7234 test-xvasprintf.c: Likewise.
7236 2007-05-28 Bruno Haible <bruno@clisp.org>
7238 * gnulib-tool (func_import): Remember the --with-tests command-line
7239 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
7240 Reported by Eric Blake.
7242 2007-05-28 Bruno Haible <bruno@clisp.org>
7244 * modules/ftell-tests: New file.
7245 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
7246 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
7248 * lib/ftell.c: New file.
7249 * modules/ftell: New file.
7250 * m4/ftell.m4: New file.
7251 * doc/functions/ftell.texi: Update.
7252 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
7254 * lib/stdio_.h (rpl_ftell): New declaration.
7255 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
7258 2007-05-28 Eric Blake <ebb9@byu.net>
7260 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
7262 2007-05-28 Bruno Haible <bruno@clisp.org>
7264 * modules/fseek-tests: New file.
7265 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
7266 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
7268 * lib/fseek.c: New file.
7269 * modules/fseek: New file.
7270 * m4/fseek.m4: New file.
7271 * doc/functions/fseek.texi: Update.
7272 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
7274 * lib/stdio_.h (rpl_fseek): New declaration.
7275 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
7278 2007-05-28 Bruno Haible <bruno@clisp.org>
7280 * lib/stdio_.h (fflush): More comments.
7282 2007-05-28 Bruno Haible <bruno@clisp.org>
7284 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
7287 2007-05-28 Eric Blake <ebb9@byu.net>
7289 Improve lseek module.
7290 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
7291 * lib/unistd_.h (lseek): Scale back link warning message.
7292 * tests/test-lseek.c: Beef up test.
7293 * tests/test-lseek.sh: Exercise more facets of lseek.
7294 Reported by Bruno Haible.
7296 2007-05-28 Bruno Haible <bruno@clisp.org>
7298 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
7301 2007-05-27 Bruno Haible <bruno@clisp.org>
7303 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
7305 2007-05-27 Bruno Haible <bruno@clisp.org>
7307 * modules/openmp: New file.
7308 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
7311 2007-05-26 Bruno Haible <bruno@clisp.org>
7313 * modules/chdir-long (Depends-on): Add fchdir.
7314 * modules/chdir-safer (Depends-on): Likewise.
7315 * modules/fts (Depends-on): Likewise.
7316 * modules/fts-lgpl (Depends-on): Likewise.
7317 * modules/openat (Depends-on): Likewise.
7318 * modules/savewd (Depends-on): Likewise.
7320 2007-05-24 Eric Blake <ebb9@byu.net>
7323 * modules/lseek: New module.
7324 * m4/lseek.m4: New file.
7325 * lib/lseek.c: New file.
7326 * modules/lseek-tests: New file.
7327 * tests/test-lseek.c: New file.
7328 * tests/test-lseek.sh: New file.
7329 * MODULES.html.sh: Document lseek module.
7330 * modules/fflush (Depends-on): Add lseek, fseeko.
7331 * modules/fseeko (Depends-on): Likewise.
7332 * modules/ftello (Depends-on): Likewise.
7333 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
7335 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
7337 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
7338 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
7339 * lib/ftello.c (rpl_ftello): Likewise.
7340 * tests/test-fseeko.c (main): Test this.
7341 * tests/test-fseeko.sh: Likewise.
7342 * tests/test-ftello.c (main): Likewise.
7343 * tests/test-ftello.sh: Likewise.
7344 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
7345 implies replacing fseek.
7346 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
7348 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
7349 * modules/unistd (Makefile.am): Likewise.
7350 * lib/unistd_.h (lseek): Declare a replacement.
7351 * doc/functions/lseek.texi (lseek): Document this fix.
7352 * doc/functions/fseek.texi (fseek): Likewise.
7353 * doc/functions/ftell.texi (ftell): Likewise.
7355 2007-05-24 Bruno Haible <bruno@clisp.org>
7357 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
7358 in the printed representation of a NaN.
7359 * tests/test-vasprintf-posix.c (test_function): Likewise.
7360 * tests/test-snprintf-posix.h (test_function): Likewise.
7361 * tests/test-sprintf-posix.h (test_function): Likewise.
7362 Reported by Eric Blake.
7364 2007-05-23 Eric Blake <ebb9@byu.net>
7366 Fix fseeko/ftello on cygwin 1.5.24.
7367 * doc/functions/fseeko.texi (fseeko): Document the fix.
7368 * doc/functions/ftello.texi (ftello): Document the fix.
7369 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
7370 * doc/functions/stdout.text (stdout): New file.
7371 * doc/functions/stderr.text (stderr): New file.
7372 * doc/gnulib.texi (Function Substitutes): Use new files.
7373 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
7375 * tests/test-ftello.c (main): Likewise for ftello.
7376 * tests/test-fseeko.sh: New file.
7377 * tests/test-ftello.sh: New file.
7378 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
7379 with seekable stdin.
7380 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
7381 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
7382 (gl_REPLACE_FSEEKO): New macro.
7383 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
7384 * modules/fseeko (Files): Distribute fseeko.c.
7385 * modules/ftello (Files): Distribute ftello.c.
7386 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
7388 * lib/ftello.c (rpl_ftello): New file.
7389 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
7391 (gl_STDIN_LARGE_OFFSET): New macro.
7392 * modules/stdio (Makefile.am): Perform the replacement.
7393 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
7395 2007-05-23 Bruno Haible <bruno@clisp.org>
7397 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
7398 GNULIB_POSIXCHECK is defined.
7400 2007-05-21 Bruno Haible <bruno@clisp.org>
7402 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
7403 Check also the output for NaN arguments. When cross-compiling, guess
7405 * lib/vasnprintf.c: Update comments.
7406 * tests/test-vasnprintf-posix.c (strisnan): New function.
7407 (test_function): Use it.
7408 * tests/test-vasprintf-posix.c (strisnan): New function.
7409 (test_function): Use it.
7410 * tests/test-snprintf-posix.h (strisnan): New function.
7411 (test_function): Use it.
7412 * tests/test-sprintf-posix.h (strisnan): New function.
7413 (test_function): Use it.
7414 Reported by Eric Blake.
7416 2007-05-20 Bruno Haible <bruno@clisp.org>
7418 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
7419 numbers that fails on BeOS.
7420 * doc/functions/frexpl.texi: Update.
7422 2007-05-20 Jim Meyering <jim@meyering.net>
7424 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
7425 forced upon us by glibc-2.6.
7427 2007-05-20 Bruno Haible <bruno@clisp.org>
7429 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
7430 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
7431 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
7432 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
7433 NEED_PRINTF_INFINITE.
7434 (is_infinitel): New function.
7435 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
7436 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
7437 gl_PREREQ_VASNPRINTF_INFINITE.
7438 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
7439 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7440 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
7441 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
7442 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
7443 gl_PREREQ_VASNPRINTF_INFINITE.
7444 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7445 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7446 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7447 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7448 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7449 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7450 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7451 * doc/functions/fprintf.texi: Update.
7452 * doc/functions/printf.texi: Update.
7453 * doc/functions/snprintf.texi: Update.
7454 * doc/functions/sprintf.texi: Update.
7455 * doc/functions/vfprintf.texi: Update.
7456 * doc/functions/vprintf.texi: Update.
7457 * doc/functions/vsnprintf.texi: Update.
7458 * doc/functions/vsprintf.texi: Update.
7460 2007-05-20 Bruno Haible <bruno@clisp.org>
7462 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
7463 was not found in libc.
7464 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7466 2007-05-20 Bruno Haible <bruno@clisp.org>
7468 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
7469 printed as "-nan" instead of "nan".
7470 * tests/test-vasprintf-posix.c (test_function): Likewise.
7471 * tests/test-snprintf-posix.h (test_function): Likewise.
7472 * tests/test-sprintf-posix.h (test_function): Likewise.
7473 Needed for HP-UX 11.
7475 2007-05-20 Jim Meyering <jim@meyering.net>
7477 Fix buggy test for the fchownat-deref bug.
7478 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
7479 symlink required for the run-test. Without it, this test would
7480 always declare that fchownat doesn't work, and client code would
7481 unnecessarily use the replacement function with fixed libc.
7482 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
7483 Reported by Greg Schafer.
7485 2007-05-19 Bruno Haible <bruno@clisp.org>
7487 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
7488 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
7489 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
7490 Needed for IRIX 6.5 and Solaris 2.5.1.
7492 2007-05-19 Bruno Haible <bruno@clisp.org>
7494 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
7495 (test_function): Skip tests involving -0.0 on platforms where
7497 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
7498 (test_function): Skip tests involving -0.0 on platforms where
7500 * tests/test-snprintf-posix.h (have_minus_zero): New function.
7501 (test_function): Skip tests involving -0.0 on platforms where
7503 * tests/test-sprintf-posix.h (have_minus_zero): New function.
7504 (test_function): Skip tests involving -0.0 on platforms where
7506 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
7508 * tests/test-printf-posix.h (test_function): Likewise.
7509 * tests/test-printf-posix.output: Remove all -0.0 related results.
7510 Needed for IRIX 6.5.
7512 2007-05-19 Bruno Haible <bruno@clisp.org>
7514 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
7515 printed as "nan0x7fffffff" instead of "nan".
7516 * tests/test-vasprintf-posix.c (test_function): Likewise.
7517 * tests/test-snprintf-posix.h (test_function): Likewise.
7518 * tests/test-sprintf-posix.h (test_function): Likewise.
7519 * tests/test-fprintf-posix.h (NaN): Remove macro.
7520 (test_function): Remove all NaN related tests.
7521 * tests/test-printf-posix.h (NaN): Remove macro.
7522 (test_function): Remove all NaN related tests.
7523 * tests/test-printf-posix.output: Remove all NaN related results.
7524 Needed for IRIX 6.5.
7526 2007-05-19 Bruno Haible <bruno@clisp.org>
7528 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
7529 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7531 2007-05-19 Bruno Haible <bruno@clisp.org>
7533 * lib/float_.h: New file.
7534 * m4/float_h.m4: New file.
7535 * modules/float: New file.
7536 * modules/isnanl (Dependencies): Add float.
7537 * modules/isnanl-nolibm (Dependencies): Likewise.
7538 * modules/mathl (Dependencies): Likewise.
7539 * modules/printf-frexpl (Dependencies): Likewise.
7540 * modules/signbit (Dependencies): Likewise.
7541 * modules/vasnprintf (Dependencies): Likewise.
7542 * doc/headers/float.texi: Update.
7544 2007-05-19 Jim Meyering <jim@meyering.net>
7546 * lib/utimens.c (gl_futimens): Rename from futimens,
7547 now that glibc-2.6 declares futimens.
7548 * lib/utimens.h: Likewise.
7550 2007-05-19 Bruno Haible <bruno@clisp.org>
7552 Avoid test failures on mingw.
7553 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
7554 * tests/test-printf-posix.sh: Likewise.
7555 * tests/test-vfprintf-posix.sh: Likewise.
7556 * tests/test-vprintf-posix.sh: Likewise.
7558 2007-05-19 Bruno Haible <bruno@clisp.org>
7560 Fix *printf result for NaN, Inf, -0.0 on mingw.
7561 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
7562 * lib/vasnprintf.c: Include math.h and isnan.h.
7563 (is_infinite_or_zero): New function.
7564 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
7565 values in the %f, %F, %e, %E, %g, %G directives.
7566 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
7567 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7568 gl_PRINTF_INFINITE and test its result. Invoke
7569 gl_PREREQ_VASNPRINTF_INFINITE.
7570 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7571 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7572 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7573 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7574 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7575 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7576 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7577 * doc/functions/fprintf.texi: Update.
7578 * doc/functions/printf.texi: Update.
7579 * doc/functions/snprintf.texi: Update.
7580 * doc/functions/sprintf.texi: Update.
7581 * doc/functions/vfprintf.texi: Update.
7582 * doc/functions/vprintf.texi: Update.
7583 * doc/functions/vsnprintf.texi: Update.
7584 * doc/functions/vsprintf.texi: Update.
7586 2007-05-19 Bruno Haible <bruno@clisp.org>
7588 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
7589 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
7590 Instead of multiplying with 10^k, set extra_zeroes to k.
7591 (scale10_round_long_double): Remove function.
7593 2007-05-18 Bruno Haible <bruno@clisp.org>
7595 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
7596 introduced on 2007-05-06.
7598 2007-05-18 Bruno Haible <bruno@clisp.org>
7600 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
7602 * tests/test-vasprintf-posix.c (test_function): Likewise.
7603 * tests/test-snprintf-posix.h (test_function): Likewise.
7604 * tests/test-sprintf-posix.h (test_function): Likewise.
7606 2007-05-18 Bruno Haible <bruno@clisp.org>
7608 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
7609 (strmatch): New function.
7610 (test_function): Test the %f directive on numbers of various exponents.
7611 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
7612 (strmatch): New function.
7613 (test_function): Test the %f directive on numbers of various exponents.
7614 * tests/test-snprintf-posix.h (strmatch): New function.
7615 (test_function): Test the %f directive on numbers of various exponents.
7616 * tests/test-sprintf-posix.h (strmatch): New function.
7617 (test_function): Test the %f directive on numbers of various exponents.
7618 * tests/test-snprintf-posix.c (SIZEOF): New macro.
7619 * tests/test-sprintf-posix.c (SIZEOF): New macro.
7620 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
7621 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
7623 2007-05-18 Bruno Haible <bruno@clisp.org>
7625 Add support for 'long double' number output.
7626 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
7627 * lib/vasnprintf.c: Include math.h and float+.h.
7628 (mp_limb_t): New type.
7629 (GMP_LIMB_BITS): New macro.
7630 (mp_twolimb_t): New type.
7631 (GMP_TWOLIMB_BITS): New macro.
7633 (multiply, divide, convert_to_decimal, decode_long_double,
7634 scale10_round_long_double, scale10_round_decimal_long_double,
7635 floorlog10l): New functions.
7636 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
7637 for the %f, %F, %e, %E, %g, %G directives.
7638 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
7639 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7640 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
7641 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
7642 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7643 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7644 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7645 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7646 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7647 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7648 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7649 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
7650 * modules/snprintf-posix (Depends-on): Likewise.
7651 * modules/sprintf-posix (Depends-on): Likewise.
7652 * modules/vasnprintf-posix (Depends-on): Likewise.
7653 * modules/vasprintf-posix (Depends-on): Likewise.
7654 * modules/vfprintf-posix (Depends-on): Likewise.
7655 * modules/vsnprintf-posix (Depends-on): Likewise.
7656 * modules/vsprintf-posix (Depends-on): Likewise.
7657 * modules/vasnprintf (Files): Add lib/float+.h.
7658 * doc/functions/fprintf.texi: Update.
7659 * doc/functions/printf.texi: Update.
7660 * doc/functions/snprintf.texi: Update.
7661 * doc/functions/sprintf.texi: Update.
7662 * doc/functions/vfprintf.texi: Update.
7663 * doc/functions/vprintf.texi: Update.
7664 * doc/functions/vsnprintf.texi: Update.
7665 * doc/functions/vsprintf.texi: Update.
7667 2007-05-18 Bruno Haible <bruno@clisp.org>
7669 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
7671 2007-05-18 Bruno Haible <bruno@clisp.org>
7673 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
7674 for printing 64-bit integers. Needed for mingw.
7676 2007-05-18 Bruno Haible <bruno@clisp.org>
7678 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
7679 gl_FUNC_FREXPL_WORKS.
7680 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
7682 2007-05-18 Bruno Haible <bruno@clisp.org>
7684 * modules/frexpl-nolibm-tests: New file.
7686 * modules/frexpl-nolibm: New file.
7687 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
7689 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
7691 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
7692 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
7693 GCC 4.2, which otherwise issues a lot of warnings.
7694 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
7695 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
7697 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
7698 * modules/iconv_open (iconv.h): Likewise.
7699 * modules/locale (locale.h): Likewise.
7700 * modules/netinet_in (netinet/in.h): Likewise.
7701 * modules/sys_select (sys_select.h): Likewise.
7702 * modules/sys_socket (sys/socket.h): Likewise.
7703 * modules/sys_stat (sys/stat.h): Likewise.
7704 * modules/sysexits (sysexits.h): Likewise.
7705 * modules/unistd (unistd.h): Likewise.
7707 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7709 * modules/closein-tests (Makefile.am): Distribute
7712 2007-05-17 Bruno Haible <bruno@clisp.org>
7714 * tests/test-printf-posix.output: Renamed from
7715 tests/test-fprintf-posix.out.
7716 * modules/fprintf-posix-tests: Update.
7717 * modules/printf-posix-tests: Update.
7718 * modules/vfprintf-posix-tests: Update.
7719 * modules/vprintf-posix-tests: Update.
7720 * tests/test-fprintf-posix.sh: Update.
7721 * tests/test-printf-posix.sh: Update.
7722 * tests/test-vfprintf-posix.sh: Update.
7723 * tests/test-vprintf-posix.sh: Update.
7724 Reported by Ralf Wildenhues.
7726 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
7728 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
7729 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
7730 GCC 4.2, which otherwise issues a lot of warnings.
7731 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
7732 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
7733 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
7734 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
7735 it should no longer be needed.
7736 * lib/string_.h: Likewise.
7737 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
7738 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
7739 * modules/inttypes (inttypes.h): Likewise.
7740 * modules/math (math.h): Likewise.
7741 * modules/search (search.h): Likewise.
7742 * modules/signal (signal.h): Likewise.
7743 * modules/stdint (stdint.h): Likewise.
7744 * modules/stdio (stdio.h): Likewise.
7745 * modules/stdlib (stdlib.h): Likewise.
7746 * modules/string (string.h): Likewise.
7747 * modules/sys_time (sys/time.h): Likewise.
7748 * modules/time (time.h): Likewise.
7749 * modules/wchar (wchar.h): Likewise.
7750 * modules/wctype (wtype.h): Likewise.
7752 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
7754 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
7756 2007-05-13 Bruno Haible <bruno@clisp.org>
7758 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
7759 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7760 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
7761 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7762 (gl_PREREQ_STRTOK_R): Don't require it here.
7764 2007-05-13 Bruno Haible <bruno@clisp.org>
7766 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
7767 when used in C++ mode.
7769 2007-05-12 Bruno Haible <bruno@clisp.org>
7771 * lib/linebuffer.h: Tweak doc.
7772 * lib/linebuffer.c: Likewise.
7774 2007-05-12 James Youngman <jay@gnu.org>
7776 * lib/linebuffer.c (readlinebuffer_delim): New function,
7777 like readlinebuffer, but use a caller-specified delimiter.
7778 (readlinebuffer): Just call readlinebuffer_delim with '\n'
7780 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
7782 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
7784 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
7785 * modules/openat (Files): Remove openat-die.c.
7786 (Depends-on): Add openat-die.
7787 * modules/openat-die: New module.
7789 2007-05-06 Bruno Haible <bruno@clisp.org>
7791 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
7792 Update with info about Cygwin.
7793 * doc/functions/fprintf.texi: Update.
7794 * doc/functions/printf.texi: Update.
7795 * doc/functions/snprintf.texi: Update.
7796 * doc/functions/sprintf.texi: Update.
7797 * doc/functions/vfprintf.texi: Update.
7798 * doc/functions/vprintf.texi: Update.
7799 * doc/functions/vsnprintf.texi: Update.
7800 * doc/functions/vsprintf.texi: Update.
7801 Reported by Eric Blake.
7803 2007-05-06 Bruno Haible <bruno@clisp.org>
7805 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
7806 padding ourselves for the floating-point directives.
7807 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
7808 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
7809 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7810 gl_PRINTF_FLAG_ZERO and test its result. Invoke
7811 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
7812 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7813 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
7814 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7815 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7816 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7817 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7818 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7819 * tests/test-snprintf-posix.h (test_function): Also check the width
7820 and some flags in the %f directive.
7821 * tests/test-sprintf-posix.h (test_function): Likewise.
7822 * tests/test-vasnprintf-posix.c (test_function): Likewise.
7823 * tests/test-vasprintf-posix.c (test_function): Likewise.
7824 * doc/functions/fprintf.texi: Update.
7825 * doc/functions/printf.texi: Update.
7826 * doc/functions/snprintf.texi: Update.
7827 * doc/functions/sprintf.texi: Update.
7828 * doc/functions/vfprintf.texi: Update.
7829 * doc/functions/vprintf.texi: Update.
7830 * doc/functions/vsnprintf.texi: Update.
7831 * doc/functions/vsprintf.texi: Update.
7833 2007-05-06 Bruno Haible <bruno@clisp.org>
7835 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
7836 pass the ' flag character to sprintf or snprintf.
7837 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
7838 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
7839 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7840 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
7841 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
7842 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7843 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
7844 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7845 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7846 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7847 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7848 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7849 * tests/test-snprintf-posix.h (test_function): Also check the grouping
7851 * tests/test-sprintf-posix.h (test_function): Likewise.
7852 * tests/test-vasnprintf-posix.c (test_function): Likewise.
7853 * tests/test-vasprintf-posix.c (test_function): Likewise.
7854 * doc/functions/fprintf.texi: Update.
7855 * doc/functions/printf.texi: Update.
7856 * doc/functions/snprintf.texi: Update.
7857 * doc/functions/sprintf.texi: Update.
7858 * doc/functions/vfprintf.texi: Update.
7859 * doc/functions/vprintf.texi: Update.
7860 * doc/functions/vsnprintf.texi: Update.
7861 * doc/functions/vsprintf.texi: Update.
7863 2007-05-01 Bruno Haible <bruno@clisp.org>
7865 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
7867 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
7869 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
7870 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
7872 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
7874 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
7875 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
7876 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
7878 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
7880 * lib/argp-help.c (struct hol_entry): New member `ord'.
7881 (HOL_ENTRY_PTRCMP): Use ord for comparison
7882 (hol_sort): Initialize ord.
7884 2007-05-01 Bruno Haible <bruno@clisp.org>
7886 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
7887 Reported by Eric Blake.
7888 * doc/gnulib.texi (Function Substitutes): Update.
7890 2007-05-01 Bruno Haible <bruno@clisp.org>
7892 * doc/functions.texi: Remove file, now redundant through
7893 doc/functions/*.texi.
7895 2007-05-01 Bruno Haible <bruno@clisp.org>
7897 * modules/argp (Depends-on): Add sleep.
7899 2007-05-01 Bruno Haible <bruno@clisp.org>
7901 * modules/sleep-tests: New file.
7902 * tests/test-sleep.c: New file.
7904 * modules/sleep: New file.
7905 * lib/sleep.c: New file.
7906 * m4/sleep.m4: New file.
7907 * lib/unistd_.h (sleep): New declaration.
7908 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
7910 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
7911 * doc/functions/sleep.texi: Document the sleep module.
7913 2007-05-01 Bruno Haible <bruno@clisp.org>
7915 * lib/sigprocmask.h: Remove file.
7916 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
7917 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
7918 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
7919 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
7920 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7921 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
7922 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
7923 HAVE_SIGSET_T as a shell variable.
7924 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
7925 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
7926 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
7927 (Depends-on): Add signal. Remove verify.
7928 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
7929 (Include): Mention <signal.h> instead of sigprocmask.h.
7930 * NEWS: Mention the change.
7931 * lib/fatal-signal.c: Don't include sigprocmask.h.
7933 2007-05-01 Bruno Haible <bruno@clisp.org>
7935 * modules/signal: New file.
7936 * lib/signal_.h: New file.
7937 * m4/signal_h.m4: New file.
7939 2007-05-01 Bruno Haible <bruno@clisp.org>
7941 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
7942 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
7943 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
7944 HAVE_WCTYPE_CTMP_BUG into wctype.h.
7946 2007-05-01 Bruno Haible <bruno@clisp.org>
7948 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
7950 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
7951 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
7952 * modules/sys_stat (Makefile.am): Substitute their values into
7955 2007-05-01 Bruno Haible <bruno@clisp.org>
7957 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
7958 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
7959 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
7961 2007-05-01 Bruno Haible <bruno@clisp.org>
7963 * doc/header/assert.texi: Undo last change: don't mention the gnulib
7964 'assert' module here.
7966 2007-05-01 Bruno Haible <bruno@clisp.org>
7968 * doc/functions/*.texi: New files.
7969 * doc/functions/google-ranking.txt: New file.
7970 * doc/gnulib.texi (Function Substitutes): New chapter.
7971 (ctime, inet_ntoa): Remove sections.
7972 * doc/ctime.texi: Remove file.
7973 * doc/inet_ntoa.texi: Remove file.
7974 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
7976 (%.info): New rule, specifying a --reference-limit.
7978 2007-05-01 Bruno Haible <bruno@clisp.org>
7980 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
7982 2007-05-01 Bruno Haible <bruno@clisp.org>
7984 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
7985 the portability of 'mkdir' to mingw systems.
7987 2007-05-01 Bruno Haible <bruno@clisp.org>
7989 * doc/headers/google-ranking.txt: New file.
7991 2007-04-30 Eric Blake <ebb9@byu.net>
7993 Prefer fseeko to fseek.
7994 * modules/getpass (Depends-on): Add fseeko.
7995 * lib/getpass.c (getpass): Use fseeko, not fseek.
7997 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
7999 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
8000 assumes the sorting is stable, while most qsort implementations
8001 are not. Use argument addresses to ensure they never compare as
8004 * tests/test-argp-2.sh (usage-indent test): Fix output
8005 (func_compare): Restore diff options
8006 * tests/test-argp.c: Restore #include "progname.h"
8008 2007-04-29 Bruno Haible <bruno@clisp.org>
8010 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
8011 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8012 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
8013 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8014 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
8015 (configure.ac): Define CHECK_SNPRINTF_POSIX.
8016 (TESTS, check_PROGRAMS): Add test-snprintf.
8017 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
8018 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
8019 (TESTS, check_PROGRAMS): Add test-vsnprintf.
8020 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
8021 assertions that fail on HP-UX, OSF/1, or IRIX.
8022 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
8024 2007-04-29 Bruno Haible <bruno@clisp.org>
8026 * MODULES.html.sh (posix_functions): Remove 'contents'.
8028 2007-04-29 Karl Berry <karl@gnu.org>
8030 * config/srclist.txt (gendocs_template_min): new entry.
8032 2007-04-29 Bruno Haible <bruno@clisp.org>
8034 Work around fpurge bug on BSD systems.
8035 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
8036 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
8037 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
8038 fpurge to rpl_fpurge if the system already has this function.
8039 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
8040 the case where the system already has this function. Correct invariants
8042 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
8045 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
8047 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
8048 proposed by Sven Verdoolaege.
8050 * tests/test-argp.c: Fix option ordering. Test deeply clustered
8052 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
8053 (usage and help tests): Update
8055 2007-04-29 Bruno Haible <bruno@clisp.org>
8057 * tests/test-fflush.c (main): Use a file of size 17, not 10.
8058 Print more information in case of failure. Disable a test on BeOS.
8060 2007-04-29 Bruno Haible <bruno@clisp.org>
8062 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
8063 This helps debugging on systems on which no gdb is available.
8065 2007-04-29 Bruno Haible <bruno@clisp.org>
8067 * lib/freading.h: Improve comments.
8068 * lib/fwriting.h: Likewise.
8069 * tests/test-freading.c (main): Don't check freading immediately after
8070 repositioning. Needed for glibc.
8072 2007-04-29 Bruno Haible <bruno@clisp.org>
8074 * lib/freading.c (freading): Trivial simplification.
8076 2007-04-28 Bruno Haible <bruno@clisp.org>
8078 * tests/test-fwriting.c (main): Also test the interaction between
8079 fflush and fwriting.
8080 * modules/fwriting-tests (Depends-on): Add fflush.
8082 * tests/test-freading.c (main): Also test the interaction between
8083 fflush and freading.
8084 * modules/freading-tests (Depends-on): Add fflush.
8086 2007-04-28 Bruno Haible <bruno@clisp.org>
8088 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
8090 Suggested by Eric Blake.
8092 2007-04-28 Jim Meyering <jim@meyering.net>
8094 Avoid false-negative in gl_STDINT_H's C99 conformance test.
8095 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
8096 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
8098 2007-04-27 Eric Blake <ebb9@byu.net>
8100 * doc/headers/assert.texi (assert.h): Document assert module use.
8102 2007-04-27 Bruno Haible <bruno@clisp.org>
8104 * doc/headers/*.texi: New files.
8105 * doc/gnulib.texi (Header File Substitutes): New chapter.
8106 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
8108 (standards.info ,standards.html, standards.dvi): Update dependencies.
8109 (mostlyclean, clean): New targets.
8111 2007-04-27 Bruno Haible <bruno@clisp.org>
8113 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
8114 * modules/sysexits (Files, Makefile.am): Update.
8116 * lib/sys_socket_.h: Renamed from lib/socket_.h.
8117 * modules/sys_socket (Files, Makefile.am): Update.
8119 * lib/sys_stat_.h: Renamed from lib/stat_.h.
8120 * modules/sys_stat (Files, Makefile.am): Update.
8122 2007-04-27 Eric Blake <ebb9@byu.net>
8124 * lib/freading.h: Improve comments.
8125 * lib/fwriting.h: Likewise.
8126 * lib/fflush.c: Likewise.
8128 Fix closein for mingw.
8129 * modules/closein-tests: Add tests for closein.
8130 * tests/test-closein.c: New file.
8131 * tests/test-closein.sh: Likewise.
8132 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
8133 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
8135 2007-04-27 Bruno Haible <bruno@clisp.org>
8137 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
8139 * lib/math_.h [__DECC]: Likewise.
8140 * lib/stdio_.h [__DECC]: Likewise.
8141 * lib/stdlib_.h [__DECC]: Likewise.
8142 * lib/string_.h [__DECC]: Likewise.
8143 * lib/time_.h [__DECC]: Likewise.
8144 * lib/wchar_.h [__DECC]: Likewise.
8145 * lib/wctype_.h [__DECC]: Likewise.
8147 2007-04-27 Bruno Haible <bruno@clisp.org>
8149 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
8151 2007-04-27 Bruno Haible <bruno@clisp.org>
8153 * lib/fflush.c: Add comments.
8154 * modules/fpurge-tests (Depends-on): Add fflush.
8155 * modules/freadable-tests (Depends-on): Likewise.
8156 * modules/fwritable-tests (Depends-on): Likewise.
8158 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
8160 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
8161 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
8162 Report by Bruno Haible <bruno@clisp.org>.
8164 2007-04-26 Eric Blake <ebb9@byu.net>
8166 Fix fflush on mingw.
8167 * modules/fflush (Depends-on): Add freading.
8168 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
8171 2007-04-26 Eric Blake <ebb9@byu.net>
8172 and Bruno Haible <bruno@clisp.org>
8174 Implement freading and fwriting.
8175 * lib/freading.c: New file.
8176 * lib/freading.h: Likewise.
8177 * m4/freading.m4: Likewise.
8178 * modules/freading: Likewise.
8179 * modules/freading-tests: Likewise.
8180 * tests/test-freading.c: Likewise.
8181 * lib/fwriting.c: New file.
8182 * lib/fwriting.h: Likewise.
8183 * m4/fwriting.m4: Likewise.
8184 * modules/fwriting: Likewise.
8185 * modules/fwriting-tests: Likewise.
8186 * tests/test-fwriting.c: Likewise.
8187 * MODULES.html.sh (File stream based Input/Output): Mention them.
8189 2007-04-26 Bruno Haible <bruno@clisp.org>
8191 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
8192 'long' when we assume it.
8193 Suggested by Eric Blake.
8195 2007-04-26 Bruno Haible <bruno@clisp.org>
8197 Ensure fseeko, ftello are declared on glibc systems.
8198 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
8199 * modules/fseeko (configure.ac-early): Likewise.
8200 * modules/ftello (configure.ac-early): Likewise.
8201 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
8202 AC_FUNC_FSEEKO for this.
8203 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
8204 (gl_CHECK_FSEEKO): Remove macro.
8206 2007-04-26 Bruno Haible <bruno@clisp.org>
8208 * tests/test-fflush.c (main): Also check the ftell result after
8209 fflush and fseek/fseeko.
8210 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
8211 file descriptor position cache in the stream.
8212 * lib/fseeko.c (rpl_fseeko): Likewise.
8214 2007-04-26 Bruno Haible <bruno@clisp.org>
8216 * modules/fflush-tests (Depends-on): Add fseeko.
8218 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
8219 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8221 * lib/argz_.h: ensure error_t definition is obtained in same
8222 mechanism system argz.h would have.
8223 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
8224 argz facilities are known bad. Err on the side of caution if
8227 2007-04-25 Eric Blake <ebb9@byu.net>
8229 * lib/fpurge.c (includes): Use stdlib.h for free.
8230 * tests/test-fflush.c (main): Also test fflush-fseeko.
8232 2007-04-25 Bruno Haible <bruno@clisp.org>
8234 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
8235 * lib/fseeko.c: New file.
8236 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
8237 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
8238 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
8240 (gl_FUNC_FSEEKO): Invoke it.
8241 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
8242 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
8243 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
8245 2007-04-25 Bruno Haible <bruno@clisp.org>
8247 * modules/fflush (Depends-on): Add ftello.
8249 2007-04-25 Bruno Haible <bruno@clisp.org>
8251 * modules/ftello-tests: New file.
8252 * tests/test-ftello.c: New file.
8254 * modules/ftello: New file.
8255 * m4/ftello.m4: New file.
8256 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
8258 * lib/stdio_.h (ftello): New declaration.
8259 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
8262 2007-04-25 Bruno Haible <bruno@clisp.org>
8264 * modules/fseeko-tests: New file.
8265 * tests/test-fseeko.c: New file.
8267 * modules/fseeko: New file.
8268 * m4/fseeko.m4: New file.
8269 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
8271 * lib/stdio_.h (fseeko): New declaration.
8272 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
8275 2007-04-25 Bruno Haible <bruno@clisp.org>
8277 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
8279 2007-04-25 Bruno Haible <bruno@clisp.org>
8281 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
8282 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
8283 * tests/test-unistd.c: Likewise.
8284 * tests/test-fcntl.c: Likewise.
8286 2007-04-23 Eric Blake <ebb9@byu.net>
8288 * lib/fflush.c: Fix missing include.
8289 Reported by Bruno Haible.
8291 2007-04-23 Bruno Haible <bruno@clisp.org>
8293 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
8294 Reported by Eric Blake.
8296 2007-04-23 Bruno Haible <bruno@clisp.org>
8298 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
8300 2007-04-23 Bruno Haible <bruno@clisp.org>
8302 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
8304 2007-04-23 Bruno Haible <bruno@clisp.org>
8306 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
8309 2007-04-16 Eric Blake <ebb9@byu.net>
8311 Make fflush rely on fpurge.
8312 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
8313 open coding all variants.
8314 * modules/fflush (Depends-on): Add fpurge and unistd.
8315 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
8316 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
8318 Fix --with-tests compilation on cygwin.
8319 * modules/argmatch-tests (Makefile.am): List gnulib library first
8321 * modules/argp-tests (Makefile.am): Likewise.
8322 * modules/array-list-tests (Makefile.am): Likewise.
8323 * modules/array-oset-tests (Makefile.am): Likewise.
8324 * modules/avltree-list-tests (Makefile.am): Likewise.
8325 * modules/avltree-oset-tests (Makefile.am): Likewise.
8326 * modules/avltreehash-list-tests (Makefile.am): Likewise.
8327 * modules/carray-list-tests (Makefile.am): Likewise.
8328 * modules/dirname-tests (Makefile.am): Likewise.
8329 * modules/frexp-tests (Makefile.am): Likewise.
8330 * modules/isnanl-tests (Makefile.am): Likewise.
8331 * modules/linked-list-tests (Makefile.am): Likewise.
8332 * modules/linkedhash-list-tests (Makefile.am): Likewise.
8333 * modules/lock-tests (Makefile.am): Likewise.
8334 * modules/rbtree-list-tests (Makefile.am): Likewise.
8335 * modules/rbtree-oset-tests (Makefile.am): Likewise.
8336 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
8337 * modules/tls-tests (Makefile.am): Likewise.
8338 * modules/tsearch-tests (Makefile.am): Likewise.
8339 * modules/xvasprintf-tests (Makefile.am): Likewise.
8341 Fix fpurge for cygwin.
8342 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
8344 * modules/fpurge-tests (Depends-on): Clean up trash.
8346 2007-04-16 Simon Josefsson <simon@josefsson.org>
8348 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
8350 * m4/autobuild.m4: Re-indent.
8352 2007-04-13 Bruno Haible <bruno@clisp.org>
8354 * modules/fpurge-tests: New file.
8355 * tests/test-fpurge.c: New file.
8357 * modules/fpurge: New file.
8358 * lib/fpurge.h: New file.
8359 * lib/fpurge.c: New file.
8360 * m4/fpurge.m4: New file.
8362 2007-04-13 Bruno Haible <bruno@clisp.org>
8364 * modules/fbufmode-tests: New file.
8365 * tests/test-fbufmode.c: New file.
8367 * modules/fbufmode: New file.
8368 * lib/fbufmode.h: New file.
8369 * lib/fbufmode.c: New file.
8370 * m4/fbufmode.m4: New file.
8372 2007-04-13 Bruno Haible <bruno@clisp.org>
8374 * modules/fwritable-tests: New file.
8375 * tests/test-fwritable.c: New file.
8377 * modules/fwritable: New file.
8378 * lib/fwritable.h: New file.
8379 * lib/fwritable.c: New file.
8380 * m4/fwritable.m4: New file.
8382 2007-04-13 Bruno Haible <bruno@clisp.org>
8384 * modules/freadable-tests: New file.
8385 * tests/test-freadable.c: New file.
8387 * modules/freadable: New file.
8388 * lib/freadable.h: New file.
8389 * lib/freadable.c: New file.
8390 * m4/freadable.m4: New file.
8392 2007-04-13 Bruno Haible <bruno@clisp.org>
8394 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
8397 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
8399 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
8400 gzip bootstrap.conf to avoid dragging in i18n machinery.
8401 (gnulib_tool_option): Use it.
8403 2007-04-13 Bruno Haible <bruno@clisp.org>
8405 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
8407 * tests/test-vasprintf-posix.c (test_function): Likewise.
8408 * tests/test-snprintf-posix.h (test_function): Likewise.
8409 * tests/test-sprintf-posix.h (test_function): Likewise.
8410 * tests/test-fprintf-posix.h (test_function): Likewise.
8411 * tests/test-printf-posix.h (test_function): Likewise.
8412 * tests/test-fprintf-posix.out: Likewise.
8414 2007-04-13 Bruno Haible <bruno@clisp.org>
8416 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
8417 * modules/tls-tests (configure.ac): Likewise.
8418 Reported by Arto C. Nirkko <anirkko@insel.ch>.
8420 2007-04-13 Bruno Haible <bruno@clisp.org>
8422 * lib/tls.c (glthread_tls_get): Fix return type.
8423 Patch by Arto C. Nirkko <anirkko@insel.ch>.
8425 2007-04-12 Eric Blake <ebb9@byu.net>
8427 * modules/gettime (Depends-on): Remove gettime.
8428 Reported by Dmitry V. Levin.
8430 2007-04-12 Bruno Haible <bruno@clisp.org>
8432 * modules/fflush (Include): Mention <stdio.h>.
8433 * modules/strtoimax (Include): Mention <inttypes.h>.
8434 * modules/strtoumax (Include): Likewise.
8436 2007-04-12 Eric Blake <ebb9@byu.net>
8438 * .cvsignore: New file.
8439 * .gitignore: Likewise.
8441 2007-04-12 Bruno Haible <bruno@clisp.org>
8443 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
8444 not before, since $(LDADD) often contains libgnu.a.
8445 * modules/striconv-tests (test_striconv_LDADD): Likewise.
8446 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
8447 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
8450 2007-04-12 Eric Blake <ebb9@byu.net>
8452 Work around glibc's failure to flush stdin on fclose.
8453 * lib/closein.c (close_stdin): Flush stdin before closing.
8455 Work around glibc's failure to reset seekable stdin on exit.
8456 * modules/closein: New module.
8457 * lib/closein.c: New file.
8458 * lib/closein.h: Likewise.
8459 * m4/closein.m4: Likewise.
8460 * MODULES.html.sh (File stream based Input/Output): Document it.
8462 2007-04-12 Simon Josefsson <simon@josefsson.org>
8464 * gnulib-tool: Rename generated 'autobuild' script to
8465 'do-autobuild' in --create-megatestdir output.
8467 * doc/gnulib.texi (Build robot for gnulib): Fix.
8469 2007-04-12 Simon Josefsson <simon@josefsson.org>
8471 * modules/sysexits (Depends-on): Add absolute-header.
8473 2007-04-12 Eric Blake <ebb9@byu.net>
8475 No need to preserve errno on success.
8476 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
8477 Reported by Bruno Haible.
8479 2007-04-12 Simon Josefsson <simon@josefsson.org>
8481 * MODULES.html.sh (Support for maintaining and releasing
8482 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
8484 2007-04-12 Simon Josefsson <simon@josefsson.org>
8486 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
8488 2007-04-12 Simon Josefsson <simon@josefsson.org>
8490 * modules/autobuild: New module.
8492 * m4/autobuild.m4: New file.
8494 2007-04-11 Bruno Haible <bruno@clisp.org>
8496 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
8497 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
8498 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
8499 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
8500 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8501 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8502 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8503 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8504 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8505 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8506 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
8507 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8508 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8509 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
8510 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8511 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8512 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
8513 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8514 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8515 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
8516 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8517 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8518 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
8519 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8520 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8521 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
8522 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8523 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8524 Reported by Eric Blake.
8526 2007-04-11 Bruno Haible <bruno@clisp.org>
8528 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
8530 2007-04-10 Bruno Haible <bruno@clisp.org>
8532 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
8533 for NaN and Infinity. Needed on FreeBSD 6.1.
8534 * tests/test-vasnprintf-posix.c (test_function): Undo last change
8535 regarding results for "%010a" of Infinity and NaN.
8536 * tests/test-vasprintf-posix.c (test_function): Likewise.
8537 * tests/test-snprintf-posix.h (test_function): Likewise.
8538 * tests/test-sprintf-posix.h (test_function): Likewise.
8539 * tests/test-fprintf-posix.h (test_function): Likewise.
8540 * tests/test-printf-posix.h (test_function): Likewise.
8541 * tests/test-fprintf-posix.out: Likewise.
8543 2007-04-10 Bruno Haible <bruno@clisp.org>
8545 * modules/locale-tests: New file.
8546 * tests/test-locale.c: New file.
8548 * modules/locale: New file.
8549 * lib/locale_.h: New file.
8550 * m4/locale_h.m4: New file.
8552 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
8553 Bruno Haible <bruno@clisp.org>
8555 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
8556 be determined, test for availability of the copysignf, copysign,
8557 copysignl functions.
8558 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
8559 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
8560 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
8562 2007-04-09 Eric Blake <ebb9@byu.net>
8564 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
8565 * modules/stdio (Makefile.am): Support fflush.
8566 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8567 * modules/fflush: New file.
8568 * lib/fflush.c: Likewise.
8569 * m4/fflush.m4: Likewise.
8570 * modules/fflush-tests: New test.
8571 * tests/test-fflush.c: Likewise.
8572 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
8574 2007-04-06 Bruno Haible <bruno@clisp.org>
8576 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
8577 (VASNPRINTF): Use signbit for faster determination whether to print a
8579 * modules/vasnprintf (Files): Remove lib/float+.h.
8580 * modules/fprintf-posix (Depends-on): Add signbit.
8581 * modules/snprintf-posix (Depends-on): Likewise.
8582 * modules/sprintf-posix (Depends-on): Likewise.
8583 * modules/vasnprintf-posix (Depends-on): Likewise.
8584 * modules/vasprintf-posix (Depends-on): Likewise.
8585 * modules/vfprintf-posix (Depends-on): Likewise.
8586 * modules/vsnprintf-posix (Depends-on): Likewise.
8587 * modules/vsprintf-posix (Depends-on): Likewise.
8589 2007-04-06 Bruno Haible <bruno@clisp.org>
8591 * tests/test-frexp.c (main): Test also the sign bit of zero results.
8592 * tests/test-frexpl.c (main): Likewise.
8593 * tests/test-ldexpl.c (main): Likewise.
8594 * modules/frexp-tests (Depends-on): Add signbit.
8595 * modules/frexpl-tests (Depdends-on): Likewise.
8596 * modules/ldexpl-tests (Depdends-on): Likewise.
8598 2007-04-06 Bruno Haible <bruno@clisp.org>
8600 * modules/signbit-tests: New file.
8601 * tests/test-signbit.c: New file.
8603 * modules/signbit: New file.
8604 * lib/signbitf.c: New file.
8605 * lib/signbitd.c: New file.
8606 * lib/signbitl.c: New file.
8607 * m4/signbit.m4: New file.
8608 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
8609 (signbit): New macro.
8610 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
8612 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
8613 REPLACE_FREXPL into math.h.
8615 2007-04-06 Bruno Haible <bruno@clisp.org>
8617 * modules/isnanf-nolibm-tests: New file.
8618 * tests/test-isnanf.c: New file.
8620 * modules/isnanf-nolibm: New file.
8621 * lib/isnanf.h: New file.
8622 * lib/isnanf.c: New file.
8623 * lib/isnan.c: Consider the USE_FLOAT macro.
8624 * m4/isnanf.m4: New file.
8626 2007-04-06 Bruno Haible <bruno@clisp.org>
8628 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
8629 (Link): New section.
8631 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
8633 2007-04-06 Bruno Haible <bruno@clisp.org>
8635 Assume the 'long double' type.
8636 * m4/longdouble.m4: Remove file.
8637 * config/srclist.txt: Don't mention longdouble.m4.
8638 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
8639 * lib/float+.h: Likewise.
8640 * lib/frexp.c: Likewise.
8641 * lib/printf-args.h: Likewise.
8642 * lib/printf-args.c: Likewise.
8643 * lib/printf-frexp.c: Likewise.
8644 * lib/printf-parse.c: Likewise.
8645 * lib/vasnprintf.c: Likewise.
8646 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
8647 * m4/intl.m4: Likewise.
8648 * m4/isnanl.m4: Likewise.
8649 * m4/printf.m4: Likewise.
8650 * m4/printf-frexpl.m4: Likewise.
8651 * m4/vasnprintf.m4: Likewise.
8652 * modules/allocsa (Files): Remove m4/longdouble.m4.
8653 * modules/gettext (Files): Likewise.
8654 * modules/relocatable-prog-wrapper (Files): Likewise.
8655 * modules/vasnprintf (Files): Likewise.
8656 * modules/isnanl (Files): Likewise.
8657 (Include): Simplify.
8658 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
8659 (Include): Simplify.
8660 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
8661 (Include): Simplify.
8662 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
8663 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8664 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
8665 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8666 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
8667 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8668 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
8669 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8670 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
8671 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8672 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
8673 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8674 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
8675 * tests/test-isnanl.c: Likewise.
8676 * tests/test-snprintf-posix.h: Likewise.
8677 * tests/test-sprintf-posix.h: Likewise.
8678 * tests/test-vasnprintf-posix.c: Likewise.
8679 * tests/test-vasnprintf-posix2.c: Likewise.
8680 * tests/test-vasprintf-posix.c: Likewise.
8682 2007-04-06 Bruno Haible <bruno@clisp.org>
8684 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
8685 * lib/math_.h [__DECC]: Include the overridden include file through
8686 #include_next, outside the double-inclusion guard.
8687 * lib/stdio_.h [__DECC]: Likewise.
8688 * lib/stdlib_.h [__DECC]: Likewise.
8689 * lib/string_.h [__DECC]: Likewise.
8690 * lib/time_.h [__DECC]: Likewise.
8691 * lib/wchar_.h [__DECC]: Likewise.
8692 * lib/wctype_.h [__DECC]: Likewise.
8693 * lib/inttypes_.h [__DECC]: Likewise.
8694 Reported by Albert Chin <china@thewrittenword.com> in
8695 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
8697 2007-04-04 Eric Blake <ebb9@byu.net>
8699 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
8702 2007-04-04 Bruno Haible <bruno@clisp.org>
8704 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
8705 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
8707 2007-04-04 Bruno Haible <bruno@clisp.org>
8709 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
8710 results for "%010a" of Infinity and NaN.
8711 * tests/test-vasprintf-posix.c (test_function): Likewise.
8712 * tests/test-snprintf-posix.h (test_function): Likewise.
8713 * tests/test-sprintf-posix.h (test_function): Likewise.
8714 * tests/test-fprintf-posix.h (test_function): Remove these tests.
8715 * tests/test-printf-posix.h (test_function): Likewise.
8716 * tests/test-fprintf-posix.out: Update.
8717 Needed for FreeBSD 6.1.
8719 2007-04-04 Bruno Haible <bruno@clisp.org>
8721 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
8722 directly used by the gnulib modules nor by gnulib-tool.
8724 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
8726 * DEPENDENCIES: Give overall description of version dependency
8727 desirability. Use more-typical names for apps.
8728 Add shell, coreutils, diffutils, grep, tar, gzip.
8730 2007-04-04 Simon Josefsson <simon@josefsson.org>
8732 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
8734 2007-04-04 Karl Berry <karl@gnu.org>
8736 * MODULES.html.sh (func_module): missing '.
8738 2007-04-03 Bruno Haible <bruno@clisp.org>
8740 * modules/argmatch-tests (Makefile.am): New variable
8741 test_argmatch_LDADD.
8742 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
8743 * modules/array-list-tests (Makefile.am): New variable
8744 test_array_list_LDADD.
8745 * modules/array-oset-tests (Makefile.am): New variable
8746 test_array_oset_LDADD.
8747 * modules/avltree-list-tests (Makefile.am): New variable
8748 test_avltree_list_LDADD.
8749 * modules/avltree-oset-tests (Makefile.am): New variable
8750 test_avltree_oset_LDADD.
8751 * modules/avltreehash-list-tests (Makefile.am): New variable
8752 test_avltreehash_list_LDADD.
8753 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
8754 test_canonicalize_lgpl_LDADD.
8755 * modules/carray-list-tests (Makefile.am): New variable
8756 test_carray_list_LDADD.
8757 * modules/dirname-tests (Makefile.am): New variable
8759 * modules/linked-list-tests (Makefile.am): New variable
8760 test_linked_list_LDADD.
8761 * modules/linkedhash-list-tests (Makefile.am): New variable
8762 test_linkedhash_list_LDADD.
8763 * modules/rbtree-list-tests (Makefile.am): New variable
8764 test_rbtree_list_LDADD.
8765 * modules/rbtree-oset-tests (Makefile.am): New variable
8766 test_rbtree_oset_LDADD.
8767 * modules/rbtreehash-list-tests (Makefile.am): New variable
8768 test_rbtreehash_list_LDADD.
8769 * modules/xvasprintf-tests (Makefile.am): New variable
8770 test_xvasprintf_LDADD.
8771 Reported by Eric Blake.
8773 2007-04-03 Eric Blake <ebb9@byu.net>
8775 * DEPENDENCIES: Weaken m4 requirements.
8777 2007-04-03 Bruno Haible <bruno@clisp.org>
8779 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
8780 * modules/isnanl-tests (configure.ac): Likewise.
8782 2007-04-03 Ben Pfaff <blp@gnu.org>
8784 * modules/iconv_open: Add $(srcdir)/ to source directory
8785 references in Makefile fragments that call gperf, to fix VPATH
8788 2007-04-03 Bruno Haible <bruno@clisp.org>
8790 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
8791 * lib/ldexpl.c: Undo last change.
8793 2007-04-03 Bruno Haible <bruno@clisp.org>
8795 * modules/printf-frexpl (Depends-on): Undo last change.
8796 (Files): Add m4/ldexpl.m4.
8798 2007-04-03 Bruno Haible <bruno@clisp.org>
8800 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
8801 * modules/isnanl (Link): New section.
8803 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
8804 * modules/frexp (Link): New section.
8806 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
8807 * modules/frexpl (Link): New section.
8809 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
8810 * modules/ldexpl (Link): New section.
8812 2007-04-03 Bruno Haible <bruno@clisp.org>
8814 * modules/TEMPLATE-EXTENDED: New file.
8815 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
8817 2007-04-03 Bruno Haible <bruno@clisp.org>
8819 * DEPENDENCIES: New file.
8820 Suggested by Simon Josefsson.
8822 2007-04-03 Bruno Haible <bruno@clisp.org>
8824 * doc/gnulib.texi: Escape @.
8826 2007-04-03 James Youngman <jay@gnu.org>
8827 and Paul Eggert <eggert@cs.ucla.edu>
8829 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
8830 birthtime on all systems that have birthtime, not just those which
8831 use st_birthtimensec rather than st_birthtim. Putting zero in
8832 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
8833 that the birth time is not available for files on an NFS mount.
8835 2007-04-03 Simon Josefsson <simon@josefsson.org>
8837 * modules/memxor: Move back from crypto/, suggested by Bruno.
8838 * modules/crypto/hmac-sha1: Fix memxor dependency.
8840 * modules/crypto/gc: Moved from ../.
8842 2007-04-02 Eric Blake <ebb9@byu.net>
8844 * lib/ldexpl.c (includes): Avoid libm.
8846 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
8848 2007-04-02 Bruno Haible <bruno@clisp.org>
8850 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
8853 2007-04-02 Bruno Haible <bruno@clisp.org>
8855 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
8856 x86 or x86_64 platforms running MacOS X.
8857 Reported by Ryan Schmidt <@ryandesign.com>.
8859 2007-04-02 Bruno Haible <bruno@clisp.org>
8861 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
8864 2007-04-01 Simon Josefsson <simon@josefsson.org>
8866 * modules/crypto/arcfour: Moved from ../.
8867 * modules/crypto/arcfour-tests: Moved from ../.
8868 * modules/crypto/arctwo: Moved from ../.
8869 * modules/crypto/arctwo-tests: Moved from ../.
8870 * modules/crypto/des: Moved from ../.
8871 * modules/crypto/des-tests: Moved from ../.
8872 * modules/crypto/gc-arcfour: Moved from ../.
8873 * modules/crypto/gc-arcfour-tests: Moved from ../.
8874 * modules/crypto/gc-arctwo: Moved from ../.
8875 * modules/crypto/gc-arctwo-tests: Moved from ../.
8876 * modules/crypto/gc-des: Moved from ../.
8877 * modules/crypto/gc-des-tests: Moved from ../.
8878 * modules/crypto/gc-hmac-md5: Moved from ../.
8879 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
8880 * modules/crypto/gc-hmac-sha1: Moved from ../.
8881 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
8882 * modules/crypto/gc-md2: Moved from ../.
8883 * modules/crypto/gc-md2-tests: Moved from ../.
8884 * modules/crypto/gc-md4: Moved from ../.
8885 * modules/crypto/gc-md4-tests: Moved from ../.
8886 * modules/crypto/gc-md5: Moved from ../.
8887 * modules/crypto/gc-md5-tests: Moved from ../.
8888 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
8889 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
8890 * modules/crypto/gc-random: Moved from ../.
8891 * modules/crypto/gc-rijndael: Moved from ../.
8892 * modules/crypto/gc-rijndael-tests: Moved from ../.
8893 * modules/crypto/gc-sha1: Moved from ../.
8894 * modules/crypto/gc-sha1-tests: Moved from ../.
8895 * modules/crypto/gc-tests: Moved from ../.
8896 * modules/crypto/hmac-md5: Moved from ../.
8897 * modules/crypto/hmac-md5-tests: Moved from ../.
8898 * modules/crypto/hmac-sha1: Moved from ../.
8899 * modules/crypto/hmac-sha1-tests: Moved from ../.
8900 * modules/crypto/md2: Moved from ../.
8901 * modules/crypto/md2-tests: Moved from ../.
8902 * modules/crypto/md4: Moved from ../.
8903 * modules/crypto/md4-tests: Moved from ../.
8904 * modules/crypto/md5: Moved from ../.
8905 * modules/crypto/md5-tests: Moved from ../.
8906 * modules/crypto/memxor: Moved from ../.
8907 * modules/crypto/rijndael: Moved from ../.
8908 * modules/crypto/rijndael-tests: Moved from ../.
8909 * modules/crypto/sha1: Moved from ../.
8911 2007-03-30 James Youngman <jay@gnu.org>
8913 * tests/test-stat-time.c (prepare_test): use chmod() rather than
8914 rename() to change the ctime of a file (because ctime is unaffected
8915 by rename on jfs2 on AIX 5.1).
8916 (main): Start by doing cleanup, in case a previous run failed leaving
8919 2007-03-31 Bruno Haible <bruno@clisp.org>
8921 Support old proprietary implementations of iconv.
8922 * modules/iconv_open: New file.
8923 * lib/iconv_.h: New file.
8924 * m4/iconv_h.m4: New file.
8925 * lib/iconv_open.c: New file.
8926 * lib/iconv_open-aix.gperf: New file.
8927 * lib/iconv_open-hpux.gperf: New file.
8928 * lib/iconv_open-irix.gperf: New file.
8929 * lib/iconv_open-osf.gperf: New file.
8930 * m4/iconv_open.m4: New file.
8931 * modules/linebreak (Depends-on): Add iconv_open.
8932 * modules/striconv (Depends-on): Likewise.
8933 * modules/striconveh (Depends-on): Likewise.
8934 * modules/unicodeio (Depends-on): Likewise.
8935 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
8937 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
8938 conversion if cd is (iconv_t)(-1).
8939 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
8942 2007-03-31 Bruno Haible <bruno@clisp.org>
8944 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
8945 work on Solaris either. Protect also second use of "autodetect_jp".
8947 2007-03-31 Bruno Haible <bruno@clisp.org>
8949 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
8950 the function is not present.
8952 2007-03-31 Bruno Haible <bruno@clisp.org>
8954 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
8955 the function is not present.
8957 2007-03-31 Bruno Haible <bruno@clisp.org>
8959 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
8960 a bug in HP-UX iconv_open().
8962 2007-03-31 Bruno Haible <bruno@clisp.org>
8964 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
8965 (Mathematics <math.h>): New section, add fpieee.
8966 (Input/output <stdio.h>): Add fseterr.
8967 (Mathematics <math.h>): New section, add printf-frexp.
8968 (Container data structures): Add sublist.
8969 (Core language properties): Add fpucw, inline.
8970 (Functions for greatest-width integer types <inttypes.h>): Add
8971 imaxabs, imaxdiv, inttypes.
8972 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
8973 isnanl-nolibm, ldexp.
8974 (Mathematics <math.h>): New section, add printf-frexpl.
8975 (Support for systems lacking POSIX:2001): Add fprintf-posix,
8976 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
8977 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
8978 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
8979 (Unicode string functions): Add unistr/u*-mbtoucr.
8980 (Java): Add javacomp-script, javaexec-script.
8981 (C#): Add csharpcomp-script, csharpexec-script.
8982 (Support for building libraries and executables): Add havelib,
8984 (Support for maintaining and releasing projects): Renamed from
8985 'Support for maintaining and release projects'. Add announce-gen.
8987 2007-03-31 Bruno Haible <bruno@clisp.org>
8989 * README: Talk primarily about git.
8990 (git and CVS): Renamed from CVS.
8991 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
8992 gnulib is available through git.
8993 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
8995 2007-03-30 Bruno Haible <bruno@clisp.org>
8997 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
8998 * lib/poll_.h: Likewise.
8999 * lib/stat_.h: Likewise.
9000 * lib/sys_time_.h: Likewise.
9001 * lib/sysexit_.h: Likewise.
9002 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
9003 * lib/stdbool_.h: Likewise.
9004 * lib/byteswap_.h: Add double-inclusion guard.
9006 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
9008 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
9010 2007-03-30 Karl Berry <karl@gnu.org>
9012 * config/srclist-update: double space after USA in the license
9013 substitution, since that's how it's usually (?) written.
9015 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
9017 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
9018 reported by Bruno Haible.
9020 2007-03-29 Bruno Haible <bruno@clisp.org>
9022 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
9023 a bug in AIX iconv().
9025 2007-03-29 Bruno Haible <bruno@clisp.org>
9027 * modules/ldexpl-tests: New file.
9028 * tests/test-ldexpl.c: New file.
9030 2007-03-29 Bruno Haible <bruno@clisp.org>
9032 * lib/ldexpl.c: Include fpucw.h.
9033 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
9035 * modules/ldexpl (Depends-on): Add fpucw.
9037 2007-03-29 Bruno Haible <bruno@clisp.org>
9039 * modules/ldexpl: New file.
9040 * m4/ldexpl.m4: New file.
9041 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
9043 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
9045 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
9047 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
9048 gl_FUNC_LDEXPL_WORKS.
9049 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
9050 * modules/mathl (Files): Remove lib/ldexpl.c.
9051 (Depends-on): Add ldexpl.
9053 2007-03-29 Bruno Haible <bruno@clisp.org>
9055 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
9057 2007-03-29 Bruno Haible <bruno@clisp.org>
9059 * tests/test-striconveh.c (main): Don't assume that a direct conversion
9060 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
9061 and possibly also HP-UX.
9062 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
9063 work on AIX, IRIX, HP-UX, OSF/1.
9064 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9065 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9066 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9067 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9068 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
9069 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9071 2007-03-29 Bruno Haible <bruno@clisp.org>
9073 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
9075 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
9077 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
9078 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
9080 2007-03-29 Eric Blake <ebb9@byu.net>
9082 * lib/acl-internal.h: Remove redundant include.
9083 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
9084 Cygwin when a file is locked.
9086 2007-03-29 Bruno Haible <bruno@clisp.org>
9088 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
9090 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
9092 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
9094 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
9095 try to remove a parent directory if the child couldn't be removed
9096 (except for the first rmdir, which could fail because the child
9097 doesn't exist). Problem reported by Jeff Blaine in
9098 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
9100 2007-03-28 Bruno Haible <bruno@clisp.org>
9102 * lib/striconveh.c (utf8conv_carefully): New function.
9103 (mem_cd_iconveh_internal): Invoke it.
9105 2007-03-28 Bruno Haible <bruno@clisp.org>
9107 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
9108 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
9110 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
9111 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
9114 2007-03-28 Bruno Haible <bruno@clisp.org>
9116 * modules/unistr/u8-mbtoucr: New file.
9117 * lib/unistr/u8-mbtoucr.c: New file.
9118 * modules/unistr/u16-mbtoucr: New file.
9119 * lib/unistr/u16-mbtoucr.c: New file.
9120 * modules/unistr/u16-mbtoucr: New file.
9121 * lib/unistr/u16-mbtoucr.c: New file.
9122 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
9124 2007-03-27 Simon Josefsson <simon@josefsson.org>
9125 Bruno Haible <bruno@clisp.org>
9127 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
9128 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
9129 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
9131 * m4/stdio_h.m4: Add stubs for vasprintf too.
9133 * modules/stdio: Support vasprintf in sed command.
9135 * modules/vasprintf: Depend on stdio for prototypes. Remove
9136 vasprintf.h. Add stdio module indicator.
9138 * lib/stdio_.h: Declare asprintf and vasprintf, based on
9141 * lib/vasprintf.h: File removed.
9143 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
9144 * lib/vasprintf.c: Ditto.
9145 * lib/xvasprintf.c: Ditto.
9146 * tests/test-vasprintf-posix.c: Ditto.
9147 * tests/test-vasprintf.c: Ditto.
9149 2007-03-27 Bruno Haible <bruno@clisp.org>
9151 Make vasnprintf multithread-safe.
9152 * lib/vasnprintf.c (decimal_point_char): New function.
9153 (VASNPRINTF): Use it.
9154 Suggested by Simon Josefsson.
9156 2007-03-27 Eric Blake <ebb9@byu.net>
9158 Support sub-second birthtime on cygwin.
9159 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
9160 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
9161 (get_stat_birthtime): Also work with st_birthtim.
9163 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
9165 * lib/stat-time.h (USE_BIRTHTIME): Remove.
9166 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
9167 (get_stat_birthtime_ns): Do not try to use "spare" fields.
9168 (get_stat_birthtime_ns): Simplify compile-time tests.
9169 (get_stat_birthtime): Change the API to look like
9170 get_stat_mtime etc., except return a negative tv_nsec on error.
9171 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
9172 Don't check for "spare" fields.
9173 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
9174 or for struct stat.st_birthtime, as these tests aren't used.
9175 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
9177 2007-03-27 Bruno Haible <bruno@clisp.org>
9179 * lib/stat-time.h: Include <sys/stat.h>.
9181 2007-03-27 James Youngman <jay@gnu.org>
9183 * lib/stat-time.h (get_stat_birthtime): New function for
9184 retrieving st_birthtime as provided by UFS2 (hence *BSD).
9185 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
9187 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
9188 * modules/stat-time-test: New file.
9189 * tests/test-stat-time.c: New test, devised by Bruno Haible.
9191 2007-03-26 Bruno Haible <bruno@clisp.org>
9193 Better support of signalling NaNs.
9194 * lib/atanl.c: Include isnanl.h.
9195 (atanl): Perform test for NaN at the beginning of the function and
9196 through a call to isnanl.
9197 * lib/cosl.c: Include isnanl.h.
9198 (cosl): Perform test for NaN at the beginning of the function and
9199 through a call to isnanl.
9200 * lib/ldexpl.c: Include isnanl.h.
9201 (ldexpl): Perform test for NaN through a call to isnanl.
9202 * lib/logl.c: Include isnanl.h.
9203 (logl): Perform test for NaN at the beginning of the function and
9204 through a call to isnanl.
9205 * lib/sinl.c: Include isnanl.h.
9206 (sinl): Perform test for NaN at the beginning of the function and
9207 through a call to isnanl.
9208 * lib/sqrtl.c: Include isnanl.h.
9209 (sqrtl): Perform test for NaN at the beginning of the function and
9210 through a call to isnanl.
9211 * lib/tanl.c: Include isnanl.h.
9212 (tanl): Perform test for NaN at the beginning of the function and
9213 through a call to isnanl.
9214 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
9215 * modules/mathl (Depends-on): Add isnanl.
9217 2007-03-26 Eric Blake <ebb9@byu.net>
9219 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
9220 regression in logic sense of previous patch.
9222 2007-03-26 Bruno Haible <bruno@clisp.org>
9224 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
9225 unportable shell command "if ! ...".
9226 Reported by Ralf Wildenhues.
9228 2007-03-25 Bruno Haible <bruno@clisp.org>
9230 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
9231 <sysexits.h> file, and only add EX_CONFIG.
9232 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
9233 absolute file name and whether it is sufficient. Substitute also
9234 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
9235 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
9236 ABSOLUTE_SYSEXITS_H into sysexits.h.
9238 2007-03-25 Bruno Haible <bruno@clisp.org>
9240 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
9243 2007-03-25 Bruno Haible <bruno@clisp.org>
9245 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
9246 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
9248 2007-03-25 Bruno Haible <bruno@clisp.org>
9250 * lib/vasnprintf.c: Include langinfo.h.
9251 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
9253 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
9254 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
9255 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9256 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9257 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9258 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9259 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9260 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
9261 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9262 Reported by Simon Josefsson.
9264 2007-03-25 Bruno Haible <bruno@clisp.org>
9266 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
9267 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
9268 * modules/vasnprintf (Depends-on): Add stdint.
9270 2007-03-25 Bruno Haible <bruno@clisp.org>
9272 * modules/fpieee: New file.
9273 * m4/fpieee.m4: New file.
9274 * modules/isnan-nolibm (Depends-on): Add fpieee.
9275 * modules/isnanl-nolibm (Depends-on): Add fpieee.
9276 * modules/isnanl (Depends-on): Add fpieee.
9278 2007-03-25 Bruno Haible <bruno@clisp.org>
9280 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
9282 2007-03-25 Bruno Haible <bruno@clisp.org>
9284 Avoid test failures on IRIX 6.5.
9285 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
9287 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
9291 2007-03-25 Bruno Haible <bruno@clisp.org>
9293 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
9294 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
9295 exists but doesn't work.
9296 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
9297 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
9298 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
9299 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
9301 2007-03-25 Bruno Haible <bruno@clisp.org>
9303 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
9304 returns inf. Needed on IRIX 6.5.
9306 2007-03-25 Bruno Haible <bruno@clisp.org>
9308 * tests/test-frexpl.c: Include isnanl-nolibm.h.
9309 (main): Use isnanl instead of x != x idiom.
9310 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
9312 * tests/test-frexp.c: Include isnan.h.
9313 (main): Use isnan instead of x != x idiom.
9314 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
9316 2007-03-25 Bruno Haible <bruno@clisp.org>
9318 * tests/test-frexp.c (NaN): New function/macro.
9319 (main): Use it instead of 0.0 / 0.0.
9320 * tests/test-isnan.c (NaN): New function/macro.
9321 (main): Use it instead of 0.0 / 0.0.
9322 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
9323 (test_function): Use it instead of 0.0 / 0.0.
9324 * tests/test-vasprintf-posix.c (NaN): New function/macro.
9325 (test_function): Use it instead of 0.0 / 0.0.
9326 * tests/test-snprintf-posix.h (NaN): New function/macro.
9327 (test_function): Use it instead of 0.0 / 0.0.
9328 * tests/test-sprintf-posix.h (NaN): New function/macro.
9329 (test_function): Use it instead of 0.0 / 0.0.
9330 * tests/test-fprintf-posix.h (NaN): New function/macro.
9331 (test_function): Use it instead of 0.0 / 0.0.
9332 * tests/test-printf-posix.h (NaN): New function/macro.
9333 (test_function): Use it instead of 0.0 / 0.0.
9335 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
9337 2007-03-25 Bruno Haible <bruno@clisp.org>
9339 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
9341 2007-03-25 Bruno Haible <bruno@clisp.org>
9343 * lib/regexec.c (merge_state_with_log): Make static.
9345 2007-03-25 Bruno Haible <bruno@clisp.org>
9347 * lib/trigl.c (kernel_rem_pio2): Make static.
9349 2007-03-25 Bruno Haible <bruno@clisp.org>
9351 * lib/sincosl.c (sincosl_table): Make static.
9353 2007-03-25 Bruno Haible <bruno@clisp.org>
9355 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
9356 if the compiler does not support C99.
9358 2007-03-25 Bruno Haible <bruno@clisp.org>
9360 * modules/time (Makefile.am): Ensure all rule action lines start with a
9363 2007-03-24 Bruno Haible <bruno@clisp.org>
9365 * modules/tsearch-tests: New file.
9366 * tests/test-tsearch.sh: New file.
9367 * tests/test-tsearch.c: New file, mostly copied from glibc.
9369 * modules/search-tests: New file.
9370 * tests/test-search.c: New file.
9372 * modules/search: New file.
9373 * lib/search_.h: New file, incorporating lib/tsearch.h.
9374 * m4/search_h.m4: New file.
9375 * lib/tsearch.h: Remove file.
9376 * lib/tsearch.c: Include search.h instead of tsearch.h.
9377 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
9379 * modules/tsearch (Files): Remove lib/tsearch.h.
9380 (Depends-on): Add search.
9381 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
9382 (Include): Change tsearch.h into search.h.
9384 2007-03-24 Bruno Haible <bruno@clisp.org>
9386 * modules/fpucw: New file.
9387 * lib/fpucw.h: New file.
9388 * lib/frexp.c: Include fpucw.h.
9389 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
9391 * lib/printf-frexp.c: Include fpucw.h.
9392 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
9394 * lib/vasnprintf.c: Include fpucw.h.
9395 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
9396 'long double' calculations.
9397 * tests/test-frexpl.c: Include fpucw.h.
9398 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
9399 * tests/test-printf-frexpl.c: Include fpucw.h.
9400 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
9401 * modules/frexpl (Depends-on): Add fpucw.
9402 * modules/printf-frexpl (Depends-on): Likewise.
9403 * modules/fprintf-posix (Depends-on): Likewise.
9404 * modules/snprintf-posix (Depends-on): Likewise.
9405 * modules/sprintf-posix (Depends-on): Likewise.
9406 * modules/vasnprintf-posix (Depends-on): Likewise.
9407 * modules/vasprintf-posix (Depends-on): Likewise.
9408 * modules/vfprintf-posix (Depends-on): Likewise.
9409 * modules/vsnprintf-posix (Depends-on): Likewise.
9410 * modules/vsprintf-posix (Depends-on): Likewise.
9411 * modules/frexpl-tests (Depends-on): Likewise.
9412 * modules/printf-frexpl-tests (Depends-on): Likewise.
9414 2007-03-24 Bruno Haible <bruno@clisp.org>
9416 * lib/float+.h: New file.
9417 * lib/isnan.c: Include float+.h.
9419 (FUNC): Compare only SIZE bytes of the value.
9420 * lib/vasnprintf.c: Include float+.h.
9421 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
9422 SIZEOF_LDBL or SIZEOF_DBL bytes.
9423 * modules/isnan-nolibm (Files): Add lib/float+.h.
9424 * modules/isnanl-nolibm (Files): Add lib/float+.h.
9425 * modules/isnanl (Files): Add lib/float+.h.
9426 * modules/vasnprintf (Files): Add lib/float+.h.
9428 2007-03-24 Bruno Haible <bruno@clisp.org>
9430 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
9431 include isnanl-nolibm.h.
9433 2007-03-24 Bruno Haible <bruno@clisp.org>
9435 * tests/test-read-file.c (main): Don't produce spurious output for
9436 expected situations. Make the test fail if it encountered unexpected
9439 2007-03-24 Bruno Haible <bruno@clisp.org>
9441 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
9442 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
9444 2007-03-24 Bruno Haible <bruno@clisp.org>
9446 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
9448 2007-03-24 Bruno Haible <bruno@clisp.org>
9450 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
9451 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
9453 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
9454 * modules/utf8-ucs4: Turn into a symbolic link to module
9457 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
9459 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
9460 unistr/u8-mbtouc-unsafe.
9462 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
9463 * modules/utf16-ucs4: Turn into a symbolic link to module
9466 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
9468 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
9469 unistr/u16-mbtouc-unsafe.
9471 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
9472 * modules/ucs4-utf8: Turn into a symbolic link to module
9475 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
9476 * modules/ucs4-utf16: Turn into a symbolic link to module
9479 2007-03-24 Bruno Haible <bruno@clisp.org>
9481 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
9482 Enable the function only if HAVE_INLINE.
9483 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
9484 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
9485 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
9486 Enable the function only if HAVE_INLINE.
9487 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
9488 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
9489 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
9490 Enable the function only if HAVE_INLINE.
9491 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
9492 Enable the function only if HAVE_INLINE.
9493 * modules/utf8-ucs4: Update.
9494 * modules/utf8-ucs4-unsafe: Update.
9495 * modules/utf16-ucs4: Update.
9496 * modules/utf16-ucs4-unsafe: Update.
9497 * modules/ucs4-utf8: Update.
9498 * modules/ucs4-utf16: Update.
9500 2007-03-24 Bruno Haible <bruno@clisp.org>
9502 * lib/utf8-ucs4.h: Remove file.
9503 * lib/utf8-ucs4-unsafe.h: Remove file.
9504 * lib/utf16-ucs4.h: Remove file.
9505 * lib/utf16-ucs4-unsafe.h: Remove file.
9506 * lib/ucs4-utf8.h: Remove file.
9507 * lib/ucs4-utf16.h: Remove file.
9508 * lib/unistr.h: Include their previous contents.
9509 * m4/utf-ucs4.m4: Remove file.
9510 * m4/ucs4-utf.m4: Remove file.
9511 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
9512 (Depends-on): Add unistr/base.
9513 (configure.ac): Remove gl_UTF_UCS4.
9514 (Makefile.am): Update.
9515 (Include): Change to unistr.h.
9516 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
9517 (Depends-on): Add unistr/base.
9518 (configure.ac): Remove gl_UTF_UCS4.
9519 (Makefile.am): Update.
9520 (Include): Change to unistr.h.
9521 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
9522 (Depends-on): Add unistr/base.
9523 (configure.ac): Remove gl_UTF_UCS4.
9524 (Makefile.am): Update.
9525 (Include): Change to unistr.h.
9526 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
9527 (Depends-on): Add unistr/base.
9528 (configure.ac): Remove gl_UTF_UCS4.
9529 (Makefile.am): Update.
9530 (Include): Change to unistr.h.
9531 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
9532 (Depends-on): Add unistr/base.
9533 (configure.ac): Remove gl_UCS4_UTF.
9534 (Makefile.am): Update.
9535 (Include): Change to unistr.h.
9536 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
9537 (Depends-on): Add unistr/base.
9538 (configure.ac): Remove gl_UCS4_UTF.
9539 (Makefile.am): Update.
9540 (Include): Change to unistr.h.
9541 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
9542 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
9544 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
9545 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
9546 utf16-ucs4-unsafe.h.
9547 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
9548 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
9549 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
9550 * lib/unistr/u8-strchr.c: Likewise.
9551 * lib/unistr/u8-strrchr.c: Likewise.
9552 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
9553 * lib/unistr/u16-strchr.c: Likewise.
9554 * lib/unistr/u16-strrchr.c: Likewise.
9555 * lib/striconveh.c: Update.
9556 * lib/linebreak.c: Update.
9558 2007-03-24 Bruno Haible <bruno@clisp.org>
9560 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
9561 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
9563 2007-03-22 Bruno Haible <bruno@clisp.org>
9565 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
9567 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
9569 * MODULES.html.sh (File system functions): New module write-any-file.
9570 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
9571 * m4/write-any-file.m4: New files.
9573 2007-03-23 Eric Blake <ebb9@byu.net>
9575 * gnulib-tool: Rearrange space-tab sequences, since some editors
9578 2007-03-23 Eric Blake <ebb9@byu.net>
9580 * lib/version-etc.c (version_etc_va): Update license wording to
9581 be more concise. Recommended by Richard Stallman.
9583 2007-03-22 Bruno Haible <bruno@clisp.org>
9585 * lib/poll.c (MSG_PEEK): New fallback definition.
9587 2007-03-22 Bruno Haible <bruno@clisp.org>
9589 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
9590 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
9592 Fixes a compilation error on BeOS.
9594 2007-03-22 Bruno Haible <bruno@clisp.org>
9596 * modules/frexpl-tests: New file.
9597 * tests/test-frexpl.c: New file.
9599 * modules/frexpl: New file.
9600 * m4/frexpl.m4: New file.
9601 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
9602 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
9603 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
9604 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
9605 (Depends-on): Add frexpl. Remove isnanl-nolibm.
9606 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
9608 2007-03-22 Bruno Haible <bruno@clisp.org>
9610 * lib/frexpl.c: Share code with lib/frexp.c.
9611 * modules/mathl (Files): Add lib/frexp.c.
9612 (Depends-on): Add isnanl-nolibm.
9614 2007-03-22 Bruno Haible <bruno@clisp.org>
9616 * modules/printf-frexp (Files): Add m4/frexp.m4.
9617 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
9618 only if the found frexp function actually works.
9620 2007-03-22 Bruno Haible <bruno@clisp.org>
9622 * lib/frexp.c: Remove older implementation that uses divisions.
9624 2007-03-21 Bruno Haible <bruno@clisp.org>
9626 * modules/frexp-tests: New file.
9627 * tests/test-frexp.c: New file.
9629 * modules/frexp: New file.
9630 * lib/frexp.c: New file.
9631 * m4/frexp.m4: New file.
9632 * lib/math_.h (frexp): New declaration.
9633 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
9635 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
9637 2007-03-21 Bruno Haible <bruno@clisp.org>
9639 * modules/isnanl-tests: New file.
9640 * tests/test-isnanl.c: New file.
9642 * modules/isnanl: New file.
9643 * lib/isnanl.h: New file.
9644 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
9645 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
9646 gl_FUNC_ISNANL_WORKS.
9647 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
9650 2007-03-21 Bruno Haible <bruno@clisp.org>
9652 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
9655 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
9656 * lib/vasnprintf.c: Update.
9657 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
9658 tests/test-isnanl.h, remove tests/test-isnanl.c.
9659 (Makefile.am): Update.
9660 * tests/test-isnanl-nolibm.c: New file.
9661 * tests/test-isnanl.h: New file.
9662 * tests/test-isnanl.c: Remove file.
9664 2007-03-21 Jim Meyering <jim@meyering.net>
9666 When trying to open ".", treat ESTALE like EACCES.
9667 * lib/savewd.c (savewd_save): Resort to forking not just upon
9668 failure with EACCES, but also when errno is ESTALE.
9670 2007-03-20 Bruno Haible <bruno@clisp.org>
9672 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
9673 Needed on AIX 5.1. Reported by Matthew Woehlke.
9675 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
9677 Suggestions by Bruno Haible:
9678 * lib/acl-internal.h: Include "gettext.h" rather than rolling
9680 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
9681 * modules/acl (Depends-on): Add gettext.
9683 2007-03-19 Bruno Haible <bruno@clisp.org>
9685 * modules/iconvme: Remove file.
9686 * lib/iconvme.h: Remove file.
9687 * lib/iconvme.c: Remove file.
9688 * m4/iconvme.m4: Remove file.
9690 2007-03-19 Bruno Haible <bruno@clisp.org>
9692 * doc/relocatable-maint.texi: Break long shell script line.
9693 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
9695 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
9697 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
9698 handle file_has_acl.
9699 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
9700 * lib/acl.c: Move header inclusions and related macro defns into
9702 (S_ISLNK): Remove defn, since that's now done for us.
9703 (file_has_acl): Move to lib/file-has-acl.c.
9704 Call acl_trivial if available. This is the crucial part of the fix.
9705 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
9706 shared within the library. Rewrite a bit, partly to make it compatible
9707 with the GNU coding style.
9708 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
9709 Remove unnecessary double-quotes.
9710 Don't test for acl_to_text; the build will catch that.
9711 Replace acl_entries if it doesn't exist and it is needed.
9712 Check for -lsec and acl_trivial (as used on Solaris 10).
9713 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
9715 (Depends-on): Add sys_stat, for S_ISLNK.
9717 2007-03-19 Ben Pfaff <blp@gnu.org>
9719 * doc/gnulib.texi: Fix typos.
9720 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
9722 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
9724 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
9725 If size is zero here, buf must be zero.
9727 2007-03-19 Simon Josefsson <simon@josefsson.org>
9729 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
9732 2007-03-18 Bruno Haible <bruno@clisp.org>
9734 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
9735 Suggested by Eric Blake.
9737 2007-03-18 Ben Pfaff <blp@gnu.org>
9739 * doc/relocatable.texi: Recommend using as prefix a directory
9740 that does not exist and will never be created. Based on
9741 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
9744 2007-03-17 Bruno Haible <bruno@clisp.org>
9746 * lib/fchownat.c: Include lchown.h.
9748 2007-03-17 Bruno Haible <bruno@clisp.org>
9750 Fix endless loop when the given allocated size was > INT_MAX.
9751 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
9752 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
9753 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
9754 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
9755 * lib/sprintf.c (sprintf): Likewise.
9757 2007-03-17 Bruno Haible <bruno@clisp.org>
9759 * tests/test-argp-2.sh (func_compare): Output a context diff.
9761 2007-03-17 Bruno Haible <bruno@clisp.org>
9763 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
9764 locale's decimal-point character.
9766 2007-03-17 Bruno Haible <bruno@clisp.org>
9768 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
9769 before comparing it. Needed because on some platforms (e.g. x86) a
9770 'long double' occupies less bytes than sizeof (long double).
9772 2007-03-17 Bruno Haible <bruno@clisp.org>
9774 * tests/test-crc.c (main): Make printf statements 64-bit clean.
9775 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
9776 * tests/test-getaddrinfo.c (simple): Likewise.
9777 * tests/test-read-file.c (main): Likewise.
9779 2007-03-17 Bruno Haible <bruno@clisp.org>
9781 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
9783 2007-03-17 Bruno Haible <bruno@clisp.org>
9785 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
9788 2007-03-17 Bruno Haible <bruno@clisp.org>
9790 * tests/test-c-strcasecmp.c: Include c-strcase.h.
9791 * tests/test-c-strncasecmp.c: Likewise.
9793 2007-03-17 Bruno Haible <bruno@clisp.org>
9795 * modules/stdlib (Depends-on): Add unistd.
9796 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
9797 Needed for MacOS X 10.3.
9799 2007-03-17 Bruno Haible <bruno@clisp.org>
9801 * lib/unistr/u-strdup.h: Include <stdlib.h>.
9803 2007-03-17 Bruno Haible <bruno@clisp.org>
9805 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
9807 2007-03-17 Bruno Haible <bruno@clisp.org>
9809 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
9810 to reflect files copied from gnulib (with or without modifications).
9811 Suggested by Jim Meyering.
9813 2007-03-17 Eric Blake <ebb9@byu.net>
9815 * NEWS: Document stdlib change from 2007-02-18.
9817 2007-03-17 Jim Meyering <jim@meyering.net>
9819 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
9820 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
9821 someone uses a name containing shell meta-characters.
9822 Reported by Alfred M. Szmidt.
9824 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
9826 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
9828 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
9829 and copy gettext configuration files only if configure.ac contains
9830 a use of AM_GNU_GETTEXT_VERSION.
9832 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
9834 * build-aux/bootstrap (gnulib_name): New variable.
9835 (gnulib_tool_options): Use it.
9837 2007-03-13 Simon Josefsson <simon@josefsson.org>
9839 * tests/test-des.c: Use new namespace.
9841 2007-03-15 Bruno Haible <bruno@clisp.org>
9843 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
9844 Reported by James Youngman <jay@gnu.org>.
9846 2007-03-15 Bruno Haible <bruno@clisp.org>
9848 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
9849 declared prototype. Needed with cc on OSF/1 5.1.
9851 2007-03-15 Bruno Haible <bruno@clisp.org>
9853 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
9854 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
9855 (struct gl_list_implementation): Add dispose_fn argument to the
9856 'create_empty', 'create' methods.
9857 (struct gl_list_impl_base): Add field 'dispose_fn'.
9858 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
9860 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
9861 dispose_fn argument.
9862 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
9863 dispose_fn on the dropped values.
9864 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
9865 dispose_fn argument.
9866 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
9868 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
9869 (gl_tree_remove_node): Call dispose_fn on the dropped value.
9870 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
9871 (gl_tree_remove_node): Call dispose_fn on the dropped value.
9872 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
9874 (gl_tree_list_free): Call dispose_fn on the dropped values.
9875 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
9877 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
9878 Add dispose_fn argument.
9879 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
9880 Call dispose_fn on the dropped values.
9881 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
9882 Add dispose_fn argument.
9883 (gl_sublist_create): Initialize the 'dispose_fn' field.
9884 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
9885 * tests/test-array_list.c (main): Update.
9886 * tests/test-carray_list.c (main): Update.
9887 * tests/test-avltree_list.c (main): Update.
9888 * tests/test-rbtree_list.c (main): Update.
9889 * tests/test-avltreehash_list.c (main): Update.
9890 * tests/test-rbtreehash_list.c (main): Update.
9891 * tests/test-linked_list.c (main): Update.
9892 * tests/test-linkedhash_list.c (main): Update.
9893 * tests/test-array_oset.c (main): Update.
9895 2007-03-15 Bruno Haible <bruno@clisp.org>
9897 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
9898 (gl_oset_create_empty): Add dispose_fn argument.
9899 (struct gl_oset_implementation): Add dispose_fn argument to
9900 'create_empty' method.
9901 (struct gl_oset_impl_base): Add dispose_fn field.
9902 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
9903 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
9904 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
9906 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
9907 (gl_tree_oset_free): Call dispose_fn on the dropped values.
9908 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
9910 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
9912 * tests/test-array_oset.c (main): Update.
9913 * tests/test-avltree_oset.c (main): Update.
9914 * tests/test-rbtree_oset.c (main): Update.
9915 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
9917 2007-03-13 Bruno Haible <bruno@clisp.org>
9919 * tests/test-stdbool.c (i): Update after last patch.
9921 2007-03-12 Bruno Haible <bruno@clisp.org>
9923 * lib/quotearg.c: Include <wctype.h> early, before the definition of
9924 the iswprint macro. Needed on Solaris 2.5.1.
9926 2007-03-12 Bruno Haible <bruno@clisp.org>
9928 * tests/test-printf-frexp.c (main): Declare x as volatile.
9930 2007-03-12 Simon Josefsson <simon@josefsson.org>
9932 * doc/gnulib.texi (Build robot for gnulib): New section.
9934 2007-03-12 Jim Meyering <jim@meyering.net>
9936 * build-aux/bootstrap: New file.
9937 * build-aux/bootstrap.conf: New file, from coreutils.
9939 2007-03-11 Bruno Haible <bruno@clisp.org>
9941 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
9943 2007-03-12 Simon Josefsson <simon@josefsson.org>
9945 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
9946 avoid collisions with 'des_setkey'. Reported by Bruno Haible
9947 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
9949 2007-03-11 Bruno Haible <bruno@clisp.org>
9951 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
9952 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
9954 2007-03-11 Bruno Haible <bruno@clisp.org>
9956 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
9957 formula. Needed for SunPRO C 5.0.
9959 2007-03-11 Bruno Haible <bruno@clisp.org>
9961 * modules/long-options (Depends-on): Add getopt.
9963 2007-03-11 Bruno Haible <bruno@clisp.org>
9965 * modules/modechange (Depends-on): Add stdbool.
9967 2007-03-11 Bruno Haible <bruno@clisp.org>
9969 * modules/i-ring (Depends-on): Add stdbool.
9971 2007-03-11 Bruno Haible <bruno@clisp.org>
9973 * modules/gc-des (Depends-on): Add stdbool.
9975 2007-03-11 Bruno Haible <bruno@clisp.org>
9977 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
9979 2007-03-11 Bruno Haible <bruno@clisp.org>
9981 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
9983 2007-03-11 Bruno Haible <bruno@clisp.org>
9985 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
9987 2007-03-11 Bruno Haible <bruno@clisp.org>
9989 * lib/vasnprintf.c (sprintf): Undefine.
9991 2007-03-11 Bruno Haible <bruno@clisp.org>
9993 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
9994 initializers in SunPRO C and Compaq C compilers.
9996 2007-03-11 Bruno Haible <bruno@clisp.org>
9998 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
9999 decrementing code ANSI C compliant.
10001 2007-03-11 Bruno Haible <bruno@clisp.org>
10003 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
10004 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
10006 2007-03-11 Bruno Haible <bruno@clisp.org>
10008 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
10009 <stdbool.h> substitute doesn't pass.
10011 2007-03-11 Bruno Haible <bruno@clisp.org>
10013 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
10015 2007-03-11 Bruno Haible <bruno@clisp.org>
10017 * gnulib-tool (func_create_megatestdir): Create also an autobuild
10018 script, for submission to autobuild.josefsson.org.
10020 2007-03-10 Bruno Haible <bruno@clisp.org>
10022 * modules/canonicalize-lgpl-tests: New file.
10023 * tests/test-canonicalize-lgpl.sh: New file.
10024 * tests/test-canonicalize-lgpl.c: New file.
10026 * modules/c-strcase-tests: New file.
10027 * tests/test-c-strcase.sh: New file.
10028 * tests/test-c-strcasecmp.c: New file.
10029 * tests/test-c-strncasecmp.c: New file.
10031 * modules/atexit-tests: New file.
10032 * tests/test-atexit.sh: New file.
10033 * tests/test-atexit.c: New file.
10035 2007-03-10 Bruno Haible <bruno@clisp.org>
10037 * tests/test-binary-io.sh: Use temporary filenames that are not so
10038 likely to clash with those of other tests (in a parallel make).
10039 * tests/test-binary-io.c: Likewise.
10041 2007-03-10 Bruno Haible <bruno@clisp.org>
10043 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
10044 fallback; use #error instead.
10045 Suggested by Simon Josefsson.
10047 2007-03-10 Bruno Haible <bruno@clisp.org>
10049 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
10050 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
10051 first and the last.
10053 2007-03-10 Bruno Haible <bruno@clisp.org>
10055 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
10057 2007-03-10 Bruno Haible <bruno@clisp.org>
10059 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
10061 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
10062 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
10063 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
10065 2007-03-10 Bruno Haible <bruno@clisp.org>
10067 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
10069 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
10072 2007-03-09 Eric Blake <ebb9@byu.net>
10073 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
10075 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
10076 types are not being provided by gnulib.
10077 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
10078 types are supported.
10080 2007-03-10 Bruno Haible <bruno@clisp.org>
10082 * lib/stdio_.h (__attribute__): New macro.
10083 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
10084 vsprintf): Specify __attribute__ __format__ for GCC.
10085 Suggested by Eric Blake.
10087 2007-03-09 Bruno Haible <bruno@clisp.org>
10089 * modules/printf-posix-tests: New file.
10090 * tests/test-printf-posix.sh: New file.
10091 * tests/test-printf-posix.c: New file.
10093 * modules/printf-posix: New file.
10094 * lib/printf.c: New file.
10095 * m4/printf-posix-rpl.m4: New file.
10096 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
10098 * lib/stdio_.h (printf): New declaration.
10099 (format, __format__, ____printf____, ____scanf____, ____strftime____,
10100 ____strfmon____): New macros.
10101 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
10104 2007-03-09 Bruno Haible <bruno@clisp.org>
10106 * tests/test-vasnprintf-posix2.sh: New file.
10107 * tests/test-vasnprintf-posix2.c: New file.
10108 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
10109 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
10110 (Makefile.am): Activate test-vasnprintf-posix2.sh.
10112 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
10113 a locale dependent decimal point, rather than always '.'.
10115 2007-03-09 Eric Blake <ebb9@byu.net>
10117 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
10118 spite of platforms like Tandem/NSK that define it to -1.
10120 2007-03-08 Bruno Haible <bruno@clisp.org>
10122 * modules/vprintf-posix-tests: New file.
10123 * tests/test-vprintf-posix.sh: New file.
10124 * tests/test-vprintf-posix.c: New file.
10125 * tests/test-printf-posix.h: New file.
10127 * modules/vprintf-posix: New file.
10128 * lib/vprintf.c: New file.
10129 * m4/vprintf-posix.m4: New file.
10130 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
10132 * lib/stdio_.h (vprintf): New declaration.
10133 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
10136 2007-03-08 Bruno Haible <bruno@clisp.org>
10138 * modules/fprintf-posix-tests: New file.
10139 * tests/test-fprintf-posix.sh: New file.
10140 * tests/test-fprintf-posix.c: New file.
10142 * modules/fprintf-posix: New file.
10143 * lib/fprintf.c: New file.
10144 * m4/fprintf-posix.m4: New file.
10145 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
10147 * lib/stdio_.h (fprintf): New declaration.
10148 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
10151 2007-03-08 Bruno Haible <bruno@clisp.org>
10153 * modules/vfprintf-posix-tests: New file.
10154 * tests/test-vfprintf-posix.sh: New file.
10155 * tests/test-vfprintf-posix.c: New file.
10156 * tests/test-fprintf-posix.h: New file.
10157 * tests/test-fprintf-posix.out: New file.
10159 * modules/vfprintf-posix: New file.
10160 * lib/vfprintf.c: New file.
10161 * m4/vfprintf-posix.m4: New file.
10162 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
10164 * lib/stdio_.h (vfprintf): New declaration.
10165 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
10168 2007-03-08 Bruno Haible <bruno@clisp.org>
10170 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
10172 2007-03-08 Bruno Haible <bruno@clisp.org>
10174 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
10175 instead of 'expr' invocations.
10176 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10177 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10178 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10179 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10180 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10181 Suggested by Paul Eggert.
10183 2007-03-08 Bruno Haible <bruno@clisp.org>
10185 * modules/fseterr-tests: New file.
10186 * tests/test-fseterr.c: New file.
10188 * modules/fseterr: New file.
10189 * lib/fseterr.h: New file.
10190 * lib/fseterr.c: New file.
10192 2007-03-08 Bruno Haible <bruno@clisp.org>
10194 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
10195 * lib/getopt_.h: Likewise.
10196 * lib/mbswidth.h: Likewise.
10197 * lib/setenv.h: Likewise.
10198 * lib/vasnprintf.h: Likewise.
10199 * lib/vasprintf.h: Likewise.
10200 * lib/verror.h: Likewise.
10201 * lib/xsetenv.h: Likewise.
10202 * lib/xvasprintf.h: Likewise.
10204 2007-03-08 Jim Meyering <jim@meyering.net>
10206 * users.txt: Add parted.
10208 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
10210 2007-03-07 Bruno Haible <bruno@clisp.org>
10212 * m4/printf.m4: Make the shell script snippets copy&pastable.
10214 2007-03-02 Bruno Haible <bruno@clisp.org>
10216 * lib/netinet_in_.h: New file.
10217 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
10218 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
10219 * modules/netinet_in (Files): Add lib/netinet_in_.h.
10220 (Depends-on): Add absolute-header.
10221 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
10224 2007-03-03 Bruno Haible <bruno@clisp.org>
10226 * lib/sys_select_.h: New file.
10227 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
10228 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
10229 * modules/sys_select (Files): Add lib/sys_select_.h.
10230 (Depends-on): Add absolute-header.
10231 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
10234 2007-03-02 Bruno Haible <bruno@clisp.org>
10236 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
10237 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
10239 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
10240 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
10241 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
10242 * modules/sys_socket (Depends-on): Add absolute-header.
10243 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
10244 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
10245 (Include): Remove requirement of inclusion of <sys/types.h>.
10247 2007-03-02 Bruno Haible <bruno@clisp.org>
10249 * lib/byteswap_.h (bswap_32): Fix formula.
10251 2007-03-06 Bruno Haible <bruno@clisp.org>
10253 * modules/sprintf-posix-tests: New file.
10254 * tests/test-sprintf-posix.c: New file.
10256 * modules/sprintf-posix: New file.
10257 * lib/sprintf.c: New file.
10258 * m4/sprintf-posix.m4: New file.
10259 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
10261 * lib/stdio_.h (sprintf): New declaration.
10262 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
10265 2007-03-06 Bruno Haible <bruno@clisp.org>
10267 * modules/vsprintf-posix-tests: New file.
10268 * tests/test-vsprintf-posix.c: New file.
10269 * tests/test-sprintf-posix.h: New file.
10271 * modules/vsprintf-posix: New file.
10272 * lib/vsprintf.c: New file.
10273 * m4/vsprintf-posix.m4: New file.
10274 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
10276 * lib/stdio_.h (vsprintf): New declaration.
10277 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
10280 2007-03-06 Bruno Haible <bruno@clisp.org>
10282 * modules/vsnprintf (Depend-on): Remove minmax.
10284 2007-03-06 Bruno Haible <bruno@clisp.org>
10286 * modules/snprintf-posix-tests: New file.
10287 * tests/test-snprintf-posix.c: New file.
10289 * modules/snprintf-posix: New file.
10290 * m4/snprintf-posix.m4: New file.
10291 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
10293 (gl_FUNC_SNPRINTF): Invoke it.
10294 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
10295 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
10297 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
10299 2007-03-06 Bruno Haible <bruno@clisp.org>
10301 * modules/vsnprintf-posix-tests: New file.
10302 * tests/test-vsnprintf-posix.c: New file.
10303 * tests/test-snprintf-posix.h: New file.
10305 * modules/vsnprintf-posix: New file.
10306 * m4/vsnprintf-posix.m4: New file.
10307 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
10309 (gl_FUNC_VSNPRINTF): Invoke it.
10310 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
10311 * lib/stdio_.h (vsnprintf): Define as a replacement if
10312 REPLACE_VSNPRINTF is set.
10313 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
10315 2007-03-06 Bruno Haible <bruno@clisp.org>
10317 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
10318 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
10320 2007-03-06 Bruno Haible <bruno@clisp.org>
10322 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
10323 (asinl): Declare also if HAVE_DECL_ASINL is set.
10324 (atanl): Declare also if HAVE_DECL_ATANL is set.
10325 (ceill): Declare also if HAVE_DECL_CEILL is set.
10326 (cosl): Declare also if HAVE_DECL_COSL is set.
10327 (expl): Declare also if HAVE_DECL_EXPL is set.
10328 (floorl): Declare also if HAVE_DECL_FLOORL is set.
10329 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
10330 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
10331 (logl): Declare also if HAVE_DECL_LOGL is set.
10332 (sinl): Declare also if HAVE_DECL_SINL is set.
10333 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
10334 (tanl): Declare also if HAVE_DECL_TANL is set.
10335 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
10336 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
10337 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
10338 declaration of frexpl, ldexpl.
10339 * modules/printf-frexpl (Depends-on): Add math.
10340 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
10342 2007-03-05 Bruno Haible <bruno@clisp.org>
10344 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
10345 frexpl and ldexpl are declared.
10346 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
10348 2007-03-05 Bruno Haible <bruno@clisp.org>
10350 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
10351 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
10353 2007-03-05 Bruno Haible <bruno@clisp.org>
10355 * lib/stdio_.h: Include <stddef.h>.
10357 2007-03-05 Bruno Haible <bruno@clisp.org>
10359 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
10361 2007-03-05 Bruno Haible <bruno@clisp.org>
10363 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
10364 NetBSD 4, from Ralf Wildenhues.
10366 2007-03-04 Bruno Haible <bruno@clisp.org>
10368 * lib/vasprintf.h: Update #if logic for the case when the functions
10369 exist but are overridden.
10371 2007-03-04 Bruno Haible <bruno@clisp.org>
10373 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
10374 implementations: glibc-2.4 and MacOS X 10.3.
10375 * tests/test-vasnprintf-posix.c (test_function): Test also the case
10376 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
10377 * tests/test-vasprintf-posix.c (test_function): Likewise.
10379 2007-03-04 Bruno Haible <bruno@clisp.org>
10381 * modules/vasprintf-posix-tests: New file.
10382 * tests/test-vasprintf-posix.c: New file.
10384 * modules/vasprintf-posix: New file.
10385 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
10387 * m4/vasprintf-posix.m4: New file.
10388 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
10390 (gl_FUNC_VASPRINTF): Invoke it.
10391 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
10393 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
10395 2007-03-04 Bruno Haible <bruno@clisp.org>
10397 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
10398 REPLACE_GETTIMEOFDAY.
10399 * modules/sys_time (Makefile.am): Likewise.
10400 * m4/sys_time_h.m4: Likewise.
10401 * m4/gettimeofday.m4: Likewise.
10403 2007-03-04 Bruno Haible <bruno@clisp.org>
10405 * modules/vasnprintf-posix-tests: New file.
10406 * tests/test-vasnprintf-posix.c: New file.
10408 * modules/vasnprintf-posix: New file.
10409 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
10411 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
10412 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
10413 REPLACE_VASNPRINTF is defined.
10414 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
10415 gl_FUNC_VASNPRINTF.
10416 (gl_FUNC_VASNPRINTF): Invoke it.
10417 * m4/vasnprintf-posix.m4: New file.
10418 * m4/printf.m4: New file.
10420 2007-03-04 Bruno Haible <bruno@clisp.org>
10422 Compile progreloc.c only if --enable-relocatable is specified.
10423 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
10424 if --enable-relocatable was specified.
10425 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
10428 2007-03-04 Jim Meyering <jim@meyering.net>
10430 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
10431 Use it consistently, rather than enumerating errno constants.
10433 2007-03-04 Bruno Haible <bruno@clisp.org>
10435 * modules/xvasprintf-tests: New file.
10436 * tests/test-xvasprintf.c: New file.
10438 * modules/vasprintf-tests: New file.
10439 * tests/test-vasprintf.c: New file.
10441 * modules/vasnprintf-tests: New file.
10442 * tests/test-vasnprintf.c: New file.
10444 * modules/vsnprintf-tests: New file.
10445 * tests/test-vsnprintf.c: New file.
10447 * modules/snprintf-tests: New file.
10448 * tests/test-snprintf.c: New file.
10450 2007-03-04 Bruno Haible <bruno@clisp.org>
10452 Compile relocatable.c only if --enable-relocatable is specified.
10453 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
10454 gl_RELOCATABLE_LIBRARY.
10455 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
10456 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
10457 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
10458 gl_RELOCATABLE_LIBRARY.
10459 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
10460 (Makefile.am): Remove lib_SOURCES.
10461 * modules/relocatable-lib-lgpl (configure.ac): Invoke
10462 gl_RELOCATABLE_LIBRARY.
10463 (Makefile.am): Remove lib_SOURCES.
10464 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
10466 * modules/relocatable-prog-wrapper (configure.ac): Invoke
10467 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
10469 2007-03-04 Bruno Haible <bruno@clisp.org>
10471 * modules/argmatch-tests: New file.
10472 * tests/test-argmatch.c: New file.
10474 * tests/test-allocsa.c (main): Halve the number of loop runs.
10476 * modules/alloca-opt-tests: New file.
10477 * tests/test-alloca-opt.c: New file.
10479 2007-03-04 Jim Meyering <jim@meyering.net>
10481 Work around difference between Linux ACLs and Solaris 10 ZFS.
10482 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
10485 2007-03-03 Bruno Haible <bruno@clisp.org>
10487 * modules/relocatable-prog (Depends-on): Add back progreloc's
10488 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
10490 2007-03-03 Bruno Haible <bruno@clisp.org>
10492 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
10493 * modules/relocatable-lib: New file.
10495 2007-03-03 Bruno Haible <bruno@clisp.org>
10497 * modules/relocatable-prog: Renamed from modules/relocatable.
10498 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
10500 2007-03-03 Bruno Haible <bruno@clisp.org>
10502 * modules/relocatable-script (Files): Add doc/relocatable.texi,
10503 m4/relocatable-lib.m4.
10504 (Depends-on): Remove 'relocatable'.
10505 (configure.ac): Add gl_RELOCATABLE_NOP.
10507 2007-03-03 Bruno Haible <bruno@clisp.org>
10509 * modules/relocatable-prog-wrapper: New file.
10510 * modules/relocatable (Depends-on): Add it. Remove all other
10511 dependencies except progname.
10512 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
10514 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
10515 (gl_FUNC_STRERROR): Nop.
10516 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
10518 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
10519 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
10521 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
10522 (gl_FUNC_READLINK): Update.
10524 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
10526 2007-03-03 Bruno Haible <bruno@clisp.org>
10528 * lib/xreadlink.c: Include <unistd.h> unconditionally.
10529 * modules/xreadlink (Depends-on): Add unistd.
10530 * modules/xreadlink-with-size (Depends-on): Likewise.
10532 2007-03-03 Bruno Haible <bruno@clisp.org>
10534 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
10535 extracted from gt_FUNC_SETENV.
10536 (gt_FUNC_SETENV): Remove macro.
10537 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
10538 remove gt_FUNC_SETENV.
10540 2007-03-03 Bruno Haible <bruno@clisp.org>
10542 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
10543 ENABLE_RELOCATABLE here.
10544 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
10546 2007-03-03 Bruno Haible <bruno@clisp.org>
10548 * modules/rbtreehash-list-tests (Depends-on): Add progname.
10549 * tests/test-rbtreehash_list.c: Include progname.h.
10550 (main): Call set_program_name.
10552 * modules/rbtree-oset-tests (Depends-on): Add progname.
10553 * tests/test-rbtree_oset.c: Include progname.h.
10554 (main): Call set_program_name.
10556 * modules/rbtree-list-tests (Depends-on): Add progname.
10557 * tests/test-rbtree_list.c: Include progname.h.
10558 (main): Call set_program_name.
10560 * modules/linked-list-tests (Depends-on): Add progname.
10561 * tests/test-linked_list.c: Include progname.h.
10562 (main): Call set_program_name.
10564 2007-03-03 Bruno Haible <bruno@clisp.org>
10566 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
10567 All uses of __restrict changed to _Restrict_.
10568 * lib/glob_.h (__restrict): Remove macro.
10570 2007-03-02 Bruno Haible <bruno@clisp.org>
10572 * modules/gettext (configure.ac): Require gettext infrastructure
10573 from version 0.16.1.
10575 2007-03-02 Bruno Haible <bruno@clisp.org>
10577 * modules/linkedhash-list-tests (Depends-on): Add progname.
10578 * tests/test-linkedhash_list.c: Include progname.h.
10579 (main): Call set_program_name.
10581 * modules/carray-list-tests (Depends-on): Add progname.
10582 * tests/test-carray_list.c: Include progname.h.
10583 (main): Call set_program_name.
10585 * modules/avltreehash-list-tests (Depends-on): Add progname.
10586 * tests/test-avltreehash_list.c: Include progname.h.
10587 (main): Call set_program_name.
10589 * modules/avltree-oset-tests (Depends-on): Add progname.
10590 * tests/test-avltree_oset.c: Include progname.h.
10591 (main): Call set_program_name.
10593 * modules/avltree-list-tests (Depends-on): Add progname.
10594 * tests/test-avltree_list.c: Include progname.h.
10595 (main): Call set_program_name.
10597 * modules/array-oset-tests (Depends-on): Add progname.
10598 * tests/test-array_oset.c: Include progname.h.
10599 (main): Call set_program_name.
10601 * modules/array-list-tests (Depends-on): Add progname.
10602 * tests/test-array_list.c: Include progname.h.
10603 (main): Call set_program_name.
10605 * modules/argp-tests (Depends-on): Add progname.
10606 * tests/test-argp.c: Include argp.h first. Include progname.h.
10607 (main): Call set_program_name.
10609 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
10611 * doc/gnulib-tool.texi (Initial import): Reword description of
10612 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
10613 limited effect even if defined after the first system include.
10615 2007-03-01 Bruno Haible <bruno@clisp.org>
10617 * build-aux/config.libpath: Update to libtool-1.5.22.
10618 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10620 2007-03-01 Bruno Haible <bruno@clisp.org>
10622 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
10624 Reported by Ralf Wildenhues.
10626 2007-03-01 Bruno Haible <bruno@clisp.org>
10628 * build-aux/install-reloc: Remove object files left over by some
10630 Reported by Ralf Wildenhues.
10632 2007-03-01 Bruno Haible <bruno@clisp.org>
10634 * build-aux/install-reloc: Break long lines.
10636 2007-03-01 Bruno Haible <bruno@clisp.org>
10638 * doc/relocatable.texi: Document that it may not work on OpenBSD.
10639 Reported by Ralf Wildenhues.
10641 2007-03-01 Bruno Haible <bruno@clisp.org>
10643 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
10644 include ordering constraints.
10646 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
10648 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
10649 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
10650 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
10651 as another example.
10652 * lib/time_.h: Fix misspelling.
10653 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
10654 Require gl_HEADER_TIME_H_DEFAULTS.
10655 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
10656 * m4/time_r.m4 (gl_TIME_R): Likewise.
10657 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
10659 2007-03-01 Bruno Haible <bruno@clisp.org>
10661 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
10662 * m4/utimens.m4 (gl_UTIMENS): Likewise.
10664 2007-03-01 Jim Meyering <jim@meyering.net>
10666 * modules/xreadlink (Maintainer): Add my name.
10667 * modules/xreadlink-with-size (Depends-on): Alphabetize.
10669 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
10670 Bruno Haible <bruno@clisp.org>
10672 * build-aux/install-reloc: Compile also c-ctype.c.
10673 * build-aux/relocatable.sh.in: New file.
10674 * doc/relocatable.texi: New file.
10675 * doc/relocatable-maint.texi: New file.
10676 * doc/gnulib.texi: Include relocatable-maint.texi.
10677 * lib/progreloc.c: Include unistd.h unconditionally.
10678 * lib/relocwrapper.c: Include unistd.h unconditionally.
10680 (add_dotbin): Use c_tolower.
10681 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
10682 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
10683 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
10684 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
10685 to m4/relocatable-lib.m4.
10686 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
10687 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
10688 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
10689 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
10690 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
10691 * modules/relocatable: New file.
10692 * modules/relocatable-lib: New file.
10693 * modules/relocatable-script: New file.
10695 2007-02-28 Bruno Haible <bruno@clisp.org>
10697 Import --enable-relocatable infrastructure.
10698 * build-aux/config.libpath: New file, from GNU gettext.
10699 * build-aux/install-reloc: New file, from GNU gettext.
10700 * build-aux/reloc-ldflags: New file, from GNU gettext.
10701 * lib/relocatable.h: New file, from GNU gettext.
10702 * lib/relocatable.c: New file, from GNU gettext.
10703 * lib/relocwrapper.c: New file, from GNU gettext.
10704 * m4/relocatable.m4: New file, from GNU gettext.
10706 2007-02-28 Bruno Haible <bruno@clisp.org>
10708 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
10710 * modules/xreadlink: New file, from GNU gettext with modifications.
10711 * lib/xreadlink.c: New file, from GNU gettext.
10712 * lib/xreadlink.h: Add comments.
10713 (xreadlink): New declaration.
10715 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
10716 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
10717 lib/xreadlink-with-size.c.
10718 (configure.ac): Remove gl_XREADLINK invocation.
10719 (Makefile.am): Augment lib_SOURCES.
10720 * m4/xreadlink.m4: Remove file.
10721 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
10722 (xreadlink_with_size): Renamed from xreadink.
10723 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
10724 * modules/canonicalize (Depends-on): Replace xreadlink with
10725 xreadlink-with-size.
10726 * lib/canonicalize.c (canonicalize_filename_mode): Update.
10728 2007-02-25 Jim Meyering <jim@meyering.net>
10730 * build-aux/announce-gen: When complaining about excess arguments,
10733 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
10735 * README: Document signed integer overflow situation more
10738 2007-02-25 Bruno Haible <bruno@clisp.org>
10740 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
10741 'a' or 'A' conversion.
10743 2007-02-25 Bruno Haible <bruno@clisp.org>
10745 * modules/filename: Renamed from modules/pathname.
10746 (Files): Replace lib/pathname.h with lib/filename.h. Replace
10747 lib/concatpath.c with lib/concat-filename.c.
10748 (Makefile.am): Update.
10749 (Include): Replace pathname.h with filename.h.
10750 * lib/filename.h: Renamed from lib/pathname.h.
10751 (concatenated_filename): Renamed from concatenated_pathname.
10752 * lib/concat-filename.c: Renamed from lib/concatpath.c.
10753 (concatenated_filename): Renamed from concatenated_pathname.
10754 * lib/findprog.c: Include filename.h instead of pathname.h.
10755 (find_in_path): Update.
10756 * lib/javacomp.c: Include filename.h instead of pathname.h.
10757 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
10758 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
10759 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
10760 is_oldgcj_14_13_usable, is_javac_usable): Update.
10761 * lib/javaexec.c: Include filename.h instead of pathname.h.
10762 (execute_java_class): Update.
10763 * modules/findprog: Update.
10764 * modules/javacomp: Update.
10765 * modules/javaexec: Update.
10766 * MODULES.html.sh (File system functions): Add 'filename', remove
10769 2007-02-25 Bruno Haible <bruno@clisp.org>
10771 * modules/printf-frexpl-tests: New file.
10772 * tests/test-printf-frexpl.c: New file.
10774 * modules/printf-frexpl: New file.
10775 * lib/printf-frexpl.h: New file.
10776 * lib/printf-frexpl.c: New file.
10777 * m4/printf-frexpl.m4: New file.
10779 2007-02-25 Bruno Haible <bruno@clisp.org>
10781 * modules/printf-frexp-tests: New file.
10782 * tests/test-printf-frexp.c: New file.
10784 * modules/printf-frexp: New file.
10785 * lib/printf-frexp.h: New file.
10786 * lib/printf-frexp.c: New file.
10787 * m4/printf-frexp.m4: New file.
10789 2007-02-25 Bruno Haible <bruno@clisp.org>
10791 Assume automake >= 1.10 for the tests.
10792 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
10793 * modules/arctwo-tests: Likewise.
10794 * modules/argp-tests: Likewise.
10795 * modules/avltree-list-tests: Likewise.
10796 * modules/avltree-oset-tests: Likewise.
10797 * modules/avltreehash-list-tests: Likewise.
10798 * modules/carray-list-tests: Likewise.
10799 * modules/crc-tests: Likewise.
10800 * modules/des-tests: Likewise.
10801 * modules/gc-arcfour-tests: Likewise.
10802 * modules/gc-arctwo-tests: Likewise.
10803 * modules/gc-des-tests: Likewise.
10804 * modules/gc-hmac-md5-tests: Likewise.
10805 * modules/gc-hmac-sha1-tests: Likewise.
10806 * modules/gc-md2-tests: Likewise.
10807 * modules/gc-md4-tests: Likewise.
10808 * modules/gc-md5-tests: Likewise.
10809 * modules/gc-pbkdf2-sha1-tests: Likewise.
10810 * modules/gc-rijndael-tests: Likewise.
10811 * modules/gc-sha1-tests: Likewise.
10812 * modules/gc-tests: Likewise.
10813 * modules/getaddrinfo-tests: Likewise.
10814 * modules/hmac-md5-tests: Likewise.
10815 * modules/hmac-sha1-tests: Likewise.
10816 * modules/linked-list-tests: Likewise.
10817 * modules/linkedhash-list-tests: Likewise.
10818 * modules/lock-tests: Likewise.
10819 * modules/md2-tests: Likewise.
10820 * modules/md4-tests: Likewise.
10821 * modules/md5-tests: Likewise.
10822 * modules/rbtree-list-tests: Likewise.
10823 * modules/rbtree-oset-tests: Likewise.
10824 * modules/rbtreehash-list-tests: Likewise.
10825 * modules/read-file-tests: Likewise.
10826 * modules/rijndael-tests: Likewise.
10827 * modules/stdint-tests: Likewise.
10828 * modules/tls-tests: Likewise.
10830 2007-02-24 Bruno Haible <bruno@clisp.org>
10832 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
10833 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
10834 function; instead check whether isnan with a double argument links.
10835 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
10836 function; instead check whether isnan with a 'long double' argument
10838 Reported by Eric Blake <ebb9@byu.net>.
10840 2007-02-24 Bruno Haible <bruno@clisp.org>
10842 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
10844 * lib/isnanl.c: Remove all code. Just include isnan.c.
10845 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
10847 2007-02-25 Jim Meyering <jim@meyering.net>
10849 Avoid conflicting types for 'unsetenv' on FreeBSD.
10850 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
10851 conflicting with FreeBSD's (5.0 and 6.1) function declaration
10854 2007-02-24 Bruno Haible <bruno@clisp.org>
10856 * modules/isnanl-nolibm-tests: New file.
10857 * tests/test-isnanl.c: New file.
10859 * modules/isnanl-nolibm: New file.
10860 * lib/isnanl.h: New file.
10861 * lib/isnanl.c: New file.
10862 * m4/isnanl.m4: New file.
10864 2007-02-24 Bruno Haible <bruno@clisp.org>
10866 * modules/isnan-nolibm-tests: New file.
10867 * tests/test-isnan.c: New file.
10869 * modules/isnan-nolibm: New file.
10870 * lib/isnan.h: New file.
10871 * lib/isnan.c: New file.
10872 * m4/isnan.m4: New file.
10874 2007-02-24 Bruno Haible <bruno@clisp.org>
10876 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
10877 assume that an exponent fits in 20 bits.
10879 2007-02-24 Jim Meyering <jim@meyering.net>
10881 * m4/regex.m4: Update the description of the configure-time option,
10882 --without-included-regex, to state accurately what the defaults are,
10883 and perhaps to give people an idea why using this option is risky.
10885 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
10887 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
10888 loops on small arguments. This attempts to avoid the problem
10889 Bruno Haible reported for AIX 4.3.2 in
10890 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
10892 2007-02-23 Bruno Haible <bruno@clisp.org>
10894 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
10895 Needed for help2man.
10897 2007-02-23 Karl Berry <karl@gnu.org>
10899 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
10900 exists, foo.h should be cvs-ignored, not committed.
10902 2007-02-23 Eric Blake <ebb9@byu.net>
10904 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
10905 * lib/stat-time.h (includes): Likewise.
10906 * lib/utimecmp.c (includes): Likewise.
10907 * lib/utimens.h (includes): Likewise.
10908 * lib/getdate.y (includes): Also include "timespec.h" for use
10909 internal to the module.
10910 * modules/utimens (Depends-on): Revert yesterday's patch.
10911 * modules/nanosleep (Depends-on): Add missing dependency.
10913 2007-02-22 Bruno Haible <bruno@clisp.org>
10915 * lib/glob.c: Don't include getlogin_r.h.
10917 2007-02-22 Jim Meyering <jim@meyering.net>
10919 * modules/utimens (Depends-on): Add timespec, required for
10920 utimens.h's inclusion of timespec.h.
10922 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
10924 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
10925 long unreadable paths in GNU/Linux. Problem reported by Andreas
10927 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
10928 I'll try to think of a better way to fix the Solaris problem.
10930 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
10931 like glibc; on Solaris 10, it fails with errno == EINVAL.
10932 POSIX says the behavior is unspecified if the first argument is NULL,
10933 so play it safe and never pass NULL to the system getcwd.
10935 2007-02-21 Jim Meyering <jim@meyering.net>
10937 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
10938 of gettimeofday. It would conflict with the one now always
10939 provided via sys_time_.h. Reported by Matthew Woehlke, as
10940 an IRIX 6.5 build failure.
10942 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
10944 Minor fixups to port to Solaris 10 with Sun C 5.8.
10945 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
10946 * modules/getcwd (Depends-on): Add dirfd.
10947 * lib/putenv.c (putenv): #undef it.
10948 (rpl_putenv): New decl.
10949 (malloc, free): Include <stdlib.h> rather than prototyping separately.
10951 2007-02-20 Bruno Haible <bruno@clisp.org>
10953 * modules/stdio-tests: New file.
10954 * tests/test-stdio.c: New file.
10956 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
10957 (Depends-on): Add stdio.
10958 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10959 (Include): Use <stdio.h> instead of vsnprintf.h.
10960 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
10961 HAVE_DECL_VSNPRINTF.
10962 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
10964 * modules/snprintf (Files): Remove lib/snprintf.h.
10965 (Depends-on): Add stdio.
10966 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10967 (Include): Use <stdio.h> instead of snprintf.h.
10968 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
10969 HAVE_DECL_SNPRINTF.
10970 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
10971 * lib/getaddrinfo.c: Likewise.
10973 * modules/stdio: New file.
10974 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
10975 * lib/snprintf.h: Remove file.
10976 * lib/vsnprintf.h: Remove file.
10977 * lib/.cppi-disable: Remove snprintf.h.
10978 * m4/stdio_h.m4: New file.
10979 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
10981 2007-02-20 Jim Meyering <jim@meyering.net>
10983 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
10984 used by e.g., mingw. From Bruno Haible.
10986 2007-02-19 Bruno Haible <bruno@clisp.org>
10988 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
10990 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10992 2007-02-19 Bruno Haible <bruno@clisp.org>
10994 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
10997 2007-02-19 Bruno Haible <bruno@clisp.org>
10999 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
11001 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
11003 2007-02-19 Jim Meyering <jim@meyering.net>
11005 Don't use FD after a successful "fdopendir (fd)".
11006 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
11007 Reset it by calling dirfd on the just-obtained DIR*.
11009 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
11010 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
11012 2007-02-18 Bruno Haible <bruno@clisp.org>
11014 * lib/readlink.c: Include <unistd.h>.
11015 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
11017 * modules/readlink (Depends-on): Add unistd.
11018 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11019 (Include): Add <unistd.h>.
11021 * lib/getlogin_r.h: Remove file.
11022 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
11023 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
11024 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
11025 HAVE_DECL_GETLOGIN_R.
11026 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
11027 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11028 (Include): Use <unistd.h> instead of getlogin_r.h.
11030 * lib/getcwd.h: Remove file.
11031 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
11032 * lib/xgetcwd.c: Likewise.
11033 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
11034 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
11035 * modules/getcwd (Files): Remove lib/getcwd.h.
11036 (Depends-on): Add unistd.
11037 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11038 (Include): Use <unistd.h> instad of getcwd.h.
11040 * lib/ftruncate.c: Include <unistd.h> first.
11041 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
11042 Set HAVE_FTRUNCATE.
11043 * modules/ftruncate (Depends-on): Add unistd.
11044 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11046 * lib/fchdir.c: Include <unistd.h> first.
11047 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
11048 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
11049 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
11050 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11051 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
11053 * lib/dup2.c: Include <unistd.h> first.
11054 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
11056 * modules/dup2 (Depends-on): Add unistd.
11057 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11059 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
11060 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
11061 REPLACE_CHOWN. Don't define chown as a macro here.
11062 * modules/chown (Depends-on): Add unistd.
11063 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11065 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
11066 Add definition for GL_LINK_WARNING.
11067 (chown, dup2): New declarations.
11068 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
11070 (ftruncate): New declaration.
11071 (getcwd): New declaration, taken from old getcwd.h.
11072 (getlogin_r): New declaration, taken from old getlogin_r.h.
11073 (readlink): New declaration.
11074 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
11075 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
11076 (gl_PREREQ_UNISTD): Remove macro.
11077 (gl_UNISTD_MODULE_INDICATOR): New macro.
11078 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
11079 many new variables. Don't set UNISTD_H.
11080 * modules/unistd (Description): Change.
11081 (Depends-on): Add link-warning.
11082 (configure.ac): Update.
11083 (Makefile.am): Create unistd.h always. Substitute many new variables
11086 2007-02-18 Bruno Haible <bruno@clisp.org>
11088 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
11089 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
11091 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
11092 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
11093 * lib/getsubopt.h: Remove file.
11094 * modules/getsubopt (Files): Remove lib/getsubopt.h.
11095 (Depends-on): Add stdlib.
11096 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11097 (Includes): Use <stdlib.h> instead of getsubopt.h.
11098 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
11099 Set HAVE_GETSUBOPT.
11100 * lib/getsubopt.c: Don't include getsubopt.h.
11102 2007-02-18 Bruno Haible <bruno@clisp.org>
11104 * modules/fchdir (Depends-on): Add dup2.
11106 2007-02-18 Bruno Haible <bruno@clisp.org>
11108 * lib/stdlib_.h: Handle glibc's special invocation convention
11111 2007-02-18 Bruno Haible <bruno@clisp.org>
11113 * modules/stdlib-tests: New file.
11114 * tests/test-stdlib.c: New file.
11116 * modules/mkstemp (Files): Remove lib/mkstemp.h.
11117 (Depends-on): Add stdlib.
11118 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11119 (Includes): Use <stdlib.h> instead of mkstemp.h.
11120 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
11121 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
11122 * lib/mkstemp.c: Don't include mkstemp.h.
11123 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
11124 * lib/stdlib--.h: Don't include mkstemp.h.
11126 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
11127 (Depends-on): Add stdlib.
11128 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11129 (Includes): Use <stdlib.h> instead of mkdtemp.h.
11130 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
11132 * lib/mkdtemp.c: Don't include mkdtemp.h.
11133 * lib/clean-temp.c: Don't include mkdtemp.h.
11135 * modules/exit (Files): Remove lib/exit.h.
11136 (Depends-on): Add stdlib.
11137 (Makefile.am): Remove lib_SOURCES.
11138 (Include): Use <stdlib.h> instead of exit.h.
11139 * lib/argmatch.c: Don't include exit.h.
11140 * lib/execute.c: Likewise.
11141 * lib/pagealign_alloc.c: Likewise.
11142 * lib/pipe.c: Likewise.
11143 * lib/wait-process.c: Likewise.
11144 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
11145 * lib/exitfail.c: Likewise.
11146 * lib/savewd.c: Likewise.
11147 * lib/xsetenv.c: Likewise.
11149 * modules/stdlib: New file.
11150 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
11151 and extra comments about mkstemp().
11152 * lib/exit.h: Remove file.
11153 * lib/mkdtemp.h: Remove file.
11154 * lib/mkstemp.h: Remove file.
11155 * m4/stdlib_h.m4: New file.
11156 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
11158 2007-02-18 Bruno Haible <bruno@clisp.org>
11160 * modules/math-tests: New file.
11161 * tests/test-math.c: New file.
11163 * modules/math: New file.
11164 * modules/mathl (Files): Remove lib/mathl.h.
11165 (Depends-on): Add math.
11166 (Makefile.am): Don't mention mathl.h.
11167 (Include): Use <math.h> instead of mathl.h.
11168 * lib/math_.h: New file.
11169 * lib/mathl.h: Remove file.
11170 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
11172 * lib/asinl.c: Likewise.
11173 * lib/atanl.c: Likewise.
11174 * lib/ceill.c: Likewise.
11175 * lib/cosl.c: Likewise.
11176 * lib/expl.c: Likewise.
11177 * lib/floorl.c: Likewise.
11178 * lib/frexpl.c: Likewise.
11179 * lib/ldexpl.c: Likewise.
11180 * lib/logl.c: Likewise.
11181 * lib/sincosl.c: Likewise.
11182 * lib/sinl.c: Likewise.
11183 * lib/sqrtl.c: Likewise.
11184 * lib/tanl.c: Likewise.
11185 * lib/trigl.c: Likewise.
11186 * m4/math_h.m4: New file.
11187 * MODULES.html.sh (Mathematics): Add math.
11189 2007-02-17 Bruno Haible <bruno@clisp.org>
11191 * modules/wctype-tests: New file.
11192 * tests/test-wctype.c: New file.
11194 * modules/wchar-tests: New file.
11195 * tests/test-wchar.c: New file.
11197 * modules/unistd-tests: New file.
11198 * tests/test-unistd.c: New file.
11200 * modules/time-tests: New file.
11201 * tests/test-time.c: New file.
11203 * modules/sysexits-tests: New file.
11204 * tests/test-sysexits.c: New file.
11206 * modules/sys_time-tests: New file.
11207 * tests/test-sys_time.c: New file.
11209 * modules/sys_stat-tests: New file.
11210 * tests/test-sys_stat.c: New file.
11212 * modules/sys_socket-tests: New file.
11213 * tests/test-sys_socket.c: New file.
11215 * modules/sys_select-tests: New file.
11216 * tests/test-sys_select.c: New file.
11218 * modules/string-tests: New file.
11219 * tests/test-string.c: New file.
11221 * modules/stdbool-tests: New file.
11222 * tests/test-stdbool.c: New file.
11224 * modules/netinet_in-tests: New file.
11225 * tests/test-netinet_in.c: New file.
11227 * modules/inttypes-tests: New file.
11228 * tests/test-inttypes.c: New file.
11230 * modules/fcntl-tests: New file.
11231 * tests/test-fcntl.c: New file.
11233 * modules/byteswap-tests: New file.
11234 * tests/test-byteswap.c: New file.
11236 * modules/arpa_inet-tests: New file.
11237 * tests/test-arpa_inet.c: New file.
11239 2007-02-17 Bruno Haible <bruno@clisp.org>
11241 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
11242 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
11243 if the corresponding module is not enabled. Emit link warnings if
11244 the function is used nevertheless.
11245 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
11246 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
11247 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
11248 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
11249 * modules/inttypes (Depends-on): Add link-warning.
11250 (Makefile.am): Copy the contents of build-aux/link-warning.h into
11251 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
11252 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
11253 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
11254 * modules/imaxdiv (configure.ac): Likewise.
11255 * modules/strtoimax (configure.ac): Likewise.
11256 * modules/strtoumax (configure.ac): Likewise.
11258 2007-02-17 Bruno Haible <bruno@clisp.org>
11260 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
11261 gl_STRING_MODULE_INDICATOR_DEFAULTS.
11262 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
11263 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
11265 2007-02-17 Bruno Haible <bruno@clisp.org>
11267 * modules/link-warning: New file.
11268 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
11269 * lib/string_.h (GL_LINK_WARNING): Remove definition.
11270 * modules/string (Depends-on): Add link-warning.
11271 (Makefile.am): Copy the contents of build-aux/link-warning.h into
11273 * MODULES.html.sh (Support for building libraries and executables): Add
11276 2007-02-17 Bruno Haible <bruno@clisp.org>
11278 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
11279 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
11280 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
11283 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
11284 Bruno Haible <bruno@clisp.org>
11286 * modules/tmpfile: New file.
11287 * lib/tmpfile.c: New file.
11288 * m4/tmpfile.m4: New file.
11289 * MODULES.html.sh (func_all_modules): New section "Input/output".
11291 2007-02-15 Bruno Haible <bruno@clisp.org>
11293 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
11294 (supports_delete_on_close): New function.
11295 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
11297 2007-02-14 Bruno Haible <bruno@clisp.org>
11299 * modules/mbspcasecmp-tests: New file.
11300 * tests/test-mbspcasecmp.sh: New file.
11301 * tests/test-mbspcasecmp.c: New file.
11303 New module mbspcasecmp.
11304 * modules/mbspcasecmp: New file.
11305 * lib/mbspcasecmp.c: New file.
11306 * lib/string_.h (strncasecmp): Change warning message.
11307 (mbspcasecmp): New declaration.
11308 * m4/mbspcasecmp.m4: New file.
11309 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11310 GNULIB_MBSPCASECMP.
11311 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
11312 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
11314 2007-02-14 Bruno Haible <bruno@clisp.org>
11316 * modules/mbsncasecmp-tests: New file.
11317 * tests/test-mbsncasecmp.sh: New file.
11318 * tests/test-mbsncasecmp.c: New file.
11320 New module mbsncasecmp.
11321 * modules/mbsncasecmp: New file.
11322 * lib/mbsncasecmp.c: New file.
11323 * lib/string_.h (mbsncasecmp): New declaration.
11324 * m4/mbsncasecmp.m4: New file.
11325 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11326 GNULIB_MBSNCASECMP.
11327 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
11328 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
11330 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
11332 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
11333 Verify that it doesn't overlap with our flags.
11334 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
11335 do not have the desired effect in multibyte locales; instead, use
11337 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
11338 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
11339 we don't require GNU fnmatch ourselves (if our users require it, they
11340 should do so explicitly).
11342 Fix regex code so it doesn't rely on strcasecmp.
11343 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
11344 Otherwise, include gnulib's langinfo.h.
11345 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
11346 undesirable behavior in non-C locales. Instead, rely on localecharset.
11347 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
11348 * modules/regex (FILES): Remove m4/codeset.m4.
11349 (Depends-on): Add localcharset. Remove strcase.
11351 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11353 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
11354 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11356 2007-02-13 Bruno Haible <bruno@clisp.org>
11358 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
11359 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11361 2007-02-12 Bruno Haible <bruno@clisp.org>
11363 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
11364 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
11365 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
11366 time warning rather than a link error.
11368 2007-02-12 Bruno Haible <bruno@clisp.org>
11370 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
11371 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11372 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11374 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
11376 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
11379 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
11381 New module 'time', so that apps can include <time.h> as per
11382 POSIX and GNU instead of separate include files like time_r.h
11383 and timegm.h. This implementation tries out a simpler approach
11384 for replacing decls in standard include files (as compared to
11385 the string module), somewhat as an experiment.
11387 * config/srclist.txt: Comment out mktime.c for now.
11388 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
11389 since it doesn't apply any more. Use generic wording instead.
11390 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
11392 * lib/time_.h, m4/time_h.m4, modules/time: New files.
11393 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
11394 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
11395 Don't include <sys/types.h>; no longer needed since we assume C89.
11396 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
11397 * lib/strftime.c: Likewise.
11398 * lib/time_r.c: Likewise.
11399 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
11400 * lib/nanosleep.c: Include <time.h> first, to check interface.
11401 * lib/strptime.c: Likewise.
11402 * lib/time_r.c: Likewise.
11403 * lib/timegm.c: Likewise.
11404 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
11406 * lib/timegm.c: Don't include timegm.h; no longer needed.
11407 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
11408 time.h now handles any problems in that area.
11409 (struct timespec, nanosleep): Remove; time.h now arranges for these.
11410 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
11411 that time.h defines struct timespec.
11412 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
11413 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
11415 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
11416 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
11417 needed. Set REPLACE_LOCALTIME.
11418 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
11419 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
11420 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
11421 nanosleep; time_h.m4 now does that. Don't require
11422 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
11423 module handles this now.
11424 * modules/getdate (Depends-on): Remove timespec. Add time.
11425 * modules/nanosleep (Depends-on): Likewise.
11426 * modules/stat-time (Depends-on): Likewise.
11427 * modules/nanosleep (Include): Include time.h, not timespec.h.
11428 * modules/strptime (Files): Remove lib/strptime.h.
11429 (Depends-on): Add extensions, time.
11430 (Include): Include time.h, not strptime.h.
11431 * modules/time_r (Files): Remove lib/time_r.h.
11432 (Depends-on): Add time.
11433 (Include): Include time.h, not time_r.h.
11434 * modules/timegm: Likewise.
11435 * modules/timespec (Description): Now does timespec-related decls
11436 of our own, instead of struct timespec itself.
11437 (Depends-on): Add time; remove extensions.
11438 (Maintainer): Add self.
11439 * modules/utimecmp (Depends-on): Add time; remove timespec.
11440 * modules/utimens (Depends-on): Likewise.
11441 * modules/xnanosleep (Depends-on): Likewise.
11443 2007-02-11 Bruno Haible <bruno@clisp.org>
11445 * lib/c-strstr.c: Include allocsa.h.
11446 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
11447 * lib/c-strcasestr.c: Include allocsa.h.
11448 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
11449 * lib/strcasestr.c: Include allocsa.h.
11450 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
11451 * lib/mbsstr.c: Include allocsa.h.
11452 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
11453 allocsa/freesa instead of malloc/free.
11454 * lib/mbscasestr.c: Include allocsa.h.
11455 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
11456 allocsa/freesa instead of malloc/free.
11457 * modules/c-strstr (Depends-on): Add allocsa.
11458 * modules/c-strcasestr (Depends-on): Likewise.
11459 * modules/strcasestr (Depends-on): Likewise.
11460 * modules/mbsstr (Depends-on): Likewise.
11461 * modules/mbscasestr (Depends-on): Likewise.
11463 2007-02-11 Bruno Haible <bruno@clisp.org>
11465 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
11467 * modules/mbsspn-tests: New file.
11468 * tests/test-mbsspn.sh: New file.
11469 * tests/test-mbsspn.c: New file.
11471 2007-02-11 Bruno Haible <bruno@clisp.org>
11473 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
11475 * modules/mbspbrk-tests: New file.
11476 * tests/test-mbspbrk.sh: New file.
11477 * tests/test-mbspbrk.c: New file.
11479 2007-02-11 Bruno Haible <bruno@clisp.org>
11481 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
11484 * modules/mbscspn-tests: New file.
11485 * tests/test-mbscspn.sh: New file.
11486 * tests/test-mbscspn.c: New file.
11488 2007-02-11 Bruno Haible <bruno@clisp.org>
11490 * modules/mbscasecmp-tests: New file.
11491 * tests/test-mbscasecmp.sh: New file.
11492 * tests/test-mbscasecmp.c: New file.
11494 2007-02-11 Bruno Haible <bruno@clisp.org>
11496 Ensure O(n) worst-case complexity of mbscasestr.
11497 * lib/mbscasestr.c: Include stdbool.h.
11498 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
11500 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
11501 the bookkeeping indicates that it's worth it.
11502 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
11504 * modules/mbscasestr-tests: New file.
11505 * tests/test-mbscasestr1.c: New file.
11506 * tests/test-mbscasestr2.sh: New file.
11507 * tests/test-mbscasestr2.c: New file.
11508 * tests/test-mbscasestr3.sh: New file.
11509 * tests/test-mbscasestr3.c: New file.
11510 * tests/test-mbscasestr4.sh: New file.
11511 * tests/test-mbscasestr4.c: New file.
11512 * m4/locale-tr.m4: New file.
11514 2007-02-11 Bruno Haible <bruno@clisp.org>
11516 Ensure O(n) worst-case complexity of mbsstr.
11517 * lib/mbsstr.c: Include stdbool.h.
11518 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
11520 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
11521 bookkeeping indicates that it's worth it.
11522 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
11524 * modules/mbsstr-tests: New file.
11525 * tests/test-mbsstr1.c: New file.
11526 * tests/test-mbsstr2.sh: New file.
11527 * tests/test-mbsstr2.c: New file.
11528 * tests/test-mbsstr3.sh: New file.
11529 * tests/test-mbsstr3.c: New file.
11530 * m4/locale-fr.m4: New file.
11532 2007-02-11 Bruno Haible <bruno@clisp.org>
11534 * lib/mbsrchr.c (mbsrchr): Fix bug.
11536 * modules/mbsrchr-tests: New file.
11537 * tests/test-mbsrchr.sh: New file.
11538 * tests/test-mbsrchr.c: New file.
11540 2007-02-11 Bruno Haible <bruno@clisp.org>
11542 * lib/mbschr.c (mbschr): Fix bug.
11544 * modules/mbschr-tests: New file.
11545 * tests/test-mbschr.sh: New file.
11546 * tests/test-mbschr.c: New file.
11547 * m4/locale-zh.m4: New file.
11549 2007-02-11 Bruno Haible <bruno@clisp.org>
11551 Support for copying multibyte string iterators.
11552 * lib/mbiter.h: Include <string.h>.
11553 (mbiter_multi_copy): New function.
11554 (mbi_copy): New macro.
11555 * lib/mbuiter.h: Include <string.h>.
11556 (mbuiter_multi_copy): New function.
11557 (mbui_copy): New macro.
11559 2007-02-11 Bruno Haible <bruno@clisp.org>
11562 * modules/mbslen: New file.
11563 * lib/mbslen.c: New file.
11564 * lib/string_.h (mbslen): New declaration.
11565 * m4/mbslen.m4: New file.
11566 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11568 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
11569 * MODULES.html.sh (Internationalization functions): Add mbslen.
11571 2007-02-11 Bruno Haible <bruno@clisp.org>
11573 Ensure O(n) worst-case complexity of strcasestr substitute.
11574 * lib/strcasestr.c: Include stdbool.h.
11575 (knuth_morris_pratt): New function.
11576 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
11577 bookkeeping indicates that it's worth it.
11578 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
11580 * modules/strcasestr-tests: New file.
11581 * tests/test-strcasestr.c: New file.
11583 2007-02-11 Bruno Haible <bruno@clisp.org>
11585 Ensure O(n) worst-case complexity of c_strcasestr.
11586 * lib/c-strcasestr.c: Include stdbool.h, string.h.
11587 (knuth_morris_pratt): New function.
11588 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
11589 the bookkeeping indicates that it's worth it.
11590 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
11592 * modules/c-strcasestr-tests: New file.
11593 * tests/test-c-strcasestr.c: New file.
11595 2007-02-11 Bruno Haible <bruno@clisp.org>
11597 Ensure O(n) worst-case complexity of c_strstr.
11598 * lib/c-strstr.c: Include stdbool.h, string.h.
11599 (knuth_morris_pratt): New function.
11600 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
11601 bookkeeping indicates that it's worth it.
11602 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
11604 * lib/c-strstr.c: Complete rewrite for maintainability.
11606 * modules/c-strstr-tests: New file.
11607 * tests/test-c-strstr.c: New file.
11609 2007-02-11 Bruno Haible <bruno@clisp.org>
11611 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
11612 5.2.1 and earlier, whereby \055 was treated just like the range
11614 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11616 2007-02-08 Bruno Haible <bruno@clisp.org>
11618 * modules/regex (Depends-on): Add stdbool.
11619 Reported by Dalibor Topic <robilad@kaffe.org>.
11621 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
11623 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
11624 Prefer returning from main to exiting from it.
11625 Remove unnecessary parens after sizeof.
11627 2007-02-05 Bruno Haible <bruno@clisp.org>
11630 * modules/mbssep: New file.
11631 * lib/mbssep.c: New file.
11632 * lib/string_.h (strsep): Add a conditional link warning.
11633 (mbssep): New declaration.
11634 * m4/mbssep.m4: New file.
11635 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11637 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
11638 * MODULES.html.sh (Internationalization functions): Add mbssep.
11640 2007-02-05 Bruno Haible <bruno@clisp.org>
11642 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
11643 Optimize search in case of 1 delimiter.
11645 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
11647 * lib/acl.h: Include sys/types.h before sys/acl.h.
11649 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
11651 Merge upstream fix for glibc bugzilla #3957:
11653 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11655 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11656 bit for RE_HAT_LISTS_NOT_NEWLINE.
11657 (build_charclass_op): Remove bogus comment.
11659 2007-02-05 Simon Josefsson <simon@josefsson.org>
11661 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
11663 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
11665 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
11666 * lib/memmem.c [!defined _LIBC]: Include config.h.
11668 2007-02-04 Bruno Haible <bruno@clisp.org>
11670 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
11673 2007-02-04 Bruno Haible <bruno@clisp.org>
11675 New module mbstok_r.
11676 * modules/mbstok_r: New file.
11677 * lib/mbstok_r.c: New file.
11678 * lib/string_.h (strtok_r): Change argument names to match the
11679 comments. Add a conditional link warning.
11680 (mbstok_r): New declaration.
11681 * m4/mbstok_r.m4: New file.
11682 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11684 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
11685 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
11687 2007-02-04 Bruno Haible <bruno@clisp.org>
11690 * modules/mbsspn: New file.
11691 * lib/mbsspn.c: New file.
11692 * lib/string_.h (strspn): Add a conditional link warning.
11693 (mbsspn): New declaration.
11694 * m4/mbsspn.m4: New file.
11695 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11697 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
11698 * MODULES.html.sh (Internationalization functions): Add mbsspn.
11700 2007-02-04 Bruno Haible <bruno@clisp.org>
11702 New module mbspbrk.
11703 * modules/mbspbrk: New file.
11704 * lib/mbspbrk.c: New file.
11705 * lib/string_.h (strpbrk): Add a conditional link warning.
11706 (mbspbrk): New declaration.
11707 * m4/mbspbrk.m4: New file.
11708 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11710 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
11711 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
11713 2007-02-04 Bruno Haible <bruno@clisp.org>
11715 New module mbscspn.
11716 * modules/mbscspn: New file.
11717 * lib/mbscspn.c: New file.
11718 * lib/string_.h (strcspn): Add a conditional link warning.
11719 (mbscspn): New declaration.
11720 * m4/mbscspn.m4: New file.
11721 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11723 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
11724 * MODULES.html.sh (Internationalization functions): Add mbscspn.
11726 2007-02-04 Bruno Haible <bruno@clisp.org>
11728 New module mbscasestr, reduced goal of strcasestr.
11729 * modules/mbscasestr: New file.
11730 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
11731 (mbscasestr): Renamed from strcasestr.
11732 * lib/strcasestr.c: Don't include mbuiter.h.
11733 (strcasestr): Remove support for multibyte locales.
11734 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
11735 Change the conditional link warning.
11736 (mbscasestr): New declaration.
11737 * m4/mbscasestr.m4: New file.
11738 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
11739 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
11740 REPLACE_STRCASESTR.
11741 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
11742 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11743 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
11744 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
11745 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
11746 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
11747 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
11748 (Depends-on): Remove mbuiter.
11749 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
11751 2007-02-04 Bruno Haible <bruno@clisp.org>
11753 Simplify handling of strncasecmp.
11754 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
11755 the conditional link warning.
11756 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11757 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
11758 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
11759 * modules/strcase (configure.ac): Don't invoke
11760 gl_STRING_MODULE_INDICATOR.
11761 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
11763 2007-02-04 Bruno Haible <bruno@clisp.org>
11765 New module mbscasecmp, reduced goal of strcasecmp.
11766 * modules/mbscasecmp: New file.
11767 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
11768 (mbscasecmp): Renamed from strcasecmp.
11769 * lib/strcasecmp.c: Don't include mbuiter.h.
11770 (strcasecmp): Remove support for multibyte locales.
11771 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
11772 Change the conditional link warning.
11773 (mbscasecmp): New declaration.
11774 * m4/mbscasecmp.m4: New file.
11775 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
11776 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
11777 REPLACE_STRCASECMP.
11778 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
11779 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11781 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
11782 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
11783 * modules/strcase (Files): Remove m4/mbrtowc.m4.
11784 (Depends-on): Remove mbuiter.
11785 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
11787 2007-02-04 Bruno Haible <bruno@clisp.org>
11789 New module mbsstr. Remove module strstr.
11790 * modules/mbsstr: New file.
11791 * modules/strstr: Remove file.
11792 * lib/mbsstr.c: Renamed from lib/strstr.c.
11793 (mbsstr): Renamed from strstr.
11794 * lib/string_.h (strstr): Remove declaration. Change the conditional
11796 (mbsstr): New declaration.
11797 * m4/mbsstr.m4: New file.
11798 * m4/strstr.m4: Remove file.
11799 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
11801 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
11802 Don't initialize GNULIB_STRSTR.
11803 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
11804 substitute GNULIB_STRSTR and REPLACE_STRSTR.
11805 * MODULES.html.sh (Internationalization functions): Add mbsstr.
11806 (Support for systems lacking ANSI C 89): Remove strstr.
11808 2007-02-04 Bruno Haible <bruno@clisp.org>
11810 New module mbsrchr.
11811 * modules/mbsrchr: New file.
11812 * lib/mbsrchr.c: New file.
11813 * lib/string_.h (strrchr): Add a conditional link warning.
11814 (mbsrchr): New declaration.
11815 * m4/mbsrchr.m4: New file.
11816 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11818 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
11819 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
11821 2007-02-04 Bruno Haible <bruno@clisp.org>
11824 * modules/mbschr: New file.
11825 * lib/mbschr.c: New file.
11826 * lib/string_.h (strchr): Add a conditional link warning.
11827 (mbschr): New declaration.
11828 * m4/mbschr.m4: New file.
11829 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11831 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
11832 * MODULES.html.sh (Internationalization functions): Add mbschr.
11834 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
11836 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
11838 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
11840 2007-02-04 Bruno Haible <bruno@clisp.org>
11842 New module description section 'configure.ac-early'.
11843 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
11844 (func_get_autoconf_early_snippet): New function.
11845 (func_import, func_create_testdir): Use it. Remove special cases for
11846 modules 'extensions' and 'lock'.
11847 * modules/extensions (configure.ac-early): Require
11848 gl_USE_SYSTEM_EXTENSIONS.
11849 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
11851 2007-02-04 Bruno Haible <bruno@clisp.org>
11853 Make use of gcj-4.3's -fsource and -ftarget option.
11854 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
11855 and if so try the options -fsource and -ftarget.
11856 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
11857 source_version, ftarget_option, target_version arguments.
11858 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
11859 (is_envjavac_oldgcj_14_14_usable): Renamed from
11860 is_envjavac_gcj_14_14_usable.
11861 (is_envjavac_oldgcj_14_13_usable): Renamed from
11862 is_envjavac_gcj_14_13_usable.
11863 (is_gcj_present): Update.
11864 (is_gcj_43, is_gcj43_usable): New functions.
11865 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
11866 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
11867 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
11868 try the options -fsource and -ftarget.
11870 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
11872 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
11873 checking code. Set N = ceil (1.5 * N) rather than to a slightly
11876 2007-02-03 Jim Meyering <jim@meyering.net>
11878 Give tools a better chance to allocate space for very large buffers.
11879 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
11881 Make pwd and readlink work also when run with an unreadable parent dir
11882 on systems with openat support.
11883 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
11884 provided getcwd function, even when we have openat support.
11885 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
11887 2007-02-02 Bruno Haible <bruno@clisp.org>
11889 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
11890 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
11891 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
11892 portability problems if one of these functions is only used on specific
11894 Reported by Paul Eggert.
11896 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
11898 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
11899 is causing more trouble than it's curing.
11900 * lib/regex_internal.h (__mempcpy): Remove.
11901 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
11902 (and make the code a tad smaller to boot).
11903 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
11905 2007-02-02 Jim Meyering <jim@meyering.net>
11907 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
11908 section, not in the Makefile.am: one.
11910 2007-02-02 Eric Blake <ebb9@byu.net>
11912 * lib/strchrnul.c: Always include config.h first.
11914 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
11915 gnulib strstr is not necessary here.
11917 2007-02-02 Simon Josefsson <simon@josefsson.org>
11919 * m4/socklen.m4: Fix typo.
11921 2007-02-02 Eric Blake <ebb9@byu.net>
11923 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
11924 * modules/netinet_in (Makefile.am): Likewise.
11926 2007-02-01 Bruno Haible <bruno@clisp.org>
11928 * lib/string_.h (GL_LINK_WARNING): New macro.
11929 (strcasecmp, strstr, strcasestr): If provided by the system,
11930 conditionally define as a macro that leads to a warning instead of to
11932 (strncasecmp): Conditionally define as a macro that leads to a warning.
11934 2007-02-01 Karl Berry <karl@gnu.org>
11936 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
11938 2007-02-01 Bruno Haible <bruno@clisp.org>
11940 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
11943 2007-02-01 Eric Blake <ebb9@byu.net>
11945 * modules/regex (Depends-on): Revert dependence on mempcpy.
11946 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
11947 module's definition of mempcpy.
11948 Reported by Paul Eggert.
11950 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
11952 * lib/string_.h: If the gnulib module XYZ is not present, undefine
11953 the symbol XYZ before redefining it. This fixes a problem with
11954 programs that don't use XYZ, when compiled on systems that define
11955 XYZ to something else.
11957 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
11959 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
11960 occurs when "mkdir -m foo" creates a setgid directory that is (1)
11961 writeable to group or other and (2) is intended to have a special
11962 mode bit that is set or cleared. In such a case, the directory
11963 should be neither group- nor other-writeable until the special
11964 mode bits are right.
11966 2007-01-31 Eric Blake <ebb9@byu.net>
11968 * modules/mountlist (Depends-on): Add strstr.
11970 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
11972 * modules/string (Makefile.am): Remove redundant replacement.
11973 * modules/regex (Depends-on): Add mempcpy.
11975 2007-01-31 Bruno Haible <bruno@clisp.org>
11977 New module description field 'Link'.
11978 * gnulib-tool (func_usage): Document --extract-link-directive.
11979 (sed_extract_prog): Recognize 'Link' directive.
11980 (func_get_link_directive): New function.
11981 (func_import): Show summary of link directives.
11982 Handle --extract-link-directive option.
11983 * modules/acl (Link): New section.
11984 * modules/clock-time (Link): New section.
11985 * modules/euidaccess (Link): New section.
11986 * modules/gettext (Link): New section.
11987 * modules/iconv (Link): New section.
11988 * modules/lock (Link): New section.
11989 * modules/nanosleep (Link): New section.
11990 * modules/readline (Link): New section.
11992 2007-01-27 Bruno Haible <bruno@clisp.org>
11994 Enforce the use of gnulib modules for unportable <string.h> functions.
11995 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
11996 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
11997 (gl_HEADER_STRING_H_BODY): Require it.
11998 * lib/string_.h: If the gnulib module XYZ is not present, redefine
11999 the symbol XYZ to one that gives a link error.
12000 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
12001 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
12002 * modules/mempcpy (configure.ac): Likewise.
12003 * modules/memrchr (configure.ac): Likewise.
12004 * modules/stpcpy (configure.ac): Likewise.
12005 * modules/stpncpy (configure.ac): Likewise.
12006 * modules/strcase (configure.ac): Likewise.
12007 * modules/strcasestr (configure.ac): Likewise.
12008 * modules/strchrnul (configure.ac): Likewise.
12009 * modules/strdup (configure.ac): Likewise.
12010 * modules/strndup (configure.ac): Likewise.
12011 * modules/strnlen (configure.ac): Likewise.
12012 * modules/strpbrk (configure.ac): Likewise.
12013 * modules/strsep (configure.ac): Likewise.
12014 * modules/strstr (configure.ac): Likewise.
12015 * modules/strtok_r (configure.ac): Likewise.
12017 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
12019 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
12021 2007-01-30 Jim Meyering <jim@meyering.net>
12023 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
12025 2007-01-29 Bruno Haible <bruno@clisp.org>
12027 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
12028 * lib/execute.c: Likewise.
12029 * lib/pipe.c: Likewise.
12030 * lib/printf-args.h: Likewise.
12031 * lib/printf-args.c: Likewise.
12032 * lib/printf-parse.c: Likewise.
12033 * lib/vasnprintf.c: Likewise.
12035 2007-01-29 Eric Blake <ebb9@byu.net>
12037 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
12040 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
12042 * lib/strptime.h (strptime): Use 'restrict' for args where
12043 POSIX requires this.
12044 * lib/strptime.c (strptime): Likewise.
12045 Change license notice from LGPL to GPL, since gnulib-tool will
12046 change this as needed.
12047 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
12049 Include "strptime.h" first, to check interface.
12050 Do not #undef _LIBC and _NL_CURRENT.
12051 Do not include <stdlib.h>; no longer needed.
12052 Include "time_r.h" and declare ptime_locale_status
12053 only if _LIBC is not defined.
12054 (__P): Remove unused macro.
12055 (match_string): Bring back glibc version, but use it only if _LIBC
12057 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
12058 Remove unnecessary assertion and abort() call.
12059 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
12060 * m4/strptime.m4: Fix serial number comment.
12061 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
12062 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
12063 (Depends-on): Add time_r.
12065 2007-01-29 Bruno Haible <bruno@clisp.org>
12067 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12069 * modules/strptime (Depends-on): Add stdbool.
12070 * lib/strptime.h: Include <time.h> always. Add comments.
12072 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
12074 * modules/strptime: New file.
12075 * lib/strptime.h: New file.
12076 * lib/strptime.c: New file.
12077 * m4/strptime.m4: New file.
12079 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
12081 * MODULES.html.sh: New module mpsort.
12082 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
12084 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
12085 a circularity problem with HP-UX ia64 reported by Bob Proulx in
12086 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
12088 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
12090 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
12092 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
12093 the parameter matches the prototype.
12095 2007-01-28 Jim Meyering <jim@meyering.net>
12097 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
12098 sys/time.h here, reverting that part of the previous patch:
12099 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
12101 2007-01-28 Bruno Haible <bruno@clisp.org>
12103 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
12104 value of $(SYS_TIME_H).
12105 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
12106 remove it conditionally, too. [added by Jim Meyering]
12107 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
12108 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
12109 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
12110 GETTIMEOFDAY_REPLACEMENT to 1.
12112 2007-01-28 Bruno Haible <bruno@clisp.org>
12114 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
12115 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
12116 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
12117 Set UNISTD_H instead of UNISTD_H2.
12118 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
12120 2007-01-28 Bruno Haible <bruno@clisp.org>
12122 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
12123 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
12125 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12127 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
12128 (func_create_testdir): Ensure C locale for `grep' and `tr'
12130 (func_create_megatestdir): Avoid one `grep'. Fix bug in
12131 ACLOCAL_AMFLAGS parsing state machine.
12133 2007-01-27 Bruno Haible <bruno@clisp.org>
12135 * modules/unistr/base: Update.
12137 2007-01-27 Bruno Haible <bruno@clisp.org>
12139 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
12140 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
12141 * modules/unistr/u32-mbtouc-unsafe: Renamed from
12142 modules/unistr/u32-mbtouc.
12143 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
12144 * lib/unistr.h: Update.
12145 * lib/linebreak.c: Update.
12146 * modules/unistr/u32-mbtouc: Renamed from
12147 modules/unistr/u32-mbtouc-safe.
12148 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
12149 * lib/unistr.h: Update.
12150 * lib/unistr/u32-to-u8.c: Update.
12151 * lib/unistr/u32-to-u16.c: Update.
12153 2007-01-27 Bruno Haible <bruno@clisp.org>
12155 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
12156 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
12157 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
12158 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
12159 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
12160 * modules/unistr/u16-mbtouc-unsafe: Renamed from
12161 modules/unistr/u16-mbtouc.
12162 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
12163 * lib/unistr.h: Update.
12164 * lib/linebreak.c: Update.
12165 * modules/linebreak: Update.
12166 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
12167 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
12168 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
12169 * modules/unistr/u16-mbtouc: Renamed from
12170 modules/unistr/u16-mbtouc-safe.
12171 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
12172 * lib/unistr.h: Update.
12173 * lib/unistr/u16-to-u8.c: Update.
12174 * modules/unistr/u16-to-u8: Update.
12175 * lib/unistr/u16-to-u32.c: Update.
12176 * modules/unistr/u16-to-u32: Update.
12178 2007-01-27 Bruno Haible <bruno@clisp.org>
12180 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
12181 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
12182 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
12183 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
12184 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
12185 * modules/unistr/u8-mbtouc-unsafe: Renamed from
12186 modules/unistr/u8-mbtouc.
12187 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
12188 * lib/unistr.h: Update.
12189 * lib/striconveh.c: Update.
12190 * modules/striconveh: Update.
12191 * lib/linebreak.c: Update.
12192 * modules/linebreak: Update.
12193 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
12194 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
12195 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
12196 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
12197 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
12198 * lib/unistr.h: Update.
12199 * lib/striconveh.c: Update.
12200 * modules/striconveh: Update.
12201 * lib/unistr/u8-to-u16.c: Update.
12202 * modules/unistr/u8-to-u16: Update.
12203 * lib/unistr/u8-to-u32.c: Update.
12204 * modules/unistr/u8-to-u32: Update.
12206 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12209 * lib/argz.c: Do not include strings.h nor memory.h, include
12210 string.h unconditionally. Patch by Simon Josefsson.
12212 2007-01-27 Bruno Haible <bruno@clisp.org>
12214 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
12215 from gl_HEADER_STRING_H_BODY.
12216 (gl_HEADER_STRING_H_BODY): Require it.
12217 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
12218 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12219 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12220 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12221 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12222 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
12223 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12224 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12225 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
12226 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12227 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12228 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
12229 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12230 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12231 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12233 2007-01-27 Bruno Haible <bruno@clisp.org>
12235 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
12236 check_PROGRAMS into noinst_PROGRAMS.
12237 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
12238 check_PROGRAMS in this case.
12239 (func_import): Set for_test to false.
12240 (func_create_testdir): Set for_test to true.
12242 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12243 Bruno Haible <bruno@clisp.org>
12245 * modules/strcasestr (Files): Remove lib/strcasestr.h.
12246 (Depends-on): Add string.
12247 (Includes): Use <string.h> instead of strcasestr.h.
12248 * modules/string (Makefile.am): Also substitute the value of
12249 REPLACE_STRCASESTR.
12250 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
12251 assume strcasestr is declared in <string.h> not <strings.h>. Also
12252 set REPLACE_STRCASESTR.
12253 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
12254 REPLACE_STRCASESTR.
12255 * lib/strcasestr.h: Remove file.
12256 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
12257 * lib/string_.h (strcasestr): New declaration.
12259 2007-01-27 Bruno Haible <bruno@clisp.org>
12261 * lib/string_.h: Use 'extern'.
12263 2007-01-27 Jim Meyering <jim@meyering.net>
12265 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
12266 of set-but-not-used local, "q".
12268 * lib/mempcpy.c: Include <config.h> before <string.h>.
12269 This fixes a compilation error on HP-UX, due to the system's
12270 "restrict"-using mempcpy prototype.
12272 2007-01-26 Bruno Haible <bruno@clisp.org>
12274 Small optimization.
12275 * lib/javacomp.c: Include c-strstr.h.
12276 (is_envjavac_gcj): Use c_strstr instead of strstr.
12277 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
12279 2007-01-26 Bruno Haible <bruno@clisp.org>
12281 * MODULES.html.sh (Unicode string functions): Add the new modules.
12283 * modules/uniconv/u32-strconv-to-locale: New file.
12284 * lib/uniconv/u32-strconv-to-locale.c: New file.
12286 * modules/uniconv/u16-strconv-to-locale: New file.
12287 * lib/uniconv/u16-strconv-to-locale.c: New file.
12289 * modules/uniconv/u8-strconv-to-locale: New file.
12290 * lib/uniconv/u8-strconv-to-locale.c: New file.
12292 * modules/uniconv/u32-strconv-from-locale: New file.
12293 * lib/uniconv/u32-strconv-from-locale.c: New file.
12295 * modules/uniconv/u16-strconv-from-locale: New file.
12296 * lib/uniconv/u16-strconv-from-locale.c: New file.
12298 * modules/uniconv/u8-strconv-from-locale: New file.
12299 * lib/uniconv/u8-strconv-from-locale.c: New file.
12301 * modules/uniconv/u32-strconv-to-enc: New file.
12302 * lib/uniconv/u32-strconv-to-enc.c: New file.
12303 * modules/uniconv/u32-strconv-to-enc-tests: New file.
12304 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
12306 * modules/uniconv/u16-strconv-to-enc: New file.
12307 * lib/uniconv/u16-strconv-to-enc.c: New file.
12308 * lib/uniconv/u-strconv-to-enc.h: New file.
12309 * modules/uniconv/u16-strconv-to-enc-tests: New file.
12310 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
12312 * modules/uniconv/u8-strconv-to-enc: New file.
12313 * lib/uniconv/u8-strconv-to-enc.c: New file.
12314 * modules/uniconv/u8-strconv-to-enc-tests: New file.
12315 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
12317 * modules/uniconv/u32-strconv-from-enc: New file.
12318 * lib/uniconv/u32-strconv-from-enc.c: New file.
12319 * modules/uniconv/u32-strconv-from-enc-tests: New file.
12320 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
12322 * modules/uniconv/u16-strconv-from-enc: New file.
12323 * lib/uniconv/u16-strconv-from-enc.c: New file.
12324 * modules/uniconv/u16-strconv-from-enc-tests: New file.
12325 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
12327 * modules/uniconv/u8-strconv-from-enc: New file.
12328 * lib/uniconv/u8-strconv-from-enc.c: New file.
12329 * lib/uniconv/u-strconv-from-enc.h: New file.
12330 * modules/uniconv/u8-strconv-from-enc-tests: New file.
12331 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
12333 * modules/uniconv/u32-conv-from-enc: New file.
12334 * lib/uniconv/u32-conv-from-enc.c: New file.
12335 * modules/uniconv/u32-conv-from-enc-tests: New file.
12336 * tests/uniconv/test-u32-conv-from-enc.c: New file.
12338 * modules/uniconv/u16-conv-from-enc: New file.
12339 * lib/uniconv/u16-conv-from-enc.c: New file.
12340 * lib/uniconv/u-conv-from-enc.h: New file.
12341 * modules/uniconv/u16-conv-from-enc-tests: New file.
12342 * tests/uniconv/test-u16-conv-from-enc.c: New file.
12344 * modules/uniconv/u8-conv-from-enc: New file.
12345 * lib/uniconv/u8-conv-from-enc.c: New file.
12346 * modules/uniconv/u8-conv-from-enc-tests: New file.
12347 * tests/uniconv/test-u8-conv-from-enc.c: New file.
12349 * modules/uniconv/base: New file.
12350 * lib/uniconv.h: New file.
12352 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
12354 * doc/gnulib-tool.texi (Initial import): Update to match current
12355 behavior with strdup module.
12356 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
12357 * lib/memmem.h: Remove; all uses removed. This is now done
12359 * lib/mempcpy.h: Likewise.
12360 * lib/memrchr.h: Likewise.
12361 * lib/stpcpy.h: Likewise.
12362 * lib/stpncpy.h: Likewise.
12363 * lib/strcase.h: Likewise.
12364 * lib/strchrnul.h: Likewise.
12365 * lib/strdup.h: Likewise.
12366 * lib/strndup.h: Likewise.
12367 * lib/strnlen.h: Likewise.
12368 * lib/strpbrk.h: Likewise.
12369 * lib/strsep.h: Likewise.
12370 * lib/strstr.h: Likewise.
12371 * lib/strtok_r.h: Likewise.
12372 * lib/string_.h: New file.
12373 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
12374 Rely on <string.h> instead.
12375 * lib/canon-host.c: Likewise.
12376 * lib/chdir-long.c: Likewise.
12377 * lib/concatpath.c: Likewise.
12378 * lib/exclude.c: Likewise.
12379 * lib/fchdir.c: Likewise.
12380 * lib/getaddrinfo.c: Likewise.
12381 * lib/getcwd.c: Likewise.
12382 * lib/getsubopt.c: Likewise.
12383 * lib/glob.c: Likewise.
12384 * lib/hard-locale.c: Likewise.
12385 * lib/iconvme.c: Likewise.
12386 * lib/javacomp.c: Likewise.
12387 * lib/mempcpy.c: Likewise.
12388 * lib/memrchr.c: Likewise.
12389 * lib/regex_internal.h: Likewise.
12390 * lib/stpncpy.c: Likewise.
12391 * lib/strcasecmp.c: Likewise.
12392 * lib/strchrnul.c: Likewise.
12393 * lib/strdup.c: Likewise.
12394 * lib/striconv.c: Likewise.
12395 * lib/striconveh.c: Likewise.
12396 * lib/striconveha.c: Likewise.
12397 * lib/strncasecmp.c: Likewise.
12398 * lib/strndup.c: Likewise.
12399 * lib/strnlen.c: Likewise.
12400 * lib/strsep.c: Likewise.
12401 * lib/strstr.c: Likewise.
12402 * lib/strtok_r.c: Likewise.
12403 * lib/userspec.c: Likewise.
12404 * lib/w32spawn.h: Likewise.
12405 * lib/xstrndup.c: Likewise.
12406 * lib/mountlist.c (strstr): Remove decl.
12407 * m4/string_h.m4: New file.
12408 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
12409 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
12410 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
12411 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
12412 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
12413 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
12414 Set REPLACE_STRCASECMP if necessary.
12415 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
12416 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
12417 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
12418 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
12419 HAVE_DECL_STRDUP if necessary.
12420 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
12421 since gl_FUNC_STRNDUP does that now.
12422 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
12423 Check for decl here...
12424 (gl_PREREQ_STRNLEN): ... not here.
12425 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
12426 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
12427 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
12428 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
12430 * modules/string: New file.
12431 * modules/memmem (Files): Remove special-purpose include file.
12432 (Depends-on): Add string.
12433 (Include): Include <string.h>, not the removed file.
12434 * modules/mempcpy: Likewise.
12435 * modules/memrchr: Likewise.
12436 * modules/stpcpy: Likewise.
12437 * modules/stpncpy: Likewise.
12438 * modules/strcase: Likewise.
12439 * modules/strchrnul: Likewise.
12440 * modules/strdup: Likewise.
12441 * modules/strndup: Likewise.
12442 * modules/strnlen: Likewise.
12443 * modules/strpbrk: Likewise.
12444 * modules/strsep: Likewise.
12445 * modules/strstr: Likewise.
12446 * modules/strtok_r: Likewise.
12447 * tests/test-dirname.c: Don't include "strdup.h", since
12448 <string.h> now suffices.
12449 * tests/test-memmem.c: Don't include "memmem.h", since
12450 <string.h> now suffices.
12452 2007-01-25 Bruno Haible <bruno@clisp.org>
12454 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
12457 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
12458 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
12459 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
12460 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
12462 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
12463 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
12464 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
12465 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
12466 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
12467 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
12469 2007-01-24 Bruno Haible <bruno@clisp.org>
12471 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
12472 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
12473 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
12474 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
12476 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
12477 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
12478 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12479 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
12480 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
12481 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
12483 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
12485 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
12486 Reported by Ralf Wildenhues.
12488 2007-01-24 Bruno Haible <bruno@clisp.org>
12490 Drop AC_REQUIRE calls that are redundant with the module dependencies.
12491 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
12493 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
12494 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
12495 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
12497 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
12499 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
12500 Don't use 'exit'; just return from 'main'.
12501 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
12503 * lib/fnmatch_.h: Readjust white space and comments to match
12504 glibc, to avoid spurious diffs.
12506 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
12508 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
12509 2004-12-01 change by Jakub Jelinek, since this code won't compile
12510 if !LIBC. Problem reported by Bob Proulx.
12512 2007-01-23 Bruno Haible <bruno@clisp.org>
12514 * lib/striconveh.c: Include c-strcaseeq.h.
12515 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
12516 * modules/striconveh (Depends-on): Add c-strcaseeq.
12518 2007-01-23 Bruno Haible <bruno@clisp.org>
12520 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
12522 * modules/c-strcaseeq: New file.
12523 * lib/c-strcaseeq.h: New file.
12525 * modules/streq: New file.
12526 * lib/streq.h: New file.
12528 2007-01-23 Bruno Haible <bruno@clisp.org>
12530 * modules/striconveha-tests: New file.
12531 * tests/test-striconveha.c: New file.
12533 * lib/striconveha.h: Include <stdbool.h>.
12534 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
12535 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
12536 (mem_iconveha_notranslit): Renamed from mem_iconveha.
12537 (mem_iconveha): New function.
12538 (str_iconveha_notranslit): Renamed from str_iconveha.
12539 (str_iconveha): New function.
12540 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
12543 2007-01-23 Bruno Haible <bruno@clisp.org>
12545 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
12546 encodings without forgiving before trying any encoding with handler.
12547 (str_iconveha): Try all encodings without forgiving before trying any
12548 encoding with handler.
12550 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
12552 Import the following changes from libc.
12554 2005-10-14 Ulrich Drepper <drepper@redhat.com>
12556 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
12558 2004-12-01 Jakub Jelinek <jakub@redhat.com>
12560 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
12561 normal_bracket label.
12563 2004-09-01 Jakub Jelinek <jakub@redhat.com>
12566 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
12567 to normal_bracket after fetching the next character.
12569 2007-01-22 Bruno Haible <bruno@clisp.org>
12571 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
12573 * lib/striconveh.c (iconv_carefully_1): New function.
12574 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
12576 (str_cd_iconveh): Update.
12577 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
12578 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
12579 * tests/test-striconveh.c (MAGIC): New macro.
12580 (new_offsets): New function.
12581 (main): Test call with and without offsets.
12583 2007-01-22 Bruno Haible <bruno@clisp.org>
12585 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
12586 * modules/sys_select (Makefile.am): Likewise.
12587 * modules/sys_socket (Makefile.am): Likewise.
12588 * modules/sys_time (Makefile.am): Likewise.
12590 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
12592 * modules/gettimeofday (License): Change from GPL to LGPL, since
12593 gettimeofday is a library function.
12595 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12597 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
12599 2007-01-21 Bruno Haible <bruno@clisp.org>
12601 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
12603 2007-01-21 Bruno Haible <bruno@clisp.org>
12605 * modules/striconveha: New file.
12606 * lib/striconveha.h: New file.
12607 * lib/striconveha.c: New file.
12608 * MODULES.html.sh (Internationalization functions): Add striconveha.
12609 * lib/striconv.c (str_iconv): Optimize the case of an empty input
12611 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
12613 2007-01-21 Bruno Haible <bruno@clisp.org>
12615 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
12616 * lib/striconveh.c (str_iconveh): Likewise.
12618 2007-01-21 Bruno Haible <bruno@clisp.org>
12620 * lib/striconveh.h (mem_iconveh): New declaration.
12621 * lib/striconveh.c (mem_iconveh): New function.
12622 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
12624 2007-01-21 Bruno Haible <bruno@clisp.org>
12626 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
12628 * lib/striconveh.h (mem_cd_iconveh): Change specification.
12629 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
12630 original result buffer.
12631 (str_cd_iconveh): Update.
12632 * tests/test-striconveh.c (main): Update.
12634 * lib/striconv.h (mem_cd_iconv): Change specification.
12635 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
12637 (str_cd_iconv): Update.
12638 * tests/test-striconv.c (main): Update.
12640 2007-01-21 Bruno Haible <bruno@clisp.org>
12642 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
12644 2007-01-20 Jim Meyering <jim@meyering.net>
12646 * lib/userspec.c (parse_with_separator): If a user or group string
12647 starts with "+", skip the corresponding name-to-ID look-up, since
12648 such a look-up must fail: user and group names may not include "+".
12650 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
12652 * lib/poll.c: Include sys/time.h and time.h unconditionally,
12653 since we now assume the sys_time module.
12654 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
12655 check for sys/time.h; no longer needed.
12656 * modules/poll (Depends-on): Depend on sys_time.
12658 2007-01-18 Bruno Haible <bruno@clisp.org>
12660 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
12661 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
12663 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
12666 * tests/test-gettimeofday.c: Include <time.h>.
12667 (dummy): Remove variable.
12669 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
12670 gl_HEADER_SYS_TIME_H.
12671 (gl_HEADER_SYS_TIME_H): New macro.
12673 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
12674 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12675 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
12676 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
12677 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12678 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
12679 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
12680 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12681 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
12682 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
12683 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12685 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
12686 last change; it caused a compilation error when cross-compiling to
12689 2007-01-18 Jim Meyering <jim@meyering.net>
12691 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
12692 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
12693 than the race-prone "test -d sys || mkdir sys".
12694 (configure.ac): Use AC_PROG_MKDIR_P.
12695 * modules/sys_select: Likewise.
12696 * modules/sys_socket: Likewise.
12697 * modules/sys_time: Likewise.
12699 2007-01-18 Eric Blake <ebb9@byu.net>
12701 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
12702 replace gettimeofday.
12703 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
12704 name, to avoid infinite recursion.
12706 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
12708 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
12710 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
12711 assume timespec.h defines struct timeval.
12712 * lib/settime.c: Likewise.
12713 * lib/utimens.c: Likewise.
12714 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
12715 since we now assume the gettimeofday module.
12716 * lib/tempname.c (__gen_tempname): Likewise.
12717 * lib/gettimeofday.h: Remove.
12718 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
12719 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
12720 Include <time.h>, for 'time()'.
12721 (localtime_buffer_addr): Also use this workaround if
12722 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
12723 to simplify the uses. All uses changed.
12724 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
12725 that #undef is inside {}, and 'const' follows type name consistently.
12726 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
12727 (gettimeofday): Do not use the maximum possible value for
12728 tv->tv_usec, since that might break usages other than ls.c.
12729 Instead, we'll leave ls.c alone. This undoes today's patch
12730 by Bruno. Add a compile-time warning for 1s-clock resolution;
12731 we've never observed the problem but might as well keep the
12733 * lib/nanosleep.c: Include timespec.h first, for interface check.
12734 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
12735 now assume the sys_time module.
12736 * lib/tempname.c: Likewise.
12737 * lib/timespec.h: Likewise.
12738 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
12740 * lib/strftime.c: Likewise.
12741 * lib/timespec.h: Likewise.
12742 * lib/posixtm.c: Include posixtm.h first, for interface check.
12743 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
12744 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
12745 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
12746 * lib/sys_time_.h: New file.
12747 * lib/timespec.h (struct timespec): Use long int, not long.
12748 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
12749 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
12750 Remove obsolescent call to AC_HEADER_TIME.
12751 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12752 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12753 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
12754 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
12756 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
12757 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
12758 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
12759 into the sys_time module. Check for gettimeofday just once.
12760 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
12761 for gettimeofday signature to just check the signature. Merely
12762 compile it, since linking doesn't test signature. Improve test for
12763 whether gettimeofday.o is actually needed.
12764 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
12765 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
12766 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
12767 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12768 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
12769 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
12770 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
12771 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
12772 than worrying about sys/time.h.
12773 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12774 Don't bother worrying about TIME_WITH_SYS_TIME.
12775 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
12776 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
12777 * m4/sys_time_h.m4: New file.
12778 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
12779 Don't include sys/time.h. Return from main rather than exiting.
12780 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
12782 * modules/gethrxtime (Depends-on): Add sys_time.
12783 * modules/gettime (Depends-on): Likewise.
12784 * modules/gettimeofday (Depends-on): Likewise.
12785 * modules/nanosleep (Depends-on): Likewise.
12786 * modules/settime (Depends-on): Likewise.
12787 * modules/tempname (Depends-on): Likewise.
12788 * modules/utimens (Depends-on): Likewise.
12789 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
12790 (Include:) Change back to <sys/time.h>.
12791 (Maintainer:) Add self.
12792 * modules/sys_time: New file.
12793 * modules/tempname (Depends-on): Add gettimeofday.
12794 * tests/test-gettimeofday.c: Include <sys/time.h>
12795 rather than gettimeofday.h.
12797 2007-01-17 Bruno Haible <bruno@clisp.org>
12799 * gnulib-tool (func_get_license): Revert last patch. Instead, let
12800 the license default to GPL.
12801 (func_create_testdir): Don't complain if a module is LGPL and its
12802 tests module depends on GPLed modules.
12804 2007-01-17 Bruno Haible <bruno@clisp.org>
12806 * lib/gettimeofday.c (gettimeofday): Add code for the case
12807 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
12808 maximum possible value for tv->tv_usec, rather than the minimum one.
12810 2005-10-08 Martin Lambers <marlam@marlam.de>
12811 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
12812 2007-01-16 Bruno Haible <bruno@clisp.org>
12814 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
12815 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
12816 gl_FUNC_GETTIMEOFDAY.
12817 (Include): Add gettimeofday.h.
12818 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
12819 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
12820 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
12821 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
12822 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
12823 * lib/gettimeofday.h: New file.
12824 * lib/gettimeofday.c: Include <sys/timeb.h>.
12825 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
12826 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12827 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
12828 fall back on time().
12830 * tests/test-gettimeofday.c: New file.
12831 * modules/gettimeofday-tests: New file.
12833 2007-01-16 Eric Blake <ebb9@byu.net>
12835 * modules/fnmatch (Depends-on): Depend on wchar.
12836 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
12837 * m4/fnmatch.m4: Likewise.
12838 * modules/mbchar (Makefile.am): Assume <wchar.h>.
12839 * m4/mbchar.m4: Likewise.
12840 * modules/mbswidth (Depends-on): Depend on wchar.
12841 * lib/mbswidth.c: Assume <wchar.h>.
12842 * m4/mbswidth.m4: Likewise.
12843 * modules/quotearg (Depends-on): Depend on wchar.
12844 * lib/quotearg.c: Assume <wchar.h>.
12845 * m4/quotearg.m4: Likewise.
12846 * modules/regex (Depends-on): Depend on wchar.
12847 * lib/regex_internal.h: Assume <wchar.h>.
12848 * m4/regex.m4: Likewise.
12849 * modules/stdint (Depends-on): Depend on wchar.
12850 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
12851 * m4/stdint.m4: Likewise.
12852 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
12853 * modules/strftime (Depends-on): Depend on wchar.
12854 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
12855 * modules/strtol (Depends-on): Depend on wchar.
12856 * lib/strtol.c: Assume <wchar.h>.
12857 * modules/wcwidth (Depends-on): Depend on wchar.
12858 * lib/wcwidth.h: Assume <wchar.h>.
12859 * m4/wcwidth.m4: Likewise.
12861 2007-01-16 Bruno Haible <bruno@clisp.org>
12863 * modules/csharpexec-script: New, created from...
12864 * modules/csharpexec: ... this.
12866 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
12868 * modules/javaexec-script: New, created from...
12869 * modules/javaexec: ... this.
12871 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12873 * modules/poll (Dependencies): Add sys_select.
12875 2007-01-15 Jim Meyering <jim@meyering.net>
12877 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
12878 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
12879 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
12880 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
12882 2007-01-15 Bruno Haible <bruno@clisp.org>
12884 * modules/striconveh: New file.
12885 * lib/striconveh.h: New file.
12886 * lib/striconveh.c: New file.
12887 * MODULES.html.sh (Internationalization functions): Add striconveh.
12889 * modules/striconveh-tests: New file.
12890 * tests/test-striconveh.c: New file.
12892 2007-01-15 Bruno Haible <bruno@clisp.org>
12894 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
12895 not from GNU libiconv or GNU libc.
12897 2007-01-15 Bruno Haible <bruno@clisp.org>
12899 * doc/gnulib-intro.texi (Copyright): Explain the different license
12900 terms for module descriptions, autoconf macros, tests, documentation.
12902 2007-01-14 Bruno Haible <bruno@clisp.org>
12904 * modules/striconv-tests: New file.
12905 * tests/test-striconv.c: New file.
12907 2007-01-14 Bruno Haible <bruno@clisp.org>
12909 * modules/iconv-tests: New file.
12910 * tests/test-iconv.c: New file.
12912 2007-01-14 Bruno Haible <bruno@clisp.org>
12914 * gnulib-tool (func_get_license): For test modules, use the license of
12917 2007-01-14 Bruno Haible <bruno@clisp.org>
12919 * modules/iconv (Include): Clarify that <iconv.h> can only be included
12920 if iconv is found to exist.
12922 2007-01-14 Bruno Haible <bruno@clisp.org>
12924 * modules/c-ctype-tests: New file.
12925 * tests/test-c-ctype.c: New file.
12927 2007-01-14 Bruno Haible <bruno@clisp.org>
12929 * modules/binary-io-tests: New file.
12930 * tests/test-binary-io.sh: New file.
12931 * tests/test-binary-io.c: New file.
12933 2007-01-14 Bruno Haible <bruno@clisp.org>
12935 * modules/array-oset-tests: New file.
12936 * tests/test-array_oset.c: New file.
12938 2007-01-14 Bruno Haible <bruno@clisp.org>
12940 * modules/array-list-tests: New file.
12941 * tests/test-array_list.c: New file.
12943 2007-01-14 Bruno Haible <bruno@clisp.org>
12945 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
12947 Reported by Simon Josefsson in
12948 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
12950 2007-01-14 Bruno Haible <bruno@clisp.org>
12952 * modules/allocsa-tests: New file.
12953 * tests/test-allocsa.c: New file.
12955 2007-01-14 Bruno Haible <bruno@clisp.org>
12957 * modules/fchdir (Depends-on): Add absolute-header.
12958 * modules/unistd (Depends-on): Likewise.
12960 2006-12-30 Bruno Haible <bruno@clisp.org>
12962 * modules/fchdir: New file.
12963 * modules/unistd (Files): Add lib/unistd_.h.
12964 (Makefile.am): Generate unistd.h from unistd_.h.
12965 * lib/fchdir.c: New file.
12966 * lib/dirent_.h: New file.
12967 * lib/unistd_.h: New file.
12968 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
12969 * m4/fchdir.m4: New file.
12970 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
12971 (gl_HEADER_UNISTD): Invoke it.
12972 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
12974 * lib/backupfile.c (opendir, closedir): Undefine.
12975 * lib/chown.c (open, close): Undefine.
12976 * lib/clean-temp.c (open, close): Undefine.
12977 * lib/copy-file.c (open, close): Undefine.
12978 * lib/execute.c (open, close): Undefine.
12979 * lib/fsusage.c (open, close): Undefine.
12980 * lib/gc-gnulib.c (open, close): Undefine.
12981 * lib/getcwd.c (opendir, closedir): Undefine.
12982 * lib/glob.c (opendir, closedir): Undefine.
12983 * lib/javacomp.c (open, close): Undefine.
12984 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
12985 * lib/openat-proc.c (open, close): Undefine.
12986 * lib/pagealign_alloc.c (open, close): Undefine.
12987 * lib/pipe.c (open, close): Undefine.
12988 * lib/progreloc.c (open, close): Undefine.
12989 * lib/savedir.c (opendir, closedir): Undefine.
12990 * lib/utime.c (open, close): Undefine.
12991 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
12993 2007-01-10 Bruno Haible <bruno@clisp.org>
12995 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
12997 2007-01-12 Eric Blake <ebb9@byu.net>
12999 Provide a robust <wchar.h>. Further simplifications are now
13000 possible in other modules, but not included here.
13001 * modules/wchar: New module.
13002 * m4/wchar.m4: New file.
13003 * lib/wchar_.h: Likewise.
13004 * modules/mbchar (Depends-on): Depend on wchar, as the first use
13006 * MODULES.html.sh (Extended multibyte and wide character utilities):
13009 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
13011 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
13012 to a reasonable default for memory allocation.
13013 (xreadlink): Don't allocate a huge buffer, to work around a buggy
13014 file system that reports garbage st_size values for symlinks.
13015 Problem reported by Liyang Hu.
13017 2007-01-11 Simon Josefsson <simon@josefsson.org>
13019 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
13020 Emacs .#* auto-save files).
13022 2007-01-11 Bruno Haible <bruno@clisp.org>
13024 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
13027 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
13029 Use @...@ consistently in lib/wctype_.h.
13030 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
13031 on it being set to 1 or 0.
13032 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
13033 go back to AC_SUBSTing it.
13034 * modules/wctype (Makefile.am): Undo previous change.
13036 2007-01-10 Eric Blake <ebb9@byu.net>
13038 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
13039 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
13040 * modules/wctype (Makefile.am): Likewise.
13041 Reported by Chris McGuire.
13043 2007-01-10 Jim Meyering <jim@meyering.net>
13045 fts.c: a small readability/maintainability improvement
13046 * lib/fts.c (fts_read): Make this code slightly more readable and
13047 maintainable by hoisting the "sp->fts_cur = p" assignments to
13048 immediately follow the statements that set P. Derived from
13049 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
13051 2007-01-10 Eric Blake <ebb9@byu.net>
13053 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
13054 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
13055 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13056 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13057 Reported by Chris McGuire.
13059 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13061 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
13064 2007-01-09 Bruno Haible <bruno@clisp.org>
13066 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
13067 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
13069 (func_module): Use them.
13071 2007-01-09 Bruno Haible <bruno@clisp.org>
13073 * modules/unistr/base: New file.
13074 * lib/unistr.h: New file.
13076 * modules/unistr/u8-to-u16: New file.
13077 * lib/unistr/u8-to-u16.c: New file.
13079 * modules/unistr/u8-to-u32: New file.
13080 * lib/unistr/u8-to-u32.c: New file.
13082 * modules/unistr/u16-to-u8: New file.
13083 * lib/unistr/u16-to-u8.c: New file.
13085 * modules/unistr/u16-to-u32: New file.
13086 * lib/unistr/u16-to-u32.c: New file.
13088 * modules/unistr/u32-to-u8: New file.
13089 * lib/unistr/u32-to-u8.c: New file.
13091 * modules/unistr/u32-to-u16: New file.
13092 * lib/unistr/u32-to-u16.c: New file.
13094 * modules/unistr/u8-check: New file.
13095 * modules/unistr/u16-check: New file.
13096 * modules/unistr/u32-check: New file.
13097 * lib/unistr/u8-check.c: New file.
13098 * lib/unistr/u16-check.c: New file.
13099 * lib/unistr/u32-check.c: New file.
13101 * modules/unistr/u8-chr: New file.
13102 * modules/unistr/u16-chr: New file.
13103 * modules/unistr/u32-chr: New file.
13104 * lib/unistr/u8-chr.c: New file.
13105 * lib/unistr/u16-chr.c: New file.
13106 * lib/unistr/u32-chr.c: New file.
13108 * modules/unistr/u8-cmp: New file.
13109 * modules/unistr/u16-cmp: New file.
13110 * modules/unistr/u32-cmp: New file.
13111 * lib/unistr/u8-cmp.c: New file.
13112 * lib/unistr/u16-cmp.c: New file.
13113 * lib/unistr/u32-cmp.c: New file.
13115 * modules/unistr/u8-cpy: New file.
13116 * modules/unistr/u16-cpy: New file.
13117 * modules/unistr/u32-cpy: New file.
13118 * lib/unistr/u8-cpy.c: New file.
13119 * lib/unistr/u16-cpy.c: New file.
13120 * lib/unistr/u32-cpy.c: New file.
13121 * lib/unistr/u-cpy.h: New file.
13123 * modules/unistr/u8-cpy-alloc: New file.
13124 * modules/unistr/u16-cpy-alloc: New file.
13125 * modules/unistr/u32-cpy-alloc: New file.
13126 * lib/unistr/u8-cpy-alloc.c: New file.
13127 * lib/unistr/u16-cpy-alloc.c: New file.
13128 * lib/unistr/u32-cpy-alloc.c: New file.
13129 * lib/unistr/u-cpy-alloc.h: New file.
13131 * modules/unistr/u8-endswith: New file.
13132 * modules/unistr/u16-endswith: New file.
13133 * modules/unistr/u32-endswith: New file.
13134 * lib/unistr/u8-endswith.c: New file.
13135 * lib/unistr/u16-endswith.c: New file.
13136 * lib/unistr/u32-endswith.c: New file.
13137 * lib/unistr/u-endswith.h: New file.
13139 * modules/unistr/u8-mblen: New file.
13140 * modules/unistr/u16-mblen: New file.
13141 * modules/unistr/u32-mblen: New file.
13142 * lib/unistr/u8-mblen.c: New file.
13143 * lib/unistr/u16-mblen.c: New file.
13144 * lib/unistr/u32-mblen.c: New file.
13146 * modules/unistr/u8-mbtouc: New file.
13147 * modules/unistr/u16-mbtouc: New file.
13148 * modules/unistr/u32-mbtouc: New file.
13149 * lib/unistr/u8-mbtouc.c: New file.
13150 * lib/unistr/u16-mbtouc.c: New file.
13151 * lib/unistr/u32-mbtouc.c: New file.
13153 * modules/unistr/u8-mbtouc-safe: New file.
13154 * modules/unistr/u16-mbtouc-safe: New file.
13155 * modules/unistr/u32-mbtouc-safe: New file.
13156 * lib/unistr/u8-mbtouc-safe.c: New file.
13157 * lib/unistr/u16-mbtouc-safe.c: New file.
13158 * lib/unistr/u32-mbtouc-safe.c: New file.
13160 * modules/unistr/u8-move: New file.
13161 * modules/unistr/u16-move: New file.
13162 * modules/unistr/u32-move: New file.
13163 * lib/unistr/u8-move.c: New file.
13164 * lib/unistr/u16-move.c: New file.
13165 * lib/unistr/u32-move.c: New file.
13166 * lib/unistr/u-move.h: New file.
13168 * modules/unistr/u8-next: New file.
13169 * modules/unistr/u16-next: New file.
13170 * modules/unistr/u32-next: New file.
13171 * lib/unistr/u8-next.c: New file.
13172 * lib/unistr/u16-next.c: New file.
13173 * lib/unistr/u32-next.c: New file.
13175 * modules/unistr/u8-prev: New file.
13176 * modules/unistr/u16-prev: New file.
13177 * modules/unistr/u32-prev: New file.
13178 * lib/unistr/u8-prev.c: New file.
13179 * lib/unistr/u16-prev.c: New file.
13180 * lib/unistr/u32-prev.c: New file.
13182 * modules/unistr/u8-set: New file.
13183 * modules/unistr/u16-set: New file.
13184 * modules/unistr/u32-set: New file.
13185 * lib/unistr/u8-set.c: New file.
13186 * lib/unistr/u16-set.c: New file.
13187 * lib/unistr/u32-set.c: New file.
13188 * lib/unistr/u-set.h: New file.
13190 * modules/unistr/u8-startswith: New file.
13191 * modules/unistr/u16-startswith: New file.
13192 * modules/unistr/u32-startswith: New file.
13193 * lib/unistr/u8-startswith.c: New file.
13194 * lib/unistr/u16-startswith.c: New file.
13195 * lib/unistr/u32-startswith.c: New file.
13196 * lib/unistr/u-startswith.h: New file.
13198 * modules/unistr/u8-stpcpy: New file.
13199 * modules/unistr/u16-stpcpy: New file.
13200 * modules/unistr/u32-stpcpy: New file.
13201 * lib/unistr/u8-stpcpy.c: New file.
13202 * lib/unistr/u16-stpcpy.c: New file.
13203 * lib/unistr/u32-stpcpy.c: New file.
13204 * lib/unistr/u-stpcpy.h: New file.
13206 * modules/unistr/u8-stpncpy: New file.
13207 * modules/unistr/u16-stpncpy: New file.
13208 * modules/unistr/u32-stpncpy: New file.
13209 * lib/unistr/u8-stpncpy.c: New file.
13210 * lib/unistr/u16-stpncpy.c: New file.
13211 * lib/unistr/u32-stpncpy.c: New file.
13212 * lib/unistr/u-stpncpy.h: New file.
13214 * modules/unistr/u8-strcat: New file.
13215 * modules/unistr/u16-strcat: New file.
13216 * modules/unistr/u32-strcat: New file.
13217 * lib/unistr/u8-strcat.c: New file.
13218 * lib/unistr/u16-strcat.c: New file.
13219 * lib/unistr/u32-strcat.c: New file.
13220 * lib/unistr/u-strcat.h: New file.
13222 * modules/unistr/u8-strchr: New file.
13223 * modules/unistr/u16-strchr: New file.
13224 * modules/unistr/u32-strchr: New file.
13225 * lib/unistr/u8-strchr.c: New file.
13226 * lib/unistr/u16-strchr.c: New file.
13227 * lib/unistr/u32-strchr.c: New file.
13229 * modules/unistr/u8-strcmp: New file.
13230 * modules/unistr/u16-strcmp: New file.
13231 * modules/unistr/u32-strcmp: New file.
13232 * lib/unistr/u8-strcmp.c: New file.
13233 * lib/unistr/u16-strcmp.c: New file.
13234 * lib/unistr/u32-strcmp.c: New file.
13236 * modules/unistr/u8-strcpy: New file.
13237 * modules/unistr/u16-strcpy: New file.
13238 * modules/unistr/u32-strcpy: New file.
13239 * lib/unistr/u8-strcpy.c: New file.
13240 * lib/unistr/u16-strcpy.c: New file.
13241 * lib/unistr/u32-strcpy.c: New file.
13242 * lib/unistr/u-strcpy.h: New file.
13244 * modules/unistr/u8-strcspn: New file.
13245 * modules/unistr/u16-strcspn: New file.
13246 * modules/unistr/u32-strcspn: New file.
13247 * lib/unistr/u8-strcspn.c: New file.
13248 * lib/unistr/u16-strcspn.c: New file.
13249 * lib/unistr/u32-strcspn.c: New file.
13250 * lib/unistr/u-strcspn.h: New file.
13252 * modules/unistr/u8-strdup: New file.
13253 * modules/unistr/u16-strdup: New file.
13254 * modules/unistr/u32-strdup: New file.
13255 * lib/unistr/u8-strdup.c: New file.
13256 * lib/unistr/u16-strdup.c: New file.
13257 * lib/unistr/u32-strdup.c: New file.
13258 * lib/unistr/u-strdup.h: New file.
13260 * modules/unistr/u8-strlen: New file.
13261 * modules/unistr/u16-strlen: New file.
13262 * modules/unistr/u32-strlen: New file.
13263 * lib/unistr/u8-strlen.c: New file.
13264 * lib/unistr/u16-strlen.c: New file.
13265 * lib/unistr/u32-strlen.c: New file.
13266 * lib/unistr/u-strlen.h: New file.
13268 * modules/unistr/u8-strmblen: New file.
13269 * modules/unistr/u16-strmblen: New file.
13270 * modules/unistr/u32-strmblen: New file.
13271 * lib/unistr/u8-strmblen.c: New file.
13272 * lib/unistr/u16-strmblen.c: New file.
13273 * lib/unistr/u32-strmblen.c: New file.
13275 * modules/unistr/u8-strmbtouc: New file.
13276 * modules/unistr/u16-strmbtouc: New file.
13277 * modules/unistr/u32-strmbtouc: New file.
13278 * lib/unistr/u8-strmbtouc.c: New file.
13279 * lib/unistr/u16-strmbtouc.c: New file.
13280 * lib/unistr/u32-strmbtouc.c: New file.
13282 * modules/unistr/u8-strncat: New file.
13283 * modules/unistr/u16-strncat: New file.
13284 * modules/unistr/u32-strncat: New file.
13285 * lib/unistr/u8-strncat.c: New file.
13286 * lib/unistr/u16-strncat.c: New file.
13287 * lib/unistr/u32-strncat.c: New file.
13288 * lib/unistr/u-strncat.h: New file.
13290 * modules/unistr/u8-strncmp: New file.
13291 * modules/unistr/u16-strncmp: New file.
13292 * modules/unistr/u32-strncmp: New file.
13293 * lib/unistr/u8-strncmp.c: New file.
13294 * lib/unistr/u16-strncmp.c: New file.
13295 * lib/unistr/u32-strncmp.c: New file.
13297 * modules/unistr/u8-strncpy: New file.
13298 * modules/unistr/u16-strncpy: New file.
13299 * modules/unistr/u32-strncpy: New file.
13300 * lib/unistr/u8-strncpy.c: New file.
13301 * lib/unistr/u16-strncpy.c: New file.
13302 * lib/unistr/u32-strncpy.c: New file.
13303 * lib/unistr/u-strncpy.h: New file.
13305 * modules/unistr/u8-strnlen: New file.
13306 * modules/unistr/u16-strnlen: New file.
13307 * modules/unistr/u32-strnlen: New file.
13308 * lib/unistr/u8-strnlen.c: New file.
13309 * lib/unistr/u16-strnlen.c: New file.
13310 * lib/unistr/u32-strnlen.c: New file.
13311 * lib/unistr/u-strnlen.h: New file.
13313 * modules/unistr/u8-strpbrk: New file.
13314 * modules/unistr/u16-strpbrk: New file.
13315 * modules/unistr/u32-strpbrk: New file.
13316 * lib/unistr/u8-strpbrk.c: New file.
13317 * lib/unistr/u16-strpbrk.c: New file.
13318 * lib/unistr/u32-strpbrk.c: New file.
13319 * lib/unistr/u-strpbrk.h: New file.
13321 * modules/unistr/u8-strrchr: New file.
13322 * modules/unistr/u16-strrchr: New file.
13323 * modules/unistr/u32-strrchr: New file.
13324 * lib/unistr/u8-strrchr.c: New file.
13325 * lib/unistr/u16-strrchr.c: New file.
13326 * lib/unistr/u32-strrchr.c: New file.
13328 * modules/unistr/u8-strspn: New file.
13329 * modules/unistr/u16-strspn: New file.
13330 * modules/unistr/u32-strspn: New file.
13331 * lib/unistr/u8-strspn.c: New file.
13332 * lib/unistr/u16-strspn.c: New file.
13333 * lib/unistr/u32-strspn.c: New file.
13334 * lib/unistr/u-strspn.h: New file.
13336 * modules/unistr/u8-strstr: New file.
13337 * modules/unistr/u16-strstr: New file.
13338 * modules/unistr/u32-strstr: New file.
13339 * lib/unistr/u8-strstr.c: New file.
13340 * lib/unistr/u16-strstr.c: New file.
13341 * lib/unistr/u32-strstr.c: New file.
13342 * lib/unistr/u-strstr.h: New file.
13344 * modules/unistr/u8-strtok: New file.
13345 * modules/unistr/u16-strtok: New file.
13346 * modules/unistr/u32-strtok: New file.
13347 * lib/unistr/u8-strtok.c: New file.
13348 * lib/unistr/u16-strtok.c: New file.
13349 * lib/unistr/u32-strtok.c: New file.
13350 * lib/unistr/u-strtok.h: New file.
13352 * modules/unistr/u8-uctomb: New file.
13353 * modules/unistr/u16-uctomb: New file.
13354 * modules/unistr/u32-uctomb: New file.
13355 * lib/unistr/u8-uctomb.c: New file.
13356 * lib/unistr/u16-uctomb.c: New file.
13357 * lib/unistr/u32-uctomb.c: New file.
13359 * MODULES.html.sh (Unicode string functions): Add the new modules.
13361 2007-01-08 Bruno Haible <bruno@clisp.org>
13363 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
13364 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
13367 2007-01-08 Karl Berry <karl@gnu.org>
13369 * doc/error.texi: mention that main() fns must set program_name
13370 when progname is used.
13372 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
13374 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
13375 WCTYPE_H is empty, for the benefit of builds from non-distclean
13376 directories. Problem reported by Eric Blake in
13377 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
13379 2007-01-08 Bruno Haible <bruno@clisp.org>
13381 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
13382 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
13383 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
13384 PROVIDE_CANONICALIZE_FILENAME_MODE.
13385 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
13387 2007-01-08 Bruno Haible <bruno@clisp.org>
13389 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
13390 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
13391 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
13392 * lib/fts.c: Likewise.
13393 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
13395 2006-12-25 Bruno Haible <bruno@clisp.org>
13397 * modules/utf8-ucs4-safe: New file.
13398 * lib/utf8-ucs4-safe.h: New file.
13399 * lib/unistr/utf8-ucs4-safe.c: New file.
13401 * modules/utf16-ucs4-safe: New file.
13402 * lib/utf16-ucs4-safe.h: New file.
13403 * lib/unistr/utf16-ucs4-safe.c: New file.
13405 * MODULES.html.sh (Unicode string functions): Add the new modules.
13407 2007-01-08 Bruno Haible <bruno@clisp.org>
13409 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
13410 (Depends-on): Add unitypes.
13411 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
13412 (u8_mbtouc_aux): Move out to separate file.
13413 (u8_mbtouc): Use ucs4_t, uint8_t types.
13414 * lib/unistr/utf8-ucs4.c: New file.
13416 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
13417 (Depends-on): Add unitypes.
13418 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
13419 (u16_mbtouc_aux): Move out to separate file.
13420 (u16_mbtouc): Use ucs4_t, uint16_t types.
13421 * lib/unistr/utf16-ucs4.c: New file.
13423 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
13424 (Depends-on): Add unitypes.
13425 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
13426 (u8_uctomb_aux): Move out to separate file.
13427 (u8_uctomb): Use ucs4_t, uint8_t types.
13428 * lib/unistr/ucs4-utf8.c: New file.
13430 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
13431 (Depends-on): Add unitypes.
13432 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
13433 (u16_uctomb_aux): Move out to separate file.
13434 (u16_uctomb): Use ucs4_t, uint16_t types.
13435 * lib/unistr/ucs4-utf16.c: New file.
13437 2006-12-25 Bruno Haible <bruno@clisp.org>
13439 * modules/unitypes: New file.
13440 * lib/unitypes.h: New file.
13441 * MODULES.html.sh (func_all_modules): New section "Unicode string
13442 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
13443 this section. Add unitypes.
13445 2007-01-08 Bruno Haible <bruno@clisp.org>
13447 Avoid variable names that conflict with those from libtool.
13448 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
13449 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
13450 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
13451 library_names_spec to acl_library_names_spec, hardcode_* to
13453 Reported by Ralf Wildenhues.
13455 2007-01-08 Bruno Haible <bruno@clisp.org>
13457 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
13459 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
13461 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
13462 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
13464 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
13466 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
13467 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
13468 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
13469 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
13471 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
13473 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
13474 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
13475 GC_USE_<algorithm>.
13476 * lib/gc-libgcrypt.c: Likewise.
13477 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
13478 * modules/gc-arctwo (configure.ac): Likewise.
13479 * modules/gc-des (configure.ac): Likewise.
13480 * modules/gc-hmac-md5 (configure.ac): Likewise.
13481 * modules/gc-hmac-sha1 (configure.ac): Likewise.
13482 * modules/gc-md2 (configure.ac): Likewise.
13483 * modules/gc-md4 (configure.ac): Likewise.
13484 * modules/gc-md5 (configure.ac): Likewise.
13485 * modules/gc-random (configure.ac): Likewise.
13486 * modules/gc-rijndael (configure.ac): Likewise.
13487 * modules/gc-sha1 (configure.ac): Likewise.
13489 2007-01-08 Bruno Haible <bruno@clisp.org>
13491 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
13493 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
13495 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
13497 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
13498 * modules/fcntl-safer (configure.ac): Likewise.
13499 * modules/fopen-safer (configure.ac): Likewise.
13500 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
13501 GNULIB_FWRITEERROR macro definition.
13503 2007-01-08 Bruno Haible <bruno@clisp.org>
13505 * m4/gnulib-common.m4: New file.
13506 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
13507 (func_get_filelist): Add m4/gnulib-common.m4.
13509 2007-01-08 Bruno Haible <bruno@clisp.org>
13511 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
13514 2007-01-08 Jim Meyering <jim@meyering.net>
13516 Use a more robust test for a "can't happen" condition.
13517 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
13518 narrowed the st_size value. Presuming the "can't happen" condition
13519 is true, that narrowing could conceivably convert an invalid st_size
13520 value into a valid one. Instead, use a change based on Matthew
13521 Woehlke's original patch.
13523 Slight readability improvement: use an assert-like macro
13524 in place of literal "abort ()" uses.
13525 * lib/fts.c (fts_assert): Define.
13526 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
13527 Use this macro instead of a bare 'abort'.
13529 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
13531 Don't worry about using IRIX 5.3's wctype.h broken definitions;
13532 simply work around them.
13533 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
13534 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
13535 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
13537 Don't bother to define as macros, since the standard doesn't require it.
13538 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
13539 longer worry about IRIX 5.3.
13540 (HAVE_WCTYPE_CTMP_BUG): Remove.
13542 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
13544 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
13545 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
13546 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13547 Problems reported by Georg Schwarz for IRIX 5.3.
13549 * gnulib-tool (autoconf_minversion): Take the maximum version number
13550 found, not the minimum. Problem reported by James Youngman.
13552 2007-01-03 Karl Berry <karl@gnu.org>
13554 * doc/error.texi: new file, explaining interaction with progname.
13555 * doc/gnulib.texi: include it. Update copyright.
13557 2007-01-03 Simon Josefsson <simon@josefsson.org>
13559 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
13560 AC_CANONICAL_HOST, to improve autobuild outputs.
13562 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
13563 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13565 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
13566 sockets, server sockets, and other file descriptors. Count errors
13567 to compute the return value. Reorder the code a bit to be easier
13568 to follow. Don't set event bits that were not requested (except
13569 POLLERR and POLLHUP).
13571 2007-01-01 Bruno Haible <bruno@clisp.org>
13573 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
13575 2007-01-03 Jim Meyering <jim@meyering.net>
13577 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
13579 2007-01-02 Bruno Haible <bruno@clisp.org>
13581 * modules/settime (Include): Require timespec.h.
13582 * modules/nanosleep (Include): Likewise.
13584 2007-01-01 Bruno Haible <bruno@clisp.org>
13586 * gnulib-tool (func_emit_copyright_notice): Bump year.
13587 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
13589 2007-01-01 Bruno Haible <bruno@clisp.org>
13591 Improve support for OpenBSD.
13592 * build-aux/config.rpath (libname_spec): Export.
13593 (library_names_spec): New variable. Export.
13594 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
13595 library_names_spec from the config.rpath output. Locate shared library
13596 through the name pattern in library_names_spec.
13598 2007-01-01 Eric Blake <ebb9@byu.net>
13600 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
13602 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
13604 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
13605 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
13606 assume the C locale, and avoid an "eval" that could cause trouble.
13607 Problem with SORT reported by Bob Proulx.
13609 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
13610 Define. Trivial patch from Henning Nielsen Lund, originally
13611 sent to bug-grep@gnu.org today.
13613 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
13615 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
13616 struct stat. Problem reported by Henning Nielsen Lund.
13617 * lib/acl.c: Include acl.h first, to check interface. Don't
13618 bother to include sys/types.h and sys/stat.h again.
13620 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
13622 Import the following change from libc; problem reported by
13625 2005-10-13 Ulrich Drepper <drepper@redhat.com>
13628 * lib/argp.h: Remove __NTH for __argp_usage inline function.
13630 2006-12-28 Jim Meyering <jim@meyering.net>
13632 * build-aux/announce-gen: Do not assume that the package
13633 builds any of tar.gz, tar.bz2, and .xdelta files.
13634 Suggestion from Simon Josefsson.
13636 2006-12-28 Simon Josefsson <simon@josefsson.org>
13638 * modules/announce-gen: New file.
13640 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
13642 * lib/mbchar.h: Just include <wctype.h>; the wctype module
13643 handles its gotchas now.
13644 * lib/mbswidth.c: Likewise.
13645 * lib/wcwidth.h: Likewise.
13646 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
13647 and iswcntrl; the wctype module does this stuff now.
13648 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13649 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13650 * modules/mbchar (Depends-on): Add wctype.
13651 * modules/mbswidth (Depends-on): Likewise.
13652 * modules/wcwidth (Depends-on): Likewise.
13654 2006-12-27 Eric Blake <ebb9@byu.net>
13656 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
13657 module uses more than what <wctype.h> is required to provide.
13659 2006-12-26 Eric Blake <ebb9@byu.net>
13661 * gnulib-tool (sed_extract_prog): Avoid space-tab.
13663 2006-12-26 Eric Blake <ebb9@byu.net>
13665 * modules/absolute-header: New module.
13666 * modules/fcntl (Depends-on): Depend on it.
13667 * modules/inttypes (Depends-on): Likewise.
13668 * modules/stdint (Depends-on): Likewise.
13669 * modules/sys_stat (Depends-on): Likewise.
13670 * modules/wctype (Depends-on): Likewise.
13671 * MODULES.html.sh (Support for building libraries and
13672 executables): Document it.
13674 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
13676 * gnulib-tool (SED): Remove, undoing previous change.
13677 The problem was that it broke coreutils on Solaris, because
13678 "sed --posix" leaked into a makefile.
13679 (sed): New alias, if 'alias' and GNU sed.
13681 2006-12-24 Jim Meyering <jim@meyering.net>
13683 Work around an fchownat bug in glibc-2.4:
13684 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
13685 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
13686 in spite of the -P option.
13687 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
13689 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
13690 * modules/openat (Files): Add lib/fchownat.c.
13691 * lib/openat.c (fchownat): Don't define here. Move to...
13692 * lib/fchownat.c: ...this new file.
13694 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
13696 Fix bug reported by Bruno Haible in
13697 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
13698 where quotearg.c didn't compile on Mac OS X 10.2 because it
13699 lacks <wchar.h> and wint_t.
13700 * lib/wctype_.h (__wctype_wint_t): New type.
13701 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
13702 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
13703 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
13704 Arg is now of type __wctype_wint_t, not wint_t.
13705 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
13706 substitute HAVE_WINT_T.
13707 * modules/wctype (Files): Add m4/wint_t.m4.
13708 (wctype.h): Substitute HAVE_WINT_T.
13710 2006-12-23 Bruno Haible <bruno@clisp.org>
13712 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
13714 2006-12-23 Bruno Haible <bruno@clisp.org>
13716 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
13718 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
13721 2006-12-22 Bruno Haible <bruno@clisp.org>
13723 * lib/copy-file.c: Include acl.h.
13724 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
13725 Close the file descriptors only after being done with copy_acl.
13726 * modules/copy-file (Depends-on): Add acl.
13728 2006-12-22 Bruno Haible <bruno@clisp.org>
13730 * gnulib-tool (SED): New variable.
13731 Use $SED instead of sed everywhere.
13733 2006-12-22 Bruno Haible <bruno@clisp.org>
13735 * modules/no-c++: New file.
13736 * m4/no-c++.m4: New file.
13737 * MODULES.html.sh (Support for building libraries and executables):
13740 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
13742 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
13743 Include <limits.h>, and use its INT_MAX to rewrite the
13744 j loop so that it does not overflow 'int'. Problem reported by
13746 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
13747 Play it safe by shifting left by 1 rather than multiplying by 2,
13748 as GCC is less likely to optimize this away when the value
13749 is signed (when it assumes overflow leads to undefined behavior).
13750 Also, don't assume time_t uses two's complement.
13752 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
13754 * MODULES.html.sh: New module wctype.
13755 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
13756 * lib/fnmatch.c: Don't bother to include <wchar.h> before
13757 <wctype.h>, since the new wctype module should fix this.
13758 * lib/quotearg.c: Include <wctype.h> unconditionally, since
13759 the wctype module should arrange for it.
13760 * lib/regex_internal.h: Likewise.
13761 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
13762 since the wctype module should handle this now.
13763 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
13764 * modules/fnmatch (Depends-on): Add wctype.
13765 * modules/quotearg (Depends-on): Likewise.
13766 * modules/regex (Depends-on): Likewise.
13768 2006-12-19 Bruno Haible <bruno@clisp.org>
13770 * lib/strdup.h [C++]: Wrap definitions in extern "C".
13771 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
13773 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13775 * modules/savewd (Depends-on): Fix dependency on fcntl.
13777 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
13779 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
13780 conforms to C99, rather than relying on the user's environment
13781 setting of STDINT_H.
13783 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
13784 and Eric Blake <ebb9@byu.net>
13786 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
13787 This is more consistent with the other defines here.
13788 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
13789 Port to z/OS. Problem reported by Paul Gilmartin.
13790 Change local vars to use gl_ prefix rather than ac_.
13791 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
13792 with other defines.
13793 * modules/double-slash-root: New module.
13794 * modules/dirname (Files): Remove m4/double-slash-root.m4.
13795 (Depends-on): Add double-slash-root.
13796 * MODULES.html.sh (File system functions): Mention new module.
13798 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
13800 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
13801 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
13802 This is for the benefit of gzip, which doesn't do i18n.
13804 2006-12-12 Jim Meyering <jim@meyering.net>
13806 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
13807 Reported by Andreas Schwab <schwab@suse.de>.
13809 2006-12-12 Bruno Haible <bruno@clisp.org>
13811 Merge these changes.
13812 2006-09-05 Bruno Haible <bruno@clisp.org>
13813 * lib/iconvme.c (iconv_string): No need to save and restore errno when
13814 iconv_alloc succeeded.
13815 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
13816 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
13817 test for " && dest " at the end - dest is always != NULL there. Call
13818 iconv with 4xNULL arguments initially, to reset the state. Call iconv
13819 with 2xNULL arguments, also to flush the state storage. Handle the
13820 IRIX iconv behaviour. Realloc the final result, to throw away unused
13823 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
13825 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
13826 and fchmodat unconditionally, since glibc 2.4 has them.
13827 Problem reported by Arkadiusz Miskiewicz.
13829 2006-12-10 Bruno Haible <bruno@clisp.org>
13831 * gnulib-tool (func_import): Show the include files only for those
13832 modules that are copied and specified.
13833 Reported by Karl Berry.
13835 2006-12-08 Jim Meyering <jim@meyering.net>
13837 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
13838 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
13840 * build-aux/announce-gen: Add two new options, both optional:
13841 --bootstrap-tools=TOOL_LIST
13842 a comma-separated list of tools, e.g.,
13843 autoconf,automake,bison,gnulib
13844 --gnulib-snapshot-date=DATE
13845 if gnulib is in the bootstrap tool list,
13846 then report this as the snapshot date.
13847 If not specified, use the current date/time.
13848 If you specify a date here, be sure it's UTC.
13850 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13852 * tests/test-argp-2.sh: Fix test to match actual output.
13853 (func_compare): Fix sed script to be portable.
13855 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
13857 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
13858 workaround for this case. It is not autoconfigured now; offhand
13859 it's hard to see how to autoconfigure it.
13861 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
13863 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
13864 a directory that is about to be chowned. Such a directory's
13865 initial file permissions should permit the owner only and this
13866 should not be changed until after the chown, since the group and
13867 other bits would be incorrect if they granted permission before
13870 Fix porting problem for iswctype reported by Georg Schwarz in:
13871 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
13872 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
13873 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
13874 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
13875 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13877 2006-12-03 Jim Meyering <jim@meyering.net>
13879 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
13880 p->fts_statp may not yet be defined.
13881 (fts_read): Instead, set it in the caller, once p->fts_statp is
13882 sure to be defined, and corresponds to a top-level directory.
13883 This bug made du -x fail. Here's the coreutils test case:
13884 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
13885 Reported by Mike Frysinger.
13887 2006-12-01 Jim Meyering <jim@meyering.net>
13889 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
13890 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
13891 Reported by Simon Josefsson.
13893 2006-11-30 Jim Meyering <jim@meyering.net>
13895 * m4/warning.m4: Use the all-permissive copyright notice
13896 recommended by RMS (rather than LGPL).
13897 * m4/vararrays.m4: Likewise.
13898 * m4/flexmember.m4: Likewise.
13900 2006-11-29 Bruno Haible <bruno@clisp.org>
13902 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
13903 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
13905 Reported by Simon Josefsson <simon@josefsson.org>.
13907 2006-11-28 James Youngman <jay@gnu.org>
13909 * README: Advise users that they might find the bug-gnulib@gnu.org
13910 and autotools-announce@gnu.org mailing lists useful.
13912 2006-11-28 Bruno Haible <bruno@clisp.org>
13914 * m4/ptrdiff_max.m4: Remove file.
13916 2006-11-21 Bruno Haible <bruno@clisp.org>
13918 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
13920 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13921 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
13923 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13924 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
13926 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13928 2006-11-28 Jim Meyering <jim@meyering.net>
13930 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
13931 warning from "gcc -Wshadow" about shadowing the builtin.
13933 2006-11-27 Bruno Haible <bruno@clisp.org>
13935 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
13937 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13939 2006-11-27 Bruno Haible <bruno@clisp.org>
13940 Paul Eggert <eggert@cs.ucla.edu>
13942 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
13944 2006-11-26 Bruno Haible <bruno@clisp.org>
13946 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
13947 noinst_LTLIBRARIES.
13949 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
13950 Bruno Haible <bruno@clisp.org>
13952 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
13953 if compiling with "gcc -ansi".
13955 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
13957 Fix some incompatibilities with gcc -ansi -pedantic.
13958 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
13959 if compiling pedantically with GCC, unless it's C99 or later.
13960 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
13961 it mishandles gcc -ansi -pedantic as well.
13962 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
13964 * lib/regexec.c (check_node_accept_bytes): Don't use auto
13965 initializers for struct if -pedantic, unless it's C99 or later.
13967 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
13969 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
13970 Don't close an fd more than once. Identical atimes indicate
13971 success, not failure.
13973 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
13975 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
13977 2006-11-23 Jim Meyering <jim@meyering.net>
13979 * build-aux/announce-gen: New file. From coreutils.
13981 2006-11-22 Jim Meyering <jim@meyering.net>
13983 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
13984 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
13985 (fts_read): Use a temporary to narrow the overused st_size member
13986 before using it in a switch statement. Reported by Matthew Woehlke.
13988 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
13989 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13991 2006-11-20 Bruno Haible <bruno@clisp.org>
13993 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
13994 changequote instead of pairs of brackets.
13995 Reported by Andreas Schwab <schwab@suse.de>.
13997 2006-11-21 Jim Meyering <jim@meyering.net>
13999 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
14000 so as to remain compatible with older compilers.
14001 Patch from Michael Deutschmann.
14003 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
14005 * MODULES.html.sh (File system functions): Add openat.
14007 * lib/openat.h (rpl_fstatat): New macro, if
14008 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
14009 (fstatat): Define to rpl_fstatat under the same conditions,
14010 unless COMPILING_FSTATAT.
14011 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
14012 seems to have the bug.
14013 * lib/fstatat.c: New file.
14014 * modules/openat (Files): Add it.
14016 2006-11-20 Bruno Haible <bruno@clisp.org>
14018 * Makefile: New file.
14020 2006-11-20 Jim Meyering <jim@meyering.net>
14022 The beginnings of syntax-related checks for gnulib.
14023 * lib/Makefile: New file.
14024 * lib/t-idcache: New script. Ensure that the two halves of
14025 idcache.c stay in sync.
14027 * lib/idcache.c: Adjust comments in user- and group- portions to
14028 be more accurate, and to be consistent with one another.
14030 2006-11-20 Jim Meyering <jim@meyering.net>
14032 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
14033 continue using the flexible array member (thus, this module performs
14034 half as many malloc calls), with the addition that...
14035 (getgroup, getuser): Consistently record a non-match via an empty
14036 "name" string, and map an empty string match to a NULL return value.
14037 * modules/idcache (Depends-on): Re-add flexmember.
14039 * lib/idcache.c (getuser): Remove all uses of the register keyword.
14040 (getuidbyname, getgroup, getgidbyname): Likewise.
14042 Use cleaner syntax: NULL rather than 0.
14043 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
14045 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
14047 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
14048 It mishandled the case where the group was missing.
14049 Problem reported by Greg Schafer.
14050 * modules/idcache: Likewise.
14052 2006-11-18 Jim Meyering <jim@meyering.net>
14054 * check-module (%exempt_header): Add exception for some
14055 conditionally-included headers.
14057 * modules/i-ring (Depends-on): Add verify.
14058 (License): Change to LGPL.
14060 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
14062 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
14063 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
14064 and inttostr.h. Use snprintf rather than uinttostr, so that
14065 LGPLed code doesn't depend on GPLed.
14067 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
14069 * modules/inline (License): Change from GPL to LGPL.
14071 2006-11-17 Jim Meyering <jim@meyering.net>
14073 * modules/d-type (License): Switch to LGPL.
14075 2006-11-15 Bruno Haible <bruno@clisp.org>
14077 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
14079 2006-11-15 Eric Blake <ebb9@byu.net>
14081 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
14082 the module dependency.
14084 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14085 Bruno Haible <bruno@clisp.org>
14087 * gnulib-tool (func_create_testdir): Add license consistency check.
14089 2006-11-15 Eric Blake <ebb9@byu.net>
14091 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
14092 random "(cached)" in configure output.
14094 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14096 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
14097 test for conforming inttypes.h is both announced and cached.
14099 * MODULES.html.sh (seen_modules, seen_files): New variables.
14100 (func_module): Rewrite to use a few less gnulib-tool and sed
14101 invocations. Avoid a couple of quadratic algorithms for ...
14102 (missed_modules, missed_files): ... these, with ...
14103 (func_append, func_tmpdir): ... these new functions, from
14104 gnulib-tool. Analogously, install traps for cleanup.
14106 * tests/test-gc.c (main): Remove unused variables.
14107 * tests/test-read-file.c: Include stdlib.h, for 'free'.
14109 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
14111 * modules/inttostr (License): Change to LGPL.
14113 2006-11-14 Eric Blake <ebb9@byu.net>
14115 * modules/tempname (License): Change to LGPL.
14117 2006-11-14 Eric Blake <ebb9@byu.net>
14119 * doc/functions.texi (Function Portability): *printf functions on
14120 Cygwin now understand all POSIX size specifiers.
14122 2006-11-14 Bruno Haible <bruno@clisp.org>
14124 * modules/c-ctype (License): Change to LGPL.
14126 2006-11-12 Bruno Haible <bruno@clisp.org>
14128 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14129 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
14130 for GNOME libraries, for which the include files are installed in
14131 subdirectories of $prefix/include.
14133 2006-11-12 Bruno Haible <bruno@clisp.org>
14135 * m4/lib-link.m4: Require at least autoconf-2.54.
14136 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
14137 name to underscores for the --with option.
14139 2006-11-13 Bruno Haible <bruno@clisp.org>
14141 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
14142 the tests directory.
14143 Reported by Ralf Wildenhues.
14145 2006-11-13 Bruno Haible <bruno@clisp.org>
14147 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
14148 (func_emit_initmacro_end): Undo the override here.
14149 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
14150 Works around the famous automake error in coreutils.
14152 2006-11-13 Eric Blake <ebb9@byu.net>
14154 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
14155 element, not its node.
14157 2006-11-12 Bruno Haible <bruno@clisp.org>
14159 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
14160 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
14162 2006-11-12 Bruno Haible <bruno@clisp.org>
14164 * gnulib-tool: New option --local-symlink.
14165 (func_usage): Document it.
14166 (lsymbolic): New variable.
14167 (func_import, func_create_testdir): If --symlink was not specified,
14168 test whether --local-symlink was specified and the file comes from
14169 the local_gnulib_dir.
14171 2006-11-12 Bruno Haible <bruno@clisp.org>
14173 * gnulib-tool (func_ln): New function.
14174 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
14176 2006-11-12 Bruno Haible <bruno@clisp.org>
14178 Finish support for source files in subdirectories.
14179 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
14180 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
14182 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
14184 2006-11-12 Bruno Haible <bruno@clisp.org>
14186 * gnulib-tool (func_get_automake_snippet): Synthesize also an
14187 EXTRA_lib_SOURCES augmentation.
14188 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
14190 2006-11-12 Jim Meyering <jim@meyering.net>
14192 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
14193 file descriptors. This also averts a failure on systems with
14194 native openat support when a traversed directory lacks "x" access.
14195 * lib/fts_.h: Include "i-ring.h"
14196 (struct FTS) [fts_fd_ring]: New member.
14197 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
14198 (FCHDIR): Add parentheses.
14199 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
14200 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
14201 When descending, rather than simply closing the previous
14202 fts_cwd_fd value, push that file descriptor onto the ring.
14203 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
14204 (fts_open): Initialize the new fd_ring member.
14205 (fts_close): Clear the ring.
14206 (fts_safe_changedir): When possible, use our new fd_ring to skip
14207 the diropen and fstat and dev/ino comparison that would normally
14208 accompany a virtual `chdir ("..")'.
14210 * modules/fts (Depends-on): Add i-ring.
14211 * modules/i-ring: New module.
14212 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
14213 * m4/i-ring.m4: New file.
14215 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14217 * gnulib-tool (func_create_testdir): Fix replacement of
14218 `build-aux' in configure.ac. Run autotools in gltests
14220 (func_create_testdir, func_create_megatestdir, test): There is
14221 no need for '--force' in most autotool invocations in a new
14222 tree. Actually fail the whole test if any of the tools, or the
14223 configure or make stages fail.
14225 Sync from Automake.
14226 * build-aux/gnupload: Revert last change. Add pointer to upload
14227 instructions of the GNU Maintenance Instructions.
14228 Suggestion by Karl Berry.
14230 2006-11-10 Jim Meyering <jim@meyering.net>
14232 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
14234 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
14236 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
14237 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
14238 (bind_textdomain_codeset) [! ENABLE_NLS]:
14239 Evaluate all the arguments. That way, callers get compatible behavior
14240 if the arguments have side effects. Also, it avoids some GCC
14241 diagnostics in some cases; Joel E. Denny reported problems when Bison
14242 was configured with --enable-gcc-warnigs.
14244 2006-11-10 Jim Meyering <jim@meyering.net>
14246 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
14247 relevant options in CFLAGS (like -O, -fno-inline) are taken into
14250 2006-11-10 Jim Meyering <jim@meyering.net>
14252 * modules/inline: New file/module.
14253 * modules/xalloc (Files): Remove m4/inline.m4.
14254 (Depends-on): Add inline, instead.
14255 * modules/oset: Likewise.
14256 * modules/list: Likewise.
14258 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
14260 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
14261 Problem reported by Matthew Woehlke.
14263 2006-11-09 Bruno Haible <bruno@clisp.org>
14265 * lib/tempname.c (gen_tempname): Remove variant that invokes
14267 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
14270 2006-11-08 Bruno Haible <bruno@clisp.org>
14272 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
14273 to 'yes' instead of 'cross-compiling'.
14275 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
14277 * lib/quotearg.h (quotearg_free): New decl.
14278 * lib/quotearg.c (quotearg_free): New function.
14279 (slot0, nslots, slotvec0, slotvec):
14280 Now file-scope so that quotearg_free can get at them.
14282 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14284 Sync from Automake.
14285 * build-aux/gnupload: Add missing 'gnu' to example URL.
14286 Report by Karl Berry.
14288 2006-11-08 Bruno Haible <bruno@clisp.org>
14290 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
14291 Suggested by Paul Eggert.
14293 2006-11-08 Jim Meyering <jim@meyering.net>
14295 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
14296 It's already included if !_LIBC.
14297 (fts_safe_changedir): Add a comment.
14299 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
14301 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
14302 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
14305 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
14306 definitions up, to avoid colliding with change below.
14307 (static_inline) [HAVE_INLINE]: New macro.
14308 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
14309 Provide extern decls when !HAVE_INLINE. Do not define unless
14310 static_inline is defined, either by us or by xmalloc.c. Use
14311 static_inline rather than static inline.
14312 (XCALLOC): Optimize sizeof(T) = 1 case.
14313 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
14315 2006-11-07 Bruno Haible <bruno@clisp.org>
14317 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
14318 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
14320 * modules/xalloc (Files): Add m4/inline.m4.
14322 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14324 * README: Fix typo.
14325 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
14326 (Miscellanous Notes): ...from this.
14328 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
14330 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
14331 Mention that offsetof should be used instead of sizeof.
14334 2006-11-07 Bruno Haible <bruno@clisp.org>
14336 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
14338 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
14340 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
14341 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
14342 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
14343 (gl_tree_add_before, gl_tree_add_after):
14344 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
14345 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
14346 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14347 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
14348 (gl_linked_add_after, gl_linked_add_at): Likewise.
14349 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
14350 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
14351 (gl_tree_add_before, gl_tree_add_after): Likewise.
14352 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
14353 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
14354 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14356 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14358 * lib/gl_oset.h: Use C comment style, not C++ comment style.
14360 2006-11-06 Bruno Haible <bruno@clisp.org>
14362 * m4/inline.m4: New file.
14363 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
14364 * modules/list (Files): Add m4/inline.m4.
14365 * modules/oset (Files): Likewise.
14367 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
14369 * lib/idcache.c: Include <stddef.h>, for offsetof.
14370 (struct userid.name): Change from char * to a flexible array member.
14372 * modules/idcache (Depends-on): Add flexmember.
14374 * MODULES.html.sh (Core language properties): New module flexmember.
14375 * modules/flexmember, m4/flexmember.m4: New files.
14377 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
14378 inline functions that are identical with the old xnmalloc_inline,
14379 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
14380 that we can avoid some unnecessary integer multiplications and
14381 divisions in the common case where the element size is known at
14383 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
14385 (xnboundedmalloc): Remove.
14386 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
14387 arguments, for consistency with rest of this header.
14388 (xcharalloc): Rewrite using XNMALLOC.
14389 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
14390 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
14391 versions have been moved to lib/xalloc.h and renamed to be the
14392 non-*_inline versions.
14393 (xmalloc, xrealloc): Implement without reference to the xnmalloc
14394 and xnrealloc functions, since those functions are now inline and
14396 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
14397 renaming described above.
14398 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
14399 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
14400 captures the dependency in AC_C_INLINE.
14402 New module canonicalize-lgpl, proposed by Charles Wilson in
14403 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
14404 with a few small changes afterwards.
14405 * MODULES.html.sh (File system functions): New module
14407 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
14408 and canonicalize_file_name.
14409 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
14410 * modules/canonicalize-lgpl: New files.
14412 2006-11-05 Bruno Haible <bruno@clisp.org>
14414 * gnulib-tool (func_import, func_create_testdir): Create directories
14415 also for files in subdirectories of lib/.
14417 2006-11-05 Bruno Haible <bruno@clisp.org>
14419 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
14422 2006-11-03 Bruno Haible <bruno@clisp.org>
14424 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
14425 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
14426 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
14427 (xnboundedmalloc): New inline function.
14428 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
14429 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
14431 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
14433 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
14434 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
14435 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
14437 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
14438 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
14440 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
14441 gl_tree_add_after): Use XMALLOC instead of xmalloc.
14442 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
14444 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
14445 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
14446 gl_tree_add_after): Use XMALLOC instead of xmalloc.
14447 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
14448 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
14449 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
14450 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
14452 2006-11-03 Bruno Haible <bruno@clisp.org>
14454 * lib/c-ctype.h [C++]: Define functions without name mangling.
14455 * lib/fwriteerror.h [C++]: Likewise.
14456 * lib/gcd.h [C++]: Likewise.
14457 * lib/linebreak.h [C++]: Likewise.
14459 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
14461 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
14462 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
14463 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
14464 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
14465 Check for functions and headers just once.
14466 Check for declaration of canonicalize_file_name.
14467 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
14469 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
14471 * gnulib-tool (func_import): Fix typo in actioncmd.
14473 2006-11-02 Bruno Haible <bruno@clisp.org>
14475 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
14476 newline sequence in the Makefile.am snippet as a space, like "make"
14478 Reported by Roger Persson <perrog@gmail.com>.
14480 2006-11-01 Bruno Haible <bruno@clisp.org>
14482 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
14483 already declared in <string.h>.
14484 * lib/strcase.h (strncasecmp): Don't declare it if yes.
14486 2006-11-01 Bruno Haible <bruno@clisp.org>
14488 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
14489 * lib/strcase.h: Include <string.h>.
14490 (strcasecmp): Define to rpl_strcasecmp here.
14492 2006-11-01 Bruno Haible <bruno@clisp.org>
14494 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
14496 2006-11-01 Eric Blake <ebb9@byu.net>
14498 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
14500 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
14502 2006-10-29 Bruno Haible <bruno@clisp.org>
14504 Make it compile in C++ mode.
14505 * lib/full-write.c (full_rw): Add a cast.
14507 2006-11-01 Bruno Haible <bruno@clisp.org>
14509 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
14510 be POSIX compliant.
14511 Reported by Roger Persson <perrog@gmail.com>.
14513 2006-11-01 Eric Blake <ebb9@byu.net>
14515 * lib/getopt_.h: Fix comments.
14517 2006-10-31 Eric Blake <ebb9@byu.net>
14519 * modules/tmpdir (Depends-on): Add sys_stat.
14520 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
14521 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
14522 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
14523 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
14526 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
14528 Avoid some C++ diagnostics reported by Bruno Haible.
14529 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
14531 (quotearg_alloc): Use xcharalloc rather than xmalloc.
14532 (struct slotvec): Move to top level.
14533 (quotearg_n_options): Rewrite to avoid xmalloc.
14534 * lib/xalloc.h (xcharalloc): New function.
14535 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
14536 [defined __cplusplus]: Add function template that provides result
14537 type propagation. This part of the change is from Bruno Haible.
14539 2006-10-29 Bruno Haible <bruno@clisp.org>
14541 Make it compile in C++ mode.
14542 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
14543 * lib/strnlen1.c (strnlen1): Cast memchr result.
14544 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
14545 * lib/clean-temp.c (string_equals, string_hash): Add casts.
14546 (create_temp_dir): Rename local variable 'template'.
14547 (compile_csharp_using_sscli): Add cast.
14548 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
14549 * lib/findprog.c (find_in_path): Likewise.
14550 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
14551 * lib/wait-process.c (register_slave_subprocess): Likewise.
14553 2006-10-22 Bruno Haible <bruno@clisp.org>
14555 * modules/tsearch: New file.
14556 * lib/tsearch.h: New file.
14557 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
14558 * m4/tsearch.m4: New file.
14559 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
14561 2006-10-29 Eric Blake <ebb9@byu.net>
14563 * lib/arcfour.c: Assume config.h.
14564 * lib/arctwo.c: Likewise.
14565 * lib/base64.c: Likewise.
14566 * lib/check-version.c: Likewise.
14567 * lib/crc.c: Likewise.
14568 * lib/des.c: Likewise.
14569 * lib/gc-gnulib.c: Likewise.
14570 * lib/gc-libgcrypt.c: Likewise.
14571 * lib/gc-pbkdf2-sha1.c: Likewise.
14572 * lib/getaddrinfo.c: Likewise.
14573 * lib/getdelim.c: Likewise.
14574 * lib/getline.c: Likewise.
14575 * lib/hmac-md5.c: Likewise.
14576 * lib/hmac-sha1.c: Likewise.
14577 * lib/iconvme.c: Likewise.
14578 * lib/md2.c: Likewise.
14579 * lib/md4.c: Likewise.
14580 * lib/memxor.c: Likewise.
14581 * lib/read-file.c: Likewise.
14582 * lib/readline.c: Likewise.
14583 * lib/rijndael-alg-fst.c: Likewise.
14584 * lib/rijndael-api-fst.c: Likewise.
14585 * lib/xgetdomainname.c: Likewise.
14587 2006-10-28 Eric Blake <ebb9@byu.net>
14589 * lib/xstrndup.c: Assume config.h.
14591 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
14593 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
14594 stat-macros.h is now for our own macros, whereas stat_h is for
14595 macros in the <sys/stat.h> name space.
14596 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
14597 (STAT_MACROS_H): Remove.
14598 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
14599 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
14600 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
14601 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
14602 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
14603 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
14604 Move these macros to ...
14605 * lib/stat_.h: here. Don't include stat-macros.h.
14606 * lib/canonicalize.c: Don't include stat-macros.h.
14607 * lib/chown.c: Likewise.
14608 * lib/euidaccess.c: Likewise.
14609 * lib/file-type.c: Likewise.
14610 * lib/filemode.c: Likewise.
14611 * lib/glob.c: Likewise.
14612 * lib/isapipe.c: Likewise.
14613 * lib/lchown.c: Likewise.
14614 * lib/lstat.c: Likewise.
14615 * lib/mkdir-p.c: Likewise.
14616 * lib/rmdir.c: Likewise.
14617 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
14618 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
14619 unless mkdir isn't declared, to speed up 'configure'.
14620 Always create sys/stat.h, since it's unlikely any real sys/stat.h
14621 would define all the S_* symbols.
14622 * modules/canonicalize (Depends-on):
14623 Depend on sys_stat, not stat-macros.
14624 * modules/chown: Likewise.
14625 * modules/euidaccess: Likewise.
14626 * modules/filemode: Likewise.
14627 * modules/file-type: Likewise.
14628 * modules/glob: Likewise.
14629 * modules/isapipe: Likewise.
14630 * modules/lchown: Likewise.
14631 * modules/lstat: Likewise.
14632 * modules/mkancesdirs: Likewise.
14633 * modules/rmdir: Likewise.
14634 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
14635 * modules/modechange: Likewise.
14636 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
14637 (configure.ac): Remove gl_STAT_MACROS.
14638 * modules/sys_stat (Depends-on): Remove stat-macros.
14640 2006-10-27 Bruno Haible <bruno@clisp.org>
14642 * m4/signed.m4: Remove file.
14643 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
14645 * modules/vasnprintf (Files): Remove m4/signed.m4.
14647 2006-10-27 Bruno Haible <bruno@clisp.org>
14649 Update to GNU gettext 0.16.
14650 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
14651 m4/inttypes-h.m4, m4/signed.m4.
14652 * m4/gettext.m4: Update to GNU gettext 0.16.
14653 * m4/intl.m4: New file, from GNU gettext.
14654 * m4/intldir.m4: New file, from GNU gettext.
14655 * config/srclist.txt: Update
14657 2006-10-27 Eric Blake <ebb9@byu.net>
14659 * MODULES.html.sh: Document tempname.
14660 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
14662 (Files): Move lib/tempname.c...
14663 * modules/tempname: ...to this new module.
14664 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
14665 (gl_PREREQ_TEMPNAME): Move...
14666 * m4/tempname.m4: ...to this new file.
14667 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
14668 * modules/sys_stat (Depends-on): Add stat-macros.
14669 * lib/stat_.h (includes): Pick up stat macros.
14670 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
14671 if stat macros are broken.
14672 * lib/tempname.c (includes): No need to include "stat-macros.h".
14673 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
14674 (direxists, __path_search) [!_LIBC]: Don't compile these in
14675 gnulib; the tmpdir module covers that.
14676 * lib/tempname.h: New file.
14678 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
14680 * COPYING: Explain how gnulib-tool converts licence headers.
14681 Almost all wording by Eric Blake.
14683 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
14685 * lib/mbchar.h (is_basic_table): Make read-only.
14686 * lib/mbchar.c (is_basic_table): Likewise.
14687 Reported by John Darrington.
14689 2006-10-25 Bruno Haible <bruno@clisp.org>
14691 * lib/progname.h (set_program_name): Undefine before defining.
14693 2006-10-25 Bruno Haible <bruno@clisp.org>
14695 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
14696 false for non-gcc C++ compilers.
14697 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14699 2006-10-24 Bruno Haible <bruno@clisp.org>
14701 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
14702 iconv implementations like Irix iconv.
14704 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
14706 * modules/vararrays: New file.
14707 * m4/vararrays.m4: New file, taken from diffutils.
14708 * MODULES.html.sh: New module vararrays.
14710 2006-10-24 Karl Berry <karl@gnu.org>
14712 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
14713 Don't call GNU Unix.
14715 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14717 * users.txt: Add Libtool.
14721 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
14723 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
14724 to gnulib's policy of including config.h unconditionally.
14726 2006-10-24 Bruno Haible <bruno@clisp.org>
14728 * modules/wcwidth (Files): Add m4/wint_t.m4.
14729 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
14730 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
14732 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
14734 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
14735 to pacify GCC with some -W flags enabled. Problem reported by
14738 2006-10-24 Jim Meyering <jim@meyering.net>
14740 * MODULES.html.sh: Remove uinttostr. It's not a module.
14741 Reported by Karl Berry.
14743 2006-10-23 Bruno Haible <bruno@clisp.org>
14745 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
14747 2006-10-24 Bruno Haible <bruno@clisp.org>
14749 * lib/gl_list.h: Use C comment style, not C++ comment style.
14751 2006-10-23 Eric Blake <ebb9@byu.net>
14753 * lib/getaddrinfo.c (includes): Add missing include.
14755 2006-10-23 Bruno Haible <bruno@clisp.org>
14756 Paul Eggert <eggert@cs.ucla.edu>
14758 Ability to rename obstack_free.
14759 * lib/obstack.h (__obstack_free): New macro. Declare instead of
14761 (obstack_free): Invoke the __obstack_free macro.
14762 * lib/obstack.c (obstack_free): Use __obstack_free macro.
14764 2006-10-23 Bruno Haible <bruno@clisp.org>
14765 Paul Eggert <eggert@cs.ucla.edu>
14767 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
14768 __argc, __argv from the declaration. (They are defined as macros on
14771 2006-10-22 Bruno Haible <bruno@clisp.org>
14773 * doc/gnulib-intro.texi: New file.
14774 * doc/gnulib.texi: Include it.
14776 2006-10-21 Bruno Haible <bruno@clisp.org>
14778 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
14779 "Introduction", "Miscellanous Notes", "Particular Modules".
14781 2006-10-21 Bruno Haible <bruno@clisp.org>
14783 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14784 Change mostlyclean-local rule to avoid sh syntax error from bash
14785 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
14787 2006-10-23 Jim Meyering <jim@meyering.net>
14789 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
14790 in place of snprintf.
14792 * modules/inttostr (Files): Add lib/uinttostr.c.
14793 * lib/uinttostr.c (inttostr): New file/function.
14794 * lib/inttostr.h (uinttostr): Declare.
14795 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
14796 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
14798 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
14800 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
14802 * lib/canonicalize.c (ELOOP): Define if not already defined.
14803 Problem reported by Bruno Haible in
14804 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
14806 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
14808 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
14809 Problem reported by Perry Smith and Ville Laurikari.
14811 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
14814 2006-10-19 Bruno Haible <bruno@clisp.org>
14816 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
14819 2006-10-19 Bruno Haible <bruno@clisp.org>
14821 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
14824 2006-10-19 Bruno Haible <bruno@clisp.org>
14826 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
14828 2006-10-19 Bruno Haible <bruno@clisp.org>
14830 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
14833 2006-10-19 Bruno Haible <bruno@clisp.org>
14835 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
14838 2006-10-19 Bruno Haible <bruno@clisp.org>
14840 * gnulib-tool (func_create_testdir): Don't include ftruncate and
14841 mountlist by default.
14843 2006-10-16 Bruno Haible <bruno@clisp.org>
14845 * lib/c-strstr.c: Include c-strstr.h.
14847 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
14849 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
14852 2006-10-18 Bruno Haible <bruno@clisp.org>
14854 * lib/lock.h [C++]: Wrap definitions in extern "C".
14856 2006-10-18 Bruno Haible <bruno@clisp.org>
14858 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
14861 2006-10-18 Bruno Haible <bruno@clisp.org>
14863 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
14865 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
14867 * lib/xstrtol.h: Include gettext.h.
14868 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
14869 Problem reported by Eric Blake.
14870 * modules/xstrtol (Depends-on): Add gettext-h.
14872 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
14874 * lib/strftime.c (advance): New macro.
14875 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
14876 incomplete type, so you can't add 0 to it. Problem and patch
14877 reported by Eelco Dolstra for dietlibc.
14879 2006-10-18 Jim Meyering <jim@meyering.net>
14881 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
14882 type for a local, and rename it: s/up/user_proc/.
14884 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
14886 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
14887 READ_UTMP_USER_PROCESS.
14888 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
14890 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
14892 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
14893 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
14895 2006-10-17 Eric Blake <ebb9@byu.net>
14897 * lib/sigprocmask.c (sigprocmask): Fix typo.
14899 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
14901 * modules/clean-temp (Makefile.am): Don't add to make output...
14902 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
14905 2006-10-17 Bruno Haible <bruno@clisp.org>
14907 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
14908 differently if DEFAULT_TEXT_DOMAIN is set.
14910 2006-10-16 Bruno Haible <bruno@clisp.org>
14912 * lib/clean-temp.c: Include fwriteerror.h.
14914 2006-10-16 Bruno Haible <bruno@clisp.org>
14916 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
14918 2006-10-16 Bruno Haible <bruno@clisp.org>
14920 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
14921 * lib/sigprocmask.h: Include <sys/types.h>.
14922 (sigset_t): Use the system's definition if present.
14924 2006-10-17 Eric Blake <ebb9@byu.net>
14926 * lib/xvasprintf.c (includes): Assume config.h.
14927 * lib/xasprintf.c (includes): Likewise.
14929 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
14931 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
14932 at least as wide as intmax_t.
14934 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
14936 (Imported from Automake.)
14937 * build-aux/gnupload: Update to version 1.1 of directive file.
14939 2006-10-16 Eric Blake <ebb9@byu.net>
14941 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
14942 match Automake 1.10a.
14944 2006-10-14 Bruno Haible <bruno@clisp.org>
14946 * modules/sigprocmask: New file.
14947 * lib/sigprocmask.h: New file.
14948 * lib/sigprocmask.c: New file.
14949 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
14950 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
14951 request sigprocmask.o.
14952 (gl_PREREQ_SIGPROCMASK): New macro.
14953 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
14954 (Depends-on): Add sigprocmask.
14955 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
14956 gt_SIGNALBLOCKING. Test for 'raise' only once.
14957 * lib/fatal-signal.c: Include sigprocmask.h.
14958 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
14959 unblock_fatal_signals): Define always.
14960 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14963 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
14965 Sync from Automake.
14966 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
14967 which incorrectly sets the mode of an existing destination
14968 directory. In some cases the unpatched install-sh could do the
14969 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
14970 system. We hope this is rare in practice, but it's clearly worth
14971 fixing. Problem reported by Alex Unleashed in
14972 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
14973 Also, don't bother to check for -m bugs unless we're using -m;
14974 suggested by Stepan Kasal.
14976 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14978 Sync from Automake.
14979 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
14980 `-c' flag, so they appear at the same position as in %FASTDEP%
14981 mode in depend2.am. Fixes build failure for FreeBSD's c89,
14982 which ignores unknown options only after the first non-option.
14983 Bug report against M4 by Nelson H. F. Beebe.
14985 2006-10-13 Jim Meyering <jim@meyering.net>
14987 Fix a bug in yesterday's change.
14988 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
14989 p->fts_statp->st_dev would be used uninitialized.
14990 Ensures that we always call fts_stat on the very first entry.
14991 Miklos Szeredi reported that find -xdev stopped working.
14993 2006-10-12 Bruno Haible <bruno@clisp.org>
14995 * gnulib-tool (func_get_automake_snippet): Append an automatically
14996 computed EXTRA_DIST augmentation.
14997 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
14998 * modules/alloca-opt (Makefile.am): Likewise.
14999 * modules/allocsa (Makefile.am): Likewise.
15000 * modules/arcfour (Makefile.am): Likewise.
15001 * modules/arctwo (Makefile.am): Likewise.
15002 * modules/argmatch (Makefile.am): Likewise.
15003 * modules/argz (Makefile.am): Likewise.
15004 * modules/atexit (Makefile.am): Likewise.
15005 * modules/backupfile (Makefile.am): Likewise.
15006 * modules/byteswap (Makefile.am): Likewise.
15007 * modules/c-strtod (Makefile.am): Likewise.
15008 * modules/c-strtold (Makefile.am): Likewise.
15009 * modules/calloc (Makefile.am): Likewise.
15010 * modules/canon-host (Makefile.am): Likewise.
15011 * modules/canonicalize (Makefile.am): Likewise.
15012 * modules/chdir-long (Makefile.am): Likewise.
15013 * modules/chdir-safer (Makefile.am): Likewise.
15014 * modules/check-version (Makefile.am): Likewise.
15015 * modules/chown (Makefile.am): Likewise.
15016 * modules/cloexec (Makefile.am): Likewise.
15017 * modules/close-stream (Makefile.am): Likewise.
15018 * modules/closeout (Makefile.am): Likewise.
15019 * modules/crc (Makefile.am): Likewise.
15020 * modules/csharpexec (Makefile.am): Likewise.
15021 * modules/cycle-check (Makefile.am): Likewise.
15022 * modules/des (Makefile.am): Likewise.
15023 * modules/dev-ino (Makefile.am): Likewise.
15024 * modules/dirfd (Makefile.am): Likewise.
15025 * modules/dirname (Makefile.am): Likewise.
15026 * modules/dup2 (Makefile.am): Likewise.
15027 * modules/eealloc (Makefile.am): Likewise.
15028 * modules/error (Makefile.am): Likewise.
15029 * modules/euidaccess (Makefile.am): Likewise.
15030 * modules/exclude (Makefile.am): Likewise.
15031 * modules/exitfail (Makefile.am): Likewise.
15032 * modules/fcntl-safer (Makefile.am): Likewise.
15033 * modules/fcntl (Makefile.am): Likewise.
15034 * modules/file-type (Makefile.am): Likewise.
15035 * modules/fileblocks (Makefile.am): Likewise.
15036 * modules/filemode (Makefile.am): Likewise.
15037 * modules/filenamecat (Makefile.am): Likewise.
15038 * modules/fnmatch (Makefile.am): Likewise.
15039 * modules/fopen-safer (Makefile.am): Likewise.
15040 * modules/fpending (Makefile.am): Likewise.
15041 * modules/fprintftime (Makefile.am): Likewise.
15042 * modules/free (Makefile.am): Likewise.
15043 * modules/fsusage (Makefile.am): Likewise.
15044 * modules/ftruncate (Makefile.am): Likewise.
15045 * modules/fts (Makefile.am): Likewise.
15046 * modules/gc-arcfour (Makefile.am): Likewise.
15047 * modules/gc-des (Makefile.am): Likewise.
15048 * modules/gc-hmac-md5 (Makefile.am): Likewise.
15049 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
15050 * modules/gc-md4 (Makefile.am): Likewise.
15051 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
15052 * modules/gc-sha1 (Makefile.am): Likewise.
15053 * modules/gc (Makefile.am): Likewise.
15054 * modules/getaddrinfo (Makefile.am): Likewise.
15055 * modules/getcwd (Makefile.am): Likewise.
15056 * modules/getdelim (Makefile.am): Likewise.
15057 * modules/getdomainname (Makefile.am): Likewise.
15058 * modules/getgroups (Makefile.am): Likewise.
15059 * modules/gethostname (Makefile.am): Likewise.
15060 * modules/gethrxtime (Makefile.am): Likewise.
15061 * modules/getline (Makefile.am): Likewise.
15062 * modules/getloadavg (Makefile.am): Likewise.
15063 * modules/getlogin_r (Makefile.am): Likewise.
15064 * modules/getndelim2 (Makefile.am): Likewise.
15065 * modules/getopt (Makefile.am): Likewise.
15066 * modules/getpagesize (Makefile.am): Likewise.
15067 * modules/getpass-gnu (Makefile.am): Likewise.
15068 * modules/getpass (Makefile.am): Likewise.
15069 * modules/getsubopt (Makefile.am): Likewise.
15070 * modules/gettime (Makefile.am): Likewise.
15071 * modules/gettimeofday (Makefile.am): Likewise.
15072 * modules/getugroups (Makefile.am): Likewise.
15073 * modules/getusershell (Makefile.am): Likewise.
15074 * modules/glob (Makefile.am): Likewise.
15075 * modules/group-member (Makefile.am): Likewise.
15076 * modules/hard-locale (Makefile.am): Likewise.
15077 * modules/hash (Makefile.am): Likewise.
15078 * modules/hmac-md5 (Makefile.am): Likewise.
15079 * modules/hmac-sha1 (Makefile.am): Likewise.
15080 * modules/human (Makefile.am): Likewise.
15081 * modules/idcache (Makefile.am): Likewise.
15082 * modules/imaxabs (Makefile.am): Likewise.
15083 * modules/imaxdiv (Makefile.am): Likewise.
15084 * modules/inet_ntop (Makefile.am): Likewise.
15085 * modules/inet_pton (Makefile.am): Likewise.
15086 * modules/intprops (Makefile.am): Likewise.
15087 * modules/inttostr (Makefile.am): Likewise.
15088 * modules/inttypes (Makefile.am): Likewise.
15089 * modules/isapipe (Makefile.am): Likewise.
15090 * modules/javaversion (Makefile.am): Likewise.
15091 * modules/lchmod (Makefile.am): Likewise.
15092 * modules/lchown (Makefile.am): Likewise.
15093 * modules/localcharset (Makefile.am): Likewise.
15094 * modules/long-options (Makefile.am): Likewise.
15095 * modules/lstat (Makefile.am): Likewise.
15096 * modules/malloc (Makefile.am): Likewise.
15097 * modules/mathl (Makefile.am): Likewise.
15098 * modules/mbchar (Makefile.am): Likewise.
15099 * modules/md2 (Makefile.am): Likewise.
15100 * modules/md4 (Makefile.am): Likewise.
15101 * modules/md5 (Makefile.am): Likewise.
15102 * modules/memcasecmp (Makefile.am): Likewise.
15103 * modules/memchr (Makefile.am): Likewise.
15104 * modules/memcmp (Makefile.am): Likewise.
15105 * modules/memcoll (Makefile.am): Likewise.
15106 * modules/memcpy (Makefile.am): Likewise.
15107 * modules/memmem (Makefile.am): Likewise.
15108 * modules/memmove (Makefile.am): Likewise.
15109 * modules/mempcpy (Makefile.am): Likewise.
15110 * modules/memrchr (Makefile.am): Likewise.
15111 * modules/memset (Makefile.am): Likewise.
15112 * modules/memxor (Makefile.am): Likewise.
15113 * modules/mkancesdirs (Makefile.am): Likewise.
15114 * modules/mkdir-p (Makefile.am): Likewise.
15115 * modules/mkdir (Makefile.am): Likewise.
15116 * modules/mkdtemp (Makefile.am): Likewise.
15117 * modules/mkstemp (Makefile.am): Likewise.
15118 * modules/mktime (Makefile.am): Likewise.
15119 * modules/modechange (Makefile.am): Likewise.
15120 * modules/mountlist (Makefile.am): Likewise.
15121 * modules/nanosleep (Makefile.am): Likewise.
15122 * modules/obstack (Makefile.am): Likewise.
15123 * modules/openat (Makefile.am): Likewise.
15124 * modules/pagealign_alloc (Makefile.am): Likewise.
15125 * modules/pathmax (Makefile.am): Likewise.
15126 * modules/physmem (Makefile.am): Likewise.
15127 * modules/poll (Makefile.am): Likewise.
15128 * modules/posixtm (Makefile.am): Likewise.
15129 * modules/posixver (Makefile.am): Likewise.
15130 * modules/putenv (Makefile.am): Likewise.
15131 * modules/quote (Makefile.am): Likewise.
15132 * modules/quotearg (Makefile.am): Likewise.
15133 * modules/raise (Makefile.am): Likewise.
15134 * modules/read-file (Makefile.am): Likewise.
15135 * modules/readline (Makefile.am): Likewise.
15136 * modules/readlink (Makefile.am): Likewise.
15137 * modules/readtokens (Makefile.am): Likewise.
15138 * modules/readutmp (Makefile.am): Likewise.
15139 * modules/realloc (Makefile.am): Likewise.
15140 * modules/regex (Makefile.am): Likewise.
15141 * modules/rename-dest-slash (Makefile.am): Likewise.
15142 * modules/rename (Makefile.am): Likewise.
15143 * modules/rijndael (Makefile.am): Likewise.
15144 * modules/rmdir (Makefile.am): Likewise.
15145 * modules/rpmatch (Makefile.am): Likewise.
15146 * modules/safe-read (Makefile.am): Likewise.
15147 * modules/safe-write (Makefile.am): Likewise.
15148 * modules/same-inode (Makefile.am): Likewise.
15149 * modules/same (Makefile.am): Likewise.
15150 * modules/save-cwd (Makefile.am): Likewise.
15151 * modules/savedir (Makefile.am): Likewise.
15152 * modules/setenv (Makefile.am): Likewise.
15153 * modules/settime (Makefile.am): Likewise.
15154 * modules/sha1 (Makefile.am): Likewise.
15155 * modules/sig2str (Makefile.am): Likewise.
15156 * modules/snprintf (Makefile.am): Likewise.
15157 * modules/stat-macros (Makefile.am): Likewise.
15158 * modules/stat-time (Makefile.am): Likewise.
15159 * modules/stdbool (Makefile.am): Likewise.
15160 * modules/stdint (Makefile.am): Likewise.
15161 * modules/stdlib-safer (Makefile.am): Likewise.
15162 * modules/stpcpy (Makefile.am): Likewise.
15163 * modules/stpncpy (Makefile.am): Likewise.
15164 * modules/strcase (Makefile.am): Likewise.
15165 * modules/strcasestr (Makefile.am): Likewise.
15166 * modules/strchrnul (Makefile.am): Likewise.
15167 * modules/strcspn (Makefile.am): Likewise.
15168 * modules/strdup (Makefile.am): Likewise.
15169 * modules/strerror (Makefile.am): Likewise.
15170 * modules/strftime (Makefile.am): Likewise.
15171 * modules/strndup (Makefile.am): Likewise.
15172 * modules/strnlen (Makefile.am): Likewise.
15173 * modules/strpbrk (Makefile.am): Likewise.
15174 * modules/strsep (Makefile.am): Likewise.
15175 * modules/strstr (Makefile.am): Likewise.
15176 * modules/strtod (Makefile.am): Likewise.
15177 * modules/strtoimax (Makefile.am): Likewise.
15178 * modules/strtok_r (Makefile.am): Likewise.
15179 * modules/strtol (Makefile.am): Likewise.
15180 * modules/strtoll (Makefile.am): Likewise.
15181 * modules/strtoul (Makefile.am): Likewise.
15182 * modules/strtoull (Makefile.am): Likewise.
15183 * modules/strtoumax (Makefile.am): Likewise.
15184 * modules/strverscmp (Makefile.am): Likewise.
15185 * modules/sys_socket (Makefile.am): Likewise.
15186 * modules/sys_stat (Makefile.am): Likewise.
15187 * modules/sysexits (Makefile.am): Likewise.
15188 * modules/time_r (Makefile.am): Likewise.
15189 * modules/timegm (Makefile.am): Likewise.
15190 * modules/timespec (Makefile.am): Likewise.
15191 * modules/tmpfile-safer (Makefile.am): Likewise.
15192 * modules/trim (Makefile.am): Likewise.
15193 * modules/unistd-safer (Makefile.am): Likewise.
15194 * modules/unlinkdir (Makefile.am): Likewise.
15195 * modules/unlocked-io (Makefile.am): Likewise.
15196 * modules/userspec (Makefile.am): Likewise.
15197 * modules/utime (Makefile.am): Likewise.
15198 * modules/utimecmp (Makefile.am): Likewise.
15199 * modules/utimens (Makefile.am): Likewise.
15200 * modules/vasnprintf (Makefile.am): Likewise.
15201 * modules/vasprintf (Makefile.am): Likewise.
15202 * modules/vsnprintf (Makefile.am): Likewise.
15203 * modules/xalloc (Makefile.am): Likewise.
15204 * modules/xgetcwd (Makefile.am): Likewise.
15205 * modules/xnanosleep (Makefile.am): Likewise.
15206 * modules/xreadlink (Makefile.am): Likewise.
15207 * modules/xstrtod (Makefile.am): Likewise.
15208 * modules/xstrtol (Makefile.am): Likewise.
15209 * modules/xstrtold (Makefile.am): Likewise.
15210 * modules/yesno (Makefile.am): Likewise.
15211 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
15213 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
15215 * modules/error (Makefile.am): Distribute files through
15216 EXTRA_DIST, not lib_SOURCES.
15218 2006-10-12 Eric Blake <ebb9@byu.net>
15220 * modules/error (Makefile.am): Distribute files in /lib.
15221 * modules/obstack (Makefile.am): Likewise.
15223 2006-10-12 Bruno Haible <bruno@clisp.org>
15225 * modules/acl (Makefile.am): Distribute all files in lib/ through
15227 * modules/arcfour (Makefile.am): Likewise.
15228 * modules/arctwo (Makefile.am): Likewise.
15229 * modules/argmatch (Makefile.am): Likewise.
15230 * modules/argz (Makefile.am): Likewise.
15231 * modules/atexit (Makefile.am): Likewise.
15232 * modules/backupfile (Makefile.am): Likewise.
15233 * modules/c-strtod (Makefile.am): Likewise.
15234 * modules/c-strtold (Makefile.am): Likewise.
15235 * modules/calloc (Makefile.am): Likewise.
15236 * modules/canon-host (Makefile.am): Likewise.
15237 * modules/canonicalize (Makefile.am): Likewise.
15238 * modules/chdir-long (Makefile.am): Likewise.
15239 * modules/chdir-safer (Makefile.am): Likewise.
15240 * modules/check-version (Makefile.am): Likewise.
15241 * modules/chown (Makefile.am): Likewise.
15242 * modules/cloexec (Makefile.am): Likewise.
15243 * modules/close-stream (Makefile.am): Likewise.
15244 * modules/closeout (Makefile.am): Likewise.
15245 * modules/crc (Makefile.am): Likewise.
15246 * modules/cycle-check (Makefile.am): Likewise.
15247 * modules/des (Makefile.am): Likewise.
15248 * modules/dirfd (Makefile.am): Likewise.
15249 * modules/dirname (Makefile.am): Likewise.
15250 * modules/dup2 (Makefile.am): Likewise.
15251 * modules/euidaccess (Makefile.am): Likewise.
15252 * modules/exclude (Makefile.am): Likewise.
15253 * modules/exitfail (Makefile.am): Likewise.
15254 * modules/fcntl-safer (Makefile.am): Likewise.
15255 * modules/file-type (Makefile.am): Likewise.
15256 * modules/fileblocks (Makefile.am): Likewise.
15257 * modules/filemode (Makefile.am): Likewise.
15258 * modules/filenamecat (Makefile.am): Likewise.
15259 * modules/fnmatch (Makefile.am): Likewise.
15260 * modules/fopen-safer (Makefile.am): Likewise.
15261 * modules/fpending (Makefile.am): Likewise.
15262 * modules/fprintftime (Makefile.am): Likewise.
15263 * modules/free (Makefile.am): Likewise.
15264 * modules/fsusage (Makefile.am): Likewise.
15265 * modules/ftruncate (Makefile.am): Likewise.
15266 * modules/fts (Makefile.am): Likewise.
15267 * modules/gc (Makefile.am): Likewise.
15268 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
15269 * modules/getaddrinfo (Makefile.am): Likewise.
15270 * modules/getcwd (Makefile.am): Likewise.
15271 * modules/getdelim (Makefile.am): Likewise.
15272 * modules/getdomainname (Makefile.am): Likewise.
15273 * modules/getgroups (Makefile.am): Likewise.
15274 * modules/gethostname (Makefile.am): Likewise.
15275 * modules/gethrxtime (Makefile.am): Likewise.
15276 * modules/getline (Makefile.am): Likewise.
15277 * modules/getloadavg (Makefile.am): Likewise.
15278 * modules/getlogin_r (Makefile.am): Likewise.
15279 * modules/getopt (Makefile.am): Likewise.
15280 * modules/getpass (Makefile.am): Likewise.
15281 * modules/getpass-gnu (Makefile.am): Likewise.
15282 * modules/getsubopt (Makefile.am): Likewise.
15283 * modules/gettime (Makefile.am): Likewise.
15284 * modules/gettimeofday (Makefile.am): Likewise.
15285 * modules/getugroups (Makefile.am): Likewise.
15286 * modules/getusershell (Makefile.am): Likewise.
15287 * modules/glob (Makefile.am): Likewise.
15288 * modules/group-member (Makefile.am): Likewise.
15289 * modules/hard-locale (Makefile.am): Likewise.
15290 * modules/hash (Makefile.am): Likewise.
15291 * modules/hmac-md5 (Makefile.am): Likewise.
15292 * modules/hmac-sha1 (Makefile.am): Likewise.
15293 * modules/human (Makefile.am): Likewise.
15294 * modules/idcache (Makefile.am): Likewise.
15295 * modules/imaxabs (Makefile.am): Likewise.
15296 * modules/imaxdiv (Makefile.am): Likewise.
15297 * modules/inet_ntop (Makefile.am): Likewise.
15298 * modules/inet_pton (Makefile.am): Likewise.
15299 * modules/inttostr (Makefile.am): Likewise.
15300 * modules/isapipe (Makefile.am): Likewise.
15301 * modules/lchown (Makefile.am): Likewise.
15302 * modules/long-options (Makefile.am): Likewise.
15303 * modules/lstat (Makefile.am): Likewise.
15304 * modules/malloc (Makefile.am): Likewise.
15305 * modules/mathl (Makefile.am): Likewise.
15306 * modules/mbchar (Makefile.am): Likewise.
15307 * modules/md2 (Makefile.am): Likewise.
15308 * modules/md4 (Makefile.am): Likewise.
15309 * modules/md5 (Makefile.am): Likewise.
15310 * modules/memcasecmp (Makefile.am): Likewise.
15311 * modules/memchr (Makefile.am): Likewise.
15312 * modules/memcmp (Makefile.am): Likewise.
15313 * modules/memcoll (Makefile.am): Likewise.
15314 * modules/memcpy (Makefile.am): Likewise.
15315 * modules/memmem (Makefile.am): Likewise.
15316 * modules/memmove (Makefile.am): Likewise.
15317 * modules/mempcpy (Makefile.am): Likewise.
15318 * modules/memrchr (Makefile.am): Likewise.
15319 * modules/memset (Makefile.am): Likewise.
15320 * modules/memxor (Makefile.am): Likewise.
15321 * modules/mkancesdirs (Makefile.am): Likewise.
15322 * modules/mkdir (Makefile.am): Likewise.
15323 * modules/mkdir-p (Makefile.am): Likewise.
15324 * modules/mkdtemp (Makefile.am): Likewise.
15325 * modules/mkstemp (Makefile.am): Likewise.
15326 * modules/mktime (Makefile.am): Likewise.
15327 * modules/modechange (Makefile.am): Likewise.
15328 * modules/mountlist (Makefile.am): Likewise.
15329 * modules/nanosleep (Makefile.am): Likewise.
15330 * modules/openat (Makefile.am): Likewise.
15331 * modules/pagealign_alloc (Makefile.am): Likewise.
15332 * modules/physmem (Makefile.am): Likewise.
15333 * modules/poll (Makefile.am): Likewise.
15334 * modules/posixtm (Makefile.am): Likewise.
15335 * modules/posixver (Makefile.am): Likewise.
15336 * modules/putenv (Makefile.am): Likewise.
15337 * modules/quote (Makefile.am): Likewise.
15338 * modules/quotearg (Makefile.am): Likewise.
15339 * modules/raise (Makefile.am): Likewise.
15340 * modules/read-file (Makefile.am): Likewise.
15341 * modules/readline (Makefile.am): Likewise.
15342 * modules/readlink (Makefile.am): Likewise.
15343 * modules/readtokens (Makefile.am): Likewise.
15344 * modules/readutmp (Makefile.am): Likewise.
15345 * modules/realloc (Makefile.am): Likewise.
15346 * modules/regex (Makefile.am): Likewise.
15347 * modules/rename (Makefile.am): Likewise.
15348 * modules/rename-dest-slash (Makefile.am): Likewise.
15349 * modules/rijndael (Makefile.am): Likewise.
15350 * modules/rmdir (Makefile.am): Likewise.
15351 * modules/rpmatch (Makefile.am): Likewise.
15352 * modules/safe-read (Makefile.am): Likewise.
15353 * modules/safe-write (Makefile.am): Likewise.
15354 * modules/same (Makefile.am): Likewise.
15355 * modules/save-cwd (Makefile.am): Likewise.
15356 * modules/savedir (Makefile.am): Likewise.
15357 * modules/setenv (Makefile.am): Likewise.
15358 * modules/settime (Makefile.am): Likewise.
15359 * modules/sha1 (Makefile.am): Likewise.
15360 * modules/sig2str (Makefile.am): Likewise.
15361 * modules/snprintf (Makefile.am): Likewise.
15362 * modules/stdlib-safer (Makefile.am): Likewise.
15363 * modules/stpcpy (Makefile.am): Likewise.
15364 * modules/stpncpy (Makefile.am): Likewise.
15365 * modules/strcase (Makefile.am): Likewise.
15366 * modules/strcasestr (Makefile.am): Likewise.
15367 * modules/strchrnul (Makefile.am): Likewise.
15368 * modules/strcspn (Makefile.am): Likewise.
15369 * modules/strdup (Makefile.am): Likewise.
15370 * modules/strerror (Makefile.am): Likewise.
15371 * modules/strftime (Makefile.am): Likewise.
15372 * modules/strndup (Makefile.am): Likewise.
15373 * modules/strnlen (Makefile.am): Likewise.
15374 * modules/strpbrk (Makefile.am): Likewise.
15375 * modules/strsep (Makefile.am): Likewise.
15376 * modules/strstr (Makefile.am): Likewise.
15377 * modules/strtod (Makefile.am): Likewise.
15378 * modules/strtoimax (Makefile.am): Likewise.
15379 * modules/strtok_r (Makefile.am): Likewise.
15380 * modules/strtol (Makefile.am): Likewise.
15381 * modules/strtoll (Makefile.am): Likewise.
15382 * modules/strtoul (Makefile.am): Likewise.
15383 * modules/strtoull (Makefile.am): Likewise.
15384 * modules/strtoumax (Makefile.am): Likewise.
15385 * modules/strverscmp (Makefile.am): Likewise.
15386 * modules/time_r (Makefile.am): Likewise.
15387 * modules/timegm (Makefile.am): Likewise.
15388 * modules/tmpfile-safer (Makefile.am): Likewise.
15389 * modules/unistd-safer (Makefile.am): Likewise.
15390 * modules/unlinkdir (Makefile.am): Likewise.
15391 * modules/userspec (Makefile.am): Likewise.
15392 * modules/utime (Makefile.am): Likewise.
15393 * modules/utimecmp (Makefile.am): Likewise.
15394 * modules/utimens (Makefile.am): Likewise.
15395 * modules/vasnprintf (Makefile.am): Likewise.
15396 * modules/vasprintf (Makefile.am): Likewise.
15397 * modules/vsnprintf (Makefile.am): Likewise.
15398 * modules/xalloc (Makefile.am): Likewise.
15399 * modules/xgetcwd (Makefile.am): Likewise.
15400 * modules/xnanosleep (Makefile.am): Likewise.
15401 * modules/xreadlink (Makefile.am): Likewise.
15402 * modules/xstrtod (Makefile.am): Likewise.
15403 * modules/xstrtol (Makefile.am): Likewise.
15404 * modules/xstrtold (Makefile.am): Likewise.
15405 * modules/yesno (Makefile.am): Likewise.
15407 2006-10-12 Jim Meyering <jim@meyering.net>
15409 * m4/getloadavg.m4: Revert the change below.
15411 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
15412 lib/getloadavg.c using "ls -L", not "test -f". The latter would
15413 fail with a symlink, which is what coreutils' ./bootstrap now
15414 creates by default.
15416 2006-10-12 Bruno Haible <bruno@clisp.org>
15418 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
15420 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
15421 MSVC and mingw explicitly.
15423 2006-10-11 Simon Josefsson <jas@extundo.com>
15424 Bruno Haible <bruno@clisp.org>
15426 Add support for multiple gnulib-tool invocations in the scope of a
15427 single configure.ac file.
15428 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
15429 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
15430 with the same contents as the _LIBADD variable.
15431 (func_emit_initmacro_start, func_emit_initmacro_end,
15432 func_emit_initmacro_done): New functions.
15433 (func_import, func_create_testdir): Invoke them. Allow the identifiers
15434 gl_LIBOBJS and gl_LTLIBOBJS.
15436 2006-10-11 Bruno Haible <bruno@clisp.org>
15438 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
15439 (func_create_testdir): Don't create po/Makefile.am, don't invoke
15440 autoreconf. Instead, invoke autopoint explicitly but move back the
15441 *.m4 files from gnulib.
15443 2006-10-11 Bruno Haible <bruno@clisp.org>
15445 * gnulib-tool (func_usage): Make module names after --create-testdir
15447 (func_create_testdir): If no module was specified, use nearly all
15450 2006-10-12 Jim Meyering <jim@meyering.net>
15452 Big performance improvement for fts-based tools that use FTS_NOSTAT.
15453 Avoid spurious inode-mismatch problems on non-POSIX file systems.
15454 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
15455 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
15456 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
15457 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
15458 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
15459 (fts_set_stat_required): New function.
15460 (fts_open): Defer the calls to fts_stat, if possible or requested.
15461 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
15462 into fts_stat itself.
15463 (fts_read): Perform any required (deferred) fts_stat call.
15464 (fts_build): Likewise, for the directory we're about to open and read.
15465 In the readdir loop, carefully decide whether each entry will require
15466 an eventual call to fts_stat, using dirent.d_type info if available.
15467 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
15468 a command line argument into this function. Update all callers.
15469 Map a return value of FTS_DOT to FTS_D for a command line argument.
15470 * modules/fts (Depends-on): Add d-type. Alphabetize.
15471 Thanks to Miklos Szeredi for his tenacity and for the initial
15472 bug report about "find" failing on a FUSE-based file system.
15474 * lib/fts.c (fts_open): Use consistent indentation.
15476 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
15478 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
15479 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
15480 reported by Jim Meyering. All uses of cache variables renamed
15481 to match Autoconf's.
15482 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
15485 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
15486 Fix misspelling in diagnostic.
15488 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
15490 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
15491 defined. Problem reported by Matthew Woehlke.
15493 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
15494 Add support for Tandem NonStop R series.
15495 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
15498 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
15499 (has_trailing_slash): Omit size arg; all callers changed.
15500 Omit 'inline', since it doesn't help performance and we'd
15501 need to configure it.
15502 Don't count //, ///, etc. as having a trailing slash.
15503 As a side effect, this removes a C99ism reported by Matthew Woehlke.
15504 (rpl_rename_dest_slash): On failure, use rename's errno rather
15505 than (in some cases) an incorrect or junk errno.
15506 Simplify code by removing need to compute length; this does
15507 cause it to make two passes instead of one over the file name,
15510 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
15511 change, since Autoconf's version may no longer be appropriate now
15512 that we are using CVS Autoconf's version. Add support for Tandem.
15514 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
15515 Bruno Haible <bruno@clisp.org>
15517 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
15518 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
15519 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
15520 gl_AC_TYPE_LONG_LONG.
15522 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
15523 instead of HAVE_LONG_LONG.
15524 * lib/printf-args.c (printf_fetchargs): Likewise.
15525 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15526 * lib/vasnprintf.c (VASNPRINTF): Likewise.
15527 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
15528 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
15529 gl_AC_TYPE_LONG_LONG.
15531 2006-10-11 Bruno Haible <bruno@clisp.org>
15533 * m4/longlong.m4: Add comments.
15534 * m4/ulonglong.m4: Likewise.
15536 2006-10-10 Bruno Haible <bruno@clisp.org>
15538 Make it possible to #define stpcpy, strdup to aliases.
15539 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
15540 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
15542 2006-10-10 Bruno Haible <bruno@clisp.org>
15544 Make it possible to #define gcd to an alias.
15545 * lib/gcd.c: Include config.h.
15547 2006-10-10 Bruno Haible <bruno@clisp.org>
15549 Make it possible to #define c_isascii to an alias.
15550 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
15551 defined. Undefine the macros before defining them, to avoid gcc
15553 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
15554 define NO_C_CTYPE_MACROS early.
15556 2006-10-10 Bruno Haible <bruno@clisp.org>
15558 Make it possible to #define set_program_name to an alias.
15559 * lib/progname.c: Don't undefine set_program_name; instead, undefine
15560 ENABLE_RELOCATABLE early.
15562 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
15564 Port to Tandem NSK OSS, which has 64-bit signed int but at most
15565 32-bit unsigned int. Problem reported by Matthew Woehlke in:
15566 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
15567 More generally, don't assume that 64-bit signed int is available
15568 if unsigned int is, and vice versa.
15569 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
15570 unsigned symbols, not on their signed counterparts.
15571 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
15572 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
15573 (UINT64_C, UINTMAX_C):
15575 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
15576 unsigned counterparts.
15577 (Have_long_long, Unsigned): New macros.
15578 (Int): Renamed from INT.
15579 (strtoimax): Use the new macros.
15580 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
15581 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
15582 * modules/inttypes (inttypes.h): Substitute
15583 HAVE_UNSIGNED_LONG_LONG_INT.
15584 * modules/stdint (stdint.h): Likewise.
15585 (Files): Add m4/ulonglong.m4.
15587 2006-10-10 Bruno Haible <bruno@clisp.org>
15589 Fix a gcc -Wshadow warning.
15590 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
15592 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
15593 gl_linked_indexof_from_to): Likewise.
15594 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
15596 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
15598 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
15599 Reported by Eric Blake.
15601 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
15603 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
15604 for NetBSD. Problem reported by Bruno Haible.
15606 2006-10-09 Jim Meyering <jim@meyering.net>
15608 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
15609 Patch from Bruno Haible.
15611 2006-10-09 Jim Meyering <jim@meyering.net>
15613 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
15614 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
15615 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
15617 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
15619 Don't include <config.h> twice; this doesn't work in some cases,
15620 e.g., when config.h has "#define intmax_t long long int" and
15621 we include <config.h>, <inttypes.h>, <config.h> in that order.
15622 Problem reported by Matthew Woehlke in:
15623 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
15624 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
15625 * lib/fts-cycle.c: Don't include config.h.
15626 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
15627 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
15628 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
15629 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
15631 * lib/xstrtoumax.c: Likewise.
15632 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
15633 __strtol and the like, so that this module is more like its siblings.
15634 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
15635 Remove; no longer needed now that we assume gnulib inttypes.h.
15637 2006-10-08 Bruno Haible <bruno@clisp.org>
15639 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
15642 2006-10-07 Jim Meyering <jim@meyering.net>
15644 * modules/inttypes (inttypes.h): Revert what seems to have been
15645 an inadvertent part of today's change: use "|", not "/" in the
15646 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
15648 2006-10-07 Bruno Haible <bruno@clisp.org>
15650 * modules/sublist: New file.
15652 2006-10-07 Bruno Haible <bruno@clisp.org>
15654 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
15655 * modules/argz (argz.h): Likewise.
15656 * modules/arpa_inet (arpa/inet.h): Likewise.
15657 * modules/byteswap (byteswap.h): Likewise.
15658 * modules/configmake (configmake.h): Likewise.
15659 * modules/fcntl (fcntl.h): Likewise.
15660 * modules/fnmatch (fnmatch.h): Likewise.
15661 * modules/getopt (getopt.h): Likewise.
15662 * modules/glob (glob.h): Likewise.
15663 * modules/inttypes (inttypes.h): Likewise.
15664 * modules/netinet_in (netinet/in.h): Likewise.
15665 * modules/poll (poll.h): Likewise.
15666 * modules/stdbool (stdbool.h): Likewise.
15667 * modules/stdint (stdint.h): Likewise.
15668 * modules/sys_select (sys/select.h): Likewise.
15669 * modules/sys_socket (sys/socket.h): Likewise.
15670 * modules/sys_stat (sys/stat.h): Likewise.
15671 * modules/sysexits (sysexits.h): Likewise.
15672 * modules/unistd (unistd.h): Likewise.
15673 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15674 Add a "DO NOT EDIT" comment to the generated file.
15675 (func_import): Likewise for gnulib-comp.m4.
15677 2006-10-07 Bruno Haible <bruno@clisp.org>
15679 * lib/gl_sublist.h: New file.
15680 * lib/gl_sublist.c: New file.
15682 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
15684 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
15685 name (relative to the original working directory) and the file
15686 name component (relative to the temporary working directory). All
15688 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
15689 * lib/mkdir-p.c (make_dir_parents): Likewise.
15690 * lib/mkdir-p.h (make_dir_parents): Likewise.
15692 2006-10-06 Eric Blake <ebb9@byu.net>
15694 Define several macros for use by the clean-temp module.
15695 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
15696 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
15697 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
15699 * lib/clean-temp.h (close_stream_temp): New declaration.
15700 * lib/clean-temp.c (includes): Pull in headers according to what
15701 other modules are in use.
15702 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
15704 2006-10-06 Bruno Haible <bruno@clisp.org>
15706 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
15707 instead of fopen, fwriteerror.
15709 2006-10-06 Bruno Haible <bruno@clisp.org>
15711 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
15712 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
15714 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
15715 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
15716 Return an error indicator.
15717 Suggested by Eric Blake.
15719 2006-10-06 Bruno Haible <bruno@clisp.org>
15721 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
15722 Reported by Eric Blake.
15724 2006-10-06 Bruno Haible <bruno@clisp.org>
15726 * modules/closeout (Description): Mention stderr too.
15728 2006-10-06 Bruno Haible <bruno@clisp.org>
15729 and Paul Eggert <eggert@cs.ucla.edu>
15731 * lib/closeout.c (close_stdout): Also close stderr.
15732 * lib/closeout.h: Update comment.
15734 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
15736 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
15737 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
15738 * lib/dirchownmod.c: Include lchown.h.
15739 * lib/lchown.c: Don't include files that lchown.h now includes.
15740 Don't declare chown, since lchown.h now does that.
15741 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
15742 (lchown): Define to rpl_chown if lchown is declared but
15743 does not exist. Declare using a prototype if lchown is not
15744 declared. Add a copyright notice.
15745 * lib/mkstemp.h: Include <unistd.h>.
15746 * lib/openat.c: Include lchown.h.
15748 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
15749 we now test for that separately.
15750 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
15751 rather than O_NOFOLLOW, when testing whether it's possible to
15752 avoid a race condition reliably.
15753 * lib/savewd.c (savewd_chdir): Likewise.
15755 Remove macros that are no longer needed now that stdint.h is
15757 * lib/fsusage.c (UINTMAX_MAX): Remove.
15758 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
15759 * lib/utimecmp.c (SIZE_MAX): Remove.
15761 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
15763 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
15764 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
15767 2006-10-05 Bruno Haible <bruno@clisp.org>
15769 * lib/gl_list.h (gl_sortedlist_search_from_to,
15770 gl_sortedlist_indexof_from_to): New declarations.
15771 (gl_list_implementation): New fields sortedlist_search_from_to,
15772 sortedlist_indexof_from_to.
15773 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
15775 * lib/gl_list.c (gl_sortedlist_search_from_to,
15776 gl_sortedlist_indexof_from_to): New functions.
15777 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
15779 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
15780 (gl_array_sortedlist_search_from_to): New function.
15781 (gl_array_list_implementation): Update.
15782 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
15784 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
15785 (gl_carray_sortedlist_search_from_to): New function.
15786 (gl_carray_list_implementation): Update.
15787 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
15788 gl_linked_sortedlist_indexof_from_to): New functions.
15789 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15790 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15791 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
15792 gl_tree_sortedlist_indexof_from_to): New functions.
15793 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15794 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15796 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15797 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
15800 2006-10-05 Bruno Haible <bruno@clisp.org>
15802 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
15803 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
15804 (struct gl_list_implementation): Add fields search_from_to,
15805 indexof_from_to. Remove fields search, indexof.
15806 (gl_list_search): Use the search_from_to method.
15807 (gl_list_search_from, gl_list_search_from_to): New functions.
15808 (gl_list_indexof): Use the indexof_from_to method.
15809 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
15810 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
15811 (gl_list_search_from, gl_list_search_from_to): New functions.
15812 (gl_list_indexof): Use the indexof_from_to method.
15813 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
15814 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
15815 gl_array_indexof. Add start_index, end_index arguments.
15816 (gl_array_search_from_to): Renamed from gl_array_search. Add
15817 start_index, end_index arguments.
15818 (gl_array_remove, gl_array_list_implementation): Update.
15819 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
15820 gl_carray_indexof. Add start_index, end_index arguments.
15821 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
15822 start_index, end_index arguments.
15823 (gl_carray_remove, gl_carray_list_implementation): Update.
15824 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
15825 gl_linked_search. Add start_index, end_index arguments.
15826 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
15827 start_index, end_index arguments.
15828 (gl_linked_remove): Update.
15829 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15830 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15831 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
15833 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
15834 gl_tree_search. Add start_index, end_index arguments.
15835 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
15836 start_index, end_index arguments.
15837 (gl_tree_remove): Update.
15838 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15839 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15840 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
15842 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
15843 gl_tree_search. Add start_index, end_index arguments.
15844 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
15845 start_index, end_index arguments.
15846 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15848 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
15850 2006-10-05 Bruno Haible <bruno@clisp.org>
15852 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
15854 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
15855 fwriteerror_temp): New declarations.
15856 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
15857 (descriptors): New variable.
15858 (cleanup): First, close the descriptors.
15859 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
15860 fclose_temp, fwriteerror_temp): New functions.
15862 2006-10-04 Jim Meyering <jim@meyering.net>
15864 * lib/fts.c (fts_open): Tiny comment change.
15866 2006-10-04 Bruno Haible <bruno@clisp.org>
15868 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
15869 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
15871 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
15872 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
15873 gl_LOCK_EARLY_BODY.
15874 (gl_LOCK): Require gl_LOCK_BODY.
15876 2006-10-04 Bruno Haible <bruno@clisp.org>
15878 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
15879 (gl_oset_search_atleast): New declaration.
15880 (struct gl_oset_implementation): Add field 'search_atleast'.
15881 (gl_oset_search_atleast): New inline function.
15882 * lib/gl_oset.c (gl_oset_search_atleast): New function.
15883 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
15884 (gl_array_oset_implementation): Update.
15885 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
15886 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
15887 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
15889 2006-10-04 Bruno Haible <bruno@clisp.org>
15891 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
15893 2006-10-03 Bruno Haible <bruno@clisp.org>
15895 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
15896 from gl_avltreehash_list_implementation.
15898 2006-10-03 Bruno Haible <bruno@clisp.org>
15900 * lib/gl_oset.c (gl_oset_add): Fix return type.
15902 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
15904 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
15906 2006-10-02 Eric Blake <ebb9@byu.net>
15908 * modules/strnlen (Depends-on): Add extensions.
15910 2006-10-02 Eric Blake <ebb9@byu.net>
15912 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
15913 definition in 2.60+.
15915 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
15917 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
15920 2006-10-02 Bruno Haible <bruno@clisp.org>
15922 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
15923 to the AUTOMAKE_OPTIONS.
15924 Reported by Jim Meyering.
15926 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
15928 Work around bug in Solaris 10 /proc file system:
15929 /proc/self/fd/NNN/.. isn't the parent directory of
15930 the directory whose file descriptor is NNN. This needs to
15931 be worked around at run time, not compile time, since a
15932 program might be built on Solaris 8, where things work, and
15934 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
15935 to use the following interface instead:
15936 (OPENAT_BUFFER_SIZE): New macro.
15937 (openat_proc_name): New function.
15938 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
15939 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
15941 * lib/openat-proc.c: New file.
15942 * modules/openat (Files): Add lib/openat-proc.c.
15943 (Depends-on): Add same-inode, stdbool.
15944 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
15946 2006-09-29 Bruno Haible <bruno@clisp.org>
15948 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
15949 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
15950 argument. Set stdout_closed before testing for ferror, not after.
15951 (fwriteerror, fwriteerror_no_ebadf): New functions.
15953 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15955 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
15957 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
15959 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
15960 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
15962 2006-09-28 Jim Meyering <jim@meyering.net>
15964 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
15965 Include <unistd.h>.
15967 2006-09-28 Bruno Haible <bruno@clisp.org>
15969 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
15970 * modules/linkedhash-list (Depends-on): Likewise.
15971 * modules/rbtreehash-list (Depends-on): Likewise.
15973 2006-09-28 Bruno Haible <bruno@clisp.org>
15975 * lib/strndup.h: Simplify the redefinition of strndup.
15976 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
15977 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
15979 2006-09-28 Bruno Haible <bruno@clisp.org>
15981 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
15982 * lib/gl_linkedhash_list.c: Likewise.
15983 * lib/gl_rbtreehash_list.c: Likewise.
15985 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
15987 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
15990 * lib/__fpending.h: Don't include <stdio_ext.h> unless
15991 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
15992 it causes <stdio_ext.h> to cause a compile-time error.
15993 Problem reported by Nelson H. F. Beebe.
15994 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
15995 of HAVE_DECL___PENDING.
15997 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
15998 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
16001 2006-09-27 Jim Meyering <jim@meyering.net>
16003 This file could end up with a definition for a function
16004 named __strndup, rather than rpl_strndup on a system with
16005 incomplete weak_alias support.
16006 * lib/strndup.c (strndup): Rename from __strndup.
16007 Remove #defines that used to map __strndup to strndup.
16008 Don't use K&R prototypes.
16009 Remove LIBC-related code, since this file is not sync'd with glibc.
16010 * lib/strndup.h: Revamp, accordingly.
16011 * m4/strndup.m4: Modernize.
16013 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
16015 * modules/savewd (Depends-on): Add 'raise'.
16016 * lib/savewd.c: Include <signal.h>, for 'raise'.
16018 2006-09-26 Jim Meyering <jim@meyering.net>
16020 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
16021 when we detect Darwin 8.7.0's acl_get_file bug.
16022 Rearrange to perform the new (below) run-test while $LIBS
16023 contains any acl-related library. Set USE_ACL at the end.
16024 (gl_ACL_GET_FILE): New function.
16026 2006-09-26 Eric Blake <ebb9@byu.net>
16028 * lib/verror.c: Include <config.h> unconditionally.
16030 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
16032 * modules/clock-time (Maintainer): Add self.
16033 * modules/getlogin_r (Depends-on): Add extensions.
16035 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16037 * modules/clock-time: New module.
16038 * modules/nanosleep (Depends-on): Add clock-time.
16039 * modules/gethrxtime (Depends-on): Likewise.
16040 * modules/gettime (Depends-on): Likewise.
16041 * modules/settime (Depends-on): Likewise.
16043 * modules/fts-lgpl: Depend on openat.
16044 * modules/mkancesdirs: Depend on savewd.
16045 * modules/mkdir-p: Likewise.
16047 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16049 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
16051 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
16052 `gl_have_arbitrary_file_name_length_limit' to
16053 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
16054 actually works between configure runs.
16056 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16057 Bruno Haible <bruno@clisp.org>
16059 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
16061 2006-09-25 Jim Meyering <jim@meyering.net>
16063 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
16064 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
16066 2006-09-25 Eric Blake <ebb9@byu.net>
16068 * gnulib-tool (func_import, func_create_testdir): Fix typos in
16069 exec's in 2006-09-18 patch when shuffling fds.
16071 2006-09-25 Bruno Haible <bruno@clisp.org>
16073 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
16074 Reported by Jim Meyering.
16076 2006-09-24 Jim Meyering <jim@meyering.net>
16078 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
16079 compare a pointer against a literal "0". That caused failures with
16080 at least HP-UX's hpcc.
16082 2006-09-22 Simon Josefsson <jas@extundo.com>
16086 * modules/gc-hmac-sha1:
16087 * modules/gc-hmac-md5:
16089 * modules/gc-arcfour: Distribute more files.
16091 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16093 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
16094 (gl_linked_iterator_from_to): Initialize struct completely.
16095 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
16096 (gl_tree_iterator_from_to): Likewise
16097 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
16098 * lib/gl_array_list.c [lint] (gl_array_iterator)
16099 (gl_array_iterator_from_to): Likewise.
16100 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
16101 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
16102 (gl_carray_iterator_from_to): Likewise.
16104 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
16105 * lib/md4.c (md4_process_block): Remove unused variable.
16106 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
16107 parentheses for clarity.
16109 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16111 * modules/bison-i18n (Depends-on): Add gettext.
16113 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16115 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
16116 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
16117 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
16118 also add missing comma that caused broken test.
16119 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
16120 stdlib.h, for `abort'.
16121 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
16123 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
16124 include unistd.h if present, for `rmdir'.
16125 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
16127 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
16128 in the process include standard headers for prototypes.
16129 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
16130 gets declared on GNU/Linux.
16131 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
16132 unistd.h, for `rmdir'.
16133 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
16135 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
16137 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
16139 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
16141 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16143 * gnulib-tool (func_version): Create output all at once. This
16144 may help avoid triggering unnecessary SIGPIPEs, and at any
16145 rate it doesn't hurt.
16147 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16148 Bruno Haible <bruno@clisp.org>
16150 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
16151 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16152 * m4/signed.m4 (bh_C_SIGNED): Likewise.
16154 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
16155 (gl_FUNC_VASPRINTF): Invoke it.
16157 2006-09-22 Bruno Haible <bruno@clisp.org>
16159 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
16160 getloadavg.c as first argument.
16162 2006-09-22 Bruno Haible <bruno@clisp.org>
16164 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
16165 at the beginning of the gl_INIT macro.
16166 * modules/getloadavg (configure.ac): Pass $gl_source_base to
16169 2006-09-22 Bruno Haible <bruno@clisp.org>
16171 * gnulib-tool (func_create_megatestdir): Don't include the config-h
16173 Suggested by Ralf Wildenhues.
16175 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
16177 Import this patch from libc:
16179 2006-09-06 Jakub Jelinek <jakub@redhat.com>
16181 * lib/regex_internal.c (re_string_reconstruct): Handle
16182 offset < pstr->valid_raw_len && pstr->offsets_needed case.
16183 Ensure no bytes read before raw_mbs array. Pass a saved copy of
16184 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
16185 re_string_context_at.
16187 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
16189 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
16190 gl_REGEX now does it for us.
16191 (gl_REGEX): Add test taken from
16192 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
16194 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
16195 Check that large offsets work. Modernize Autoconf usages.
16196 Prefer "yes" to mean a good thing rather than a bad.
16197 Don't put "#define mkstemp" in config.h, as this might interfere
16198 with standard system headers that "#define mkstemp mkstemp64".
16200 * modules/mkstemp (Depends-on): Add extensions, so that
16201 mkstemp is visible on some platforms.
16202 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
16203 (Include): Change to "mkstemp.h" from <stdlib.h>.
16204 (Files): Add mkstemp.h.
16206 * lib/mkstemp.h: New file, since some standard headers
16208 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
16209 Include "mkstemp.h".
16210 Make the _LIBC code resemble glibc original more,
16211 e.g., use K&R style.
16212 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
16213 (mkstemp): Remove, since mkstemp.h does this for us.
16214 * lib/stdlib--.h: Include mkstemp.h.
16216 Import this patch from libc:
16218 2006-04-07 Ulrich Drepper <drepper@redhat.com>
16220 * lib/tempname.c (__gen_tempname): Change attempts_min
16221 into a macro. Use preprocessor to decide how to initialize
16222 attempts [Coverity CID 67].
16224 2006-09-20 Bruno Haible <bruno@clisp.org>
16226 * lib/mkdtemp.c: Import from libc.
16227 2006-04-07 Ulrich Drepper <drepper@redhat.com>
16228 * sysdeps/posix/tempname.c (__gen_tempname): Change
16229 attempts_min into a macro. Use preprocessor to decide how to
16230 initialize attempts [Coverity CID 67].
16231 2001-11-27 Paul Eggert <eggert@twinsun.com>
16232 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
16233 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
16235 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16237 * gnulib-tool (func_exit): New function, to allow to pass the
16238 exit status portably through the trap. Use everywhere.
16239 (--help, --version): Signal a write error.
16240 (trap): catch SIGPIPE, for write errors.
16241 Exit at the end of the trap, with the correct exit status.
16243 2006-09-19 Karl Berry <karl@gnu.org>
16245 * doc/gnulib.texi: note about the license texinfo files.
16247 2006-09-19 Eric Blake <ebb9@byu.net>
16249 * gnulib-tool: Avoid space-tab.
16251 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
16253 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
16254 that prevented coreutils 6.1 from building. Problem reported
16255 by Petter Reinholdtsen.
16257 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
16259 * gnulib-tool (avoidlist): Fix typo that broke options like
16260 --avoid=lock that are used by coreutils bootstrap.
16262 2006-09-18 Mark D. Baushke <mdb@gnu.org>
16264 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
16265 more systematically.
16267 2006-09-18 Jim Meyering <jim@meyering.net>
16269 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
16271 2006-09-18 Bruno Haible <bruno@clisp.org>
16273 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
16275 2006-09-18 Bruno Haible <bruno@clisp.org>
16277 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
16278 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
16279 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
16280 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
16281 * m4/gettext.m4: Require autoconf >= 2.52.
16282 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
16283 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
16284 of gl_cv_header_inttypes_h.
16286 2006-09-18 Bruno Haible <bruno@clisp.org>
16288 * lib/javaversion.c: Include configmake.h.
16290 2006-09-18 Bruno Haible <bruno@clisp.org>
16292 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
16293 avoid that the while loops be executed in a subshell.
16295 2006-09-18 Bruno Haible <bruno@clisp.org>
16297 * MODULES.html.sh (func_module): Break long lines.
16298 Suggested by Bruce Korb <bkorb@gnu.org>.
16300 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16302 Speed up by a factor of 1.12.
16303 * gnulib-tool (nl): New variable.
16304 (func_import): Rewrite include directive extraction to only read each
16307 2006-09-17 Bruno Haible <bruno@clisp.org>
16309 * modules/javaversion (Makefile.am): Remove DEFS setting.
16310 (Depends-on): Add configmake, for PKGDATADIR definition.
16312 2006-09-17 Bruno Haible <bruno@clisp.org>
16314 * gnulib-tool (func_create_testdir): Rewrite all files at once.
16316 2006-09-17 Bruno Haible <bruno@clisp.org>
16318 * gnulib-tool (func_append): New function, stolen from libtool.m4.
16319 (func_modules_transitive_closure, func_modules_add_dummy,
16320 func_modules_to_filelist, func_import, func_create_testdir,
16321 func_create_megatestdir, ...): Use it wherever possible.
16322 Suggested by Ralf Wildenhues.
16324 2006-09-16 Karl Berry <karl@gnu.org>
16326 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
16327 to avoid sectioning errors.
16328 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
16329 [ifinfo]: blank line after @center-ed titles.
16330 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
16331 Spell FSF address consistently with others.
16332 (These changes approved by rms.)
16334 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16336 Speed up by a factor of 1.61.
16337 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
16338 already checked module names again.
16340 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16342 Speed up by a factor of 1.13.
16343 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
16344 for new_files, and the input to func_add_or_update.
16346 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16348 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
16349 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
16351 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
16353 * modules/mkancesdirs (Depends-on): Add fcntl.
16354 * modules/savewd: New file.
16355 * MODULES.html.sh (File system functions): Add savewd.
16357 * modules/configmake (Makefile.am): Add support for the
16358 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
16360 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
16362 * m4/savewd.m4: New file.
16364 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
16366 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
16367 (dirchownmod): New arg FD. All callers changed.
16368 Use FD rather than opening the directory ourself, as opening is
16369 now the caller's responsibility.
16370 * lib/dirchownmod.h: Likewise.
16371 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
16372 hosts that require <sys/types.h> before <sys/stat.h>. Include
16373 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
16374 (test_dir): Remove.
16375 (mkancesdirs): Return length of prefix of FILE that has already
16376 been made, or -2 if there is a child doing the work. Redo
16377 algorithm so that it is O(N) rather than O(N**2). Optimize away
16378 ".", and treat ".." specially since it might stray back into
16379 already-created areas. Use a subprocess if necessary. New arg
16380 WD; all users changed. MAKE_DIR function should now return 1
16381 if it creates a directory that is not readable. Return -2 if
16382 a child process is spun off.
16383 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
16384 Adjust signature to match code.
16385 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
16386 (make_dir_parents): Use a subprocess if necessary. New arg WD;
16388 * lib/savewd.c, lib/savewd.h: New files.
16390 2006-09-15 Jim Meyering <jim@meyering.net>
16392 * modules/rename-dest-slash: New module.
16393 * MODULES.html.sh (posix_compat): Add it here.
16395 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
16397 2006-09-15 Jim Meyering <jim@meyering.net>
16399 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
16402 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
16404 2006-09-15 Jim Meyering <jim@meyering.net>
16406 * lib/rename-dest-slash.c (has_trailing_slash): Use
16407 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
16408 (rpl_rename_dest_slash): Perform the cheaper trailing slash
16409 test before testing whether SRC is a directory.
16410 Suggestions from Bruno Haible.
16412 Avoid a warning about an unused variable.
16413 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
16414 into the #ifdef block where it's used.
16416 * lib/rename-dest-slash.c: New file.
16418 2006-09-14 Bruno Haible <bruno@clisp.org>
16420 * lib/allocsa.c: Include <config.h> unconditionally.
16421 * lib/asnprintf.c: Likewise.
16422 * lib/asprintf.c: Likewise.
16423 * lib/c-strcasecmp.c: Likewise.
16424 * lib/c-strcasestr.c: Likewise.
16425 * lib/c-strncasecmp.c: Likewise.
16426 * lib/c-strstr.c: Likewise.
16427 * lib/classpath.c: Likewise.
16428 * lib/clean-temp.c: Likewise.
16429 * lib/concatpath.c: Likewise.
16430 * lib/copy-file.c: Likewise.
16431 * lib/csharpcomp.c: Likewise.
16432 * lib/csharpexec.c: Likewise.
16433 * lib/execute.c: Likewise.
16434 * lib/fatal-signal.c: Likewise.
16435 * lib/findprog.c: Likewise.
16436 * lib/fwriteerror.c: Likewise.
16437 * lib/gl_array_list.c: Likewise.
16438 * lib/gl_array_oset.c: Likewise.
16439 * lib/gl_avltree_list.c: Likewise.
16440 * lib/gl_avltree_oset.c: Likewise.
16441 * lib/gl_avltreehash_list.c: Likewise.
16442 * lib/gl_carray_list.c: Likewise.
16443 * lib/gl_linked_list.c: Likewise.
16444 * lib/gl_linkedhash_list.c: Likewise.
16445 * lib/gl_list.c: Likewise.
16446 * lib/gl_oset.c: Likewise.
16447 * lib/gl_rbtree_list.c: Likewise.
16448 * lib/gl_rbtree_oset.c: Likewise.
16449 * lib/gl_rbtreehash_list.c: Likewise.
16450 * lib/imaxabs.c: Likewise.
16451 * lib/imaxdiv.c: Likewise.
16452 * lib/javacomp.c: Likewise.
16453 * lib/javaexec.c: Likewise.
16454 * lib/javaversion.c: Likewise.
16455 * lib/linebreak.c: Likewise.
16456 * lib/localcharset.c: Likewise.
16457 * lib/lock.c: Likewise.
16458 * lib/mbchar.c: Likewise.
16459 * lib/mbswidth.c: Likewise.
16460 * lib/mkdtemp.c: Likewise.
16461 * lib/pipe.c: Likewise.
16462 * lib/printf-args.c: Likewise.
16463 * lib/printf-parse.c: Likewise.
16464 * lib/progname.c: Likewise.
16465 * lib/progreloc.c: Likewise.
16466 * lib/readlink.c: Likewise.
16467 * lib/sh-quote.c: Likewise.
16468 * lib/stpcpy.c: Likewise.
16469 * lib/stpncpy.c: Likewise.
16470 * lib/strcasecmp.c: Likewise.
16471 * lib/strcasestr.c: Likewise.
16472 * lib/strcspn.c: Likewise.
16473 * lib/striconv.c: Likewise.
16474 * lib/strncasecmp.c: Likewise.
16475 * lib/strnlen1.c: Likewise.
16476 * lib/strstr.c: Likewise.
16477 * lib/strtok_r.c: Likewise.
16478 * lib/tls.c: Likewise.
16479 * lib/tmpdir.c: Likewise.
16480 * lib/unicodeio.c: Likewise.
16481 * lib/unsetenv.c: Likewise.
16482 * lib/vasnprintf.c: Likewise.
16483 * lib/vasprintf.c: Likewise.
16484 * lib/wait-process.c: Likewise.
16485 * lib/xallocsa.c: Likewise.
16486 * lib/xsetenv.c: Likewise.
16487 * lib/xstriconv.c: Likewise.
16489 2006-09-13 Simon Josefsson <jas@extundo.com>
16491 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
16492 that internally, suggested by Ralf Wildenhues
16493 <Ralf.Wildenhues@gmx.de>.
16495 2006-09-13 Simon Josefsson <jas@extundo.com>
16497 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
16499 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16501 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
16503 * lib/_fpending.c: Include <config.h> unconditionally, since we no
16504 longer worry about uses that don't define HAVE_CONFIG_H.
16505 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
16506 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
16507 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
16508 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
16509 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
16510 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
16511 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
16512 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
16513 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
16514 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
16515 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
16516 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
16517 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
16518 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
16519 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
16520 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
16521 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
16522 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
16523 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
16524 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
16525 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
16526 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
16527 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
16528 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
16529 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
16530 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
16531 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
16532 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
16533 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
16534 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
16535 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
16536 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
16537 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
16538 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
16539 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
16540 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
16541 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
16542 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
16543 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
16544 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
16545 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
16548 2006-09-13 Eric Blake <ebb9@byu.net>
16550 * lib/getopt.c: Fix typo in last commit.
16552 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
16554 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
16557 2006-09-12 Jim Meyering <jim@meyering.net>
16559 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
16560 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
16561 Reported by Nelson H. F. Beebe.
16563 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
16565 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
16566 program_invocation_name and program_invocation_short_name are
16568 * lib/argp-namefrob.h: Move declarations of program_invocation_name
16569 and program_invocation_short_name to argp.h, so they are visible
16571 * lib/argp.h: Likewise
16573 2006-09-10 Bruno Haible <bruno@clisp.org>
16575 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
16576 m4/inttypes_h.m4, m4/uintmax_t.m4.
16578 2006-09-10 Bruno Haible <bruno@clisp.org>
16580 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
16581 gl_AC_TYPE_UINTMAX_T.
16583 2006-09-10 Bruno Haible <bruno@clisp.org>
16585 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
16587 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
16589 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
16590 convention. Text proposed by Bruno Haible.
16591 (struct argp_option): Document the use of N_() wrappers.
16593 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
16594 '\v', and translate the two parts separately, instead of feeding
16595 the whole string to gettext. This allows to exclude
16596 '\v' from the strings visible to the translator by writing doc
16597 strings as N_("..") "\v" N_("..").
16599 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
16601 * config/srclist.txt: Undo latest change; the bug was fixed.
16603 2006-09-09 Bruno Haible <bruno@clisp.org>
16605 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
16606 assignments if building a library without libtool.
16607 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
16608 in func_emit_lib_Makefile_am.
16609 (func_import): When building a static library libfoo.a, arrange to
16610 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
16611 (func_create_testdir): Likewise.
16612 * modules/gc (configure.ac, Makefile.am): If building statically,
16613 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
16614 * modules/iconvme (configure.ac, Makefile.am): Likewise.
16615 * modules/striconv (configure.ac, Makefile.am): Likewise.
16616 Based on a suggestion by Ralf Wildenhues.
16618 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
16620 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16621 Check for unistd.h too, since Autoconf doesn't assume POSIX.
16624 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
16625 Add year_2050_test to catch glibc bug 2821
16626 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
16628 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
16629 Prefer #ifdef to #if.
16631 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
16632 Return from 'main' instead of calling 'exit'.
16634 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
16636 * lib/mktime.c (guess_time_tm): Fix bug where mktime
16637 returned the maximum time_t value rather than (time_t) -1.
16638 Problem originally reported by William Bardwell
16639 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
16641 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
16643 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
16646 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
16648 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
16651 2006-09-08 Jim Meyering <jim@meyering.net>
16653 Don't make generated files read-only. That would bother too many
16654 people. However, do retain the ability to work when targets are
16655 read-only: remove the destination and temporary files before writing
16656 them (when generated via sed or echo), or by using the -f option for
16657 both cp and mv commands. Suggestion to use -f from Paul Eggert.
16658 * modules/alloca-opt, modules/argz, modules/arpa_inet:
16659 * modules/byteswap, modules/configmake, modules/fcntl:
16660 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
16661 * modules/localcharset, modules/netinet_in, modules/poll:
16662 * modules/stdbool, modules/stdint, modules/sys_select:
16663 * modules/sys_socket, modules/sys_stat, modules/sysexits:
16665 2006-09-08 Jim Meyering <jim@meyering.net>
16667 Avoid new build failure on FreeBSD 6.0.
16668 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
16669 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
16670 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
16672 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16674 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
16676 2006-09-07 Jim Meyering <jim@meyering.net>
16678 Fix global typo in last change: use chmod u-w, not chmod u-x.
16679 Spotted by Paul Eggert and Bruce Korb.
16680 * modules/alloca-opt, modules/argz, modules/arpa_inet:
16681 * modules/byteswap, modules/configmake, modules/fcntl:
16682 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
16683 * modules/localcharset, modules/netinet_in, modules/poll:
16684 * modules/stdbool, modules/stdint, modules/sys_select:
16685 * modules/sys_socket, modules/sys_stat, modules/sysexits:
16687 2006-09-06 Jim Meyering <jim@meyering.net>
16689 Make generated files be read-only.
16690 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
16691 Ensure that each generated file is now read-only.
16692 * modules/argz: Likewise.
16693 * modules/arpa_inet: Likewise.
16694 * modules/byteswap: Likewise.
16695 * modules/configmake: Likewise.
16696 * modules/fcntl: Likewise.
16697 * modules/fnmatch: Likewise.
16698 * modules/getopt: Likewise.
16699 * modules/glob: Likewise.
16700 * modules/inttypes: Likewise.
16701 * modules/netinet_in: Likewise.
16702 * modules/poll: Likewise.
16703 * modules/stdbool: Likewise.
16704 * modules/stdint: Likewise.
16705 * modules/sys_select: Likewise.
16706 * modules/sys_socket: Likewise.
16707 * modules/sys_stat: Likewise.
16708 * modules/sysexits: Likewise.
16709 * modules/localcharset: Same as above, but continue using temporary
16710 file named "t-$@" (why different?) rather than the "$@-t" used
16713 * modules/sysexits (Makefile.am): Replace literal occurrences
16714 of "sysexit.h" more readable, and more consistent, "$@".
16716 2006-09-06 Bruno Haible <bruno@clisp.org>
16718 * modules/striconv: New file.
16719 * modules/xstriconv: New file.
16720 * MODULES.html.sh (Internationalization functions): Add striconv,
16723 2006-09-06 Bruno Haible <bruno@clisp.org>
16725 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
16726 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
16727 not using libtool correctly.
16729 2006-09-06 Bruno Haible <bruno@clisp.org>
16731 * lib/striconv.h: New file.
16732 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
16734 * lib/xstriconv.h: New file.
16735 * lib/xstriconv.c: New file.
16737 2006-09-06 Bruno Haible <bruno@clisp.org>
16739 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16742 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16744 * lib/argz_.h: Sync from Libtool.
16746 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
16747 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16749 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
16751 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
16753 * modules/trim: New file.
16755 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
16757 * lib/trim.h: New file.
16758 * lib/trim.c: New file.
16760 2006-09-05 Bruno Haible <bruno@clisp.org>
16762 * MODULES.html.sh (String handling): Add trim.
16764 2006-09-04 Karl Berry <karl@gnu.org>
16766 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
16767 until next release.
16769 2006-09-03 Bruno Haible <bruno@clisp.org>
16771 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
16774 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
16776 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
16777 not gl_GETLOADAVG. Omit unneeded semicolons.
16778 Problems reported by Ralf Wildenhues in
16779 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
16780 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
16781 at the end, which is the usual gnulib style.
16783 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
16784 of doing all the work ourselves.
16785 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
16786 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
16788 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
16790 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
16791 Problem reported by Ralf Wildenhues in
16792 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
16794 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
16795 HAVE_STRUCT_STATFS_F_FSTYPENAME.
16797 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
16799 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
16800 yesterday's patch by changing test -n to test -z.
16802 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
16804 * modules/getloadavg (Files): Add m4/getloadavg.m4.
16805 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
16806 the former is now obsolescent.
16808 * modules/chdir-long (Depends-on): Add fcntl.
16810 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
16812 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
16813 obsolescent, and programs should use gnulib instead.
16814 * m4/getloadavg.m4: New file, with contents taken from Autoconf
16815 but with prefixes changed.
16817 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
16819 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
16820 or stdbool.h, because they might not exist while configuring.
16822 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
16823 Don't include unistd.h or limits.h; not needed, since chdir-long.h
16825 (O_DIRECTORY): Remove.
16827 2006-08-31 Eric Blake <ebb9@byu.net>
16829 * gnulib-tool: Don't let emacs change spaces to TAB.
16831 2006-08-31 Bruno Haible <bruno@clisp.org>
16833 * gnulib-tool: When calling func_import more than once, do it in a
16835 Reported by Eric Blake <ebb9@byu.net>.
16837 2006-08-31 Bruno Haible <bruno@clisp.org>
16839 * gnulib-tool (nl): Remove variable.
16840 (sed_transform_lib_file): Use more robust test for config-h module.
16841 (func_import): Fix typo in 2006-08-25 patch.
16843 2006-08-31 Bruno Haible <bruno@clisp.org>
16845 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
16846 specified, augment Makefile.am variables instead of assigning them.
16848 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
16850 Work around a bug in both the Linux and SunOS 64-bit kernels:
16851 nanosleep mishandles sleeps for longer than 2**31 seconds.
16852 Problem reported by Frank v Waveren in
16853 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
16854 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
16855 Check for nanosleep bug.
16856 (LIB_NANOSLEEP): Append clock_gettime library if needed.
16858 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
16860 Work around a bug in both the Linux and SunOS 64-bit kernels:
16861 nanosleep mishandles sleeps for longer than 2**31 seconds.
16862 Problem reported by Frank v Waveren in
16863 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
16864 * lib/nanosleep.c (BILLION): New constant.
16865 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
16866 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
16869 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
16871 * modules/nanosleep (Depends-on): Add gettime.
16873 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
16874 and Simon Josefsson <jas@extundo.com>
16875 and Oskar Liljeblad <oskar@osk.mine.nu>
16877 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
16878 * gnulib-tool (func_import): New license type 'unmodifiable license
16880 * modules/fdl: Use it. Longer description.
16881 * module/gpl, module/lgpl: New files.
16883 2006-08-30 Jim Meyering <jim@meyering.net>
16885 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
16886 shadowing the parameter.
16888 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16892 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16894 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
16895 sharing with gnulib. Report by Eric Blake.
16897 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
16899 * modules/isapipe: New file.
16900 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
16902 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
16904 * modules/configmake (Makefile.am): Add a comment, and omit
16905 the CONFIGMAKE_ prefix from generated macro names. Suggested
16908 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
16910 * m4/isapipe.m4: New file.
16912 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
16914 * lib/isapipe.c, lib/isapipe.h: New files.
16916 2006-08-29 Jim Meyering <jim@meyering.net>
16918 * modules/configmake (Makefile.am): Make configmake.h depend on
16919 Makefile. Otherwise, a stale configmake.h could hang around.
16921 2006-08-29 Eric Blake <ebb9@byu.net>
16923 * lib/error.c (error_at_line, print_errno_message): Match libc, after
16924 resolution of upstream bug 3044.
16926 2006-08-29 Bruno Haible <bruno@clisp.org>
16928 * modules/localcharset (Depends-on): Add configmake.
16929 (Makefile.am): Remove setting of LIBDIR through DEFS.
16931 2006-08-29 Bruno Haible <bruno@clisp.org>
16933 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
16936 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
16938 * modules/fcntl: New file.
16939 * modules/chdir-safer (Depends-on): Add fcntl.
16940 * modules/fts: Likewise.
16941 * modules/mkdir-p: Likewise.
16943 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
16944 This undoes the most recent change, since we're now addressing the
16945 problem in a different way.
16947 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
16948 into output, since the output might be called Makefile.am even
16949 if $makefile_name is something different.
16950 (func_import): Use $makefile_am rather than
16951 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
16954 * modules/inttypes (Files): Add m4/inttypes-h.m4.
16956 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
16958 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
16959 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
16960 recent change to stdint.m4, since we're now addressing the problem in a
16963 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
16965 * m4/fcntl_h.m4: New file.
16967 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
16969 * lib/fcntl_.h: New file.
16970 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
16972 * lib/dirchownmod.c: Likewise.
16973 * lib/fts.c: Likewise.
16975 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
16976 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
16977 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
16978 just before including <inttypes.h>, to avoid circular inclusion.
16980 2006-08-28 Jim Meyering <jim@meyering.net>
16982 * doc/visibility.texi: Actually read and correct the grammar of the
16983 sentence affected by yesterday's change.
16985 2006-08-28 Eric Blake <ebb9@byu.net>
16987 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
16990 2006-08-28 Eric Blake <ebb9@byu.net>
16992 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
16994 2006-08-28 Eric Blake <ebb9@byu.net>
16996 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
16998 2006-08-28 Bruno Haible <bruno@clisp.org>
17000 * modules/c-strstr: New file, from GNU gettext.
17001 * MODULES.html.sh (String handling): Add c-strstr.
17003 2006-08-28 Bruno Haible <bruno@clisp.org>
17005 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
17007 Reported by Eric Blake.
17009 2006-08-28 Bruno Haible <bruno@clisp.org>
17011 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
17012 (VASNPRINTF): Return a string of length > INT_MAX without failing.
17013 * lib/vasprintf.c: Include errno.h, limits.h.
17014 (EOVERFLOW): New fallback definition.
17015 (vasprintf): Test here whether the string length is > INT_MAX.
17016 * lib/vsnprintf.c: Include errno.h, limits.h.
17017 (EOVERFLOW): New fallback definition.
17018 (vsnprintf): Fix bug when generated string was too long for the buffer.
17019 Test here whether the string length is > INT_MAX.
17021 2006-08-28 Bruno Haible <bruno@clisp.org>
17023 * lib/inttypes_.h (SCNX*): Remove definitions.
17024 Reported by Eric Blake.
17026 2006-08-28 Bruno Haible <bruno@clisp.org>
17028 * lib/c-strstr.h: New file, from GNU gettext.
17029 * lib/c-strstr.c: New file, from GNU gettext.
17031 2006-08-28 Bruno Haible <bruno@clisp.org>
17033 * gnulib-tool: Reorder some statements.
17035 2006-08-28 Bruno Haible <bruno@clisp.org>
17037 * gnulib-tool: New option --makefile-name.
17038 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
17040 (func_import): Write $makefile_name to the cache file, and read it from
17041 there unless explicitly specified. Use $makefile_name as file name
17042 instead of Makefile.am. Adjust the recommendations accordingly.
17044 2006-08-28 Bruno Haible <bruno@clisp.org>
17046 * gnulib-tool (func_verify_module): Check against misapplying patch.
17048 2006-08-28 Bruno Haible <bruno@clisp.org>
17050 * gnulib-tool (func_relativize, func_relconcat): New functions.
17051 Give an error if --local-dir is given with --update.
17052 Remove trailing slashes from $local_gnulib_dir.
17053 (func_import): Store the relativized $local_gnulib_dir in
17054 gnulib-cache.m4, and read it from there if not specified explicitly.
17056 2006-08-28 Bruno Haible <bruno@clisp.org>
17058 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
17059 is the current directory. Respect also $local_gnulib_dir.
17061 2006-08-28 Bruno Haible <bruno@clisp.org>
17062 Simon Josefsson <jas@extundo.com>
17065 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
17067 2006-08-27 Jim Meyering <jim@meyering.net>
17069 * doc/visibility.texi: Remove duplicate word: "pointer".
17071 2006-08-26 Bruno Haible <bruno@clisp.org>
17073 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
17074 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
17075 (Makefile.am): Create inttypes.h from inttypes_.h.
17076 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
17078 * modules/imaxabs: New file.
17080 * modules/imaxdiv: New file.
17082 2006-08-26 Bruno Haible <bruno@clisp.org>
17084 * m4/inttypes.m4: New file.
17085 * m4/_inttypes_h.m4: Remove file.
17086 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
17088 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
17090 * m4/imaxabs.m4: New file.
17092 * m4/imaxdiv.m4: New file.
17094 2006-08-26 Bruno Haible <bruno@clisp.org>
17096 * lib/inttypes_.h: New file.
17097 * lib/inttypes.h: Remove file.
17098 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
17100 * lib/imaxabs.c: New file.
17102 * lib/imaxdiv.c: New file.
17104 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
17106 New config-h module, so that "make" output needn't be cluttered
17107 by -DHAVE_CONFIG_H.
17108 * MODULES.html.sh (Support for building libraries and executables):
17110 * modules/config-h: New file.
17111 * gnulib-tool (nl, sed_transform_lib_file): New vars.
17112 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
17113 the config-h module is used.
17115 New configmake module, so that "make" output needn't be cluttered
17116 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
17117 * MODULES.html.sh (Support for building libraries and executables):
17119 * modules/configmake: New file.
17121 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
17123 * m4/config-h.m4: New file.
17125 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
17127 * config/srclist.txt: Add elisp-comp.
17129 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
17131 * MODULES.html.sh (Support for building libraries and executables):
17133 * build-aux/elisp-comp: New file.
17134 * modules/elisp-comp: New file.
17136 2006-08-24 Bruno Haible <bruno@clisp.org>
17138 * gnulib-tool (func_create_testdir): Use non-default values of
17139 sourcebase and m4base.
17141 2006-08-24 Bruno Haible <bruno@clisp.org>
17143 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
17146 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
17148 * modules/openat (Depends-on): Add lchown.
17150 2006-08-23 Bruno Haible <bruno@clisp.org>
17152 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
17153 of gl_LOCK_EARLY instead of gl_LOCK.
17155 2006-08-23 Bruno Haible <bruno@clisp.org>
17157 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
17159 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
17161 2006-08-23 Bruno Haible <bruno@clisp.org>
17163 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
17166 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
17167 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
17168 (gl_LOCK): New macro.
17170 2006-08-22 Simon Josefsson <jas@extundo.com>
17172 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
17175 2006-08-22 Simon Josefsson <jas@extundo.com>
17177 * MODULES.html.sh: Add "Support for maintaining and release
17180 * build-aux/gnupload: New file, from coreutils.
17182 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
17184 Avoid the need for AC_LIBSOURCES in m4 macros.
17185 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
17186 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
17187 * modules/check-version (EXTRA_DIST): Add check-version.h.
17188 * modules/crc (EXTRA_DIST): Add crc.h.
17189 * modules/des (EXTRA_DIST): Add des.h.
17190 * modules/gc (EXTRA_DIST): Add gc.h.
17191 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
17192 * modules/getline (EXTRA_DIST): Add getline.h.
17193 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
17194 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
17195 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
17196 * modules/md2 (EXTRA_DIST): Add md2.h.
17197 * modules/md4 (EXTRA_DIST): Add md4.h.
17198 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
17199 * modules/read-file (EXTRA_DIST): Add read-file.h.
17200 * modules/readline (EXTRA_DIST): Add readline.h.
17201 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
17202 rijndael-api-fst.h.
17204 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
17206 * m4/rijndael.m4 (gl_ARCFOUR):
17207 * m4/arctwo.m4 (gl_ARCTWO):
17208 * m4/check-version.m4 (gl_CHECK_VERSION):
17209 * m4/crc.m4 (gl_CRC):
17210 * m4/des.m4 (gl_DES):
17211 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
17212 * m4/gc.m4 (gl_GC):
17213 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
17214 * m4/getline.m4 (gl_FUNC_GETLINE):
17215 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
17216 * m4/hmac-md5.m4 (gl_HMAC_MD5):
17217 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
17218 * m4/md2.m4 (gl_MD2):
17219 * m4/md4.m4 (gl_MD4):
17220 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
17221 * m4/read-file.m4 (gl_FUNC_READ_FILE):
17222 * m4/readline.m4 (gl_FUNC_READLINE):
17223 * m4/rijndael.m4 (gl_RIJNDAEL):
17224 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
17225 to get the necessary .h files and whatnot.
17227 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
17229 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
17230 gnulib rather than the other way around.
17231 * config/srclistvars.sh (COREUTILS): Remove.
17233 2006-08-22 Jim Meyering <jim@meyering.net>
17235 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
17237 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
17239 2006-08-22 Eric Blake <ebb9@byu.net>
17241 * modules/regexprops-generic: New file.
17242 * MODULES.html.sh (Support for building documentation): List it.
17244 2006-08-22 Eric Blake <ebb9@byu.net>
17246 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
17247 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17248 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
17249 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17251 2006-08-22 Bruno Haible <bruno@clisp.org>
17253 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
17254 and lib_LTLIBRARIES like the other lib_* variables.
17256 2006-08-22 Bruno Haible <bruno@clisp.org>
17258 * build-aux/x-to-1.in: New file, from GNU gettext.
17260 2006-08-22 Bruno Haible <bruno@clisp.org>
17262 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
17265 2006-08-22 Bruno Haible <bruno@clisp.org>
17267 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
17270 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
17273 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
17275 Problem reported by Bruno Haible.
17277 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
17279 Avoid the need for AC_LIBSOURCES in m4 macros.
17280 * modules/acl (EXTRA_DIST): Add acl.h.
17281 * modules/argmatch (Files): Add m4/argmatch.m4.
17282 (configure.ac): Add gl_ARGMATCH.
17283 (EXTRA_DIST): Renamed from lib_SOURCES, for
17284 consistency with the other modules. Remove argmatch.c.
17285 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
17286 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
17287 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
17288 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
17289 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
17290 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
17291 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
17292 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
17293 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
17294 * modules/closeout (EXTRA_DIST): Add closeout.h.
17295 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
17296 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
17297 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
17298 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
17299 dirname.h; remove basename.c and stripslash.c.
17300 * modules/exclude (EXTRA_DIST): Add exclude.h.
17301 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
17302 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
17303 * modules/file-type (EXTRA_DIST): Add file-type.h.
17304 * modules/filemode (EXTRA_DIST): Add filemode.h.
17305 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
17306 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
17307 * modules/fpending (EXTRA_DIST): Add __fpending.h.
17308 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
17309 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
17310 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
17311 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
17312 * modules/getdate (EXTRA_DIST): Add getdate.c.
17313 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
17314 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
17315 * modules/getpass (EXTRA_DIST): Add getpass.h.
17316 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
17317 * modules/group-member (EXTRA_DIST): Add group-member.h.
17318 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
17319 * modules/hash (EXTRA_DIST): Add hash.h.
17320 * modules/human (EXTRA_DIST): Add human.h.
17321 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
17322 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
17323 * modules/lchown (EXTRA_DIST): Add lchown.h.
17324 * modules/long-options (EXTRA_DIST): Add long-options.h.
17325 * modules/lstat (EXTRA_DIST): Add lstat.h.
17326 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
17327 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
17328 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
17329 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
17330 * modules/memxor (EXTRA_DIST): Add memxor.h.
17331 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
17332 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
17333 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
17334 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
17335 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
17336 * modules/physmem (EXTRA_DIST): Add physmem.h.
17337 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
17338 * modules/posixver (EXTRA_DIST): Add posixver.h.
17339 * modules/quote (EXTRA_DIST): Add quote.h.
17340 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
17341 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
17342 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
17343 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
17344 regex_internal.h regexec.c.
17345 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
17346 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
17347 * modules/same (EXTRA_DIST): Add same.h.
17348 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
17349 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
17350 * modules/savedir (EXTRA_DIST): Add savedir.h.
17351 * modules/sha1 (EXTRA_DIST): Add sha1.h.
17352 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
17353 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
17354 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
17355 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
17356 * modules/strdup (EXTRA_DIST): Add strdup.h.
17357 * modules/strftime (EXTRA_DIST): Add strftime.h.
17358 * modules/strndup (EXTRA_DIST): Add strndup.h.
17359 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
17360 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
17361 * modules/time_r (EXTRA_DIST): Add time_r.h.
17362 * modules/timespec (EXTRA_DIST): Add timespec.h.
17363 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
17364 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
17365 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
17366 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
17367 * modules/userspec (EXTRA_DIST): Add userspec.h.
17368 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
17369 * modules/utimens (EXTRA_DIST): Add utimens.h.
17370 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
17371 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
17372 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
17373 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
17374 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
17375 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
17376 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
17377 * modules/yesno (EXTRA_DIST): Add yesno.h.
17379 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
17381 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
17383 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
17384 * m4/dev-ino.m4, same-inode.m4: Remove.
17386 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
17387 * m4/acl.m4 (AC_FUNC_ACL):
17388 * m4/backupfile.m4 (gl_BACKUPFILE):
17389 * m4/c-strtod.m4 (gl_C99_STRTOLD):
17390 * m4/canon-host.m4 (gl_CANON_HOST):
17391 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17392 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
17393 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
17394 * m4/cloexec.m4 (gl_CLOEXEC):
17395 * m4/close-stream.m4 (gl_CLOSE_STREAM):
17396 * m4/closeout.m4 (gl_CLOSEOUT):
17397 * m4/dirfd.m4 (gl_FUNC_DIRFD):
17398 * m4/dirname.m4 (gl_DIRNAME):
17399 * m4/exclude.m4 (gl_EXCLUDE):
17400 * m4/exitfail.m4 (gl_EXITFAIL):
17401 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
17402 * m4/file-type.m4 (gl_FILE_TYPE):
17403 * m4/filemode.m4 (gl_FILEMODE):
17404 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
17405 * m4/fpending.m4 (gl_FUNC_FPENDING):
17406 * m4/fprintftime.m4 (gl_FPRINTFTIME):
17407 * m4/fts.m4 (gl_FUNC_FTS):
17408 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
17409 * m4/getdate.m4 (gl_GETDATE):
17410 * m4/gethrxtime.m4 (gl_GETHRXTIME):
17411 * m4/getpagesize.m4 (gl_GETPAGESIZE):
17412 * m4/getpass.m4 (gl_FUNC_GETPASS):
17413 * m4/gettime.m4 (gl_GETTIME):
17414 * m4/getugroups.m4 (gl_GETUGROUPS):
17415 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
17416 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
17417 * m4/hard-locale.m4 (gl_HARD_LOCALE):
17418 * m4/hash.m4 (gl_HASH):
17419 * m4/idcache.m4 (gl_IDCACHE):
17420 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
17421 * m4/lchown.m4 (gl_FUNC_LCHOWN):
17422 * m4/long-options.m4 (gl_LONG_OPTIONS):
17423 * m4/lstat.m4 (gl_FUNC_LSTAT):
17424 * m4/md5.m4 (gl_MD5):
17425 * m4/memcasecmp.m4 (gl_MEMCASECMP):
17426 * m4/memcoll.m4 (gl_MEMCOLL):
17427 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
17428 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
17429 * m4/memxor.m4 (gl_MEMXOR):
17430 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
17431 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
17432 * m4/modechange.m4 (gl_MODECHANGE):
17433 * m4/mountlist.m4 (gl_MOUNTLIST):
17434 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17435 * m4/openat.m4 (gl_FUNC_OPENAT):
17436 * m4/pathmax.m4 (gl_PATHMAX):
17437 * m4/physmem.m4 (gl_PHYSMEM):
17438 * m4/posixtm.m4 (gl_POSIXTM):
17439 * m4/posixver.m4 (gl_POSIXVER):
17440 * m4/quote.m4 (gl_QUOTE):
17441 * m4/quotearg.m4 (gl_QUOTEARG):
17442 * m4/readtokens.m4 (gl_READTOKENS):
17443 * m4/readutmp.m4 (gl_READUTMP):
17444 * m4/regex.m4 (gl_REGEX):
17445 * m4/safe-read.m4 (gl_SAFE_READ):
17446 * m4/safe-write.m4 (gl_SAFE_WRITE):
17447 * m4/same.m4 (gl_SAME):
17448 * m4/save-cwd.m4 (gl_SAVE_CWD):
17449 * m4/savedir.m4 (gl_SAVEDIR):
17450 * m4/settime.m4 (gl_SETTIME):
17451 * m4/sha1.m4 (gl_SHA1):
17452 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
17453 * m4/stat-macros.m4 (gl_STAT_MACROS):
17454 * m4/stat-time.m4 (gl_STAT_TIME):
17455 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
17456 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
17457 * m4/strdup.m4 (gl_FUNC_STRDUP):
17458 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
17459 * m4/strndup.m4 (gl_FUNC_STRNDUP):
17460 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
17461 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
17462 * m4/time_r.m4 (gl_TIME_R):
17463 * m4/timespec.m4 (gl_TIMESPEC):
17464 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
17465 * m4/unlinkdir.m4 (gl_UNLINKDIR):
17466 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
17467 * m4/userspec.m4 (gl_USERSPEC):
17468 * m4/utimecmp.m4 (gl_UTIMECMP):
17469 * m4/utimens.m4 (gl_UTIMENS):
17470 * m4/xalloc.m4 (gl_XALLOC):
17471 * m4/xgetcwd.m4 (gl_XGETCWD):
17472 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
17473 * m4/xreadlink.m4 (gl_XREADLINK):
17474 * m4/xstrtod.m4 (gl_XSTRTOD):
17475 * m4/yesno.m4 (gl_YESNO):
17476 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
17477 to get the necessary .h files and whatnot.
17479 2006-08-21 Mark D. Baushke <mdb@gnu.org>
17480 Bruno Haible <bruno@clisp.org>
17482 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
17483 /bin/sh understanding of '!' conditional negation.
17485 2006-08-21 Jim Meyering <jim@meyering.net>
17487 * modules/openat (Depends-on): Really alphabetize.
17489 * modules/acl (Depends-on): Add error and quote.
17491 * check-module (find_included_lib_files): Add at-func.c to the
17492 ok-to-include-more-than-once white list.
17494 * modules/openat (Depends-on): Add lstat. Alphabetize.
17496 2006-08-21 Bruno Haible <bruno@clisp.org>
17498 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17499 Emit a pkgdata_DATA variable only if some snippets add contents to it.
17500 Reported by Martin Lambers <marlam@marlam.de>.
17502 2006-08-21 Bruno Haible <bruno@clisp.org>
17504 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
17505 specify an installation location, don't emit a noinst_LIBRARIES or
17506 noinst_LTLIBRARIES assignment.
17508 2006-08-21 Bruno Haible <bruno@clisp.org>
17511 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
17512 BeOS has mbrtowc() but no <wctype.h>.
17514 2006-08-21 Bruno Haible <bruno@clisp.org>
17517 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
17520 2006-08-21 Bruno Haible <bruno@clisp.org>
17523 * lib/mbchar.h: Include <wctype.h> only if it exists.
17525 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
17527 Remove files that are no longer needed by their respective modules.
17528 * m4/obstack.m4: Remove.
17529 * m4/strerror_r.m4: Remove.
17530 * m4/uint32_t.m4: Remove.
17531 * m4/uintptr_t.m4: Remove.
17532 * m4/ullong_max.m4: Remove.
17533 * m4/xstrtoimax.m4: Remove.
17534 * m4/xstrtoumax.m4: Remove.
17536 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
17537 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
17538 dependencies now capture this.
17540 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
17541 Do not use AC_LIBSOURCES, since gnulib modules now do this.
17542 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
17543 * m4/human.m4 (gl_HUMAN): Likewise.
17544 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
17545 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
17547 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
17549 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
17550 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
17552 * m4/human.m4 (gl_HUMAN): Likewise.
17553 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
17554 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
17555 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
17556 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
17557 * m4/xstrtol (gl_XSTRTOL): Likewise.
17559 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
17560 AC_TYPE_LONG_LONG_INT.
17561 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
17562 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
17563 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
17564 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
17566 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
17569 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
17570 (gl_PREREQ_XSTRTOUL): Remove.
17572 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
17574 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
17577 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
17579 Add and change modules to make it easier for coreutils to use
17581 * modules/backupfile (Files): Remove m4/d-ino.m4.
17582 (Depends-on): Add d-ino.
17583 * modules/cycle-check (Depends-on): Add stdint.
17584 (lib_SOURCES): Add cycle-check.h.
17585 * modules/d-ino: New module.
17586 * modules/d-type: New module.
17587 * modules/error (Files): Remove m4/strerror_r.m4.
17588 * modules/filemode (Files): Add m4/st_dm_mode.m4.
17589 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
17590 m4/inttypes_h.m4, m4/uintmax_t.m4.
17591 (Depends-on): Add stdint.
17592 (lib_SOURCES): Add fsusage.h.
17593 * modules/getcwd (Files): Remove d-ino.m4.
17594 (Depends-on): Add d-ino.
17595 * modules/getndelim2 (Depends-on): Add stdint.
17596 * modules/glob (Files): Remove m4/d-type.m4.
17597 (Depends-on): Add d-type.
17598 * modules/host-os: New module.
17599 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
17600 m4/inttypes_h.m4, m4/uintmax_t.m4.
17601 * Depends-on: Add stdint.
17602 (lib_SOURCES): Add human.h.
17603 * modules/inttostr (Files): Remove m4/intmax_t.m4,
17604 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
17605 m4/uintmax_t.m4, m4/ulonglong.m4.
17606 (Depends-on): Add stdint.
17607 (EXTRA_DIST): Add inttostr.h.
17608 * modules/lchmod: New module.
17609 * modules/link-follow: New module.
17610 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
17611 (Depends-on): Add lchmod.
17612 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
17613 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
17614 (Depends-on): Add stdint.
17615 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
17616 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
17617 (Depends-on): Add stdint.
17618 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
17619 * modules/perl: New module.
17620 * modules/regex (Depends-on): Add stdint.
17621 * modules/rmdir-errno: New module.
17622 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
17624 (Depends-on): Add stdint.
17625 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
17627 (Depends-on): Add stdint.
17628 * modules/unlink-busy: New module.
17629 * modules/utimecmp (Depends-on): Add stdint.
17630 * modules/uptime: New module.
17631 * modules/winsz-ioctl: New module.
17632 * modules/winsz-termios: New module.
17633 * modules/xnanosleep (Depends-on): Add nanosleep.
17634 * modules/ullong_max: Remove.
17635 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
17636 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
17637 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
17638 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
17639 (Depends-on): Add inttypes.
17640 (lib_SOURCES): Add xstrtol.h.
17641 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
17642 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
17643 * MODULES.html.sh: Move 'assert' into the assert section.
17644 Move 'dummy' into the linking section.
17646 Add section for compatibility checks for POSIX:2001 functions,
17647 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
17648 winsz-ioctl, and winsz-termios into it.
17650 Add top-level Misc section and put host-os, perl, and uptime
17653 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
17655 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
17656 now assume the stdint module. Do not include inttypes.h.
17657 * lib/fsusage.h: Likewise.
17658 * lib/getndelim2.c: Likewise.
17659 * lib/human.h: Likewise.
17660 * lib/inttostr.h: Likewise.
17661 * lib/obstack.c: Likewise.
17662 * lib/regex_internal.h: Likewise.
17663 * lib/tempname.c: Likewise.
17664 * lib/utimecmp.c: Likewise.
17665 * lib/xstrtol.h: Likewise.
17667 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
17669 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
17670 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
17671 * lib/xtime.h: Likewise.
17673 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
17675 * modules/openat (Files): Add lib/fchmodat.c.
17676 Fixes problem reported by Jay Youngman.
17678 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
17680 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
17681 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
17683 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
17684 Bruno Haible <bruno@clisp.org>
17686 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
17687 and is a script that invokes bison. Tighten the code. Add comments.
17689 2006-08-18 Jim Meyering <jim@meyering.net>
17691 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
17692 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
17693 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
17694 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
17696 2006-08-18 Bruno Haible <bruno@clisp.org>
17698 * modules/bison-i18n: New file.
17699 * MODULES.html.sh (Internationalization functions): Add it.
17701 2006-08-18 Bruno Haible <bruno@clisp.org>
17703 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
17704 sys/statvfs.h. When getmntinfo was found, check its declaration and
17705 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
17707 2006-08-18 Bruno Haible <bruno@clisp.org>
17709 * m4/bison-i18n.m4: New file, from bison.
17711 2006-08-18 Bruno Haible <bruno@clisp.org>
17713 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
17714 (ME_DUMMY): Treat "kernfs" as a dummy.
17715 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
17717 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
17719 Update from coreutils.
17721 2006-08-15 Jim Meyering <jim@meyering.net>
17723 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
17725 2006-01-17 Jim Meyering <jim@meyering.net>
17727 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
17729 2006-01-11 Jim Meyering <jim@meyering.net>
17731 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
17732 Check for the lchmod function.
17734 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
17736 Update from coreutils.
17738 * lib/__fpending.h: Add copyright notice.
17739 * lib/fprintftime.h: Likewise.
17740 * lib/savedir.c: Use (C) in copyright notice.
17741 * lib/savedir.h: Likewise.
17743 2006-08-15 Jim Meyering <jim@meyering.net>
17745 * lib/at-func.c: New file, with the logic of all emulated at-functions.
17746 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
17747 in support of the EXPECTED_ERRNO macro.
17748 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
17749 definitions. Instead, define the appropriate symbols and include
17751 * lib/mkdirat.c (mkdirat): Likewise.
17752 * lib/fchmodat.c (fchmodat): Likewise.
17753 (ENOSYS): Remove definition.
17754 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
17755 it. Don't include "unistd--.h" -- it wasn't ever used.
17757 2006-01-17 Jim Meyering <jim@meyering.net>
17759 Rewrite fts.c not to change the current working directory,
17760 by using openat, fstatat, fdopendir, etc..
17762 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
17763 (HAVE_OPENAT_SUPPORT): Define.
17764 [_LIBC] (fchdir): Don't undef or define; no longer used.
17765 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
17766 Now, this `function' always succeeds, and consumes its file descriptor
17767 parameter -- so callers must not close such FDs. Update callers.
17768 (diropen_fd, opendirat, cwd_advance_fd): New functions.
17769 (diropen): Add parameter, SP. Adjust all callers.
17770 Implement using diropen_fd, rather than open.
17771 (fts_open): Initialize new member, fts_cwd_fd.
17772 Remove fts_rft-setting code.
17773 (fts_close): Close fts_cwd_fd, if necessary.
17774 (__opendir2): Define in terms of opendir or opendirat,
17775 depending on whether the FST_NOCHDIR flag is set.
17776 (fts_build): Since fts_safe_changedir consumes its FD, and since
17777 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
17778 and close the dup'd file descriptor upon failure.
17779 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
17780 (fts_safe_changedir): Tweak semantics to reflect that this function
17781 now calls cwd_advance_fd and hence consumes its FD argument.
17782 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
17783 [struct FTS] (fts_rft): Remove now-unused member.
17784 [struct FTS] (fts_cycle.state): Improve comment.
17786 * lib/openat.c (openat_needs_fchdir): New function.
17787 * lib/openat.h (openat_needs_fchdir): Declare it.
17789 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
17791 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
17792 Problem and fix reported by Pádraig Brady in
17793 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
17795 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
17797 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
17799 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
17801 * lib/memcoll.c (memcoll): Optimize for the common case where the
17802 arguments are bytewise equal.
17804 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
17806 * doc/regexprops-generic.texi: Add a copyright notice.
17808 2006-08-15 Bruno Haible <bruno@clisp.org>
17810 * modules/tmpdir (License): Change to LGPL.
17812 2006-08-15 Bruno Haible <bruno@clisp.org>
17814 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
17817 2006-08-14 Simon Josefsson <jas@extundo.com>
17819 * config/srclist.txt: Add gnupload.
17821 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
17823 Change copyright notice from LGPL 2 to GPL 2, since that's the
17824 standard form used in the gnulib repository.
17825 * tests/test-lock.c: Likewise.
17826 * tests/test-stdint.c: Likewise.
17827 * tests/test-tls.c: Likewise.
17829 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
17830 prelude-manager. User shorter URLs for GNU projects, without '?'.
17831 Add copyright notice.
17833 * check-module: Add copyright notice. Output a copyright
17834 notice if "--version" is specified.
17835 * modules/COPYING: New file.
17836 * tests/test-getaddrinfo.c: Add copyright notice.
17837 * tests/test-verify.c: Likewise.
17839 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
17841 Change copyright notice from LGPL 2 to GPL 2, since that's the
17842 standard form used in the gnulib repository.
17843 * lib/lock.c: LGPL -> GPL.
17844 * lib/lock.h: Likewise.
17845 * lib/strnlen1.c: Likewise.
17846 * lib/strnlen1.h: Likewise.
17847 * lib/tls.c: Likewise.
17848 * lib/tls.h: Likewise.
17849 * lib/tmpdir.c: Likewise.
17851 * lib/TODO: Remove; this belongs only in coreutils.
17853 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
17855 Add copyright notices to long-enough files that lack them, since
17856 otherwise the files aren't clearly free. Use the same notice that
17857 getdate.texi already uses.
17858 * doc/alloca-opt.texi: Add copyright notice.
17859 * doc/alloca.texi: Likewise.
17860 * doc/ctime.texi: Likewise.
17861 * doc/functions.texi: Likewise.
17862 * doc/gcd.texi: Likewise.
17863 * doc/gnulib-tool.texi: Likewise.
17864 * doc/inet_ntoa.texi: Likewise.
17865 * doc/visibility.texi: Likewise.
17867 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
17868 * doc/quote.texi: Add copyright notice.
17870 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
17871 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
17872 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
17873 Mention SunOS 5.11. Mention that everything before SunOS 5.7
17874 is now obsolete, and give a pointer to the Sun list.
17875 Add copyright notice.
17877 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
17879 * config/srclistvars.sh: Add copyright notice.
17881 2006-08-14 Eric Blake <ebb9@byu.net>
17883 Import the following change from libc:
17885 2006-08-12 Ulrich Drepper <drepper@redhat.com>
17888 * lib/misc/error.c: Add space between program name and message if file
17891 2006-08-12 Karl Berry <karl@gnu.org>
17893 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
17894 remove, these originate in gnulib now.
17896 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17898 * doc/Makefile (standards.info standards.html standards.dvi):
17899 Also depend on make-stds.texi.
17901 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
17903 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
17904 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
17906 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
17907 in wchar_t. Problem reported by Eric Blake.
17909 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
17910 LEN is smaller than SIZE. Suggested by Bruno Haible.
17911 Also, help the compiler to keep LEN in a register.
17913 2006-08-11 Eric Blake <ebb9@byu.net>
17915 * users.txt: Sort. Add tar.
17917 2006-08-11 Bruno Haible <bruno@clisp.org>
17919 * users.txt: New file.
17921 2006-08-11 Bruno Haible <bruno@clisp.org>
17923 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
17924 before <wchar.h>. Needed for OSF/1 and BSD/OS.
17926 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
17928 * modules/snprintf (Depends-on): Remove minmax.
17929 (Maintainer): Add self and Bruno.
17931 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
17933 * lib/.cppi-disable: Add snprintf.h, socket_.h.
17934 * lib/snprintf.c: Include <errno.h> and <limits.h>.
17935 (EOVERFLOW): Define if the system does not.
17936 Do not include "minmax.h"; it wasn't used.
17937 (snprintf): Don't assume size_t promotes to an unsigned type.
17938 Fix bug when generated string was too long for the buffer: the
17939 buffer's contents are supposed to be the initial prefix of the
17940 output. Don't assume vasnprintf returns EOVERFLOW if the size
17941 exceeds INT_MAX; do the check ourselves.
17943 Import the following changes from libc:
17945 2006-06-02 Jakub Jelinek <jakub@redhat.com>
17947 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
17948 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
17949 set wc to the byte which couldn't be converted.
17950 (re_string_reconstruct): Don't clear valid_raw_len before calling
17951 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
17952 tip_context using re_string_context_at.
17954 2006-05-02 Ulrich Drepper <drepper@redhat.com>
17956 * lib/posix/regex.h: g++ still cannot handled [restrict].
17958 2006-04-21 Ulrich Drepper <drepper@redhat.com>
17960 * lib/posix/regex.h: Remove special handling for VMS.
17962 2006-08-10 Jim Meyering <jim@meyering.net>
17964 * modules/same-inode: New module.
17965 * modules/dev-ino: New module.
17966 * modules/cycle-check: Depend on these modules, rather than simply
17967 including their .h files.
17968 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
17969 required via m4/cycle-check.m4.
17970 * modules/same: Depend on new same-inode module, rather than
17971 including same-inode.h.
17972 * modules/chdir-safer: New file.
17974 * modules/chown (Depends-on): Add stat-macros.
17976 2006-08-10 Jim Meyering <jim@meyering.net>
17978 * m4/cycle-check.m4: New file.
17979 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
17980 * m4/dev-ino.m4, m4/same-inode.m4: New files.
17982 2006-08-10 Eric Blake <ebb9@byu.net>
17984 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
17985 in from original proposal.
17987 2006-08-10 Eric Blake <ebb9@byu.net>
17988 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17990 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
17993 2006-08-10 Bruno Haible <bruno@clisp.org>
17995 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
17998 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
18000 Sync from coreutils.
18002 2006-07-19 Mike Frysinger <vapier@gentoo.org>
18004 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
18005 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
18007 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
18009 * modules/restrict: Remove; no longer needed now that we assume
18010 Autoconf 2.59 or later.
18011 * MODULES.html.sh: Remove 'restrict'.
18012 * modules/argp (Depends-on): Remove 'restrict'.
18013 * modules/base64 (Depends-on): Likewise.
18014 * modules/gc (Depends-on): Likewise.
18015 * modules/getaddrinfo (Depends-on): Likewise.
18016 * modules/glob (Depends-on): Likewise.
18017 * modules/inet_ntop (Depends-on): Likewise.
18018 * modules/inet_pton (Depends-on): Likewise.
18019 * modules/memxor (Depends-on): Likewise.
18020 * modules/regex (Depends-on): Likewise.
18021 * modules/strtok_r (Depends-on): Likewise.
18022 * modules/time_r (Depends-on): Likewise.
18024 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
18026 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
18027 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
18028 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
18029 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
18030 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18031 * m4/memxor.m4 (gl_MEMXOR): Likewise.
18032 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
18033 gl_C_RESTRICT replaced by AC_C_RESTRICT.
18035 Merge from coreutils.
18036 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
18037 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
18038 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18039 * m4/time_r.m4 (gl_TIME_R): Likewise.
18041 2006-08-09 Karl Berry <karl@gnu.org>
18043 * config/srclist.txt: no more gettext-tools, per Bruno.
18045 2006-08-08 Eric Blake <ebb9@byu.net>
18047 * modules/verror: New module.
18048 * MODULES.html.sh: Document it.
18050 2006-08-08 Eric Blake <ebb9@byu.net>
18052 * lib/verror.h, lib/verror.c: New files.
18054 2006-08-08 Eric Blake <ebb9@byu.net>
18056 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
18057 verror_at_line output complies with GNU Coding Standards even when
18060 2006-08-07 Bruno Haible <bruno@clisp.org>
18062 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
18064 Reported by Ralf Wildenhues.
18066 2006-08-07 Bruno Haible <bruno@clisp.org>
18068 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
18069 in an AC_DEFUN. Needed so that the autoconf snippets can use
18072 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18074 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18075 Initialize pkgdata_DATA.
18076 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
18079 2006-08-06 Eric Blake <ebb9@byu.net>
18081 * lib/error.h: Fold in some upstream changes from glibc.
18082 * lib/error.c: Likewise.
18084 2006-08-04 Bruno Haible <bruno@clisp.org>
18086 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18087 Make the mostlyclean-local rule depend on mostlyclean-generic.
18088 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
18090 2006-07-31 Bruno Haible <bruno@clisp.org>
18092 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
18093 <stdlib.h>, <string.h>.
18095 2006-07-30 Bruno Haible <bruno@clisp.org>
18097 * modules/readlink (License): Change to LGPL.
18099 2006-07-30 Bruno Haible <bruno@clisp.org>
18101 * modules/javaversion (Makefile.am): Distribute javaversion.java and
18102 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
18103 set PKGDATADIR to point to it.
18105 2006-07-30 Bruno Haible <bruno@clisp.org>
18107 * modules/csharpexec (configure.ac): Comment out macro invocation.
18108 * modules/javaexec (configure.ac): Likewise.
18109 * modules/javacomp-script (configure.ac): Likewise.
18111 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
18113 2006-07-30 Bruno Haible <bruno@clisp.org>
18115 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
18118 2006-07-30 Bruno Haible <bruno@clisp.org>
18120 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
18122 2006-07-30 Bruno Haible <bruno@clisp.org>
18124 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18125 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
18128 2006-07-29 Bruno Haible <bruno@clisp.org>
18130 Make it possible for gnulib-tool to work with locally modified or
18131 augmented gnulib repositories.
18132 * gnulib-tool (func_usage): Document --local-dir option.
18133 (local_gnulib_dir): New variable.
18134 Handle --local-dir option.
18135 (func_lookup_file): New function.
18136 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
18137 (func_get_description, func_get_filelist, func_get_description,
18138 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
18139 func_get_automake_snippet, func_get_include_directive,
18140 func_get_license, func_get_maintainer): Use func_lookup_file.
18141 (func_import, func_create_testdir): Use func_lookup_file.
18143 2006-07-29 Bruno Haible <bruno@clisp.org>
18145 * modules/setenv (Depends-on): Add unistd.
18147 2006-07-29 Bruno Haible <bruno@clisp.org>
18149 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
18151 2006-07-29 Bruno Haible <bruno@clisp.org>
18153 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
18155 2006-07-29 Bruno Haible <bruno@clisp.org>
18157 * gnulib-tool (import, update): If there is no Makefile.am, look at
18158 aclocal.m4, instead of bailing out.
18160 2006-07-29 Bruno Haible <bruno@clisp.org>
18162 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
18163 Categorize the options by when they are useful.
18165 2006-07-29 Bruno Haible <bruno@clisp.org>
18167 * gnulib-tool (func_usage): Document option --no-libtool.
18168 Handle option --no-libtool.
18169 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
18170 for changed semantics of $libtool variable.
18171 (func_import): Likewise. If libtool is not used, show this through
18172 an option --no-libtool.
18173 (func_create_testdir): Update.
18175 2006-07-29 Bruno Haible <bruno@clisp.org>
18177 * gnulib-tool (func_import): Extend error message about missing
18180 2006-07-29 Bruno Haible <bruno@clisp.org>
18182 * gnulib-tool (func_import): Don't create the $docbase directory if
18183 there is no file to store there.
18185 2006-07-29 Bruno Haible <bruno@clisp.org>
18187 * gnulib-tool (autoconf_minversion): If a --dir option is given and
18188 relevant, look for configure.ac there, not in the current directory.
18189 Also use a simple search for AC_PREREQ, not "autoconf --trace".
18191 2006-07-29 Bruno Haible <bruno@clisp.org>
18193 * gnulib-tool (SORT): New variable.
18194 (func_usage): Undocument --assume-autoconf option.
18195 Remove --assume-autoconf option handling.
18196 (autoconf_minversion): Determine from the contents of configure.ac.
18197 (func_import): Remove autoconf_minversion handling.
18198 Suggested by Eric Blake.
18200 2006-07-29 Bruno Haible <bruno@clisp.org>
18202 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
18204 2006-07-29 Bruno Haible <bruno@clisp.org>
18206 * config/srclist.txt (*setenv.[ch]): Remove rules.
18208 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18210 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
18212 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18214 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
18217 2006-07-28 Simon Josefsson <jas@extundo.com>
18219 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
18220 * modules/inet_pton (Depends-on): Likewise.
18222 2006-07-28 Simon Josefsson <jas@extundo.com>
18224 * m4/netinet_in_h.m4: New file.
18226 2006-07-28 Simon Josefsson <jas@extundo.com>
18228 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
18231 2006-07-28 Simon Josefsson <jas@extundo.com>
18233 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
18236 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
18238 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
18239 setgid on directories only if they set these bits.
18240 * lib/modechange.h: Remove obsolete comment about masks.
18242 2006-07-28 Eric Blake <ebb9@byu.net>
18244 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
18247 2006-07-28 Bruno Haible <bruno@clisp.org>
18249 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
18251 2006-07-28 Bruno Haible <bruno@clisp.org>
18253 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
18255 2006-07-28 Bruno Haible <bruno@clisp.org>
18257 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
18258 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
18260 Avoids link error on FreeBSD 4.x.
18261 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18263 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
18265 * lib/mbswidth.c (iswcntrl): Likewise.
18267 2006-07-27 Bruno Haible <bruno@clisp.org>
18269 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
18272 2006-07-27 Bruno Haible <bruno@clisp.org>
18274 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
18275 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
18278 2006-07-26 Eric Blake <ebb9@byu.net>
18280 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
18282 2006-07-26 Eric Blake <ebb9@byu.net>
18284 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
18285 like mingw that lack mkstemp.
18286 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
18287 avoid compilation warning on mingw.
18289 2006-07-26 Bruno Haible <bruno@clisp.org>
18291 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
18292 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
18293 INT_FAST*_MIN, INTPTR_MIN.
18295 2006-07-25 Bruno Haible <bruno@clisp.org>
18297 * modules/version-etc (Depends-on): Add stdarg.
18299 2006-07-25 Bruno Haible <bruno@clisp.org>
18301 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
18304 2006-07-25 Bruno Haible <bruno@clisp.org>
18306 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
18307 defined in <stdarg.h> or config.h.
18309 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
18311 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
18312 (gl_STDIO_SAFER): Remove.
18314 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
18316 * MODULES.html.sh (File stream based Input/Output):
18317 Add fopen-safer, tmpfile-safer; remove stdio-safer.
18318 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
18319 * modules/fopen-safer, modules/tmpfile-safer: New files.
18320 * modules/stdio-safer: Remove.
18322 2006-07-24 Bruno Haible <bruno@clisp.org>
18324 * modules/tmpdir: New file.
18325 * MODULES.html.sh (File system functions): Add it.
18327 2006-07-24 Bruno Haible <bruno@clisp.org>
18329 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
18330 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
18332 2006-07-24 Bruno Haible <bruno@clisp.org>
18334 * modules/clean-temp: New file.
18336 2006-07-24 Bruno Haible <bruno@clisp.org>
18338 * m4/tmpdir.m4: New file, from GNU gettext.
18340 2006-07-24 Bruno Haible <bruno@clisp.org>
18342 * lib/tmpdir.h: New file, from GNU gettext.
18343 * lib/tmpdir.c: New file, from GNU gettext.
18345 2006-07-24 Bruno Haible <bruno@clisp.org>
18347 * lib/clean-temp.h: New file, from GNU gettext.
18348 * lib/clean-temp.c: New file, from GNU gettext.
18350 2006-07-23 Eric Blake <ebb9@byu.net>
18352 * modules/stdio-safer (Files): Add tmpfile-safer.c.
18353 (Depends-on): Add binary-io.
18355 2006-07-23 Eric Blake <ebb9@byu.net>
18357 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
18359 2006-07-23 Eric Blake <ebb9@byu.net>
18361 * lib/tmpfile-safer.c: New file.
18362 * lib/stdio-safer.h (fopen_safer): Add prototype.
18363 * lib/stdio--.h (tmpfile): Make safer.
18365 2006-07-23 Bruno Haible <bruno@clisp.org>
18367 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
18368 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
18369 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
18370 gl_linked_remove_at): Use it.
18372 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18373 and Simon Josefsson <jas@extundo.com>
18375 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
18377 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
18379 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
18381 * modules/close-stream: New file.
18382 * modules/closeout (Description): Make it clear that it exits
18383 with a diagnostic on error.
18384 (Depends-on): Add close-stream. Remove fpending, stdbool.
18385 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
18387 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
18389 * m4/close-stream.m4: New file.
18391 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
18393 * lib/close-stream.c, lib/close-stream.h: New files.
18395 2006-07-22 Bruno Haible <bruno@clisp.org>
18397 Merge from GNU gettext 0.15.
18399 2006-05-01 Bruno Haible <bruno@clisp.org>
18401 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
18403 2006-07-22 Bruno Haible <bruno@clisp.org>
18405 * modules/javaversion: New file.
18406 * MODULES.html.sh (Java): Add javaversion.
18408 2006-03-12 Bruno Haible <bruno@clisp.org>
18410 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
18412 2005-12-04 Bruno Haible <bruno@clisp.org>
18414 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
18417 2006-06-21 Bruno Haible <bruno@clisp.org>
18419 Avoid warnings from recent versions of mcs.
18420 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
18421 -o, -L, -r any more. Use options documented since mcs-1.0
18422 instead. Similarly for -g.
18424 2005-12-04 Bruno Haible <bruno@clisp.org>
18426 * build-aux/csharpcomp.sh.in: Suffix for resources is
18427 .resources, not .resource.
18429 2005-07-09 Bruno Haible <bruno@clisp.org>
18431 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
18433 Reported by Mark Junker <mjscod@gmx.de>.
18435 2006-07-22 Bruno Haible <bruno@clisp.org>
18437 * modules/gettext: Upgrade to gettext-0.15.
18438 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
18440 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
18442 2006-07-22 Bruno Haible <bruno@clisp.org>
18444 Merge from GNU gettext 0.15.
18446 2006-03-25 Bruno Haible <bruno@clisp.org>
18448 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
18450 2006-07-21 Bruno Haible <bruno@clisp.org>
18452 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
18455 2006-05-09 Bruno Haible <bruno@clisp.org>
18457 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
18458 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
18459 for the conftestver execution.
18461 2006-05-01 Bruno Haible <bruno@clisp.org>
18463 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
18464 optional target-version argument. Verify that the compiler
18465 groks source of the specified source-version, or add -source
18466 option as necessary. Verify that the compiler produces
18467 bytecode in the specified target-version, or add -target and
18468 -source options as necessary. Make the result of the test
18469 available as variable CONF_JAVAC. Also log error output in
18472 2006-03-11 Bruno Haible <bruno@clisp.org>
18474 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
18476 2006-05-09 Bruno Haible <bruno@clisp.org>
18478 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
18479 CLASSPATH_SEPARATOR to a semicolon.
18481 2006-03-12 Bruno Haible <bruno@clisp.org>
18483 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
18484 available as variable CONF_JAVA, for subsequent autoconf
18485 tests. Also log error output in config.log.
18487 2006-07-19 Bruno Haible <bruno@clisp.org>
18489 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
18490 that getline works on glibc2 systems. Needed to avoid trouble
18492 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
18494 2005-12-04 Bruno Haible <bruno@clisp.org>
18496 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
18497 launcher (untested).
18499 2005-12-04 Bruno Haible <bruno@clisp.org>
18501 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
18503 2006-07-22 Bruno Haible <bruno@clisp.org>
18505 * gettext.m4: Update from GNU gettext-0.15.
18506 * nls.m4: Likewise.
18508 * inttypes-pri.m4: Likewise.
18509 * inttypes-h.m4: Renamed from inttypes.m4.
18510 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
18512 2006-07-22 Bruno Haible <bruno@clisp.org>
18514 Merge from GNU gettext 0.15.
18516 2005-07-05 Bruno Haible <bruno@clisp.org>
18518 * printf-args.c (printf_fetchargs): Work around broken
18519 definition of wint_t on mingw.
18521 2005-02-12 Bruno Haible <bruno@clisp.org>
18523 * xallocsa.h: Add extern "C" for C++.
18525 2006-05-17 Bruno Haible <bruno@clisp.org>
18527 Cygwin portability.
18528 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
18530 2006-04-30 Bruno Haible <bruno@clisp.org>
18532 * progreloc.c: Include <mach-o/dyld.h> if available.
18533 (find_executable): Use _NSGetExecutablePath when possible.
18535 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
18537 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
18540 2005-12-29 Bruno Haible <bruno@clisp.org>
18542 * progreloc.c (set_program_name_and_installdir): Fix
18545 2005-12-04 Bruno Haible <bruno@clisp.org>
18547 Cygwin portability.
18548 * progreloc.c: Include <windows.h> also on Cygwin.
18549 (find_executable): Add support for Cygwin.
18550 (set_program_name_and_installdir): Handle also platforms with
18553 2006-07-11 Bruno Haible <bruno@clisp.org>
18555 * javacomp.c: Fix a comment.
18556 Reported by Jim Meyering.
18558 2006-04-30 Bruno Haible <bruno@clisp.org>
18560 * javacomp.h (compile_java_class): Add source_version,
18561 target_version arguments.
18562 * javacomp.c: Rewritten to choose only a compiler that
18563 respects the specified source_version and target_version.
18565 2006-06-27 Bruno Haible <bruno@clisp.org>
18567 Assume correct S_ISDIR macro.
18568 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
18570 2006-07-22 Bruno Haible <bruno@clisp.org>
18572 * javaversion.h: New file, from GNU gettext.
18573 * javaversion.c: New file, from GNU gettext.
18574 * javaversion.java: New file, from GNU gettext.
18575 * javaversion.class: New file, from GNU gettext.
18577 2006-05-17 Bruno Haible <bruno@clisp.org>
18579 Cygwin portability.
18580 * javaexec.c (execute_java_class): Test for jview program
18583 2006-04-09 Bruno Haible <bruno@clisp.org>
18585 * fatal-signal.c: Don't include string.h.
18586 (at_fatal_signal): Use a copying loop instead of memcpy.
18588 2005-12-04 Bruno Haible <bruno@clisp.org>
18590 * csharpexec.c: Add support for 'clix' launcher (untested).
18591 (execute_csharp_using_sscli): New function.
18592 (execute_csharp_program): Call it.
18594 2006-06-21 Bruno Haible <bruno@clisp.org>
18596 Avoid warnings from recent versions of mcs.
18597 * csharpcomp.c (compile_csharp_using_mono): Don't use options
18598 -o, -L, -r any more. Use options documented since mcs-1.0
18599 instead. Similarly for -g.
18601 2005-07-09 Bruno Haible <bruno@clisp.org>
18603 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
18605 Reported by Mark Junker <mjscod@gmx.de>.
18607 2006-06-17 Bruno Haible <bruno@clisp.org>
18609 * config.charset: Update for NetBSD 3.0.
18611 2006-05-17 Bruno Haible <bruno@clisp.org>
18613 Cygwin portability.
18614 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
18616 2006-05-16 Bruno Haible <bruno@clisp.org>
18618 * localcharset.c [CYGWIN]: Include <windows.h>.
18619 (get_charset_aliases): For Cygwin, return the same CPxxx
18620 aliases list as under WIN32.
18621 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
18622 the environment variables. Fall back to GetACP().
18624 2006-04-05 Bruno Haible <bruno@clisp.org>
18626 * config.charset: Update Juan Manuel Guerrero's address.
18628 2005-02-12 Bruno Haible <bruno@clisp.org>
18630 * allocsa.h: Add extern "C" for C++.
18632 2005-02-10 Bruno Haible <bruno@clisp.org>
18634 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
18635 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
18637 2006-07-22 Bruno Haible <bruno@clisp.org>
18639 * gettext.h: Update to GNU gettext-0.15.
18641 2006-07-22 Bruno Haible <bruno@clisp.org>
18643 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
18644 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
18645 lib-prefix.m4, longdouble.m4, ssize_t.m4.
18647 2006-07-21 Eric Blake <ebb9@byu.net>
18649 * modules/stdlib-safer: New file.
18650 * MODULES.html.sh (File stream based Input/Output): Add
18653 2006-07-21 Eric Blake <ebb9@byu.net>
18655 * lib/stdlib-safer.h: New file from coreutils, required by
18658 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
18660 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
18662 2006-07-20 Bruno Haible <bruno@clisp.org>
18664 * gnulib-tool: Recognize new option --assume-autoconf.
18665 (autoconf_minversion): New variable.
18666 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
18668 2006-07-20 Bruno Haible <bruno@clisp.org>
18670 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
18672 2006-07-19 Derek R. Price <derek@ximbiot.com>
18674 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
18675 Reindent and repaginate.
18677 2006-07-19 Derek Price <derek@ximbiot.com>
18679 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
18682 2006-07-17 Bruno Haible <bruno@clisp.org>
18684 * modules/list: New file.
18685 * modules/array-list: New file.
18686 * modules/carray-list, modules/carray-list-tests: New files.
18687 * modules/linked-list, modules/linked-list-tests: New files.
18688 * modules/avltree-list, modules/avltree-list-tests: New files.
18689 * modules/rbtree-list, modules/rbtree-list-tests: New files.
18690 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
18691 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
18692 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
18693 * modules/oset: New file.
18694 * modules/array-oset: New file.
18695 * modules/avltree-oset, modules/avltree-oset-tests: New files.
18696 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
18697 * tests/test-carray_list.c: New file.
18698 * tests/test-linked_list.c: New file.
18699 * tests/test-avltree_list.c: New file.
18700 * tests/test-rbtree_list.c: New file.
18701 * tests/test-linkedhash_list.c: New file.
18702 * tests/test-avltreehash_list.c: New file.
18703 * tests/test-rbtreehash_list.c: New file.
18704 * tests/test-avltree_oset.c: New file.
18705 * tests/test-rbtree_oset.c: New file.
18706 * MODULES.html.sh (Container data structures): New section.
18708 2006-07-17 Bruno Haible <bruno@clisp.org>
18710 * m4/gl_list.m4: New file.
18712 2006-07-17 Bruno Haible <bruno@clisp.org>
18714 * lib/gl_list.h: New file.
18715 * lib/gl_list.c: New file.
18716 * lib/gl_array_list.h: New file.
18717 * lib/gl_array_list.c: New file.
18718 * lib/gl_carray_list.h: New file.
18719 * lib/gl_carray_list.c: New file.
18720 * lib/gl_linked_list.h: New file.
18721 * lib/gl_linked_list.c: New file.
18722 * lib/gl_anylinked_list1.h: New file.
18723 * lib/gl_anylinked_list2.h: New file.
18724 * lib/gl_avltree_list.h: New file.
18725 * lib/gl_avltree_list.c: New file.
18726 * lib/gl_anyavltree_list1.h: New file.
18727 * lib/gl_anyavltree_list2.h: New file.
18728 * lib/gl_rbtree_list.h: New file.
18729 * lib/gl_rbtree_list.c: New file.
18730 * lib/gl_anyrbtree_list1.h: New file.
18731 * lib/gl_anyrbtree_list2.h: New file.
18732 * lib/gl_anytree_list1.h: New file.
18733 * lib/gl_anytree_list2.h: New file.
18734 * lib/gl_linkedhash_list.h: New file.
18735 * lib/gl_linkedhash_list.c: New file.
18736 * lib/gl_anyhash_list1.h: New file.
18737 * lib/gl_anyhash_list2.h: New file.
18738 * lib/gl_avltreehash_list.h: New file.
18739 * lib/gl_avltreehash_list.c: New file.
18740 * lib/gl_rbtreehash_list.h: New file.
18741 * lib/gl_rbtreehash_list.c: New file.
18742 * lib/gl_anytreehash_list1.h: New file.
18743 * lib/gl_anytreehash_list2.h: New file.
18745 * lib/gl_oset.h: New file.
18746 * lib/gl_oset.c: New file.
18747 * lib/gl_array_oset.h: New file.
18748 * lib/gl_array_oset.c: New file.
18749 * lib/gl_avltree_oset.h: New file.
18750 * lib/gl_avltree_oset.c: New file.
18751 * lib/gl_rbtree_oset.h: New file.
18752 * lib/gl_rbtree_oset.c: New file.
18753 * lib/gl_anytree_oset.h: New file.
18755 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
18757 * m4/mkancesdirs.m4: New file.
18758 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
18759 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
18760 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
18763 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
18765 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
18766 * lib/mkancesdirs.h: New files.
18767 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
18768 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
18769 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
18770 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
18771 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
18772 callers changed. Revamp internals significantly, by not
18773 attempting to create directories that are temporarily more
18774 permissive than the final results. Do not attempt to use
18775 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
18776 This removes some race conditions, fixes some bugs, and simplifies
18777 things. Use new dirchownmod function to do owner and mode changes.
18778 * lib/mkdir-p.h: Likewise.
18779 * lib/modechange.c (octal_to_mode): New function.
18780 (struct mode_change): New member mentioned.
18781 (make_node_op_equals): New arg mentioned. All callers changed.
18782 (mode_compile): Keep track of which mode bits the user has explicitly
18784 (mode_adjust): New arg DIR, so that we implement the X op correctly.
18785 New arg PMODE_BITS, to keep track of which mode bits the user
18786 mentioned; it treats S_ISUID and S_ISGID speciall.
18787 All callers changed.
18788 * lib/modechange.h: Likewise.
18790 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
18792 * MODULES.html.sh: Add mkancestors.
18793 * modules/mkancesdirs: New module.
18794 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
18795 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
18796 The chdir-safer and afs files are now orphans; I'll remove them
18797 unless someone speaks up.
18798 Add lib/dirchownmod.c, lib/dirchownmod.h.
18799 (Depends-on): Remove alloca, chown, save-cwd, dirname.
18800 Add lchown, mkancesdirs.
18801 (Maintainer): Add self.
18803 2006-07-15 Karl Berry <karl@gnu.org>
18805 * gnulib-tool: help message wording/arrangement.
18807 2006-07-14 Simon Josefsson <jas@extundo.com>
18809 * doc/gnulib.texi (Libtool and Windows): New section.
18811 2006-07-12 Simon Josefsson <jas@extundo.com>
18813 * modules/gendocs (License): Fix license, approved by Karl.
18815 2006-07-12 Eric Blake <ebb9@byu.net>
18817 * MODULES.html.sh: Add gendocs.
18819 2006-07-11 Eric Blake <ebb9@byu.net>
18821 * modules/fdl: New module, to install doc/fdl.texi.
18822 * MODULES.html.sh: Add new section for documentation modules.
18823 * gnulib-tool: Avoid space-tab.
18824 (--doc-base): New option, to manage files from doc.
18826 2006-07-11 Eric Blake <ebb9@byu.net>
18828 * m4/absolute-header.m4: Fix comments to match recent change.
18830 2006-07-11 Eric Blake <ebb9@byu.net>
18832 * gnulib-tool: List --doc-base before --tests-base.
18834 2006-07-11 Derek R. Price <derek@ximbiot.com>
18836 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
18838 2006-07-11 Bruno Haible <bruno@clisp.org>
18840 * README: Mention where to put documentation.
18842 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18844 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
18846 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
18848 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
18851 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
18853 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
18854 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
18855 "no/such/file/stdint.h" when there is no such file, so that
18856 the resulting C code can be parsed by dodgy compilers.
18857 Problems reported by Bob Proulx.
18859 2006-07-10 Derek R. Price <derek@ximbiot.com>
18861 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
18862 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
18863 macros into the GNU _D_EXACT_NAMLEN.
18864 * lib/savedir.c: Likewise.
18865 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
18867 2006-07-10 Derek R. Price <derek@ximbiot.com>
18868 and Paul Eggert <eggert@cs.ucla.edu>
18870 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
18872 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
18873 macros into the GNU _D_EXACT_NAMLEN.
18875 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
18877 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
18878 around the absolute name, to work around a problem with the HP-UX
18879 11.23 native C compiler, reported by Bob Proulx.
18881 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
18883 * doc/maintain.texi, make-stds.texi: Sync from
18884 <http://savannah.gnu.org/projects/gnustandards>.
18886 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
18888 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
18890 2006-07-09 Jim Meyering <jim@meyering.net>
18892 * m4/glob.m4: Remove a doubled word in a comment.
18894 2006-07-09 Jim Meyering <jim@meyering.net>
18896 * lib/argp-pv.c: Remove a doubled word in a comment.
18897 * lib/check-version.c (check_version): Likewise.
18898 * lib/javacomp.c (compile_java_class): Likewise.
18900 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
18902 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
18903 for the benefit of people using Autoconf 2.60. If you want to
18904 support older Autoconf versions you can copy m4/onceonly_2_57.m4
18905 (or m4/onceonly.m4, if pre-2.57) manually.
18907 2006-07-08 Jim Meyering <jim@meyering.net>
18909 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
18911 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
18912 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
18915 2006-07-08 Jim Meyering <jim@meyering.net>
18917 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
18919 2006-07-07 Simon Josefsson <jas@extundo.com>
18921 * tests/test-crc.c: Change expected crc value, the test vector
18922 were probably computed using the old broken crc.c?
18924 2006-07-06 Simon Josefsson <jas@extundo.com>
18926 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
18927 now the canonical place for the M4 file).
18929 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
18930 from the sys_socket dependency now.
18932 * modules/inet_pton (Files): Ditto.
18934 * modules/inet_ntop (Files): Ditto.
18936 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
18938 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
18939 not gl_PREREQ_GETUSERSHELL.
18941 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18943 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
18944 with only one argument, for Autoconf 2.60.
18945 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
18946 expand to nothing, so add a shell command to avoid syntax error.
18947 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
18949 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18951 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
18953 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
18955 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
18956 no longer needed. Check for isblank decl.
18957 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
18958 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
18961 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
18963 * lib/getloadavg.c: Use __VMS, not VMS.
18964 * lib/getopt.c: Likewise.
18965 * lib/getpagesize.h: Likewise.
18966 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
18967 and probably does not work.
18969 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
18971 * lib/.cppi-disable: Add wcwidth.
18972 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
18973 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
18974 (ISGRAPH): Remove. All uses changed to isgraph.
18975 (FOLD) [!defined _LIBC]: Remove special case.
18976 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
18977 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
18979 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
18982 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
18984 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
18985 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
18986 brackets. Other minor changes to suppress some compiler
18989 2006-07-06 Derek R. Price <derek@ximbiot.com>
18990 and Paul Eggert <eggert@cs.ucla.edu>
18992 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
18993 of invoking obsolescent AC_HEADER_DIRENT macro.
18994 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18995 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
18996 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18997 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18998 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
18999 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19000 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
19001 * m4/readdir.m4: Remove; no longer needed.
19003 2006-07-06 Derek R. Price <derek@ximbiot.com>
19004 and Paul Eggert <eggert@cs.ucla.edu>
19006 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
19007 Don't worry about this obsolete case any more.
19008 (HAVE_DIR): Remove. All uses removed; we now assume you can read
19010 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
19011 worry about this obsolete case any more.
19012 * lib/fts.c: Likewise.
19013 * lib/getcwd.c: Likewise.
19014 * lib/glob.h: Likewise.
19015 * lib/savedir.c: Likewise.
19017 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
19019 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
19020 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
19021 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
19024 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19025 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
19026 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
19028 * m4/getdate.m4 (gl_GETDATE): Likewise.
19029 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
19030 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
19031 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19032 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19033 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
19034 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19035 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
19038 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
19040 * lib/memcasecmp.c: Include <limits.h>.
19041 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
19042 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
19043 Don't assume isdigit succeeds only on '0' through '9'.
19045 2006-07-05 Eric Blake <ebb9@byu.net>
19047 * modules/getaddrinfo (Depends-on): Add snprintf.
19049 2006-07-05 Eric Blake <ebb9@byu.net>
19051 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
19052 to avoid 'header present but could not be compiled' on cygwin.
19054 2006-07-05 Eric Blake <ebb9@byu.net>
19056 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
19057 missing from netdb.h.
19058 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
19060 2006-07-05 Derek R. Price <derek@ximbiot.com>
19062 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
19064 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
19065 * m4/getdate.m4 (gl_GETDATE): Likewise.
19066 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
19067 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
19068 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19069 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19070 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19072 2006-07-05 Derek R. Price <derek@ximbiot.com>
19074 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
19075 All uses of is_space replaced by isspace.
19076 * lib/exit.h: Don't talk about STDC_HEADERS.
19077 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
19078 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
19079 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
19080 replaced by isprint etc.
19081 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
19082 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
19083 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
19084 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
19085 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
19086 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
19088 2006-07-05 Bruno Haible <bruno@clisp.org>
19090 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
19091 the function exists, before testing against AIX.
19092 Reported by Martin Lambers <marlam@marlam.de>.
19094 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
19096 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
19097 From Mark D. Baushke.
19099 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
19101 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
19102 to the absolute name, not just one, to bypass Sun C 5.8's
19103 "warning: #include of /usr/include/... may be non-portable".
19105 2006-07-04 Eric Blake <ebb9@byu.net>
19107 * modules/dirname-tests: New test module.
19108 * tests/test-dirname.c: New file, replacing dirname.c
19109 TEST_DIRNAME section that was recently deleted.
19111 2006-07-04 Bruno Haible <bruno@clisp.org>
19113 Assume ANSI C header files and <ctype.h> functions.
19114 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
19115 (mbsnwidth): Use isprint, iscntrl instead.
19117 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
19119 Merge from coreutils.
19120 * MODULES.html.sh: Add xstrtold.
19121 * modules/xstrtold: New file.
19122 * modules/cycle-check (Files): Add lib/same-inode.h.
19123 * modules/dirname (Files): Add m4/double-slash-root.m4.
19124 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
19125 * modules/mkdir-p (Files): Add lib/same-inode.h.
19126 * modules/same (Files): Add lib/same-inode.h.
19128 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
19130 * m4/absolute-header.m4: Renamed from full-header-path.m4.
19131 This is to keep the terminology clean; POSIX talks about
19132 "absolute pathnames", not "full pathnames", but the GNU
19133 Coding Standards say to use "path" for something else;
19134 so use "absolute" to keep both sides happy.
19135 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
19136 Set gl_absolute_header, not gl_full_header_path.
19137 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
19138 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
19141 Merge from coreutils.
19143 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
19145 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
19146 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
19147 want to require the building of c-strtod.o.
19148 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
19149 needs -lm directly.
19150 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
19152 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
19154 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
19155 --as-needed option if available. Problem reported by Albert Chin in
19156 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
19157 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
19158 cc merely issues a bunch of annoying warnings for --as-needed
19159 (this problem was reported by Bob Proulx). Also, try linking with
19160 -lm to detect a bug in binutils 2.16 (this problem was reported
19161 by Ralf Wildenhues).
19163 2006-06-18 Jim Meyering <jim@meyering.net>
19165 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
19166 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
19168 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
19169 also check for glibc-2.4's abort-inducing bug.
19171 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
19172 Low-probability clean-up should be to use rmdir to get rid of
19173 the just-created directory, not unlink.
19175 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
19176 configure fail, and request a bug report to inform us about it.
19177 Add a comment that, barring reports to the contrary, in 2007 we'll
19178 assume ftruncate is universally available.
19180 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
19182 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
19184 2006-03-12 Jim Meyering <jim@meyering.net>
19186 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
19187 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
19188 * m4/same.m4 (gl_SAME): Likewise.
19189 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
19191 2006-03-11 Eric Blake <ebb9@byu.net>
19193 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
19194 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
19195 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
19196 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
19198 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
19200 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
19201 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
19202 reported by Mark D. Baushke, one in
19203 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
19205 Merge from coreutils.
19207 * lib/.cppi-disable: Add stdint_.h.
19208 * lib/.cvsignore: Add stdint.h.
19210 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
19212 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
19213 both double and long double versions.
19214 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
19215 * lib/xstrtold.c: New file.
19216 * lib/xstrtod.h (xstrtold): New decl.
19218 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
19220 * lib/filemode.c (setst): Remove.
19221 (strmode): Rewrite to avoid setst. This makes the code shorter,
19222 (arguably) clearer, and the generated code is a bit smaller on my
19223 Debian GNU/Linux stable x86 host.
19225 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
19227 * lib/filemode.c: Include "filemode.h" first, to test the interface.
19228 Assume that filemode.h includes sys/types.h and sys/stat.h.
19229 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
19230 (ftypelet): Reorder to put common cases first, for efficiency.
19231 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
19233 (strmode): Renamed from mode_string, and now stores 12 bytes instead
19234 of 10, for compatibility with FreeBSD. All callers changed.
19235 (filemodestring): Now stores 12 bytes instead of 10, and sets file
19236 types that can't be deduced solely from st_mode. First arg is now a
19238 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
19239 (strmode): Renamed from mode_string.
19240 (filemodestring): New decl.
19241 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
19242 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
19244 (S_ISPORT, S_ISWHT): New macros, if not already defined.
19246 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
19248 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
19249 fsusage.h now does that. Include fsusage.h first, to test interface.
19250 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
19251 at most one method (the old code could have generated decls that
19252 didn't conform to C89, not that this was ever exercised).
19253 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
19255 2006-03-19 Jim Meyering <jim@meyering.net>
19257 Work even in a chroot where d_ino values for entries in "/"
19258 don't match the stat.st_ino values for the same names.
19259 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
19260 number, iterate through all entries again, using lstat instead.
19261 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
19262 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
19264 * lib/getcwd.c (__getcwd): Clarify a comment.
19265 Use memcpy in place of a call to strcpy.
19267 2006-03-12 Jim Meyering <jim@meyering.net>
19269 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
19270 matches that of the current directory (which we're about to chdir ".."
19271 out of), then save the dev-ino of the parent, instead.
19273 * lib/same-inode.h (SAME_INODE): New file/macro.
19274 * lib/chdir-safer.c (SAME_INODE): Remove definition.
19275 Include "same-inode.h", instead.
19276 * lib/same.c: Likewise.
19277 * lib/cycle-check.h: Include "same-inode.h".
19278 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
19279 * lib/cycle-check.c (SAME_INODE): Remove definition.
19280 * lib/root-dev-ino.h: Include "same-inode.h".
19282 2006-03-11 Eric Blake <ebb9@byu.net>
19284 * lib/same.c (same_name): s/base_name/last_component/
19285 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
19286 * lib/filenamecat.c (file_name_concat): Likewise.
19288 2006-03-11 Eric Blake <ebb9@byu.net>,
19289 Paul Eggert <eggert@cs.ucla.edu>
19291 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
19292 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
19294 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
19295 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
19296 (last_component): New method.
19297 * lib/dirname.c (dir_len): Determine when drive letters need a
19298 subsequent slash. Preserve // when it is special.
19299 (dir_name): Don't append dot when drive letter is absolute.
19300 [TEST_DIRNAME]: Move into a full-blown gnulib test.
19301 * lib/basename.c (base_name): New semantics - malloc the result.
19302 Preserve // when it is special. Preserve relative files that look
19303 like drive letters.
19304 (base_len): Preserve // when it is special.
19305 (last_component): New method, similar to old base_name semantics.
19306 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
19307 base_name. Strip redundant slashes from ///.
19309 2006-07-03 Jim Meyering <jim@meyering.net>
19311 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
19312 macro is used before the first cycle_check call.
19314 2006-07-03 Eric Blake <ebb9@byu.net>
19316 * modules/dirname (Depends-on): Add xstrndup.
19318 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
19320 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
19321 test cases, so that config.log is a bit easier to follow.
19323 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
19325 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
19326 both are 64 bits, since this seems to be the tradition, and this
19327 prevents gcc -Wformat from warning about usages with PRIuMAX. If
19328 we ever run into a host that prefers long long to long in this
19329 case, we'll need another configure-time test. Problem reported by
19332 2006-07-02 Eric Blake <ebb9@byu.net>
19334 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
19336 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
19338 * modules/inttypes (Depends-on): No longer depends on stdint.
19339 * modules/stdint (Description): Say more about assumptions.
19340 Say that the fast types might differ. Say macros are used.
19341 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
19342 (Makefile.am): Revise list of substituted symbols to match
19344 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
19345 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
19346 * tests/test-stdint.c (verify_same_types)
19347 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
19348 the code conforms to C99/C89.
19349 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
19350 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
19352 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
19354 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
19355 but fix a bug, by requiring at least 64 bits.
19356 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
19357 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
19358 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
19359 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
19361 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
19362 changes. Make 2.59 a prerequisite. Check and substitute for
19363 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
19364 inttypes.h. Do not use special include files; just use the
19365 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
19366 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
19367 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
19368 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
19369 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
19370 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
19371 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
19372 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
19373 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
19374 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
19375 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
19376 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
19377 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
19378 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
19379 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
19380 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
19381 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
19382 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
19383 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
19384 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
19385 WINT_MAX. Check for C99 conformance more strictly, by detecting
19386 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
19387 not check for things that C99 does not require, e.g., int8_t. If
19388 a test isn't needed unless <stdint.h> isn't working, and is
19389 unlikely to be needed for any other reason, then don't do it
19390 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
19391 size_t, since we assume C89 freestanding at least. Do not check
19392 for sig_atomic_t, wchar_t, or wint_t, since the code now does
19393 the right thing even if the types are not defined. Instead use:
19394 (gl_STDINT_TYPE_PROPERTIES): New macro.
19395 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
19396 testing whether <sys/types.h> clashes, as Autoconf does this for
19397 us now. All uses removed.
19398 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
19399 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
19400 (gl_CHECK_TYPE_SAME):
19401 Remove; no longer needed.
19402 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
19403 exists, since we'll return 0 anyway in that case.
19404 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
19406 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
19408 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
19409 possible collision with system files.
19410 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
19411 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
19412 WCHAR_MIN and WCHAR_MAX in this case.
19413 (<stddef.h>): Do not include; no longer needed.
19414 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
19415 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
19416 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
19417 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
19418 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
19419 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
19420 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
19421 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
19422 !defined(__c99))]: Include in this case too, since it's harmless
19424 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
19425 dangerous to do so.
19426 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
19427 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
19428 (_STDINT_MIN, _STDINT_MAX): New macros.
19429 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
19430 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
19431 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
19432 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
19433 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
19434 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
19435 macros, not typedefs; this simplifies things quite a bit.
19436 Use long int for all types narrower than int64_t.
19437 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
19438 Define in terms of long long int or int64_t or long int,
19439 not int64_t or int32_t. This saves some compile-time testing.
19440 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
19441 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
19442 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
19443 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
19444 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
19445 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
19446 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
19447 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
19448 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
19449 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
19450 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
19451 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
19452 undef any previous version and define our own version, for
19453 simplicity and consistency with the new macros for types.
19454 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
19455 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
19456 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
19457 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
19458 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
19459 @WINT_T_SUFFIX@ to keep things simple here.
19460 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
19461 Simplify by assuming typical 8/16/32/64 host, since we're
19462 already doing that elsewhere anyway.
19463 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
19464 and assume long long int is 64 bits if available. This
19465 speeds up 'configure'.
19467 2006-07-01 Eric Blake <ebb9@byu.net>
19469 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
19470 Reported by Andreas Buening.
19472 2006-07-01 Eric Blake <ebb9@byu.net>
19474 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
19476 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
19478 * lib/getaddrinfo.c: fixed typo
19480 2006-06-29 Jim Meyering <jim@meyering.net>
19482 * modules/strftime (Maintainer): Add my name, since with the
19483 FPRINTFTIME changes strftime.c has forked from glibc.
19485 2006-06-29 Eric Blake <ebb9@byu.net>
19487 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
19489 2006-06-29 Eric Blake <ebb9@byu.net>
19491 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
19493 2006-06-29 Eric Blake <ebb9@byu.net>
19495 * lib/stat_.h: New file.
19497 2006-06-29 Eric Blake <ebb9@byu.net>
19499 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
19500 unused static function.
19502 2006-06-29 Eric Blake <ebb9@byu.net>
19504 * doc/functions.texi (Function Portability): Document missing lstat
19507 2006-06-29 Eric Blake <ebb9@byu.net>
19509 * MODULES.html.sh: Add sys_stat.
19510 * modules/sys_stat: New module.
19511 * modules/mkstemp (Depends-on): Add sys_stat.
19513 2006-06-29 Derek R. Price <derek@ximbiot.com>
19515 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
19517 2006-06-29 Derek R. Price <derek@ximbiot.com>
19519 * m4/c-bs-a.m4: Removed.
19521 2006-06-29 Derek R. Price <derek@ximbiot.com>
19523 * lib/strftime.c: Assume strftime() exists.
19525 2006-06-29 Derek Price <derek@ximbiot.com>
19527 * modules/c-bs-a: Removed - \a is C89.
19528 * MODULES.html.sh: Remove c-bs-a.
19530 2006-06-29 Bruno Haible <bruno@clisp.org>
19532 * modules/wcwidth (License): Change to LGPL.
19534 2006-06-28 Simon Josefsson <jas@extundo.com>
19536 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
19539 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
19542 2006-06-28 Simon Josefsson <jas@extundo.com>
19544 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
19546 2006-06-28 Simon Josefsson <jas@extundo.com>
19548 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
19549 functions there. It will succeed on Windows XP, but on Windows
19550 2000 and (presumably) earlier, it will fail, and use the internal
19552 (use_win32_p): New function.
19553 (getaddrinfo): Use strtoul on servname, to support numeric ports.
19554 Support AI_NUMERICSERV to disable getservbyname.
19555 (getnameinfo): New function, only supports
19556 NI_NUMERICHOST|NI_NUMERICSERV for now.
19558 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
19559 only have some of them. Add AI_NUMERICSERV. Add prototype for
19562 2006-06-28 Eric Blake <ebb9@byu.net>
19564 * modules/wcwidth: New file.
19565 * modules/mbchar (Depends-on): Add wcwidth.
19566 * modules/mbswidth (Depends-on): Add wcwidth.
19567 * MODULES.html.sh: Add wcwidth.
19569 2006-06-28 Eric Blake <ebb9@byu.net>
19571 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
19572 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
19574 2006-06-28 Eric Blake <ebb9@byu.net>
19576 * lib/xvasprintf.h: Fix comments.
19578 2006-06-28 Eric Blake <ebb9@byu.net>
19580 * lib/mbchar.h (wcwidth): Include wcwidth.h.
19581 * lib/mbswidth.c (wcwidth): Move from here...
19582 * lib/wcwidth.h: ...to this new file.
19584 2006-06-28 Derek R. Price <derek@ximbiot.com>
19586 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
19588 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
19590 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
19592 2006-06-28 Derek R. Price <derek@ximbiot.com>
19594 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
19595 Autoconf 2.60 says this stuff was obsolete.
19597 2006-06-28 Bruno Haible <bruno@clisp.org>
19599 * modules/wcwidth (Files): Add m4/wchar_t.m4.
19601 2006-06-28 Bruno Haible <bruno@clisp.org>
19603 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
19606 2006-06-28 Bruno Haible <bruno@clisp.org>
19608 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
19609 declaration for wcwidth.
19610 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
19612 2006-06-28 Bruno Haible <bruno@clisp.org>
19614 * lib/mkdtemp.c [MINGW]: Include <io.h>.
19615 (mkdir): Define using _mkdir.
19617 2006-06-28 Bruno Haible <bruno@clisp.org>
19619 * lib/getaddrinfo.h: Fix POSIX URL.
19620 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
19622 (use_win32_p): Make static.
19623 (getaddrinfo): Reject service name if it is empty or does not consist
19624 solely of decimal digits, or if its value is > 65535.
19625 (getnameinfo): Remove useless casts.
19627 2006-06-27 Simon Josefsson <jas@extundo.com>
19629 * modules/sys_select: New file, suggested by Bruno Haible, Paul
19630 Eggert and Martin Lambers.
19632 2006-06-27 Simon Josefsson <jas@extundo.com>
19634 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
19635 Eggert and Martin Lambers.
19637 2006-06-27 Bruno Haible <bruno@clisp.org>
19639 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
19640 result to 0, not to empty.
19641 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
19643 2006-06-27 Bruno Haible <bruno@clisp.org>
19645 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
19647 2006-06-26 Simon Josefsson <jas@extundo.com>
19649 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
19652 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
19654 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
19655 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
19656 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
19658 2006-06-26 Mark D. Baushke <mdb@gnu.org>
19660 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
19662 2006-06-26 Bruno Haible <bruno@clisp.org>
19664 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
19666 2006-06-26 Bruno Haible <bruno@clisp.org>
19668 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
19670 2006-06-26 Bruno Haible <bruno@clisp.org>
19672 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
19673 SGI C compiler in pre-C99 mode.
19674 Suggested by Mark D. Baushke and Larry Jones.
19676 2006-06-26 Bruno Haible <bruno@clisp.org>
19678 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
19680 Reported by Mark D. Baushke and Larry Jones.
19682 2006-06-26 Bruno Haible <bruno@clisp.org>
19684 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
19686 Suggested by Mark D. Baushke and Larry Jones.
19688 2006-06-23 Simon Josefsson <jas@extundo.com>
19689 Bruno Haible <bruno@clisp.org>
19691 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
19692 Emit mostlyclean-local rule.
19693 (func_emit_tests_Makefile_am): Likewise.
19694 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
19696 2006-06-23 Mark D. Baushke <mdb@gnu.org>
19698 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
19700 2006-06-23 Bruno Haible <bruno@clisp.org>
19702 * tests/test-stdint.c: Update to match ISO C 99 Technical
19705 2006-06-23 Bruno Haible <bruno@clisp.org>
19707 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
19709 2006-06-23 Bruno Haible <bruno@clisp.org>
19711 * lib/stdint_.h: Treat IRIX like OpenBSD.
19713 2006-06-23 Bruno Haible <bruno@clisp.org>
19715 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
19716 ISO C 99 Technical Corrigendum 1.
19718 2006-06-22 Simon Josefsson <jas@extundo.com>
19720 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
19723 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
19725 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
19726 needed. Some compiler complained about some of them. Problem reported
19728 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
19730 2006-06-21 Simon Josefsson <jas@extundo.com>
19732 * tests/test-getaddrinfo.c: New file.
19734 * modules/getaddrinfo-tests: New file.
19736 * MODULES.html.sh: Add inet_pton.
19738 * modules/inet_pton: New file.
19740 2006-06-21 Simon Josefsson <jas@extundo.com>
19742 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
19743 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
19744 of using the (limited) gnulib implementation on Windows XP.
19746 * m4/inet_pton.m4: New file.
19748 2006-06-21 Simon Josefsson <jas@extundo.com>
19750 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
19753 * lib/socket_.h: Don't define WINVER.
19755 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
19756 slightly modified to work in gnulib.
19758 2006-06-21 Simon Josefsson <jas@extundo.com>
19760 * doc/gnulib.texi (Windows sockets): Add.
19762 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
19764 * lib/read-file.c (fread_file): Start with buffer allocation of
19765 0 bytes rather than 1 byte; this simplifies the code.
19766 Don't invoke feof; it's not needed. Refactor to avoid duplicate
19767 code to free buffer and save/restore errno.
19768 (internal_read_file): Remove unused local.
19770 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
19772 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
19773 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
19774 Problem reported by Denis Excoffier in
19775 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
19777 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19779 * modules/sys_socket, modules/socklen: Include sys/types since
19780 FreeBSD 4.x's sys/socket.h needs it.
19782 2006-06-19 Simon Josefsson <jas@extundo.com>
19784 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
19786 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
19788 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
19790 2006-06-19 Bruno Haible <bruno@clisp.org>
19792 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
19793 and FULL_PATH_INTTYPES_H in angle brackets.
19794 Reported by Mark D. Baushke <mdb@gnu.org>.
19796 2006-06-17 Eric Blake <ebb9@byu.net>
19798 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
19801 2006-06-17 Bruno Haible <bruno@clisp.org>
19803 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
19806 2006-06-17 Bruno Haible <bruno@clisp.org>
19808 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
19809 whether errno is declared. Assume <errno.h> declares errno.
19811 2006-06-17 Bruno Haible <bruno@clisp.org>
19813 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
19815 2006-06-17 Bruno Haible <bruno@clisp.org>
19817 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
19818 problem on Solaris 2.5.1.
19820 2006-06-16 Eric Blake <ebb9@byu.net>
19822 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
19823 * lib/unicodeio.c [!defined errno]: Likewise.
19824 * lib/strtol.c [!defined errno]: Likewise.
19825 * lib/strtod.c [!defined errno]: Likewise.
19827 2006-06-15 Eric Blake <ebb9@byu.net>
19829 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
19831 2006-06-15 Eric Blake <ebb9@byu.net>
19833 * config/srclist.txt (ssize_t.m4): Lose sync.
19835 2006-06-15 Bruno Haible <bruno@clisp.org>
19837 * modules/stdint (Files): Include m4/full-header-path.m4,
19838 m4/size_max.m4, m4/wchar_t.m4.
19839 (Makefile.am): Many more substitutions.
19840 * modules/stdint-tests: New file.
19841 * tests/test-stdint.c: New file.
19843 2006-06-15 Bruno Haible <bruno@clisp.org>
19845 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
19846 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
19847 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
19848 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
19849 gl_CHECK_TYPE_SAME): New macros.
19851 2006-06-15 Bruno Haible <bruno@clisp.org>
19853 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
19855 2006-06-15 Bruno Haible <bruno@clisp.org>
19857 * lib/stdint_.h: Rewritten to be fully auto-configured.
19858 Fixes bug on HP-UX/IA64.
19860 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
19862 * lib/getdate.y (__attribute__): Don't define if already defined.
19863 Problem reported by Larry Jones.
19864 * lib/utimens.c (__attribute__): Likewise.
19866 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
19868 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
19869 reported by Andreas Schwab.
19871 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19872 Bruno Haible <bruno@clisp.org>
19874 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
19875 check for the declaration of strnlen and a run test that exposes the
19876 AIX 5.1 strnlen bug. In the failure case, #define strndup to
19879 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19880 Bruno Haible <bruno@clisp.org>
19882 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
19884 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19886 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
19887 compile test, for Tru64 4.0D.
19889 2006-05-28 Karl Berry <karl@gnu.org>
19891 * config/srclist.txt (printf-args.c): lose sync.
19893 2006-05-26 Martin Lambers <marlam@marlam.de>
19895 * lib/getpass.c: Updates the test for the native W32 API, and adds
19896 missing includes, thus fixing compilation warnings.
19898 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
19900 * lib/exclude.c (exclude_fnmatch): New function.
19901 (excluded_file_name): Call exclude_fnmatch.
19902 * lib/exclude.h (excluded_file_name): New prototype
19904 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
19906 * lib/tempname.c (small_open, large_open): New macros.
19907 (__open, __open64) [!_LIBC]: Remove.
19908 (__gen_tempname): Use small_open and large_open instead of __open
19909 and __open64. This fixes a portability bug on HP-UX 11.11i
19910 reported by Simon Wing-Tang in
19911 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
19913 2006-05-24 Bruno Haible <bruno@clisp.org>
19915 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
19916 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
19917 Reported by Thorsten Maerz <torte@netztorte.de> via
19918 Aaron Stone <aaron@serendipity.cx>.
19920 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
19922 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
19923 gl_ rather than jm_. Link, don't run, so that cross-compiles are
19924 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
19925 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
19926 not really conditional on the cache.
19927 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
19929 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
19931 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
19932 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
19933 (my_usleep): Don't mishandle maximum value.
19935 2006-05-19 Jim Meyering <jim@meyering.net>
19937 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
19939 2006-05-17 Bruno Haible <bruno@clisp.org>
19941 Cygwin portability.
19942 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
19944 2006-05-17 Bruno Haible <bruno@clisp.org>
19946 * lib/stdint_.h: Fix recognition of Cygwin.
19948 2006-05-15 Bruno Haible <bruno@clisp.org>
19950 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
19951 on libtool patch by Ralf Wildenhues.
19953 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
19955 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
19956 test for C99 conformance; (bool) 0.5 is an integer constant
19957 expression, but (bool) -0.5 is not. Problem reported by Fedor
19958 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
19960 2006-05-11 Simon Josefsson <jas@extundo.com>
19962 * m4/xvasprintf.m4: Fix obvious typo.
19964 2006-05-11 Jim Meyering <jim@meyering.net>
19966 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
19969 2006-05-10 Simon Josefsson <jas@extundo.com>
19971 * lib/md4.c: Typo fix, update copyright years.
19972 (K1, K2): Don't use L because it turn computations into 64-bit on
19975 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
19977 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
19978 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
19979 unwanted sign propagation, e.g., on hosts with 64-bit int.
19980 There still are some problems with reeelly weird theoretical hosts
19981 (e.g., 33-bit int) but it's not worth worrying about now.
19982 * lib/sha1.c (rol): Likewise.
19983 (K1, K2, K3, K4): Remove unnecessary L suffix.
19985 2006-05-10 Bruno Haible <bruno@clisp.org>
19987 * lib/des.c: Cast to avoid warnings.
19989 2006-05-09 Bruno Haible <bruno@clisp.org>
19991 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
19992 (Depends-on): Depend also on xsize, stdarg.
19993 (configure.ac): Add gl_XVASPRINTF.
19995 2006-05-09 Bruno Haible <bruno@clisp.org>
19997 * m4/xvasprintf.m4: New file.
19999 2006-05-09 Bruno Haible <bruno@clisp.org>
20001 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
20002 (EOVERFLOW): Define fallback value.
20003 (xstrcat): New function.
20004 (xvasprintf): Recognize the special case of a string concatenation.
20006 2006-05-08 Eric Blake <ebb9@byu.net>
20008 * gnulib-tool (func_version): Base copyright year on CVS date.
20009 (func_emit_copyright_notice): New function.
20010 (func_emit_lib_Makefile_am): Use it.
20011 (func_emit_tests_Makefile_am): Likewise.
20012 (func_import): Likewise.
20014 2006-05-08 Bruno Haible <bruno@clisp.org>
20016 * modules/stdarg: New file.
20017 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
20019 2006-05-08 Bruno Haible <bruno@clisp.org>
20021 * m4/stdarg.m4: New file, from GNU gettext.
20023 2006-05-08 Bruno Haible <bruno@clisp.org>
20025 * config/srclist.txt (build-aux/config.rpath): different from latest
20028 2006-05-08 Bruno Haible <bruno@clisp.org>
20030 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
20032 2006-05-05 Jim Meyering <jim@meyering.net>
20034 * m4/warning.m4: New file, derived from bison's file by the same name.
20036 2006-05-03 Bruno Haible <bruno@clisp.org>
20038 * lib/stdint_.h: Shorter URL.
20039 * lib/inttypes.h: Likewise.
20041 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
20043 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
20045 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
20047 * lib/verify.h: Document the internals better. Most of this change
20048 was written by Bruno Haible.
20050 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
20052 * doc/verify.texi: New file, partly based on a proposal by
20055 2006-05-02 Bruno Haible <bruno@clisp.org>
20057 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
20059 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
20061 2006-04-29 Bruno Haible <bruno@clisp.org>
20063 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
20064 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
20066 2006-04-29 Bruno Haible <bruno@clisp.org>
20068 * gnulib-tool: Make --update option actually work.
20070 2006-04-29 Bruno Haible <bruno@clisp.org>
20072 * doc/gcd.texi: New file.
20073 * doc/gnulib.texi: Include it.
20075 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
20077 * lib/getdate.y (get_date): When adding relative date, start with the
20078 initial time, not with the result of the first mktime call.
20080 2006-04-25 Bruno Haible <bruno@clisp.org>
20082 * gnulib-tool (func_import): Output the include directives in three
20083 blocks, sorted separately.
20084 Reported by Ben Pfaff <blp@cs.stanford.edu>.
20086 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
20088 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
20089 to define main with arguments, for C++. Reported by Eric Blake.
20090 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
20091 Prefer 'int main ()' to 'int main (void)', for C++.
20092 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20093 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
20094 for 'main', for C99 and C++.
20096 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
20098 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
20099 Don't assume that exit status -1 is valid.
20100 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20101 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20102 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20103 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
20104 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
20105 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
20106 not AC_TRY_RUN. Use return, not exit. Don't assume that
20107 functions can be used without declaring them, or that you can
20108 exit with status -1.
20109 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20111 2006-04-24 Karl Berry <karl@gnu.org>
20113 * config/srclist.txt (longdouble.m4): sync lost.
20115 2006-04-24 Eric Blake <ebb9@byu.net>
20117 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
20119 2006-04-24 Bruno Haible <bruno@clisp.org>
20121 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
20122 poll() implementation in AIX.
20123 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20125 2006-04-24 Bruno Haible <bruno@clisp.org>
20127 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
20128 assigned exactly once.
20130 2006-04-23 Claudio Fontana <claudio@gnu.org>
20131 Bruno Haible <bruno@clisp.org>
20133 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
20134 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
20137 2006-04-23 Bruno Haible <bruno@clisp.org>
20139 * modules/copy-file: Depend on unistd.
20140 * modules/execute: Likewise.
20141 * modules/fatal-signal: Likewise.
20142 * modules/findprog: Likewise.
20143 * modules/mkdtemp : Likewise.
20144 * modules/pipe: Likewise.
20145 * modules/wait-process: Likewise.
20147 2006-04-23 Bruno Haible <bruno@clisp.org>
20149 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
20150 condition was already detected.
20151 Reported by Ben Pfaff <blp@cs.stanford.edu>.
20153 2006-04-23 Bruno Haible <bruno@clisp.org>
20155 * lib/copy-file.c: Include <unistd.h> unconditionally.
20156 * lib/execute.c: Likewise.
20157 * lib/fatal-signal.c: Likewise.
20158 * lib/findprog.c: Likewise.
20159 * lib/mkdtemp.c: Likewise.
20160 * lib/pipe.h: Likewise.
20161 * lib/pipe.c: Likewise.
20162 * lib/wait-process.h: Likewise.
20164 2006-04-23 Bruno Haible <bruno@clisp.org>
20166 * gnulib-tool (func_usage): Fix --import description. Document
20168 (func_import): Create temporary file in a temporary directory, if
20169 --dry-run is specified. Silence errors from 'grep' when there are no
20170 m4 files in $m4dir.
20171 (func_create_testdir): Silence errors from 'grep' when there are no
20172 m4 files in $m4dir.
20173 Reported by Karl Berry <karl@freefriends.org>.
20175 2006-04-20 Bruno Haible <bruno@clisp.org>
20177 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
20178 one argument, so that the code will be portable to Autoconf 2.60.
20179 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
20180 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
20181 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
20183 2006-04-19 Derek Price <derek@ximbiot.com>
20184 Eric Blake <ebb9@byu.net>
20186 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
20187 rather than "/full/path.h". Update comment to match. Shorten &
20188 generalize m4_translit call via AS_TR_CPP.
20190 2006-04-19 Derek Price <derek@ximbiot.com>
20191 Eric Blake <ebb9@byu.net>
20193 * lib/inttypes.h: Correct grammar in comment.
20195 2006-04-18 Derek Price <derek@ximbiot.com>
20196 Paul Eggert <eggert@cs.ucla.edu>
20198 * modules/inttypes: New file.
20199 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
20201 2006-04-18 Derek Price <derek@ximbiot.com>
20202 Paul Eggert <eggert@cs.ucla.edu>
20204 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
20207 2006-04-18 Derek Price <derek@ximbiot.com>
20208 Paul Eggert <eggert@cs.ucla.edu>
20210 * lib/inttypes.h: New file.
20211 * lib/strtoimax.c: Assume <inttypes.h>.
20213 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
20215 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
20216 isn't mounted. Problem reported by Kir Kolyshkin.
20218 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
20220 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
20221 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
20223 * lib/regex.h (RE_DUP_MAX): Update comment to match current
20226 2006-04-12 Eric Blake <ebb9@byu.net>
20228 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
20229 is now done automatically by the corresponding Autoconf macro.
20231 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
20233 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
20236 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
20238 Merge regex changes from libc, removing some of our
20239 POSIX-conformance changes that were rejected and redoing them in a
20240 less-intrusive way.
20242 * lib/regcomp.c (re_compile_internal, init_dfa):
20243 Length arg is now size_t, not Idx. All uses changed.
20244 (peek_token): Forward decl now says internal_function.
20245 (__re_error_msgid, __re_error_msgid_idx):
20246 Now static rather than extern with attribute_hidden.
20247 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
20248 For some reason libc prefers K&R style defns for external functions.
20249 (regerror) [!defined _LIBC]: Likewise.
20250 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
20251 (seek_collating_symbol_entry, lookup_collation_sequence_value):
20252 (build_range_exp, build_collating_symbol):
20253 Use K&R-style defn.
20254 (re_compile_fastmap): Use '\0' to memset, not 0.
20255 (utf8_sb_map): Make the calculations more obvious.
20256 (init_dfa, parse_bracket_exp, build_charclass_op):
20257 Call calloc and cast result, as glibc does.
20258 (init_word_char, fetch_token, peek_token, peek_token_bracket):
20259 (build_range_exp, build_collating_symbol):
20260 Now internal functions.
20262 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
20264 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
20265 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
20266 Don't depend on VMS; depend on __VMS instead, for POSIX
20267 namespace cleanness.
20268 (regoff_t): Define to ssize_t, not long int.
20270 Remove the REG_ macros named below. Instead, make the old names
20271 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
20273 (REG_BACKSLASH_ESCAPE_IN_LISTS):
20274 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
20275 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
20276 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
20277 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
20278 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
20279 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
20280 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
20281 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
20282 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
20283 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
20284 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
20285 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
20286 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
20287 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
20288 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
20289 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
20291 Remove. All uses replaced by the old RE_* names.
20292 (RE_BACKSLASH_ESCAPE_IN_LISTS):
20293 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
20294 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
20295 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
20296 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
20297 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
20298 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
20299 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
20300 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
20301 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
20302 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
20303 Don't bother having these macros be independent of each others'
20304 values, since they no longer exist in the POSIX name space.
20306 Rename the following member names back to their old names,
20307 unless !__USE_GNU_REGEX. All uses changed back.
20308 (buffer): Renamed from re_buffer.
20309 (allocated): Renamed from re_allocated.
20310 (used): Renamed from re_used.
20311 (syntax): Renamed from re_syntax.
20312 (fastmap): Renamed from re_fastmap.
20313 (translate): Renamed from re_translate.
20314 (can_be_null): Renamed from re_can_be_null.
20315 (regs_allocated): Renamed from re_regs_allocated.
20316 (fastmap_accurate): Renamed from re_fastmap_accurate.
20317 (no_sub): Renamed from re_no_sub.
20318 (not_bol): Renamed from re_not_bol.
20319 (not_eol): Renamed from re_not_eol.
20320 (newline_anchor): Renamed from re_newline_anchor.
20321 (num_regs): Renamed from rm_num_regs.
20322 (start): Renamed from rm_start.
20323 (end): Renamed from rm_end.
20325 (free_state): Move up a bit.
20327 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
20328 #define to be empty.
20329 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
20330 when that is what is intended.
20331 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
20332 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
20334 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
20335 All uses changed back to re_malloc, etc. It's now the caller's
20336 responsibility to check for overflow; all callers changed.
20337 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
20338 (re_x2nrealloc): Remove.
20339 (free_state): Remove decl.
20341 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
20342 (re_set_registers, re_exec):
20343 Use K&R-style defn.
20345 2006-01-31 Roland McGrath <roland@redhat.com>
20347 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
20348 Reported by Mike Frysinger <vapier@gentoo.org>.
20350 2006-01-15 Andreas Jaeger <aj@suse.de>
20353 * lib/regex_internal.c (re_string_reconstruct): Adjust for
20354 build_wcs_upper_buffer change.
20355 (build_wcs_upper_buffer): Change return type.
20357 2005-12-10 Ulrich Drepper <drepper@redhat.com>
20359 * lib/regex_internal.h: Include <stdint.h> if available.
20361 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
20363 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
20365 2005-10-14 Ulrich Drepper <drepper@redhat.com>
20367 * lib/regcomp.c: Adjust for changed secondary hash function.
20369 2005-09-30 Ulrich Drepper <drepper@redhat.com>
20371 * lib/regex.h: Pretty printing.
20372 Clean up namespace a bit.
20374 2005-09-30 Jakub Jelinek <jakub@redhat.com>
20376 * lib/regexec.c (update_cur_sifted_state, check_arrival,
20377 check_arrival_add_next_nodes): Avoid using uninitialized variable.
20379 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
20380 Ulrich Drepper <drepper@redhat.com>
20383 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
20385 (bitset_word_t): Renamed from bitset_word. All uses changed.
20387 2005-09-22 Ulrich Drepper <drepper@redhat.com>
20390 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
20391 * lib/regcomp.c: Remove unnecessary uses of
20392 unsigned RE_TRANSLATE_TYPE.
20393 * lib/regex_internal.h: Likewise.
20394 * lib/regex_internal.c: Likewise.
20395 * lib/regexec.c: Likewise.
20396 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
20398 2005-09-07 Ulrich Drepper <drepper@redhat.com>
20400 * lib/regexec.c (find_recover_state): Remove unnecessary
20402 (transit_state_bkref): Make DFA a const pointer.
20403 (get_subexp): Likewise.
20404 (check_arrival): Likewise.
20405 (update_cur_sifted_state): Likewise.
20406 (re_search_internal): Likewise.
20407 (prune_impossible_nodes): Likewise.
20408 (acquire_init_state_context): Likewise.
20409 (proceed_next_node): Likewise.
20410 (set_regs): Likewise.
20411 (free_fail_stack_return): Likewise.
20412 (check_arrival_expand_ecl): Mark DFA parameter as const.
20413 (check_arrival_expand_ecl_sub): Likewise.
20414 (check_subexp_limits): Likewise.
20415 (sub_epsilon_src_nodes): Likewise.
20416 (add_epsilon_src_nodes): Likewise.
20417 (merge_state_array): Likewise.
20418 (update_regs): Likewise.
20419 (build_trtable): Likewise.
20420 (sift_states_backward): Mark MCTX parameter as const.
20421 (build_sifted_states): Likewise.
20422 (update_cur_sifted_state): Likewise.
20423 (sift_states_mkref): Likewise.
20424 (check_arrival_expand_ecl): Mark eclosure as const.
20425 (check_dst_limits_calc_pos_1): Likewise.
20426 * lib/regex_internal.h (re_match_context_t): Make dfa a const
20429 2005-09-06 Ulrich Drepper <drepper@redhat.com>
20431 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
20432 (transit_state_sb): Likewise.
20433 (transit_state_mb): Likewise.
20434 (sift_states_iter_mb): Likewise.
20435 (check_arrival_add_next_nodes): Likewise.
20436 (check_node_accept_bytes): Change first parameter to pointer-to-const.
20437 [_LIBC] (re_search_2_stub): Use mempcpy.
20439 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
20440 mbrtowc for very simple UTF-8 case.
20442 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
20443 a pointer-to-const.
20444 (re_acquire_state_context): Likewise.
20445 * lib/regex_internal.h: Adjust prototypes.
20447 * lib/regex.c: Prevent using C++ compilers.
20449 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
20450 (re_acquire_state_context): Likewise.
20452 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
20454 * modules/regex (Depends-on): Add ssize_t.
20456 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
20458 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
20461 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
20463 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
20465 2006-03-29 Mark D. Baushke <mdb@gnu.org>
20466 Bruno Haible <bruno@clisp.org>
20468 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
20469 <sys/types.h> and <inttypes.h>.
20471 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20473 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
20474 `__error_t_defined', so argp.h will not typedef the former.
20476 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
20478 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
20479 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
20480 glibc names. Even if glibc is changed to conform to POSIX, the
20481 traditional names will be available anyway, since regex depends on
20482 the extensions module. Also, fix a longstanding typo in the
20483 implementation of Spencer ERE test #75 from grep 2.3. Problems
20484 reported by Emanuele Giaquinta. Also, change sense of cached
20485 variable, so that the message makes sense.
20487 2006-03-24 Simon Josefsson <jas@extundo.com>
20489 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
20490 including some doc fixes.
20491 (base64_encode_alloc): Fix +1 bug on allocation failures.
20493 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20495 * lib/base64.c (base64_encode): Do not read past end of array with
20496 unsanitized input on systems with CHAR_BIT > 8.
20498 2006-03-24 Eric Blake <ebb9@byu.net>
20500 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
20502 2006-03-22 Karl Berry <karl@gnu.org>
20504 * config/srclist.txt (*setenv.[ch]): get from coreutils.
20505 * config/srclistvars.sh (COREUTILS): new var.
20507 2006-03-17 Jim Meyering <jim@meyering.net>
20509 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
20510 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
20512 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
20514 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
20515 no longer needs it. Instead, check that regoff_t is as least
20516 as wide as ptrdiff_t.
20518 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
20519 so that our regex.h stays compatible with the installed regex.
20520 This is helpful for installers who configure --without-included-regex.
20521 Problem reported by Emanuele Giaquinta.
20523 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
20525 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
20526 Typedef to long int, not to off_, as POSIX will likely change
20529 2006-03-15 Eric Blake <ebb9@byu.net>
20531 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
20533 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
20535 * lib/argp-help.c (validate_uparams): Fix typo
20536 * lib/argp-parse.c (argp_default_options): Consistently begin help
20537 messages with a lowercase letter.
20539 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
20541 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
20542 overrun buffers and shouldn't be used (much as gets shouldn't be
20544 * lib/time_r.c (asctime_r, ctime_r): Likewise.
20546 2006-03-08 Simon Josefsson <jas@extundo.com>
20548 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
20549 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20551 2006-03-08 Simon Josefsson <jas@extundo.com>
20553 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
20554 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20556 2006-03-08 Simon Josefsson <jas@extundo.com>
20558 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
20559 signal that configure disabled the device.
20561 2006-03-08 Simon Josefsson <jas@extundo.com>
20563 * build-aux/maint.mk: Fix refresh-po, to handle no translated
20566 2006-03-07 Simon Josefsson <jas@extundo.com>
20568 * modules/getopt (Depends-on): Add unistd.
20570 * modules/unistd: New file.
20572 2006-03-07 Simon Josefsson <jas@extundo.com>
20574 * modules/gc-random: New file.
20576 2006-03-07 Simon Josefsson <jas@extundo.com>
20578 * m4/unistd_h.m4: New file.
20580 2006-03-07 Simon Josefsson <jas@extundo.com>
20582 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
20583 test to be side-effect free by storing the result in the cache
20584 variable gl_cv_lib_readline, and moving the assignment of
20585 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
20586 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20588 2006-03-07 Simon Josefsson <jas@extundo.com>
20590 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
20591 error on missing devices (the functions will return an error).
20593 * m4/gc.m4: Move random stuff to gc-random.m4
20595 2006-03-07 Simon Josefsson <jas@extundo.com>
20597 * lib/unistd_.h: New file.
20599 2006-03-07 Simon Josefsson <jas@extundo.com>
20601 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
20603 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
20605 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
20606 Problem reported by Juan Manuel Guerrero.
20608 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
20610 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
20612 * lib/getlogin_r.c: Likewise.
20613 * lib/getlogin_r.h: Likewise.
20614 * lib/glob.c: Likewise.
20615 * lib/pagealign_alloc.c: Likewise.
20616 * lib/unistd_.h: Remove; no longer needed.
20618 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
20620 * MODULES.html.sh (Support for systems lacking POSIX:2001):
20622 * modules/c-stack (Depends-on): Add unistd.
20623 * modules/getlogin_r: Likewise.
20624 * modules/glob: Likewise.
20625 * modules/pagealign_alloc: Likewise.
20626 * modules/unistd (Files): Remove lib/unistd_.h.
20627 (EXTRA_DIST): Remove.
20628 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
20630 (MOSTLYCLEANFILES): Remove unistd.h-t.
20632 2006-03-03 Simon Josefsson <jas@extundo.com>
20634 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
20636 2006-03-03 Simon Josefsson <jas@extundo.com>
20638 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
20641 2006-03-03 Simon Josefsson <jas@extundo.com>
20643 * build-aux/maint.mk: Add indent target.
20645 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
20647 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
20648 our replacement poll.h in any case, to avoid a differing
20649 declaration from a system header. Seen on AIX.
20651 2006-03-01 Simon Josefsson <jas@extundo.com>
20653 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
20656 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
20658 * modules/gettime (Depends-on): Add extensions module.
20659 * modules/nanosleep (Depends-on): Likewise.
20660 * modules/settime (Depends-on): Likewise.
20662 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
20664 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
20665 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
20667 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20668 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
20670 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
20671 not "==". Reported by Ralf Wildenhues.
20673 2006-03-01 Karl Berry <karl@gnu.org>
20675 * doc/Copyright/request-*: new files, synced from gnuorg.
20677 2006-03-01 Karl Berry <karl@gnu.org>
20679 * config/srclist.txt (Copyright/*): new entries.
20681 2006-02-28 Simon Josefsson <jas@extundo.com>
20683 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
20685 2006-02-27 Simon Josefsson <jas@extundo.com>
20687 * lib/base64.h: Indent #define's. From Jim Meyering
20688 <jim@meyering.net>.
20690 2006-02-27 Jim Meyering <jim@meyering.net>
20692 Revert the change of 2006-02-24, so these files can continue
20693 to be sync'd from gettext.
20694 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
20697 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
20699 * modules/intprops: New file.
20700 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
20702 * modules/getloadavg (Files): Remove lib/intprops.h.
20703 (Depends-on): Add intprops.
20704 * modules/human: Likewise.
20705 * modules/inttostr: Likewise.
20706 * modules/openat: Likewise.
20707 * modules/sig2str: Likewise.
20708 * modules/userspec: Likewise.
20709 * modules/utimecmp: Likewise.
20710 * modules/xnanosleep: Likewise.
20711 * modules/xstrtol: Likewise.
20713 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
20715 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
20716 * modules/lock-tests (TESTS): Use $(EXEEXT).
20717 * modules/tls-tests: Likewise.
20718 * modules/argp-tests: Likewise.
20719 (check_PROGRAMS): New var, replacing...
20720 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
20722 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20724 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
20727 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
20729 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
20731 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20733 Sync from coreutils.
20734 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
20737 2006-02-22 Jim Meyering <jim@meyering.net>
20739 Sync from coreutils.
20740 * m4/chdir-safer.m4: New file.
20742 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
20744 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
20745 AT_FDCWD exceeds INT_MAX.
20746 * lib/openat.h (AT_FDCWD): Likewise.
20748 2006-02-17 Eric Blake <address@hidden>
20750 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
20752 2006-02-16 Simon Josefsson <jas@extundo.com>
20754 * modules/getaddrinfo (Depends-on): Add sys_socket.
20756 2006-02-15 Simon Josefsson <jas@extundo.com>
20758 * build-aux/maint.mk: Add dsyntax-check rule.
20760 2006-02-15 Eric Blake <ebb9@byu.net>
20762 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
20763 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
20764 'present but cannot compile' warnings on cygwin.
20765 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
20766 use ws2tcpip.h if sys/socket.h works.
20767 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
20768 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
20770 2006-02-14 Simon Josefsson <jas@extundo.com>
20772 * modules/maintainer-makefile (Files): Rename.
20774 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
20775 and (the local) Makefile.cfg to maint-cfg.mk.
20777 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
20780 * modules/maintainer-makefile: New module.
20782 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
20783 severaly stripped to make it possible to build it up from scratch
20784 with reliable tests.
20786 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
20787 fixes to permit overriding the default actions when configure and
20788 makefile are not available.
20790 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
20792 Sync from coreutils.
20793 * modules/lstat (Depends-on): Don't depend on xalloc.
20794 (License): Change from GPL to LGPL, since this is now simply a
20795 replacement for a libc function.
20797 2006-02-14 Jim Meyering <jim@meyering.net>
20799 Sync from coreutils.
20801 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
20802 failure on deficient systems, and simplify gnulib lgpl dependencies.
20803 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
20804 xmalloc/lstat combination. Based on a patch from Bruno Haible.
20806 * lib/xalloc-die.c: Remove unused definition of N_.
20808 2006-02-14 Jim Meyering <jim@meyering.net>
20810 Sync from coreutils.
20811 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
20812 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
20813 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
20814 double-quote uses of that variable, to accommodate the rare case in
20815 which getmntent is available in none of the libraries checked. This
20816 happens at least on FreeBSD 5.0.
20818 2006-02-13 Simon Josefsson <jas@extundo.com>
20820 * gnulib-tool (Usage): Fix --import, from
20821 karl@freefriends.org (Karl Berry).
20823 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
20825 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
20827 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
20829 * lib/argp-namefrob.h: Restore changes accidentally lost during the
20830 "autoupdate" on 2005-12-12.
20832 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
20834 * modules/closeout (Depends-on): Remove atexit.
20836 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
20838 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
20839 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
20841 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
20843 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
20844 __EXTENSIONS__ if this causes compilation to fail. Problem
20845 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
20846 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
20848 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
20850 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
20851 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
20852 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
20855 2006-01-26 Simon Josefsson <jas@extundo.com>
20857 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
20858 prototype is visible on mingw32.
20860 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
20863 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
20866 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
20868 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
20869 attempt to open for write; this always fails, at least on POSIX
20870 hosts. This reinstates the 2006-01-09 change, which was
20871 inadvertently removed.
20873 2006-01-26 Bruno Haible <bruno@clisp.org>
20875 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
20876 Reported by Paul Eggert.
20878 2006-01-26 Bruno Haible <bruno@clisp.org>
20879 Paul Eggert <eggert@cs.ucla.edu>
20881 * lib/stdbool_.h (_Bool)
20882 [(! (defined __cplusplus || defined __BEOS__)
20883 && !defined __GNUC__
20884 && !(defined __HP_cc || defined __xlc__
20885 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
20886 || defined __sgi))]:
20887 #define to signed char in these cases too; this simplifies
20888 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
20889 etc., separately) and makes it more conservative.
20891 2006-01-25 Simon Josefsson <jas@extundo.com>
20893 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
20894 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
20895 ws2tcpip.h with WINVER=0x0501. All for mingw32.
20897 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
20899 * lib/argp-namefrob.h: Bugfix. Remove stray #
20901 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
20903 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
20904 so that we test the test.
20905 Check for yet another HP-UX cc bug involving *bool |= bool.
20907 2006-01-25 Karl Berry <karl@gnu.org>
20909 * config/srclist.txt (vasnprintf.c): sync lost.
20911 2006-01-25 Jim Meyering <jim@meyering.net>
20913 Sync from the stable (b5) branch of coreutils:
20915 * lib/fts.c (fts_children): Don't let close() clobber errno from
20918 * lib/fts.c (fts_stat): When following a symlink-to-directory,
20919 don't necessarily interpret stat-fails+lstat-succeeds as indicating
20920 a dangling symlink. That can also happen at least for ELOOP.
20921 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
20922 FYI, this bug predates the inclusion of fts.c in coreutils.
20924 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
20925 in their own block, so pre-c99 compilers don't object.
20927 Avoid the double-free (first in fts_read, second in fts_close) that
20928 would occur when an `active' directory is made inaccessible (e.g.,
20929 via chmod a-x) during a traversal.
20930 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
20931 before returning. Reproduce this failure by
20932 mkdir -p a/b; cd a; chmod a-x . b
20933 Reported by Stavros Passas.
20935 2006-01-25 Jim Meyering <jim@meyering.net>
20937 * lib/fileblocks.c: Remove more useless parentheses.
20938 * lib/readutmp.h: Likewise.
20940 2006-01-25 Bruno Haible <bruno@clisp.org>
20942 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
20944 Reported by Paul Eggert.
20946 2006-01-25 Bruno Haible <bruno@clisp.org>
20948 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
20949 rid of a trap command. For Solaris sh.
20950 Reported by Mark D. Baushke <mdb@gnu.org>.
20952 2006-01-24 Simon Josefsson <jas@extundo.com>
20954 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
20957 2006-01-24 Karl Berry <karl@gnu.org>
20959 * config/srclist.txt (argp-namefrob.h): sync lost.
20961 2006-01-24 Jim Meyering <jim@meyering.net>
20963 * modules/openat (Files): Add lib/intprops.h.
20964 From Mark D. Baushke.
20966 2006-01-24 Jim Meyering <jim@meyering.net>
20968 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
20969 Reported by Mark D. Baushke.
20971 2006-01-24 Jim Meyering <jim@meyering.net>
20973 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
20975 2006-01-24 Bruno Haible <bruno@clisp.org>
20977 * modules/strnlen (Maintainer): Change from glibc to all.
20979 2006-01-24 Bruno Haible <bruno@clisp.org>
20981 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
20982 Patch by Paul Eggert.
20984 2006-01-24 Bruno Haible <bruno@clisp.org>
20986 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
20988 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
20991 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
20992 'signed char' to avoid problems with the built-in _Bool type.
20993 Reported by Paul Eggert on 2005-11-26.
20995 2006-01-24 Bruno Haible <bruno@clisp.org>
20997 * gnulib-tool (func_import): Avoid constructing complicated sed
20998 expressions inside backquote.
20999 Report and solution by Mark D. Baushke <mdb@gnu.org>.
21001 2006-01-23 Ulrich Drepper <drepper@redhat.com>
21003 These changes imported from libc.
21004 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
21005 test and two separate function calls.
21006 * lib/strndup.c (__strndup): Add libc_hidden_def.
21008 2006-01-23 Simon Josefsson <jas@extundo.com>
21010 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
21011 Remove the test_*_SOURCES variable: automake infers it by default.
21012 * modules/tls-tests: Likewise.
21014 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
21016 Work around porting bugs reported by Dieter in
21017 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
21018 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
21019 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
21020 Include "getopt.h" first, to check interface.
21021 (getenv): Declare only if defined HAVE_DECL_GETENV &&
21023 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
21024 (__strndup): Revert to K&R-style function dfns, the glibc style.
21025 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
21026 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
21027 Include strnlen.h first, to get prototype properly.
21028 (strnlen): Renamed from __strnlen.
21031 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
21033 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
21035 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
21037 * config/srclist.txt: Adjust to reflect glibc reorganization.
21038 This affects only comments.
21040 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
21042 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
21043 Reported by Bruce Korb <bkorb@gnu.org>.
21045 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
21047 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
21048 to pacify gcc -Wswitch-default.
21050 2006-01-22 Bruno Haible <bruno@clisp.org>
21052 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
21053 temporary buffer for sprintf, take into account the precision also
21054 for 'd', 'i', 'u', 'o', 'x', 'X'.
21056 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
21058 * modules/argp-tests: New module
21059 * tests/test-argp.c: New file
21060 * tests/test-argp-2.sh: New file
21062 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
21064 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
21065 (__argp_base_name): Removed
21066 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
21068 (__argp_base_name): Provide macro definition or extern declaration
21069 depending on the configuration
21071 2006-01-20 Simon Josefsson <jas@extundo.com>
21073 * modules/inet_ntop (Depends-on): Depend on sys_socket.
21075 2006-01-20 Simon Josefsson <jas@extundo.com>
21077 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
21079 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
21081 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
21082 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
21083 Suggested by Bruno Haible.
21085 2006-01-20 Karl Berry <karl@gnu.org>
21087 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
21088 until changes propagate, I guess.
21090 2006-01-19 Simon Josefsson <jas@extundo.com>
21092 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
21094 2006-01-19 Simon Josefsson <jas@extundo.com>
21096 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
21098 2006-01-19 Simon Josefsson <jas@extundo.com>
21100 * gnulib-tool: Set check_PROGRAMS.
21102 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
21103 modules/des-tests, modules/gc-arcfour-tests,
21104 modules/gc-arctwo-tests, modules/gc-des-tests,
21105 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
21106 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
21107 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
21108 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
21109 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
21110 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
21111 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
21114 2006-01-18 Simon Josefsson <jas@extundo.com>
21116 * modules/socklen (Depends-on): Depend on sys_socket.
21118 2006-01-18 Simon Josefsson <jas@extundo.com>
21120 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
21121 modules/des-tests, modules/gc-arcfour-tests,
21122 modules/gc-arctwo-tests, modules/gc-des-tests,
21123 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
21124 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
21125 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
21126 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
21127 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
21128 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
21129 $(EXEEXT) to automake TESTS variable, for mingw32.
21131 2006-01-17 Simon Josefsson <jas@extundo.com>
21133 * modules/socklen (Include): Need sys/socket.h.
21135 2006-01-17 Bruno Haible <bruno@clisp.org>
21137 * modules/ssize_t (Include): Add <sys/types.h>.
21139 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
21141 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
21142 it's not portable and it doesn't work with cross-compiles.
21143 Problem reported by Bruno Haible. Fix missing-$ typo in
21144 'test "gl_cv_ignore_unused_libraries" ...' that prevented
21145 -zignore from being used with Sun's C compiler.
21147 2006-01-12 Simon Josefsson <jas@extundo.com>
21149 * lib/base64.c: Fix warning, reported by Bruno Haible
21150 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
21152 2006-01-12 Bruno Haible <bruno@clisp.org>
21154 * modules/ldd: New file.
21155 * build-aux/ldd.sh.in: New file.
21156 * MODULES.html.sh (Support for building libraries and executables): Add
21159 2006-01-12 Bruno Haible <bruno@clisp.org>
21161 * m4/ldd.m4: New file.
21163 2006-01-12 Bruno Haible <bruno@clisp.org>
21165 * gnulib-tool (func_import, func_create_testdir): Don't go into an
21166 endless loop while replacing $auxdir with build-aux.
21168 2006-01-11 Simon Josefsson <jas@extundo.com>
21170 * lib/stdint_.h (SIZE_MAX): Add missing (.
21172 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
21174 Sync from coreutils.
21175 * lib/md5.c: Fix commentary typos.
21176 (alignof, UNALIGNED_P): No need for a GCC-specific version.
21177 * lib/md5.h (__attribute__): Remove; unused.
21178 * lib/sha1.c: Fix commentary to match md5 better.
21179 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
21180 so that we don't need to worry about alignment. All uses changed.
21181 This merges the 2005-10-28 md5 change into sha1.
21183 2006-01-11 Jim Meyering <jim@meyering.net>
21185 Sync from coreutils.
21186 * lib/md5.c (OP): Fix spacing.
21188 2006-01-11 Bruno Haible <bruno@clisp.org>
21190 Ensure automatic ordering between gl_LOCK and gl_ARGP.
21191 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
21192 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
21194 2006-01-11 Bruno Haible <bruno@clisp.org>
21196 Ensure automatic ordering between gl_LOCK and gl_ARGP.
21197 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
21198 the "early" section as well.
21200 2006-01-11 Bruno Haible <bruno@clisp.org>
21202 Avoid "ar: no archive members specified" error on MacOS X.
21203 * gnulib-tool (func_modules_add_dummy): New function.
21204 (func_import, func_create_testdir): Invoke it.
21206 2006-01-11 Bruno Haible <bruno@clisp.org>
21208 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
21209 with $auxdir in AC_CONFIG_FILES statements.
21211 2006-01-11 Bruno Haible <bruno@clisp.org>
21213 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21214 Initialize also noinst_HEADERS to empty.
21216 2006-01-11 Bruno Haible <bruno@clisp.org>
21218 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
21220 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
21223 2006-01-11 Bruno Haible <bruno@clisp.org>
21225 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
21226 overridable by the user.
21227 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21229 2006-01-10 Simon Josefsson <jas@extundo.com>
21231 * modules/sys_socket: New file.
21233 2006-01-10 Simon Josefsson <jas@extundo.com>
21235 * m4/sys_socket_h.m4: New file.
21237 2006-01-10 Simon Josefsson <jas@extundo.com>
21239 * lib/socket_.h: New file.
21241 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
21243 * modules/readutmp (Maintainer): Add myself.
21245 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
21247 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
21248 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
21249 People who are still concerned with buggy memcmp implementations
21250 can invoke gl_FUNC_MEMCMP themselves.
21252 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
21254 * lib/regex_internal.h (BITSET_WORD_BITS):
21255 Work around a bug in 64-bit PGC (before version 6.1-2), where the
21256 preprocessor mishandles large unsigned values as if they were signed.
21257 Problem reported by Claudio Fontana in
21258 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
21260 2006-01-10 Jim Meyering <jim@meyering.net>
21262 Avoid the double-free (first in fts_read, second in fts_close) that
21263 would occur when an `active' directory is made inaccessible (e.g.,
21264 via chmod a-x) during a traversal.
21265 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
21266 before returning. Reproduce this failure by
21267 mkdir -p a/b; cd a; chmod a-x . b
21268 Reported by Stavros Passas.
21270 Sync from coreutils.
21271 * lib/sha1.c: Tweak grammar in a comment.
21273 2006-01-10 Jim Meyering <jim@meyering.net>
21275 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
21276 Patch by Joerg Sonnenberger.
21278 2006-01-10 Bruno Haible <bruno@clisp.org>
21280 * modules/readutmp: Depend on module free.
21281 * modules/strtok_r: Depend on module restrict.
21283 2006-01-10 Bruno Haible <bruno@clisp.org>
21285 * modules/gettext (configure.ac): Add an invocation of
21286 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
21288 2006-01-10 Bruno Haible <bruno@clisp.org>
21290 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
21291 Reported by Werner Lemberg <wl@gnu.org>.
21293 2006-01-10 Bruno Haible <bruno@clisp.org>
21295 * lib/localcharset.c: Update from GNU gettext.
21297 2006-01-10 Bruno Haible <bruno@clisp.org>
21299 * lib/argp.h (__const): Remove macro. Use const instead.
21300 * lib/argp-fmtstream.h (__const): Likewise.
21301 * lib/glob_.h (__const): Remove macro.
21302 * lib/glob-libc.h: Use const instead of __const.
21304 2006-01-10 Bruno Haible <bruno@clisp.org>
21306 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
21308 Needed to avoid an automake error regarding the 'gettext' module.
21310 2006-01-09 Simon Josefsson <jas@extundo.com>
21312 * modules/inet_ntop (Depends-on): Add restrict.
21314 2006-01-09 Simon Josefsson <jas@extundo.com>
21316 * modules/gc-rijndael-tests (License): Put under LGPL.
21318 * modules/gc-des-tests (License): Likewise.
21320 * modules/gc-arcfour-tests (License): Likewise.
21322 * modules/gc-arctwo-tests (License): Likewise.
21324 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
21326 * modules/gc-hmac-sha1-tests (Files): Likewise.
21328 * modules/gc-hmac-md5-tests (License): Likewise.
21330 * modules/gc-sha1-tests (License): Likewise.
21332 * modules/gc-md5-tests (License): Likewise.
21334 * modules/gc-md4-tests (License): Likewise.
21336 * modules/gc-md2-tests (License): Likewise.
21338 * modules/gc-tests (License): Likewise.
21340 * modules/des-tests (License): Likewise.
21342 * modules/md4-tests (License): Likewise.
21344 * modules/md2-tests (License): Likewise.
21346 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
21348 Sync from coreutils:
21350 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
21351 * modules/lib-ignore: New file.
21352 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
21353 chdir-safer.m4, lchmod.m4.
21354 * modules/openat: Add mkdirat.c, openat-priv.h.
21356 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
21358 Sync from coreutils.
21359 * m4/lib-ignore.m4: New file.
21360 * m4/lchmod.m4: New file.
21362 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
21364 Sync from coreutils.
21365 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
21366 for write access: POSIX says that must fail.
21367 * lib/fts.c (diropen): Likewise.
21368 * lib/save-cwd.c (save_cwd): Likewise.
21369 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
21370 well, for minor improvements on hosts that lack O_DIRECTORY.
21371 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
21372 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
21373 Fall back on chown if open failed with EACCES.
21375 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
21376 Report an error at compile-time if only a 1-second nominal clock
21377 resolution is found.
21379 * lib/lchmod.h: New file.
21380 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
21381 (make_dir_parents): Use lchown rather than chown, and
21382 lchmod rather than chmod.
21384 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
21385 dummies too. Problem with "none" reported by Bob Proulx. Problem with
21386 "proc" reported by n0dalus.
21388 * lib/mountlist.c: Include <limits.h>.
21389 (dev_from_mount_options)
21390 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
21391 New function. It no longer assumes "dev=" has the System V meaning
21392 on Linux (since it doesn't). It also parses "dev=" more carefully.
21393 (read_file_system_list)
21394 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
21395 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
21398 * lib/posixtm.h (PDS_PRE_2000): New macro.
21399 * lib/posixtm.c (year): Arg is now syntax_bits rather than
21400 allow_century. All usages changed. Reject dates outside the range
21401 1969-1999 if PDS_PRE_2000 is used.
21403 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
21405 Sync from coreutils.
21406 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
21407 (Time of day items): Mention the possibility of leap seconds.
21408 Problem reported by Dr. David Alan Gilbert.
21410 2006-01-09 Jim Meyering <jim@meyering.net>
21412 Sync from coreutils.
21414 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
21416 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
21418 * lib/modechange.c (mode_compile): Reject an invalid mode string
21419 that starts with an octal digit. From Andreas Gruenbacher.
21421 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
21422 and dup to open_safer and dup_safer, respectively.
21423 (openat_permissive): Fix typo in comment.
21425 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
21426 "gettext.h"; either no longer needed or are guaranteed by openat.h.
21427 (_): Remove; no longer needed.
21428 (openat): Renamed from rpl_openat; no need for rpl_openat
21429 since openat.h renames openat for us.
21430 Replace most of the body with a call to openat_permissive,
21431 to avoid duplicate code.
21432 Port to (probably hypothetical) environments were mode_t is
21434 (openat_permissive): Require mode arg, so that we can check
21435 types better. Put it just after flags. Change cwd failure
21436 indicator from pointer-to-bool to pointer-to-errno-value.
21437 All callers changed.
21438 Invoke openat_save_fail and/or openat_restore_fail if
21439 cwd_errno is null, so that openat can call us.
21440 (openat_permissive, fdopendir, fstatat, unlinkat):
21441 Simplify errno handling to avoid some duplicate code,
21442 as it's OK to set errno on success.
21443 * lib/openat.h: Revamp code so that function macros depend on
21444 __OPENAT_PREFIX only, not also on AT_FDCWD.
21445 (openat_ro): Remove. Caller changed to use openat_permissive.
21446 (openat_permissive): Now a macro, if not a function.
21447 (openat_restore_fail, openat_save_fail): Now always functions,
21448 since mkdirat needs them even if __OPENAT_PREFIX is defined.
21450 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
21452 * lib/mkdirat.c: Include openat-priv.h.
21453 Remove definitions of macros defined therein.
21454 * lib/openat.c: Likewise.
21456 * lib/mkdirat.c (mkdirat): New file and function.
21457 * lib/openat.h (mkdirat): Declare.
21459 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
21461 * lib/openat.h (openat_permissive): Declare.
21462 (openat_ro): Define.
21464 * lib/openat.c (EXPECTED_ERRNO): New macro.
21465 (openat_permissive): New function -- used in remove.c rewrite.
21466 (all functions): Set errno just before returning, only if there
21467 was an actual failure.
21468 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
21470 Emulate openat-family functions using Linux's procfs, if possible.
21471 Idea and some code based on Ulrich Drepper's glibc changes.
21473 * lib/openat.c: (BUILD_PROC_NAME): New macro.
21474 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
21475 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
21476 before falling back on save_cwd and restore_cwd.
21477 (fdopendir, fstatat, unlinkat): Likewise.
21479 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
21480 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
21482 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
21483 as second argument to va_arg. Otherwise, some versions of gcc
21484 warn that `if this code is reached, the program will abort'.
21486 2006-01-09 Jim Meyering <jim@meyering.net>
21488 Sync from coreutils.
21489 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
21490 Require openat-priv.h.
21492 2006-01-09 Bruno Haible <bruno@clisp.org>
21494 * modules/strnlen (Include): Use strnlen.h.
21496 2006-01-09 Bruno Haible <bruno@clisp.org>
21498 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
21500 2006-01-09 Bruno Haible <bruno@clisp.org>
21502 * lib/sysexit_.h (EX_OK): New macro.
21503 Suggested by Martin Lambers <marlam@marlam.de>.
21505 2006-01-09 Bruno Haible <bruno@clisp.org>
21507 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
21508 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
21510 2006-01-09 Bruno Haible <bruno@clisp.org>
21512 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
21515 2006-01-09 Bruno Haible <bruno@clisp.org>
21517 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
21518 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
21519 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
21520 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
21522 2006-01-09 Bruno Haible <bruno@clisp.org>
21524 * build-aux/javacomp.sh.in: New file, moved from lib/.
21525 * modules/javacomp-script (Files): Update.
21526 (configure.ac): Add AC_CONFIG_FILES invocation.
21527 (EXTRA_DIST): Remove variable.
21529 * build-aux/javaexec.sh.in: New file, moved from lib/.
21530 * modules/javaexec (Files): Update.
21531 (configure.ac): Add AC_CONFIG_FILES invocation.
21532 (EXTRA_DIST): Remove javaexec.sh.in.
21534 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
21535 * modules/csharpcomp-script (Files): Update.
21536 (configure.ac): Add AC_CONFIG_FILES invocation.
21537 (EXTRA_DIST): Remove variable.
21539 * build-aux/csharpexec.sh.in: New file, moved from lib/.
21540 * modules/csharpexec (Files): Update.
21541 (configure.ac): Add AC_CONFIG_FILES invocation.
21542 (EXTRA_DIST): Remove csharpexec.sh.in.
21544 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
21546 Sync from coreutils.
21548 Add POSIX ACL support
21549 * lib/acl.h (copy_acl, set_acl): Add declarations.
21550 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
21551 systems other than Linux.
21552 (chmod_or_fchmod): New function: use fchmod when possible,
21553 and chmod otherwise.
21554 (file_has_acl): Add a POSIX ACL implementation, with a
21555 Linux-specific subcase.
21556 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
21557 S_ISVTX from one file to another. Fall back to fchmod/chmod when
21558 acls are unsupported.
21559 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
21560 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
21563 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
21565 Sync from coreutils.
21566 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
21568 2006-01-07 Bruno Haible <bruno@clisp.org>
21570 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
21573 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
21575 * lib/strftime.c (tzname): Don't declare if it is already #defined.
21576 Problem reported for Mingw by Mark Junker.
21578 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
21580 * README: Gnulib normally doesn't generate a tarball.
21582 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
21584 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
21585 long int, not int, for nanosecond counts, so that people who are
21586 used to POSIX struct timespec won't be surprised. Reported by Jim
21589 2005-12-28 Bruno Haible <bruno@clisp.org>
21591 * build-aux/config.rpath: Update from GNU gettext.
21593 2005-12-16 Jim Meyering <jim@meyering.net>
21595 * modules/fprintftime: New module.
21596 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
21598 2005-12-16 Jim Meyering <jim@meyering.net>
21600 * m4/fprintftime.m4: New file.
21602 2005-12-16 Jim Meyering <jim@meyering.net>
21604 * lib/fprintftime.c, lib/fprintftime.h: New files.
21606 2005-12-15 Simon Josefsson <jas@extundo.com>
21608 * modules/socklen (configure.ac): Fix M4 macro name, to align with
21611 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
21613 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
21614 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
21616 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
21618 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
21619 * lib/argp-help.c (fill_in_uparams): Check if the constructed
21620 struct uparams is valid. Fall back to the default values if it is
21623 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
21625 * modules/argp (Files): Add argp-pin.c
21626 (Depends-on): dirname
21627 (lib_SOURCES): Add argp-pin.c
21629 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
21631 * m4/argp.m4: Check if program_invocation_name and
21632 program_invocation_short_name are declared and define appropriate
21633 macros if they are not.
21635 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
21637 * lib/argp-help.c (__argp_base_name): New function
21638 (__argp_short_program_name): Rewrite using __argp_base_name
21639 * lib/argp-namefrob.h: Define program_invocation_name and
21640 program_invocation_short_name if requested
21641 (__argp_base_name): Add prototype
21642 * lib/argp-parse.c (argp_def): Use gettext wrappers
21643 (argp_default_parser): Use __argp_base_name
21644 * lib/argp-pin.c: New file. Defines program_invocation_name and
21645 program_invocation_short_name on systems that lack them.
21647 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
21649 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
21650 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
21651 porting problem reported by Georg Schwarz in
21652 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
21654 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
21656 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
21657 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
21658 porting problem reported by Georg Schwarz in
21659 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
21661 2005-12-05 Bruno Haible <bruno@clisp.org>
21663 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
21664 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
21665 Reported by Mark Junker <mjscod@gmx.de>.
21667 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
21669 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
21670 Use implementation from Albert Chin, with some
21671 comments/corrections by Stepan Kasal and myself.
21673 2005-12-02 Bruno Haible <bruno@clisp.org>
21675 * gnulib-tool (func_import): Accept GPLed build tool modules when
21677 * modules/csharpcomp-script: New file.
21678 * modules/csharpcomp: Depend on it.
21679 * modules/javacomp-script: New file.
21680 * modules/javacomp: Depend on it.
21681 Suggested by Simon Josefsson.
21683 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
21685 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
21686 statement, to work around an HP-UX 10.20 compiler bug reported by
21689 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
21691 * modules/savedir (Depends-on): Add openat.
21693 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
21695 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
21696 (uintmax_t) [defined uintmax_t]: Do not declare.
21697 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
21698 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
21699 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
21700 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
21701 sake of portability to weird hosts that C allows (though we don't
21702 know of any practical examples).
21704 * lib/savedir.h (fdsavedir): New decl.
21705 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
21706 contains most of the former guts of savedir.
21707 (savedir): Use savedirstream.
21708 Include "openat.h".
21710 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
21712 * modules/obstack (Files): Add m4/ulonglong.m4.
21713 Problem reported by Davide Angelocola.
21715 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
21717 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
21718 coreutils no longer futzes with rounding modes.
21720 2005-11-14 Jim Meyering <jim@meyering.net>
21722 * lib/mkstemp-safer.c: Include <config.h>, required for possible
21723 replacement of mkstemp.
21725 2005-11-10 Simon Josefsson <jas@extundo.com>
21727 * lib/readline.c: Remove EOL.
21729 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
21731 * modules/gethrxtime (Depends-on): Add gettime.
21733 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
21735 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
21736 or gettimeofday; no longer needed.
21738 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
21740 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
21742 (gethrxtime) [! (HAVE_NANOUPTIME
21743 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
21744 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
21745 our own approximation.
21747 2005-11-08 Eric Blake <ebb9@byu.net>
21749 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
21751 2005-11-08 Eric Blake <ebb9@byu.net>
21753 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
21755 2005-11-04 Bruno Haible <bruno@clisp.org>
21757 * gnulib-tool: Implement --update mode.
21759 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
21761 Fix porting problem reported by Theodoros V. Kalamatianos.
21762 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
21763 Don't assume that futimes failing means we must fail.
21765 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
21767 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
21768 variables to suggest the intended function of the PATH_MAX check.
21770 2005-10-30 Kean Johnston <jkj@sco.com>
21772 Trivial changes to support SCO systems.
21773 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
21775 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
21776 where __ptr is null when no I/O is pending.
21778 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
21780 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
21781 leave errno alone. Problem reported by Dmitry V. Levin.
21783 2005-10-28 Simon Josefsson <jas@extundo.com>
21785 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
21788 * tests/test-gc-md2.c, tests/test-md2.c: New files.
21790 * modules/md2, modules/md2-tests: New files.
21792 2005-10-28 Simon Josefsson <jas@extundo.com>
21794 * m4/inet_ntop.m4: More tests.
21796 * m4/gc-md2.m4, md2.m4: New file.
21798 2005-10-28 Simon Josefsson <jas@extundo.com>
21800 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
21801 "restrict" keywords, as per POSIX. Protect the function
21802 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
21803 Don't use K&R prototypes. Check the sprintf return values.
21804 Re-define EAFNOSUPPORT if not present. Indent.
21806 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
21807 suggested by Bruno Haible <bruno@clisp.org>.
21809 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
21811 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
21813 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
21816 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
21818 * lib/md2.h, lib/md2.c: New files.
21820 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
21822 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
21823 errno alone. Problem reported by Frederic Jolliton.
21825 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
21827 * modules/verify (License): Change from GPL to LGPL. This is a
21828 tiny module and there are apparently near-equivalents that are
21829 under the BSD license.
21831 2005-10-24 Simon Josefsson <jas@extundo.com>
21833 * modules/sha1: Relicense to LGPL.
21835 2005-10-24 Simon Josefsson <jas@extundo.com>
21837 * lib/md4.h: Shrink buffer size, now that we changed the type.
21839 2005-10-23 Simon Josefsson <jas@extundo.com>
21841 * gnulib-tool (func_import): Fix --tests-base.
21843 2005-10-22 Simon Josefsson <jas@extundo.com>
21845 * modules/arcfour (Depends-on): Need stdint.
21847 2005-10-22 Simon Josefsson <jas@extundo.com>
21849 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
21850 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
21852 2005-10-22 Simon Josefsson <jas@extundo.com>
21854 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
21855 suggested by Bruno Haible <bruno@clisp.org>.
21857 2005-10-22 Simon Josefsson <jas@extundo.com>
21859 * lib/crc.h: Include stddef.h, for size_t.
21861 2005-10-22 Simon Josefsson <jas@extundo.com>
21863 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
21864 arcfour_context struct (simplify test vector testing in GNU
21867 2005-10-21 Simon Josefsson <jas@extundo.com>
21869 * modules/des, modules/des-tests: New files.
21871 * modules/gc-des, modules/gc-des-tests: New files.
21873 * tests/test-des.c, tests/test-gc-des.c: New file.
21875 2005-10-21 Simon Josefsson <jas@extundo.com>
21877 * modules/arctwo, modules/arctwo-tests: New files.
21879 * tests/test-arctwo.c: New file.
21881 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
21883 * tests/test-gc-arctwo.c: New file.
21885 2005-10-21 Simon Josefsson <jas@extundo.com>
21887 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
21888 Bruno Haible <bruno@clisp.org>.
21890 * m4/gc-des.m4: New file.
21892 2005-10-21 Simon Josefsson <jas@extundo.com>
21894 * m4/arctwo.m4: New file.
21896 * m4/gc-arctwo.m4: New file.
21898 2005-10-21 Simon Josefsson <jas@extundo.com>
21900 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
21903 2005-10-21 Simon Josefsson <jas@extundo.com>
21905 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
21908 * lib/hmac-sha1.c (hmac_sha1): Likewise.
21910 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
21911 Bruno Haible <bruno@clisp.org>.
21913 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
21916 2005-10-21 Simon Josefsson <jas@extundo.com>
21918 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
21920 2005-10-21 Simon Josefsson <jas@extundo.com>
21922 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
21924 2005-10-21 Simon Josefsson <jas@extundo.com>
21926 * lib/des.h, lib/des.c: New files.
21928 * lib/gc-gnulib.c: Support DES.c
21930 2005-10-21 Simon Josefsson <jas@extundo.com>
21932 * lib/arctwo.h, lib/arctwo.c: New files.
21934 * lib/gc-gnulib.c: Support ARCTWO.
21936 2005-10-21 Simon Josefsson <jas@extundo.com>
21938 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
21939 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21941 2005-10-21 Simon Josefsson <jas@extundo.com>
21943 * gnulib-tool (func_import, func_create_testdir): Define automake
21944 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
21945 Makefile.am snippet),
21946 suggested by Bruno Haible <bruno@clisp.org>.
21948 * modules/gc (Makefile.am): Use it.
21950 2005-10-21 Bruno Haible <bruno@clisp.org>
21952 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
21955 2005-10-19 Simon Josefsson <jas@extundo.com>
21957 * tests/test-gc-rijndael.c: New file.
21959 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
21961 2005-10-19 Simon Josefsson <jas@extundo.com>
21963 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
21966 2005-10-19 Simon Josefsson <jas@extundo.com>
21968 * tests/test-gc-arcfour.c: New file.
21970 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
21972 2005-10-19 Simon Josefsson <jas@extundo.com>
21974 * modules/gc-md4, modules/gc-md4-tests: New file.
21976 * tests/test-gc-md4.c: New file.
21978 2005-10-19 Simon Josefsson <jas@extundo.com>
21980 * m4/gc-md4.m4: New file.
21982 2005-10-19 Simon Josefsson <jas@extundo.com>
21984 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
21985 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
21988 2005-10-19 Simon Josefsson <jas@extundo.com>
21990 * m4/gc-arcfour.m4: New file.
21992 * m4/gc-rijndael.m4: New file.
21994 2005-10-19 Simon Josefsson <jas@extundo.com>
21996 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
21998 2005-10-19 Simon Josefsson <jas@extundo.com>
22000 * lib/gc-gnulib.c: Support ARCFOUR.
22002 2005-10-19 Simon Josefsson <jas@extundo.com>
22004 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
22007 * lib/gc.h: Add ECB enum type.
22009 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
22011 2005-10-18 Simon Josefsson <jas@extundo.com>
22013 * tests/test-md5.c: New file.
22015 * modules/md5-tests: New file.
22017 2005-10-18 Simon Josefsson <jas@extundo.com>
22019 * tests/test-md4.c: New file.
22021 * modules/md4, modules/md4-tests: New files.
22023 2005-10-18 Simon Josefsson <jas@extundo.com>
22025 * m4/md4.m4: New file.
22027 2005-10-18 Simon Josefsson <jas@extundo.com>
22029 * lib/md4.h, lib/md4.c: New files, based on md5.?.
22031 2005-10-17 Stepan Kasal <kasal@ucw.cz>
22033 * gnulib-tool (func_create_testdir): Omit the second check whether
22034 BUILT_SOURCES in nonempty.
22036 2005-10-17 Simon Josefsson <jas@extundo.com>
22038 * tests/test-rijndael.c: New file.
22040 2005-10-17 Simon Josefsson <jas@extundo.com>
22042 * modules/sha1: Depend on stdint instead of md5.
22044 * modules/md5: Depend on stdint, remove uint32_t.
22046 2005-10-17 Simon Josefsson <jas@extundo.com>
22048 * modules/gc-sha1-tests: New file.
22050 * tests/test-gc-sha1.c: New file.
22052 2005-10-17 Simon Josefsson <jas@extundo.com>
22054 * m4/md5.m4: Remove call to uint32_t.m4.
22056 2005-10-17 Simon Josefsson <jas@extundo.com>
22058 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
22060 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
22063 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
22065 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
22067 2005-10-17 Simon Josefsson <jas@extundo.com>
22069 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
22071 2005-10-17 Simon Josefsson <jas@extundo.com>
22073 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
22075 2005-10-17 Simon Josefsson <jas@extundo.com>
22077 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
22079 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
22081 2005-10-17 Bruno Haible <bruno@clisp.org>
22083 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
22084 that it can also be used in a test.
22086 2005-10-16 Bruno Haible <bruno@clisp.org>
22088 * gnulib-tool (func_emit_tests_Makefile_am): Also define
22089 TESTS_ENVIRONMENT, so that individual tests can augment it.
22091 * gnulib-tool (func_create_testdir): Use an intermediate target for
22092 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
22093 macros, like $(ALLOCA_H), which cannot be passed through the command
22096 2005-10-15 Simon Josefsson <jas@extundo.com>
22098 * modules/rijndael-tests: New file.
22100 * modules/rijndael: New file.
22102 2005-10-15 Simon Josefsson <jas@extundo.com>
22104 * m4/rijndael.m4: New file.
22106 2005-10-15 Simon Josefsson <jas@extundo.com>
22108 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
22110 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
22112 2005-10-14 Simon Josefsson <jas@extundo.com>
22114 * tests/test-arcfour.c: New file.
22116 * modules/arcfour, modules/arcfour-tests: New files.
22118 2005-10-14 Simon Josefsson <jas@extundo.com>
22120 * m4/arcfour.m4: New file.
22122 2005-10-14 Simon Josefsson <jas@extundo.com>
22124 * lib/arcfour.h, lib/arcfour.c: New files.
22126 2005-10-14 Roland McGrath <roland@redhat.com>
22128 Import from libc. [BZ #1331]
22129 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
22131 Reported by Matej Vela <vela@debian.org>.
22133 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
22135 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
22136 include <wchar.h>; no longer needed.
22138 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
22140 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
22142 2005-10-14 Jakub Jelinek <jakub@redhat.com>
22143 and Ulrich Drepper <drepper@redhat.com>
22146 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
22147 instead of inline stream orientation test and two separate
22148 function calls. Pay no attention to USE_IN_LIBIO.
22150 2005-10-13 Simon Josefsson <jas@extundo.com>
22152 * modules/gc-hmac-md5-tests: New file.
22154 * tests/test-gc-hmac-sha1.c: New file.
22156 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
22158 * modules/gc-hmac-md5-tests: New file.
22160 * tests/test-gc-md5.c: New file.
22162 * modules/gc-md5-tests: New file.
22164 2005-10-13 Simon Josefsson <jas@extundo.com>
22166 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
22167 Move memory allocation outside of loop.
22169 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
22171 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
22172 intermediate directory is in a read-only file system. Problem
22173 reported by Eric Blake.
22175 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
22177 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
22179 2005-10-12 Simon Josefsson <jas@extundo.com>
22181 * tests/test-hmac-sha1.c: New file.
22183 * modules/hmac-sha1-tests: New file.
22185 * modules/hmac-sha1: New file.
22187 2005-10-12 Simon Josefsson <jas@extundo.com>
22189 * modules/gc-sha1: New file.
22191 2005-10-12 Simon Josefsson <jas@extundo.com>
22193 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
22195 * tests/test-gc-pbkdf2-sha1.c: New file.
22197 2005-10-12 Simon Josefsson <jas@extundo.com>
22199 * modules/gc-md5, modules/gc-hmac-md5: New files.
22201 * modules/gc (Files): Remove md5, memxor and hmac files.
22203 2005-10-12 Simon Josefsson <jas@extundo.com>
22205 * m4/gc-pbkdf2-sha1.m4: New file.
22207 * m4/gc-hmac-sha1.m4: New file.
22209 * m4/gc-sha1: New file.
22211 * m4/hmac-sha1.m4: New file.
22213 2005-10-12 Simon Josefsson <jas@extundo.com>
22215 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
22217 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
22219 2005-10-12 Simon Josefsson <jas@extundo.com>
22221 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
22222 suggested by Bruno Haible <bruno@clisp.org>.
22224 2005-10-12 Simon Josefsson <jas@extundo.com>
22226 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
22228 2005-10-12 Simon Josefsson <jas@extundo.com>
22230 * lib/gc-pbkdf2-sha1.c: New file.
22232 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
22234 2005-10-12 Simon Josefsson <jas@extundo.com>
22236 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
22238 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
22240 2005-10-12 Simon Josefsson <jas@extundo.com>
22242 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
22243 GC_USE_HMAC_MD5, respectively.
22245 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
22246 (gc_md5): Fix typo.
22248 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
22250 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
22252 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
22254 2005-10-12 Bruno Haible <bruno@clisp.org>
22256 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
22257 Reported by Stepan Kasal <kasal@ucw.cz>.
22259 2005-10-11 Simon Josefsson <jas@extundo.com>
22261 * tests/test-crc.c: New file.
22263 * modules/crc, modules/crc-tests: New files.
22265 2005-10-11 Simon Josefsson <jas@extundo.com>
22267 * m4/crc.m4: New file.
22269 2005-10-11 Simon Josefsson <jas@extundo.com>
22271 * lib/gc.h: Add gc_hash and gc_hash_buffer.
22273 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
22275 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
22277 2005-10-11 Simon Josefsson <jas@extundo.com>
22279 * lib/crc.h, lib/crc.c: New files.
22281 * lib/gc.h (gc_hash_buffer): Add doc.
22283 2005-10-11 Bruno Haible <bruno@clisp.org>
22285 * modules/c-strcasestr: New file.
22286 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
22288 2005-10-11 Bruno Haible <bruno@clisp.org>
22290 * modules/c-strcase: New file.
22291 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
22293 2005-10-11 Bruno Haible <bruno@clisp.org>
22295 * lib/strcasecmp.c: Include limits.h.
22296 (strcasecmp): Avoid integer overflow on exotic platforms.
22297 * lib/strncasecmp.c: Include limits.h.
22298 (strncasecmp): Avoid integer overflow on exotic platforms.
22299 Reported by Paul Eggert.
22301 2005-10-11 Bruno Haible <bruno@clisp.org>
22303 * lib/c-strcasestr.h: New file, from GNU gettext.
22304 * lib/c-strcasestr.c: New file, from GNU gettext.
22306 2005-10-11 Bruno Haible <bruno@clisp.org>
22308 * lib/c-strcase.h: New file, from GNU gettext.
22309 * lib/c-strcasecmp.c: New file, from GNU gettext.
22310 * lib/c-strncasecmp.c: New file, from GNU gettext.
22312 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
22314 * modules/mempcpy (License): GPL -> LGPL.
22315 * modules/strchrnul (License): Likewise.
22316 * modules/sysexits (License): Likewise.
22318 2005-10-08 Simon Josefsson <jas@extundo.com>
22320 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
22322 2005-10-07 Simon Josefsson <jas@extundo.com>
22324 * m4/memxor.m4: Remove gl_C_RESTRICT call.
22326 2005-10-06 Simon Josefsson <jas@extundo.com>
22328 * tests/test-hmac-md5.c: New file.
22330 * modules/hmac-md5-tests: New file.
22332 * modules/hmac-md5: New file.
22334 2005-10-06 Simon Josefsson <jas@extundo.com>
22336 * m4/hmac-md5.m4: New file.
22338 * m4/memxor.m4: Require gl_C_RESTRICT.
22340 2005-10-06 Simon Josefsson <jas@extundo.com>
22342 * lib/memxor.c (memxor): Avoid casts and warnings.
22344 2005-10-06 Simon Josefsson <jas@extundo.com>
22346 * lib/hmac-md5.c: New file.
22348 * lib/hmac.h: New file.
22350 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
22352 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
22353 promotes to int, not unsigned int, to catch the AIX 5.3
22356 2005-10-05 Simon Josefsson <jas@extundo.com>
22358 * modules/memxor: New file.
22360 * modules/iconv (Files): Move config.rpath to havelib, it is used
22363 * modules/havelib (Files): Add config.rpath.
22365 2005-10-05 Simon Josefsson <jas@extundo.com>
22367 * m4/memxor.m4: New file.
22369 2005-10-05 Simon Josefsson <jas@extundo.com>
22371 * lib/memxor.c (memxor): Fix compiler error.
22373 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
22374 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
22376 * lib/memxor.h, lib/memxor.c: New files.
22378 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
22379 we assume all systems have it, suggested by Jim Meyering
22380 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
22381 any systems lack sys/socket.h; mingw32 is known to lack it, but we
22382 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
22385 2005-10-05 Simon Josefsson <jas@extundo.com>
22387 * config/srclist.txt: Add glibc bug 1423 for md5.h.
22389 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
22391 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
22392 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
22393 needed, since the source code now assumes these .h files.
22395 2005-10-05 Derek Price <derek@ximbiot.com>
22397 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
22399 2005-10-05 Bruno Haible <bruno@clisp.org>
22401 * modules/stdint (License): Change to LGPL.
22403 2005-10-04 Simon Josefsson <jas@extundo.com>
22405 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
22406 D. Baushke" <mdb@gnu.org>.
22408 2005-10-04 Bruno Haible <bruno@clisp.org>
22410 * lib/verify.h (verify_true): Provide alternative definition for C++.
22412 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
22414 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
22415 (SSIZE_MAX): New macro, if not already defined.
22416 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
22419 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
22421 Sync from coreutils.
22422 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
22423 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
22424 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
22425 ULLONG_MAX doesn't work with 2.7.2.1.
22427 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
22429 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
22432 * modules/exclude (Depends-on): Depend on verify.
22433 * modules/strtoimax (Depends-on): Likewise.
22434 * modules/utimecmp (Depends-on): Likewise.
22436 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
22438 * lib/exclude.c: Include verify.h.
22439 (verify): Remove. All callers changed to use verify.h's version.
22440 * lib/strtoimax.c: Likewise.
22441 * lib/utimecmp.c: Likewis.e
22443 Sync from coreutils.
22444 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
22445 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
22446 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
22447 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
22448 bother returning ENOSYS if settimeofday or stime fails; just let
22449 them return whatever errno they want to return.
22450 * lib/utimens.c: Include unistd.h, for dup2.
22451 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
22452 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
22454 2005-10-02 Jim Meyering <jim@meyering.net>
22456 Sync from coreutils.
22457 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
22458 from glibc-2.2.5 that fails for read-only files.
22460 2005-10-02 Jim Meyering <jim@meyering.net>
22462 Sync from coreutils.
22463 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
22464 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
22465 `#if HAVE_CONFIG_H'.
22466 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
22467 Remove AT_FDCWD test.
22468 Do not consume the fd unless successful.
22469 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
22470 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
22471 block, so that we don't even try to compile it if settimeofday is
22472 available. This works around a compilation failure on OSF1 V5.1,
22473 due to stime requiring a `long int*' while tv_sec is `int'.
22475 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
22477 Sync from coreutils.
22478 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
22479 against `yes', rather than just testing for nonempty.
22481 2005-10-01 Simon Josefsson <jas@extundo.com>
22483 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
22486 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
22487 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
22488 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
22489 freeaddrinfo and gai_strerror are declared by the POSIX headers.
22490 Check if struct addrinfo is declared.
22492 2005-10-01 Simon Josefsson <jas@extundo.com>
22494 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
22495 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
22496 AI_* and EAI_* definitions. Protect function declarations.
22498 2005-10-01 Jim Meyering <jim@meyering.net>
22500 Sync from coreutils.
22502 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
22503 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
22504 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
22505 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
22506 in the inet and nsl libraries. Required on Solaris 5.7.
22508 2005-10-01 Jim Meyering <jim@meyering.net>
22510 Sync from coreutils.
22511 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
22512 in the inet and nsl libraries. Required on Solaris 5.7.
22514 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
22516 * lib/getdelim.c (getdelim): Remove unused variables.
22518 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
22520 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
22521 so that the code works even with ancient cpp. Portability problem
22522 with GCC 2.7.2.1 reported by Thomas M.Ott.
22524 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
22526 * modules/regex (Depends-on): Add strcase.
22528 * modules/gethostname (Licence): Change from GPL to LGPL, since
22529 gethostname.c is a trivial implementation of a standard library
22531 * modules/poll (License): Change from GPL to LGPL, since it's
22532 derived from LGPL code.
22534 2005-09-27 Jim Meyering <jim@meyering.net>
22536 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
22539 * lib/intprops.h (signed_type_or_expr__): Define.
22540 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
22541 for unsigned types.
22543 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
22545 * lib/verify.h (verify_expr): Remove, replacing with:
22546 (verify_true): New macro that returns true instead of void.
22547 (verify_type__): Remove.
22548 (verify): Use verify_true rather than verify_type__.
22550 2005-09-26 Bruno Haible <bruno@clisp.org>
22552 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
22554 (lib_SOURCES): Remove mbchar.c.
22555 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
22556 (Files): Add m4/mbrtowc.m4.
22557 * modules/mbiter: Likewise.
22558 * modules/mbuiter: Likewise.
22560 2005-09-26 Bruno Haible <bruno@clisp.org>
22562 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
22563 compile mbchar.c if they are not both present.
22564 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
22565 * m4/mbiter.m4 (gl_MBITER): Likewise.
22566 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
22567 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
22568 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
22570 2005-09-25 Jim Meyering <jim@meyering.net>
22572 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
22573 also uses socklen_t.
22575 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
22577 * lib/utimens.c (ENOSYS): Define if not already defined.
22578 (futimens): Support having a null PATH if the file descriptor
22581 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
22583 (__attribute): Define to empty unless GCC 3.1 or later.
22584 This works around a core dump on OpenBSD 3.4, which has GCC
22585 2.95.3, which dumps core when given __attribute__(()). It also
22586 simplifies other tests, since we really don't want to bother with
22587 worrying about which ancient version of GCC supported what.
22588 Original problem reported by Yoann Vandoorselaere, with part of
22589 the fix suggested by Derek Price.
22591 2005-09-24 Jim Meyering <jim@meyering.net>
22593 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
22594 so we can once again use a positive bitfield width of 1 -- now we
22595 don't have to explain why we were using a bitfield width of 2.
22597 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
22599 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
22600 and similarly for the other external symbols. Problem reported
22603 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
22604 bug reported by Jim Meyering.
22606 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
22607 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
22608 not needed, since socklen is a prerequisite module.
22610 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
22612 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
22613 Problem reported by Eric Blake.
22614 (getaddrinfo): Initialize se so that it's not garbage.
22615 Redo internal storage allocation so that it doesn't make unportable
22616 assumptions about alignment.
22619 * lib/utimens.c (futimens): Use futimesat if available.
22620 Prefer it to futimes since it doesn't have the futimes bug.
22622 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
22623 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
22624 Instead, declare a function that returns a pointer to an array,
22625 and use verify_type__ to declare the size of the array.
22626 Problem and germ of a solution reported by Bruno Haible.
22627 (verify_type__): Use 2, not 1, for bitfield size, to avoid
22628 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
22630 2005-09-23 Jim Meyering <jim@meyering.net>
22632 Sync from coreutils.
22633 Correct build failure (socklen_t not defined) on at least
22634 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
22635 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
22637 2005-09-23 Jim Meyering <jim@meyering.net>
22639 * modules/getaddrinfo (Depends-on): Add socklen.
22641 2005-09-23 Bruno Haible <bruno@clisp.org>
22643 * tests/test-verify.c: New file.
22645 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
22647 Sync from coreutils.
22649 * modules/argmatch (Depends-on): Add verify.
22650 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
22652 * modules/save-cwd (Depends-on): Likewise.
22654 * modules/openat (Files): Add lib/openat-die.c.
22655 (Depends-on): Remove error, exitfail.
22658 * modules/verify: New file.
22659 * MODULES.html.sh (Diagnostics <assert.h>): New section,
22660 with "verify" module.
22662 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
22664 Sync from coreutils.
22666 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
22667 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
22668 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
22669 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
22670 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
22671 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
22672 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
22673 Don't bother checking for string.h, stdlib.h, unistd.h.
22674 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
22675 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
22677 * m4/jm-macros.m4 (gl_MACROS): Likewise.
22678 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
22680 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
22681 (gl_GETDATE): Use it.
22683 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
22685 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
22687 Sync from coreutils.
22689 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
22691 * lib/argmatch.h: Include verify.h
22692 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
22693 (ARGMATCH_ASSERT): Remove; unused.
22694 * lib/canonicalize.c: Assume STDC_HEADERS.
22695 * lib/exclude.c: Include "strcase.h".
22696 * lib/regex_internal.h [!defined _LIBC]: Likewise.
22697 * lib/getusershell.c: Include stdio--.h rather than stdio.h
22699 (getusershell): Call fopen, not fopen_safer.
22700 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
22701 Do not include unistd-safer.h.
22702 (save_cwd): Don't call fd_safer; no longer needed
22703 now that we include fcntl--.h.
22705 * lib/getdate.y (relative_time): New type.
22706 (RELATIVE_TIME_0): New constant.
22707 (parser_control): Use relative_time instead of doing it ourselves.
22708 (%union): Add new relative_time rel member.
22709 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
22711 (relunit, relunit_snumber): Now of type rel.
22712 (zone, rel, relunit, get_date): Adjust to above changes.
22714 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
22715 Do not include unistd-safer.h.
22716 (getloadavg): Don't call fd_safer; no longer needed
22717 now that we include fcntl--.h.
22719 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
22720 (make_dir_parents): Treat ENOSYS like EEXIST.
22722 Improve quality of diagnostics on restore_cwd failure.
22723 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
22724 (make_dir_parents): Last arg is now int * (for errno), not bool *.
22725 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
22726 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
22727 each time through the loop. Do not diagnose restore_cwd failure;
22728 that is the caller's job (and perhaps the caller does not care).
22730 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
22731 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
22732 If the file already exists but is not a directory, don't bother
22733 to try to make its parents.
22734 Close potential file descriptor leak if we can't chdir("/") (!).
22735 Don't always return true if chdir($PWD) fails; return true only
22736 if the requested action was done successfully (except for the
22738 Don't log final directory unless we actually made it.
22739 Refactor to avoid duplicate code to fix up permissions.
22740 Don't attempt to fix up parent permissions if chdir($PWD) fails.
22742 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
22743 to make it a bit faster and (I hope) clearer.
22744 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
22745 Fix bug in formats like %2N.
22747 * lib/verify.h: New file.
22749 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
22751 Sync from coreutils.
22752 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
22754 2005-09-22 Jim Meyering <jim@meyering.net>
22756 Sync from coreutils.
22758 * m4/lstat.m4 (gl_FUNC_LSTAT):
22759 Use AC_LIBSOURCES to require lstat.c and lstat.h.
22760 Remove obsolete comment.
22761 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
22762 * m4/xstrtod.m4: Likewise.
22764 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
22766 2005-09-22 Jim Meyering <jim@meyering.net>
22768 Sync from coreutils.
22770 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
22772 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
22773 the .tm_year member, since otherwise gcc-4.0 would now warn about
22774 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
22776 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
22777 order to avoid an unsuppressible warning from gcc on 64-bit systems.
22779 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
22780 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
22781 when run in a time zone for which daylight savings time is in effect
22782 for the starting date.
22784 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
22785 stop us from restricting permissions of just-created absolute-named
22787 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
22788 to restore initial working directory.
22789 * lib/mkdir-p.c (make_dir_parents): New parameter:
22790 different_working_dir, to tell caller if/when we change the working
22791 directory and are unable to return to the initial one.
22792 * lib/mkdir-p.h (make_dir_parents): Update prototype.
22793 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
22794 `return false'. This fixes a bug introduced on 2004-07-30.
22796 * lib/openat.c (fdopendir): Be sure to close the supplied
22797 file descriptor before returning. This makes our replacement
22798 implementation a little closer to Solaris's, where fdopendir
22799 ties the file descriptor to the returned DIR* pointer.
22800 * lib/openat.c (unlinkat): New function.
22801 * lib/openat.h (unlinkat): Add prototype.
22802 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
22803 (openat_restore_fail): Rename from openat_restore_die.
22804 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
22806 Provide an alternative to exiting immediately upon save_cwd or
22807 restore_cwd failure. Now, an application can arrange e.g.,
22808 to perform a longjump in that case.
22809 * lib/openat.c: Include dirname.h.
22810 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
22811 (rpl_openat, fdopendir, fstatat): Call openat_save_die
22812 and openat_restore_die rather than calling error directly.
22813 Don't include "error.h" or "exitfail.h"; they're no longer needed.
22815 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
22816 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
22819 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
22820 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
22821 int utc, int nanoseconds);
22823 date should not have to allocate a megabyte of virtual memory to
22824 handle a format argument like +%1048575T. When implemented with
22825 strftime, it must allocate such a buffer, use strftime to fill it
22826 in, print it, then free it.
22827 With fprintftime, it simply prints everything and exits.
22828 With no need for memory allocation, that's one fewer way to fail.
22829 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
22830 optional field width, not before, so we accept %9:z, not %:9z.
22831 (my_strftime): Be sure to use L_('x') for literals.
22833 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
22834 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
22835 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
22836 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
22837 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
22838 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
22839 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
22840 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
22841 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
22842 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
22843 * lib/xgethostname.c, lib/xreadlink.c:
22844 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
22846 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
22847 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
22848 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
22849 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
22850 and don't include <sys/file.h>).
22852 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
22854 Sync from coreutils.
22856 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
22857 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
22858 [!LDAV_DONE]: Avoid unused variable warning.
22860 2005-09-21 Bruno Haible <bruno@clisp.org>
22862 * lib/unicodeio.h (unicode_to_mb): New declaration.
22864 2005-09-20 Derek Price <derek@ximbiot.com>
22866 * lib/getaddrinfo.c: Don't include <netdb.h> included from
22869 2005-09-20 Bruno Haible <bruno@clisp.org>
22871 * gnulib-tool: Remove trailing slashes from the values specified for
22872 --source-base, --m4-base, --tests-base, --aux-dir.
22873 Suggested by Simon Josefsson <jas@extundo.com>.
22875 2005-09-20 Bruno Haible <bruno@clisp.org>
22877 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
22878 func_modules_to_filelist, func_import, func_create_testdir): Make all
22879 sorting results locale-independent, so that gnulib-cache.m4 doesn't
22880 change when gnulib-tool is invoked in a different locale.
22882 2005-09-19 Simon Josefsson <jas@extundo.com>
22884 * m4/socklen.m4: Fix typo.
22886 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22888 Use a consistent style for including <config.h>.
22889 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
22890 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
22891 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
22892 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
22893 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
22894 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
22895 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
22896 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
22897 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
22898 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
22899 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
22900 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
22901 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
22902 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
22903 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
22904 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
22905 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
22906 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
22907 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
22908 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
22909 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
22910 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
22911 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
22912 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
22913 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
22914 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
22915 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
22916 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
22917 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
22918 lib/xstrtoumax.c, lib/yesno.c:
22919 Standardize inclusion of config.h.
22920 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
22921 lib/inttostr.h: Removed inclusion of config.h from header files.
22922 * lib/inttostr.c: Adjusted in-tree users.
22923 * lib/timespec.h: Remove superfluous warning to include config.h.
22924 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
22925 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
22926 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
22927 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
22928 config.h with HAVE_CONFIG_H.
22930 2005-09-19 Jim Meyering <jim@meyering.net>
22932 * modules/pathmax (License): Change to LGPL.
22934 2005-09-19 Derek Price <derek@ximbiot.com>
22936 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
22938 2005-09-19 Bruno Haible <bruno@clisp.org>
22940 * gnulib-tool (import): Provide default for --tests-base.
22942 2005-09-19 Bruno Haible <bruno@clisp.org>
22944 * doc/quote.texi: New file, extracted from gnulib.texi.
22945 * doc/ctime.texi: New file, extracted from gnulib.texi.
22946 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
22947 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
22948 * doc/gnulib.texi: Include them.
22950 2005-09-18 Bruno Haible <bruno@clisp.org>
22953 * gnulib-tool (func_readlink): New function.
22954 (func_ln_if_changed): Use it.
22956 2005-09-18 Bruno Haible <bruno@clisp.org>
22958 * gnulib-tool: Support --with-tests also with --import.
22959 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
22960 (func_import): Use variables $testsbase and $inctests. Emit a
22961 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
22962 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
22963 SUBDIRS += $testsdir.
22964 (func_create_testdir): Update.
22966 2005-09-18 Bruno Haible <bruno@clisp.org>
22968 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
22969 instead of $dry_run.
22970 (func_cp_if_changed, func_mv_if_changed): Remove functions.
22971 (func_ln_if_changed): Don't handle dry-run here.
22972 (func_import): In dry-run mode, detect more precisely which actions
22973 would be performed, and don't use "...ing" verbs.
22975 2005-09-18 Bruno Haible <bruno@clisp.org>
22977 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
22978 (func_import): Use join on two temporary files instead of three nested
22979 loops, in order to determine which files are new or old.
22981 2005-09-18 Bruno Haible <bruno@clisp.org>
22983 * gnulib-tool (func_import): Comment out code that spits out the
22984 new files with --dry-run.
22986 2005-09-18 Bruno Haible <bruno@clisp.org>
22988 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
22990 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
22992 * lib/stat-time.h: New file.
22993 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
22994 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
22995 in a different way.
22996 (timespec_cmp): New function.
22997 * lib/utimecmp.c: Include stat-time.h.
22998 (SYSCALL_RESOLUTION): Depend on whether various struct stat
22999 members exist, not on the obsolescent ST_MTIM_NSEC.
23000 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
23002 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
23004 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
23006 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
23008 * MODULES.html.sh (File system functions): Add stat-time.
23009 * modules/stat-time: New file.
23010 * modules/timespec (Files): Remove m4/st_mtim.m4; this
23011 is now done in a different way, by the stat-time module.
23012 * modules/utimecmp (Depends-on): Add stat-time.
23014 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
23016 * m4/st_mtim.m4: Remove. Superseded by...
23017 * m4/stat-time.m4: New file.
23018 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
23019 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
23021 2005-09-15 Derek Price <derek@ximbiot.com>
23023 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
23025 2005-09-15 Derek Price <derek@ximbiot.com>
23027 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
23028 * lib/regex_internal.c: Ditto, using this...
23029 (__GNUC_PREREQ): ...new macro.
23030 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
23032 (__GNUC_PREREQ): ...this new macro.
23034 * lib/strstr.h: Include string.h. Define strstr as a macro here.
23036 2005-09-15 Derek Price <derek@ximbiot.com>
23037 Paul Eggert <eggert@cs.ucla.edu>
23039 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
23040 changes, consolidating in...
23041 * lib/regex_internal.h: ...this file.
23043 2005-09-13 Jim Meyering <jim@meyering.net>
23045 * lib/canon-host.c: Filter through gnu indent and reword comments
23047 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
23049 2005-09-13 Derek Price <derek@ximbiot.com>
23051 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
23053 Reported by Jim Meyering <jim@meyering.net>.
23055 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
23057 * lib/base64.c: Typo.
23058 (base64_encode): Put b64str in initialized data section.
23060 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
23062 Merge glibc and coreutils changes into gnulib, plus a few
23064 * lib/md5.c: Use #error rather than a string.
23065 (CYCLIC): New macro, from glibc source. Use it instead of rol.
23066 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
23067 (__attribute__): Define to empty for non recent-GCC.
23068 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
23069 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
23070 Renamed from their non-__ counterparts, with new macros replacing
23071 them if not _LIBC. Add __THROW attribute.
23073 (struct md5_ctx): Align buffer if using GCC.
23074 * lib/sha1.h (struct sha1_ctx): Likewise.
23075 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
23076 The old name was backwards.
23077 (NOTSWAP): Remove; not used.
23078 (rol): New macro, moved here from md5.h.
23079 (sha1_process_block): Remove a FIXME that doesn't make sense.
23081 2005-09-12 Derek Price <derek@ximbiot.com>
23083 Return usable errors from canon-host.
23084 * lib/canon-host.h: New file.
23085 * lib/canon-host.c (canon_host): Wrap...
23086 (canon_host_r): ...this new function, which now relies exclusively on
23088 (ch_strerror): New function.
23089 (last_cherror): New global.
23090 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
23092 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
23094 (freeaddrinfo): Free ai->ai_canonname when set.
23096 2005-09-12 Derek Price <derek@ximbiot.com>
23098 Make canon-host require getaddrinfo.
23099 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
23100 AC_LIBSOURCE canon-host.h. Call...
23101 (gl_PREREQ_CANON_HOST): ...this new function, which requires
23103 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
23105 2005-09-12 Derek Price <derek@ximbiot.com>
23107 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
23109 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
23111 2005-09-12 Derek Price <derek@ximbiot.com>
23113 * lib/gai_strerror.c: Include config.h when available. Include
23114 getaddrinfo.h before other headers to test interface.
23115 Reported by Larry Jones <lawrence.jones@ugs.com>.
23117 2005-09-12 Derek Price <derek@ximbiot.com>
23118 Paul Eggert <eggert@cs.ucla.edu>
23120 * modules/glob (Files): Add glob-libc.h.
23122 2005-09-12 Derek Price <derek@ximbiot.com>
23123 Paul Eggert <eggert@cs.ucla.edu>
23125 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
23126 glob_.h, glob-libc.h.
23127 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
23129 2005-09-12 Derek Price <derek@ximbiot.com>
23130 Paul Eggert <eggert@cs.ucla.edu>
23132 * lib/glob-libc.h: Renamed from glob_.h. The new version is
23133 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
23134 protecting things that should be done only in gnulib contexts.
23135 * lib/glob_.h: New file, containing only the glob things needed for
23137 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
23138 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
23139 (glob, globfree, glob_pattern_p): Now defined simply in terms of
23140 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
23141 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
23142 and to respect the namespace rules better.
23144 2005-09-08 Simon Josefsson <jas@extundo.com>
23146 * modules/socklen: New file.
23148 2005-09-08 Simon Josefsson <jas@extundo.com>
23150 * m4/socklen.m4: New file.
23152 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
23154 * modules/utimens (Files): Add m4/utimbuf.m4, since
23155 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
23156 Reported by Sergey Poznyakoff.
23158 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
23160 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
23161 definitions, since that's the preferred style in glibc.
23162 Fix a minor spacing issue, and update copyright notice to match
23165 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
23167 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
23169 2005-09-06 Simon Josefsson <jas@extundo.com>
23171 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
23172 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
23174 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
23176 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
23179 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
23181 * config/srclist.txt: Add glibc bug 1302.
23183 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
23185 Change bitset word type from unsigned int to unsigned long int,
23186 as this has better performance on typical 64-bit hosts.
23187 Port bitset code to hosts with unusual word sizes.
23188 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
23189 (build_collating_symbol):
23190 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
23191 argument is a bitset. This is merely a style issue, but it makes
23192 it clearer that an entire array is expected.
23193 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
23194 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
23195 Port to the case where bitset_word is not the same as unsigned int.
23196 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
23197 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
23199 * lib/regexec.c (check_dst_limits_calc_pos_1,
23200 check_subexp_matching_top):
23201 (build_trtable, group_nodes_into_DFAstates):
23203 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
23204 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
23205 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
23206 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
23207 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
23208 * lib/regcomp.c (optimize_subexps, lower_subexp):
23209 Work even if bitset_word has holes in its bitwise representation.
23210 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
23211 * lib/regexec.c (check_dst_limits_calc_pos_1,
23212 check_subexp_matching_top):
23214 * lib/regex_internal.c (re_string_reconstruct):
23215 Don't assume UCHAR_MAX == 255.
23216 * lib/regex_internal.h (bitset_set_all): Likewise.
23217 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
23219 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
23220 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
23222 (BITSET_WORD_MAX): New macro.
23223 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
23224 (bitset_set_all, bitset_copy): Now inline functions, not macros.
23225 (bitset_empty, bitset_copy):
23226 Prefer sizeof (bitset) to multiplying it out ourselves.
23227 (bitset_not_merge): Remove; unused.
23228 (bitset_contain): Return bool, not unsigned int with one bit on.
23229 All callers changed.
23230 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
23231 alignment than re_node_set; do this by defining a new internal
23232 type struct dests_alloc and using it to allocate memory.
23234 2005-09-05 Bruno Haible <bruno@clisp.org>
23236 * gnulib-tool (func_import): Fix comparison in handling of symbolic
23239 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
23241 * modules/size_max (Makefile.am): Add size_max.h
23243 2005-09-04 Derek Price <derek@ximbiot.com>
23245 * gnulib-tool (func_import): Fix reversed $symbolic logic.
23247 2005-09-03 Simon Josefsson <jas@extundo.com>
23249 * gnulib-tool: Fix typo.
23251 2005-09-03 Simon Josefsson <jas@extundo.com>
23253 * config/srclist.txt: Add glibc bug 1293.
23255 2005-09-03 Derek Price <derek@ximbiot.com>
23257 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
23258 From Larry Jones <lawrence.jones@ugs.com>.
23260 2005-09-02 Simon Josefsson <jas@extundo.com>
23262 * modules/socklen: New file.
23264 2005-09-02 Simon Josefsson <jas@extundo.com>
23266 * modules/havelib: New module.
23268 * modules/gettext, modules/iconv, modules/lock, modules/readline:
23271 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
23273 Check for arithmetic overflow when calculating sizes, to prevent
23274 some buffer-overflow issues. These patches are conservative, in the
23275 sense that when I couldn't determine whether an overflow was possible,
23276 I inserted a run-time check.
23277 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
23279 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
23280 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
23281 (re_xnrealloc, re_x2nrealloc): New inline functions.
23282 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
23283 parse_bracket_exp):
23284 (build_equiv_class, build_charclass): Check for arithmetic overflow
23285 in size expression calculations.
23286 * lib/regex_internal.c (re_string_realloc_buffers):
23287 (build_wcs_upper_buffer, re_node_set_add_intersect):
23288 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
23289 (re_dfa_add_node, register_state): Likewise.
23290 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
23291 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
23292 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
23293 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
23295 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
23297 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
23298 m4/ulonglong.m4. Problem reported by Martin Lambers.
23300 2005-09-02 Bruno Haible <bruno@clisp.org>
23302 Support for lib vs. lib64 distinction on biarch platforms.
23303 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
23304 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
23305 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
23307 2005-09-02 Bruno Haible <bruno@clisp.org>
23309 * gnulib-tool (import): In the other first-use case, provide defaults
23312 2005-09-02 Bruno Haible <bruno@clisp.org>
23314 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
23315 patches not yet found in the latest gettext release.
23317 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
23319 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
23320 to avoid a collision with bits/local_lim.h in glibc.
23321 All uses changed. Problem reported by Dmitry V. Levin in
23322 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
23324 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
23325 bugs in int versus size_t comparisons.
23326 (re_string_context_at): Fix bug where the code assumed that
23329 Use bool where appropriate.
23330 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
23331 All callers changed.
23332 (calc_eclosure_iter): Likewise, for ROOT arg.
23333 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
23334 (build_charclass_op): Likewise, for NON_MATCH arg.
23335 * lib/regex_internal.c (re_string_allocate, re_string_construct):
23336 (re_string_construct_common): Likewise, for ICASE arg.
23337 * lib/regexec.c (re_search_2_stub, re_search_stub):
23338 Likewise, for RET_LEN arg.
23339 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
23340 (set_regs): Likewise, for FL_BACKTRACK arg.
23341 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
23342 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
23343 (calc_eclosure_iter, parse_bracket_exp):
23344 Use bool for internal variables that are booleans.
23345 * lib/regexec.c (re_search_internal, check_matching,
23346 proceed_next_node):
23347 (set_regs, build_sifted_states, sift_states_bkref):
23348 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
23349 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
23350 (find_collation_sequence_value):
23352 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
23353 (re_node_set_compare):
23354 Return bool, not int. All callers changed.
23355 * lib/regexec.c (check_halt_node_context, check_dst_limits):
23356 (build_trtable, check_node_accept): Likewise.
23357 * lib/regex_internal.h: Include stdbool.h.
23359 Fix bugs uncovered when converting to bool.
23360 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
23361 failure instead of charging ahead blindly.
23362 * lib/regex_internal.c (register_state): Likewise.
23363 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
23364 for freeing internal storage.
23365 (group_nodes_into_DFA_states): Use unsigned int, not int, for
23366 bitset pieces used as boolean, to avoid undefined behavior
23367 on hosts that do int overflow checking.
23369 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
23371 * config/srclist.txt: Add glibc bugs 1285-1287.
23373 2005-09-01 Jim Meyering <jim@meyering.net>
23375 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
23376 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
23377 Require gl_STAT_MACROS, too.
23379 2005-09-01 Bruno Haible <bruno@clisp.org>
23381 * gnulib-tool (import): In the first-use case, provide defaults.
23383 2005-09-01 Bruno Haible <bruno@clisp.org>
23385 * gnulib-tool (func_import): Remove the .tmp files.
23387 2005-09-01 Bruno Haible <bruno@clisp.org>
23389 * gnulib-tool (func_import): Fix handling of symbolic links.
23391 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
23393 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
23394 old glibc regex code mishandles strings longer than 2**31 bytes.
23395 This patch fixes this when the regex code is used in gnulib
23396 (i.e., outside glibc).
23398 This patch should not affect the use of the regex code inside
23399 glibc. No doubt this problem also needs to be handled for glibc
23400 as well, but the result will be an incompatible change to the
23401 glibc ABI, and the old ABI will have to be supported too. That
23402 can be the the subject for another patch.
23404 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
23405 governing whether the rest of this patch is active. By default,
23406 the macro is disabled and the patch has no effect.
23407 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
23408 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
23409 (struct re_pattern_buffer, re_search, re_search_2, re_match):
23410 (re_match_2, re_set_registers): Use the new types.
23411 * lib/regex_internal.h (Idx, re_hashval_t): New types.
23412 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
23414 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
23415 (re_string_context_at, bin_tree_t, re_dfastate_t):
23416 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
23417 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
23418 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
23419 (re_string_char_size_at, re_string_wchar_at):
23420 (re_string_elem_size_at):
23421 Use the new types and macros to port to 64-bit hosts.
23422 Use unsigned types for internal values, so that the code
23423 mostly works even for arrays larger than SSIZE_MAX.
23424 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
23425 (search_duplicated_node, calc_eclosure_iter, fetch_number):
23426 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
23427 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
23428 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
23429 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
23430 (calc_inveclosure, parse_dup_op, build_range_exp):
23431 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
23432 (fetch_number, create_token_tree, mark_opt_subexp):
23434 * lib/regex_internal.c (re_string_construct_common,
23435 create_ci_newstate):
23436 (create_cd_newstate, re_string_allocate, re_string_construct):
23437 (re_string_realloc_buffers, build_wcs_upper_buffer):
23438 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
23439 (re_string_reconstruct, re_string_peek_byte_case):
23440 (re_string_fetch_byte_case, re_string_context_at):
23441 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
23442 (re_node_set_init_copy, re_node_set_add_intersect):
23443 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
23444 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
23445 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
23446 (re_acquire_state, re_acquire_state_context, register_state):
23448 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
23449 search_cur_bkref_entry):
23450 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
23451 (re_search_internal, re_search_2_stub, re_search_stub)
23452 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
23453 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
23454 (update_cur_sifted_state, check_dst_limits):
23455 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
23456 (check_subexp_limits, sift_states_bkref, merge_state_array):
23457 (check_subexp_matching_top, get_subexp, get_subexp_sub):
23458 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
23459 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
23460 (expand_bkref_cache, check_node_accept_bytes):
23461 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
23462 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
23463 (acquire_init_state_context, check_halt_node_context):
23464 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
23465 (sift_states_backward, clean_state_log_if_needed):
23466 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
23467 (find_recover_state, transit_state_sb, transit_state_mb):
23468 (transit_state_bkref, build_trtable, match_ctx_clean):
23470 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
23471 to work around an assumption that REG_MISSING is negative.
23473 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
23474 (seek_collating_symbol_entry) [defined _LIBC]:
23475 (lookup_collation_sequence_value) [defined _LIBC]:
23476 (build_range_exp, build_collating_symbol) [defined _LIBC]:
23477 Use prototypes rather than old-style function definitions.
23478 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
23479 (transit_state_sb) [0]:
23480 (find_collation_sequence_value) [defined _LIBC]: Likewise.
23482 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
23485 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
23486 (optimize_subexps, lower_subexp):
23487 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
23488 since the signed shift might overflow. Use 1u<<31 instead.
23489 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
23491 * lib/regexec.c (check_dst_limits_calc_pos_1,
23492 check_subexp_matching_top): Likewise.
23494 * lib/regcomp.c (optimize_subexps, lower_subexp):
23495 Use CHAR_BIT rather than 8, for clarity.
23496 * lib/regexec.c (check_dst_limits_calc_pos_1):
23497 (check_subexp_matching_top): Likewise.
23498 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
23499 have to worry about portability issues when shifting it left.
23500 Remove no-longer-needed test for table_size > 0.
23501 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
23502 in a word, as the resulting behavior is undefined.
23503 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
23504 in one case, a <= should have been an <, and in another case the
23505 whole test was missing.
23506 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
23507 the standard name CHAR_BIT.
23508 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
23509 this is not true on one's complement and signed-magnitude hosts.
23511 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
23513 (struct re_dfa_t): Remove unused member states_alloc.
23514 * lib/regcomp.c (init_dfa): Don't initialize unused members.
23516 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
23518 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
23519 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
23520 and large-file glibc and in 32-bit large-file Solaris.
23522 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
23524 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
23525 lengths fit in regoff_t; this isn't true if regoff_t is the same
23527 * lib/regex.c (re_search_internal): 5th arg is LAST_START
23528 (= START + RANGE) instead of RANGE. This avoids overflow
23529 problems when regoff_t is the same width as size_t.
23530 All callers changed.
23531 (re_search_2_stub): Check for overflow when adding the
23532 sizes of the two strings.
23533 (re_search_stub): Check for overflow when adding START
23534 to RANGE; if it occurs, substitute the extreme value.
23536 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
23538 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
23540 2005-08-31 Jim Meyering <jim@meyering.net>
23542 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
23543 a pointer-to-const.
23544 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
23545 (register_state): Likewise.
23546 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
23547 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
23548 (group_nodes_into_DFAstates): Likewise.
23550 2005-08-31 Jim Meyering <jim@meyering.net>
23552 * check-module: Add a FIXME comment.
23554 2005-08-31 Eric Blake <ebb9@byu.net>
23556 * modules/unistd-safer (Files): Add unistd--.h.
23557 * modules/stdio-safer (Files): Add stdio--.h.
23559 2005-08-31 Derek Price <derek@ximbiot.com>
23561 * lib/getdelim.c (getdelim): Return EOF on EOF.
23562 Reported by Larry Jones <lawrence.jones@ugs.com>.
23564 2005-08-31 Bruno Haible <bruno@clisp.org>
23566 Avoid unnecessary diffs in the generated lib/Makefile.am.
23567 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
23568 the generated files.
23569 (func_import): Don't set cmd.
23571 2005-08-31 Bruno Haible <bruno@clisp.org>
23573 * lib/strstr.c: Include <stddef.h>, for NULL.
23574 * lib/strcasestr.c: Likewise.
23575 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23577 2005-08-31 Bruno Haible <bruno@clisp.org>
23579 * gnulib-tool: New option --macro-prefix.
23580 (func_import): Use macro_prefix.
23581 (import): Handle option --macro-prefix.
23583 2005-08-31 Bruno Haible <bruno@clisp.org>
23585 * gnulib-tool (import): Rename most ac_* variables to cached_*.
23586 Also use new variables cached_lgpl, cached_libtool.
23588 2005-08-31 Bruno Haible <bruno@clisp.org>
23590 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
23591 always instantiating them.
23593 2005-08-31 Bruno Haible <bruno@clisp.org>
23595 * gnulib-tool (func_import): Read the previous cached settings
23596 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
23597 earlier added by gnulib but are now dropped. Warn when a gnulib file
23598 overwrites a non-gnulib file.
23600 2005-08-31 Bruno Haible <bruno@clisp.org>
23602 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
23603 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
23604 projects that don't keep autogenerated files in CVS. Put into
23605 actioncmd only the specified modules, not the transitive closure.
23607 2005-08-31 Bruno Haible <bruno@clisp.org>
23609 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
23610 Create directories that shall be filled.
23611 (import): Don't look for gl_* macros in configure.ac. Recurse across
23612 all directories containing a gnulib-cache.m4 files, if meaningful.
23614 2005-08-31 Bruno Haible <bruno@clisp.org>
23616 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
23617 (import): Set seen_libtool when we see gl_LIBTOOL.
23619 2005-08-31 Bruno Haible <bruno@clisp.org>
23621 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
23622 declaration macro definitions from generated gnulib.m4.
23624 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
23626 * lib/iconvme.h: Add prototype for iconv_alloc.
23628 2005-08-29 Simon Josefsson <jas@extundo.com>
23630 * lib/iconvme.c: Fix errno.
23632 2005-08-29 Bruno Haible <bruno@clisp.org>
23634 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
23635 that it works when the directory contains spaces.
23637 2005-08-29 Bruno Haible <bruno@clisp.org>
23639 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
23641 2005-08-29 Bruno Haible <bruno@clisp.org>
23643 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
23646 2005-08-29 Bruno Haible <bruno@clisp.org>
23647 and Stepan Kasal <kasal@ucw.cz>
23649 * check-module: If more parameters are given, check each of them
23650 separately; add more exceptions, as noted by Jim Meyering.
23651 (check_module): New procedure.
23652 (%exempt_header): Now contains all exceptions.
23654 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
23656 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
23658 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
23660 * lib/iconvme.c: Split iconv_string into iconv_alloc.
23662 2005-08-28 Bruno Haible <bruno@clisp.org>
23664 * m4/gnulib-tool.m4: New file.
23666 2005-08-27 Jim Meyering <jim@meyering.net>
23668 * modules/unistd-safer (Files): Add pipe-safer.c.
23669 * modules/fcntl-safer (Files): Add creat-safer.c.
23671 2005-08-27 Jim Meyering <jim@meyering.net>
23673 * m4/stdlib-safer.m4: New file. From coreutils.
23674 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
23675 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
23676 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
23677 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
23678 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
23680 2005-08-27 Jim Meyering <jim@meyering.net>
23682 * lib/fopen-safer.c: Merge minor changes from coreutils.
23683 * lib/dup-safer.c: Likewise.
23684 * lib/fd-safer.c: Likewise.
23686 Merge from coreutils.
23687 * lib/stdio--.h: New file.
23688 * lib/stdlib--.h: New file.
23689 * lib/mkstemp-safer.c: New file.
23691 GNU tar needs these.
23692 * lib/pipe-safer.c: New file.
23693 * lib/creat-safer.c: New file.
23694 * lib/fcntl--.h (creat): Define to creat_safer.
23695 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
23696 * lib/unistd--.h (pipe): Define to pipe_safer.
23697 * lib/unistd-safer.h: Declare pipe_safer.
23699 2005-08-26 Simon Josefsson <jas@extundo.com>
23701 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
23702 Haible <bruno@clisp.org>.
23704 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
23706 * lib/regex_internal.h: Remove all references to
23707 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
23709 (bitset_not, bitset_merge, bitset_not_merge):
23710 (bitset_mask, re_string_allocate, re_string_construct):
23711 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
23712 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
23713 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
23714 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
23715 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
23716 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
23717 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
23718 (re_acquire_state_context):
23719 Remove unnecessary forward decls.
23720 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
23721 Put __attribute at function definition,
23722 now that the function decl has been removed.
23723 * lib/regex_internal.c (re_string_peek_byte_case):
23724 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
23727 2005-08-25 Stepan Kasal <kasal@ucw.cz>
23729 * m4/regex.m4: Add AC_PREREQ(2.50).
23730 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
23732 2005-08-25 Simon Josefsson <jas@extundo.com>
23734 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
23737 2005-08-25 Simon Josefsson <jas@extundo.com>
23739 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
23740 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
23741 GLIBC specific code.
23743 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
23745 Make regex safe for g++. This fixes one real bug (an "err"
23746 that should have been "*err"). g++ problem reported by
23748 * lib/regex_internal.h (re_calloc): New macro, consistent with
23749 re_malloc etc. All callers of calloc changed to use re_calloc.
23750 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
23751 not int. All callers changed.
23752 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
23753 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
23754 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
23755 (find_recover_state): Change "err" to "*err"; this fixes what
23756 appears to be a real bug.
23757 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
23760 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
23762 * modules/regex (Depends-on): Add malloc, since the code
23763 assumes that !malloc(0) means failure.
23765 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
23767 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
23769 alloca modernization/simplification for regex.
23770 * lib/regex.c: Remove portability cruft for alloca. This no longer
23771 needs to be at the start of the file, and can be moved into
23772 regex_internal.h and simplified.
23773 * lib/regex_internal.h: Include <alloca.h>.
23774 (__libc_use_alloca) [!defined _LIBC]: New macro.
23775 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
23776 now works outside glibc.
23778 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>