New module 'environ'.
[gnulib.git] / ChangeLog
1 2008-02-24  Bruno Haible  <bruno@clisp.org>
2
3         New module 'environ'.
4         * modules/environ: New file.
5         * lib/unistd.in.h (environ): New declaration.
6         * m4/environ.m4: New file.
7         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
8         after use.
9         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
10         HAVE_DECL_ENVIRON.
11         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
12         HAVE_DECL_ENVIRON.
13         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
14         wrong claim that 'environ' is missing on some systems.
15         * modules/execute (Depends-on): Add environ.
16         * lib/execute.c (environ): Remove fallback declaration.
17         * modules/pipe (Depends-on): Add environ.
18         * lib/pipe.c (environ): Remove fallback declaration.
19         * modules/setenv (Depends-on): Add environ.
20         * lib/setenv.c (environ): Remove fallback declaration.
21         * modules/unsetenv (Depends-on): Add environ.
22         * lib/unsetenv.c (environ): Remove fallback declaration.
23         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
24         m4/environ.m4.
25         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26         (gl_PREREQ_UNSETENV): Likewise.
27
28 2008-02-24  Bruno Haible  <bruno@clisp.org>
29
30         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31
32 2008-02-20  Bob Proulx  <bob@proulx.com>
33
34         Enable use of older two part flavor 'git describe'.
35         * build-aux/git-version-gen: If using the older two part flavor of
36         git version then recreate the third part now present in the
37         newer three part flavor of git describe.
38
39 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40
41         * lib/fts.c (fts_build): Typo correction to comment.
42
43 2008-02-17  Bruno Haible  <bruno@clisp.org>
44
45         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46         generating no-op conflicts.
47
48 2008-02-17  Bruno Haible  <bruno@clisp.org>
49
50         Speed up by 10%.
51         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52         result_entries, rather than an index-based loop.
53
54 2008-02-17  Bruno Haible  <bruno@clisp.org>
55
56         Speed up by 25%.
57         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58         'hashcode_cached'.
59         (entry_create): New function.
60         (entry_hashcode): Use the cached hashcode if possible.
61         (read_changelog_file, try_split_merged_entry): Use entry_create.
62
63 2008-02-17  Bruno Haible  <bruno@clisp.org>
64
65         Speed up from O(n^2) to O(n) for long ChangeLog files.
66         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
67         (read_changelog_file): Change implementation of entries_reversed list
68         to rbtreehash.
69         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
70
71 2008-02-17  Bruno Haible  <bruno@clisp.org>
72
73         New option --split-merged-entry.
74         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
75         (find_paragraph_end, try_split_merged_entry): New functions.
76         (long_options): Add option --split-merged-entry.
77         (usage): Document option --split-merged-entry.
78         (main): Implement option --split-merged-entry.
79         Reported by Eric Blake.
80
81 2008-02-17  Bruno Haible  <bruno@clisp.org>
82
83         * lib/git-merge-changelog.c: Include c-strstr.h.
84         (main): Support the "git pull --rebase" situation.
85         * modules/git-merge-changelog (Depends-on): Add c-strstr.
86         Reported by Eric Blake.
87
88 2008-02-16  Eric Blake  <ebb9@byu.net>
89
90         Avoid doubling \ in common case of "c-maybe" quoting style.
91         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
92         eliding outer quotes.
93         * lib/quotearg.h: Document this.
94         * tests/test-quotearg.c (result_strings, inputs, results_g)
95         (flag_results, locale_results): Test it by adding a new string to
96         each test group.
97         (compare_strings): Test new string.
98
99 2008-02-13  Eric Blake  <ebb9@byu.net>
100
101         Avoid trigraph quoting in default output.
102         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
103         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
104         unless explicitly requested.
105         * tests/test-quotearg.c (flag_results, main): Add additional tests.
106
107 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
108
109         Don't rely on signed integer overflowing to negative value.
110         * lib/getugroups.c (getugroups): Include <limits.h>.
111         Instead, compare against INT_MAX, and increment only if the test passes.
112
113 2008-02-13  Jim Meyering  <meyering@redhat.com>
114         and Eric Blake  <ebb9@byu.net>
115
116         Avoid shadowing warning and compile errors on Linux.
117         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
118         forwarding macros on Linux.
119         (dcgettext): Define a stub, for Linux.
120         (results_g, main): Avoid warnings.
121
122 2008-02-12  Eric Blake  <ebb9@byu.net>
123
124         Silence warning in last patch.
125         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
126
127         Quotearg part 4: add tests, fix c-maybe colon quoting.
128         * lib/quotearg.h: Improve documentation.
129         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
130         escapes when adding outer quotes.  When quoting trigraphs, use
131         valid C notation.  When quoting NUL, omit extra characters if next
132         character is not digit.  Alter prototype.
133         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
134         callers.
135         * modules/quotearg-tests: New module.
136         * tests/test-quotearg.c: New test.
137
138 2008-02-07  Eric Blake  <ebb9@byu.net>
139
140         Quotearg part 3: add flag to control outer quote elision.
141         * lib/quotearg.h (c_maybe_quoting_style): New style.
142         (enum quoting_flags): Better documentation of flags.
143         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
144         c-maybe style.
145         (quotearg_buffer_restyled): Handle new flag to elide outer
146         quotes.
147
148         Quotearg part 2: add flag that can control NUL elision.
149         * lib/quotearg.h (set_quoting_flags): New prototype.
150         * lib/quotearg.c (struct quoting_options): Add flag field.
151         (set_quoting_flags): New function.
152         (quotearg_buffer_restyled): Add flags parameter.
153         (quotearg_alloc_mem): Set the flag if length cannot be returned.
154         (quotearg_n_options): Set the flag, since length cannot be
155         returned.
156         (quoting_options_from_style): Default flags correctly.
157
158         Quotearg part 1: more wrappers, restore quotearg_char state.
159         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
160         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
161         (quotearg_colon_mem): New wrappers.
162         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
163         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
164         functions.
165         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
166         (quotearg_colon_mem): New functions.
167
168 2008-02-11  Bruno Haible  <bruno@clisp.org>
169
170         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
171         library in the current directory: it does not work with parallel make.
172         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
173
174 2008-02-11  Bruno Haible  <bruno@clisp.org>
175
176         * .gitattributes: New file.
177
178 2008-02-11  Jim Meyering  <meyering@redhat.com>
179
180         useless-if-before-free: Fix reversed exit values.
181         * build-aux/useless-if-before-free: Use correct values
182         for EXIT_MATCH and EXIT_NO_MATCH.
183
184         * build-aux/useless-if-before-free: Close stdout carefully.
185
186 2008-02-10  Bruno Haible  <bruno@clisp.org>
187
188         New module 'git-merge-changelog'.
189         * modules/git-merge-changelog: New file.
190         * lib/git-merge-changelog.c: New file.
191
192 2008-02-10  Jim Meyering  <meyering@redhat.com>
193
194         useless-if-before-free: New option: --list (-l).
195
196         useless-if-before-free: Don't exit immediately upon open failure.
197         * build-aux/useless-if-before-free: Exit 2 for errors.
198         Upon failure to open a file, don't exit immediately.
199         Rather, just warn and continue with any remaining files.
200
201 2008-02-10  Bruno Haible  <bruno@clisp.org>
202
203         New abstract list operation 'node_set_value'.
204         * lib/gl_list.h (gl_list_node_set_value): New function.
205         (struct gl_list_implementation): New field node_set_value.
206         * lib/gl_list.c (gl_list_node_set_value): New function.
207         * lib/gl_array_list.c (gl_array_node_set_value): New function.
208         (gl_array_list_implementation): Update.
209         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
210         (gl_carray_list_implementation): Update.
211         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
212         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
213         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
214         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
215         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
216         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
217         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
218         Update.
219         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
220         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
221         (gl_sublist_list_implementation): Update.
222
223 2008-02-10  Bruno Haible  <bruno@clisp.org>
224
225         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
226         Needed when ELEMENT is #defined to 'some_type *'.
227
228 2008-02-10  Jim Meyering  <meyering@redhat.com>
229
230         New script and module: useless-if-before-free
231         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
232         * build-aux/useless-if-before-free: New file.
233         * modules/useless-if-before-free: New file.
234
235         * build-aux/gitlog-to-changelog: Use committer date, not author date.
236
237         xstrtol_error: Fix typo.
238         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
239         s/exit_failure/exit_status/.
240
241 2008-02-09  Jim Meyering  <meyering@redhat.com>
242
243         New script and module: gitlog-to-changelog
244         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
245         * modules/gitlog-to-changelog: New file.
246         * build-aux/gitlog-to-changelog: New file.
247
248 2008-02-08  Jim Meyering  <meyering@redhat.com>
249
250         Avoid two "parameter unused" warnings.
251         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
252         Mark "st" as used.
253
254         Use "git COMMAND", not "git-COMMAND".
255         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
256         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
257         * build-aux/git-version-gen: Use "git status", not "git-status".
258
259 2008-02-07  Bruno Haible  <bruno@clisp.org>
260
261         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
262         Avoids a crash on Windows Vista.
263         Reported by Adam Strzelecki <ono@java.pl> via
264         Simon Josefsson <simon@josefsson.org>.
265
266 2008-02-06  Bruno Haible  <bruno@clisp.org>
267
268         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
269         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
270         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
272         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
273         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
274         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
275         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
280         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
281         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
282         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
283         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
284         left-adjust flag.
285         * tests/test-snprintf-posix.h (test_function): Likewise.
286         * tests/test-sprintf-posix.h (test_function): Likewise.
287         * tests/test-vasprintf-posix.c (test_function): Likewise.
288         * doc/posix-functions/fprintf.texi: Update.
289         * doc/posix-functions/printf.texi: Update.
290         * doc/posix-functions/snprintf.texi: Update.
291         * doc/posix-functions/sprintf.texi: Update.
292         * doc/posix-functions/vfprintf.texi: Update.
293         * doc/posix-functions/vprintf.texi: Update.
294         * doc/posix-functions/vsnprintf.texi: Update.
295         * doc/posix-functions/vsprintf.texi: Update.
296         Reported by Peter Fales <psfales@alcatel-lucent.com>.
297
298 2008-02-06  Bruno Haible  <bruno@clisp.org>
299
300         Fix bug introduced on 2008-01-26.
301         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
302
303 2008-02-06  Bruno Haible  <bruno@clisp.org>
304
305         Fix bug introduced on 2007-06-10.
306         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
307         !NEED_PRINTF_FLAG_ZERO.
308
309 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
310
311         getloadavg: use libperfstat on AIX5
312         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
313
314 2008-02-03  Bruno Haible  <bruno@clisp.org>
315
316         * lib/diffseq.h: Add comments about required #includes.
317         Reported by Michael Biggs <gnulib@doubleplum.net>.
318
319 2008-02-01  Bruno Haible  <bruno@clisp.org>
320
321         * users.txt: Add gnuit.
322
323 2008-01-31  Bruno Haible  <bruno@clisp.org>
324
325         * lib/md4.c (set_uint32): Mark as inline.
326         * lib/md5.c (set_uint32): Likewise.
327         * lib/sha1.c (set_uint32): Likewise.
328         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
329         * m4/md5.m4 (gl_MD5): Likewise.
330         * m4/sha1.m4 (gl_SHA1): Likewise.
331
332 2008-01-31  Jim Meyering  <meyering@redhat.com>
333
334         Use "sizeof VAR", rather than a literal "4".
335         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
336         * lib/md4.c (md4_read_ctx): Likewise.
337         * lib/sha1.c (sha1_read_ctx): Likewise.
338
339 2008-01-31  Simon Josefsson  <simon@josefsson.org>
340
341         * tests/test-sha1.c: New file, based on test-md5.c.
342
343         * modules/crypto/sha1-tests: New file.
344
345 2008-01-31  Simon Josefsson  <simon@josefsson.org>
346
347         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
348
349 2008-01-31  Jim Meyering  <meyering@redhat.com>
350
351         Prefer "sizeof v" over the equivalent "4".
352         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
353         * lib/md5.c (set_uint32): Likewise.
354         * lib/sha1.c (set_uint32): Likewise.
355
356 2008-01-31  Simon Josefsson  <simon@josefsson.org>
357
358         * lib/sha1.c (set_uint32): Mark function as static.
359
360 2008-01-31  Simon Josefsson  <simon@josefsson.org>
361
362         md2: clarify comments to say that alignment is not required.
363         * lib/md2.h: Remove warning about alignment in comment.
364         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
365         never been required.
366
367 2008-01-31  Simon Josefsson  <simon@josefsson.org>
368
369         md4: adapt alignment constraint fix from sha1.
370         * lib/md4.c (set_uint32): New function, from sha1.c
371         (md4_read_ctx): Use it.
372         (md4_finish_ctx): Doc fix.
373         * lib/md4.h: Doc fix.
374
375 2008-01-31  Simon Josefsson  <simon@josefsson.org>
376
377         md5: adapt alignment constraint fix from sha1.
378         * lib/md5.c (set_uint32): New function, from sha1.c
379         (md5_read_ctx): Use it.
380         (md5_finish_ctx): Doc fix.
381         * lib/md5.h: Doc fix.
382
383 2008-01-30  Peter Palfrader  <weasel@debian.org>
384
385         sha1: remove the result buffer alignment constraint
386         * lib/sha1.c (set_uint32): New function.
387         (sha1_read_ctx): Rewrite to remove the result buffer alignment
388         constraint.
389         (sha1_finish_ctx): Remove comment warning about alignment constraint.
390         * lib/sha1.h: Likewise.
391
392 2008-01-30  Andreas Schwab  <schwab@suse.de>
393             Bruno Haible  <bruno@clisp.org>
394
395         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
396         correct definition of LDBL_MIN_EXP.
397
398 2008-01-30  Karl Berry  <karl@gnu.org>
399
400         * config/srclist-update: try to preserve x bit on updates.
401         * config/srclistvars.sh: update for karl.
402
403 2008-01-29  Jim Meyering  <meyering@redhat.com>
404
405         vasnprintf.c: Avoid warning about unused label
406         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
407         "overflow" label definition and associated code with the
408         same cpp condition that guards the sole use of that label.
409
410 2008-01-26  Bruno Haible  <bruno@clisp.org>
411
412         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
413         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
414         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
415         * lib/isnanl-nolibm.h (isnanl): Likewise.
416         Reported by Paul Eggert <eggert@cs.ucla.edu>.
417
418 2008-01-26  Bruno Haible  <bruno@clisp.org>
419
420         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
421         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
422
423 2008-01-26  Bruno Haible  <bruno@clisp.org>
424
425         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
426         GCC >= 4.0 built-in.
427         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
428
429 2008-01-26  Bruno Haible  <bruno@clisp.org>
430
431         Rename isnan, applicable to 'double' only, to isnand.
432         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
433         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
434         (configure.ac): Update.
435         (Include): Replace "isnan.h" with "isnand.h".
436         * m4/isnand.m4: Renamed from m4/isnan.m4.
437         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
438         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
439         instead of isnan.c.
440         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
441         instead of HAVE_ISNAN_IN_LIBC.
442         (isnand): Renamed from isnan.
443         * lib/isnand.c: New file.
444         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
445         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
446         (Makefile.am): Update.
447         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
448         Include isnand.h instead of isnan.h.
449         (main): Test isnand instead of isnan.
450         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
451         isnan-nolibm.
452         * modules/frexp (Depends-on): Likewise.
453         * modules/frexp-tests (Depends-on): Likewise.
454         * modules/frexp-nolibm (Depends-on): Likewise.
455         * modules/frexp-nolibm-tests (Depends-on): Likewise.
456         * modules/isfinite (Depends-on): Likewise.
457         * modules/round-tests (Depends-on): Likewise.
458         * modules/signbit (Depends-on): Likewise.
459         * modules/signbit-tests (Depends-on): Likewise.
460         * modules/snprintf-posix (Depends-on): Likewise.
461         * modules/sprintf-posix (Depends-on): Likewise.
462         * modules/trunc-tests (Depends-on): Likewise.
463         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
464         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
465         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
466         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
467         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
468         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
469         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
470         * modules/vasnprintf-posix (Depends-on): Likewise.
471         * modules/vasprintf-posix (Depends-on): Likewise.
472         * modules/vfprintf-posix (Depends-on): Likewise.
473         * modules/vsnprintf-posix (Depends-on): Likewise.
474         * modules/vsprintf-posix (Depends-on): Likewise.
475         * lib/frexp.c: Include isnand.h instead of isnan.h.
476         (ISNAN): Set to isnand instead of isnan.
477         * lib/isfinite.c: Include isnand.h instead of isnan.h.
478         (gl_isfinited): Use isnand instead of isnan.
479         * lib/signbitd.c: Include isnand.h instead of isnan.h.
480         (gl_signbitd): Use isnand instead of isnan.
481         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
482         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
483         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
484         (main): Use isnand instead of isnan.
485         * tests/test-round1.c: Include isnand.h.
486         (main): Use isnand instead of isnan.
487         * tests/test-round2.c: Include isnand.h instead of isnan.h.
488         (ISNAN): Set to isnand instead of isnan.
489         * tests/test-trunc1.c: Include isnand.h.
490         (main): Use isnand instead of isnan.
491         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
492         (equal): Use isnand instead of isnan.
493         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
494         isnand-nolibm.
495         * NEWS: Mention the change.
496
497 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
498             Bruno Haible  <bruno@clisp.org>
499
500         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
501         the GCC builtins for signbits are present and set
502         REPLACE_SIGNBIT_USING_GCC if so.
503         * lib/math.in.h (signbit): Define using GCC builtins if
504         REPLACE_SIGNBIT_USING_GCC is set.
505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
506         REPLACE_SIGNBIT_USING_GCC.
507         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
508
509 2008-01-25  Jim Meyering  <meyering@redhat.com>
510
511         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
512         * lib/poll.c: Include <config.h>, not "config.h".
513         * tests/test-getaddrinfo.c: Likewise.
514
515 2008-01-25  Simon Josefsson  <simon@josefsson.org>
516
517         * modules/sockets-tests: New file.
518
519 2008-01-24  Simon Josefsson  <simon@josefsson.org>
520
521         * modules/sockets: New module, can be used to call WSA_Startup and
522         WSA_Cleanup when needed.
523
524         * lib/sockets.h, lib/sockets.c: New files.
525
526         * m4/sockets.m4: New file.
527
528         * tests/test-sockets.c: New file.
529
530 2008-01-19  Bruno Haible  <bruno@clisp.org>
531
532         * doc/posix-headers: Renamed from doc/headers.
533         * doc/posix-functions: Renamed from doc/functions.
534         * doc/gnulib.texi: Update.
535
536 2008-01-19  Bruno Haible  <bruno@clisp.org>
537
538         * doc/glibc-functions/strcasestr.texi: Include contents of
539         doc/functions/strcasestr.texi, fixing the list of platforms.
540         * doc/functions/strcasestr.texi: Remove file.
541
542 2008-01-19  Bruno Haible  <bruno@clisp.org>
543
544         * doc/glibc-functions/memmem.texi: Include contents of
545         doc/functions/memmem.texi.
546         * doc/functions/memmem.texi: Remove file.
547
548 2008-01-18  Bruno Haible  <bruno@clisp.org>
549
550         * doc/glibc-functions/*.texi: New files.
551         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
552         to use the new files.
553
554 2008-01-17  Bruno Haible  <bruno@clisp.org>
555
556         * tests/test-gethostname.c (main): Fix printf statement.
557
558 2008-01-17  Simon Josefsson  <simon@josefsson.org>
559
560         * modules/gethostname-tests: New file.
561
562         * tests/test-gethostname.c: New file.
563
564 2008-01-17  Simon Josefsson  <simon@josefsson.org>
565
566         * lib/gethostname.c: Include string.h unconditionally, strncpy is
567         used by the UNAME case.  Reported by Bruno Haible
568         <bruno@clisp.org>.
569
570 2008-01-17  Eric Blake  <ebb9@byu.net>
571
572         Convert c-strcasestr to be more efficient.
573         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
574         (Depends-on): Add c-strcase, remove malloca, strnlen.
575         * tests/test-c-strcasestr.c (main): Enhance test.
576         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
577
578 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
579
580         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
581         Use it in creating po/Makevars.
582
583 2008-01-15  Simon Josefsson  <simon@josefsson.org>
584
585         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
586         Applications that requires it should initialize libgcrypt
587         manually.
588
589 2008-01-16  Simon Josefsson  <simon@josefsson.org>
590
591         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
592
593 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
594
595         Fix problem with getdate on mingw32 reported by Simon Josefsson
596         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
597         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
598         tzname", when deciding whether to declare tzname.
599         * lib/strftime.c (tzname): Likewise.
600
601 2008-01-15  Bruno Haible  <bruno@clisp.org>
602
603         Work around a MacOS X 10.5 bug in frexpl().
604         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
605         * doc/functions/frexpl.texi: Document the bug.
606         Reported by Elias Pipping <pipping@gentoo.org>.
607
608 2008-01-14  Eric Blake  <ebb9@byu.net>
609
610         Touch up previous patch.
611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
612         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
613
614         Convert strcasestr module to use Two-Way algorithm.
615         * modules/strcasestr-simple: New module, based on the old
616         strcasestr, but with Two-Way rather than KMP.
617         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
618         * lib/string.in.h (rpl_strcasestr): Declare.
619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
620         performance.
621         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
622         * modules/string (Makefile.am): Support strcasestr.
623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
624         * modules/strcasestr-tests (Depends-on): Check for alarm.
625         * tests/test-strcasestr.c: Augment test.
626         * lib/str-two-way.h: Clean up stray macro.
627         * NEWS: Document new module.
628         * MODULES.html.sh (string handling): Likewise.
629         * doc/functions/strcasestr.texi: New file.
630         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
631         here, since it is not a POSIX function.
632
633 2008-01-14  Colin Watson  <cjwatson@debian.org>
634             Bruno Haible  <bruno@clisp.org>
635
636         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
637         works fine; if not, set REPLACE_STRSIGNAL.
638         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
640         REPLACE_STRSIGNAL.
641         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
642         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
643         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
644
645 2008-01-14  Bruno Haible  <bruno@clisp.org>
646
647         * modules/strsignal (Include): Change to <string.h>.
648
649 2008-01-14  Colin Watson  <cjwatson@debian.org>
650
651         * modules/argp (Notice): Add a notice recommending to change
652         XGETTEXT_OPTIONS.
653         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
654
655 2008-01-13  Colin Watson  <cjwatson@debian.org>
656
657         * modules/strsignal-tests: New file.
658         * tests/test-strsignal.c: New file.
659
660         * lib/strsignal.c: New file, from glibc with modifications.
661         * lib/siglist.h: New file, from glibc with modifications.
662         * lib/string.in.h (strsignal): New declaration.
663         * m4/strsignal.m4: New file.
664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
665         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
666         * modules/strsignal: New file.
667         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
668         HAVE_DECL_STRSIGNAL.
669
670 2008-01-13  Bruno Haible  <bruno@clisp.org>
671
672         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
673         locale encoding is not ASCII. Needed for OpenBSD 4.0.
674         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
675         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
676
677 2008-01-13  Bruno Haible  <bruno@clisp.org>
678
679         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
680         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
681         * lib/argp.h (__attribute__): Likewise.
682         * lib/c-stack.c (__attribute__): Likewise.
683         * lib/error.h (__attribute__): Likewise.
684         * lib/fts.c (__attribute__): Likewise.
685         * lib/openat.h (__attribute__): Likewise.
686         * lib/stdio.in.h (__attribute__): Likewise.
687         * lib/string.in.h (__attribute__): Likewise.
688         * lib/utimens.c (__attribute__): Likewise.
689         * lib/vasnprintf.h (__attribute__): Likewise.
690         * lib/xalloc.h (__attribute__): Likewise.
691         * lib/xprintf.h (__attribute__): Likewise.
692         * lib/xstrtol.h (__attribute__): Likewise.
693         * lib/xvasprintf.h (__attribute__): Likewise.
694
695 2008-01-12  Bruno Haible  <bruno@clisp.org>
696
697         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
698         * doc/glibc-headers/a.out.texi: New file.
699         * doc/glibc-headers/aliases.texi: New file.
700         * doc/glibc-headers/alloca.texi: New file.
701         * doc/glibc-headers/ar.texi: New file.
702         * doc/glibc-headers/argp.texi: New file.
703         * doc/glibc-headers/argz.texi: New file.
704         * doc/glibc-headers/byteswap.texi: New file.
705         * doc/glibc-headers/crypt.texi: New file.
706         * doc/glibc-headers/endian.texi: New file.
707         * doc/glibc-headers/envz.texi: New file.
708         * doc/glibc-headers/err.texi: New file.
709         * doc/glibc-headers/error.texi: New file.
710         * doc/glibc-headers/execinfo.texi: New file.
711         * doc/glibc-headers/fpu_control.texi: New file.
712         * doc/glibc-headers/fstab.texi: New file.
713         * doc/glibc-headers/fts.texi: New file.
714         * doc/glibc-headers/getopt.texi: New file.
715         * doc/glibc-headers/ieee754.texi: New file.
716         * doc/glibc-headers/ifaddrs.texi: New file.
717         * doc/glibc-headers/libintl.texi: New file.
718         * doc/glibc-headers/mcheck.texi: New file.
719         * doc/glibc-headers/mntent.texi: New file.
720         * doc/glibc-headers/obstack.texi: New file.
721         * doc/glibc-headers/paths.texi: New file.
722         * doc/glibc-headers/printf.texi: New file.
723         * doc/glibc-headers/pty.texi: New file.
724         * doc/glibc-headers/resolv.texi: New file.
725         * doc/glibc-headers/shadow.texi: New file.
726         * doc/glibc-headers/sysexits.texi: New file.
727         * doc/glibc-headers/ttyent.texi: New file.
728
729 2008-01-12  Jim Meyering  <meyering@redhat.com>
730
731         announce-gen: emit Gnulib's git-based version string.
732         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
733         New option --gnulib-version=V, where V is expected to be
734         the output of running git describe in the gnulib directory.
735         (get_tool_versions): Request feedback on xdelta.  I suspect it's
736         not useful, and plan to stop publishing an xdelta file with each
737         coreutils release.
738
739         * build-aux/announce-gen: Also check for lzma-compressed files.
740
741 2008-01-11  Bruno Haible  <bruno@clisp.org>
742
743         * tests/test-memmem.c (main): Increase maximum allowed time.
744         * tests/test-strstr.c (main): Likewise.
745
746 2008-01-11  Bruno Haible  <bruno@clisp.org>
747
748         * doc/functions/memmem.texi: Add more precisions about platforms.
749         * doc/functions/strstr.texi: Likewise.
750
751 2008-01-10  Eric Blake  <ebb9@byu.net>
752
753         * m4/strstr.m4: Delete cruft from copy-n-paste.
754         Reported by Bruno Haible.
755
756 2008-01-10  Bruno Haible  <bruno@clisp.org>
757
758         Make c-strstr rely on strstr.
759         * lib/c-strstr.c: Don't include str-kmp.h.
760         (c_strstr): Define in terms of strstr.
761         * modules/c-strstr (Files): Remove lib/str-kmp.h.
762         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
763
764 2008-01-10  Bruno Haible  <bruno@clisp.org>
765
766         * doc/gnulib.texi (String Functions in C Locale): New section.
767         * doc/c-ctype.texi: New file.
768         * doc/c-strcase.texi: New file.
769         * doc/c-strcaseeq.texi: New file.
770         * doc/c-strcasestr.texi: New file.
771         * doc/c-strstr.texi: New file.
772         * doc/c-strtod.texi: New file.
773         * doc/c-strtold.texi: New file.
774
775 2008-01-10  Eric Blake  <ebb9@byu.net>
776
777         * lib/relocatable.h: Fix a comment.
778
779 2008-01-10  Eric Blake  <ebb9@byu.net>
780
781         Share two-way algorithm.
782         * lib/str-two-way.h: New file, merged from...
783         * lib/memmem.c: ...here...
784         * lib/strstr.c: ...and here.
785         * modules/memmem (Files): Use it.
786         * modules/strstr (Files): Likewise.
787
788         Avoid quadratic strstr implementations.
789         * lib/strstr.c: New file.
790         * m4/strstr.m4: Likewise.
791         * modules/strstr: Likewise.
792         * modules/strstr-tests: Likewise.
793         * tests/test-strstr.c: Likewise.
794         * lib/string.in.h (rpl_strstr): Declare.
795         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
797         * modules/string (Makefile.am): Likewise.
798         * MODULES.html.sh (string handling): Mention new module.
799         * doc/functions/strstr.texi (strstr): Document the bug.
800
801 2008-01-10  Bruno Haible  <bruno@clisp.org>
802
803         * lib/relocatable.h (relocate): State whether result is freshly
804         allocated or not.
805         * lib/relocatable.c (relocate): Return a freshly allocated string
806         instead of a pointer to a privately held string.
807         Reported by Sylvain Beucler <beuc@gnu.org>.
808
809 2008-01-10  Colin Watson  <cjwatson@debian.org>
810
811         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
812         s/S_ISNLK/S_ISLNK/.
813
814 2008-01-09  Bruno Haible  <bruno@clisp.org>
815
816         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
817         and other files.
818         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
819         if it's only a guess.
820         * modules/memmem: Simplify by depending on memmem-simple.
821
822 2008-01-09  Bruno Haible  <bruno@clisp.org>
823
824         Work around OpenBSD 4.0 tdelete() bug.
825         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
826         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
827         macros and don't redefine the enum values.
828         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
829         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
830         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
831
832 2008-01-09  Bruno Haible  <bruno@clisp.org>
833
834         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
835         (main): Don't perform the tests if setlocale did not install a UTF-8
836         locale. Needed on OpenBSD 4.0.
837         * modules/wcwidth-tests (Depends-on): Add localcharset.
838
839 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
840
841         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
842         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
843         * NEWS: announce this.
844         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
845
846 2008-01-09  Simon Josefsson  <simon@josefsson.org>
847         and Eric Blake  <ebb9@byu.net>
848
849         Add memmem-simple module.
850         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
851         (gl_FUNC_MEMMEM): Separate performance from presence checks.
852         * modules/memmem-simple: New file.
853         * modules/memmem (Description): Tweak.
854         * MODULES.html.sh (string handling): Mention new module.
855         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
856         addressed by memmem-simple.
857         * NEWS: Document the difference.
858
859 2008-01-09  Eric Blake  <ebb9@byu.net>
860
861         Give gcc some memmem optimization hints.
862         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
863         (strcasestr): Declare as pure.
864         * modules/memmem (Maintainer): Claim my implementation.
865
866 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
867
868         Support AIX 6.1 and higher.
869         * build-aux/config.libpath: Likewise.
870         * build-aux/config.rpath: Likewise.
871
872 2008-01-08  Jim Meyering  <meyering@redhat.com>
873             Bruno Haible  <bruno@clisp.org>
874
875         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
876         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
877         Reported by Peter Fales in
878         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
879
880 2008-01-08  Bruno Haible  <bruno@clisp.org>
881
882         * modules/unictype/category-of (Depends-on): Add
883         unictype/category-none.
884         * modules/unictype/category-and-tests (Depends-on): Add
885         unictype/category-{L,N,Lu,Nd}.
886         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
887         * modules/unictype/category-or-tests (Depends-on): Add
888         unictype/category-{L,N}.
889         * modules/unictype/category-name-tests (Depends-on): Add
890         unictype/category-{Z,Nl}.
891         Reported by Simon Josefsson.
892
893 2008-01-08  Bruno Haible  <bruno@clisp.org>
894
895         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
896         convention better.
897         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
898         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
899         Reported by Peter Miller <millerp@canb.auug.org.au>.
900
901 2008-01-08  Eric Blake  <ebb9@byu.net>
902
903         Rewrite memmem to guarantee linear complexity without malloc.
904         * lib/memmem.c (memmem): Use Two-Way rather than
905         Knuth-Morris-Pratt, to allow O(1) space usage.
906         (critical_factorization, two_way_short_needle)
907         (two_way_long_needle): New functions.
908         (knuth_morris_pratt): Delete.
909         * modules/memmem (Depends-on): No longer need malloca or stdbool.
910         Add stdint.
911         * tests/test-memmem.c (main): Add tests for periodic needle and
912         sublinear performance.
913         * doc/functions/memmem.texi (memmem): Document other deficiencies
914         in cygwin and older glibc.
915
916 2008-01-08  Bruno Haible  <bruno@clisp.org>
917
918         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
919         augmentation.
920
921 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
922
923         Add a configure time option: --disable-acl.
924         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
925         AC_ARG_ENABLE(acl).
926
927 2008-01-06  Simon Josefsson  <simon@josefsson.org>
928
929         * tests/test-localename.c: Don't include obsolete "setenv.h".
930
931         * modules/localename-tests (Depends-on): Need unsetenv.
932
933 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
934
935         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
936
937 2008-01-06  Colin Watson  <cjwatson@debian.org>
938
939         * users.txt: Add man-db.
940
941 2008-01-07  Bruno Haible  <bruno@clisp.org>
942
943         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
944         previous section name.
945
946 2008-01-07  Bruno Haible  <bruno@clisp.org>
947
948         * lib/progname.c (set_program_name): Don't strip off a leading
949         "lt-" prefix outside a .libs directory.
950         Suggested by Paul Eggert.
951
952 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
953             Bruno Haible  <bruno@clisp.org>
954
955         Improve memory cleanup in 'relocatable' module.
956         * lib/relocatable.h (compute_curr_prefix): Change return type to
957         'char *'.
958         * lib/relocatable.c (compute_curr_prefix): Change return type to
959         'char *'. Free curr_installdir after use.
960         (relocate): Free curr_prefix_better after use.
961         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
962
963 2008-01-01  Bruno Haible  <bruno@clisp.org>
964
965         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
966         failure on older glibc systems.
967         Reported by Peter Fales <psfales@alcatel-lucent.com>.
968
969 2008-01-05  Eric Blake  <ebb9@byu.net>
970
971         Avoid quadratic system memmem.
972         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
973         Reported by Ralf Wildenhues.
974
975         Fix memmem test for mingw.
976         * modules/memmem-tests (configure.ac): Check for alarm.
977         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
978         it.
979         * doc/functions/memmem.texi: New file.
980         * doc/gnulib.texi (Function Substitutes): Add memmem.
981         Reported by Bruno Haible.
982
983 2008-01-04  Bruno Haible  <bruno@clisp.org>
984
985         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
986         Require gl_HEADER_STRINGS_H_DEFAULTS, not
987         gl_HEADER_STRING_H_DEFAULTS.
988
989 2008-01-04  Eric Blake  <ebb9@byu.net>
990
991         Shorten duration of memmem test.
992         * tests/test-memmem.c (main): Use alarm to declare failure if test
993         is taking too long.
994         Reported by Ralf Wildenhues.
995
996 2007-12-21  Simon Josefsson  <simon@josefsson.org>
997
998         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
999         string, needed by strerror.
1000
1001 2008-01-03  Colin Watson  <cjwatson@debian.org>
1002             Bruno Haible  <bruno@clisp.org>
1003
1004         * doc/gnulib-tool.texi (Localization): New section.
1005
1006 2008-01-02  Bruno Haible  <bruno@clisp.org>
1007
1008         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
1009         variables to 'unsigned char *' type.
1010         Reported by Paul Eggert.
1011
1012 2008-01-02  Jim Meyering  <jim@meyering.net>
1013
1014         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
1015
1016 2007-12-31  Jim Meyering  <jim@meyering.net>
1017
1018         Avoid use of private FTS type name.
1019         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
1020
1021 2007-12-30  Karl Berry  <karl@gnu.org>
1022
1023         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
1024         work around defect in Texinfo and/or the standalone Info browser.
1025
1026 2007-12-30  Bruno Haible  <bruno@clisp.org>
1027
1028         Unify 5 copies of the KMP code.
1029         * lib/str-kmp.h: New file.
1030         * lib/c-strcasestr.c: Include str-kmp.h.
1031         (knuth_morris_pratt): Remove function.
1032         (c_strcasestr): Update.
1033         * lib/c-strstr.c: Include str-kmp.h.
1034         (knuth_morris_pratt): Remove function.
1035         (c_strcasestr): Update.
1036         * lib/mbscasestr.c: Include str-kmp.h.
1037         (knuth_morris_pratt_unibyte): Remove function.
1038         * lib/mbsstr.c: Include str-kmp.h.
1039         (knuth_morris_pratt_unibyte): Remove function.
1040         * lib/strcasestr.c: Include str-kmp.h.
1041         (knuth_morris_pratt): Remove function.
1042         (strcasestr): Update.
1043         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
1044         * modules/c-strstr (Files): Likewise.
1045         * modules/mbscasestr (Files): Likewise.
1046         * modules/mbsstr (Files): Likewise.
1047         * modules/strcasestr (Files): Likewise.
1048         Suggested by Paul Eggert.
1049
1050 2007-12-30  Bruno Haible  <bruno@clisp.org>
1051
1052         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
1053         defined.
1054
1055 2007-12-30  Bruno Haible  <bruno@clisp.org>
1056
1057         * lib/xmalloca.h: Include xalloc.h.
1058         (xnmalloca): New macro.
1059
1060 2007-12-30  Bruno Haible  <bruno@clisp.org>
1061
1062         * lib/malloca.h (nmalloca): New macro.
1063         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
1064         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
1065         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
1066         knuth_morris_pratt_multibyte): Likewise.
1067         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
1068         knuth_morris_pratt_multibyte): Likewise.
1069         * lib/memmem.c (knuth_morris_pratt): Likewise.
1070         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
1071
1072 2007-12-25  Bruno Haible  <bruno@clisp.org>
1073
1074         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
1075         * lib/glob.c: Don't include openat.h.
1076         (link_exists2_p): Add back the code that deals with the
1077         !GLOB_ALTDIRFUNC case.
1078         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
1079         let it do the filename concatenation.
1080         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
1081         * modules/glob (Depends-on): Remove openat.
1082
1083 2007-12-31  Bruno Haible  <bruno@clisp.org>
1084
1085         * modules/dirfd (License): Change to LGPLv2+.
1086         Approved by Jim Meyering.
1087
1088 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1089
1090         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
1091         when multiplying M by sizeof (size_t).
1092
1093 2007-12-10  Martin Lambers  <marlam@marlam.de>
1094
1095         Override getpagesize on mingw.
1096         * lib/getpagesize.c: New file.
1097         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
1098         * modules/getpagesize (Files): Add lib/getpagesize.c.
1099         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
1100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1101         REPLACE_GETPAGESIZE.
1102         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
1103
1104 2007-12-25  Bruno Haible  <bruno@clisp.org>
1105
1106         * modules/localcharset (Notice): New field.
1107         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
1108         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1109
1110 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1111             Bruno Haible  <bruno@clisp.org>
1112
1113         Avoid using the syntax symbol() in formatted documentation.
1114         * MODULES.html.sh (func_module): When replacing symbol() with a
1115         hyperlink, remove the parentheses. Show an error if some remain.
1116         Recognize and render the '...' syntax.
1117         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
1118         Rework. Add paragraph about GCC's inlining.
1119         * doc/alloca.texi: Likewise.
1120         * doc/error.texi: Remove parentheses from symbol reference.
1121         * doc/gnulib-intro.texi: Likewise.
1122         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
1123         * modules/fnmatch (Description): Reword to say "the ... function".
1124         * modules/full-read (Description): Likewise.
1125         * modules/full-write (Description): Likewise.
1126         * modules/safe-read (Description): Likewise.
1127         * modules/safe-write (Description): Likewise.
1128         * modules/strchrnul (Description): Likewise.
1129         * modules/trim (Description): Likewise.
1130         * modules/error (Description): Remove parentheses from symbol
1131         references.
1132         * modules/verror (Description): Likewise.
1133         Reported by Karl Berry.
1134
1135 2007-12-25  Bruno Haible  <bruno@clisp.org>
1136
1137         Fixup after 2007-10-16 commit.
1138         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
1139
1140 2007-12-24  Bruno Haible  <bruno@clisp.org>
1141
1142         Make --enable-relocatable work with DESTDIR.
1143         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
1144         to compute installdir from destprog.
1145         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
1146         also set the RELOC_DESTDIR variable.
1147         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
1148
1149 2007-12-24  Bruno Haible  <bruno@clisp.org>
1150
1151         Fix link error due to xalloc_die().
1152         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
1153         of xreadlink.
1154         * lib/relocwrapper.c: Update comments.
1155         * build-aux/install-reloc: Remove xreadlink.c from file list.
1156         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
1157         xreadlink.c.
1158         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
1159
1160 2007-12-24  Bruno Haible  <bruno@clisp.org>
1161
1162         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
1163         * lib/setenv.h: Remove file.
1164         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
1165         lib/setenv.h.
1166         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
1167         (Depends-on): Add stdlib.
1168         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
1169         gl_FUNC_UNSETENV.
1170         (Include): Replace setenv.h with <stdlib.h>.
1171         * modules/unsetenv: New file.
1172         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
1173         * lib/unsetenv.c: Include <stdlib.h> first.
1174         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
1175         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
1176         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
1177         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
1178         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
1179         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
1180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
1181         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
1182         * doc/functions/unsetenv.texi: Update.
1183         * modules/xsetenv (Depends-on): Add unsetenv.
1184         * modules/getdate (Depends-on): Likewise.
1185         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
1186         * lib/xsetenv.c: Don't include setenv.h.
1187         * lib/getdate.y: Likewise.
1188         * lib/relocwrapper.c: Likewise.
1189         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
1190         (Depends-on): Add stdlib.
1191         * NEWS: Mention the changes.
1192         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
1193
1194 2007-12-23  Bruno Haible  <bruno@clisp.org>
1195
1196         * lib/memmem.c (memmem): Use lowercase variable names. Tab
1197         indentation.
1198
1199 2007-12-23  Bruno Haible  <bruno@clisp.org>
1200
1201         * lib/c-strcasestr.c: Add more comments.
1202         * lib/c-strstr.c: Likewise.
1203         * lib/mbscasestr.c: Likewise.
1204         * lib/mbsstr.c: Likewise.
1205         * lib/strcasestr.c: Likewise.
1206         * lib/memmem.c: Likewise.
1207
1208 2007-12-23  Bruno Haible  <bruno@clisp.org>
1209
1210         * tests/test-memmem.c: Include <string.h> first.
1211
1212 2007-12-22  Bruno Haible  <bruno@clisp.org>
1213
1214         * gnulib-tool (func_create_testdir): Change $auxdir while generating
1215         the contents of $testsbase.
1216         Reported by Ralf Wildenhues.
1217
1218 2007-12-22  Bruno Haible  <bruno@clisp.org>
1219
1220         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
1221         two variables local_ldadd_before, local_ldadd_last.
1222
1223 2007-12-20  Eric Blake  <ebb9@byu.net>
1224
1225         Work around circular library issue when cross-compiling.
1226         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
1227         that progname.o does not need to pull in rpl_memcmp.
1228
1229 2007-12-19  Eric Blake  <ebb9@byu.net>
1230
1231         Fix memmem to avoid O(n^2) worst-case complexity.
1232         * lib/memmem.c (knuth_morris_pratt): New function.
1233         (memmem): Use it if first few naive iterations fail.
1234         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
1235         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
1236         * modules/memchr (License): Likewise.
1237         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
1238         malloca.
1239         * tests/test-memmem.c: Rewrite, borrowing ideas from
1240         test-mbsstr1.c; the old version wouldn't even compile!
1241         * modules/memmem-tests: New file.
1242         * lib/string.in.h (rpl_memmem): Add declaration.
1243         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
1244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
1245         REPLACE_MEMMEM.
1246
1247 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1248
1249         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
1250         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
1251         before any system include files, and undef after them all.  This
1252         should fix a problem on VMS reported by John E. Malmberg in
1253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
1254
1255 2007-12-17  Eric Blake  <ebb9@byu.net>
1256
1257         Revert addition of verify, for BSD/OS.
1258         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
1259         can't handle large files, for the sake of obsolete platforms.
1260         * modules/fseeko (Depends-on): Remove verify.
1261         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
1262         * doc/functions/ftello.texi (ftello): Likewise.
1263         * doc/functions/fgetpos.texi (fgetpos): Likewise.
1264         Reported by Larry Jones.
1265
1266 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
1267
1268         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
1269         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
1270
1271 2007-12-17  Jim Meyering  <meyering@redhat.com>
1272
1273         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
1274         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
1275         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
1276         * modules/getcwd (Depends-on): Add openat.
1277         Reported by Petr Salinger.
1278
1279 2007-12-17  Bruno Haible  <bruno@clisp.org>
1280
1281         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
1282         avoid a segmentation fault of the configure test on x86_64 systems.
1283
1284 2007-12-15  Jim Meyering  <meyering@redhat.com>
1285
1286         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
1287
1288 2007-12-13  Eric Blake  <ebb9@byu.net>
1289
1290         Another fseek test.
1291         * tests/test-fseek.c (main): Also test ungetc handling.
1292         * tests/test-fseeko.c (main): Likewise.
1293         * modules/fseeko (Depends-on): Add verify.
1294         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
1295         large.
1296         Reported by Larry Jones.
1297
1298         Fix fseeko on mingw.
1299         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
1300         seek.
1301
1302         Beef up fseek tests.
1303         * tests/test-fseek.c (main): Also test eof handling.
1304         * tests/test-fseeko.c (main): Likewise.
1305         Reported by Larry Jones.
1306
1307 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
1308
1309         Fix fseeko on BSD-based platforms.
1310         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
1311         successful seek.
1312
1313 2007-12-12  Eric Blake  <ebb9@byu.net>
1314
1315         Allow circular dependency of separate libtests.a
1316         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
1317         when use_libtests.
1318
1319 2007-12-11  Eric Blake  <ebb9@byu.net>
1320
1321         Fix bug with -0.0L in previous patch.
1322         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
1323         * tests/test-isnan.c (main): Also test on zeroes.
1324         * tests/test-isnanf.c (main): Likewise.
1325         * tests/test-isnanl.h (main): Likewise.
1326
1327         Detect pseudo-denormals on x86 even when cross-compiling.
1328         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
1329         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
1330         invalid bit patterns that happen to satisfy ==.
1331
1332         Avoid link failures with separate libtests.a.
1333         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
1334         last, to satisfy circular dependencies.
1335
1336 2007-12-11  Eric Blake  <ebb9@byu.net>
1337         and Bruno Haible  <bruno@clisp.org>
1338
1339         Fix OpenBSD 4.0 <float.h> handling of long double.
1340         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
1341         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
1342         * doc/headers/float.texi (float.h): Document OpenBSD bug.
1343
1344 2007-12-11  Jim Meyering  <meyering@redhat.com>
1345
1346         * users.txt: Add libvirt.
1347
1348         Support versions of autoconf prior to 2.59c.
1349         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
1350         if it is not already defined.
1351
1352 2007-12-09  Bruno Haible  <bruno@clisp.org>
1353
1354         Let 'gnulib-tool --import' collect sources needed for the tests in
1355         tests/ rather than in lib/.
1356         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
1357         argument. If true, add rules to generate libtests.a, and put libtests.a
1358         into $(LDADD). Consider source files in subdirectories and set
1359         uses_subdirs.
1360         (func_emit_initmacro_start, func_emit_initmacro_end,
1361         func_emit_initmacro_done): Pass all arguments explicitly.
1362         (func_import): Determine two module lists main_modules,
1363         testsrelated_modules. Determine use_libtests. Determine two variables
1364         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
1365         instead of just sed_transform_lib_file. Determine two variables
1366         main_files and testsrelated_files. Compute 'files' as the union of
1367         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
1368         func_add_or_update. In the generated gnulib-comp.m4, collect the
1369         object files for tests/ in different variables than those for lib/.
1370         Substitute LIBTESTS_LIBDEPS.
1371         (func_create_testdir): Combine the uses_subdirs results from
1372         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
1373
1374 2007-12-09  Bruno Haible  <bruno@clisp.org>
1375
1376         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
1377         the build-aux directory.
1378
1379 2007-12-09  Bruno Haible  <bruno@clisp.org>
1380
1381         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
1382         introduced on 2006-09-09.
1383
1384 2007-12-07  Jim Meyering  <meyering@redhat.com>
1385
1386         Let these macros work also with autoconf-2.59.
1387         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
1388         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
1389         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1390
1391 2007-12-06  Jim Meyering  <meyering@redhat.com>
1392
1393         Avoid a configure-time syntax error in gl_FUNC_ACL.
1394         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
1395         function in each branch, before testing the cache variable.
1396
1397 2007-12-04  Eric Blake  <ebb9@byu.net>
1398
1399         Make scripts executable.
1400         * build-aux/config.guess: Add execute permissions.
1401         * build-aux/config.sub: Likewise.
1402         * build-aux/gendocs.sh: Likewise.
1403
1404         Fix frexp on mingw.
1405         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
1406         cross-compiling.
1407         * doc/functions/frexp.texi (frexp): Document the bug.
1408
1409         Make cygwin fseeko check more reliable.
1410         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
1411         version numbers, rather than unrelated feature check.
1412         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
1413         * doc/functions/ftello.texi (ftello): Likewise.
1414         Reported by Bruno Haible.
1415
1416         * m4/strerror.m4: Bump version number.
1417
1418 2007-12-03  Bruno Haible  <bruno@clisp.org>
1419
1420         * doc/functions/mprotect.texi: Mention the mingw problem.
1421
1422 2007-12-03  Eric Blake  <ebb9@byu.net>
1423
1424         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
1425         REPLACE_STRERROR is initialized before this macro.
1426
1427 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
1428
1429         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
1430         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
1431         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
1432         put -lsec in even for programs other than 'ls'.  This fixes a problem
1433         for gettext reported by Bruno Haible in
1434         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
1435         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
1436         Add support for Solaris 10.  This isn't efficient, but should get the
1437         job done for now.
1438
1439 2007-12-03  James Youngman  <jay@gnu.org>
1440
1441         * doc/regexprops-generic.texi: change "an close-group" to "a
1442         close-group" and "illegal" to "not allowed".
1443
1444 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1445
1446         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
1447         pr_byname.h. Needed for the rare case when the maintainer has done
1448         "make maintainer-clean" in the source directory and then attempts a
1449         build outside the source directory.
1450         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
1451         scripts_byname.h.
1452
1453 2007-12-02  Martin Lambers <marlam@marlam.de>
1454             Bruno Haible  <bruno@clisp.org>
1455
1456         * lib/getpagesize.h: Remove file.
1457         * lib/unistd.in.h: Include declaration of getpagesize here.
1458         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
1459         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
1460         HAVE_SYS_PARAM_H.
1461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
1462         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
1463         * modules/getpagesize (Files): Remove lib/getpagesize.h.
1464         (Depends-on): Add unistd.
1465         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1466         (Include): Use <unistd.h> instead of getpagesize.h.
1467         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
1468         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
1469         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
1470         gl_GETPAGESIZE invocation, already handled by module dependency.
1471         * lib/pagealign_alloc.c: Don't include getpagesize.h.
1472
1473 2007-12-02  Bruno Haible  <bruno@clisp.org>
1474
1475         * modules/strings-tests: New file.
1476         * tests/test-strings.c: New file.
1477
1478         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
1479         * lib/strings.in.h: New file.
1480         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
1481         * m4/strings_h.m4: New file.
1482         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
1483         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
1484         * modules/strings: New file.
1485         * modules/string (Makefile.am): Update.
1486         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
1487         Reported by Karl Berry.
1488
1489 2007-12-01  Eric Blake  <ebb9@byu.net>
1490
1491         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
1492         accomodate fix in cygwin 1.5.25.
1493
1494 2007-12-01  Jim Meyering  <meyering@redhat.com>
1495
1496         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
1497         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
1498         that would inhibit utf8-optimization of a regexp containing line-
1499         or buffer-anchors, e.g., `^', `$'.
1500
1501 2007-11-30  Bruno Haible  <bruno@clisp.org>
1502
1503         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
1504         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
1505         glthread_recursive_lock_init.
1506         * lib/lock.c (glthread_recursive_lock_init)
1507         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
1508         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1509
1510 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
1511
1512         New function qset_acl, like set_acl but with syscall semantics.
1513         * lib/acl.h (qset_acl): New decl.
1514         * lib/acl.c (qset_acl): New function.
1515         (set_acl): Use new function.  Use more-consistent diagnostics.
1516
1517 2007-11-28  Jim Meyering  <meyering@redhat.com>
1518
1519         * modules/physmem (License): Change from GPL to LGPLv2+.
1520
1521 2007-11-26  Bruno Haible  <bruno@clisp.org>
1522
1523         * lib/vasnprintf.c (decode_long_double): Don't abort if the
1524         'long double' type has excess precision.
1525         Reported by Jim Meyering in
1526         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
1527
1528 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1529
1530         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
1531         Sync from <http://gnu.org/licenses>.
1532         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
1533         with license text from same location.
1534         * doc/maintain.texi, doc/standards.texi:  Sync from
1535         <http://savannah.gnu.org/projects/gnustandards>.
1536
1537 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
1538         and Jim Meyering  <meyering@redhat.com>
1539
1540         Adjust getdate' grammar to accept a slightly more regular language.
1541         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
1542         Before, the former was rejected.
1543         * lib/getdate.y (digits_to_date_time): New function, factored
1544         out of ...
1545         (number): ...here.  Just call digits_to_date_time.
1546         (hybrid): New non-terminal to handle an <unsigned number,
1547         signed relative offset> sequence consistently.
1548
1549 2007-11-18  Jim Meyering  <meyering@redhat.com>
1550
1551         Pull my changes from coreutils:
1552         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
1553         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
1554         use of $gnulib_tool_option_extras, so that it's separated from the
1555         preceding argument.
1556
1557         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
1558         * build-aux/bootstrap (cp_mark_as_generated): Create any required
1559         parent destination directories before copying a file into place.
1560
1561 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
1562
1563         bootstrap: work also with 4-argument variant of AC_INIT
1564         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
1565
1566 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1567
1568         Port test-getaddrinfo to Solaris.
1569         Problem reported by Bruno Haible in
1570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
1571         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
1572         explanation of setting 'hints'.
1573         Don't reject an implementation merely because it returns EAI_SERVICE.
1574         (EAI_SERVICE): Define to 0 if not defined.
1575
1576 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1577
1578         The license of gnu-make and posix-shell is now "GPLed build tool".
1579         * modules/gnu-make (License): Likewise.
1580         * modules/posix-shell (License): Likewise.
1581
1582         New module posix-shell, for determining a POSIX shell
1583         or perhaps something that is close enough to a POSIX shell.
1584         * m4/posix-shell.m4: New file.
1585         * modules/posix-shell: New file.
1586
1587         * MODULES.html.sh: Mention new module.
1588
1589         New module gnu-make, for determining whether we're using GNU Make.
1590         * m4/gnu-make.m4: New file.
1591         * modules/gnu-make: New file.
1592         * MODULES.html.sh: Mention new module.
1593
1594 2007-11-14  Jim Meyering  <meyering@redhat.com>
1595
1596         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
1597         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
1598         use this macro to create a function _definition_.
1599         Remove useless "#undef ARGMATCH_DIE".
1600
1601 2007-11-14  Bruno Haible  <bruno@clisp.org>
1602
1603         * lib/config.charset: Update for OpenBSD 4.1.
1604         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
1605
1606 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
1607
1608         Document 64-bit #if problems in stdint.texi.
1609         * doc/headers/stdint.texi (stdint.h): Mention problems with
1610         64-bit-#if, and how to work around them.
1611
1612         Don't insist on 'long long int' support in the preprocessor.  It
1613         breaks too many things.  For example, PRIdMAX still uses a 'long
1614         long int' format with the latest Sun compiler, even though
1615         HAVE_LONG_LONG_INT isn't defined due to that compiler's
1616         preprocessor problem.  This causes the latest coreutils to dump
1617         core on Solaris 10 sparc with the Sun C compiler.
1618         Instead, fix the 2007-10-16 problem in a different way, by evaluating
1619         the troublesome expressions at configure-time, not at #if-time.
1620         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
1621         preprocessor.
1622         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
1623         compile-time C checks, done at 'configure'-time.
1624         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
1625         * modules/inttypes (Makefile): Substitute the new symbols that
1626         gl_INTTYPES_H now generates.
1627         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
1628
1629 2007-11-12  Bruno Haible  <bruno@clisp.org>
1630
1631         Tests for Unicode character classification functions.
1632
1633         * modules/unictype/bidicategory-byname-tests: New file.
1634         * modules/unictype/bidicategory-name-tests: New file.
1635         * modules/unictype/bidicategory-of-tests: New file.
1636         * modules/unictype/bidicategory-test-tests: New file.
1637         * modules/unictype/block-list-tests: New file.
1638         * modules/unictype/block-of-tests: New file.
1639         * modules/unictype/block-test-tests: New file.
1640         * modules/unictype/category-C-tests: New file.
1641         * modules/unictype/category-Cc-tests: New file.
1642         * modules/unictype/category-Cf-tests: New file.
1643         * modules/unictype/category-Cn-tests: New file.
1644         * modules/unictype/category-Co-tests: New file.
1645         * modules/unictype/category-Cs-tests: New file.
1646         * modules/unictype/category-L-tests: New file.
1647         * modules/unictype/category-Ll-tests: New file.
1648         * modules/unictype/category-Lm-tests: New file.
1649         * modules/unictype/category-Lo-tests: New file.
1650         * modules/unictype/category-Lt-tests: New file.
1651         * modules/unictype/category-Lu-tests: New file.
1652         * modules/unictype/category-M-tests: New file.
1653         * modules/unictype/category-Mc-tests: New file.
1654         * modules/unictype/category-Me-tests: New file.
1655         * modules/unictype/category-Mn-tests: New file.
1656         * modules/unictype/category-N-tests: New file.
1657         * modules/unictype/category-Nd-tests: New file.
1658         * modules/unictype/category-Nl-tests: New file.
1659         * modules/unictype/category-No-tests: New file.
1660         * modules/unictype/category-P-tests: New file.
1661         * modules/unictype/category-Pc-tests: New file.
1662         * modules/unictype/category-Pd-tests: New file.
1663         * modules/unictype/category-Pe-tests: New file.
1664         * modules/unictype/category-Pf-tests: New file.
1665         * modules/unictype/category-Pi-tests: New file.
1666         * modules/unictype/category-Po-tests: New file.
1667         * modules/unictype/category-Ps-tests: New file.
1668         * modules/unictype/category-S-tests: New file.
1669         * modules/unictype/category-Sc-tests: New file.
1670         * modules/unictype/category-Sk-tests: New file.
1671         * modules/unictype/category-Sm-tests: New file.
1672         * modules/unictype/category-So-tests: New file.
1673         * modules/unictype/category-Z-tests: New file.
1674         * modules/unictype/category-Zl-tests: New file.
1675         * modules/unictype/category-Zp-tests: New file.
1676         * modules/unictype/category-Zs-tests: New file.
1677         * modules/unictype/category-and-not-tests: New file.
1678         * modules/unictype/category-and-tests: New file.
1679         * modules/unictype/category-byname-tests: New file.
1680         * modules/unictype/category-name-tests: New file.
1681         * modules/unictype/category-none-tests: New file.
1682         * modules/unictype/category-of-tests: New file.
1683         * modules/unictype/category-or-tests: New file.
1684         * modules/unictype/category-test-withtable-tests: New file.
1685         * modules/unictype/combining-class-tests: New file.
1686         * modules/unictype/ctype-alnum-tests: New file.
1687         * modules/unictype/ctype-alpha-tests: New file.
1688         * modules/unictype/ctype-blank-tests: New file.
1689         * modules/unictype/ctype-cntrl-tests: New file.
1690         * modules/unictype/ctype-digit-tests: New file.
1691         * modules/unictype/ctype-graph-tests: New file.
1692         * modules/unictype/ctype-lower-tests: New file.
1693         * modules/unictype/ctype-print-tests: New file.
1694         * modules/unictype/ctype-punct-tests: New file.
1695         * modules/unictype/ctype-space-tests: New file.
1696         * modules/unictype/ctype-upper-tests: New file.
1697         * modules/unictype/ctype-xdigit-tests: New file.
1698         * modules/unictype/decimal-digit-tests: New file.
1699         * modules/unictype/digit-tests: New file.
1700         * modules/unictype/mirror-tests: New file.
1701         * modules/unictype/numeric-tests: New file.
1702         * modules/unictype/property-alphabetic-tests: New file.
1703         * modules/unictype/property-ascii-hex-digit-tests: New file.
1704         * modules/unictype/property-bidi-arabic-digit-tests: New file.
1705         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
1706         * modules/unictype/property-bidi-block-separator-tests: New file.
1707         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
1708         * modules/unictype/property-bidi-common-separator-tests: New file.
1709         * modules/unictype/property-bidi-control-tests: New file.
1710         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
1711         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
1712         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
1713         * modules/unictype/property-bidi-european-digit-tests: New file.
1714         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
1715         * modules/unictype/property-bidi-left-to-right-tests: New file.
1716         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
1717         * modules/unictype/property-bidi-other-neutral-tests: New file.
1718         * modules/unictype/property-bidi-pdf-tests: New file.
1719         * modules/unictype/property-bidi-segment-separator-tests: New file.
1720         * modules/unictype/property-bidi-whitespace-tests: New file.
1721         * modules/unictype/property-byname-tests: New file.
1722         * modules/unictype/property-combining-tests: New file.
1723         * modules/unictype/property-composite-tests: New file.
1724         * modules/unictype/property-currency-symbol-tests: New file.
1725         * modules/unictype/property-dash-tests: New file.
1726         * modules/unictype/property-decimal-digit-tests: New file.
1727         * modules/unictype/property-default-ignorable-code-point-tests: New file.
1728         * modules/unictype/property-deprecated-tests: New file.
1729         * modules/unictype/property-diacritic-tests: New file.
1730         * modules/unictype/property-extender-tests: New file.
1731         * modules/unictype/property-format-control-tests: New file.
1732         * modules/unictype/property-grapheme-base-tests: New file.
1733         * modules/unictype/property-grapheme-extend-tests: New file.
1734         * modules/unictype/property-grapheme-link-tests: New file.
1735         * modules/unictype/property-hex-digit-tests: New file.
1736         * modules/unictype/property-hyphen-tests: New file.
1737         * modules/unictype/property-id-continue-tests: New file.
1738         * modules/unictype/property-id-start-tests: New file.
1739         * modules/unictype/property-ideographic-tests: New file.
1740         * modules/unictype/property-ids-binary-operator-tests: New file.
1741         * modules/unictype/property-ids-trinary-operator-tests: New file.
1742         * modules/unictype/property-ignorable-control-tests: New file.
1743         * modules/unictype/property-iso-control-tests: New file.
1744         * modules/unictype/property-join-control-tests: New file.
1745         * modules/unictype/property-left-of-pair-tests: New file.
1746         * modules/unictype/property-line-separator-tests: New file.
1747         * modules/unictype/property-logical-order-exception-tests: New file.
1748         * modules/unictype/property-lowercase-tests: New file.
1749         * modules/unictype/property-math-tests: New file.
1750         * modules/unictype/property-non-break-tests: New file.
1751         * modules/unictype/property-not-a-character-tests: New file.
1752         * modules/unictype/property-numeric-tests: New file.
1753         * modules/unictype/property-other-alphabetic-tests: New file.
1754         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
1755         * modules/unictype/property-other-grapheme-extend-tests: New file.
1756         * modules/unictype/property-other-id-continue-tests: New file.
1757         * modules/unictype/property-other-id-start-tests: New file.
1758         * modules/unictype/property-other-lowercase-tests: New file.
1759         * modules/unictype/property-other-math-tests: New file.
1760         * modules/unictype/property-other-uppercase-tests: New file.
1761         * modules/unictype/property-paired-punctuation-tests: New file.
1762         * modules/unictype/property-paragraph-separator-tests: New file.
1763         * modules/unictype/property-pattern-syntax-tests: New file.
1764         * modules/unictype/property-pattern-white-space-tests: New file.
1765         * modules/unictype/property-private-use-tests: New file.
1766         * modules/unictype/property-punctuation-tests: New file.
1767         * modules/unictype/property-quotation-mark-tests: New file.
1768         * modules/unictype/property-radical-tests: New file.
1769         * modules/unictype/property-sentence-terminal-tests: New file.
1770         * modules/unictype/property-soft-dotted-tests: New file.
1771         * modules/unictype/property-space-tests: New file.
1772         * modules/unictype/property-terminal-punctuation-tests: New file.
1773         * modules/unictype/property-test-tests: New file.
1774         * modules/unictype/property-titlecase-tests: New file.
1775         * modules/unictype/property-unassigned-code-value-tests: New file.
1776         * modules/unictype/property-unified-ideograph-tests: New file.
1777         * modules/unictype/property-uppercase-tests: New file.
1778         * modules/unictype/property-variation-selector-tests: New file.
1779         * modules/unictype/property-white-space-tests: New file.
1780         * modules/unictype/property-xid-continue-tests: New file.
1781         * modules/unictype/property-xid-start-tests: New file.
1782         * modules/unictype/property-zero-width-tests: New file.
1783         * modules/unictype/scripts-tests: New file.
1784         * modules/unictype/syntax-c-ident-tests: New file.
1785         * modules/unictype/syntax-c-whitespace-tests: New file.
1786         * modules/unictype/syntax-java-ident-tests: New file.
1787         * modules/unictype/syntax-java-whitespace-tests: New file.
1788         * tests/unictype/test-bidi_byname.c: New file.
1789         * tests/unictype/test-bidi_name.c: New file.
1790         * tests/unictype/test-bidi_of.c: New file.
1791         * tests/unictype/test-bidi_test.c: New file.
1792         * tests/unictype/test-block_list.c: New file.
1793         * tests/unictype/test-block_of.c: New file.
1794         * tests/unictype/test-block_test.c: New file.
1795         * tests/unictype/test-categ_and.c: New file.
1796         * tests/unictype/test-categ_and_not.c: New file.
1797         * tests/unictype/test-categ_byname.c: New file.
1798         * tests/unictype/test-categ_name.c: New file.
1799         * tests/unictype/test-categ_none.c: New file.
1800         * tests/unictype/test-categ_of.c: New file.
1801         * tests/unictype/test-categ_or.c: New file.
1802         * tests/unictype/test-categ_test_withtable.c: New file.
1803         * tests/unictype/test-combining.c: New file.
1804         * tests/unictype/test-decdigit.c: New file.
1805         * tests/unictype/test-digit.c: New file.
1806         * tests/unictype/test-mirror.c: New file.
1807         * tests/unictype/test-numeric.c: New file.
1808         * tests/unictype/test-pr_byname.c: New file.
1809         * tests/unictype/test-pr_test.c: New file.
1810         * tests/unictype/test-predicate-part1.h: New file.
1811         * tests/unictype/test-predicate-part2.h: New file.
1812         * tests/unictype/test-scripts.c: New file.
1813         * tests/unictype/test-sy_c_ident.c: New file.
1814         * tests/unictype/test-sy_java_ident.c: New file.
1815
1816         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
1817         for Unicode 5.0.0.
1818         * tests/unictype/test-categ_Cc.c: Likewise.
1819         * tests/unictype/test-categ_Cf.c: Likewise.
1820         * tests/unictype/test-categ_Cn.c: Likewise.
1821         * tests/unictype/test-categ_Co.c: Likewise.
1822         * tests/unictype/test-categ_Cs.c: Likewise.
1823         * tests/unictype/test-categ_L.c: Likewise.
1824         * tests/unictype/test-categ_Ll.c: Likewise.
1825         * tests/unictype/test-categ_Lm.c: Likewise.
1826         * tests/unictype/test-categ_Lo.c: Likewise.
1827         * tests/unictype/test-categ_Lt.c: Likewise.
1828         * tests/unictype/test-categ_Lu.c: Likewise.
1829         * tests/unictype/test-categ_M.c: Likewise.
1830         * tests/unictype/test-categ_Mc.c: Likewise.
1831         * tests/unictype/test-categ_Me.c: Likewise.
1832         * tests/unictype/test-categ_Mn.c: Likewise.
1833         * tests/unictype/test-categ_N.c: Likewise.
1834         * tests/unictype/test-categ_Nd.c: Likewise.
1835         * tests/unictype/test-categ_Nl.c: Likewise.
1836         * tests/unictype/test-categ_No.c: Likewise.
1837         * tests/unictype/test-categ_P.c: Likewise.
1838         * tests/unictype/test-categ_Pc.c: Likewise.
1839         * tests/unictype/test-categ_Pd.c: Likewise.
1840         * tests/unictype/test-categ_Pe.c: Likewise.
1841         * tests/unictype/test-categ_Pf.c: Likewise.
1842         * tests/unictype/test-categ_Pi.c: Likewise.
1843         * tests/unictype/test-categ_Po.c: Likewise.
1844         * tests/unictype/test-categ_Ps.c: Likewise.
1845         * tests/unictype/test-categ_S.c: Likewise.
1846         * tests/unictype/test-categ_Sc.c: Likewise.
1847         * tests/unictype/test-categ_Sk.c: Likewise.
1848         * tests/unictype/test-categ_Sm.c: Likewise.
1849         * tests/unictype/test-categ_So.c: Likewise.
1850         * tests/unictype/test-categ_Z.c: Likewise.
1851         * tests/unictype/test-categ_Zl.c: Likewise.
1852         * tests/unictype/test-categ_Zp.c: Likewise.
1853         * tests/unictype/test-categ_Zs.c: Likewise.
1854         * tests/unictype/test-ctype_alnum.c: Likewise.
1855         * tests/unictype/test-ctype_alpha.c: Likewise.
1856         * tests/unictype/test-ctype_blank.c: Likewise.
1857         * tests/unictype/test-ctype_cntrl.c: Likewise.
1858         * tests/unictype/test-ctype_digit.c: Likewise.
1859         * tests/unictype/test-ctype_graph.c: Likewise.
1860         * tests/unictype/test-ctype_lower.c: Likewise.
1861         * tests/unictype/test-ctype_print.c: Likewise.
1862         * tests/unictype/test-ctype_punct.c: Likewise.
1863         * tests/unictype/test-ctype_space.c: Likewise.
1864         * tests/unictype/test-ctype_upper.c: Likewise.
1865         * tests/unictype/test-ctype_xdigit.c: Likewise.
1866         * tests/unictype/test-decdigit.h: Likewise.
1867         * tests/unictype/test-digit.h: Likewise.
1868         * tests/unictype/test-numeric.h: Likewise.
1869         * tests/unictype/test-pr_alphabetic.c: Likewise.
1870         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
1871         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1872         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1873         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
1874         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1875         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
1876         * tests/unictype/test-pr_bidi_control.c: Likewise.
1877         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
1878         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
1879         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1880         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1881         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1882         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1883         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1884         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1885         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
1886         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
1887         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
1888         * tests/unictype/test-pr_combining.c: Likewise.
1889         * tests/unictype/test-pr_composite.c: Likewise.
1890         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1891         * tests/unictype/test-pr_dash.c: Likewise.
1892         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1893         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
1894         * tests/unictype/test-pr_deprecated.c: Likewise.
1895         * tests/unictype/test-pr_diacritic.c: Likewise.
1896         * tests/unictype/test-pr_extender.c: Likewise.
1897         * tests/unictype/test-pr_format_control.c: Likewise.
1898         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1899         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1900         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1901         * tests/unictype/test-pr_hex_digit.c: Likewise.
1902         * tests/unictype/test-pr_hyphen.c: Likewise.
1903         * tests/unictype/test-pr_id_continue.c: Likewise.
1904         * tests/unictype/test-pr_id_start.c: Likewise.
1905         * tests/unictype/test-pr_ideographic.c: Likewise.
1906         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
1907         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
1908         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1909         * tests/unictype/test-pr_iso_control.c: Likewise.
1910         * tests/unictype/test-pr_join_control.c: Likewise.
1911         * tests/unictype/test-pr_left_of_pair.c: Likewise.
1912         * tests/unictype/test-pr_line_separator.c: Likewise.
1913         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1914         * tests/unictype/test-pr_lowercase.c: Likewise.
1915         * tests/unictype/test-pr_math.c: Likewise.
1916         * tests/unictype/test-pr_non_break.c: Likewise.
1917         * tests/unictype/test-pr_not_a_character.c: Likewise.
1918         * tests/unictype/test-pr_numeric.c: Likewise.
1919         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1920         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
1921         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
1922         * tests/unictype/test-pr_other_id_continue.c: Likewise.
1923         * tests/unictype/test-pr_other_id_start.c: Likewise.
1924         * tests/unictype/test-pr_other_lowercase.c: Likewise.
1925         * tests/unictype/test-pr_other_math.c: Likewise.
1926         * tests/unictype/test-pr_other_uppercase.c: Likewise.
1927         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
1928         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
1929         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
1930         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
1931         * tests/unictype/test-pr_private_use.c: Likewise.
1932         * tests/unictype/test-pr_punctuation.c: Likewise.
1933         * tests/unictype/test-pr_quotation_mark.c: Likewise.
1934         * tests/unictype/test-pr_radical.c: Likewise.
1935         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1936         * tests/unictype/test-pr_soft_dotted.c: Likewise.
1937         * tests/unictype/test-pr_space.c: Likewise.
1938         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1939         * tests/unictype/test-pr_titlecase.c: Likewise.
1940         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1941         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1942         * tests/unictype/test-pr_uppercase.c: Likewise.
1943         * tests/unictype/test-pr_variation_selector.c: Likewise.
1944         * tests/unictype/test-pr_white_space.c: Likewise.
1945         * tests/unictype/test-pr_xid_continue.c: Likewise.
1946         * tests/unictype/test-pr_xid_start.c: Likewise.
1947         * tests/unictype/test-pr_zero_width.c: Likewise.
1948         * tests/unictype/test-sy_c_whitespace.c: Likewise.
1949         * tests/unictype/test-sy_java_whitespace.c: Likewise.
1950
1951 2007-11-12  Bruno Haible  <bruno@clisp.org>
1952
1953         Unicode character classification functions.
1954         * lib/unictype.h: New file.
1955         * modules/unictype/base: New file.
1956         * modules/unictype/category-L: New file.
1957         * modules/unictype/category-Lu: New file.
1958         * modules/unictype/category-Ll: New file.
1959         * modules/unictype/category-Lt: New file.
1960         * modules/unictype/category-Lm: New file.
1961         * modules/unictype/category-Lo: New file.
1962         * modules/unictype/category-M: New file.
1963         * modules/unictype/category-Mn: New file.
1964         * modules/unictype/category-Mc: New file.
1965         * modules/unictype/category-Me: New file.
1966         * modules/unictype/category-N: New file.
1967         * modules/unictype/category-Nd: New file.
1968         * modules/unictype/category-Nl: New file.
1969         * modules/unictype/category-No: New file.
1970         * modules/unictype/category-P: New file.
1971         * modules/unictype/category-Pc: New file.
1972         * modules/unictype/category-Pd: New file.
1973         * modules/unictype/category-Ps: New file.
1974         * modules/unictype/category-Pe: New file.
1975         * modules/unictype/category-Pi: New file.
1976         * modules/unictype/category-Pf: New file.
1977         * modules/unictype/category-Po: New file.
1978         * modules/unictype/category-S: New file.
1979         * modules/unictype/category-Sm: New file.
1980         * modules/unictype/category-Sc: New file.
1981         * modules/unictype/category-Sk: New file.
1982         * modules/unictype/category-So: New file.
1983         * modules/unictype/category-Z: New file.
1984         * modules/unictype/category-Zs: New file.
1985         * modules/unictype/category-Zl: New file.
1986         * modules/unictype/category-Zp: New file.
1987         * modules/unictype/category-C: New file.
1988         * modules/unictype/category-Cc: New file.
1989         * modules/unictype/category-Cf: New file.
1990         * modules/unictype/category-Cs: New file.
1991         * modules/unictype/category-Co: New file.
1992         * modules/unictype/category-Cn: New file.
1993         * modules/unictype/category-or: New file.
1994         * modules/unictype/category-of: New file.
1995         * modules/unictype/category-test: New file.
1996         * modules/unictype/category-test-withtable: New file.
1997         * modules/unictype/category-byname: New file.
1998         * modules/unictype/category-none: New file.
1999         * modules/unictype/category-and: New file.
2000         * modules/unictype/category-and-not: New file.
2001         * modules/unictype/category-name: New file.
2002         * modules/unictype/combining-class: New file.
2003         * modules/unictype/category-all: New file.
2004         * modules/unictype/bidicategory-all: New file.
2005         * modules/unictype/bidicategory-byname: New file.
2006         * modules/unictype/bidicategory-name: New file.
2007         * modules/unictype/bidicategory-of: New file.
2008         * modules/unictype/bidicategory-test: New file.
2009         * modules/unictype/decimal-digit: New file.
2010         * modules/unictype/digit: New file.
2011         * modules/unictype/numeric: New file.
2012         * modules/unictype/mirror: New file.
2013         * modules/unictype/property-white-space: New file.
2014         * modules/unictype/property-alphabetic: New file.
2015         * modules/unictype/property-other-alphabetic: New file.
2016         * modules/unictype/property-not-a-character: New file.
2017         * modules/unictype/property-default-ignorable-code-point: New file.
2018         * modules/unictype/property-other-default-ignorable-code-point: New
2019         file.
2020         * modules/unictype/property-deprecated: New file.
2021         * modules/unictype/property-logical-order-exception: New file.
2022         * modules/unictype/property-variation-selector: New file.
2023         * modules/unictype/property-private-use: New file.
2024         * modules/unictype/property-unassigned-code-value: New file.
2025         * modules/unictype/property-uppercase: New file.
2026         * modules/unictype/property-other-uppercase: New file.
2027         * modules/unictype/property-lowercase: New file.
2028         * modules/unictype/property-other-lowercase: New file.
2029         * modules/unictype/property-titlecase: New file.
2030         * modules/unictype/property-soft-dotted: New file.
2031         * modules/unictype/property-id-start: New file.
2032         * modules/unictype/property-other-id-start: New file.
2033         * modules/unictype/property-id-continue: New file.
2034         * modules/unictype/property-other-id-continue: New file.
2035         * modules/unictype/property-xid-start: New file.
2036         * modules/unictype/property-xid-continue: New file.
2037         * modules/unictype/property-pattern-white-space: New file.
2038         * modules/unictype/property-pattern-syntax: New file.
2039         * modules/unictype/property-join-control: New file.
2040         * modules/unictype/property-grapheme-base: New file.
2041         * modules/unictype/property-grapheme-extend: New file.
2042         * modules/unictype/property-other-grapheme-extend: New file.
2043         * modules/unictype/property-grapheme-link: New file.
2044         * modules/unictype/property-bidi-control: New file.
2045         * modules/unictype/property-bidi-left-to-right: New file.
2046         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
2047         * modules/unictype/property-bidi-arabic-right-to-left: New file.
2048         * modules/unictype/property-bidi-european-digit: New file.
2049         * modules/unictype/property-bidi-eur-num-separator: New file.
2050         * modules/unictype/property-bidi-eur-num-terminator: New file.
2051         * modules/unictype/property-bidi-arabic-digit: New file.
2052         * modules/unictype/property-bidi-common-separator: New file.
2053         * modules/unictype/property-bidi-block-separator: New file.
2054         * modules/unictype/property-bidi-segment-separator: New file.
2055         * modules/unictype/property-bidi-whitespace: New file.
2056         * modules/unictype/property-bidi-non-spacing-mark: New file.
2057         * modules/unictype/property-bidi-boundary-neutral: New file.
2058         * modules/unictype/property-bidi-pdf: New file.
2059         * modules/unictype/property-bidi-embedding-or-override: New file.
2060         * modules/unictype/property-bidi-other-neutral: New file.
2061         * modules/unictype/property-hex-digit: New file.
2062         * modules/unictype/property-ascii-hex-digit: New file.
2063         * modules/unictype/property-ideographic: New file.
2064         * modules/unictype/property-unified-ideograph: New file.
2065         * modules/unictype/property-radical: New file.
2066         * modules/unictype/property-ids-binary-operator: New file.
2067         * modules/unictype/property-ids-trinary-operator: New file.
2068         * modules/unictype/property-zero-width: New file.
2069         * modules/unictype/property-space: New file.
2070         * modules/unictype/property-non-break: New file.
2071         * modules/unictype/property-iso-control: New file.
2072         * modules/unictype/property-format-control: New file.
2073         * modules/unictype/property-dash: New file.
2074         * modules/unictype/property-hyphen: New file.
2075         * modules/unictype/property-punctuation: New file.
2076         * modules/unictype/property-line-separator: New file.
2077         * modules/unictype/property-paragraph-separator: New file.
2078         * modules/unictype/property-quotation-mark: New file.
2079         * modules/unictype/property-sentence-terminal: New file.
2080         * modules/unictype/property-terminal-punctuation: New file.
2081         * modules/unictype/property-currency-symbol: New file.
2082         * modules/unictype/property-math: New file.
2083         * modules/unictype/property-other-math: New file.
2084         * modules/unictype/property-paired-punctuation: New file.
2085         * modules/unictype/property-left-of-pair: New file.
2086         * modules/unictype/property-combining: New file.
2087         * modules/unictype/property-composite: New file.
2088         * modules/unictype/property-decimal-digit: New file.
2089         * modules/unictype/property-numeric: New file.
2090         * modules/unictype/property-diacritic: New file.
2091         * modules/unictype/property-extender: New file.
2092         * modules/unictype/property-ignorable-control: New file.
2093         * modules/unictype/property-test: New file.
2094         * modules/unictype/property-byname: New file.
2095         * modules/unictype/property-all: New file.
2096         * modules/unictype/scripts: New file.
2097         * modules/unictype/scripts-all: New file.
2098         * modules/unictype/block-of: New file.
2099         * modules/unictype/block-test: New file.
2100         * modules/unictype/block-list: New file.
2101         * modules/unictype/block-all: New file.
2102         * modules/unictype/syntax-c-whitespace: New file.
2103         * modules/unictype/syntax-java-whitespace: New file.
2104         * modules/unictype/syntax-c-ident: New file.
2105         * modules/unictype/syntax-java-ident: New file.
2106         * modules/unictype/ctype-alnum: New file.
2107         * modules/unictype/ctype-alpha: New file.
2108         * modules/unictype/ctype-cntrl: New file.
2109         * modules/unictype/ctype-digit: New file.
2110         * modules/unictype/ctype-graph: New file.
2111         * modules/unictype/ctype-lower: New file.
2112         * modules/unictype/ctype-print: New file.
2113         * modules/unictype/ctype-punct: New file.
2114         * modules/unictype/ctype-space: New file.
2115         * modules/unictype/ctype-upper: New file.
2116         * modules/unictype/ctype-xdigit: New file.
2117         * modules/unictype/ctype-blank: New file.
2118         * lib/unictype/bidi_byname.c: New file.
2119         * lib/unictype/bidi_name.c: New file.
2120         * lib/unictype/bidi_of.c: New file.
2121         * lib/unictype/bidi_test.c: New file.
2122         * lib/unictype/bitmap.h: New file.
2123         * lib/unictype/block_test.c: New file.
2124         * lib/unictype/blocks.c: New file.
2125         * lib/unictype/categ_C.c: New file.
2126         * lib/unictype/categ_Cc.c: New file.
2127         * lib/unictype/categ_Cf.c: New file.
2128         * lib/unictype/categ_Cn.c: New file.
2129         * lib/unictype/categ_Co.c: New file.
2130         * lib/unictype/categ_Cs.c: New file.
2131         * lib/unictype/categ_L.c: New file.
2132         * lib/unictype/categ_Ll.c: New file.
2133         * lib/unictype/categ_Lm.c: New file.
2134         * lib/unictype/categ_Lo.c: New file.
2135         * lib/unictype/categ_Lt.c: New file.
2136         * lib/unictype/categ_Lu.c: New file.
2137         * lib/unictype/categ_M.c: New file.
2138         * lib/unictype/categ_Mc.c: New file.
2139         * lib/unictype/categ_Me.c: New file.
2140         * lib/unictype/categ_Mn.c: New file.
2141         * lib/unictype/categ_N.c: New file.
2142         * lib/unictype/categ_Nd.c: New file.
2143         * lib/unictype/categ_Nl.c: New file.
2144         * lib/unictype/categ_No.c: New file.
2145         * lib/unictype/categ_P.c: New file.
2146         * lib/unictype/categ_Pc.c: New file.
2147         * lib/unictype/categ_Pd.c: New file.
2148         * lib/unictype/categ_Pe.c: New file.
2149         * lib/unictype/categ_Pf.c: New file.
2150         * lib/unictype/categ_Pi.c: New file.
2151         * lib/unictype/categ_Po.c: New file.
2152         * lib/unictype/categ_Ps.c: New file.
2153         * lib/unictype/categ_S.c: New file.
2154         * lib/unictype/categ_Sc.c: New file.
2155         * lib/unictype/categ_Sk.c: New file.
2156         * lib/unictype/categ_Sm.c: New file.
2157         * lib/unictype/categ_So.c: New file.
2158         * lib/unictype/categ_Z.c: New file.
2159         * lib/unictype/categ_Zl.c: New file.
2160         * lib/unictype/categ_Zp.c: New file.
2161         * lib/unictype/categ_Zs.c: New file.
2162         * lib/unictype/categ_and.c: New file.
2163         * lib/unictype/categ_and_not.c: New file.
2164         * lib/unictype/categ_byname.c: New file.
2165         * lib/unictype/categ_name.c: New file.
2166         * lib/unictype/categ_none.c: New file.
2167         * lib/unictype/categ_of.c: New file.
2168         * lib/unictype/categ_or.c: New file.
2169         * lib/unictype/categ_test.c: New file.
2170         * lib/unictype/combining.c: New file.
2171         * lib/unictype/ctype_alnum.c: New file.
2172         * lib/unictype/ctype_alpha.c: New file.
2173         * lib/unictype/ctype_blank.c: New file.
2174         * lib/unictype/ctype_cntrl.c: New file.
2175         * lib/unictype/ctype_digit.c: New file.
2176         * lib/unictype/ctype_graph.c: New file.
2177         * lib/unictype/ctype_lower.c: New file.
2178         * lib/unictype/ctype_print.c: New file.
2179         * lib/unictype/ctype_punct.c: New file.
2180         * lib/unictype/ctype_space.c: New file.
2181         * lib/unictype/ctype_upper.c: New file.
2182         * lib/unictype/ctype_xdigit.c: New file.
2183         * lib/unictype/decdigit.c: New file.
2184         * lib/unictype/digit.c: New file.
2185         * lib/unictype/identsyntaxmap.h: New file.
2186         * lib/unictype/mirror.c: New file.
2187         * lib/unictype/numeric.c: New file.
2188         * lib/unictype/pr_alphabetic.c: New file.
2189         * lib/unictype/pr_ascii_hex_digit.c: New file.
2190         * lib/unictype/pr_bidi_arabic_digit.c: New file.
2191         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
2192         * lib/unictype/pr_bidi_block_separator.c: New file.
2193         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
2194         * lib/unictype/pr_bidi_common_separator.c: New file.
2195         * lib/unictype/pr_bidi_control.c: New file.
2196         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
2197         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
2198         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
2199         * lib/unictype/pr_bidi_european_digit.c: New file.
2200         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
2201         * lib/unictype/pr_bidi_left_to_right.c: New file.
2202         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
2203         * lib/unictype/pr_bidi_other_neutral.c: New file.
2204         * lib/unictype/pr_bidi_pdf.c: New file.
2205         * lib/unictype/pr_bidi_segment_separator.c: New file.
2206         * lib/unictype/pr_bidi_whitespace.c: New file.
2207         * lib/unictype/pr_byname.c: New file.
2208         * lib/unictype/pr_byname.gperf: New file.
2209         * lib/unictype/pr_combining.c: New file.
2210         * lib/unictype/pr_composite.c: New file.
2211         * lib/unictype/pr_currency_symbol.c: New file.
2212         * lib/unictype/pr_dash.c: New file.
2213         * lib/unictype/pr_decimal_digit.c: New file.
2214         * lib/unictype/pr_default_ignorable_code_point.c: New file.
2215         * lib/unictype/pr_deprecated.c: New file.
2216         * lib/unictype/pr_diacritic.c: New file.
2217         * lib/unictype/pr_extender.c: New file.
2218         * lib/unictype/pr_format_control.c: New file.
2219         * lib/unictype/pr_grapheme_base.c: New file.
2220         * lib/unictype/pr_grapheme_extend.c: New file.
2221         * lib/unictype/pr_grapheme_link.c: New file.
2222         * lib/unictype/pr_hex_digit.c: New file.
2223         * lib/unictype/pr_hyphen.c: New file.
2224         * lib/unictype/pr_id_continue.c: New file.
2225         * lib/unictype/pr_id_start.c: New file.
2226         * lib/unictype/pr_ideographic.c: New file.
2227         * lib/unictype/pr_ids_binary_operator.c: New file.
2228         * lib/unictype/pr_ids_trinary_operator.c: New file.
2229         * lib/unictype/pr_ignorable_control.c: New file.
2230         * lib/unictype/pr_iso_control.c: New file.
2231         * lib/unictype/pr_join_control.c: New file.
2232         * lib/unictype/pr_left_of_pair.c: New file.
2233         * lib/unictype/pr_line_separator.c: New file.
2234         * lib/unictype/pr_logical_order_exception.c: New file.
2235         * lib/unictype/pr_lowercase.c: New file.
2236         * lib/unictype/pr_math.c: New file.
2237         * lib/unictype/pr_non_break.c: New file.
2238         * lib/unictype/pr_not_a_character.c: New file.
2239         * lib/unictype/pr_numeric.c: New file.
2240         * lib/unictype/pr_other_alphabetic.c: New file.
2241         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
2242         * lib/unictype/pr_other_grapheme_extend.c: New file.
2243         * lib/unictype/pr_other_id_continue.c: New file.
2244         * lib/unictype/pr_other_id_start.c: New file.
2245         * lib/unictype/pr_other_lowercase.c: New file.
2246         * lib/unictype/pr_other_math.c: New file.
2247         * lib/unictype/pr_other_uppercase.c: New file.
2248         * lib/unictype/pr_paired_punctuation.c: New file.
2249         * lib/unictype/pr_paragraph_separator.c: New file.
2250         * lib/unictype/pr_pattern_syntax.c: New file.
2251         * lib/unictype/pr_pattern_white_space.c: New file.
2252         * lib/unictype/pr_private_use.c: New file.
2253         * lib/unictype/pr_punctuation.c: New file.
2254         * lib/unictype/pr_quotation_mark.c: New file.
2255         * lib/unictype/pr_radical.c: New file.
2256         * lib/unictype/pr_sentence_terminal.c: New file.
2257         * lib/unictype/pr_soft_dotted.c: New file.
2258         * lib/unictype/pr_space.c: New file.
2259         * lib/unictype/pr_terminal_punctuation.c: New file.
2260         * lib/unictype/pr_test.c: New file.
2261         * lib/unictype/pr_titlecase.c: New file.
2262         * lib/unictype/pr_unassigned_code_value.c: New file.
2263         * lib/unictype/pr_unified_ideograph.c: New file.
2264         * lib/unictype/pr_uppercase.c: New file.
2265         * lib/unictype/pr_variation_selector.c: New file.
2266         * lib/unictype/pr_white_space.c: New file.
2267         * lib/unictype/pr_xid_continue.c: New file.
2268         * lib/unictype/pr_xid_start.c: New file.
2269         * lib/unictype/pr_zero_width.c: New file.
2270         * lib/unictype/scripts.c: New file.
2271         * lib/unictype/sy_c_ident.c: New file.
2272         * lib/unictype/sy_c_whitespace.c: New file.
2273         * lib/unictype/sy_java_ident.c: New file.
2274         * lib/unictype/sy_java_whitespace.c: New file.
2275
2276         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
2277         Unicode 5.0.0.
2278         * lib/unictype/blocks.h: Likewise.
2279         * lib/unictype/categ_C.h: Likewise.
2280         * lib/unictype/categ_Cc.h: Likewise.
2281         * lib/unictype/categ_Cf.h: Likewise.
2282         * lib/unictype/categ_Cn.h: Likewise.
2283         * lib/unictype/categ_Co.h: Likewise.
2284         * lib/unictype/categ_Cs.h: Likewise.
2285         * lib/unictype/categ_L.h: Likewise.
2286         * lib/unictype/categ_Ll.h: Likewise.
2287         * lib/unictype/categ_Lm.h: Likewise.
2288         * lib/unictype/categ_Lo.h: Likewise.
2289         * lib/unictype/categ_Lt.h: Likewise.
2290         * lib/unictype/categ_Lu.h: Likewise.
2291         * lib/unictype/categ_M.h: Likewise.
2292         * lib/unictype/categ_Mc.h: Likewise.
2293         * lib/unictype/categ_Me.h: Likewise.
2294         * lib/unictype/categ_Mn.h: Likewise.
2295         * lib/unictype/categ_N.h: Likewise.
2296         * lib/unictype/categ_Nd.h: Likewise.
2297         * lib/unictype/categ_Nl.h: Likewise.
2298         * lib/unictype/categ_No.h: Likewise.
2299         * lib/unictype/categ_P.h: Likewise.
2300         * lib/unictype/categ_Pc.h: Likewise.
2301         * lib/unictype/categ_Pd.h: Likewise.
2302         * lib/unictype/categ_Pe.h: Likewise.
2303         * lib/unictype/categ_Pf.h: Likewise.
2304         * lib/unictype/categ_Pi.h: Likewise.
2305         * lib/unictype/categ_Po.h: Likewise.
2306         * lib/unictype/categ_Ps.h: Likewise.
2307         * lib/unictype/categ_S.h: Likewise.
2308         * lib/unictype/categ_Sc.h: Likewise.
2309         * lib/unictype/categ_Sk.h: Likewise.
2310         * lib/unictype/categ_Sm.h: Likewise.
2311         * lib/unictype/categ_So.h: Likewise.
2312         * lib/unictype/categ_Z.h: Likewise.
2313         * lib/unictype/categ_Zl.h: Likewise.
2314         * lib/unictype/categ_Zp.h: Likewise.
2315         * lib/unictype/categ_Zs.h: Likewise.
2316         * lib/unictype/categ_of.h: Likewise.
2317         * lib/unictype/combining.h: Likewise.
2318         * lib/unictype/ctype_alnum.h: Likewise.
2319         * lib/unictype/ctype_alpha.h: Likewise.
2320         * lib/unictype/ctype_blank.h: Likewise.
2321         * lib/unictype/ctype_cntrl.h: Likewise.
2322         * lib/unictype/ctype_digit.h: Likewise.
2323         * lib/unictype/ctype_graph.h: Likewise.
2324         * lib/unictype/ctype_lower.h: Likewise.
2325         * lib/unictype/ctype_print.h: Likewise.
2326         * lib/unictype/ctype_punct.h: Likewise.
2327         * lib/unictype/ctype_space.h: Likewise.
2328         * lib/unictype/ctype_upper.h: Likewise.
2329         * lib/unictype/ctype_xdigit.h: Likewise.
2330         * lib/unictype/decdigit.h: Likewise.
2331         * lib/unictype/digit.h: Likewise.
2332         * lib/unictype/mirror.h: Likewise.
2333         * lib/unictype/numeric.h: Likewise.
2334         * lib/unictype/pr_alphabetic.h: Likewise.
2335         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2336         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2337         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2338         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2339         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2340         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2341         * lib/unictype/pr_bidi_control.h: Likewise.
2342         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2343         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2344         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2345         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2346         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2347         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2348         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2349         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2350         * lib/unictype/pr_bidi_pdf.h: Likewise.
2351         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2352         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2353         * lib/unictype/pr_combining.h: Likewise.
2354         * lib/unictype/pr_composite.h: Likewise.
2355         * lib/unictype/pr_currency_symbol.h: Likewise.
2356         * lib/unictype/pr_dash.h: Likewise.
2357         * lib/unictype/pr_decimal_digit.h: Likewise.
2358         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2359         * lib/unictype/pr_deprecated.h: Likewise.
2360         * lib/unictype/pr_diacritic.h: Likewise.
2361         * lib/unictype/pr_extender.h: Likewise.
2362         * lib/unictype/pr_format_control.h: Likewise.
2363         * lib/unictype/pr_grapheme_base.h: Likewise.
2364         * lib/unictype/pr_grapheme_extend.h: Likewise.
2365         * lib/unictype/pr_grapheme_link.h: Likewise.
2366         * lib/unictype/pr_hex_digit.h: Likewise.
2367         * lib/unictype/pr_hyphen.h: Likewise.
2368         * lib/unictype/pr_id_continue.h: Likewise.
2369         * lib/unictype/pr_id_start.h: Likewise.
2370         * lib/unictype/pr_ideographic.h: Likewise.
2371         * lib/unictype/pr_ids_binary_operator.h: Likewise.
2372         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2373         * lib/unictype/pr_ignorable_control.h: Likewise.
2374         * lib/unictype/pr_iso_control.h: Likewise.
2375         * lib/unictype/pr_join_control.h: Likewise.
2376         * lib/unictype/pr_left_of_pair.h: Likewise.
2377         * lib/unictype/pr_line_separator.h: Likewise.
2378         * lib/unictype/pr_logical_order_exception.h: Likewise.
2379         * lib/unictype/pr_lowercase.h: Likewise.
2380         * lib/unictype/pr_math.h: Likewise.
2381         * lib/unictype/pr_non_break.h: Likewise.
2382         * lib/unictype/pr_not_a_character.h: Likewise.
2383         * lib/unictype/pr_numeric.h: Likewise.
2384         * lib/unictype/pr_other_alphabetic.h: Likewise.
2385         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2386         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2387         * lib/unictype/pr_other_id_continue.h: Likewise.
2388         * lib/unictype/pr_other_id_start.h: Likewise.
2389         * lib/unictype/pr_other_lowercase.h: Likewise.
2390         * lib/unictype/pr_other_math.h: Likewise.
2391         * lib/unictype/pr_other_uppercase.h: Likewise.
2392         * lib/unictype/pr_paired_punctuation.h: Likewise.
2393         * lib/unictype/pr_paragraph_separator.h: Likewise.
2394         * lib/unictype/pr_pattern_syntax.h: Likewise.
2395         * lib/unictype/pr_pattern_white_space.h: Likewise.
2396         * lib/unictype/pr_private_use.h: Likewise.
2397         * lib/unictype/pr_punctuation.h: Likewise.
2398         * lib/unictype/pr_quotation_mark.h: Likewise.
2399         * lib/unictype/pr_radical.h: Likewise.
2400         * lib/unictype/pr_sentence_terminal.h: Likewise.
2401         * lib/unictype/pr_soft_dotted.h: Likewise.
2402         * lib/unictype/pr_space.h: Likewise.
2403         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2404         * lib/unictype/pr_titlecase.h: Likewise.
2405         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2406         * lib/unictype/pr_unified_ideograph.h: Likewise.
2407         * lib/unictype/pr_uppercase.h: Likewise.
2408         * lib/unictype/pr_variation_selector.h: Likewise.
2409         * lib/unictype/pr_white_space.h: Likewise.
2410         * lib/unictype/pr_xid_continue.h: Likewise.
2411         * lib/unictype/pr_xid_start.h: Likewise.
2412         * lib/unictype/pr_zero_width.h: Likewise.
2413         * lib/unictype/scripts.h: Likewise.
2414         * lib/unictype/scripts_byname.gperf: Likewise.
2415         * lib/unictype/sy_c_ident.h: Likewise.
2416         * lib/unictype/sy_c_whitespace.h: Likewise.
2417         * lib/unictype/sy_java_ident.h: Likewise.
2418         * lib/unictype/sy_java_whitespace.h: Likewise.
2419
2420         * lib/unictype/Makefile: New file.
2421         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
2422         glibc.
2423         * lib/unictype/3level.h: New file, copied from glibc.
2424         * lib/unictype/3levelbit.h: New file.
2425
2426 2007-11-11  Bruno Haible  <bruno@clisp.org>
2427
2428         * modules/gperf: New file.
2429         * modules/iconv_open (Depends-on): Add it.
2430         (Makefile.am): Remove the GPERF definition.
2431
2432 2007-11-11  Bruno Haible  <bruno@clisp.org>
2433
2434         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
2435         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
2436
2437 2007-11-11  Bruno Haible  <bruno@clisp.org>
2438
2439         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
2440         (usage): Remove function.
2441
2442 2007-11-11  Bruno Haible  <bruno@clisp.org>
2443
2444         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
2445         gl_FUNC_CEILF_LIBS.
2446         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
2447         gl_FUNC_CEIL_LIBS.
2448         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
2449         gl_FUNC_CEILL_LIBS.
2450         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
2451         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
2452         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
2453
2454 2007-11-11  Bruno Haible  <bruno@clisp.org>
2455
2456         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
2457         roundf were declared but do not exist on functions.
2458         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
2459         roundl were declared but do not exist on functions.
2460         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
2461         HAVE_FLOORL_AND_CEILL, respectively.
2462         Needed for Sun C on Solaris 10.
2463
2464 2007-11-11  Bruno Haible  <bruno@clisp.org>
2465
2466         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
2467         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
2468         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
2469         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
2470         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
2471         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
2472         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
2473         HAVE_DECL_ROUNDF.
2474         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
2475         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
2476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
2477         of HAVE_DECL_ROUND*.
2478         * modules/math (Makefile.am): Update.
2479
2480 2007-11-10  Bruno Haible  <bruno@clisp.org>
2481
2482         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
2483         ptrdiff_t as m4/intl.m4.
2484
2485 2007-11-10  Jim Meyering  <meyering@redhat.com>
2486
2487         Avoid link failure for the argmatch test.
2488         * tests/test-argmatch.c (usage): Define function to avoid a link
2489         failure: argmatch_die requires a usage function.
2490
2491 2007-11-09  Bruno Haible  <bruno@clisp.org>
2492
2493         * doc/functions/snprintf.texi: Mention BeOS deficiency.
2494         * doc/functions/vsnprintf.texi: Likewise.
2495         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
2496         with a size argument < 2.
2497
2498 2007-11-09  Bruno Haible  <bruno@clisp.org>
2499
2500         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
2501         buffer. Fixes an inefficiency introduced on 2007-11-03.
2502
2503 2007-11-09  Bruno Haible  <bruno@clisp.org>
2504
2505         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
2506         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
2507
2508 2007-11-08  Jim Meyering  <meyering@redhat.com>
2509
2510         Change cache variable name prefix "jm_" to "gl_" everywhere.
2511         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
2512         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
2513         * m4/uptime.m4: s/gl_/jm_/
2514
2515 2007-11-07  Bruno Haible  <bruno@clisp.org>
2516
2517         Update to GNU gettext 0.17.
2518         * m4/intl.m4: Update to GNU gettext 0.17.
2519         * m4/po.m4: Likewise.
2520         * modules/gettext (Files): Remove m4/ulonglong.m4.
2521         (configure.ac): Require gettext infrastructure from version 0.17.
2522
2523 2007-11-06  Bruno Haible  <bruno@clisp.org>
2524
2525         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
2526         symbolic values are not defined in a public header.
2527         * lib/freadable.c (freadable) [QNX]: Likewise.
2528         * lib/freadahead.c (freadahead) [QNX]: Likewise.
2529         * lib/freading.c (freading) [QNX]: Likewise.
2530         * lib/fseterr.c (fseterr) [QNX]: Likewise.
2531         * lib/fwritable.c (fwritable) [QNX]: Likewise.
2532         * lib/fwriting.c (fwriting) [QNX]: Likewise.
2533         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
2534         Reported by Alain Magloire.
2535
2536         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
2537
2538 2007-11-05  Bruno Haible  <bruno@clisp.org>
2539
2540         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
2541         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
2542         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
2543         Reported by Eric Blake.
2544
2545 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2546             Bruno Haible  <bruno@clisp.org>
2547
2548         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
2549         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
2550         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
2551         (malloc): Undefine also before including <stdlib.h>.
2552         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
2553         Needed on OSF/1 4.0.
2554
2555 2007-11-05  Jim Meyering  <meyering@redhat.com>
2556
2557         git-version-gen: sync from coreutils.
2558         * build-aux/git-version-gen: Add comments.
2559         Change the first '-' to '.' in the snapshot version string,
2560         e.g., 6.9-377-08144 -> 6.9.377-08144
2561         Remove first parameter.
2562         Don't declare a version "-dirty" merely because a time
2563         stamp has changed.
2564
2565 2007-11-04  Bruno Haible  <bruno@clisp.org>
2566
2567         * lib/lock.h: Protect all macro definitions containing an 'if'
2568         statement through a "do { ... } while (0)".
2569         * lib/tls.h: Likewise.
2570
2571 2007-11-04  Bruno Haible  <bruno@clisp.org>
2572
2573         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
2574
2575 2007-11-04  Bruno Haible  <bruno@clisp.org>
2576
2577         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
2578         * modules/fprintf-posix (Depends-on): Add nocrash.
2579         * modules/snprintf-posix (Depends-on): Likewise.
2580         * modules/sprintf-posix (Depends-on): Likewise.
2581         * modules/vasnprintf-posix (Depends-on): Likewise.
2582         * modules/vasprintf-posix (Depends-on): Likewise.
2583         * modules/vfprintf-posix (Depends-on): Likewise.
2584         * modules/vsnprintf-posix (Depends-on): Likewise.
2585         * modules/vsprintf-posix (Depends-on): Likewise.
2586         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2587         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2588         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2589         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2590         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2591         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2592         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2593
2594 2007-11-04  Bruno Haible  <bruno@clisp.org>
2595
2596         * modules/nocrash: New file.
2597         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
2598         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
2599
2600 2007-11-04  Bruno Haible  <bruno@clisp.org>
2601
2602         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
2603         precision handling.
2604         * tests/test-vasprintf-posix.c (test_function): Likewise.
2605         * tests/test-snprintf-posix.h (test_function): Likewise.
2606         * tests/test-sprintf-posix.h (test_function): Likewise.
2607
2608         Fix *printf behaviour for large precisions on mingw and BeOS.
2609         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
2610         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
2611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
2612         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2614         gl_PRINTF_PRECISION and test its result. Invoke
2615         gl_PREREQ_VASNPRINTF_PRECISION.
2616         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2617         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2618         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2619         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2620         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2621         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2622         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2623         * doc/functions/fprintf.texi: Update.
2624         * doc/functions/printf.texi: Update.
2625         * doc/functions/snprintf.texi: Update.
2626         * doc/functions/sprintf.texi: Update.
2627         * doc/functions/vfprintf.texi: Update.
2628         * doc/functions/vprintf.texi: Update.
2629         * doc/functions/vsnprintf.texi: Update.
2630         * doc/functions/vsprintf.texi: Update.
2631
2632 2007-11-04  Bruno Haible  <bruno@clisp.org>
2633
2634         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
2635
2636 2007-11-04  Bruno Haible  <bruno@clisp.org>
2637
2638         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
2639         Reported by Sylvain Beucler <beuc@gnu.org>.
2640
2641 2007-11-03  Bruno Haible  <bruno@clisp.org>
2642
2643         * tests/test-fprintf-posix2.sh: New file.
2644         * tests/test-fprintf-posix2.c: New file.
2645         * modules/fprintf-posix-tests (Files): Add them.
2646         (TESTS): Add test-fprintf-posix2.sh.
2647         (configure.ac): Check for getrlimit and setrlimit.
2648         (check_PROGRAMS): Add test-fprintf-posix2.
2649
2650         * tests/test-printf-posix2.sh: New file.
2651         * tests/test-printf-posix2.c: New file.
2652         * modules/printf-posix-tests (Files): Add them.
2653         (TESTS): Add test-printf-posix2.sh.
2654         (configure.ac): Check for getrlimit and setrlimit.
2655         (check_PROGRAMS): Add test-printf-posix2.
2656
2657         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
2658         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
2659         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
2660         (decode_double): New function, copied from decode_long_double.
2661         (scale10_round_decimal_decoded): New function, extracted from
2662         scale10_round_decimal_long_double.
2663         (scale10_round_decimal_long_double): Use it.
2664         (scale10_round_decimal_double): New function.
2665         (floorlog10): New function.
2666         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
2667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
2668         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2669         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2670         gl_PRINTF_ENOMEM and test its result. Invoke
2671         gl_PREREQ_VASNPRINTF_ENOMEM.
2672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2676         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2678         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2679         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
2680         * modules/snprintf-posix (Depends-on): Likewise.
2681         * modules/sprintf-posix (Depends-on): Likewise.
2682         * modules/vasnprintf-posix (Depends-on): Likewise.
2683         * modules/vasprintf-posix (Depends-on): Likewise.
2684         * modules/vfprintf-posix (Depends-on): Likewise.
2685         * modules/vsnprintf-posix (Depends-on): Likewise.
2686         * modules/vsprintf-posix (Depends-on): Likewise.
2687         * doc/functions/fprintf.texi: Update.
2688         * doc/functions/printf.texi: Update.
2689         * doc/functions/snprintf.texi: Update.
2690         * doc/functions/sprintf.texi: Update.
2691         * doc/functions/vfprintf.texi: Update.
2692         * doc/functions/vprintf.texi: Update.
2693         * doc/functions/vsnprintf.texi: Update.
2694         * doc/functions/vsprintf.texi: Update.
2695
2696 2007-11-03  Bruno Haible  <bruno@clisp.org>
2697
2698         * modules/frexp-nolibm-tests: New file.
2699
2700         * modules/frexp-nolibm: New file.
2701         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
2702
2703 2007-11-03  Bruno Haible  <bruno@clisp.org>
2704
2705         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
2706         value is C99 compliant.
2707         Needed for OSF/1 5.1.
2708
2709 2007-11-03  Bruno Haible  <bruno@clisp.org>
2710
2711         Fix out-of-memory handling of vasnprintf.
2712         * lib/printf-parse.c: Include <errno.h>.
2713         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
2714         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
2715         is already set.
2716
2717 2007-11-02  Eric Blake  <ebb9@byu.net>
2718
2719         Fix tests on cygwin.
2720         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
2721
2722 2007-11-01  Bruno Haible  <bruno@clisp.org>
2723
2724         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
2725         warning.
2726         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
2727         needed for POSIX compatibility.
2728
2729 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2730
2731         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
2732         for compatibility with GNU.
2733
2734 2007-11-01  Bruno Haible  <bruno@clisp.org>
2735
2736         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
2737         (putenv): Renamed from rpl_putenv. Change argument type from
2738         'const char *' to 'char *'.
2739         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
2740         of defining putenv in config.h, just set REPLACE_PUTENV.
2741         * modules/putenv (Depends-on): Add stdlib.
2742         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2743         (Include): Use <stdlib.h>.
2744         * lib/stdlib.in.h (putenv): New declaration.
2745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
2746         REPLACE_PUTENV.
2747         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
2748         REPLACE_PUTENV.
2749         Needed for MacOS X 10.5.0.
2750         Reported by Peter O'Gorman <peter@pogma.com>.
2751
2752 2007-11-01  Jim Meyering  <meyering@redhat.com>
2753
2754         Treat an empty date string exactly like "0".
2755         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
2756         if the remaining date string (to be parsed) is empty, use "0".
2757         Reported by Mischa Molhoek and discussed in this thread:
2758         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
2759
2760 2007-10-31  Bruno Haible  <bruno@clisp.org>
2761
2762         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
2763         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
2764         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
2765         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
2766         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
2767         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
2768
2769 2007-10-31  Bruno Haible  <bruno@clisp.org>
2770
2771         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
2772         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
2773         (AC_TYPE_LONG_LONG_INT): Use it.
2774         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
2775         it as well.
2776         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
2777         to m4/longlong.m4.
2778         * modules/stdint (Files): Remove m4/ulonglong.m4.
2779         * modules/strtoull (Files): Use m4/longlong.m4 instead of
2780         m4/ulonglong.m4.
2781         * modules/strtoumax (Files): Likewise.
2782
2783 2007-10-30  Bruno Haible  <bruno@clisp.org>
2784
2785         * modules/xvasprintf-posix: New file.
2786         Suggested by Eric Blake.
2787
2788 2007-10-30  Bruno Haible  <bruno@clisp.org>
2789
2790         * modules/xprintf-posix-tests: New file.
2791         * tests/test-xprintf-posix.sh: New file.
2792         * tests/test-xprintf-posix.c: New file.
2793         * tests/test-xfprintf-posix.c: New file.
2794
2795         * modules/xprintf-posix: New file.
2796
2797 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2798
2799         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
2800         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
2801         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
2802
2803 2007-10-29  Bruno Haible  <bruno@clisp.org>
2804
2805         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
2806         contain the special marker '_cv_'.
2807         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2808         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2809         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2810         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2811         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2812         Reported by Ralf Wildenhues.
2813
2814 2007-10-29  Bruno Haible  <bruno@clisp.org>
2815
2816         * gnulib-tool (func_import): When --lgpl is not specified, set
2817         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
2818         GPLv3.
2819         Reported by Simon Josefsson.
2820
2821 2007-10-28  Bruno Haible  <bruno@clisp.org>
2822
2823         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
2824         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
2825         HAVE_DECL_ISFINITE.
2826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
2827         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
2828         HAVE_DECL_ISFINITE.
2829
2830 2007-10-28  Bruno Haible  <bruno@clisp.org>
2831
2832         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
2833         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
2834
2835 2007-10-28  Bruno Haible  <bruno@clisp.org>
2836
2837         Fix link errors with Sun C 5.0 on Solaris 10.
2838         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
2839         function is declared but not present in the compiler's libm.
2840         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2841         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2842         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
2843         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
2844         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
2845         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
2846         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
2847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
2848         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
2849         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
2850         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
2851         HAVE_DECL_FLOORL.
2852
2853 2007-10-28  Bruno Haible  <bruno@clisp.org>
2854
2855         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
2856         gl_FUNC_FLOORL. Cache the result.
2857         (gl_FUNC_FLOORL): Use it.
2858         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
2859         gl_FUNC_CEILL. Cache the result.
2860         (gl_FUNC_CEILL): Use it.
2861
2862         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
2863         gl_FUNC_FLOOR. Cache the result.
2864         (gl_FUNC_FLOOR): Use it.
2865         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
2866         gl_FUNC_CEIL. Cache the result.
2867         (gl_FUNC_CEIL): Use it.
2868
2869         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
2870         gl_FUNC_FLOORF. Cache the result.
2871         (gl_FUNC_FLOORF): Use it.
2872         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
2873         gl_FUNC_CEILF. Cache the result.
2874         (gl_FUNC_CEILF): Use it.
2875
2876 2007-10-28  Bruno Haible  <bruno@clisp.org>
2877
2878         * gnulib-tool: Allow specifying the LGPL version number through
2879         --lgpl=2 or --lgpl=3.
2880         (func_usage): Document --lgpl with argument.
2881         Handle --lgpl=... arguments.
2882         (func_import): Recognize also gl_LGPL calls with an argument. When
2883         --lgpl=2 is used and the module's license is just LGPL, report an
2884         error. Set sed_transform_lib_file according to the lgpl variable. In
2885         the generated files, use --lgpl or gl_LGPL invocations with argument,
2886         if necessary.
2887         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
2888         an LGPv2+ license.
2889         * doc/gnulib-tool.texi (Modified imports): Update explanation of
2890         gl_LGPL macro.
2891
2892 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2893             Bruno Haible  <bruno@clisp.org>
2894
2895         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
2896         (u16_uctomb_aux): Likewise.
2897         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
2898         !HAVE_INLINE.
2899         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
2900
2901 2007-10-28  Bruno Haible  <bruno@clisp.org>
2902
2903         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
2904         Invoke AM_GETTEXT_OPTION if it exists.
2905         * modules/vasprintf: Likewise.
2906         * modules/verror: Likewise.
2907         * modules/xprintf: Likewise.
2908         * modules/xvasprintf: Likewise.
2909
2910 2007-10-27  Ben Pfaff  <blp@gnu.org>
2911
2912         * lib/math.in.h: Define isfinite macro and prototypes for
2913         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
2914         implementations.
2915         * m4/math_h.m4: New substitutions for isfinite module.
2916         * lib/isfinite.c: New file.
2917         * m4/isfinite.m4: New file.
2918         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
2919         * modules/isfinite: New file.
2920         * modules/isfinite-tests: New file.
2921         * tests/tests-isfinite.c: New file.
2922         * doc/functions/isfinite.texi: Mention isfinite module.
2923         * MODULES.html.sh: Mention new module.
2924
2925 2007-10-27  Ben Pfaff  <blp@gnu.org>
2926
2927         Ralf Wildenhues reported that Tru64 4.0D declares the round
2928         functions but does not have definitions.
2929         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
2930         cannot be found in any library, set the output variable to
2931         "missing" instead of "".
2932         * m4/round.m4: Also use our substitute if we cannot find round in
2933         any library, even if it is declared.
2934         * m4/roundf.m4: Likewise for roundf.
2935         * m4/roundl.m4: Likewise for roundl.
2936         * lib/math.in.h: Undefine roundf, round, roundl before defining
2937         their replacements, to allow for hypothetical systems where these
2938         may be defined as macros but not available in libraries.
2939
2940 2007-10-27  Bruno Haible  <bruno@clisp.org>
2941
2942         * doc/gnulib.texi: Invoke @firstparagraphindent.
2943         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
2944         changes in gnulib.
2945         (Source changes): New section.
2946
2947 2007-10-26  Bruno Haible  <bruno@clisp.org>
2948
2949         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
2950         borrowed from autoconf.
2951
2952 2007-10-26  Bruno Haible  <bruno@clisp.org>
2953
2954         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
2955         strerror returned the empty string. Needed on HP-UX 11.00.
2956
2957 2007-10-24  Micah Cowan  <micah@cowan.name>
2958
2959         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
2960         * build-aux/bootstrap: Remove support for now-unnecessary option,
2961         --cvs-user, and envvars CVS_USER, CVS_RSH.
2962
2963 2007-10-24  Jim Meyering  <meyering@redhat.com>
2964
2965         Avoid diagnostics from sha1sum when there is no cached checksum.
2966         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
2967         if the po.s1 file hasn't been created yet.
2968
2969         * build-aux/bootstrap: Sync from coreutils:
2970         2007-10-24  Jim Meyering  <meyering@redhat.com>
2971         Get gnulib from the git repository, not from an obsolete cvs one.
2972         * build-aux/bootstrap: Suggestion from Micah Cowan.
2973         2007-10-04  Jim Meyering  <jim@meyering.net>
2974         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
2975         (update_po_files): Work also when there are no .po files in po/.
2976
2977 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2978
2979         * README: Append ".git" to git and cg examples.
2980         Problem reported by Benoit Sigoure.
2981
2982 2007-10-23  Micah Cowan  <micah@cowan.name>
2983
2984         * users.txt: Add wget.
2985
2986 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2987
2988         Fix linking of some unistdio tests on FreeBSD.
2989         * modules/unistdio/u16-vsnprintf-tests
2990         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
2991         * modules/unistdio/u16-vsprintf-tests
2992         (test_u16_vsnprintf1_LDADD): Likewise.
2993         * modules/unistdio/u32-vsnprintf-tests
2994         (test_u32_vsnprintf1_LDADD): Likewise.
2995         * modules/unistdio/u32-vsprintf-tests
2996         (test_u32_vsprintf1_LDADD): Likewise.
2997         * modules/unistdio/u8-vsnprintf-tests
2998         (test_u8_vsnprintf1_LDADD): Likewise.
2999         * modules/unistdio/u8-vsprintf-tests
3000         (test_u8_vsprintf1_LDADD): Likewise.
3001         * modules/unistdio/ulc-vsnprintf-tests
3002         (test_ulc_vsnprintf1_LDADD): Likewise.
3003         * modules/unistdio/ulc-vsprintf-tests
3004         (test_ulc_vsprintf1_LDADD): Likewise.
3005
3006         Fix linking of some uniconv tests on FreeBSD.
3007         * modules/uniconv/u16-conv-from-enc-tests
3008         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
3009         * modules/uniconv/u16-conv-to-enc-tests
3010         (test_u16_conv_to_enc_LDADD): Likewise.
3011         * modules/uniconv/u16-strconv-from-enc-tests
3012         (test_u16_strconv_from_enc_LDADD): Likewise.
3013         * modules/uniconv/u16-strconv-to-enc-tests
3014         (test_u16_strconv_to_enc_LDADD): Likewise.
3015         * modules/uniconv/u32-conv-from-enc-tests
3016         (test_u32_conv_from_enc_LDADD): Likewise.
3017         * modules/uniconv/u32-conv-to-enc-tests
3018         (test_u32_conv_to_enc_LDADD): Likewise.
3019         * modules/uniconv/u32-strconv-from-enc-tests
3020         (test_u32_strconv_from_enc_LDADD): Likewise.
3021         * modules/uniconv/u32-strconv-to-enc-tests
3022         (test_u32_strconv_to_enc_LDADD): Likewise.
3023         * modules/uniconv/u8-conv-from-enc-tests
3024         (test_u8_conv_from_enc_LDADD): Likewise.
3025         * modules/uniconv/u8-conv-to-enc-tests
3026         (test_u8_conv_to_enc_LDADD): Likewise.
3027         * modules/uniconv/u8-strconv-from-enc-tests
3028         (test_u8_strconv_from_enc_LDADD): Likewise.
3029         * modules/uniconv/u8-strconv-to-enc-tests
3030         (test_u8_strconv_to_enc_LDADD): Likewise.
3031
3032 2007-10-22  Bruno Haible  <bruno@clisp.org>
3033
3034         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
3035         size.
3036
3037 2007-10-22  Eric Blake  <ebb9@byu.net>
3038
3039         Tweak x*printf documentation.
3040         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
3041         variable name and comments.
3042         Suggested by Bruno Haible.
3043
3044 2007-10-22  Bruno Haible  <bruno@clisp.org>
3045
3046         * lib/acl.c (copy_acl): Fix file name in comment.
3047
3048 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
3049
3050         Fix Tru64 problem with stdbool.h.
3051         * lib/stdbool.in.h (false, true):
3052         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
3053         Don't declare as an enum in this situation; it runs afoul of Tru64.
3054         Problem reported by Steven M. Schweda in
3055         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
3056
3057 2007-10-22  Eric Blake  <ebb9@byu.net>
3058
3059         Also wrap vf?printf.
3060         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
3061         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
3062         (xvprintf, xvfprintf): New functions.
3063
3064 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3065
3066         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
3067         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
3068
3069         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
3070         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
3071
3072 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
3073
3074         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
3075         by Bruno Haible.
3076
3077 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3078
3079         * lib/getloadavg.c
3080         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
3081         Undef `sys' after including sys/table.h, for Tru64 4.0D.
3082
3083         * tests/test-i-ring.c: Work for C89.
3084
3085 2007-10-22  Bruno Haible  <bruno@clisp.org>
3086
3087         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
3088         -1u, in preprocessor expression, so that we don't test for the bug
3089         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
3090         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
3091
3092 2007-10-22  Eric Blake  <ebb9@byu.net>
3093
3094         * tests/test-yesno.sh: Silence stderr during test.
3095
3096 2007-10-22  Simon Josefsson  <simon@josefsson.org>
3097
3098         * modules/crypto/gc-camellia: New file.
3099
3100         * m4/gc-camellia.m4: New file.
3101
3102         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
3103
3104         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
3105
3106 2007-10-22  Simon Josefsson  <simon@josefsson.org>
3107
3108         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
3109         --help to stdout.  Reported by sms@antinode.org (Steven
3110         M. Schweda).
3111
3112 2007-10-22  Simon Josefsson  <simon@josefsson.org>
3113
3114         * users.txt: Fix link to libksba.
3115
3116 2007-10-21  Ben Pfaff  <blp@gnu.org>
3117
3118         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
3119         round.c roundf implementation that depends on floorf and ceilf to
3120         be tested unconditionally.
3121
3122 2007-10-21  Ben Pfaff  <blp@gnu.org>
3123
3124         * m4/check-libm-func.m4: Removed.
3125         * m4/check-math-lib.m4: New file.
3126         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
3127         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
3128         definition and lack of AC_LIBOBJ([roundf]).
3129         * m4/roundl.m4: Ditto, and similarly for roundl.
3130         * modules/round: Reference new m4 file.
3131         * modules/roundf: Ditto.
3132         * modules/roundl: Ditto.
3133         * tests/test-round2.c (main): Use ROUND instead of round.
3134         Bug report from Bruno Haible.
3135
3136 2007-10-21  Bruno Haible  <bruno@clisp.org>
3137
3138         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
3139         context.
3140
3141 2007-10-21  Bruno Haible  <bruno@clisp.org>
3142
3143         * tests/test-wcwidth.c (main): Allow negative result for some control
3144         characters.
3145
3146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
3147         Needed on OSF/1 5.1.
3148
3149 2007-10-21  Bruno Haible  <bruno@clisp.org>
3150
3151         * tests/test-floorf1.c: Include isnanf.h.
3152         (main): Use isnanf() instead of isnan().
3153         * tests/test-ceilf1.c: Include isnanf.h.
3154         (main): Use isnanf() instead of isnan().
3155         * tests/test-truncf1.c: Include isnanf.h.
3156         (main): Use isnanf() instead of isnan().
3157         * tests/test-roundf1.c: Include isnanf.h.
3158         (main): Use isnanf() instead of isnan().
3159
3160 2007-10-21  Eric Blake  <ebb9@byu.net>
3161
3162         * users.txt: Update URL for m4.
3163
3164 2007-10-21  Bruno Haible  <bruno@clisp.org>
3165
3166         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
3167
3168 2007-10-21  Bruno Haible  <bruno@clisp.org>
3169
3170         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
3171         Git's management files if the CVS files are not present.
3172
3173 2007-10-20  Bruno Haible  <bruno@clisp.org>
3174
3175         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
3176         gcc-3.4.x.
3177
3178 2007-10-20  Ben Pfaff  <blp@gnu.org>
3179
3180         * lib/math.in.h: Declare round, roundf, roundl if we are providing
3181         implementations.
3182         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
3183         * lib/round.c: New file.
3184         * lib/roundf.c: New file.
3185         * lib/roundl.c: New file.
3186         * m4/round.m4: New file.
3187         * m4/roundf.m4: New file.
3188         * m4/roundl.m4: New file.
3189         * m4/check-libm-func-m4: New file.
3190         * modules/math: Replace round, roundf, roundl related @VARS@ in
3191         math.in.h.
3192         * modules/round: New file.
3193         * modules/round-tests: New file.
3194         * modules/roundf: New file.
3195         * modules/roundf-tests: New file.
3196         * modules/roundl: New file.
3197         * modules/roundl-tests: New file.
3198         * tests/test-round1.c: New file.
3199         * tests/test-round2.c: New file.
3200         * tests/test-roundf1.c: New file.
3201         * tests/test-roundf2.c: New file.
3202         * tests/test-roundl.c: New file.
3203         * doc/functions/round.texi: Mention round module.
3204         * doc/functions/roundf.texi: Mention roundf module.
3205         * doc/functions/roundl.texi: Mention roundl module.
3206         * MODULES.html.sh: Mention new modules.
3207         Thanks to Bruno Haible for suggestions.
3208
3209 2007-10-20  Jim Meyering  <meyering@redhat.com>
3210
3211         * lib/xprintf.c: Include <config.h> unconditionally.
3212
3213         Change xprintf's license to GPL.
3214         * modules/xprintf (License): s/LGPL/GPL/, since this module
3215         depends on modules (exit and exitfail) which are GPL.
3216         Suggestion from Bruno Haible.
3217
3218         xprintf fixes.
3219         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
3220         Use a clearer diagnostic.
3221         Patch from Bruno Haible.
3222
3223 2007-10-20  Bruno Haible  <bruno@clisp.org>
3224
3225         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
3226         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
3227         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3228
3229 2007-10-20  Bruno Haible  <bruno@clisp.org>
3230
3231         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
3232         precision in the comparison result > x - 1 or similar.
3233         * tests/test-ceilf2.c (correct_result_p): Likewise.
3234         * tests/test-truncf2.c (correct_result_p): Likewise.
3235         * tests/test-trunc2.c (correct_result_p): Likewise.
3236         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3237
3238 2007-10-20  Bruno Haible  <bruno@clisp.org>
3239
3240         * modules/ceil: New file.
3241         * m4/ceil.m4: New file.
3242         * doc/functions/ceil.texi: Mention the 'ceil' module.
3243
3244 2007-10-20  Bruno Haible  <bruno@clisp.org>
3245
3246         * modules/floor: New file.
3247         * m4/floor.m4: New file.
3248         * doc/functions/floor.texi: Mention the 'floor' module.
3249
3250 2007-10-20  Bruno Haible  <bruno@clisp.org>
3251
3252         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
3253         of %a.
3254         * modules/floorf-tests (Depends-on): Likewise.
3255         * modules/truncf-tests (Depends-on): Likewise.
3256         * modules/trunc-tests (Depends-on): Likewise.
3257         Reported by Ben Pfaff.
3258
3259 2007-10-19  Jim Meyering  <meyering@redhat.com>
3260
3261         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
3262         Don't bother testing specific errno values.  Just test ferror.
3263
3264         New module: xprintf
3265         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
3266
3267 2007-10-19  Bruno Haible  <bruno@clisp.org>
3268
3269         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
3270         syntax.
3271         * modules/javaexec (Makefile.am): Likewise.
3272         * modules/relocatable-prog (Makefile.am): Likewise.
3273         Suggested by Jim Meyering.
3274
3275 2007-10-18  Bruno Haible  <bruno@clisp.org>
3276
3277         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
3278         Reported by Jim Meyering.
3279
3280 2007-10-18  Eric Blake  <ebb9@byu.net>
3281
3282         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
3283
3284 2007-10-18  Bruno Haible  <bruno@clisp.org>
3285
3286         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
3287         the format string into writable memory. Needed in Fortify conditions.
3288
3289 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
3290             Bruno Haible  <bruno@clisp.org>
3291
3292         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
3293         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
3294         * modules/trim (Depends-on): Add mbchar.
3295         (configure.ac): Add gl_FUNC_MBRTOWC.
3296         (Makefile.am): Augment lib_SOURCES.
3297
3298 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
3299
3300         Modify glob.c to use fstatat and dirfd, to simplify it.
3301         Suggested by Eric Blake.
3302         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
3303         Don't include <stdbool.h>; not used.
3304         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
3305         (link_exists_p): Simplify implementation, since we can now assume
3306         dirfd and fstatat.
3307         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
3308
3309 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3310
3311         * gnulib-tool (func_get_dependencies): Fix sed script to
3312         match only tests.
3313
3314 2007-10-17  Bruno Haible  <bruno@clisp.org>
3315
3316         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
3317         allow locale names without encoding suffix.
3318         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3319         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3320
3321 2007-10-16  Bruno Haible  <bruno@clisp.org>
3322
3323         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
3324         * lib/getgroups.c (getgroups): Likewise.
3325         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
3326
3327 2007-10-16  Bruno Haible  <bruno@clisp.org>
3328
3329         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
3330         * modules/malloc-posix (License): Likewise.
3331         * modules/realloc-posix (License): Likewise.
3332         * modules/calloc-posix (License): Likewise.
3333         * modules/intprops (License): Change from GPL to LGPL, with
3334         Paul Eggert's approval.
3335
3336 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3337
3338         Merge glibc changes into lib/glob.c.
3339
3340         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
3341         2007-10-15 04:59:03 UTC.  Here are the changes:
3342
3343         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3344
3345         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
3346
3347         * lib/glob.c: Add some branch prediction throughout.
3348
3349         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3350
3351         [BZ #5103]
3352         * lib/glob.c (glob): Recognize patterns starting \/.
3353
3354         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
3355
3356         [BZ #3996]
3357         * lib/glob.c (attribute_hidden): Define if not defined.
3358         (glob): Unescape dirname, filename or username when needed and not
3359         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
3360         is NULL.  Handle unescaped [ in pattern without closing ].
3361         Don't pass GLOB_CHECK down to recursive glob for directories.
3362         (__glob_pattern_type): New function.
3363         (__glob_pattern_p): Implement using __glob_pattern_type.
3364         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
3365         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
3366         Remove unreachable code.
3367
3368         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
3369
3370         * lib/glob.c (glob_in_dir): Add some comments and asserts to
3371         explain why there are no leaks.
3372
3373         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
3374
3375         [BZ #3253]
3376         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
3377         time, rather allocate increasingly bigger arrays of pointers, if
3378         possible with alloca, if too large with malloc.
3379
3380 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3381
3382         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
3383         Problem reported by H.Merijn Brand in
3384         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
3385         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
3386         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
3387
3388 2007-10-15  Bruno Haible  <bruno@clisp.org>
3389
3390         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
3391         with explicit rpl_ prefix.
3392         * lib/fopen.c (fopen): Likewise.
3393         * lib/freopen.c (freopen): Likewise.
3394         * lib/iconv.c (iconv): Likewise.
3395         * lib/iconv_close.c (iconv_close): Likewise.
3396
3397 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3398
3399         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
3400
3401 2007-10-15  Bruno Haible  <bruno@clisp.org>
3402
3403         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
3404         <stddef.h> instead of <stdlib.h> since we only need NULL.
3405         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3406
3407 2007-10-15  Bruno Haible  <bruno@clisp.org>
3408
3409         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
3410         Replace paragraph talking about LIBOBJS.
3411         Reported by Colin Watson <cjwatson@debian.org>.
3412
3413 2007-10-15  Bruno Haible  <bruno@clisp.org>
3414
3415         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
3416         <stdlib.h> before using NULL.
3417
3418 2007-10-15  Simon Josefsson  <simon@josefsson.org>
3419
3420         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
3421         Reported by Albert Chin <china@thewrittenword.com>.
3422
3423 2007-10-14  Bruno Haible  <bruno@clisp.org>
3424
3425         * modules/iconv_open-utf-tests: New file.
3426         * tests/test-iconv-utf.c: New file.
3427
3428         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
3429         * modules/iconv_open-utf: New file.
3430         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
3431         (iconv, iconv_close): New declarations.
3432         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
3433         be defined.
3434         (iconv_open): Add special handling of conversion between UTF-8 and
3435         UTF-{16,32}{BE,LE}.
3436         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
3437         * lib/iconv_close.c: New file.
3438         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
3439         gl_FUNC_ICONV_OPEN.
3440         (gl_FUNC_ICONV_OPEN): Use it.
3441         (gl_FUNC_ICONV_OPEN_UTF): New macro.
3442         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
3443         and REPLACE_ICONV_UTF.
3444         * modules/iconv_open (Depends-on): Add c-strcase.
3445         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
3446         ICONV_CONST.
3447         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
3448
3449 2007-10-13  Albert Chin  <china@thewrittenword.com>
3450             Bruno Haible  <bruno@clisp.org>
3451
3452         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
3453         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
3454
3455 2007-10-13  Bruno Haible  <bruno@clisp.org>
3456
3457         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
3458         defined, use the ISO C99 inline semantics.
3459         * lib/argp.h (ARGP_EI): Likewise.
3460
3461 2007-10-13  Bruno Haible  <bruno@clisp.org>
3462
3463         Handle 'inline' change in gcc 4.3.0.
3464         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
3465         argp_fmtstream_write, argp_fmtstream_set_lmargin,
3466         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
3467         argp_fmtstream_point): Disable 'extern' declaration if the function
3468         definition is going to be provided inline.
3469         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
3470         semantics, not the ISO C99 inline semantics.
3471         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
3472         'extern' declaration if the function definition is going to be provided
3473         inline.
3474         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
3475         the GNU C inline semantics, not the ISO C99 inline semantics. With
3476         GCC 4.2, avoid a warning.
3477
3478 2007-10-13  Bruno Haible  <bruno@clisp.org>
3479
3480         * lib/freading.h (freading): Enable the use of __freading for
3481         glibc >= 2.7.
3482         * lib/freading.c (freading): Likewise.
3483
3484 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3485
3486         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
3487         "warning: C99 inline functions are not supported; using GNU89".
3488
3489 2007-10-12  Bruno Haible  <bruno@clisp.org>
3490
3491         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
3492         of 2.
3493         * tests/test-ceilf2.c: New file.
3494         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
3495
3496         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
3497         * modules/ceilf-tests: Update.
3498
3499 2007-10-12  Bruno Haible  <bruno@clisp.org>
3500
3501         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
3502         of 2.
3503         * tests/test-floorf2.c: New file.
3504         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
3505
3506         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
3507         * modules/floorf-tests: Update.
3508
3509 2007-10-12  Bruno Haible  <bruno@clisp.org>
3510
3511         * tests/test-trunc2.c: New file.
3512         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
3513
3514         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
3515         * modules/trunc-tests: Update.
3516
3517 2007-10-12  Bruno Haible  <bruno@clisp.org>
3518
3519         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
3520         of 2.
3521         * tests/test-truncf2.c: New file.
3522         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
3523
3524         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
3525         * modules/truncf-tests: Update.
3526
3527 2007-10-11  Eric Blake  <ebb9@byu.net>
3528
3529         Don't claim strerror is broken on Interix.
3530         * doc/functions/strerror.texi (strerror): Known broken systems are
3531         now Solaris 8, and not Interix.
3532         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
3533         Interix on cross-compile.
3534         Reported by Martin Koeppe in
3535         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
3536
3537 2007-10-11  Bruno Haible  <bruno@clisp.org>
3538
3539         * modules/i-ring-tests: New file.
3540         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
3541         instead of assert.
3542
3543 2007-10-11  Bruno Haible  <bruno@clisp.org>
3544
3545         * modules/filenamecat-tests: New file.
3546         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
3547         * lib/filenamecat.c: Remove test code.
3548
3549 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3550
3551         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
3552
3553         * lib/strerror.c: Include <string.h> always, to test interface,
3554         and to remove the need for the dummy.
3555         Include intprops.h to compute width instead of doing it ourselves
3556         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
3557         (strerror): Define it to return NULL if there's no system strerror.
3558         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
3559         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
3560         ancient pre-strerror Unix systems well any more.  Saying "unknown
3561         system error" is enough.
3562         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
3563         simpler strerror.c implementation.
3564         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
3565         Simplify the tests to reflect the simpler strerror implementation.
3566         * modules/strerror (Depends-on): Add intprops.
3567
3568 2007-10-09  Eric Blake  <ebb9@byu.net>
3569
3570         Silence test-fpending.
3571         * modules/fpending-tests (Files): Add wrapper script.
3572         * tests/test-fpending.sh: New file.
3573
3574 2007-10-09  Bruno Haible  <bruno@clisp.org>
3575
3576         * MODULES.html.sh (func_module): Don't create a hyperlink for
3577         function names like 'printf_frexp'.
3578         (Misc): Add crc, memxor.
3579         (Characteristics of floating types): New section.
3580         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
3581         isnanf-nolibm, signbit, trunc, truncf, truncl.
3582         (Enhancements for ISO C 99 functions): New subsection Input/output.
3583         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
3584         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
3585         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
3586         (Compatibility checks for POSIX:2001 functions): Add clock-time.
3587         (Enhancements for POSIX:2001 functions): Add chdir-long.
3588         (File system functions): Add areadlink, chdir-safer, read-file.
3589         Remove cycle-check.
3590         (File system as inode set): New section.
3591         (Date and time): Add gethrxtime.
3592         (Multithreading): Add openmp.
3593         (Internationalization functions): Add localename.
3594         (Unicode string functions): Add unistr/u*-mbsnlen.
3595         (Support for maintaining and releasing projects): Add git-version-gen.
3596         (Lone files): Remove directories.
3597
3598 2007-10-08  Ben Pfaff  <blp@gnu.org>
3599
3600         * lib/xmalloca.h: Fix typo in comment.
3601
3602 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3603
3604         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
3605         when avoiding problems with integer overflow.  Use a portable test
3606         instead.
3607
3608 2007-10-08  Simon Josefsson  <simon@josefsson.org>
3609
3610         * modules/dummy (License): Change to LGPLv2+.
3611         * modules/float (License): Likewise
3612         * modules/realloc (License): Likewise
3613         * modules/stdlib (License): Likewise
3614
3615 2007-10-07  Bruno Haible  <bruno@clisp.org>
3616
3617         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
3618         * floor.c (TWO_MANT_DIG): Likewise.
3619         * ceil.c (TWO_MANT_DIG): Likewise.
3620         Reported by Ben Pfaff.
3621
3622 2007-10-07  Bruno Haible  <bruno@clisp.org>
3623
3624         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
3625         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
3626         * lib/frexp.c (FUNC): Likewise.
3627         * lib/printf-frexp.h (printf_frexp): Likewise.
3628         * lib/printf-frexpl.h (printf_frexpl): Likewise.
3629         * lib/printf-frexp.c (FUNC): Likewise.
3630         Suggested by Jim Meyering.
3631
3632 2007-10-07  Jim Meyering  <meyering@redhat.com>
3633
3634         Make xnanosleep's integer overflow test more robust.
3635         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
3636         so that gcc-4.3.0 doesn't optimize away this test for overflow.
3637
3638 2007-10-07  Bruno Haible  <bruno@clisp.org>
3639
3640         * NEWS: Mention the license change.
3641
3642         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
3643         abbreviations in the modules files.
3644
3645         Change copyright notice from GPLv2+ to GPLv3+.
3646         * README: Change copyright notice.
3647         * MODULES.html.sh: Likewise.
3648         * build-aux/bootstrap.conf: Likewise.
3649         * build-aux/config.libpath: Likewise.
3650         * build-aux/csharpcomp.sh.in: Likewise.
3651         * build-aux/csharpexec.sh.in: Likewise.
3652         * build-aux/install-reloc: Likewise.
3653         * build-aux/javacomp.sh.in: Likewise.
3654         * build-aux/javaexec.sh.in: Likewise.
3655         * build-aux/ldd.sh.in: Likewise.
3656         * build-aux/reloc-ldflags: Likewise.
3657         * build-aux/relocatable.sh.in: Likewise.
3658         * build-aux/x-to-1.in: Likewise.
3659         * check-module: Likewise.
3660         * config/srclistvars.sh: Likewise.
3661         * gnulib-tool: Likewise.
3662         * lib/acl-internal.h: Likewise.
3663         * lib/acl.c: Likewise.
3664         * lib/acl.h: Likewise.
3665         * lib/acl_entries.c: Likewise.
3666         * lib/areadlink-with-size.c: Likewise.
3667         * lib/areadlink.c: Likewise.
3668         * lib/areadlink.h: Likewise.
3669         * lib/argmatch.c: Likewise.
3670         * lib/argmatch.h: Likewise.
3671         * lib/argp-ba.c: Likewise.
3672         * lib/argp-eexst.c: Likewise.
3673         * lib/argp-fmtstream.c: Likewise.
3674         * lib/argp-fmtstream.h: Likewise.
3675         * lib/argp-fs-xinl.c: Likewise.
3676         * lib/argp-help.c: Likewise.
3677         * lib/argp-namefrob.h: Likewise.
3678         * lib/argp-parse.c: Likewise.
3679         * lib/argp-pin.c: Likewise.
3680         * lib/argp-pv.c: Likewise.
3681         * lib/argp-pvh.c: Likewise.
3682         * lib/argp-xinl.c: Likewise.
3683         * lib/argp.h: Likewise.
3684         * lib/at-func.c: Likewise.
3685         * lib/atanl.c: Likewise.
3686         * lib/backupfile.c: Likewise.
3687         * lib/backupfile.h: Likewise.
3688         * lib/basename.c: Likewise.
3689         * lib/binary-io.h: Likewise.
3690         * lib/byteswap.in.h: Likewise.
3691         * lib/c-stack.c: Likewise.
3692         * lib/c-stack.h: Likewise.
3693         * lib/c-strcasestr.c: Likewise.
3694         * lib/c-strcasestr.h: Likewise.
3695         * lib/c-strstr.c: Likewise.
3696         * lib/c-strstr.h: Likewise.
3697         * lib/c-strtod.c: Likewise.
3698         * lib/calloc.c: Likewise.
3699         * lib/canon-host.c: Likewise.
3700         * lib/canon-host.h: Likewise.
3701         * lib/canonicalize-lgpl.c: Likewise.
3702         * lib/canonicalize.c: Likewise.
3703         * lib/canonicalize.h: Likewise.
3704         * lib/ceil.c: Likewise.
3705         * lib/ceilf.c: Likewise.
3706         * lib/ceill.c: Likewise.
3707         * lib/chdir-long.c: Likewise.
3708         * lib/chdir-long.h: Likewise.
3709         * lib/chdir-safer.c: Likewise.
3710         * lib/chdir-safer.h: Likewise.
3711         * lib/chown.c: Likewise.
3712         * lib/classpath.c: Likewise.
3713         * lib/classpath.h: Likewise.
3714         * lib/clean-temp.c: Likewise.
3715         * lib/clean-temp.h: Likewise.
3716         * lib/cloexec.c: Likewise.
3717         * lib/close-stream.c: Likewise.
3718         * lib/closein.c: Likewise.
3719         * lib/closein.h: Likewise.
3720         * lib/closeout.c: Likewise.
3721         * lib/closeout.h: Likewise.
3722         * lib/concat-filename.c: Likewise.
3723         * lib/copy-file.c: Likewise.
3724         * lib/copy-file.h: Likewise.
3725         * lib/count-one-bits.h: Likewise.
3726         * lib/crc.c: Likewise.
3727         * lib/crc.h: Likewise.
3728         * lib/creat-safer.c: Likewise.
3729         * lib/csharpcomp.c: Likewise.
3730         * lib/csharpcomp.h: Likewise.
3731         * lib/csharpexec.c: Likewise.
3732         * lib/csharpexec.h: Likewise.
3733         * lib/cycle-check.c: Likewise.
3734         * lib/cycle-check.h: Likewise.
3735         * lib/diacrit.c: Likewise.
3736         * lib/diacrit.h: Likewise.
3737         * lib/diffseq.h: Likewise.
3738         * lib/dirchownmod.c: Likewise.
3739         * lib/dirent.in.h: Likewise.
3740         * lib/dirfd.c: Likewise.
3741         * lib/dirfd.h: Likewise.
3742         * lib/dirname.c: Likewise.
3743         * lib/dirname.h: Likewise.
3744         * lib/dummy.c: Likewise.
3745         * lib/dup-safer.c: Likewise.
3746         * lib/dup2.c: Likewise.
3747         * lib/eealloc.h: Likewise.
3748         * lib/error.c: Likewise.
3749         * lib/error.h: Likewise.
3750         * lib/euidaccess.c: Likewise.
3751         * lib/exclude.c: Likewise.
3752         * lib/exclude.h: Likewise.
3753         * lib/execute.c: Likewise.
3754         * lib/execute.h: Likewise.
3755         * lib/exitfail.c: Likewise.
3756         * lib/exitfail.h: Likewise.
3757         * lib/expl.c: Likewise.
3758         * lib/fatal-signal.c: Likewise.
3759         * lib/fatal-signal.h: Likewise.
3760         * lib/fbufmode.c: Likewise.
3761         * lib/fbufmode.h: Likewise.
3762         * lib/fchdir.c: Likewise.
3763         * lib/fchmodat.c: Likewise.
3764         * lib/fchownat.c: Likewise.
3765         * lib/fcntl--.h: Likewise.
3766         * lib/fcntl-safer.h: Likewise.
3767         * lib/fcntl.in.h: Likewise.
3768         * lib/fd-safer.c: Likewise.
3769         * lib/fflush.c: Likewise.
3770         * lib/file-has-acl.c: Likewise.
3771         * lib/file-set.c: Likewise.
3772         * lib/file-type.c: Likewise.
3773         * lib/file-type.h: Likewise.
3774         * lib/fileblocks.c: Likewise.
3775         * lib/filemode.c: Likewise.
3776         * lib/filemode.h: Likewise.
3777         * lib/filename.h: Likewise.
3778         * lib/filenamecat.c: Likewise.
3779         * lib/filenamecat.h: Likewise.
3780         * lib/findprog.c: Likewise.
3781         * lib/findprog.h: Likewise.
3782         * lib/float.in.h: Likewise.
3783         * lib/floor.c: Likewise.
3784         * lib/floorf.c: Likewise.
3785         * lib/floorl.c: Likewise.
3786         * lib/fopen-safer.c: Likewise.
3787         * lib/fopen.c: Likewise.
3788         * lib/fpending.c: Likewise.
3789         * lib/fpending.h: Likewise.
3790         * lib/fprintf.c: Likewise.
3791         * lib/fprintftime.h: Likewise.
3792         * lib/fpucw.h: Likewise.
3793         * lib/fpurge.c: Likewise.
3794         * lib/fpurge.h: Likewise.
3795         * lib/freadable.c: Likewise.
3796         * lib/freadable.h: Likewise.
3797         * lib/freadahead.c: Likewise.
3798         * lib/freadahead.h: Likewise.
3799         * lib/freading.c: Likewise.
3800         * lib/freading.h: Likewise.
3801         * lib/free.c: Likewise.
3802         * lib/freopen.c: Likewise.
3803         * lib/frexp.c: Likewise.
3804         * lib/frexpl.c: Likewise.
3805         * lib/fseek.c: Likewise.
3806         * lib/fseterr.c: Likewise.
3807         * lib/fseterr.h: Likewise.
3808         * lib/fstatat.c: Likewise.
3809         * lib/fstrcmp.c: Likewise.
3810         * lib/fstrcmp.h: Likewise.
3811         * lib/fsusage.c: Likewise.
3812         * lib/fsusage.h: Likewise.
3813         * lib/ftell.c: Likewise.
3814         * lib/ftello.c: Likewise.
3815         * lib/fts-cycle.c: Likewise.
3816         * lib/fts.c: Likewise.
3817         * lib/fts_.h: Likewise.
3818         * lib/full-read.c: Likewise.
3819         * lib/full-read.h: Likewise.
3820         * lib/full-write.c: Likewise.
3821         * lib/full-write.h: Likewise.
3822         * lib/fwritable.c: Likewise.
3823         * lib/fwritable.h: Likewise.
3824         * lib/fwriteerror.c: Likewise.
3825         * lib/fwriteerror.h: Likewise.
3826         * lib/fwriting.c: Likewise.
3827         * lib/fwriting.h: Likewise.
3828         * lib/gcd.c: Likewise.
3829         * lib/gcd.h: Likewise.
3830         * lib/getcwd.c: Likewise.
3831         * lib/getdate.h: Likewise.
3832         * lib/getdate.y: Likewise.
3833         * lib/getdomainname.c: Likewise.
3834         * lib/getdomainname.h: Likewise.
3835         * lib/getgroups.c: Likewise.
3836         * lib/gethostname.c: Likewise.
3837         * lib/gethrxtime.c: Likewise.
3838         * lib/gethrxtime.h: Likewise.
3839         * lib/getloadavg.c: Likewise.
3840         * lib/getndelim2.c: Likewise.
3841         * lib/getndelim2.h: Likewise.
3842         * lib/getnline.c: Likewise.
3843         * lib/getnline.h: Likewise.
3844         * lib/getopt.c: Likewise.
3845         * lib/getopt.in.h: Likewise.
3846         * lib/getopt1.c: Likewise.
3847         * lib/getopt_int.h: Likewise.
3848         * lib/getpagesize.h: Likewise.
3849         * lib/getsubopt.c: Likewise.
3850         * lib/gettime.c: Likewise.
3851         * lib/getugroups.c: Likewise.
3852         * lib/getugroups.h: Likewise.
3853         * lib/getusershell.c: Likewise.
3854         * lib/gl_anyavltree_list1.h: Likewise.
3855         * lib/gl_anyavltree_list2.h: Likewise.
3856         * lib/gl_anyhash_list1.h: Likewise.
3857         * lib/gl_anyhash_list2.h: Likewise.
3858         * lib/gl_anylinked_list1.h: Likewise.
3859         * lib/gl_anylinked_list2.h: Likewise.
3860         * lib/gl_anyrbtree_list1.h: Likewise.
3861         * lib/gl_anyrbtree_list2.h: Likewise.
3862         * lib/gl_anytree_list1.h: Likewise.
3863         * lib/gl_anytree_list2.h: Likewise.
3864         * lib/gl_anytree_oset.h: Likewise.
3865         * lib/gl_anytreehash_list1.h: Likewise.
3866         * lib/gl_anytreehash_list2.h: Likewise.
3867         * lib/gl_array_list.c: Likewise.
3868         * lib/gl_array_list.h: Likewise.
3869         * lib/gl_array_oset.c: Likewise.
3870         * lib/gl_array_oset.h: Likewise.
3871         * lib/gl_avltree_list.c: Likewise.
3872         * lib/gl_avltree_list.h: Likewise.
3873         * lib/gl_avltree_oset.c: Likewise.
3874         * lib/gl_avltree_oset.h: Likewise.
3875         * lib/gl_avltreehash_list.c: Likewise.
3876         * lib/gl_avltreehash_list.h: Likewise.
3877         * lib/gl_carray_list.c: Likewise.
3878         * lib/gl_carray_list.h: Likewise.
3879         * lib/gl_linked_list.c: Likewise.
3880         * lib/gl_linked_list.h: Likewise.
3881         * lib/gl_linkedhash_list.c: Likewise.
3882         * lib/gl_linkedhash_list.h: Likewise.
3883         * lib/gl_list.c: Likewise.
3884         * lib/gl_list.h: Likewise.
3885         * lib/gl_oset.c: Likewise.
3886         * lib/gl_oset.h: Likewise.
3887         * lib/gl_rbtree_list.c: Likewise.
3888         * lib/gl_rbtree_list.h: Likewise.
3889         * lib/gl_rbtree_oset.c: Likewise.
3890         * lib/gl_rbtree_oset.h: Likewise.
3891         * lib/gl_rbtreehash_list.c: Likewise.
3892         * lib/gl_rbtreehash_list.h: Likewise.
3893         * lib/gl_sublist.c: Likewise.
3894         * lib/gl_sublist.h: Likewise.
3895         * lib/group-member.c: Likewise.
3896         * lib/group-member.h: Likewise.
3897         * lib/hard-locale.c: Likewise.
3898         * lib/hard-locale.h: Likewise.
3899         * lib/hash-pjw.c: Likewise.
3900         * lib/hash-pjw.h: Likewise.
3901         * lib/hash-triple.c: Likewise.
3902         * lib/hash.c: Likewise.
3903         * lib/hash.h: Likewise.
3904         * lib/human.c: Likewise.
3905         * lib/human.h: Likewise.
3906         * lib/i-ring.c: Likewise.
3907         * lib/i-ring.h: Likewise.
3908         * lib/idcache.c: Likewise.
3909         * lib/imaxabs.c: Likewise.
3910         * lib/imaxdiv.c: Likewise.
3911         * lib/inet_pton.c: Likewise.
3912         * lib/inet_pton.h: Likewise.
3913         * lib/intprops.h: Likewise.
3914         * lib/inttostr.c: Likewise.
3915         * lib/inttostr.h: Likewise.
3916         * lib/inttypes.in.h: Likewise.
3917         * lib/isapipe.c: Likewise.
3918         * lib/isdir.c: Likewise.
3919         * lib/isnan.c: Likewise.
3920         * lib/isnan.h: Likewise.
3921         * lib/isnanf.c: Likewise.
3922         * lib/isnanf.h: Likewise.
3923         * lib/isnanl-nolibm.h: Likewise.
3924         * lib/isnanl.c: Likewise.
3925         * lib/isnanl.h: Likewise.
3926         * lib/javacomp.c: Likewise.
3927         * lib/javacomp.h: Likewise.
3928         * lib/javaexec.c: Likewise.
3929         * lib/javaexec.h: Likewise.
3930         * lib/javaversion.c: Likewise.
3931         * lib/javaversion.h: Likewise.
3932         * lib/javaversion.java: Likewise.
3933         * lib/lbrkprop.h: Likewise.
3934         * lib/lchmod.h: Likewise.
3935         * lib/lchown.c: Likewise.
3936         * lib/ldexpl.c: Likewise.
3937         * lib/linebreak.c: Likewise.
3938         * lib/linebreak.h: Likewise.
3939         * lib/linebuffer.c: Likewise.
3940         * lib/linebuffer.h: Likewise.
3941         * lib/locale.in.h: Likewise.
3942         * lib/logl.c: Likewise.
3943         * lib/long-options.c: Likewise.
3944         * lib/long-options.h: Likewise.
3945         * lib/lstat.c: Likewise.
3946         * lib/lstat.h: Likewise.
3947         * lib/math.in.h: Likewise.
3948         * lib/mbchar.c: Likewise.
3949         * lib/mbchar.h: Likewise.
3950         * lib/mbfile.h: Likewise.
3951         * lib/mbiter.h: Likewise.
3952         * lib/mbscasecmp.c: Likewise.
3953         * lib/mbscasestr.c: Likewise.
3954         * lib/mbschr.c: Likewise.
3955         * lib/mbscspn.c: Likewise.
3956         * lib/mbslen.c: Likewise.
3957         * lib/mbsncasecmp.c: Likewise.
3958         * lib/mbsnlen.c: Likewise.
3959         * lib/mbspbrk.c: Likewise.
3960         * lib/mbspcasecmp.c: Likewise.
3961         * lib/mbsrchr.c: Likewise.
3962         * lib/mbssep.c: Likewise.
3963         * lib/mbsspn.c: Likewise.
3964         * lib/mbsstr.c: Likewise.
3965         * lib/mbstok_r.c: Likewise.
3966         * lib/mbswidth.c: Likewise.
3967         * lib/mbswidth.h: Likewise.
3968         * lib/mbuiter.h: Likewise.
3969         * lib/memcasecmp.c: Likewise.
3970         * lib/memcasecmp.h: Likewise.
3971         * lib/memchr.c: Likewise.
3972         * lib/memcmp.c: Likewise.
3973         * lib/memcoll.c: Likewise.
3974         * lib/memcoll.h: Likewise.
3975         * lib/memcpy.c: Likewise.
3976         * lib/memrchr.c: Likewise.
3977         * lib/mkancesdirs.c: Likewise.
3978         * lib/mkdir-p.c: Likewise.
3979         * lib/mkdir-p.h: Likewise.
3980         * lib/mkdir.c: Likewise.
3981         * lib/mkdirat.c: Likewise.
3982         * lib/mkdtemp.c: Likewise.
3983         * lib/mkstemp-safer.c: Likewise.
3984         * lib/mkstemp.c: Likewise.
3985         * lib/modechange.c: Likewise.
3986         * lib/modechange.h: Likewise.
3987         * lib/mountlist.c: Likewise.
3988         * lib/mountlist.h: Likewise.
3989         * lib/mpsort.c: Likewise.
3990         * lib/nanosleep.c: Likewise.
3991         * lib/obstack.c: Likewise.
3992         * lib/obstack.h: Likewise.
3993         * lib/open-safer.c: Likewise.
3994         * lib/open.c: Likewise.
3995         * lib/openat-die.c: Likewise.
3996         * lib/openat-priv.h: Likewise.
3997         * lib/openat-proc.c: Likewise.
3998         * lib/openat.c: Likewise.
3999         * lib/openat.h: Likewise.
4000         * lib/pagealign_alloc.c: Likewise.
4001         * lib/pagealign_alloc.h: Likewise.
4002         * lib/physmem.c: Likewise.
4003         * lib/physmem.h: Likewise.
4004         * lib/pipe-safer.c: Likewise.
4005         * lib/pipe.c: Likewise.
4006         * lib/pipe.h: Likewise.
4007         * lib/posixtm.c: Likewise.
4008         * lib/posixtm.h: Likewise.
4009         * lib/posixver.c: Likewise.
4010         * lib/printf-frexp.c: Likewise.
4011         * lib/printf-frexp.h: Likewise.
4012         * lib/printf-frexpl.c: Likewise.
4013         * lib/printf-frexpl.h: Likewise.
4014         * lib/printf.c: Likewise.
4015         * lib/progname.c: Likewise.
4016         * lib/progname.h: Likewise.
4017         * lib/progreloc.c: Likewise.
4018         * lib/putenv.c: Likewise.
4019         * lib/quote.c: Likewise.
4020         * lib/quote.h: Likewise.
4021         * lib/quotearg.c: Likewise.
4022         * lib/quotearg.h: Likewise.
4023         * lib/raise.c: Likewise.
4024         * lib/readline.c: Likewise.
4025         * lib/readline.h: Likewise.
4026         * lib/readlink.c: Likewise.
4027         * lib/readtokens.c: Likewise.
4028         * lib/readtokens.h: Likewise.
4029         * lib/readtokens0.c: Likewise.
4030         * lib/readtokens0.h: Likewise.
4031         * lib/readutmp.c: Likewise.
4032         * lib/readutmp.h: Likewise.
4033         * lib/realloc.c: Likewise.
4034         * lib/relocwrapper.c: Likewise.
4035         * lib/rename-dest-slash.c: Likewise.
4036         * lib/rename.c: Likewise.
4037         * lib/rmdir.c: Likewise.
4038         * lib/rpmatch.c: Likewise.
4039         * lib/safe-read.c: Likewise.
4040         * lib/safe-read.h: Likewise.
4041         * lib/safe-write.c: Likewise.
4042         * lib/safe-write.h: Likewise.
4043         * lib/same-inode.h: Likewise.
4044         * lib/same.c: Likewise.
4045         * lib/same.h: Likewise.
4046         * lib/save-cwd.c: Likewise.
4047         * lib/save-cwd.h: Likewise.
4048         * lib/savedir.c: Likewise.
4049         * lib/savedir.h: Likewise.
4050         * lib/savewd.c: Likewise.
4051         * lib/savewd.h: Likewise.
4052         * lib/search.in.h: Likewise.
4053         * lib/setenv.c: Likewise.
4054         * lib/setenv.h: Likewise.
4055         * lib/settime.c: Likewise.
4056         * lib/sh-quote.c: Likewise.
4057         * lib/sh-quote.h: Likewise.
4058         * lib/sig2str.c: Likewise.
4059         * lib/sig2str.h: Likewise.
4060         * lib/signal.in.h: Likewise.
4061         * lib/signbitd.c: Likewise.
4062         * lib/signbitf.c: Likewise.
4063         * lib/signbitl.c: Likewise.
4064         * lib/sigprocmask.c: Likewise.
4065         * lib/sincosl.c: Likewise.
4066         * lib/sleep.c: Likewise.
4067         * lib/sprintf.c: Likewise.
4068         * lib/sqrtl.c: Likewise.
4069         * lib/stat-time.h: Likewise.
4070         * lib/stdio--.h: Likewise.
4071         * lib/stdio-safer.h: Likewise.
4072         * lib/stdlib--.h: Likewise.
4073         * lib/stdlib-safer.h: Likewise.
4074         * lib/stdlib.in.h: Likewise.
4075         * lib/stpcpy.c: Likewise.
4076         * lib/stpncpy.c: Likewise.
4077         * lib/strchrnul.c: Likewise.
4078         * lib/strcspn.c: Likewise.
4079         * lib/strerror.c: Likewise.
4080         * lib/strftime.c: Likewise.
4081         * lib/strftime.h: Likewise.
4082         * lib/striconveh.c: Likewise.
4083         * lib/striconveh.h: Likewise.
4084         * lib/striconveha.c: Likewise.
4085         * lib/striconveha.h: Likewise.
4086         * lib/stripslash.c: Likewise.
4087         * lib/strnlen1.c: Likewise.
4088         * lib/strnlen1.h: Likewise.
4089         * lib/strtod.c: Likewise.
4090         * lib/strtoimax.c: Likewise.
4091         * lib/strtok_r.c: Likewise.
4092         * lib/strtol.c: Likewise.
4093         * lib/strtoll.c: Likewise.
4094         * lib/strtoul.c: Likewise.
4095         * lib/strtoull.c: Likewise.
4096         * lib/sysexits.in.h: Likewise.
4097         * lib/tempname.c: Likewise.
4098         * lib/tempname.h: Likewise.
4099         * lib/timespec.h: Likewise.
4100         * lib/tls.c: Likewise.
4101         * lib/tls.h: Likewise.
4102         * lib/tmpdir.c: Likewise.
4103         * lib/tmpdir.h: Likewise.
4104         * lib/tmpfile-safer.c: Likewise.
4105         * lib/tmpfile.c: Likewise.
4106         * lib/trigl.c: Likewise.
4107         * lib/trigl.h: Likewise.
4108         * lib/trim.c: Likewise.
4109         * lib/trim.h: Likewise.
4110         * lib/trunc.c: Likewise.
4111         * lib/truncf.c: Likewise.
4112         * lib/truncl.c: Likewise.
4113         * lib/tsearch.c: Likewise.
4114         * lib/unicodeio.c: Likewise.
4115         * lib/unicodeio.h: Likewise.
4116         * lib/unistd--.h: Likewise.
4117         * lib/unistd-safer.h: Likewise.
4118         * lib/unistdio/ulc-fprintf.c: Likewise.
4119         * lib/unistdio/ulc-vfprintf.c: Likewise.
4120         * lib/unlinkdir.c: Likewise.
4121         * lib/unlinkdir.h: Likewise.
4122         * lib/unlocked-io.h: Likewise.
4123         * lib/unsetenv.c: Likewise.
4124         * lib/userspec.c: Likewise.
4125         * lib/utime.c: Likewise.
4126         * lib/utimecmp.c: Likewise.
4127         * lib/utimecmp.h: Likewise.
4128         * lib/utimens.c: Likewise.
4129         * lib/verify.h: Likewise.
4130         * lib/verror.c: Likewise.
4131         * lib/verror.h: Likewise.
4132         * lib/version-etc-fsf.c: Likewise.
4133         * lib/version-etc.c: Likewise.
4134         * lib/version-etc.h: Likewise.
4135         * lib/vfprintf.c: Likewise.
4136         * lib/vprintf.c: Likewise.
4137         * lib/vsprintf.c: Likewise.
4138         * lib/w32spawn.h: Likewise.
4139         * lib/wait-process.c: Likewise.
4140         * lib/wait-process.h: Likewise.
4141         * lib/wcwidth.c: Likewise.
4142         * lib/write-any-file.c: Likewise.
4143         * lib/xalloc-die.c: Likewise.
4144         * lib/xalloc.h: Likewise.
4145         * lib/xasprintf.c: Likewise.
4146         * lib/xgetcwd.c: Likewise.
4147         * lib/xgetcwd.h: Likewise.
4148         * lib/xgetdomainname.c: Likewise.
4149         * lib/xgetdomainname.h: Likewise.
4150         * lib/xgethostname.c: Likewise.
4151         * lib/xmalloc.c: Likewise.
4152         * lib/xmalloca.c: Likewise.
4153         * lib/xmalloca.h: Likewise.
4154         * lib/xmemcoll.c: Likewise.
4155         * lib/xnanosleep.c: Likewise.
4156         * lib/xreadlink.c: Likewise.
4157         * lib/xreadlink.h: Likewise.
4158         * lib/xsetenv.c: Likewise.
4159         * lib/xsetenv.h: Likewise.
4160         * lib/xstriconv.c: Likewise.
4161         * lib/xstriconv.h: Likewise.
4162         * lib/xstrndup.c: Likewise.
4163         * lib/xstrndup.h: Likewise.
4164         * lib/xstrtod.c: Likewise.
4165         * lib/xstrtod.h: Likewise.
4166         * lib/xstrtol-error.c: Likewise.
4167         * lib/xstrtol.c: Likewise.
4168         * lib/xstrtol.h: Likewise.
4169         * lib/xtime.h: Likewise.
4170         * lib/xvasprintf.c: Likewise.
4171         * lib/xvasprintf.h: Likewise.
4172         * lib/yesno.c: Likewise.
4173         * lib/yesno.h: Likewise.
4174         * posix-modules: Likewise.
4175         * tests/test-alloca-opt.c: Likewise.
4176         * tests/test-arcfour.c: Likewise.
4177         * tests/test-arctwo.c: Likewise.
4178         * tests/test-argmatch.c: Likewise.
4179         * tests/test-argp-2.sh: Likewise.
4180         * tests/test-argp.c: Likewise.
4181         * tests/test-arpa_inet.c: Likewise.
4182         * tests/test-array_list.c: Likewise.
4183         * tests/test-array_oset.c: Likewise.
4184         * tests/test-atexit.c: Likewise.
4185         * tests/test-avltree_list.c: Likewise.
4186         * tests/test-avltree_oset.c: Likewise.
4187         * tests/test-avltreehash_list.c: Likewise.
4188         * tests/test-base64.c: Likewise.
4189         * tests/test-binary-io.c: Likewise.
4190         * tests/test-byteswap.c: Likewise.
4191         * tests/test-c-ctype.c: Likewise.
4192         * tests/test-c-strcasecmp.c: Likewise.
4193         * tests/test-c-strcasestr.c: Likewise.
4194         * tests/test-c-strncasecmp.c: Likewise.
4195         * tests/test-c-strstr.c: Likewise.
4196         * tests/test-canonicalize-lgpl.c: Likewise.
4197         * tests/test-canonicalize.c: Likewise.
4198         * tests/test-carray_list.c: Likewise.
4199         * tests/test-ceilf.c: Likewise.
4200         * tests/test-ceill.c: Likewise.
4201         * tests/test-count-one-bits.c: Likewise.
4202         * tests/test-crc.c: Likewise.
4203         * tests/test-dirname.c: Likewise.
4204         * tests/test-fbufmode.c: Likewise.
4205         * tests/test-fcntl.c: Likewise.
4206         * tests/test-fflush.c: Likewise.
4207         * tests/test-floorf.c: Likewise.
4208         * tests/test-floorl.c: Likewise.
4209         * tests/test-fopen.c: Likewise.
4210         * tests/test-fprintf-posix.c: Likewise.
4211         * tests/test-fprintf-posix.h: Likewise.
4212         * tests/test-fpurge.c: Likewise.
4213         * tests/test-freadable.c: Likewise.
4214         * tests/test-freadahead.c: Likewise.
4215         * tests/test-freading.c: Likewise.
4216         * tests/test-freopen.c: Likewise.
4217         * tests/test-frexp.c: Likewise.
4218         * tests/test-frexpl.c: Likewise.
4219         * tests/test-fseek.c: Likewise.
4220         * tests/test-fseeko.c: Likewise.
4221         * tests/test-fseterr.c: Likewise.
4222         * tests/test-fstrcmp.c: Likewise.
4223         * tests/test-ftell.c: Likewise.
4224         * tests/test-ftello.c: Likewise.
4225         * tests/test-fwritable.c: Likewise.
4226         * tests/test-fwriting.c: Likewise.
4227         * tests/test-getaddrinfo.c: Likewise.
4228         * tests/test-getpass.c: Likewise.
4229         * tests/test-gettimeofday.c: Likewise.
4230         * tests/test-hmac-md5.c: Likewise.
4231         * tests/test-hmac-sha1.c: Likewise.
4232         * tests/test-iconv.c: Likewise.
4233         * tests/test-iconvme.c: Likewise.
4234         * tests/test-inttypes.c: Likewise.
4235         * tests/test-isnan.c: Likewise.
4236         * tests/test-isnanf.c: Likewise.
4237         * tests/test-isnanl-nolibm.c: Likewise.
4238         * tests/test-isnanl.c: Likewise.
4239         * tests/test-isnanl.h: Likewise.
4240         * tests/test-ldexpl.c: Likewise.
4241         * tests/test-linked_list.c: Likewise.
4242         * tests/test-linkedhash_list.c: Likewise.
4243         * tests/test-locale.c: Likewise.
4244         * tests/test-localename.c: Likewise.
4245         * tests/test-lock.c: Likewise.
4246         * tests/test-lseek.c: Likewise.
4247         * tests/test-malloca.c: Likewise.
4248         * tests/test-math.c: Likewise.
4249         * tests/test-mbscasecmp.c: Likewise.
4250         * tests/test-mbscasestr1.c: Likewise.
4251         * tests/test-mbscasestr2.c: Likewise.
4252         * tests/test-mbscasestr3.c: Likewise.
4253         * tests/test-mbscasestr4.c: Likewise.
4254         * tests/test-mbschr.c: Likewise.
4255         * tests/test-mbscspn.c: Likewise.
4256         * tests/test-mbsncasecmp.c: Likewise.
4257         * tests/test-mbspbrk.c: Likewise.
4258         * tests/test-mbspcasecmp.c: Likewise.
4259         * tests/test-mbsrchr.c: Likewise.
4260         * tests/test-mbsspn.c: Likewise.
4261         * tests/test-mbsstr1.c: Likewise.
4262         * tests/test-mbsstr2.c: Likewise.
4263         * tests/test-mbsstr3.c: Likewise.
4264         * tests/test-md5.c: Likewise.
4265         * tests/test-memmem.c: Likewise.
4266         * tests/test-netinet_in.c: Likewise.
4267         * tests/test-open.c: Likewise.
4268         * tests/test-printf-frexp.c: Likewise.
4269         * tests/test-printf-frexpl.c: Likewise.
4270         * tests/test-printf-posix.c: Likewise.
4271         * tests/test-printf-posix.h: Likewise.
4272         * tests/test-rbtree_list.c: Likewise.
4273         * tests/test-rbtree_oset.c: Likewise.
4274         * tests/test-rbtreehash_list.c: Likewise.
4275         * tests/test-read-file.c: Likewise.
4276         * tests/test-rijndael.c: Likewise.
4277         * tests/test-search.c: Likewise.
4278         * tests/test-signbit.c: Likewise.
4279         * tests/test-sleep.c: Likewise.
4280         * tests/test-snprintf-posix.c: Likewise.
4281         * tests/test-snprintf-posix.h: Likewise.
4282         * tests/test-snprintf.c: Likewise.
4283         * tests/test-sprintf-posix.c: Likewise.
4284         * tests/test-sprintf-posix.h: Likewise.
4285         * tests/test-stat-time.c: Likewise.
4286         * tests/test-stdbool.c: Likewise.
4287         * tests/test-stdint.c: Likewise.
4288         * tests/test-stdio.c: Likewise.
4289         * tests/test-stdlib.c: Likewise.
4290         * tests/test-stpncpy.c: Likewise.
4291         * tests/test-strcasestr.c: Likewise.
4292         * tests/test-striconv.c: Likewise.
4293         * tests/test-striconveh.c: Likewise.
4294         * tests/test-striconveha.c: Likewise.
4295         * tests/test-string.c: Likewise.
4296         * tests/test-sys_select.c: Likewise.
4297         * tests/test-sys_socket.c: Likewise.
4298         * tests/test-sys_stat.c: Likewise.
4299         * tests/test-sys_time.c: Likewise.
4300         * tests/test-sysexits.c: Likewise.
4301         * tests/test-time.c: Likewise.
4302         * tests/test-tls.c: Likewise.
4303         * tests/test-trunc.c: Likewise.
4304         * tests/test-truncf.c: Likewise.
4305         * tests/test-truncl.c: Likewise.
4306         * tests/test-unistd.c: Likewise.
4307         * tests/test-vasnprintf-posix.c: Likewise.
4308         * tests/test-vasnprintf-posix2.c: Likewise.
4309         * tests/test-vasnprintf.c: Likewise.
4310         * tests/test-vasprintf-posix.c: Likewise.
4311         * tests/test-vasprintf.c: Likewise.
4312         * tests/test-verify.c: Likewise.
4313         * tests/test-vfprintf-posix.c: Likewise.
4314         * tests/test-vprintf-posix.c: Likewise.
4315         * tests/test-vsnprintf-posix.c: Likewise.
4316         * tests/test-vsnprintf.c: Likewise.
4317         * tests/test-vsprintf-posix.c: Likewise.
4318         * tests/test-wchar.c: Likewise.
4319         * tests/test-wctype.c: Likewise.
4320         * tests/test-wcwidth.c: Likewise.
4321         * tests/test-xstrtol.c: Likewise.
4322         * tests/test-xvasprintf.c: Likewise.
4323         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4324         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4325         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4326         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4327         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4328         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4329         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4330         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4331         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4332         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4333         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4334         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4335         * tests/uniname/test-uninames.c: Likewise.
4336         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4337         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
4338         * tests/unistdio/test-u16-printf1.h: Likewise.
4339         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4340         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4341         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4342         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4343         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4344         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4345         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4346         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
4347         * tests/unistdio/test-u32-printf1.h: Likewise.
4348         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4349         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4350         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4351         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4352         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4353         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4354         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4355         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
4356         * tests/unistdio/test-u8-printf1.h: Likewise.
4357         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4358         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4359         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4360         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4361         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4362         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4363         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4364         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
4365         * tests/unistdio/test-ulc-printf1.h: Likewise.
4366         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4367         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4368         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4369         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4370         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4371         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4372         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4373         * tests/uniwidth/test-u16-width.c: Likewise.
4374         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4375         * tests/uniwidth/test-u32-width.c: Likewise.
4376         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4377         * tests/uniwidth/test-u8-width.c: Likewise.
4378         * tests/uniwidth/test-uc_width.c: Likewise.
4379         * config/srclist-update: Likewise.
4380         (fixlicense): Update to GPLv3+.
4381
4382         Change copyright notice from LGPLv2.1+ to LGPLv3+.
4383         * tests/test-tsearch.c: Change copyright notice.
4384
4385         Change copyright notice from LGPLv2.0+ to LGPLv3+.
4386         * lib/c-strcaseeq.h: Change copyright notice.
4387         * lib/streq.h: Likewise.
4388         * lib/uniconv.h: Likewise.
4389         * lib/uniconv/u-conv-from-enc.h: Likewise.
4390         * lib/uniconv/u-conv-to-enc.h: Likewise.
4391         * lib/uniconv/u-strconv-from-enc.h: Likewise.
4392         * lib/uniconv/u-strconv-to-enc.h: Likewise.
4393         * lib/uniconv/u16-conv-from-enc.c: Likewise.
4394         * lib/uniconv/u16-conv-to-enc.c: Likewise.
4395         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
4396         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
4397         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
4398         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
4399         * lib/uniconv/u32-conv-from-enc.c: Likewise.
4400         * lib/uniconv/u32-conv-to-enc.c: Likewise.
4401         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
4402         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
4403         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
4404         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
4405         * lib/uniconv/u8-conv-from-enc.c: Likewise.
4406         * lib/uniconv/u8-conv-to-enc.c: Likewise.
4407         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
4408         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
4409         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
4410         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
4411         * lib/uniname.h: Likewise.
4412         * lib/uniname/uniname.c: Likewise.
4413         * lib/unistdio.h: Likewise.
4414         * lib/unistdio/u-asnprintf.h: Likewise.
4415         * lib/unistdio/u-asprintf.h: Likewise.
4416         * lib/unistdio/u-printf-args.c: Likewise.
4417         * lib/unistdio/u-printf-args.h: Likewise.
4418         * lib/unistdio/u-printf-parse.h: Likewise.
4419         * lib/unistdio/u-snprintf.h: Likewise.
4420         * lib/unistdio/u-sprintf.h: Likewise.
4421         * lib/unistdio/u-vasprintf.h: Likewise.
4422         * lib/unistdio/u-vsnprintf.h: Likewise.
4423         * lib/unistdio/u-vsprintf.h: Likewise.
4424         * lib/unistdio/u16-asnprintf.c: Likewise.
4425         * lib/unistdio/u16-asprintf.c: Likewise.
4426         * lib/unistdio/u16-printf-parse.c: Likewise.
4427         * lib/unistdio/u16-snprintf.c: Likewise.
4428         * lib/unistdio/u16-sprintf.c: Likewise.
4429         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
4430         * lib/unistdio/u16-u16-asprintf.c: Likewise.
4431         * lib/unistdio/u16-u16-snprintf.c: Likewise.
4432         * lib/unistdio/u16-u16-sprintf.c: Likewise.
4433         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
4434         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
4435         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
4436         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
4437         * lib/unistdio/u16-vasnprintf.c: Likewise.
4438         * lib/unistdio/u16-vasprintf.c: Likewise.
4439         * lib/unistdio/u16-vsnprintf.c: Likewise.
4440         * lib/unistdio/u16-vsprintf.c: Likewise.
4441         * lib/unistdio/u32-asnprintf.c: Likewise.
4442         * lib/unistdio/u32-asprintf.c: Likewise.
4443         * lib/unistdio/u32-printf-parse.c: Likewise.
4444         * lib/unistdio/u32-snprintf.c: Likewise.
4445         * lib/unistdio/u32-sprintf.c: Likewise.
4446         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
4447         * lib/unistdio/u32-u32-asprintf.c: Likewise.
4448         * lib/unistdio/u32-u32-snprintf.c: Likewise.
4449         * lib/unistdio/u32-u32-sprintf.c: Likewise.
4450         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
4451         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
4452         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
4453         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
4454         * lib/unistdio/u32-vasnprintf.c: Likewise.
4455         * lib/unistdio/u32-vasprintf.c: Likewise.
4456         * lib/unistdio/u32-vsnprintf.c: Likewise.
4457         * lib/unistdio/u32-vsprintf.c: Likewise.
4458         * lib/unistdio/u8-asnprintf.c: Likewise.
4459         * lib/unistdio/u8-asprintf.c: Likewise.
4460         * lib/unistdio/u8-printf-parse.c: Likewise.
4461         * lib/unistdio/u8-snprintf.c: Likewise.
4462         * lib/unistdio/u8-sprintf.c: Likewise.
4463         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
4464         * lib/unistdio/u8-u8-asprintf.c: Likewise.
4465         * lib/unistdio/u8-u8-snprintf.c: Likewise.
4466         * lib/unistdio/u8-u8-sprintf.c: Likewise.
4467         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
4468         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
4469         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
4470         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
4471         * lib/unistdio/u8-vasnprintf.c: Likewise.
4472         * lib/unistdio/u8-vasprintf.c: Likewise.
4473         * lib/unistdio/u8-vsnprintf.c: Likewise.
4474         * lib/unistdio/u8-vsprintf.c: Likewise.
4475         * lib/unistdio/ulc-asnprintf.c: Likewise.
4476         * lib/unistdio/ulc-asprintf.c: Likewise.
4477         * lib/unistdio/ulc-printf-parse.c: Likewise.
4478         * lib/unistdio/ulc-snprintf.c: Likewise.
4479         * lib/unistdio/ulc-sprintf.c: Likewise.
4480         * lib/unistdio/ulc-vasnprintf.c: Likewise.
4481         * lib/unistdio/ulc-vasprintf.c: Likewise.
4482         * lib/unistdio/ulc-vsnprintf.c: Likewise.
4483         * lib/unistdio/ulc-vsprintf.c: Likewise.
4484         * lib/unistr.h: Likewise.
4485         * lib/unistr/u-cpy-alloc.h: Likewise.
4486         * lib/unistr/u-cpy.h: Likewise.
4487         * lib/unistr/u-endswith.h: Likewise.
4488         * lib/unistr/u-move.h: Likewise.
4489         * lib/unistr/u-set.h: Likewise.
4490         * lib/unistr/u-startswith.h: Likewise.
4491         * lib/unistr/u-stpcpy.h: Likewise.
4492         * lib/unistr/u-stpncpy.h: Likewise.
4493         * lib/unistr/u-strcat.h: Likewise.
4494         * lib/unistr/u-strcpy.h: Likewise.
4495         * lib/unistr/u-strcspn.h: Likewise.
4496         * lib/unistr/u-strdup.h: Likewise.
4497         * lib/unistr/u-strlen.h: Likewise.
4498         * lib/unistr/u-strncat.h: Likewise.
4499         * lib/unistr/u-strncpy.h: Likewise.
4500         * lib/unistr/u-strnlen.h: Likewise.
4501         * lib/unistr/u-strpbrk.h: Likewise.
4502         * lib/unistr/u-strspn.h: Likewise.
4503         * lib/unistr/u-strstr.h: Likewise.
4504         * lib/unistr/u-strtok.h: Likewise.
4505         * lib/unistr/u16-check.c: Likewise.
4506         * lib/unistr/u16-chr.c: Likewise.
4507         * lib/unistr/u16-cmp.c: Likewise.
4508         * lib/unistr/u16-cpy-alloc.c: Likewise.
4509         * lib/unistr/u16-cpy.c: Likewise.
4510         * lib/unistr/u16-endswith.c: Likewise.
4511         * lib/unistr/u16-mblen.c: Likewise.
4512         * lib/unistr/u16-mbsnlen.c: Likewise.
4513         * lib/unistr/u16-mbtouc-aux.c: Likewise.
4514         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
4515         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
4516         * lib/unistr/u16-mbtouc.c: Likewise.
4517         * lib/unistr/u16-mbtoucr.c: Likewise.
4518         * lib/unistr/u16-move.c: Likewise.
4519         * lib/unistr/u16-next.c: Likewise.
4520         * lib/unistr/u16-prev.c: Likewise.
4521         * lib/unistr/u16-set.c: Likewise.
4522         * lib/unistr/u16-startswith.c: Likewise.
4523         * lib/unistr/u16-stpcpy.c: Likewise.
4524         * lib/unistr/u16-stpncpy.c: Likewise.
4525         * lib/unistr/u16-strcat.c: Likewise.
4526         * lib/unistr/u16-strchr.c: Likewise.
4527         * lib/unistr/u16-strcmp.c: Likewise.
4528         * lib/unistr/u16-strcpy.c: Likewise.
4529         * lib/unistr/u16-strcspn.c: Likewise.
4530         * lib/unistr/u16-strdup.c: Likewise.
4531         * lib/unistr/u16-strlen.c: Likewise.
4532         * lib/unistr/u16-strmblen.c: Likewise.
4533         * lib/unistr/u16-strmbtouc.c: Likewise.
4534         * lib/unistr/u16-strncat.c: Likewise.
4535         * lib/unistr/u16-strncmp.c: Likewise.
4536         * lib/unistr/u16-strncpy.c: Likewise.
4537         * lib/unistr/u16-strnlen.c: Likewise.
4538         * lib/unistr/u16-strpbrk.c: Likewise.
4539         * lib/unistr/u16-strrchr.c: Likewise.
4540         * lib/unistr/u16-strspn.c: Likewise.
4541         * lib/unistr/u16-strstr.c: Likewise.
4542         * lib/unistr/u16-strtok.c: Likewise.
4543         * lib/unistr/u16-to-u32.c: Likewise.
4544         * lib/unistr/u16-to-u8.c: Likewise.
4545         * lib/unistr/u16-uctomb-aux.c: Likewise.
4546         * lib/unistr/u16-uctomb.c: Likewise.
4547         * lib/unistr/u32-check.c: Likewise.
4548         * lib/unistr/u32-chr.c: Likewise.
4549         * lib/unistr/u32-cmp.c: Likewise.
4550         * lib/unistr/u32-cpy-alloc.c: Likewise.
4551         * lib/unistr/u32-cpy.c: Likewise.
4552         * lib/unistr/u32-endswith.c: Likewise.
4553         * lib/unistr/u32-mblen.c: Likewise.
4554         * lib/unistr/u32-mbsnlen.c: Likewise.
4555         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
4556         * lib/unistr/u32-mbtouc.c: Likewise.
4557         * lib/unistr/u32-mbtoucr.c: Likewise.
4558         * lib/unistr/u32-move.c: Likewise.
4559         * lib/unistr/u32-next.c: Likewise.
4560         * lib/unistr/u32-prev.c: Likewise.
4561         * lib/unistr/u32-set.c: Likewise.
4562         * lib/unistr/u32-startswith.c: Likewise.
4563         * lib/unistr/u32-stpcpy.c: Likewise.
4564         * lib/unistr/u32-stpncpy.c: Likewise.
4565         * lib/unistr/u32-strcat.c: Likewise.
4566         * lib/unistr/u32-strchr.c: Likewise.
4567         * lib/unistr/u32-strcmp.c: Likewise.
4568         * lib/unistr/u32-strcpy.c: Likewise.
4569         * lib/unistr/u32-strcspn.c: Likewise.
4570         * lib/unistr/u32-strdup.c: Likewise.
4571         * lib/unistr/u32-strlen.c: Likewise.
4572         * lib/unistr/u32-strmblen.c: Likewise.
4573         * lib/unistr/u32-strmbtouc.c: Likewise.
4574         * lib/unistr/u32-strncat.c: Likewise.
4575         * lib/unistr/u32-strncmp.c: Likewise.
4576         * lib/unistr/u32-strncpy.c: Likewise.
4577         * lib/unistr/u32-strnlen.c: Likewise.
4578         * lib/unistr/u32-strpbrk.c: Likewise.
4579         * lib/unistr/u32-strrchr.c: Likewise.
4580         * lib/unistr/u32-strspn.c: Likewise.
4581         * lib/unistr/u32-strstr.c: Likewise.
4582         * lib/unistr/u32-strtok.c: Likewise.
4583         * lib/unistr/u32-to-u16.c: Likewise.
4584         * lib/unistr/u32-to-u8.c: Likewise.
4585         * lib/unistr/u32-uctomb.c: Likewise.
4586         * lib/unistr/u8-check.c: Likewise.
4587         * lib/unistr/u8-chr.c: Likewise.
4588         * lib/unistr/u8-cmp.c: Likewise.
4589         * lib/unistr/u8-cpy-alloc.c: Likewise.
4590         * lib/unistr/u8-cpy.c: Likewise.
4591         * lib/unistr/u8-endswith.c: Likewise.
4592         * lib/unistr/u8-mblen.c: Likewise.
4593         * lib/unistr/u8-mbsnlen.c: Likewise.
4594         * lib/unistr/u8-mbtouc-aux.c: Likewise.
4595         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
4596         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
4597         * lib/unistr/u8-mbtouc.c: Likewise.
4598         * lib/unistr/u8-mbtoucr.c: Likewise.
4599         * lib/unistr/u8-move.c: Likewise.
4600         * lib/unistr/u8-next.c: Likewise.
4601         * lib/unistr/u8-prev.c: Likewise.
4602         * lib/unistr/u8-set.c: Likewise.
4603         * lib/unistr/u8-startswith.c: Likewise.
4604         * lib/unistr/u8-stpcpy.c: Likewise.
4605         * lib/unistr/u8-stpncpy.c: Likewise.
4606         * lib/unistr/u8-strcat.c: Likewise.
4607         * lib/unistr/u8-strchr.c: Likewise.
4608         * lib/unistr/u8-strcmp.c: Likewise.
4609         * lib/unistr/u8-strcpy.c: Likewise.
4610         * lib/unistr/u8-strcspn.c: Likewise.
4611         * lib/unistr/u8-strdup.c: Likewise.
4612         * lib/unistr/u8-strlen.c: Likewise.
4613         * lib/unistr/u8-strmblen.c: Likewise.
4614         * lib/unistr/u8-strmbtouc.c: Likewise.
4615         * lib/unistr/u8-strncat.c: Likewise.
4616         * lib/unistr/u8-strncmp.c: Likewise.
4617         * lib/unistr/u8-strncpy.c: Likewise.
4618         * lib/unistr/u8-strnlen.c: Likewise.
4619         * lib/unistr/u8-strpbrk.c: Likewise.
4620         * lib/unistr/u8-strrchr.c: Likewise.
4621         * lib/unistr/u8-strspn.c: Likewise.
4622         * lib/unistr/u8-strstr.c: Likewise.
4623         * lib/unistr/u8-strtok.c: Likewise.
4624         * lib/unistr/u8-to-u16.c: Likewise.
4625         * lib/unistr/u8-to-u32.c: Likewise.
4626         * lib/unistr/u8-uctomb-aux.c: Likewise.
4627         * lib/unistr/u8-uctomb.c: Likewise.
4628         * lib/unitypes.h: Likewise.
4629         * lib/uniwidth.h: Likewise.
4630         * lib/uniwidth/cjk.h: Likewise.
4631         * lib/uniwidth/u16-strwidth.c: Likewise.
4632         * lib/uniwidth/u16-width.c: Likewise.
4633         * lib/uniwidth/u32-strwidth.c: Likewise.
4634         * lib/uniwidth/u32-width.c: Likewise.
4635         * lib/uniwidth/u8-strwidth.c: Likewise.
4636         * lib/uniwidth/u8-width.c: Likewise.
4637         * lib/uniwidth/width.c: Likewise.
4638
4639 2007-10-07  Bruno Haible  <bruno@clisp.org>
4640
4641         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
4642         The file is still under LGPL (see modules/inttypes).
4643
4644 2007-10-06  Bruno Haible  <bruno@clisp.org>
4645
4646         * modules/trunc (Dependencies): Add 'extensions'.
4647         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
4648         Reported by Ben Pfaff <blp@gnu.org>.
4649
4650 2007-10-06  Bruno Haible  <bruno@clisp.org>
4651
4652         * modules/freopen-tests: New file.
4653         * tests/test-freopen.c: New file.
4654
4655         * modules/fopen-tests: New file.
4656         * tests/test-fopen.c: New file.
4657
4658         * modules/fopen: New file.
4659         * lib/fopen.c: New file.
4660         * m4/fopen.m4: New file.
4661         * modules/freopen: New file.
4662         * lib/freopen.c: New file.
4663         * m4/freopen.m4: New file.
4664         * lib/stdio.in.h (fopen, freopen): New declarations.
4665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
4666         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
4667         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
4668         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
4669         * doc/functions/fopen.texi: Mention the 'fopen' module.
4670         * doc/functions/freopen.texi: Mention the 'freopen' module.
4671
4672 2007-10-06  Bruno Haible  <bruno@clisp.org>
4673
4674         * modules/open-tests: New file.
4675         * tests/test-open.c: New file.
4676
4677         * modules/open: New file.
4678         * lib/open.c: New file.
4679         * m4/open.m4: New file.
4680         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
4681         lib/open.c does.
4682         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
4683         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
4684         macros.
4685         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
4686         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
4687         REPLACE_OPEN.
4688         * doc/functions/open.texi: Mention the 'open' module.
4689
4690 2007-10-04  Bruno Haible  <bruno@clisp.org>
4691
4692         * modules/ceill-tests: New file.
4693         * tests/test-ceill.c: New file.
4694
4695         * modules/ceill: New file.
4696         * lib/ceill.c: Replace entire file.
4697         * m4/ceill.m4: New file.
4698         * lib/math.in.h (ceill): Replace declaration.
4699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
4700         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
4701         * doc/functions/ceill.texi: Mention the 'ceill' module.
4702         * modules/mathl (Files): Remove lib/ceill.c.
4703         (Depends-on): Add ceill.
4704
4705 2007-10-04  Bruno Haible  <bruno@clisp.org>
4706
4707         * modules/ceilf-tests: New file.
4708         * tests/test-ceilf.c: New file.
4709
4710         * modules/ceilf: New file.
4711         * lib/ceil.c: New file.
4712         * lib/ceilf.c: New file.
4713         * m4/ceilf.m4: New file.
4714         * lib/math.in.h (ceilf): New declaration.
4715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
4716         HAVE_DECL_CEILF.
4717         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
4718         HAVE_DECL_CEILF.
4719         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
4720
4721 2007-10-04  Bruno Haible  <bruno@clisp.org>
4722
4723         * modules/floorl-tests: New file.
4724         * tests/test-floorl.c: New file.
4725
4726         * modules/floorl: New file.
4727         * lib/floorl.c: Replace entire file.
4728         * m4/floorl.m4: New file.
4729         * lib/math.in.h (floorl): Replace declaration.
4730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
4731         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
4732         * doc/functions/floorl.texi: Mention the 'floorl' module.
4733         * modules/mathl (Files): Remove lib/floorl.c.
4734         (Depends-on): Add floorl.
4735
4736 2007-10-04  Bruno Haible  <bruno@clisp.org>
4737
4738         * modules/floorf-tests: New file.
4739         * tests/test-floorf.c: New file.
4740
4741         * modules/floorf: New file.
4742         * lib/floor.c: New file.
4743         * lib/floorf.c: New file.
4744         * m4/floorf.m4: New file.
4745         * lib/math.in.h (floorf): New declaration.
4746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
4747         HAVE_DECL_FLOORF.
4748         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
4749         HAVE_DECL_FLOORF.
4750         * doc/functions/floorf.texi: Mention the 'floorf' module.
4751
4752 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
4753             Bruno Haible  <bruno@clisp.org>
4754
4755         Advertise for the Git server instead of the CVS server.
4756         * doc/gnulib-intro.texi (Steady Development): Mention the Git
4757         repository instead of the CVS one.
4758         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
4759         about all VCS systems generically.
4760         * doc/gnulib.texi (Introduction): Capitalize `Git'.
4761
4762 2007-10-04  Bruno Haible  <bruno@clisp.org>
4763
4764         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
4765         means.
4766         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
4767
4768 2007-10-04  Bruno Haible  <bruno@clisp.org>
4769
4770         * modules/truncl-tests: New file.
4771         * tests/test-truncl.c: New file.
4772
4773         * modules/truncl: New file.
4774         * lib/truncl.c: New file.
4775         * m4/truncl.m4: New file.
4776         * lib/math.in.h (truncl): New declaration.
4777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
4778         HAVE_DECL_TRUNCL.
4779         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
4780         HAVE_DECL_TRUNCL.
4781         * doc/functions/truncl.texi: Mention the 'truncl' module.
4782
4783 2007-10-04  Bruno Haible  <bruno@clisp.org>
4784
4785         * modules/truncf-tests: New file.
4786         * tests/test-truncf.c: New file.
4787
4788         * modules/truncf: New file.
4789         * lib/trunc.c: Make paramerizable through USE_* macros.
4790         * lib/truncf.c: New file.
4791         * m4/truncf.m4: New file.
4792         * lib/math.in.h (truncf): New declaration.
4793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
4794         HAVE_DECL_TRUNCF.
4795         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
4796         HAVE_DECL_TRUNCF.
4797         * doc/functions/truncf.texi: Mention the 'truncf' module.
4798
4799 2007-10-03  Bruno Haible  <bruno@clisp.org>
4800
4801         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4802         augmentation also for tests modules.
4803         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
4804         * modules/atexit-tests (Makefile.am): Likewise.
4805         * modules/binary-io-tests (Makefile.am): Likewise.
4806         * modules/c-strcase-tests (Makefile.am): Likewise.
4807         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
4808         * modules/canonicalize-tests (Makefile.am): Likewise.
4809         * modules/closein-tests (Makefile.am): Likewise.
4810         * modules/fprintf-posix-tests (Makefile.am): Likewise.
4811         * modules/freadahead-tests (Makefile.am): Likewise.
4812         * modules/fseek-tests (Makefile.am): Likewise.
4813         * modules/fseeko-tests (Makefile.am): Likewise.
4814         * modules/ftell-tests (Makefile.am): Likewise.
4815         * modules/ftello-tests (Makefile.am): Likewise.
4816         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
4817         * modules/isnanl-tests (Makefile.am): Likewise.
4818         * modules/lseek-tests (Makefile.am): Likewise.
4819         * modules/mbscasecmp-tests (Makefile.am): Likewise.
4820         * modules/mbscasestr-tests (Makefile.am): Likewise.
4821         * modules/mbschr-tests (Makefile.am): Likewise.
4822         * modules/mbscspn-tests (Makefile.am): Likewise.
4823         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
4824         * modules/mbspbrk-tests (Makefile.am): Likewise.
4825         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
4826         * modules/mbsrchr-tests (Makefile.am): Likewise.
4827         * modules/mbsspn-tests (Makefile.am): Likewise.
4828         * modules/mbsstr-tests (Makefile.am): Likewise.
4829         * modules/printf-posix-tests (Makefile.am): Likewise.
4830         * modules/snprintf-posix-tests (Makefile.am): Likewise.
4831         * modules/sprintf-posix-tests (Makefile.am): Likewise.
4832         * modules/tsearch-tests (Makefile.am): Likewise.
4833         * modules/uniname/uniname-tests (Makefile.am): Likewise.
4834         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
4835         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
4836         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
4837         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
4838         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
4839         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
4840         * modules/vprintf-posix-tests (Makefile.am): Likewise.
4841         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
4842         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
4843         * modules/xstrtoimax-tests (Makefile.am): Likewise.
4844         * modules/xstrtol-tests (Makefile.am): Likewise.
4845         * modules/xstrtoumax-tests (Makefile.am): Likewise.
4846         * modules/yesno-tests (Makefile.am): Likewise.
4847
4848 2007-10-03  Bruno Haible  <bruno@clisp.org>
4849
4850         * modules/trunc-tests: New file.
4851         * tests/test-trunc.c: New file.
4852
4853         * modules/trunc: New file.
4854         * lib/trunc.c: New file.
4855         * m4/trunc.m4: New file.
4856         * lib/math.in.h (trunc): New declaration.
4857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
4858         HAVE_DECL_TRUNC.
4859         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
4860         HAVE_DECL_TRUNC.
4861         * doc/functions/trunc.texi: Mention the 'trunc' module.
4862
4863 2007-10-03  Bruno Haible  <bruno@clisp.org>
4864
4865         * tests/test-fpending.c: New file, mostly copied
4866         from coreutils/lib/t-fpending.c.
4867         * modules/fpending-tests: New file.
4868
4869 2007-10-03  Bruno Haible  <bruno@clisp.org>
4870
4871         Port the stdio extensions to QNX (untested).
4872         * lib/fseterr.c (fseterr): Add support for QNX.
4873         * lib/fbufmode.c (fbufmode): Likewise.
4874         * lib/freadable.c (freadable): Likewise.
4875         * lib/fwritable.c (fwritable): Likewise.
4876         * lib/freading.c (freading): Likewise.
4877         * lib/fwriting.c (fwriting): Likewise.
4878         * lib/freadahead.c (freadahed): Likewise.
4879         * lib/fpurge.c (fpurge): Likewise.
4880         * lib/fseeko.c (rpl_fseeko): Likewise.
4881
4882 2007-10-03  Bruno Haible  <bruno@clisp.org>
4883             Jim Meyering  <jim@meyering.net>
4884             Eric Blake  <ebb9@byu.net>
4885
4886         * doc/relocatable.texi: Use @command instead of @program.
4887
4888 2007-10-02  Jim Meyering  <jim@meyering.net>
4889
4890         Perform one more "_.h" -> ".in.h" substitution.
4891         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
4892         instead of unistd_.h here, too.
4893
4894 2007-10-01  Bruno Haible  <bruno@clisp.org>
4895
4896         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
4897         Needed for the alloca-opt module.
4898
4899 2007-09-30  Bruno Haible  <bruno@clisp.org>
4900
4901         * lib/alloca.in.h: Renamed from lib/alloca_.h.
4902         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
4903         alloca_.h.
4904         * lib/argz.in.h: Renamed from lib/argz_.h.
4905         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
4906         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
4907         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
4908         byteswap_.h.
4909         * lib/dirent.in.h: Renamed from lib/dirent_.h.
4910         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
4911         dirent_.h.
4912         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
4913         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
4914         fcntl_.h.
4915         * lib/float.in.h: Renamed from lib/float_.h.
4916         * modules/float (Files, Makefile.am): Use float.in.h instead of
4917         float_.h.
4918         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
4919         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
4920         fnmatch_.h.
4921         * lib/getopt.in.h: Renamed from lib/getopt_.h.
4922         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
4923         getopt_.h.
4924         * lib/glob.in.h: Renamed from lib/glob_.h.
4925         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
4926         * lib/iconv.in.h: Renamed from lib/iconv_.h.
4927         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
4928         iconv_.h.
4929         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
4930         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
4931         inttypes_.h.
4932         * lib/locale.in.h: Renamed from lib/locale_.h.
4933         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
4934         locale_.h.
4935         * lib/math.in.h: Renamed from lib/math_.h.
4936         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
4937         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
4938         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
4939         of netinet_in_.h. Add dependency.
4940         * lib/poll.in.h: Renamed from lib/poll_.h.
4941         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
4942         * lib/search.in.h: Renamed from lib/search_.h.
4943         * modules/search (Files, Makefile.am): Use search.in.h instead of
4944         search_.h.
4945         * lib/signal.in.h: Renamed from lib/signal_.h.
4946         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
4947         _signal.h.
4948         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
4949         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
4950         stdbool_.h.
4951         * lib/stdint.in.h: Renamed from lib/stdint_.h.
4952         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
4953         stdint_.h.
4954         * lib/stdio.in.h: Renamed from lib/stdio_.h.
4955         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
4956         stdio_.h.
4957         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
4958         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
4959         stdlib_.h.
4960         * lib/string.in.h: Renamed from lib/string_.h.
4961         * modules/string (Files, Makefile.am): Use string.in.h instead of
4962         string_.h.
4963         * doc/gnulib-tool.texi (Initial import): Update.
4964         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
4965         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
4966         of sys_select_.h. Add dependency.
4967         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
4968         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
4969         of sys_socket_.h.
4970         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
4971         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
4972         sys_stat_.h.
4973         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
4974         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
4975         sys_time_.h.
4976         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
4977         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
4978         sysexits_.h.
4979         * lib/time.in.h: Renamed from lib/time_.h.
4980         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
4981         * lib/unistd.in.h: Renamed from lib/unistd_.h.
4982         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
4983         unistd_.h.
4984         * lib/wchar.in.h: Renamed from lib/wchar_.h.
4985         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
4986         wchar_.h.
4987         * lib/wctype.in.h: Renamed from lib/wctype_.h.
4988         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
4989         wctype_.h.
4990         * build-aux/bootstrap (slurp): Update.
4991         * lib/.cppi-disable: Update.
4992
4993 2007-09-30  Bruno Haible  <bruno@clisp.org>
4994
4995         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
4996         Needed on BeOS.
4997
4998 2007-09-30  Bruno Haible  <bruno@clisp.org>
4999
5000         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
5001
5002 2007-09-29  Bruno Haible  <bruno@clisp.org>
5003
5004         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
5005
5006 2007-09-29  Bruno Haible  <bruno@clisp.org>
5007
5008         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
5009         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
5010         * build-aux/install-reloc: Compile also areadlink.c.
5011         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
5012
5013 2007-09-29  Bruno Haible  <bruno@clisp.org>
5014
5015         * gnulib-tool (func_emit_initmacro_done): Indentation.
5016
5017 2007-09-29  Bruno Haible  <bruno@clisp.org>
5018
5019         * README: Add CVS checkout update instructions.
5020         Info from Bob Proulx <bob@proulx.com>.
5021
5022 2007-09-28  Eric Blake  <ebb9@byu.net>
5023
5024         Provide move-if-change.
5025         * build-aux/move-if-change: New file, based on best practice
5026         rather than any canonical upstream location.
5027
5028 2007-09-28  Jim Meyering  <jim@meyering.net>
5029
5030         Fix canonicalize loop-detection corner case.
5031         Do not attempt to stat the symlink values stored via seen_triple.
5032         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
5033         on linux-2.6.18, (but not 2.6.22).
5034         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
5035         triple_compare.  The former compares dev,ino,filename, while the latter
5036         would actually stat dirname(filename) when dev and ino were equal.
5037         * lib/hash-triple.c: Install <string.h>.
5038         (STREQ): Define.
5039         (triple_compare_ino_str): New function.
5040         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
5041
5042 2007-09-28  Eric Blake  <ebb9@byu.net>
5043
5044         Enforce that AC_REPLACE_FUNCS files exist.
5045         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
5046         override check for typos.
5047
5048         Fix test-closein on Solaris 10.
5049         * tests/test-closein.c (main): Don't assume stdin can be inherited
5050         closed on all systems.
5051         * tests/test-closein.sh: Likewise.
5052         Reported by Piotr Tarnowski.
5053
5054 2007-09-28  Jim Meyering  <jim@meyering.net>
5055
5056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
5057
5058 2007-09-27  Jim Meyering  <jim@meyering.net>
5059
5060         canonicalize: Avoid a false-positive cycle failure.
5061         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
5062         Sort.  Remove cycle-check.
5063         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
5064         not cycle-check.h.
5065         (seen_triple): New function.
5066         (canonicalize_filename_mode): Use it instead of cycle-check.
5067         * tests/test-canonicalize.c: Add a test for this bug.
5068         * tests/test-canonicalize.sh: Set up and run the test.
5069
5070         New module, file-set, from coreutils.
5071         * modules/file-set: Define it.
5072         * lib/file-set.c, lib/file-set.h: Implement.
5073
5074         New module, hash-triple, from coreutils.
5075         * modules/hash-triple: Define it.
5076         * lib/hash-triple.c, lib/hash-triple.h: Implement.
5077
5078 2007-09-25  Eric Blake  <ebb9@byu.net>
5079
5080         Fix strerror on Interix.
5081         * lib/string_.h (strerror): Declare replacement.
5082         * doc/functions/strerror.texi (strerror): Document the Interix
5083         shortcoming.
5084         * modules/string (Makefile.am): Support new hooks.
5085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
5086         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
5087         gl_FUNC_STRERROR_SEPARATE.
5088         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
5089         * lib/strerror.c (rpl_strerror): Provide replacement.
5090         * modules/strerror (Depends-on): Add string.
5091         (configure.ac): Detect use of module.
5092         * tests/test-strerror.c: New file.
5093         * modules/strerror-tests: New test module.
5094         * modules/argp (Depends-on): Add strerror.
5095         * modules/error (Depends-on): Likewise.
5096         Reported by Martin Koeppe.
5097
5098 2007-09-24  Bruno Haible  <bruno@clisp.org>
5099
5100         * README: Update git instructions.
5101
5102 2007-09-24  Eric Blake  <ebb9@byu.net>
5103
5104         Revert fpending breakage from 2007-09-08.
5105         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
5106         __fpending.c.
5107
5108 2007-09-24  Jim Meyering  <jim@meyering.net>
5109
5110         filenamecat.c: Add a test.
5111         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
5112         showing how the function works when DIR is the empty string.
5113
5114 2007-09-21  Simon Josefsson  <simon@josefsson.org>
5115
5116         * tests/test-canonicalize.sh: Turn on executable bit.
5117
5118 2007-09-19  Eric Blake  <ebb9@byu.net>
5119
5120         * README: Update CVS instructions.
5121
5122 2007-09-18  Bruno Haible  <bruno@clisp.org>
5123
5124         * modules/areadlink: New file.
5125         * lib/areadlink.h (areadlink): New declaration.
5126         * lib/areadlink.c: New file, based on lib/xreadlink.c.
5127
5128 2007-09-17  Jim Meyering  <jim@meyering.net>
5129
5130         * lib/savewd.c (ESTALE) [!defined]: Define.
5131         Reported to be required on Interix by Martin Koeppe.
5132
5133 2007-09-17  Bruno Haible  <bruno@clisp.org>
5134
5135         * gnulib-tool (func_version): Use $version.
5136
5137 2007-09-16  Bruno Haible  <bruno@clisp.org>
5138
5139         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
5140         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
5141         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
5142         Reported by Greg Schafer <gschafer@zip.com.au>.
5143
5144 2007-09-15  Bruno Haible  <bruno@clisp.org>
5145
5146         * gnulib-tool (sed): Try a little harder to make bash understand the
5147         alias.
5148         Reported by Bruce Korb <bruce.korb@gmail.com>.
5149
5150 2007-09-13  Eric Blake  <ebb9@byu.net>
5151
5152         * ChangeLog: Remove conflict markers.
5153
5154 2007-09-13  Simon Josefsson  <simon@josefsson.org>
5155
5156         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
5157         Reported by Bruno Haible <bruno@clisp.org>.
5158
5159 2007-09-12  Bruno Haible  <bruno@clisp.org>
5160
5161         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
5162         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
5163         is not defined.
5164
5165 2007-09-12  Eric Blake  <ebb9@byu.net>
5166
5167         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
5168         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
5169         Autoconf definition.
5170         * modules/euidaccess (Depends-on): Add extensions, for
5171         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
5172         * modules/fnmatch (Depends-on): Likewise.
5173         * modules/getaddrinfo (Depends-on): Likewise.
5174         * modules/getdelim (Depends-on): Likewise.
5175         * modules/getline (Depends-on): Likewise.
5176         * modules/getsubopt (Depends-on): Likewise.
5177         * modules/gettext (Depends-on): Likewise.
5178         * modules/group-member (Depends-on): Likewise.
5179         * modules/mbchar (Depends-on): Likewise.
5180         * modules/memmem (Depends-on): Likewise.
5181         * modules/mempcpy (Depends-on): Likewise.
5182         * modules/memrchr (Depends-on): Likewise.
5183         * modules/pagealign_alloc (Depends-on): Likewise.
5184         * modules/readutmp (Depends-on): Likewise.
5185         * modules/stpcpy (Depends-on): Likewise.
5186         * modules/stpncpy (Depends-on): Likewise.
5187         * modules/strchrnul (Depends-on): Likewise.
5188         * modules/strndup (Depends-on): Likewise.
5189         * modules/strsep (Depends-on): Likewise.
5190         * modules/strverscmp (Depends-on): Likewise.
5191         * modules/vasprintf (Depends-on): Likewise.
5192         * modules/wcwidth (Depends-on): Likewise.
5193         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
5194         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
5195         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
5196         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
5197         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5198         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5199         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
5200         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5201         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
5202         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
5203         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5204         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
5205         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
5206         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5207         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
5208         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5209         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5210         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
5211         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5212         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
5213         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5214         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
5215         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
5216         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
5217         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
5218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5219         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
5220         so that lock.m4 can be used in gettext without extensions module.
5221
5222 2007-09-11  Bruno Haible  <bruno@clisp.org>
5223
5224         * m4/isc-posix.m4: Remove file.
5225         Suggested by Eric Blake.
5226
5227 2007-09-11  Eric Blake  <ebb9@byu.net>
5228
5229         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
5230
5231 2007-09-10  Bruno Haible  <bruno@clisp.org>
5232
5233         * posix-modules: Fix typo in error message.
5234         Reported by Matt <mkraai@beckman.com>.
5235
5236 2007-09-09  Bruno Haible  <bruno@clisp.org>
5237
5238         * doc/functions/getdelim.texi: Update list of platforms lacking the
5239         function.
5240         * doc/functions/getline.texi: Likewise.
5241
5242 2007-09-09  Jim Meyering  <jim@meyering.net>
5243
5244         * lib/hash.c (hash_initialize): Detect calloc failure.
5245         Reported by Bruno Haible.
5246
5247 2007-09-09  Bruno Haible  <bruno@clisp.org>
5248
5249         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
5250         malloc or realloc fails.
5251
5252 2007-09-09  Bruno Haible  <bruno@clisp.org>
5253
5254         * modules/getcwd (Depends-on): Add malloc-posix.
5255         * modules/glob (Depends-on): Likewise.
5256         * modules/putenv (Depends-on): Likewise.
5257         * modules/strdup (Depends-on): Likewise.
5258         * modules/getdelim (Depends-on): Add realloc-posix.
5259         * modules/read-file (Depends-on): Likewise.
5260
5261 2007-09-09  Bruno Haible  <bruno@clisp.org>
5262
5263         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
5264         (gl_FUNC_MALLOC_POSIX): Require it.
5265         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
5266         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
5267         * modules/realloc (Files): Add m4/malloc.m4.
5268         * modules/calloc (Files): Likewise.
5269
5270 2007-09-09  Bruno Haible  <bruno@clisp.org>
5271
5272         * modules/malloc-posix: New file.
5273         * modules/malloc (Depends-on): Add malloc-posix.
5274         * lib/malloc.c: Include errno.h.
5275         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
5276         and a POSIX-compatible malloc into a single function. Set ENOMEM
5277         when returning NULL.
5278         * m4/malloc.m4: New file.
5279         * doc/functions/malloc.texi: Mention the malloc-posix module.
5280         * lib/stdlib_.h (malloc): New declaration.
5281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5282         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
5283         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
5284         and HAVE_MALLOC_POSIX.
5285
5286 2007-09-09  Bruno Haible  <bruno@clisp.org>
5287
5288         * modules/realloc-posix: New file.
5289         * modules/realloc (Depends-on): Add realloc-posix.
5290         * lib/realloc.c: Include errno.h.
5291         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
5292         and a POSIX-compatible realloc into a single function. Set ENOMEM
5293         when returning NULL.
5294         * m4/realloc.m4: New file.
5295         * doc/functions/realloc.texi: Mention the realloc-posix module.
5296         * lib/stdlib_.h (realloc): New declaration.
5297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5298         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
5299         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
5300         and HAVE_REALLOC_POSIX.
5301
5302 2007-09-09  Bruno Haible  <bruno@clisp.org>
5303
5304         * modules/calloc-posix: New file.
5305         * modules/calloc (Depends-on): Add calloc-posix.
5306         * lib/calloc.c: Include errno.h.
5307         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
5308         and a POSIX-compatible calloc into a single function. Set ENOMEM
5309         when returning NULL.
5310         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
5311         * doc/functions/calloc.texi: Mention the calloc-posix module.
5312         * lib/stdlib_.h (calloc): New declaration.
5313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5314         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
5315         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
5316         and HAVE_CALLOC_POSIX.
5317
5318 2007-09-09  Bruno Haible  <bruno@clisp.org>
5319
5320         Allow for modules to show an arbitrary notice.
5321         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
5322         * gnulib-tool: New option --extract-notice.
5323         (func_usage): Document it.
5324         (sed_extract_prog): Update.
5325         (func_get_notice): New function.
5326         (func_modules_notice): New function.
5327         (func_import, func_create_testdir): Invoke it.
5328         Suggested by Jim Meyering.
5329
5330 2007-09-09  Bruno Haible  <bruno@clisp.org>
5331
5332         * gnulib-tool: New options --verbose, --quiet.
5333         (func_usage): Document them.
5334         (verbose): New variable.
5335         (func_execute_command): New function.
5336         (func_import): Don't show the module list and the file list if
5337         $verbose < 0.
5338         (func_create_testdir): Likewise. Use func_execute_command.
5339         (func_create_megatestdir): Use func_execute_command.
5340
5341 2007-09-08  Bruno Haible  <bruno@clisp.org>
5342
5343         * gnulib-tool (func_import): Prefer rsync over wget when available,
5344         for fetching the PO files.
5345
5346 2007-09-08  Bruno Haible  <bruno@clisp.org>
5347
5348         * posix-modules: New file. Portions copied from gnulib-tool.
5349         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
5350
5351 2007-09-08  Jim Meyering  <jim@meyering.net>
5352
5353         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
5354         * lib/fpending.h: Rename from __fpending.h.
5355         * lib/fpending.c: Rename from __fpending.c.
5356         Include "fpending.h", not "__fpending.h".
5357         * lib/__fpending.h, lib/__fpending.c: Remove files.
5358         * modules/fpending (Files): Reflect new file names.
5359         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
5360
5361 2007-09-08  Bruno Haible  <bruno@clisp.org>
5362
5363         * m4/inttypes-h.m4: Remove stub file.
5364
5365 2007-09-07  Simon Josefsson  <simon@josefsson.org>
5366
5367         * doc/headers/stdint.texi: Discuss #include_next issue.
5368
5369 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
5370
5371         * build-aux/bootstrap: Remove obsolete comment about wget --help.
5372
5373 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5374
5375         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
5376         in variable name.
5377
5378 2007-09-03  Jim Meyering  <jim@meyering.net>
5379
5380         New module: git-version-gen.
5381         * modules/git-version-gen: New file.
5382
5383         Import changes from coreutils for bootstrap script.
5384
5385         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
5386
5387         bootstrap: uses rsync to download the .po files
5388         * build-aux/bootstrap (po_download_command_format): New global.
5389         (download_po_files): Use rsync.
5390         (update_po_files): Don't remove .po files after download,
5391         so future rsync runs can take advantage of the copies.
5392
5393         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
5394
5395         Solve the unnecessary-.po-file-regeneration problem once and for all.
5396         * build-aux/bootstrap (download_po_files): New function, renamed from
5397         get_translations.  Now, downloads, but doesn't update LINGUAS.
5398         (update_po_files): New function.
5399
5400         bootstrap: Ignore more.
5401         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
5402         uniwidth to e.g., lib/.gitignore.
5403         (slurp): Handle the sys_stat_.h -> sys mapping, too.
5404
5405         * build-aux/bootstrap: New setting: vc_ignore.
5406         (insert_sorted_if_absent): Create $file if absent.
5407         Adapt to new, possibly empty, list: $vc_ignore.
5408
5409         bootstrap: generate more ignorable names
5410         * build-aux/bootstrap (slurp): When generating ignorable names,
5411         also map .sin to .sed, .gperf to .c, and .y to .c.
5412
5413 2007-09-03  Jim Meyering  <jim@meyering.net>
5414
5415         * build-aux/git-version-gen: New file, from coreutils.  For details, see
5416         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
5417
5418 2007-09-02  Bruno Haible  <bruno@clisp.org>
5419
5420         Fix mis-recognition of 'mcs' on QNX 6.
5421         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
5422         output contains the string "Mono".
5423         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
5424         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
5425
5426 2007-09-01  Bruno Haible  <bruno@clisp.org>
5427
5428         Fix collision between uniwidth/* and linebreak modules.
5429         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
5430         u32_width): Remove declarations.
5431         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
5432         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
5433         streq3, streq2, streq1, streq0): Remove functions.
5434         (STREQ): Remove macro.
5435         (is_cjk_encoding): Remove function.
5436         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
5437         (uc_width, u8_width, u16_width, u32_width): Remove functions.
5438         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
5439         * NEWS: Document the change.
5440
5441 2007-09-01  Bruno Haible  <bruno@clisp.org>
5442
5443         * lib/streq.h: Add double-inclusion guard.
5444
5445 2007-09-01  Karl Berry  <karl@gnu.org>
5446
5447         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
5448
5449 2007-08-28  Jim Meyering  <jim@meyering.net>
5450
5451         Rename mreadlink_with_size to areadlink_with_size.
5452         * NEWS: Document the change.
5453         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
5454         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
5455         * lib/mreadlink.h: Rename this to...
5456         * lib/areadlink.h: ...this.
5457         * modules/mreadlink-with-size: Rename this to...
5458         * modules/areadlink-with-size: ...this.
5459         * lib/canonicalize.c: Reflect the renaming.
5460         * modules/canonicalize: Likewise.
5461
5462 2007-08-26  Bruno Haible  <bruno@clisp.org>
5463
5464         * gnulib-tool (func_import): When deciding which files to remove,
5465         consider also dangling symbolic links.
5466         Reported by Eric Blake.
5467
5468 2007-08-26  Bruno Haible  <bruno@clisp.org>
5469
5470         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
5471
5472 2007-08-23  Simon Josefsson  <simon@josefsson.org>
5473
5474         * lib/readline.c: Don't include getline.h, the prototype is now
5475         found in stdio.h.
5476
5477 2007-08-23  Jim Meyering  <jim@meyering.net>
5478
5479         Getdelim touchup.
5480         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
5481         around the funlockfile call, since funlockfile never sets errno.
5482         Don't set errno upon failed realloc.
5483
5484 2007-08-22  Eric Blake  <ebb9@byu.net>
5485
5486         Getline touchups.
5487         * lib/getdelim.c (getdelim): Revert regression that required *n to
5488         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
5489         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
5490         getdelim, rather than whether implementation is missing.
5491         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
5492         * lib/stdio_.h (getline): Also declare if replacement is
5493         required.
5494         * doc/functions/getdelim.texi: New file.
5495         * doc/functions/getline.texi: Likewise.
5496         * doc/gnulib.texi (Function Substitutes): Add new files.
5497         Reported by Bruno Haible.
5498
5499 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
5500
5501         * users.txt: Add Guile.
5502
5503 2007-08-22  Eric Blake  <ebb9@byu.net>
5504
5505         * tests/test-getdelim.c (main): Use remove, not unlink.
5506         * tests/test-getline.c (main): Likewise.
5507
5508         Move getline and getdelim into stdio.h, per POSIX 200x.
5509         * modules/getline (Files): Remove getline.h.
5510         (Depends-on): Add stdio.
5511         (configure.ac): Add module indicator.
5512         * modules/getdelim (Files): Remove getdelim.h.
5513         (Depends-on): Add stdio.
5514         (configure.ac): Add module indicator.
5515         * modules/stdio (Makefile.am): Work with new indicators.
5516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
5517         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
5518         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5519         * lib/getdelim.h: Delete.
5520         * lib/getline.h: Delete.
5521         * lib/stdio_.h (getdelim, getline): Declare.
5522         * modules/getdelim-tests: New module.
5523         * modules/getline-tests: Likewise.
5524         * tests/test-getdelim.c: New file.
5525         * tests/test-getline.c: Likewise.
5526         * NEWS: Document the change.
5527         * lib/getline.c: Update choice of header.
5528         * lib/csharpcomp.c: Likewise.
5529         * lib/getpass.c: Likewise.
5530         * lib/javacomp.c: Likewise.
5531         * lib/javaversion.c: Likewise.
5532         * lib/yesno.c: Likewise.
5533         * lib/getdelim.c: Likewise.
5534         (getdelim): Set errno on failure, and avoid memory leak.
5535
5536 2007-08-19  Bruno Haible  <bruno@clisp.org>
5537
5538         * modules/closein (Depends-on): Add freadahead.
5539         * lib/closein.c: Include freadahead.h.
5540         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
5541         is zero.
5542
5543 2007-08-19  Bruno Haible  <bruno@clisp.org>
5544
5545         * modules/freadahead-tests: New file.
5546         * tests/test-freadahead.sh: New file.
5547         * tests/test-freadahead.c: New file.
5548
5549         * modules/freadahead: New file.
5550         * lib/freadahead.h: New file.
5551         * lib/freadahead.c: New file.
5552         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
5553         fbufmode, fpurge, freadable, fwritable.
5554
5555 2007-08-19  Eric Blake  <ebb9@byu.net>
5556
5557         Test yesno in combination with closein.
5558         * lib/yesno.c (yesno): Document use of stdin.
5559         * modules/yesno-tests (Files): New module.
5560         * tests/test-yesno.c (main): New file.
5561         * tests/test-yesno.sh: Likewise.
5562
5563 2007-08-19  Bruno Haible  <bruno@clisp.org>
5564
5565         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
5566         * lib/fseeko.c (rpl_fseeko): Likewise.
5567         * lib/fseterr.c (fseterr): Likewise.
5568
5569 2007-08-19  Bruno Haible  <bruno@clisp.org>
5570
5571         * tests/test-lseek.c (main): Disable a test for BeOS.
5572         * doc/functions/lseek.texi: Document the BeOS bug.
5573
5574 2007-08-19  Bruno Haible  <bruno@clisp.org>
5575             Eric Blake  <ebb9@byu.net>
5576
5577         * lib/lseek.c: Include <sys/stat.h>.
5578         (rpl_lseek): Add workaround code also for Unix platforms.
5579         Needed for BeOS.
5580         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
5581         * doc/functions/lseek.texi: Document BeOS definiency.
5582
5583 2007-08-18  Bruno Haible  <bruno@clisp.org>
5584
5585         * modules/fstrcmp-tests: New file.
5586         * tests/test-fstrcmp.c: New file.
5587
5588 2007-08-18  Bruno Haible  <bruno@clisp.org>
5589
5590         * modules/fstrcmp: New file, from GNU gettext with modifications.
5591         * lib/fstrcmp.h: New file, from GNU gettext.
5592         * lib/fstrcmp.c: New file, from GNU gettext.
5593         * MODULES.html.sh (String handling): Add fstrcmp.
5594
5595 2007-08-18  Bruno Haible  <bruno@clisp.org>
5596
5597         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
5598         'bool'.
5599         (diag, compareseq): Remove const from the ctxt argument.
5600         (USE_HEURISTIC): Undefine at the end.
5601
5602 2007-08-18  Jim Meyering  <jim@meyering.net>
5603
5604         New file: lib/idcache.h
5605         * NEWS: Mention the addition.
5606         * modules/idcache (Files): Add lib/idcache.h
5607         * lib/idcache.c: Include "idcache.h".
5608         Don't include <sys/types.h>.
5609         Add a FIXME comment.
5610         Move file-scoped "static" declarations to the top.
5611         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
5612
5613 2007-08-17  Bruno Haible  <bruno@clisp.org>
5614         and Paul Eggert  <eggert@cs.ucla.edu>
5615
5616         * MODULES.html.sh: Add diffseq.
5617         * modules/diffseq: New file.
5618         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
5619         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
5620
5621 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5622
5623         Import changes from coreutils for bootstrap script.
5624
5625         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
5626
5627         * build-aux/bootstrap (slurp): Work even in environments where
5628         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
5629         current code does not slurp files whose names start with ".", and
5630         this looks like it might be a troublesome area.
5631
5632         2007-07-11  Jim Meyering  <jim@meyering.net>
5633
5634         If there's a GPL vN copyright comment, require that N == 3.
5635
5636         2007-07-08  Jim Meyering  <jim@meyering.net>
5637
5638         Run the coreutils-specific code only if tests/Makefile.am.in exists.
5639         * build-aux/bootstrap (mam_template): Move definition out of loop.
5640
5641         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
5642
5643         * build-aux/bootstrap (symlink_to_dir): Rename function from
5644         symlink_to_gnulib.  Add a directory parameter.  Update all
5645         callers.
5646         (cp_mark_as_generated): Also check for -- and link to -- files in
5647         gl/.
5648
5649         2007-07-08  Jim Meyering  <jim@meyering.net>
5650
5651         Adapt to deeper hierarchy in gnulib.
5652         * build-aux/bootstrap (symlink_to_dir): If the destination
5653         directory doesn't exist, create it. This is required at least for
5654         "lib/uniwidth/cjk.h".
5655
5656         2007-05-15  Jim Meyering  <jim@meyering.net>
5657
5658         * build-aux/bootstrap: Now that generated Makefile.am files
5659         are no longer under version control, they must be created at
5660         bootstrap time.
5661
5662 2007-08-14  Ben Pfaff  <blp@gnu.org>
5663
5664         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
5665
5666 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5667
5668         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
5669         given the changes below.
5670         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
5671         even on hosts that have padding bits beyond the supported 64.
5672
5673 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5674
5675         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
5676         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
5677         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
5678         depends on it.
5679         (xstrtol_error): Remove.
5680         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
5681         but with a different signature.
5682         (ATTRIBUTE_NORETURN, __attribute__): New macros.
5683         * lib/xstrtol-error.c: Include exitfail.h.
5684         (xstrtol_fatal): New function, with a different signature from the
5685         old xstrtol_error, so that the caller need not worry about passing
5686         in an exit status, or about storage management of the option argument.
5687         (xstrtol_error): Now a static function.  Redo signature to
5688         implement xstrtol_fatal.  Output the correct number of hyphens in
5689         front of the option so that the caller need not worry about
5690         storage management.
5691         (N_): New macro.
5692         (_): Remove; not used now.
5693         * modules/xstrtol: Depend on getopt.
5694         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
5695         of old STRTOL_FATAL_ERROR macro.
5696         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
5697         of test program.
5698         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
5699         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
5700
5701 2007-08-08  Eric Blake  <ebb9@byu.net>
5702
5703         * lib/xstrtol-error.c: Add missing include.
5704
5705         Move xstrtol messages into gnulib domain, when --pobase is used.
5706         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
5707         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
5708         * modules/xstrtol (Files): Distribute new file.
5709         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
5710         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
5711         * tests/test-xstrtol.c: ...into new file.
5712         * tests/test-xstrtoul.c: Also test xstrtoul.
5713         * tests/test-xstrtoimax.c: Also test xstrtoimax.
5714         * tests/test-xstrtoumax.c: Also test xstrtoumax.
5715         * tests/test-xstrtol.sh: Drive the tests.
5716         * tests/test-xstrtoimax.sh: Likewise.
5717         * tests/test-xstrtoumax.sh: Likewise.
5718         * modules/xstrtol-tests: New module.
5719         * modules/xstrtoimax-tests: Likewise.
5720         * modules/xstrtoumax-tests: Likewise.
5721
5722 2007-08-08  Jim Meyering  <jim@meyering.net>
5723
5724         New function: mfile_name_concat.
5725         * lib/filenamecat.c (mfile_name_concat): New function, just like
5726         file_name_concat, but return NULL upon failure rather than exiting
5727         with a diagnostic.
5728         * lib/filenamecat.h: Declare it.
5729
5730 2007-08-07  Bruno Haible  <bruno@clisp.org>
5731
5732         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
5733         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
5734         warning from gcc.
5735         Reported by Eric Blake.
5736
5737 2007-08-07  Simon Josefsson  <simon@josefsson.org>
5738
5739         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
5740         * modules/crypto/arcfour (License): Likewise.
5741         * modules/crypto/des-tests (License): Likewise.
5742         * modules/crypto/gc-arctwo-tests (License): Likewise.
5743         * modules/crypto/gc-des-tests (License): Likewise.
5744         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
5745         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
5746         * modules/crypto/gc-md2-tests (License): Likewise.
5747         * modules/crypto/gc-md4-tests (License): Likewise.
5748         * modules/crypto/gc-md5-tests (License): Likewise.
5749         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
5750         * modules/crypto/gc-rijndael-tests (License): Likewise.
5751         * modules/crypto/gc-sha1-tests (License): Likewise.
5752         * modules/crypto/gc-tests (License): Likewise.
5753         * modules/crypto/hmac-md5 (License): Likewise.
5754         * modules/crypto/hmac-sha1 (License): Likewise.
5755         * modules/crypto/md2-tests (License): Likewise.
5756         * modules/crypto/md4-tests (License): Likewise.
5757         * modules/crypto/md5 (License): Likewise.
5758         * modules/crypto/rijndael (License): Likewise.
5759         * modules/crypto/sha1 (License): Likewise.
5760         * modules/memxor (License): Likewise.
5761
5762 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5763         and Bruno Haible  <bruno@clisp.org>
5764
5765         * NEWS: Describe interface changes to human, xstrtol.
5766         * lib/human.h: Include <xstrtol.h>.
5767         (human_options): Return enum strtol_error, not int.  Remove
5768         bool arg; take int * instead.
5769         * lib/human.c: Don't include "gettext.h".
5770         (_): Remove; no longer used.
5771         Don't include <xstrtol.h>, since human.h does it.
5772         (human_options): Adjust to abovementioned interface changes.
5773         Do not report error to stderr; that's now the caller's
5774         responsibility.
5775         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
5776         interface change.
5777         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
5778         Str, Argument_type_string.  All uses changed.  Put " argument"
5779         in diagnostics to make them clearer.  Change wording of suffix
5780         message for clarity.
5781         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
5782         Argument_type_string.
5783         (STRTOL_FATAL_WARN): Remove; no longer used.
5784         * modules/human (Depends-on): Remove gettext-h.
5785
5786 2007-08-06  Simon Josefsson  <simon@josefsson.org>
5787
5788         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
5789
5790 2007-07-31  Bruno Haible  <bruno@clisp.org>
5791
5792         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
5793         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
5794         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
5795
5796 2007-07-31  Bruno Haible  <bruno@clisp.org>
5797
5798         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
5799         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
5800
5801 2007-07-30  Bruno Haible  <bruno@clisp.org>
5802
5803         * modules/base64 (License): Use the synonymous term "LGPLv2+".
5804         * modules/c-ctype (License): Likewise.
5805         * modules/c-strcase (License): Likewise.
5806         * modules/check-version (License): Likewise.
5807         * modules/iconv (License): Likewise.
5808         * modules/iconv_open (License): Likewise.
5809         * modules/read-file (License): Likewise.
5810         * modules/striconv (License): Likewise.
5811         * modules/strverscmp (License): Likewise.
5812         * modules/vasprintf (License): Likewise.
5813         * modules/crypto/des (License): Likewise.
5814         * modules/crypto/gc (License): Likewise.
5815         * modules/crypto/gc-arcfour (License): Likewise.
5816         * modules/crypto/gc-arctwo (License): Likewise.
5817         * modules/crypto/gc-des (License): Likewise.
5818         * modules/crypto/gc-hmac-md5 (License): Likewise.
5819         * modules/crypto/gc-hmac-sha1 (License): Likewise.
5820         * modules/crypto/gc-md2 (License): Likewise.
5821         * modules/crypto/gc-md4 (License): Likewise.
5822         * modules/crypto/gc-md5 (License): Likewise.
5823         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
5824         * modules/crypto/gc-random (License): Likewise.
5825         * modules/crypto/gc-rijndael (License): Likewise.
5826         * modules/crypto/gc-sha1 (License): Likewise.
5827         * modules/crypto/md2 (License): Likewise.
5828         * modules/crypto/md4 (License): Likewise.
5829
5830 2007-07-30  Jim Meyering  <jim@meyering.net>
5831
5832         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
5833         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
5834         it has valid stat data.  This bug would cause du not to count the
5835         sizes of inaccessible directories.
5836         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
5837         in <http://bugzilla.redhat.com/250077>.
5838
5839 2007-07-25  Peter O'Gorman  <peter@pogma.com>
5840             Bruno Haible  <bruno@clisp.org>
5841
5842         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
5843         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
5844         #include_next, gives a diagnostic about it, but reports no error in
5845         the exit code.
5846         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5847
5848 2007-07-24  Ben Pfaff  <blp@gnu.org>
5849
5850         Improve name: "count-one-bits" is better than "popcount".
5851         * MODULES.html.sh: Update name.
5852         * lib/popcount.h: Renamed lib/count-one-bits.h.
5853         (popcount): Renamed count_one_bits.
5854         (popcountl): Renamed count_one_bits_l.
5855         (popcountll): Renamed count_one_bits_ll.
5856         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
5857         * modules/popcount: Renamed module/count-one-bits.
5858         * modules/popcount-tests: Renamed module/count-one-bits-tests.
5859         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
5860
5861 2007-07-23  Ben Pfaff  <blp@gnu.org>
5862
5863         * lib/popcount.h (popcount32): Reduce size of constants, to allow
5864         better code generation, and add U to large constants to avoid
5865         warnings, in non-GCC case.
5866         Suggested by Bruno Haible.
5867
5868 2007-07-23  Ben Pfaff  <blp@gnu.org>
5869
5870         * lib/popcount.h: Use verify_true instead of if...abort.
5871         * modules/popcount: Depend on verify module.
5872         Suggested by Jim Meyering.
5873
5874 2007-07-23  Bruno Haible  <bruno@clisp.org>
5875
5876         * gnulib-tool (func_import): Create a .cvsignore file also when the
5877         directory is not yet in CVS but the toplevel directory is. When
5878         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
5879         Reported by Karl Berry.
5880
5881 2007-07-22  Ben Pfaff  <blp@gnu.org>
5882
5883         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
5884         case.
5885         Suggested by Eric Blake.
5886
5887 2007-07-22  Ben Pfaff  <blp@gnu.org>
5888
5889         New module: popcount.
5890         * MODULES.html.sh: Add popcount.
5891         * modules/popcount: New file.
5892         * modules/popcount-tests: New file.
5893         * tests/test-popcount.c: New file.
5894         * lib/popcount.h: New file.
5895         * m4/popcount.m4: New file.
5896
5897 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5898
5899         * build-aux/announce-gen: Update to GPLv3.
5900
5901         * build-aux/config.guess: Update from config.
5902
5903 2007-07-21  Bruno Haible  <bruno@clisp.org>
5904
5905         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
5906         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
5907
5908 2007-07-20  Jim Meyering  <jim@meyering.net>
5909
5910         * check-module: Diagnose a self-dependency.
5911
5912 2007-07-19  Bruno Haible  <bruno@clisp.org>
5913
5914         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
5915         empty.
5916         Reported by Eric Blake.
5917
5918 2007-07-18  Bruno Haible  <bruno@clisp.org>
5919
5920         * gnulib-tool: New options --po-base, --po-domain.
5921         (func_usage): Document them.
5922         (pobase, po_domain): New variables.
5923         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
5924         DEFAULT_TEXT_DOMAIN.
5925         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
5926         (func_import): Consider pobase and po_domain. Create a po/ directory.
5927         (func_create_testdir): Set pobase and po_domain to empty.
5928         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
5929         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
5930
5931 2007-07-18  Bruno Haible  <bruno@clisp.org>
5932
5933         * gnulib-tool (func_get_automake_snippet): Synthesize also an
5934         EXTRA_DIST augmentation for files in build-aux/.
5935
5936 2007-07-16  Bruno Haible  <bruno@clisp.org>
5937
5938         * modules/lseek (License): Use the synonymous term "LGPLv2+".
5939         * modules/getdelim (License): Likewise.
5940
5941 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5942
5943         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
5944         * modules/d-type (License): Likewise.
5945         * modules/extensions (License): Likewise.
5946         * modules/fnmatch (License): Likewise.
5947         * modules/fseeko (License): Likewise.
5948         * modules/getaddrinfo (License): Likewise.
5949         * modules/getline (License): Likewise.
5950         * modules/getlogin_r (License): Likewise.
5951         * modules/getpass (License): Likewise.
5952         * modules/gettimeofday (License): Likewise.
5953         * modules/glob (License): Likewise.
5954         * modules/inet_ntop (License): Likewise.
5955         * modules/malloc (License): Likewise.
5956         * modules/malloca (License): Likewise.
5957         * modules/memmem (License): Likewise.
5958         * modules/mempcpy (License): Likewise.
5959         * modules/memset (License): Likewise.
5960         * modules/minmax (License): Likewise.
5961         * modules/mktime (License): Likewise.
5962         * modules/netinet_in (License): Likewise.
5963         * modules/pathmax (License): Likewise.
5964         * modules/poll (License): Likewise.
5965         * modules/regex (License): Likewise.
5966         * modules/snprintf (License): Likewise.
5967         * modules/stdbool (License): Likewise.
5968         * modules/stdint (License): Likewise.
5969         * modules/stdio (License): Likewise.
5970         * modules/strcase (License): Likewise.
5971         * modules/strcasestr (License): Likewise.
5972         * modules/strdup (License): Likewise.
5973         * modules/string (License): Likewise.
5974         * modules/strndup (License): Likewise.
5975         * modules/strnlen (License): Likewise.
5976         * modules/strpbrk (License): Likewise.
5977         * modules/strptime (License): Likewise.
5978         * modules/strsep (License): Likewise.
5979         * modules/sys_select (License): Likewise.
5980         * modules/sys_socket (License): Likewise.
5981         * modules/sys_stat (License): Likewise.
5982         * modules/sys_time (License): Likewise.
5983         * modules/time (License): Likewise.
5984         * modules/time_r (License): Likewise.
5985         * modules/timegm (License): Likewise.
5986         * modules/unistd (License): Likewise.
5987         * modules/vsnprintf (License): Likewise.
5988         * modules/wctype (License): Likewise.
5989
5990 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5991
5992         * modules/argz (License): LGPLv2+.
5993
5994 2007-07-15  Karl Berry  <karl@gnu.org>
5995
5996         * doc/gnulib.texi: revise node structure per new fdl.texi.
5997
5998 2007-07-14  Bruno Haible  <bruno@clisp.org>
5999
6000         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
6001         the output file.
6002         * lib/uniname/uninames.h: Regenerated.
6003
6004 2007-07-14  Karl Berry  <karl@gnu.org>
6005
6006         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
6007         omitting sectioning and index commands.
6008
6009 2007-07-13  Bruno Haible  <bruno@clisp.org>
6010
6011         New gnulib-tool option --more-symlinks.
6012         * gnulib-tool (func_usage): Document --more-symlinks.
6013         (do_copyrights): New variable.
6014         Recognize option --more-symlinks.
6015         (func_import): Don't add a copyright notice transform to
6016         sed_transform_lib_file if do_copyrights is empty.
6017
6018 2007-07-13  Bruno Haible  <bruno@clisp.org>
6019
6020         * lib/vasnprintf.c (decimal_point_char): Define also if
6021         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
6022         && !NEED_PRINTF_DIRECTIVE_A.
6023         Reported by Clemens Koller <clemens.koller@anagramm.de> via
6024         Gary V. Vaughan <gary@gnu.org>.
6025
6026 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
6027
6028         * lib/inttypes_.h: Undo previous change, since it was fixed
6029         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
6030
6031 2007-07-13  Bruno Haible  <bruno@clisp.org>
6032
6033         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
6034         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
6035
6036 2007-07-13  Jim Meyering  <jim@meyering.net>
6037
6038         df: Don't fail for Tru64's "file-on-file mount".
6039         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
6040         so we fall through and use statfs instead.  Details here:
6041         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
6042         Reported by Albert Chin.
6043
6044 2007-07-13  Bruno Haible  <bruno@clisp.org>
6045
6046         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
6047         * modules/configmake (License): Likewise.
6048         * modules/gettext (License): Likewise.
6049         * modules/gettext-h (License): Likewise.
6050         * modules/include_next (License): Likewise.
6051         * modules/link-warning (License): Likewise.
6052         * modules/localcharset (License): Likewise.
6053         * modules/localename (License): Likewise.
6054         * modules/lock (License): Likewise.
6055         * modules/relocatable-lib-lgpl (License): Likewise.
6056         * modules/size_max (License): Likewise.
6057         * modules/vasnprintf (License): Likewise.
6058         * modules/wchar (License): Likewise.
6059         * modules/xsize (License): Likewise.
6060
6061 2007-07-13  Bruno Haible  <bruno@clisp.org>
6062
6063         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
6064         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
6065
6066 2007-07-12  Bruno Haible  <bruno@clisp.org>
6067
6068         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
6069         in the modules files.
6070
6071 2007-07-11  Karl Berry  <karl@gnu.org>
6072
6073         * MODULES.html.sh (func_module): use
6074          sed -e '\|^'"${includefile}"'$|d'
6075          instead of /.../d, to avoid errors on $includefile's containing /.
6076
6077 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
6078
6079         * gnulib-tool (func_import): Avoid duplication of --avoid
6080         statements
6081         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
6082         names to `_' in variable names.
6083
6084 2007-07-10  Eric Blake  <ebb9@byu.net>
6085
6086         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
6087         * NEWS: Document this change.
6088
6089 2007-07-08  Bruno Haible  <bruno@clisp.org>
6090
6091         Update to Unicode 5.0.
6092         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
6093         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
6094         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
6095         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
6096         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
6097         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
6098         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
6099         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
6100         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
6101         U+10A3F, U+1D242..U+1D244.
6102         (nonspacing_table_ind): Update.
6103         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
6104         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
6105
6106 2007-07-08  Bruno Haible  <bruno@clisp.org>
6107
6108         Update to Unicode 5.0.
6109         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
6110         code transform. Extend the name index field of unicode_name_to_code and
6111         unicode_code_to_name from 16 to 24 bits.
6112         * lib/uniname/uniname.c (unicode_character_name,
6113         unicode_name_character): Add the range 0x12xxx to the code transform.
6114         * lib/uniname/uninames.h: Regenerated.
6115         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
6116
6117 2007-07-07  Bruno Haible  <bruno@clisp.org>
6118
6119         * modules/wcwidth-tests: New file.
6120         * tests/test-wcwidth.c: New file.
6121
6122         Work around MacOS X wcwidth() bug.
6123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
6124         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
6125         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
6126         original wcwidth in non-UTF-8 locales.
6127         * modules/wcwidth (Depends-on): Add localcharset, streq,
6128         uniwidth/width.
6129         * doc/functions/wcwidth.texi: Update.
6130
6131 2007-07-07  Bruno Haible  <bruno@clisp.org>
6132
6133         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
6134         (wcwidth): New declaration.
6135         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
6136         macros.
6137         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
6138         here. Prepare for creating <wchar.h> unconditionally.
6139         * modules/wchar (Depends-on): Add link-warning.
6140         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
6141         REPLACE_WCWIDTH, and GL_LINK_WARNING.
6142         * lib/wcwidth.h: Remove file.
6143         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
6144         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
6145         * modules/wcwidth (Files): Remove lib/wcwidth.h.
6146         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
6147         (Include): Replace wcwidth.h with <wchar.h>.
6148         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
6149         * lib/mbchar.h: Don't include wcwidth.h.
6150         * lib/mbswidth.c: Likewise.
6151         * NEWS: Mention the change.
6152
6153 2007-07-07  Bruno Haible  <bruno@clisp.org>
6154
6155         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
6156         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
6157         definition with an external declaration.
6158         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
6159         defined as a function. Remove AC_C_INLINE requirement.
6160         * modules/wcwidth (Files): Add lib/wcwidth.c.
6161         (Makefile.am): Remove redundant statement.
6162
6163 2007-07-07  Bruno Haible  <bruno@clisp.org>
6164
6165         * MODULES.html.sh (Unicode string functions): Add the new modules.
6166
6167         * tests/uniwidth/test-u32-strwidth.c: New file.
6168         * modules/uniwidth/u32-strwidth-tests: New file.
6169
6170         * lib/uniwidth/u32-strwidth.c: New file.
6171         * modules/uniwidth/u32-strwidth: New file.
6172
6173         * tests/uniwidth/test-u16-strwidth.c: New file.
6174         * modules/uniwidth/u16-strwidth-tests: New file.
6175
6176         * lib/uniwidth/u16-strwidth.c: New file.
6177         * modules/uniwidth/u16-strwidth: New file.
6178
6179         * tests/uniwidth/test-u8-strwidth.c: New file.
6180         * modules/uniwidth/u8-strwidth-tests: New file.
6181
6182         * lib/uniwidth/u8-strwidth.c: New file.
6183         * modules/uniwidth/u8-strwidth: New file.
6184
6185         * tests/uniwidth/test-u32-width.c: New file.
6186         * modules/uniwidth/u32-width-tests: New file.
6187
6188         * lib/uniwidth/u32-width.c: New file.
6189         * modules/uniwidth/u32-width: New file.
6190
6191         * tests/uniwidth/test-u16-width.c: New file.
6192         * modules/uniwidth/u16-width-tests: New file.
6193
6194         * lib/uniwidth/u16-width.c: New file.
6195         * modules/uniwidth/u16-width: New file.
6196
6197         * tests/uniwidth/test-u8-width.c: New file.
6198         * modules/uniwidth/u8-width-tests: New file.
6199
6200         * lib/uniwidth/u8-width.c: New file.
6201         * modules/uniwidth/u8-width: New file.
6202
6203         * tests/uniwidth/test-uc_width.c: New file.
6204         * modules/uniwidth/width-tests: New file.
6205
6206         * lib/uniwidth/width.c: New file, from GNU libiconv.
6207         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
6208         * modules/uniwidth/width: New file.
6209
6210         * lib/uniwidth.h: New file, from GNU libiconv.
6211         * modules/uniwidth/base: New file.
6212
6213 2007-07-07  Bruno Haible  <bruno@clisp.org>
6214
6215         * lib/uniname.h: New file, from GNU gettext.
6216         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
6217         * lib/uniname/uninames.h: New file, from GNU gettext.
6218         * lib/uniname/uniname.c: New file, from GNU gettext.
6219         * tests/uniname/test-uninames.sh: New file.
6220         * tests/uniname/test-uninames.c: New file, from GNU gettext.
6221         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
6222         * modules/uniname/base: New file.
6223         * modules/uniname/uniname: New file.
6224         * modules/uniname/uniname-tests: New file.
6225         * MODULES.html.sh (Unicode string functions): Add the new modules.
6226
6227 2007-07-06  Bruno Haible  <bruno@clisp.org>
6228
6229         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
6230
6231 2007-07-06  Bruno Haible  <bruno@clisp.org>
6232
6233         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
6234         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
6235         includes <cygwin/sys_time.h> which includes <sys/select.h> which
6236         include <sys/time.h>.
6237         Reported by Eric Blake.
6238
6239 2007-07-06  Eric Blake  <ebb9@byu.net>
6240
6241         Fix testing canonicalize on cygwin.
6242         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
6243         Revert patch from 2007-06-19.
6244         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
6245         canonicalize module is also in use.
6246         * tests/test-canonicalize.c: New file.
6247         * tests/test-canonicalize.sh: Likewise.
6248         * modules/canonicalize-tests: Likewise.
6249
6250 2007-07-06  Jim Meyering  <jim@meyering.net>
6251
6252         * lib/getugroups.c (getugroups): Detect getgrent failure.
6253         Adjust comment to reflect reality: this function may return -1.
6254
6255 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6256
6257         * build-aux/bootstrap (TP_URL,get_translations): Update to use
6258         the new TP address.
6259         (usage): Fix typo
6260         (gnulib_mk): New variable.
6261
6262 2007-07-05  Jim Meyering  <jim@meyering.net>
6263
6264         Don't let endgrent clobber errno, no matter how improbable.
6265         * lib/getugroups.c (getugroups): Save and restore errno around
6266         endgrent call.
6267
6268         Close the group DB even when failing with 2^31 or more members.
6269         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
6270
6271 2007-07-04  Jim Meyering  <jim@meyering.net>
6272
6273         * lib/getugroups.h: New file.
6274         * lib/getugroups.c: Include "getugroups.h".
6275         Remove uses of "register" keyword.
6276         Move local variable, "cp", down into scope where used.
6277         Give "username" parameter the "const" attribute.
6278         * modules/getugroups (Files): Add lib/getugroups.h
6279
6280 2007-07-04  Karl Berry  <karl@gnu.org>
6281
6282         * MODULES.html.sh (func_all_modules): Complete rename of
6283         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
6284
6285 2007-07-02  Bruno Haible  <bruno@clisp.org>
6286
6287         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
6288         mode, when inttypes.h comes from gnulib.
6289         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6290
6291 2007-07-02  Simon Josefsson  <simon@josefsson.org>
6292
6293         * NEWS: Mention lgpl module name change.
6294
6295         * modules/lgpl-2.1: Renamed from lgpl.
6296
6297         * NEWS: Mention gpl module name change.
6298
6299         * modules/gpl-3.0: New file, based on gpl-2.0.
6300
6301         * modules/gpl-2.0: Renamed from gpl.
6302
6303         * modules/gpl: Fix filename, doc/gpl.texi is now found at
6304         doc/gpl-2.0.texi.
6305
6306 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
6307
6308         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
6309         #define __STDC_LIMIT_MACROS temporarily while including
6310         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
6311         Problem reported by Joel E. Denny in
6312         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
6313
6314 2007-07-01  Bruno Haible  <bruno@clisp.org>
6315
6316         * lib/unistdio.h: New file.
6317         * lib/unistdio/u-asnprintf.h: New file.
6318         * lib/unistdio/u-asprintf.h: New file.
6319         * lib/unistdio/u-printf-args.c: New file.
6320         * lib/unistdio/u-printf-args.h: New file.
6321         * lib/unistdio/u-printf-parse.h: New file.
6322         * lib/unistdio/u-snprintf.h: New file.
6323         * lib/unistdio/u-sprintf.h: New file.
6324         * lib/unistdio/u-vasprintf.h: New file.
6325         * lib/unistdio/u-vsnprintf.h: New file.
6326         * lib/unistdio/u-vsprintf.h: New file.
6327         * lib/unistdio/ulc-asnprintf.c: New file.
6328         * lib/unistdio/ulc-asprintf.c: New file.
6329         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
6330         * lib/unistdio/ulc-printf-parse.c: New file.
6331         * lib/unistdio/ulc-snprintf.c: New file.
6332         * lib/unistdio/ulc-sprintf.c: New file.
6333         * lib/unistdio/ulc-vasnprintf.c: New file.
6334         * lib/unistdio/ulc-vasprintf.c: New file.
6335         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
6336         * lib/unistdio/ulc-vsnprintf.c: New file.
6337         * lib/unistdio/ulc-vsprintf.c: New file.
6338         * lib/unistdio/u8-asnprintf.c: New file.
6339         * lib/unistdio/u8-asprintf.c: New file.
6340         * lib/unistdio/u8-printf-parse.c: New file.
6341         * lib/unistdio/u8-snprintf.c: New file.
6342         * lib/unistdio/u8-sprintf.c: New file.
6343         * lib/unistdio/u8-vasnprintf.c: New file.
6344         * lib/unistdio/u8-vasprintf.c: New file.
6345         * lib/unistdio/u8-vsnprintf.c: New file.
6346         * lib/unistdio/u8-vsprintf.c: New file.
6347         * lib/unistdio/u8-u8-asnprintf.c: New file.
6348         * lib/unistdio/u8-u8-asprintf.c: New file.
6349         * lib/unistdio/u8-u8-snprintf.c: New file.
6350         * lib/unistdio/u8-u8-sprintf.c: New file.
6351         * lib/unistdio/u8-u8-vasnprintf.c: New file.
6352         * lib/unistdio/u8-u8-vasprintf.c: New file.
6353         * lib/unistdio/u8-u8-vsnprintf.c: New file.
6354         * lib/unistdio/u8-u8-vsprintf.c: New file.
6355         * lib/unistdio/u16-asnprintf.c: New file.
6356         * lib/unistdio/u16-asprintf.c: New file.
6357         * lib/unistdio/u16-printf-parse.c: New file.
6358         * lib/unistdio/u16-snprintf.c: New file.
6359         * lib/unistdio/u16-sprintf.c: New file.
6360         * lib/unistdio/u16-vasnprintf.c: New file.
6361         * lib/unistdio/u16-vasprintf.c: New file.
6362         * lib/unistdio/u16-vsnprintf.c: New file.
6363         * lib/unistdio/u16-vsprintf.c: New file.
6364         * lib/unistdio/u16-u16-asnprintf.c: New file.
6365         * lib/unistdio/u16-u16-asprintf.c: New file.
6366         * lib/unistdio/u16-u16-snprintf.c: New file.
6367         * lib/unistdio/u16-u16-sprintf.c: New file.
6368         * lib/unistdio/u16-u16-vasnprintf.c: New file.
6369         * lib/unistdio/u16-u16-vasprintf.c: New file.
6370         * lib/unistdio/u16-u16-vsnprintf.c: New file.
6371         * lib/unistdio/u16-u16-vsprintf.c: New file.
6372         * lib/unistdio/u32-asnprintf.c: New file.
6373         * lib/unistdio/u32-asprintf.c: New file.
6374         * lib/unistdio/u32-printf-parse.c: New file.
6375         * lib/unistdio/u32-snprintf.c: New file.
6376         * lib/unistdio/u32-sprintf.c: New file.
6377         * lib/unistdio/u32-vasnprintf.c: New file.
6378         * lib/unistdio/u32-vasprintf.c: New file.
6379         * lib/unistdio/u32-vsnprintf.c: New file.
6380         * lib/unistdio/u32-vsprintf.c: New file.
6381         * lib/unistdio/u32-u32-asnprintf.c: New file.
6382         * lib/unistdio/u32-u32-asprintf.c: New file.
6383         * lib/unistdio/u32-u32-snprintf.c: New file.
6384         * lib/unistdio/u32-u32-sprintf.c: New file.
6385         * lib/unistdio/u32-u32-vasnprintf.c: New file.
6386         * lib/unistdio/u32-u32-vasprintf.c: New file.
6387         * lib/unistdio/u32-u32-vsnprintf.c: New file.
6388         * lib/unistdio/u32-u32-vsprintf.c: New file.
6389         * tests/unistdio/test-ulc-asnprintf1.c: New file.
6390         * tests/unistdio/test-ulc-asnprintf1.h: New file.
6391         * tests/unistdio/test-ulc-printf1.h: New file.
6392         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
6393         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
6394         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
6395         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
6396         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
6397         * tests/unistdio/test-ulc-vasprintf1.c: New file.
6398         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
6399         * tests/unistdio/test-ulc-vsprintf1.c: New file.
6400         * tests/unistdio/test-u8-asnprintf1.c: New file.
6401         * tests/unistdio/test-u8-asnprintf1.h: New file.
6402         * tests/unistdio/test-u8-printf1.h: New file.
6403         * tests/unistdio/test-u8-vasnprintf1.c: New file.
6404         * tests/unistdio/test-u8-vasnprintf2.c: New file.
6405         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
6406         * tests/unistdio/test-u8-vasnprintf3.c: New file.
6407         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
6408         * tests/unistdio/test-u8-vasprintf1.c: New file.
6409         * tests/unistdio/test-u8-vsnprintf1.c: New file.
6410         * tests/unistdio/test-u8-vsprintf1.c: New file.
6411         * tests/unistdio/test-u16-asnprintf1.c: New file.
6412         * tests/unistdio/test-u16-asnprintf1.h: New file.
6413         * tests/unistdio/test-u16-printf1.h: New file.
6414         * tests/unistdio/test-u16-vasnprintf1.c: New file.
6415         * tests/unistdio/test-u16-vasnprintf2.c: New file.
6416         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
6417         * tests/unistdio/test-u16-vasnprintf3.c: New file.
6418         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
6419         * tests/unistdio/test-u16-vasprintf1.c: New file.
6420         * tests/unistdio/test-u16-vsnprintf1.c: New file.
6421         * tests/unistdio/test-u16-vsprintf1.c: New file.
6422         * tests/unistdio/test-u32-asnprintf1.c: New file.
6423         * tests/unistdio/test-u32-asnprintf1.h: New file.
6424         * tests/unistdio/test-u32-printf1.h: New file.
6425         * tests/unistdio/test-u32-vasnprintf1.c: New file.
6426         * tests/unistdio/test-u32-vasnprintf2.c: New file.
6427         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
6428         * tests/unistdio/test-u32-vasnprintf3.c: New file.
6429         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
6430         * tests/unistdio/test-u32-vasprintf1.c: New file.
6431         * tests/unistdio/test-u32-vsnprintf1.c: New file.
6432         * tests/unistdio/test-u32-vsprintf1.c: New file.
6433         * modules/unistdio/base: New file.
6434         * modules/unistdio/u-printf-args: New file.
6435         * modules/unistdio/ulc-asnprintf: New file.
6436         * modules/unistdio/ulc-asprintf: New file.
6437         * modules/unistdio/ulc-fprintf: New file.
6438         * modules/unistdio/ulc-printf-parse: New file.
6439         * modules/unistdio/ulc-snprintf: New file.
6440         * modules/unistdio/ulc-sprintf: New file.
6441         * modules/unistdio/ulc-vasnprintf: New file.
6442         * modules/unistdio/ulc-vasprintf: New file.
6443         * modules/unistdio/ulc-vfprintf: New file.
6444         * modules/unistdio/ulc-vsnprintf: New file.
6445         * modules/unistdio/ulc-vsprintf: New file.
6446         * modules/unistdio/u8-asnprintf: New file.
6447         * modules/unistdio/u8-asprintf: New file.
6448         * modules/unistdio/u8-printf-parse: New file.
6449         * modules/unistdio/u8-snprintf: New file.
6450         * modules/unistdio/u8-sprintf: New file.
6451         * modules/unistdio/u8-vasnprintf: New file.
6452         * modules/unistdio/u8-vasprintf: New file.
6453         * modules/unistdio/u8-vsnprintf: New file.
6454         * modules/unistdio/u8-vsprintf: New file.
6455         * modules/unistdio/u8-u8-asnprintf: New file.
6456         * modules/unistdio/u8-u8-asprintf: New file.
6457         * modules/unistdio/u8-u8-snprintf: New file.
6458         * modules/unistdio/u8-u8-sprintf: New file.
6459         * modules/unistdio/u8-u8-vasnprintf: New file.
6460         * modules/unistdio/u8-u8-vasprintf: New file.
6461         * modules/unistdio/u8-u8-vsnprintf: New file.
6462         * modules/unistdio/u8-u8-vsprintf: New file.
6463         * modules/unistdio/u16-asnprintf: New file.
6464         * modules/unistdio/u16-asprintf: New file.
6465         * modules/unistdio/u16-printf-parse: New file.
6466         * modules/unistdio/u16-snprintf: New file.
6467         * modules/unistdio/u16-sprintf: New file.
6468         * modules/unistdio/u16-vasnprintf: New file.
6469         * modules/unistdio/u16-vasprintf: New file.
6470         * modules/unistdio/u16-vsnprintf: New file.
6471         * modules/unistdio/u16-vsprintf: New file.
6472         * modules/unistdio/u16-u16-asnprintf: New file.
6473         * modules/unistdio/u16-u16-asprintf: New file.
6474         * modules/unistdio/u16-u16-snprintf: New file.
6475         * modules/unistdio/u16-u16-sprintf: New file.
6476         * modules/unistdio/u16-u16-vasnprintf: New file.
6477         * modules/unistdio/u16-u16-vasprintf: New file.
6478         * modules/unistdio/u16-u16-vsnprintf: New file.
6479         * modules/unistdio/u16-u16-vsprintf: New file.
6480         * modules/unistdio/u32-asnprintf: New file.
6481         * modules/unistdio/u32-asprintf: New file.
6482         * modules/unistdio/u32-printf-parse: New file.
6483         * modules/unistdio/u32-snprintf: New file.
6484         * modules/unistdio/u32-sprintf: New file.
6485         * modules/unistdio/u32-vasnprintf: New file.
6486         * modules/unistdio/u32-vasprintf: New file.
6487         * modules/unistdio/u32-vsnprintf: New file.
6488         * modules/unistdio/u32-vsprintf: New file.
6489         * modules/unistdio/u32-u32-asnprintf: New file.
6490         * modules/unistdio/u32-u32-asprintf: New file.
6491         * modules/unistdio/u32-u32-snprintf: New file.
6492         * modules/unistdio/u32-u32-sprintf: New file.
6493         * modules/unistdio/u32-u32-vasnprintf: New file.
6494         * modules/unistdio/u32-u32-vasprintf: New file.
6495         * modules/unistdio/u32-u32-vsnprintf: New file.
6496         * modules/unistdio/u32-u32-vsprintf: New file.
6497         * modules/unistdio/ulc-asnprintf-tests: New file.
6498         * modules/unistdio/ulc-vasnprintf-tests: New file.
6499         * modules/unistdio/ulc-vasprintf-tests: New file.
6500         * modules/unistdio/ulc-vsnprintf-tests: New file.
6501         * modules/unistdio/ulc-vsprintf-tests: New file.
6502         * modules/unistdio/u8-asnprintf-tests: New file.
6503         * modules/unistdio/u8-vasnprintf-tests: New file.
6504         * modules/unistdio/u8-vasprintf-tests: New file.
6505         * modules/unistdio/u8-vsnprintf-tests: New file.
6506         * modules/unistdio/u8-vsprintf-tests: New file.
6507         * modules/unistdio/u16-asnprintf-tests: New file.
6508         * modules/unistdio/u16-vasnprintf-tests: New file.
6509         * modules/unistdio/u16-vasprintf-tests: New file.
6510         * modules/unistdio/u16-vsnprintf-tests: New file.
6511         * modules/unistdio/u16-vsprintf-tests: New file.
6512         * modules/unistdio/u32-asnprintf-tests: New file.
6513         * modules/unistdio/u32-vasnprintf-tests: New file.
6514         * modules/unistdio/u32-vasprintf-tests: New file.
6515         * modules/unistdio/u32-vsnprintf-tests: New file.
6516         * modules/unistdio/u32-vsprintf-tests: New file.
6517         * MODULES.html.sh (Unicode string functions): Add the new modules.
6518
6519 2007-07-01  Bruno Haible  <bruno@clisp.org>
6520
6521         * lib/sprintf.c (sprintf): Limit the available length estimation,
6522         to avoid address wraparound.
6523         * lib/vsprintf.c (vsprintf): Likewise.
6524         * modules/sprintf-posix (Dependencies): Add stdint.
6525         * modules/vsprintf-posix (Dependencies): Likewise.
6526
6527 2007-07-01  Bruno Haible  <bruno@clisp.org>
6528
6529         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
6530         Windows PATH as well. Conservative double-quoting. Comments.
6531
6532 2007-07-01  Bruno Haible  <bruno@clisp.org>
6533             Eric Blake  <ebb9@byu.net>
6534             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6535
6536         * gnulib-tool (self_abspathname): Fix algorithm to cope with
6537         empty components in $PATH, denoting '.'.
6538
6539 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6540
6541         * gnulib-tool: Fix indentation.
6542         (func_create_megatestdir): Likewise.
6543         Report by Bruno Haible.
6544
6545 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6546
6547         Sync from Automake.
6548         * build-aux/gnupload: Fix shell portability issues with for loops.
6549         Report by Karl Berry.
6550
6551 2007-06-29  Simon Josefsson  <simon@josefsson.org>
6552
6553         * build-aux/maint.mk (POURL): Use translationproject.org.
6554
6555 2007-06-27  Simon Josefsson  <simon@josefsson.org>
6556             Bruno Haible  <bruno@clisp.org>
6557
6558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
6559         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
6560         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
6561         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
6562         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
6563
6564 2007-06-27  Bruno Haible  <bruno@clisp.org>
6565
6566         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
6567         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
6568
6569 2007-06-26  Karl Berry  <karl@gnu.org>
6570
6571         * MODULES.html.sh: remove xreadlink-with-size.
6572
6573 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
6574
6575         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
6576         method that I hope also handles the double-include problem noted
6577         by Bruno Haible in
6578         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
6579
6580 2007-06-23  Bruno Haible  <bruno@clisp.org>
6581
6582         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6583         Don't let the 'mostlyclean' target fail if the last subdirectory could
6584         not be removed.
6585         Reported by Karl Berry.
6586
6587 2007-06-23  Bruno Haible  <bruno@clisp.org>
6588
6589         * gnulib-tool (echo): Add a speedier workaround for ksh.
6590         * tests/test-echo.sh: Likewise.
6591
6592 2007-06-23  Bruno Haible  <bruno@clisp.org>
6593
6594         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
6595         * tests/test-echo.sh: Likewise.
6596
6597 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6598
6599         * gnulib-tool (IFS): Initialize early, so we don't set it to
6600         empty later.
6601         (self_abspathname): Rewrite algorithm to set it, reindent.
6602         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
6603         (func_create_megatestdir): Merge some sed scripts.
6604
6605 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
6606
6607         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
6608         exposed by Sun Studio 11 cc on Solaris 8.
6609
6610 2007-06-22  Bruno Haible  <bruno@clisp.org>
6611
6612         * gnulib-tool (echo): Ensure the echo primitive does not interpret
6613         backslashes.
6614         * tests/test-echo.sh: New file.
6615
6616 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6617
6618         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
6619         simplify `sed_replace_build_aux' scripts, they are portable but
6620         echoing them with `echo' is not.
6621         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
6622
6623 2007-06-21  Karl Berry  <karl@gnu.org>
6624
6625         * config/srclist.txt: guess we can't handle the licenses via
6626         srclist at the moment.
6627
6628 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
6629
6630         * MODULES.html.sh: Add include_next.
6631         * modules/include_next: New file.
6632
6633 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6634
6635         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
6636         INCLUDE_NEXT.
6637         (gl_CHECK_NEXT_HEADERS): New macro.
6638         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
6639         the obsolescent gl_ABSOLUTE_HEADER.
6640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6641         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6642         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6643         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6644         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6645         * m4/math_h.m4 (gl_MATH_H): Likewise.
6646         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6647         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6648         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6649         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6650         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6651         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6652         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6653         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6654         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6656         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
6657         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
6658         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6659         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6660         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6661         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6662         * m4/inttypes.m4 (gl_INTTYPES_H): Define
6663         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
6664         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
6665         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
6666         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
6667         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
6668         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
6669         * lib/float_.h: Likewise.
6670         * lib/inttypes_.h: Likewise.
6671         * lib/math_.h: Likewise.
6672         * lib/search_.h: Likewise.
6673         * lib/signal_.h: Likewise.
6674         * lib/stdint_.h: Likewise.
6675         * lib/stdio_.h: Likewise.
6676         * lib/stdlib_.h: Likewise.
6677         * lib/string_.h: Likewise.
6678         * lib/sys_stat_.h: Likewise.
6679         * lib/sys_time_.h: Likewise.
6680         * lib/time_.h: Likewise.
6681         * lib/unistd_.h: Likewise.
6682         * lib/wchar_.h: Likewise.
6683         * lib/wctype_.h: Likewise.
6684         * lib/dirent_.h: Likewise.
6685         * lib/iconv_.h: Likewise.
6686         * lib/locale_.h: Likewise.
6687         * lib/netinet_in_.h: Likewise.
6688         * lib/sys_select_.h: Likewise.
6689         * lib/sys_socket_.h: Likewise.
6690         * lib/sysexits_.h: Likewise.
6691         * modules/fcntl (Depends-on): Depend on include_next, not
6692         absolute_header.
6693         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
6694         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
6695         * modules/fchdir: Likewise.
6696         * modules/float: Likewise.
6697         * modules/iconv_open: Likewise.
6698         * modules/inttypes: Likewise.
6699         * modules/locale: Likewise.
6700         * modules/math: Likewise.
6701         * modules/netinet_in: Likewise.
6702         * modules/search: Likewise.
6703         * modules/signal: Likewise.
6704         * modules/stdint: Likewise.
6705         * modules/stdio: Likewise.
6706         * modules/stdlib: Likewise.
6707         * modules/string: Likewise.
6708         * modules/sys_select: Likewise.
6709         * modules/sys_socket: Likewise.
6710         * modules/sys_stat: Likewise.
6711         * modules/sys_time: Likewise.
6712         * modules/sysexits: Likewise.
6713         * modules/time: Likewise.
6714         * modules/unistd: Likewise.
6715         * modules/wchar: Likewise.
6716         * modules/wctype: Likewise.
6717         * modules/sys_stat: Change maintainer to "all".
6718         * modules/unistd: Likewise.
6719
6720 2007-06-20  Karl Berry  <karl@gnu.org>
6721
6722         * config/srclist.txt: track www changes in license files.
6723
6724 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
6725
6726         * build-aux/bootstrap: Remove stray dot.
6727         Make sure build_aux settings are honored when linking
6728         gnulib_extra_files.
6729
6730 2007-06-19  Eric Blake  <ebb9@byu.net>
6731
6732         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
6733         Allow compilation on cygwin.
6734
6735 2007-06-19  Jim Meyering  <jim@meyering.net>
6736
6737         xreadlink-with-size: Remove module.  No longer used.
6738         Ex-callers now use xreadlink or mreadlink-with-size.
6739         * modules/xreadlink-with-size: Remove module.
6740         * lib/xreadlink-with-size.c: Remove file.
6741         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
6742         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
6743         just before the function definition *is* accurate.
6744
6745         Eliminate one way canonicalize_filename_mode could exit.
6746         * lib/canonicalize.c (canonicalize_filename_mode):
6747         Use mreadlink_with_size, not xreadlink_with_size.
6748
6749 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
6750
6751         Detect porting problems to FreeBSD/arm, which has time_t wider than
6752         long int.  Original problem reported for GNU diff by Xin Li in
6753         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
6754         * modules/getdate (Depends-on): Add intprops, verify.
6755         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
6756         is an integer type no wider than long int.
6757
6758 2007-06-18  Jim Meyering  <jim@meyering.net>
6759
6760         New module: mreadlink-with-size.
6761         * MODULES.html.sh: Add mreadlink-with-size.
6762         * modules/mreadlink-with-size: New module
6763         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
6764         not xreadlink-with-size.
6765         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
6766
6767 2007-06-16  Bruno Haible  <bruno@clisp.org>
6768
6769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
6770         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
6771         Reported by Gary V. Vaughan <gary@gnu.org>.
6772
6773 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6774
6775         Revamp lchown so that it lives in unistd.h where it belongs.
6776         * lib/lchown.h: Remove.
6777         * lib/dirchownmod.c: Don't include lib/lchown.h.
6778         * lib/fchownat.c: Likewise.
6779         * lib/openat.c: Likewise.
6780         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
6781         does not follow symlinks.
6782         (EOPNOTSUPP): Define if not defined.
6783         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
6784         is defined to 0.
6785         (lchown): New decl.
6786         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
6787         Do not check for lchown decl.
6788         Set REPLACE_LCHOWN.
6789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
6790         REPLACE_LCHOWN.
6791         * modules/chown: Make it clear it follows symlinks.
6792         * modules/lchown: Make it clear it doesn't follow symlinks.
6793         (Files): Remove lib/lchown.h
6794         (Depends-on): Add unistd.
6795         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
6796         (Include): Include <unistd.h>, not "lchown.h".
6797         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
6798         REPLACE_LCHOWN.
6799
6800 2007-06-15  Jim Meyering  <jim@meyering.net>
6801
6802         Change license (GPL to LGPL) of fsusage and dependents.
6803         * modules/fsusage (License): Change to LGPL.
6804         * modules/full-read (License): Likewise.
6805         * modules/full-write (License): Likewise.
6806         * modules/safe-read (License): Likewise.
6807         * modules/safe-write (License): Likewise.
6808
6809 2007-06-14  Ben Pfaff  <blp@gnu.org>
6810
6811         Missing part of allocsa -> malloca transition.
6812         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
6813         gl_MALLOCA.
6814
6815 2007-06-12  Bruno Haible  <bruno@clisp.org>
6816
6817         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
6818         to ia64, x86_64, i386.
6819         Reported by Eric Blake.
6820
6821 2007-06-12  Bruno Haible  <bruno@clisp.org>
6822
6823         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
6824         cross-compiling to x86_64.
6825
6826 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
6827
6828         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
6829         glitch reported by Ralf Wildenhues in
6830         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
6831
6832         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
6833         Vin Shelton.
6834
6835 2007-06-11  Bruno Haible  <bruno@clisp.org>
6836
6837         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
6838         replacement string.
6839         Reported by Eric Blake.
6840
6841 2007-06-10  Bruno Haible  <bruno@clisp.org>
6842
6843         Prepare vasnprintf code for use with Unicode strings.
6844         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
6845         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
6846         TYPE_U32_STRING.
6847         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
6848         a_u32_string variants.
6849         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
6850         * lib/printf-args.c: Don't include config.h and the specification
6851         header if PRINTF_FETCHARGS is already defined.
6852         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
6853         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
6854         TYPE_U16_STRING, TYPE_U32_STRING.
6855         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
6856         u16_directive, u16_directives, u32_directive, u32_directives): New
6857         types.
6858         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
6859         New declarations.
6860         * lib/printf-parse.c: Don't include config.h and the specification
6861         header if PRINTF_PARSE is already defined. Eliminate the set of
6862         parameters for WIDE_CHAR_VERSION; the user of this file must provide
6863         them now. Include c-ctype.h.
6864         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
6865         directive and CHAR_T_ONLY_ASCII.
6866         * lib/vasnprintf.c: Don't include config.h and the specification header
6867         if VASNPRINTF is already defined.
6868         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
6869         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
6870         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
6871         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
6872         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
6873         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
6874         code accordingly.
6875         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
6876         pad_ourselves also in this case, with the 'c' and 's' directives, and
6877         with a different notion of "width".
6878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
6879
6880 2007-06-10  Bruno Haible  <bruno@clisp.org>
6881
6882         * modules/unistr/u32-mbsnlen: New file.
6883         * lib/unistr/u32-mbsnlen.c: New file.
6884
6885         * modules/unistr/u16-mbsnlen: New file.
6886         * lib/unistr/u16-mbsnlen.c: New file.
6887
6888         * modules/unistr/u8-mbsnlen: New file.
6889         * lib/unistr/u8-mbsnlen.c: New file.
6890
6891         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
6892         declarations.
6893
6894 2007-06-10  Bruno Haible  <bruno@clisp.org>
6895
6896         * lib/string_.h (mbsnlen): New declaration.
6897         * lib/mbsnlen.c: New file.
6898         * m4/mbsnlen.m4: New file.
6899         * modules/mbsnlen: New file.
6900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
6901         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
6902         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
6903
6904 2007-06-10  Bruno Haible  <bruno@clisp.org>
6905
6906         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
6907
6908 2007-06-10  Bruno Haible  <bruno@clisp.org>
6909
6910         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
6911         * lib/mbuiter.h: Likewise.
6912
6913 2007-06-10  Bruno Haible  <bruno@clisp.org>
6914
6915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
6916         declaration.
6917
6918 2007-06-10  Karl Berry  <karl@gnu.org>
6919
6920         * config/srclist.txt: remove gettext entries, Bruno prefers
6921         to update individually.
6922
6923 2007-06-10  Bruno Haible  <bruno@clisp.org>
6924
6925         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
6926         'maxlen'. Ensure only length + width bytes are allocated, not
6927         length + 1 + width.
6928
6929 2007-06-09  Bruno Haible  <bruno@clisp.org>
6930
6931         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
6932         (CHAR_T): Remove macro.
6933         (VASNPRINTF): Update.
6934
6935 2007-06-09  Bruno Haible  <bruno@clisp.org>
6936
6937         * MODULES.html.sh (Unicode string functions): Add the new modules.
6938
6939         * modules/uniconv/u32-conv-to-enc: New file.
6940         * lib/uniconv/u32-conv-to-enc.c: New file.
6941         * modules/uniconv/u32-conv-to-enc-tests: New file.
6942         * tests/uniconv/test-u32-conv-to-enc.c: New file.
6943
6944         * modules/uniconv/u16-conv-to-enc: New file.
6945         * lib/uniconv/u16-conv-to-enc.c: New file.
6946         * lib/uniconv/u-conv-to-enc.h: New file.
6947         * modules/uniconv/u16-conv-to-enc-tests: New file.
6948         * tests/uniconv/test-u16-conv-to-enc.c: New file.
6949
6950         * modules/uniconv/u8-conv-to-enc: New file.
6951         * lib/uniconv/u8-conv-to-enc.c: New file.
6952         * modules/uniconv/u8-conv-to-enc-tests: New file.
6953         * tests/uniconv/test-u8-conv-to-enc.c: New file.
6954
6955         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
6956         u32_conv_to_encoding): New declarations.
6957
6958 2007-06-09  Bruno Haible  <bruno@clisp.org>
6959
6960         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
6961
6962 2007-06-09  Bruno Haible  <bruno@clisp.org>
6963
6964         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
6965         * modules/malloca: Renamed from modules/allocsa, updated.
6966         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
6967         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
6968         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
6969         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
6970         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
6971         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
6972         * modules/xmalloca: Renamed from modules/xallocsa, updated.
6973         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
6974         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
6975         * modules/c-strcasestr (Depends-on): Update.
6976         * lib/c-strcasestr.c: Update.
6977         * modules/c-strstr (Depends-on): Update.
6978         * lib/c-strstr.c: Update.
6979         * modules/canonicalize-lgpl (Depends-on): Update.
6980         * lib/canonicalize-lgpl.c: Update.
6981         * modules/clean-temp (Depends-on): Update.
6982         * lib/clean-temp.c: Update.
6983         * modules/csharpcomp (Depends-on): Update.
6984         * lib/csharpcomp.c: Update.
6985         * modules/csharpexec (Depends-on): Update.
6986         * lib/csharpexec.c: Update.
6987         * modules/javacomp (Depends-on): Update.
6988         * lib/javacomp.c: Update.
6989         * modules/javaexec (Depends-on): Update.
6990         * lib/javaexec.c: Update.
6991         * modules/mbscasestr (Depends-on): Update.
6992         * lib/mbscasestr.c: Update.
6993         * modules/mbsstr (Depends-on): Update.
6994         * lib/mbsstr.c: Update.
6995         * modules/setenv (Depends-on): Update.
6996         * lib/setenv.c: Update.
6997         * modules/strcasestr (Depends-on): Update.
6998         * lib/strcasestr.c: Update.
6999         * modules/striconveha (Depends-on): Update.
7000         * lib/striconveha.c: Update.
7001         * modules/relocatable-prog-wrapper (Files): Update.
7002         * lib/relocwrapper.c: Update.
7003         * build-aux/install-reloc: Update.
7004         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
7005
7006 2007-06-08  Bruno Haible  <bruno@clisp.org>
7007
7008         Port to uClibc.
7009         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
7010         * lib/fpurge.c (fpurge): Likewise.
7011         * lib/freading.c (freading): Likewise.
7012         * lib/fseeko.c (rpl_fseeko): Likewise.
7013         * lib/fseterr.c (fseterr): Likewise.
7014         * lib/fwriting.c (fwriting): Likewise.
7015         * tests/test-fflush.c (main): Avoid a failure on uClibc.
7016
7017 2007-06-08  Bruno Haible  <bruno@clisp.org>
7018
7019         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
7020         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
7021         * modules/gettext (Files): Add m4/intlmacosx.m4.
7022
7023 2007-06-07  Bruno Haible  <bruno@clisp.org>
7024
7025         * modules/localename-tests: New file.
7026         * tests/test-localename.c: New file.
7027
7028         New module 'localename'.
7029         * lib/localename.h: New file.
7030         * lib/localename.c: New file, from GNU gettext.
7031         * m4/localename.m4: New file.
7032         * modules/localename: New file.
7033
7034 2007-06-07  Bruno Haible  <bruno@clisp.org>
7035
7036         Work around the lack of <wchar.h> on some builds of uClibc.
7037         * doc/headers/wchar.texi: Update.
7038         * lib/wchar_.h: Include <wchar.h> only if it exists.
7039         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
7040         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
7041         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
7042         doesn't exist.
7043         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
7044         * modules/mbfile (Depends-on): Add wchar.
7045         * modules/mbiter (Depends-on): Likewise.
7046         * modules/mbuiter (Depends-on): Likewise.
7047         Reported by Simon Josefsson.
7048
7049 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
7050
7051         Work around problem reported by Steven M. Schweda in
7052         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
7053         Tru64 5.1B with the Compaq compiler environment installed declares
7054         an 'isblank' function but does not define it in the C library.
7055         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
7056         * lib/regex_internal.h (isblank): Likewise.
7057         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
7058         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7059
7060 2007-06-05  Bruno Haible  <bruno@clisp.org>
7061
7062         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
7063         ia64.
7064         * modules/printf-safe: New file.
7065         * modules/fprintf-posix (Depends-on): Add printf-safe.
7066         * modules/printf-posix (Depends-on): Likewise.
7067         * modules/snprintf-posix (Depends-on): Likewise.
7068         * modules/sprintf-posix (Depends-on): Likewise.
7069         * modules/vasnprintf-posix (Depends-on): Likewise.
7070         * modules/vasprintf-posix (Depends-on): Likewise.
7071         * modules/vfprintf-posix (Depends-on): Likewise.
7072         * modules/vprintf-posix (Depends-on): Likewise.
7073         * modules/vsnprintf-posix (Depends-on): Likewise.
7074         * modules/vsprintf-posix (Depends-on): Likewise.
7075         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7076         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
7077         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
7078         "no" on i386, x86_64, ia64.
7079         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
7080         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7081         on i386, x86_64, ia64.
7082         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
7083         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7084         on i386, x86_64, ia64.
7085         * tests/test-vasnprintf-posix.c: Include float.h.
7086         (LDBL80_WORDS): New macro.
7087         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7088         on i386, x86_64, ia64.
7089         * tests/test-vasprintf-posix.c: Include float.h.
7090         (LDBL80_WORDS): New macro.
7091         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7092         on i386, x86_64, ia64.
7093         * tests/test-snprintf-posix.c: Include float.h.
7094         * tests/test-sprintf-posix.c: Likewise.
7095         * tests/test-vsnprintf-posix.c: Likewise.
7096         * tests/test-vsprintf-posix.c: Likewise.
7097
7098 2007-06-05  Bruno Haible  <bruno@clisp.org>
7099
7100         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
7101         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
7102         non-IEEE numbers on i386, x86_64, ia64.
7103         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
7104         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
7105         * tests/test-isnanl.h: Include float.h.
7106         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
7107
7108 2007-06-05  Bruno Haible  <bruno@clisp.org>
7109
7110         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
7111         also the %a / %A. Handle the %a / %A code before this extra handling.
7112
7113 2007-06-05  Bruno Haible  <bruno@clisp.org>
7114
7115         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
7116         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
7117
7118 2007-06-05  Bruno Haible  <bruno@clisp.org>
7119
7120         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
7121         typo in variable name.
7122
7123 2007-06-05  Eric Blake  <ebb9@byu.net>
7124
7125         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
7126         Reported by Simon Josefsson.
7127
7128 2007-06-04  Bruno Haible  <bruno@clisp.org>
7129
7130         Avoid test failures on some PowerPC platforms.
7131         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
7132         Define differently for PowerPC.
7133         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
7134         Reported by Gary V. Vaughan <gary@gnu.org>.
7135
7136 2007-06-02  Bruno Haible  <bruno@clisp.org>
7137
7138         Fix test-stdint failure on FreeBSD/ia64.
7139         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
7140         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
7141         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
7142         * doc/headers/stdint.texi: Update.
7143
7144 2007-06-01  Bruno Haible  <bruno@clisp.org>
7145
7146         * tests/test-binary-io.c (main): Pass a third argument to open().
7147         Reported by Gary V. Vaughan <gary@gnu.org>.
7148
7149 2007-06-01  Bruno Haible  <bruno@clisp.org>
7150
7151         * doc/functions/frexpl.texi: Update for mingw.
7152
7153 2007-06-01  Bruno Haible  <bruno@clisp.org>
7154
7155         * tests/test-lseek.c (main): Disable test of errno for invalid third
7156         argument.
7157         * doc/functions/lseek.texi: Update.
7158         Reported by Gary V. Vaughan <gary@gnu.org>.
7159
7160 2007-05-28  Bruno Haible  <bruno@clisp.org>
7161
7162         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
7163
7164 2007-05-31  Eric Blake  <ebb9@byu.net>
7165
7166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
7167         cross compiling.
7168
7169 2007-05-30  Eric Blake  <ebb9@byu.net>
7170         and Bruno Haible  <bruno@clisp.org>
7171
7172         Work around mingw test failures exposed by m4-1.4.9b.
7173         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
7174         * tests/test-unistd.c: Disable uid_t and git_t tests for the
7175         moment.
7176
7177 2007-05-30  Bruno Haible  <bruno@clisp.org>
7178
7179         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
7180         assuming that they are closed. Needed on HP-UX 11.
7181
7182 2007-05-29  Bruno Haible  <bruno@clisp.org>
7183
7184         Fix a problem with #include_next.
7185         * lib/dirent_.h: Split the double-inclusion guard.
7186         * lib/fcntl_.h: Likewise.
7187         * lib/float_.h: Likewise.
7188         * lib/iconv_.h: Likewise.
7189         * lib/inttypes_.h: Likewise.
7190         * lib/locale_.h: Likewise.
7191         * lib/math_.h: Likewise.
7192         * lib/netinet_in_.h: Likewise.
7193         * lib/search_.h: Likewise.
7194         * lib/signal_.h: Likewise.
7195         * lib/stdint_.h: Likewise.
7196         * lib/stdio_.h: Likewise.
7197         * lib/stdlib_.h: Likewise.
7198         * lib/string_.h: Likewise.
7199         * lib/sys_select_.h: Likewise.
7200         * lib/sys_socket_.h: Likewise.
7201         * lib/sys_stat_.h: Likewise.
7202         * lib/sys_time_.h: Likewise.
7203         * lib/sysexits_.h: Likewise.
7204         * lib/time_.h: Likewise.
7205         * lib/unistd_.h: Likewise.
7206         * lib/wchar_.h: Likewise.
7207         * lib/wctype_.h: Likewise.
7208
7209 2007-05-29  Bruno Haible  <bruno@clisp.org>
7210
7211         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
7212         for the moment.
7213
7214 2007-05-29  Bruno Haible  <bruno@clisp.org>
7215
7216         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
7217         invocation.
7218         Reported by Eric Blake.
7219
7220 2007-05-29  Bruno Haible  <bruno@clisp.org>
7221
7222         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
7223         compiling case.
7224
7225 2007-05-29  Eric Blake  <ebb9@byu.net>
7226             Bruno Haible  <bruno@clisp.org>
7227
7228         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
7229         cross compiles.
7230
7231 2007-05-28  Eric Blake  <ebb9@byu.net>
7232
7233         * modules/closein-tests (test_closein_LDADD): Support test on
7234         cygwin with libtool.
7235
7236 2007-05-28  Bruno Haible  <bruno@clisp.org>
7237
7238         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
7239         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7240         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7241         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7242         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7243         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7244         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7245         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7246         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7247
7248 2007-05-28  Eric Blake  <ebb9@byu.net>
7249
7250         Unconditionally include <config.h> in unit tests.
7251         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
7252         * tests/test-allocsa.c, tests/test-arcfour.c,
7253         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
7254         tests/test-array_list.c, tests/test-array_oset.c,
7255         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
7256         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
7257         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
7258         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
7259         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
7260         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
7261         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
7262         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
7263         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
7264         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
7265         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
7266         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
7267         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
7268         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
7269         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
7270         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
7271         test-md5.c, test-memmem.c, test-printf-posix.c,
7272         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
7273         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
7274         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
7275         test-strcasestr.c, test-striconv.c, test-striconveh.c,
7276         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
7277         test-vasnprintf-posix2.c, test-vasnprintf.c,
7278         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
7279         test-vfprintf-posix.c, test-vprintf-posix.c,
7280         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
7281         test-xvasprintf.c: Likewise.
7282
7283 2007-05-28  Bruno Haible  <bruno@clisp.org>
7284
7285         * gnulib-tool (func_import): Remember the --with-tests command-line
7286         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
7287         Reported by Eric Blake.
7288
7289 2007-05-28  Bruno Haible  <bruno@clisp.org>
7290
7291         * modules/ftell-tests: New file.
7292         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
7293         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
7294
7295         * lib/ftell.c: New file.
7296         * modules/ftell: New file.
7297         * m4/ftell.m4: New file.
7298         * doc/functions/ftell.texi: Update.
7299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
7300         REPLACE_FTELL.
7301         * lib/stdio_.h (rpl_ftell): New declaration.
7302         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
7303         REPLACE_FTELL.
7304
7305 2007-05-28  Eric Blake  <ebb9@byu.net>
7306
7307         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
7308
7309 2007-05-28  Bruno Haible  <bruno@clisp.org>
7310
7311         * modules/fseek-tests: New file.
7312         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
7313         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
7314
7315         * lib/fseek.c: New file.
7316         * modules/fseek: New file.
7317         * m4/fseek.m4: New file.
7318         * doc/functions/fseek.texi: Update.
7319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
7320         REPLACE_FSEEK.
7321         * lib/stdio_.h (rpl_fseek): New declaration.
7322         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
7323         REPLACE_FSEEK.
7324
7325 2007-05-28  Bruno Haible  <bruno@clisp.org>
7326
7327         * lib/stdio_.h (fflush): More comments.
7328
7329 2007-05-28  Bruno Haible  <bruno@clisp.org>
7330
7331         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
7332         runtime test.
7333
7334 2007-05-28  Eric Blake  <ebb9@byu.net>
7335
7336         Improve lseek module.
7337         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
7338         * lib/unistd_.h (lseek): Scale back link warning message.
7339         * tests/test-lseek.c: Beef up test.
7340         * tests/test-lseek.sh: Exercise more facets of lseek.
7341         Reported by Bruno Haible.
7342
7343 2007-05-28  Bruno Haible  <bruno@clisp.org>
7344
7345         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
7346         to define.
7347
7348 2007-05-27  Bruno Haible  <bruno@clisp.org>
7349
7350         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
7351
7352 2007-05-27  Bruno Haible  <bruno@clisp.org>
7353
7354         * modules/openmp: New file.
7355         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
7356         Noah Misch.
7357
7358 2007-05-26  Bruno Haible  <bruno@clisp.org>
7359
7360         * modules/chdir-long (Depends-on): Add fchdir.
7361         * modules/chdir-safer (Depends-on): Likewise.
7362         * modules/fts (Depends-on): Likewise.
7363         * modules/fts-lgpl (Depends-on): Likewise.
7364         * modules/openat (Depends-on): Likewise.
7365         * modules/savewd (Depends-on): Likewise.
7366
7367 2007-05-24  Eric Blake  <ebb9@byu.net>
7368
7369         Fix lseek on mingw.
7370         * modules/lseek: New module.
7371         * m4/lseek.m4: New file.
7372         * lib/lseek.c: New file.
7373         * modules/lseek-tests: New file.
7374         * tests/test-lseek.c: New file.
7375         * tests/test-lseek.sh: New file.
7376         * MODULES.html.sh: Document lseek module.
7377         * modules/fflush (Depends-on): Add lseek, fseeko.
7378         * modules/fseeko (Depends-on): Likewise.
7379         * modules/ftello (Depends-on): Likewise.
7380         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
7381         broken.
7382         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
7383         broken.
7384         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
7385         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
7386         * lib/ftello.c (rpl_ftello): Likewise.
7387         * tests/test-fseeko.c (main): Test this.
7388         * tests/test-fseeko.sh: Likewise.
7389         * tests/test-ftello.c (main): Likewise.
7390         * tests/test-ftello.sh: Likewise.
7391         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
7392         implies replacing fseek.
7393         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
7394         HAVE_FTELLO.
7395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
7396         * modules/unistd (Makefile.am): Likewise.
7397         * lib/unistd_.h (lseek): Declare a replacement.
7398         * doc/functions/lseek.texi (lseek): Document this fix.
7399         * doc/functions/fseek.texi (fseek): Likewise.
7400         * doc/functions/ftell.texi (ftell): Likewise.
7401
7402 2007-05-24  Bruno Haible  <bruno@clisp.org>
7403
7404         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
7405         in the printed representation of a NaN.
7406         * tests/test-vasprintf-posix.c (test_function): Likewise.
7407         * tests/test-snprintf-posix.h (test_function): Likewise.
7408         * tests/test-sprintf-posix.h (test_function): Likewise.
7409         Reported by Eric Blake.
7410
7411 2007-05-23  Eric Blake  <ebb9@byu.net>
7412
7413         Fix fseeko/ftello on cygwin 1.5.24.
7414         * doc/functions/fseeko.texi (fseeko): Document the fix.
7415         * doc/functions/ftello.texi (ftello): Document the fix.
7416         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
7417         * doc/functions/stdout.text (stdout): New file.
7418         * doc/functions/stderr.text (stderr): New file.
7419         * doc/gnulib.texi (Function Substitutes): Use new files.
7420         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
7421         prior to 1.7.0.
7422         * tests/test-ftello.c (main): Likewise for ftello.
7423         * tests/test-fseeko.sh: New file.
7424         * tests/test-ftello.sh: New file.
7425         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
7426         with seekable stdin.
7427         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
7428         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
7429         (gl_REPLACE_FSEEKO): New macro.
7430         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
7431         * modules/fseeko (Files): Distribute fseeko.c.
7432         * modules/ftello (Files): Distribute ftello.c.
7433         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
7434         mode.
7435         * lib/ftello.c (rpl_ftello): New file.
7436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
7437         fseeko, ftello.
7438         (gl_STDIN_LARGE_OFFSET): New macro.
7439         * modules/stdio (Makefile.am): Perform the replacement.
7440         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
7441
7442 2007-05-23  Bruno Haible  <bruno@clisp.org>
7443
7444         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
7445         GNULIB_POSIXCHECK is defined.
7446
7447 2007-05-21  Bruno Haible  <bruno@clisp.org>
7448
7449         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
7450         Check also the output for NaN arguments. When cross-compiling, guess
7451         no on IRIX.
7452         * lib/vasnprintf.c: Update comments.
7453         * tests/test-vasnprintf-posix.c (strisnan): New function.
7454         (test_function): Use it.
7455         * tests/test-vasprintf-posix.c (strisnan): New function.
7456         (test_function): Use it.
7457         * tests/test-snprintf-posix.h (strisnan): New function.
7458         (test_function): Use it.
7459         * tests/test-sprintf-posix.h (strisnan): New function.
7460         (test_function): Use it.
7461         Reported by Eric Blake.
7462
7463 2007-05-20  Bruno Haible  <bruno@clisp.org>
7464
7465         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
7466         numbers that fails on BeOS.
7467         * doc/functions/frexpl.texi: Update.
7468
7469 2007-05-20  Jim Meyering  <jim@meyering.net>
7470
7471         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
7472         forced upon us by glibc-2.6.
7473
7474 2007-05-20  Bruno Haible  <bruno@clisp.org>
7475
7476         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
7477         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
7478         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
7479         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
7480         NEED_PRINTF_INFINITE.
7481         (is_infinitel): New function.
7482         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
7483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
7484         gl_PREREQ_VASNPRINTF_INFINITE.
7485         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
7486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7487         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
7488         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
7489         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
7490         gl_PREREQ_VASNPRINTF_INFINITE.
7491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7492         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7494         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7495         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7498         * doc/functions/fprintf.texi: Update.
7499         * doc/functions/printf.texi: Update.
7500         * doc/functions/snprintf.texi: Update.
7501         * doc/functions/sprintf.texi: Update.
7502         * doc/functions/vfprintf.texi: Update.
7503         * doc/functions/vprintf.texi: Update.
7504         * doc/functions/vsnprintf.texi: Update.
7505         * doc/functions/vsprintf.texi: Update.
7506
7507 2007-05-20  Bruno Haible  <bruno@clisp.org>
7508
7509         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
7510         was not found in libc.
7511         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7512
7513 2007-05-20  Bruno Haible  <bruno@clisp.org>
7514
7515         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
7516         printed as "-nan" instead of "nan".
7517         * tests/test-vasprintf-posix.c (test_function): Likewise.
7518         * tests/test-snprintf-posix.h (test_function): Likewise.
7519         * tests/test-sprintf-posix.h (test_function): Likewise.
7520         Needed for HP-UX 11.
7521
7522 2007-05-20  Jim Meyering  <jim@meyering.net>
7523
7524         Fix buggy test for the fchownat-deref bug.
7525         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
7526         symlink required for the run-test.  Without it, this test would
7527         always declare that fchownat doesn't work, and client code would
7528         unnecessarily use the replacement function with fixed libc.
7529         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
7530         Reported by Greg Schafer.
7531
7532 2007-05-19  Bruno Haible  <bruno@clisp.org>
7533
7534         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
7535         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
7536         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
7537         Needed for IRIX 6.5 and Solaris 2.5.1.
7538
7539 2007-05-19  Bruno Haible  <bruno@clisp.org>
7540
7541         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
7542         (test_function): Skip tests involving -0.0 on platforms where
7543         -0.0 = 0.0.
7544         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
7545         (test_function): Skip tests involving -0.0 on platforms where
7546         -0.0 = 0.0.
7547         * tests/test-snprintf-posix.h (have_minus_zero): New function.
7548         (test_function): Skip tests involving -0.0 on platforms where
7549         -0.0 = 0.0.
7550         * tests/test-sprintf-posix.h (have_minus_zero): New function.
7551         (test_function): Skip tests involving -0.0 on platforms where
7552         -0.0 = 0.0.
7553         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
7554         tests.
7555         * tests/test-printf-posix.h (test_function): Likewise.
7556         * tests/test-printf-posix.output: Remove all -0.0 related results.
7557         Needed for IRIX 6.5.
7558
7559 2007-05-19  Bruno Haible  <bruno@clisp.org>
7560
7561         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
7562         printed as "nan0x7fffffff" instead of "nan".
7563         * tests/test-vasprintf-posix.c (test_function): Likewise.
7564         * tests/test-snprintf-posix.h (test_function): Likewise.
7565         * tests/test-sprintf-posix.h (test_function): Likewise.
7566         * tests/test-fprintf-posix.h (NaN): Remove macro.
7567         (test_function): Remove all NaN related tests.
7568         * tests/test-printf-posix.h (NaN): Remove macro.
7569         (test_function): Remove all NaN related tests.
7570         * tests/test-printf-posix.output: Remove all NaN related results.
7571         Needed for IRIX 6.5.
7572
7573 2007-05-19  Bruno Haible  <bruno@clisp.org>
7574
7575         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
7576         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7577
7578 2007-05-19  Bruno Haible  <bruno@clisp.org>
7579
7580         * lib/float_.h: New file.
7581         * m4/float_h.m4: New file.
7582         * modules/float: New file.
7583         * modules/isnanl (Dependencies): Add float.
7584         * modules/isnanl-nolibm (Dependencies): Likewise.
7585         * modules/mathl (Dependencies): Likewise.
7586         * modules/printf-frexpl (Dependencies): Likewise.
7587         * modules/signbit (Dependencies): Likewise.
7588         * modules/vasnprintf (Dependencies): Likewise.
7589         * doc/headers/float.texi: Update.
7590
7591 2007-05-19  Jim Meyering  <jim@meyering.net>
7592
7593         * lib/utimens.c (gl_futimens): Rename from futimens,
7594         now that glibc-2.6 declares futimens.
7595         * lib/utimens.h: Likewise.
7596
7597 2007-05-19  Bruno Haible  <bruno@clisp.org>
7598
7599         Avoid test failures on mingw.
7600         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
7601         * tests/test-printf-posix.sh: Likewise.
7602         * tests/test-vfprintf-posix.sh: Likewise.
7603         * tests/test-vprintf-posix.sh: Likewise.
7604
7605 2007-05-19  Bruno Haible  <bruno@clisp.org>
7606
7607         Fix *printf result for NaN, Inf, -0.0 on mingw.
7608         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
7609         * lib/vasnprintf.c: Include math.h and isnan.h.
7610         (is_infinite_or_zero): New function.
7611         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
7612         values in the %f, %F, %e, %E, %g, %G directives.
7613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
7614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7615         gl_PRINTF_INFINITE and test its result. Invoke
7616         gl_PREREQ_VASNPRINTF_INFINITE.
7617         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7618         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7619         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7620         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7621         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7623         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7624         * doc/functions/fprintf.texi: Update.
7625         * doc/functions/printf.texi: Update.
7626         * doc/functions/snprintf.texi: Update.
7627         * doc/functions/sprintf.texi: Update.
7628         * doc/functions/vfprintf.texi: Update.
7629         * doc/functions/vprintf.texi: Update.
7630         * doc/functions/vsnprintf.texi: Update.
7631         * doc/functions/vsprintf.texi: Update.
7632
7633 2007-05-19  Bruno Haible  <bruno@clisp.org>
7634
7635         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
7636         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
7637         Instead of multiplying with 10^k, set extra_zeroes to k.
7638         (scale10_round_long_double): Remove function.
7639
7640 2007-05-18  Bruno Haible  <bruno@clisp.org>
7641
7642         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
7643         introduced on 2007-05-06.
7644
7645 2007-05-18  Bruno Haible  <bruno@clisp.org>
7646
7647         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
7648         %g directives.
7649         * tests/test-vasprintf-posix.c (test_function): Likewise.
7650         * tests/test-snprintf-posix.h (test_function): Likewise.
7651         * tests/test-sprintf-posix.h (test_function): Likewise.
7652
7653 2007-05-18  Bruno Haible  <bruno@clisp.org>
7654
7655         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
7656         (strmatch): New function.
7657         (test_function): Test the %f directive on numbers of various exponents.
7658         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
7659         (strmatch): New function.
7660         (test_function): Test the %f directive on numbers of various exponents.
7661         * tests/test-snprintf-posix.h (strmatch): New function.
7662         (test_function): Test the %f directive on numbers of various exponents.
7663         * tests/test-sprintf-posix.h (strmatch): New function.
7664         (test_function): Test the %f directive on numbers of various exponents.
7665         * tests/test-snprintf-posix.c (SIZEOF): New macro.
7666         * tests/test-sprintf-posix.c (SIZEOF): New macro.
7667         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
7668         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
7669
7670 2007-05-18  Bruno Haible  <bruno@clisp.org>
7671
7672         Add support for 'long double' number output.
7673         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
7674         * lib/vasnprintf.c: Include math.h and float+.h.
7675         (mp_limb_t): New type.
7676         (GMP_LIMB_BITS): New macro.
7677         (mp_twolimb_t): New type.
7678         (GMP_TWOLIMB_BITS): New macro.
7679         (mpn_t): New type.
7680         (multiply, divide, convert_to_decimal, decode_long_double,
7681         scale10_round_long_double, scale10_round_decimal_long_double,
7682         floorlog10l): New functions.
7683         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
7684         for the %f, %F, %e, %E, %g, %G directives.
7685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
7686         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7687         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
7688         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
7689         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7690         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7691         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7692         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7693         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7695         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7696         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
7697         * modules/snprintf-posix (Depends-on): Likewise.
7698         * modules/sprintf-posix (Depends-on): Likewise.
7699         * modules/vasnprintf-posix (Depends-on): Likewise.
7700         * modules/vasprintf-posix (Depends-on): Likewise.
7701         * modules/vfprintf-posix (Depends-on): Likewise.
7702         * modules/vsnprintf-posix (Depends-on): Likewise.
7703         * modules/vsprintf-posix (Depends-on): Likewise.
7704         * modules/vasnprintf (Files): Add lib/float+.h.
7705         * doc/functions/fprintf.texi: Update.
7706         * doc/functions/printf.texi: Update.
7707         * doc/functions/snprintf.texi: Update.
7708         * doc/functions/sprintf.texi: Update.
7709         * doc/functions/vfprintf.texi: Update.
7710         * doc/functions/vprintf.texi: Update.
7711         * doc/functions/vsnprintf.texi: Update.
7712         * doc/functions/vsprintf.texi: Update.
7713
7714 2007-05-18  Bruno Haible  <bruno@clisp.org>
7715
7716         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
7717
7718 2007-05-18  Bruno Haible  <bruno@clisp.org>
7719
7720         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
7721         for printing 64-bit integers. Needed for mingw.
7722
7723 2007-05-18  Bruno Haible  <bruno@clisp.org>
7724
7725         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
7726         gl_FUNC_FREXPL_WORKS.
7727         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
7728
7729 2007-05-18  Bruno Haible  <bruno@clisp.org>
7730
7731         * modules/frexpl-nolibm-tests: New file.
7732
7733         * modules/frexpl-nolibm: New file.
7734         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
7735
7736 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7737
7738         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
7739         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
7740         GCC 4.2, which otherwise issues a lot of warnings.
7741         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
7742         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
7743         Likewise.
7744         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
7745         * modules/iconv_open (iconv.h): Likewise.
7746         * modules/locale (locale.h): Likewise.
7747         * modules/netinet_in (netinet/in.h): Likewise.
7748         * modules/sys_select (sys_select.h): Likewise.
7749         * modules/sys_socket (sys/socket.h): Likewise.
7750         * modules/sys_stat (sys/stat.h): Likewise.
7751         * modules/sysexits (sysexits.h): Likewise.
7752         * modules/unistd (unistd.h): Likewise.
7753
7754 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7755
7756         * modules/closein-tests (Makefile.am): Distribute
7757         `test-closein.sh'.
7758
7759 2007-05-17  Bruno Haible  <bruno@clisp.org>
7760
7761         * tests/test-printf-posix.output: Renamed from
7762         tests/test-fprintf-posix.out.
7763         * modules/fprintf-posix-tests: Update.
7764         * modules/printf-posix-tests: Update.
7765         * modules/vfprintf-posix-tests: Update.
7766         * modules/vprintf-posix-tests: Update.
7767         * tests/test-fprintf-posix.sh: Update.
7768         * tests/test-printf-posix.sh: Update.
7769         * tests/test-vfprintf-posix.sh: Update.
7770         * tests/test-vprintf-posix.sh: Update.
7771         Reported by Ralf Wildenhues.
7772
7773 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7774
7775         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
7776         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
7777         GCC 4.2, which otherwise issues a lot of warnings.
7778         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
7779         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
7780         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
7781         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
7782         it should no longer be needed.
7783         * lib/string_.h: Likewise.
7784         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
7785         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
7786         * modules/inttypes (inttypes.h): Likewise.
7787         * modules/math (math.h): Likewise.
7788         * modules/search (search.h): Likewise.
7789         * modules/signal (signal.h): Likewise.
7790         * modules/stdint (stdint.h): Likewise.
7791         * modules/stdio (stdio.h): Likewise.
7792         * modules/stdlib (stdlib.h): Likewise.
7793         * modules/string (string.h): Likewise.
7794         * modules/sys_time (sys/time.h): Likewise.
7795         * modules/time (time.h): Likewise.
7796         * modules/wchar (wchar.h): Likewise.
7797         * modules/wctype (wtype.h): Likewise.
7798
7799 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7800
7801         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
7802
7803 2007-05-13  Bruno Haible  <bruno@clisp.org>
7804
7805         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
7806         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7807         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
7808         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7809         (gl_PREREQ_STRTOK_R): Don't require it here.
7810
7811 2007-05-13  Bruno Haible  <bruno@clisp.org>
7812
7813         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
7814         when used in C++ mode.
7815
7816 2007-05-12  Bruno Haible  <bruno@clisp.org>
7817
7818         * lib/linebuffer.h: Tweak doc.
7819         * lib/linebuffer.c: Likewise.
7820
7821 2007-05-12  James Youngman  <jay@gnu.org>
7822
7823         * lib/linebuffer.c (readlinebuffer_delim): New function,
7824         like readlinebuffer, but use a caller-specified delimiter.
7825         (readlinebuffer): Just call readlinebuffer_delim with '\n'
7826         as the delimiter.
7827         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
7828
7829 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
7830
7831         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
7832         * modules/openat (Files): Remove openat-die.c.
7833         (Depends-on): Add openat-die.
7834         * modules/openat-die: New module.
7835
7836 2007-05-06  Bruno Haible  <bruno@clisp.org>
7837
7838         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
7839         Update with info about Cygwin.
7840         * doc/functions/fprintf.texi: Update.
7841         * doc/functions/printf.texi: Update.
7842         * doc/functions/snprintf.texi: Update.
7843         * doc/functions/sprintf.texi: Update.
7844         * doc/functions/vfprintf.texi: Update.
7845         * doc/functions/vprintf.texi: Update.
7846         * doc/functions/vsnprintf.texi: Update.
7847         * doc/functions/vsprintf.texi: Update.
7848         Reported by Eric Blake.
7849
7850 2007-05-06  Bruno Haible  <bruno@clisp.org>
7851
7852         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
7853         padding ourselves for the floating-point directives.
7854         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
7855         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
7856         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7857         gl_PRINTF_FLAG_ZERO and test its result. Invoke
7858         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
7859         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7860         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
7861         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7862         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7863         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7864         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7865         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7866         * tests/test-snprintf-posix.h (test_function): Also check the width
7867         and some flags in the %f directive.
7868         * tests/test-sprintf-posix.h (test_function): Likewise.
7869         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7870         * tests/test-vasprintf-posix.c (test_function): Likewise.
7871         * doc/functions/fprintf.texi: Update.
7872         * doc/functions/printf.texi: Update.
7873         * doc/functions/snprintf.texi: Update.
7874         * doc/functions/sprintf.texi: Update.
7875         * doc/functions/vfprintf.texi: Update.
7876         * doc/functions/vprintf.texi: Update.
7877         * doc/functions/vsnprintf.texi: Update.
7878         * doc/functions/vsprintf.texi: Update.
7879
7880 2007-05-06  Bruno Haible  <bruno@clisp.org>
7881
7882         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
7883         pass the ' flag character to sprintf or snprintf.
7884         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
7885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
7886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7887         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
7888         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
7889         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7890         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
7891         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7892         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7893         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7895         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7896         * tests/test-snprintf-posix.h (test_function): Also check the grouping
7897         flag.
7898         * tests/test-sprintf-posix.h (test_function): Likewise.
7899         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7900         * tests/test-vasprintf-posix.c (test_function): Likewise.
7901         * doc/functions/fprintf.texi: Update.
7902         * doc/functions/printf.texi: Update.
7903         * doc/functions/snprintf.texi: Update.
7904         * doc/functions/sprintf.texi: Update.
7905         * doc/functions/vfprintf.texi: Update.
7906         * doc/functions/vprintf.texi: Update.
7907         * doc/functions/vsnprintf.texi: Update.
7908         * doc/functions/vsprintf.texi: Update.
7909
7910 2007-05-01  Bruno Haible  <bruno@clisp.org>
7911
7912         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
7913
7914 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7915
7916         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
7917         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
7918
7919 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7920
7921         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
7922         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
7923         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
7924
7925 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
7926
7927         * lib/argp-help.c (struct hol_entry): New member `ord'.
7928         (HOL_ENTRY_PTRCMP): Use ord for comparison
7929         (hol_sort): Initialize ord.
7930
7931 2007-05-01  Bruno Haible  <bruno@clisp.org>
7932
7933         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
7934         Reported by Eric Blake.
7935         * doc/gnulib.texi (Function Substitutes): Update.
7936
7937 2007-05-01  Bruno Haible  <bruno@clisp.org>
7938
7939         * doc/functions.texi: Remove file, now redundant through
7940         doc/functions/*.texi.
7941
7942 2007-05-01  Bruno Haible  <bruno@clisp.org>
7943
7944         * modules/argp (Depends-on): Add sleep.
7945
7946 2007-05-01  Bruno Haible  <bruno@clisp.org>
7947
7948         * modules/sleep-tests: New file.
7949         * tests/test-sleep.c: New file.
7950
7951         * modules/sleep: New file.
7952         * lib/sleep.c: New file.
7953         * m4/sleep.m4: New file.
7954         * lib/unistd_.h (sleep): New declaration.
7955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
7956         HAVE_SLEEP.
7957         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
7958         * doc/functions/sleep.texi: Document the sleep module.
7959
7960 2007-05-01  Bruno Haible  <bruno@clisp.org>
7961
7962         * lib/sigprocmask.h: Remove file.
7963         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
7964         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
7965         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
7966         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
7967         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7968         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
7969         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
7970         HAVE_SIGSET_T as a shell variable.
7971         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
7972         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
7973         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
7974         (Depends-on): Add signal. Remove verify.
7975         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
7976         (Include): Mention <signal.h> instead of sigprocmask.h.
7977         * NEWS: Mention the change.
7978         * lib/fatal-signal.c: Don't include sigprocmask.h.
7979
7980 2007-05-01  Bruno Haible  <bruno@clisp.org>
7981
7982         * modules/signal: New file.
7983         * lib/signal_.h: New file.
7984         * m4/signal_h.m4: New file.
7985
7986 2007-05-01  Bruno Haible  <bruno@clisp.org>
7987
7988         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
7989         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
7990         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
7991         HAVE_WCTYPE_CTMP_BUG into wctype.h.
7992
7993 2007-05-01  Bruno Haible  <bruno@clisp.org>
7994
7995         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
7996         configure time.
7997         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
7998         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
7999         * modules/sys_stat (Makefile.am): Substitute their values into
8000         sys/stat.h.
8001
8002 2007-05-01  Bruno Haible  <bruno@clisp.org>
8003
8004         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
8005         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
8006         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
8007
8008 2007-05-01  Bruno Haible  <bruno@clisp.org>
8009
8010         * doc/header/assert.texi: Undo last change: don't mention the gnulib
8011         'assert' module here.
8012
8013 2007-05-01  Bruno Haible  <bruno@clisp.org>
8014
8015         * doc/functions/*.texi: New files.
8016         * doc/functions/google-ranking.txt: New file.
8017         * doc/gnulib.texi (Function Substitutes): New chapter.
8018         (ctime, inet_ntoa): Remove sections.
8019         * doc/ctime.texi: Remove file.
8020         * doc/inet_ntoa.texi: Remove file.
8021         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
8022         dependencies.
8023         (%.info): New rule, specifying a --reference-limit.
8024
8025 2007-05-01  Bruno Haible  <bruno@clisp.org>
8026
8027         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
8028
8029 2007-05-01  Bruno Haible  <bruno@clisp.org>
8030
8031         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
8032         the portability of 'mkdir' to mingw systems.
8033
8034 2007-05-01  Bruno Haible  <bruno@clisp.org>
8035
8036         * doc/headers/google-ranking.txt: New file.
8037
8038 2007-04-30  Eric Blake  <ebb9@byu.net>
8039
8040         Prefer fseeko to fseek.
8041         * modules/getpass (Depends-on): Add fseeko.
8042         * lib/getpass.c (getpass): Use fseeko, not fseek.
8043
8044 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
8045
8046         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
8047         assumes the sorting is stable, while most qsort implementations
8048         are not.  Use argument addresses to ensure they never compare as
8049         equal.
8050
8051         * tests/test-argp-2.sh (usage-indent test): Fix output
8052         (func_compare): Restore diff options
8053         * tests/test-argp.c: Restore #include "progname.h"
8054
8055 2007-04-29  Bruno Haible  <bruno@clisp.org>
8056
8057         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
8058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8059         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
8060         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8061         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
8062         (configure.ac): Define CHECK_SNPRINTF_POSIX.
8063         (TESTS, check_PROGRAMS): Add test-snprintf.
8064         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
8065         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
8066         (TESTS, check_PROGRAMS): Add test-vsnprintf.
8067         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
8068         assertions that fail on HP-UX, OSF/1, or IRIX.
8069         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
8070
8071 2007-04-29  Bruno Haible  <bruno@clisp.org>
8072
8073         * MODULES.html.sh (posix_functions): Remove 'contents'.
8074
8075 2007-04-29  Karl Berry  <karl@gnu.org>
8076
8077         * config/srclist.txt (gendocs_template_min): new entry.
8078
8079 2007-04-29  Bruno Haible  <bruno@clisp.org>
8080
8081         Work around fpurge bug on BSD systems.
8082         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
8083         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
8084         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
8085         fpurge to rpl_fpurge if the system already has this function.
8086         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
8087         the case where the system already has this function. Correct invariants
8088         on BSD systems.
8089         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
8090         BSD systems.
8091
8092 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
8093
8094         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
8095         proposed by Sven Verdoolaege.
8096
8097         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
8098         options.
8099         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
8100         (usage and help tests): Update
8101
8102 2007-04-29  Bruno Haible  <bruno@clisp.org>
8103
8104         * tests/test-fflush.c (main): Use a file of size 17, not 10.
8105         Print more information in case of failure. Disable a test on BeOS.
8106
8107 2007-04-29  Bruno Haible  <bruno@clisp.org>
8108
8109         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
8110         This helps debugging on systems on which no gdb is available.
8111
8112 2007-04-29  Bruno Haible  <bruno@clisp.org>
8113
8114         * lib/freading.h: Improve comments.
8115         * lib/fwriting.h: Likewise.
8116         * tests/test-freading.c (main): Don't check freading immediately after
8117         repositioning. Needed for glibc.
8118
8119 2007-04-29  Bruno Haible  <bruno@clisp.org>
8120
8121         * lib/freading.c (freading): Trivial simplification.
8122
8123 2007-04-28  Bruno Haible  <bruno@clisp.org>
8124
8125         * tests/test-fwriting.c (main): Also test the interaction between
8126         fflush and fwriting.
8127         * modules/fwriting-tests (Depends-on): Add fflush.
8128
8129         * tests/test-freading.c (main): Also test the interaction between
8130         fflush and freading.
8131         * modules/freading-tests (Depends-on): Add fflush.
8132
8133 2007-04-28  Bruno Haible  <bruno@clisp.org>
8134
8135         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
8136         fseeko and ftello.
8137         Suggested by Eric Blake.
8138
8139 2007-04-28  Jim Meyering  <jim@meyering.net>
8140
8141         Avoid false-negative in gl_STDINT_H's C99 conformance test.
8142         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
8143         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
8144
8145 2007-04-27  Eric Blake  <ebb9@byu.net>
8146
8147         * doc/headers/assert.texi (assert.h): Document assert module use.
8148
8149 2007-04-27  Bruno Haible  <bruno@clisp.org>
8150
8151         * doc/headers/*.texi: New files.
8152         * doc/gnulib.texi (Header File Substitutes): New chapter.
8153         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
8154         dependencies.
8155         (standards.info ,standards.html, standards.dvi): Update dependencies.
8156         (mostlyclean, clean): New targets.
8157
8158 2007-04-27  Bruno Haible  <bruno@clisp.org>
8159
8160         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
8161         * modules/sysexits (Files, Makefile.am): Update.
8162
8163         * lib/sys_socket_.h: Renamed from lib/socket_.h.
8164         * modules/sys_socket (Files, Makefile.am): Update.
8165
8166         * lib/sys_stat_.h: Renamed from lib/stat_.h.
8167         * modules/sys_stat (Files, Makefile.am): Update.
8168
8169 2007-04-27  Eric Blake  <ebb9@byu.net>
8170
8171         * lib/freading.h: Improve comments.
8172         * lib/fwriting.h: Likewise.
8173         * lib/fflush.c: Likewise.
8174
8175         Fix closein for mingw.
8176         * modules/closein-tests: Add tests for closein.
8177         * tests/test-closein.c: New file.
8178         * tests/test-closein.sh: Likewise.
8179         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
8180         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
8181
8182 2007-04-27  Bruno Haible  <bruno@clisp.org>
8183
8184         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
8185         version is < 6.
8186         * lib/math_.h [__DECC]: Likewise.
8187         * lib/stdio_.h [__DECC]: Likewise.
8188         * lib/stdlib_.h [__DECC]: Likewise.
8189         * lib/string_.h [__DECC]: Likewise.
8190         * lib/time_.h [__DECC]: Likewise.
8191         * lib/wchar_.h [__DECC]: Likewise.
8192         * lib/wctype_.h [__DECC]: Likewise.
8193
8194 2007-04-27  Bruno Haible  <bruno@clisp.org>
8195
8196         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
8197
8198 2007-04-27  Bruno Haible  <bruno@clisp.org>
8199
8200         * lib/fflush.c: Add comments.
8201         * modules/fpurge-tests (Depends-on): Add fflush.
8202         * modules/freadable-tests (Depends-on): Likewise.
8203         * modules/fwritable-tests (Depends-on): Likewise.
8204
8205 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
8206
8207         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
8208         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
8209         Report by Bruno Haible <bruno@clisp.org>.
8210
8211 2007-04-26  Eric Blake  <ebb9@byu.net>
8212
8213         Fix fflush on mingw.
8214         * modules/fflush (Depends-on): Add freading.
8215         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
8216         but unread data.
8217
8218 2007-04-26  Eric Blake  <ebb9@byu.net>
8219         and Bruno Haible  <bruno@clisp.org>
8220
8221         Implement freading and fwriting.
8222         * lib/freading.c: New file.
8223         * lib/freading.h: Likewise.
8224         * m4/freading.m4: Likewise.
8225         * modules/freading: Likewise.
8226         * modules/freading-tests: Likewise.
8227         * tests/test-freading.c: Likewise.
8228         * lib/fwriting.c: New file.
8229         * lib/fwriting.h: Likewise.
8230         * m4/fwriting.m4: Likewise.
8231         * modules/fwriting: Likewise.
8232         * modules/fwriting-tests: Likewise.
8233         * tests/test-fwriting.c: Likewise.
8234         * MODULES.html.sh (File stream based Input/Output): Mention them.
8235
8236 2007-04-26  Bruno Haible  <bruno@clisp.org>
8237
8238         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
8239         'long' when we assume it.
8240         Suggested by Eric Blake.
8241
8242 2007-04-26  Bruno Haible  <bruno@clisp.org>
8243
8244         Ensure fseeko, ftello are declared on glibc systems.
8245         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
8246         * modules/fseeko (configure.ac-early): Likewise.
8247         * modules/ftello (configure.ac-early): Likewise.
8248         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
8249         AC_FUNC_FSEEKO for this.
8250         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
8251         (gl_CHECK_FSEEKO): Remove macro.
8252
8253 2007-04-26  Bruno Haible  <bruno@clisp.org>
8254
8255         * tests/test-fflush.c (main): Also check the ftell result after
8256         fflush and fseek/fseeko.
8257         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
8258         file descriptor position cache in the stream.
8259         * lib/fseeko.c (rpl_fseeko): Likewise.
8260
8261 2007-04-26  Bruno Haible  <bruno@clisp.org>
8262
8263         * modules/fflush-tests (Depends-on): Add fseeko.
8264
8265 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
8266             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8267
8268         * lib/argz_.h: ensure error_t definition is obtained in same
8269         mechanism system argz.h would have.
8270         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
8271         argz facilities are known bad.  Err on the side of caution if
8272         cross-compiling.
8273
8274 2007-04-25  Eric Blake  <ebb9@byu.net>
8275
8276         * lib/fpurge.c (includes): Use stdlib.h for free.
8277         * tests/test-fflush.c (main): Also test fflush-fseeko.
8278
8279 2007-04-25  Bruno Haible  <bruno@clisp.org>
8280
8281         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
8282         * lib/fseeko.c: New file.
8283         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
8284         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
8285         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
8286         gl_FUNC_FSEEKO.
8287         (gl_FUNC_FSEEKO): Invoke it.
8288         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
8289         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
8290         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
8291
8292 2007-04-25  Bruno Haible  <bruno@clisp.org>
8293
8294         * modules/fflush (Depends-on): Add ftello.
8295
8296 2007-04-25  Bruno Haible  <bruno@clisp.org>
8297
8298         * modules/ftello-tests: New file.
8299         * tests/test-ftello.c: New file.
8300
8301         * modules/ftello: New file.
8302         * m4/ftello.m4: New file.
8303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
8304         HAVE_FTELLO.
8305         * lib/stdio_.h (ftello): New declaration.
8306         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
8307         HAVE_FTELLO.
8308
8309 2007-04-25  Bruno Haible  <bruno@clisp.org>
8310
8311         * modules/fseeko-tests: New file.
8312         * tests/test-fseeko.c: New file.
8313
8314         * modules/fseeko: New file.
8315         * m4/fseeko.m4: New file.
8316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
8317         HAVE_FSEEKO.
8318         * lib/stdio_.h (fseeko): New declaration.
8319         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
8320         HAVE_FSEEKO.
8321
8322 2007-04-25  Bruno Haible  <bruno@clisp.org>
8323
8324         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
8325
8326 2007-04-25  Bruno Haible  <bruno@clisp.org>
8327
8328         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
8329         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
8330         * tests/test-unistd.c: Likewise.
8331         * tests/test-fcntl.c: Likewise.
8332
8333 2007-04-23  Eric Blake  <ebb9@byu.net>
8334
8335         * lib/fflush.c: Fix missing include.
8336         Reported by Bruno Haible.
8337
8338 2007-04-23  Bruno Haible  <bruno@clisp.org>
8339
8340         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
8341         Reported by Eric Blake.
8342
8343 2007-04-23  Bruno Haible  <bruno@clisp.org>
8344
8345         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
8346
8347 2007-04-23  Bruno Haible  <bruno@clisp.org>
8348
8349         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
8350
8351 2007-04-23  Bruno Haible  <bruno@clisp.org>
8352
8353         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
8354         Needed on HP-UX 11.
8355
8356 2007-04-16  Eric Blake  <ebb9@byu.net>
8357
8358         Make fflush rely on fpurge.
8359         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
8360         open coding all variants.
8361         * modules/fflush (Depends-on): Add fpurge and unistd.
8362         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
8363         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
8364
8365         Fix --with-tests compilation on cygwin.
8366         * modules/argmatch-tests (Makefile.am): List gnulib library first
8367         in LDADD.
8368         * modules/argp-tests (Makefile.am): Likewise.
8369         * modules/array-list-tests (Makefile.am): Likewise.
8370         * modules/array-oset-tests (Makefile.am): Likewise.
8371         * modules/avltree-list-tests (Makefile.am): Likewise.
8372         * modules/avltree-oset-tests (Makefile.am): Likewise.
8373         * modules/avltreehash-list-tests (Makefile.am): Likewise.
8374         * modules/carray-list-tests (Makefile.am): Likewise.
8375         * modules/dirname-tests (Makefile.am): Likewise.
8376         * modules/frexp-tests (Makefile.am): Likewise.
8377         * modules/isnanl-tests (Makefile.am): Likewise.
8378         * modules/linked-list-tests (Makefile.am): Likewise.
8379         * modules/linkedhash-list-tests (Makefile.am): Likewise.
8380         * modules/lock-tests (Makefile.am): Likewise.
8381         * modules/rbtree-list-tests (Makefile.am): Likewise.
8382         * modules/rbtree-oset-tests (Makefile.am): Likewise.
8383         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
8384         * modules/tls-tests (Makefile.am): Likewise.
8385         * modules/tsearch-tests (Makefile.am): Likewise.
8386         * modules/xvasprintf-tests (Makefile.am): Likewise.
8387
8388         Fix fpurge for cygwin.
8389         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
8390         value.
8391         * modules/fpurge-tests (Depends-on): Clean up trash.
8392
8393 2007-04-16  Simon Josefsson  <simon@josefsson.org>
8394
8395         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
8396
8397         * m4/autobuild.m4: Re-indent.
8398
8399 2007-04-13  Bruno Haible  <bruno@clisp.org>
8400
8401         * modules/fpurge-tests: New file.
8402         * tests/test-fpurge.c: New file.
8403
8404         * modules/fpurge: New file.
8405         * lib/fpurge.h: New file.
8406         * lib/fpurge.c: New file.
8407         * m4/fpurge.m4: New file.
8408
8409 2007-04-13  Bruno Haible  <bruno@clisp.org>
8410
8411         * modules/fbufmode-tests: New file.
8412         * tests/test-fbufmode.c: New file.
8413
8414         * modules/fbufmode: New file.
8415         * lib/fbufmode.h: New file.
8416         * lib/fbufmode.c: New file.
8417         * m4/fbufmode.m4: New file.
8418
8419 2007-04-13  Bruno Haible  <bruno@clisp.org>
8420
8421         * modules/fwritable-tests: New file.
8422         * tests/test-fwritable.c: New file.
8423
8424         * modules/fwritable: New file.
8425         * lib/fwritable.h: New file.
8426         * lib/fwritable.c: New file.
8427         * m4/fwritable.m4: New file.
8428
8429 2007-04-13  Bruno Haible  <bruno@clisp.org>
8430
8431         * modules/freadable-tests: New file.
8432         * tests/test-freadable.c: New file.
8433
8434         * modules/freadable: New file.
8435         * lib/freadable.h: New file.
8436         * lib/freadable.c: New file.
8437         * m4/freadable.m4: New file.
8438
8439 2007-04-13  Bruno Haible  <bruno@clisp.org>
8440
8441         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
8442         MOSTLYCLEANFILES.
8443
8444 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8445
8446         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
8447         gzip bootstrap.conf to avoid dragging in i18n machinery.
8448         (gnulib_tool_option): Use it.
8449
8450 2007-04-13  Bruno Haible  <bruno@clisp.org>
8451
8452         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
8453         %F directives.
8454         * tests/test-vasprintf-posix.c (test_function): Likewise.
8455         * tests/test-snprintf-posix.h (test_function): Likewise.
8456         * tests/test-sprintf-posix.h (test_function): Likewise.
8457         * tests/test-fprintf-posix.h (test_function): Likewise.
8458         * tests/test-printf-posix.h (test_function): Likewise.
8459         * tests/test-fprintf-posix.out: Likewise.
8460
8461 2007-04-13  Bruno Haible  <bruno@clisp.org>
8462
8463         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
8464         * modules/tls-tests (configure.ac): Likewise.
8465         Reported by Arto C. Nirkko <anirkko@insel.ch>.
8466
8467 2007-04-13  Bruno Haible  <bruno@clisp.org>
8468
8469         * lib/tls.c (glthread_tls_get): Fix return type.
8470         Patch by Arto C. Nirkko <anirkko@insel.ch>.
8471
8472 2007-04-12  Eric Blake  <ebb9@byu.net>
8473
8474         * modules/gettime (Depends-on): Remove gettime.
8475         Reported by Dmitry V. Levin.
8476
8477 2007-04-12  Bruno Haible  <bruno@clisp.org>
8478
8479         * modules/fflush (Include): Mention <stdio.h>.
8480         * modules/strtoimax (Include): Mention <inttypes.h>.
8481         * modules/strtoumax (Include): Likewise.
8482
8483 2007-04-12  Eric Blake  <ebb9@byu.net>
8484
8485         * .cvsignore: New file.
8486         * .gitignore: Likewise.
8487
8488 2007-04-12  Bruno Haible  <bruno@clisp.org>
8489
8490         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
8491         not before, since $(LDADD) often contains libgnu.a.
8492         * modules/striconv-tests (test_striconv_LDADD): Likewise.
8493         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
8494         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
8495         Needed on Cygwin.
8496
8497 2007-04-12  Eric Blake  <ebb9@byu.net>
8498
8499         Work around glibc's failure to flush stdin on fclose.
8500         * lib/closein.c (close_stdin): Flush stdin before closing.
8501
8502         Work around glibc's failure to reset seekable stdin on exit.
8503         * modules/closein: New module.
8504         * lib/closein.c: New file.
8505         * lib/closein.h: Likewise.
8506         * m4/closein.m4: Likewise.
8507         * MODULES.html.sh (File stream based Input/Output): Document it.
8508
8509 2007-04-12  Simon Josefsson  <simon@josefsson.org>
8510
8511         * gnulib-tool: Rename generated 'autobuild' script to
8512         'do-autobuild' in --create-megatestdir output.
8513
8514         * doc/gnulib.texi (Build robot for gnulib): Fix.
8515
8516 2007-04-12  Simon Josefsson  <simon@josefsson.org>
8517
8518         * modules/sysexits (Depends-on): Add absolute-header.
8519
8520 2007-04-12  Eric Blake  <ebb9@byu.net>
8521
8522         No need to preserve errno on success.
8523         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
8524         Reported by Bruno Haible.
8525
8526 2007-04-12  Simon Josefsson  <simon@josefsson.org>
8527
8528         * MODULES.html.sh (Support for maintaining and releasing
8529         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
8530
8531 2007-04-12  Simon Josefsson  <simon@josefsson.org>
8532
8533         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
8534
8535 2007-04-12  Simon Josefsson  <simon@josefsson.org>
8536
8537         * modules/autobuild: New module.
8538
8539         * m4/autobuild.m4: New file.
8540
8541 2007-04-11  Bruno Haible  <bruno@clisp.org>
8542
8543         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
8544         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
8545         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
8546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
8547         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8548         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8549         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8550         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8551         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8552         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8553         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
8554         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8555         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
8557         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8558         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8559         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
8560         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8561         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8562         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
8563         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8564         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8565         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
8566         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8567         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
8569         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8570         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8571         Reported by Eric Blake.
8572
8573 2007-04-11  Bruno Haible  <bruno@clisp.org>
8574
8575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
8576
8577 2007-04-10  Bruno Haible  <bruno@clisp.org>
8578
8579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
8580         for NaN and Infinity. Needed on FreeBSD 6.1.
8581         * tests/test-vasnprintf-posix.c (test_function): Undo last change
8582         regarding results for "%010a" of Infinity and NaN.
8583         * tests/test-vasprintf-posix.c (test_function): Likewise.
8584         * tests/test-snprintf-posix.h (test_function): Likewise.
8585         * tests/test-sprintf-posix.h (test_function): Likewise.
8586         * tests/test-fprintf-posix.h (test_function): Likewise.
8587         * tests/test-printf-posix.h (test_function): Likewise.
8588         * tests/test-fprintf-posix.out: Likewise.
8589
8590 2007-04-10  Bruno Haible  <bruno@clisp.org>
8591
8592         * modules/locale-tests: New file.
8593         * tests/test-locale.c: New file.
8594
8595         * modules/locale: New file.
8596         * lib/locale_.h: New file.
8597         * m4/locale_h.m4: New file.
8598
8599 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8600             Bruno Haible  <bruno@clisp.org>
8601
8602         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
8603         be determined, test for availability of the copysignf, copysign,
8604         copysignl functions.
8605         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
8606         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
8607         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
8608
8609 2007-04-09  Eric Blake  <ebb9@byu.net>
8610
8611         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
8612         * modules/stdio (Makefile.am): Support fflush.
8613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8614         * modules/fflush: New file.
8615         * lib/fflush.c: Likewise.
8616         * m4/fflush.m4: Likewise.
8617         * modules/fflush-tests: New test.
8618         * tests/test-fflush.c: Likewise.
8619         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
8620
8621 2007-04-06  Bruno Haible  <bruno@clisp.org>
8622
8623         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
8624         (VASNPRINTF): Use signbit for faster determination whether to print a
8625         minus sign.
8626         * modules/vasnprintf (Files): Remove lib/float+.h.
8627         * modules/fprintf-posix (Depends-on): Add signbit.
8628         * modules/snprintf-posix (Depends-on): Likewise.
8629         * modules/sprintf-posix (Depends-on): Likewise.
8630         * modules/vasnprintf-posix (Depends-on): Likewise.
8631         * modules/vasprintf-posix (Depends-on): Likewise.
8632         * modules/vfprintf-posix (Depends-on): Likewise.
8633         * modules/vsnprintf-posix (Depends-on): Likewise.
8634         * modules/vsprintf-posix (Depends-on): Likewise.
8635
8636 2007-04-06  Bruno Haible  <bruno@clisp.org>
8637
8638         * tests/test-frexp.c (main): Test also the sign bit of zero results.
8639         * tests/test-frexpl.c (main): Likewise.
8640         * tests/test-ldexpl.c (main): Likewise.
8641         * modules/frexp-tests (Depends-on): Add signbit.
8642         * modules/frexpl-tests (Depdends-on): Likewise.
8643         * modules/ldexpl-tests (Depdends-on): Likewise.
8644
8645 2007-04-06  Bruno Haible  <bruno@clisp.org>
8646
8647         * modules/signbit-tests: New file.
8648         * tests/test-signbit.c: New file.
8649
8650         * modules/signbit: New file.
8651         * lib/signbitf.c: New file.
8652         * lib/signbitd.c: New file.
8653         * lib/signbitl.c: New file.
8654         * m4/signbit.m4: New file.
8655         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
8656         (signbit): New macro.
8657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
8658         REPLACE_SIGNBIT.
8659         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
8660         REPLACE_FREXPL into math.h.
8661
8662 2007-04-06  Bruno Haible  <bruno@clisp.org>
8663
8664         * modules/isnanf-nolibm-tests: New file.
8665         * tests/test-isnanf.c: New file.
8666
8667         * modules/isnanf-nolibm: New file.
8668         * lib/isnanf.h: New file.
8669         * lib/isnanf.c: New file.
8670         * lib/isnan.c: Consider the USE_FLOAT macro.
8671         * m4/isnanf.m4: New file.
8672
8673 2007-04-06  Bruno Haible  <bruno@clisp.org>
8674
8675         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
8676         (Link): New section.
8677
8678         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
8679
8680 2007-04-06  Bruno Haible  <bruno@clisp.org>
8681
8682         Assume the 'long double' type.
8683         * m4/longdouble.m4: Remove file.
8684         * config/srclist.txt: Don't mention longdouble.m4.
8685         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
8686         * lib/float+.h: Likewise.
8687         * lib/frexp.c: Likewise.
8688         * lib/printf-args.h: Likewise.
8689         * lib/printf-args.c: Likewise.
8690         * lib/printf-frexp.c: Likewise.
8691         * lib/printf-parse.c: Likewise.
8692         * lib/vasnprintf.c: Likewise.
8693         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
8694         * m4/intl.m4: Likewise.
8695         * m4/isnanl.m4: Likewise.
8696         * m4/printf.m4: Likewise.
8697         * m4/printf-frexpl.m4: Likewise.
8698         * m4/vasnprintf.m4: Likewise.
8699         * modules/allocsa (Files): Remove m4/longdouble.m4.
8700         * modules/gettext (Files): Likewise.
8701         * modules/relocatable-prog-wrapper (Files): Likewise.
8702         * modules/vasnprintf (Files): Likewise.
8703         * modules/isnanl (Files): Likewise.
8704         (Include): Simplify.
8705         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
8706         (Include): Simplify.
8707         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
8708         (Include): Simplify.
8709         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
8710         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8711         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
8712         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8713         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
8714         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8715         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
8716         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8717         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
8718         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8719         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
8720         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8721         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
8722         * tests/test-isnanl.c: Likewise.
8723         * tests/test-snprintf-posix.h: Likewise.
8724         * tests/test-sprintf-posix.h: Likewise.
8725         * tests/test-vasnprintf-posix.c: Likewise.
8726         * tests/test-vasnprintf-posix2.c: Likewise.
8727         * tests/test-vasprintf-posix.c: Likewise.
8728
8729 2007-04-06  Bruno Haible  <bruno@clisp.org>
8730
8731         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
8732         * lib/math_.h [__DECC]: Include the overridden include file through
8733         #include_next, outside the double-inclusion guard.
8734         * lib/stdio_.h [__DECC]: Likewise.
8735         * lib/stdlib_.h [__DECC]: Likewise.
8736         * lib/string_.h [__DECC]: Likewise.
8737         * lib/time_.h [__DECC]: Likewise.
8738         * lib/wchar_.h [__DECC]: Likewise.
8739         * lib/wctype_.h [__DECC]: Likewise.
8740         * lib/inttypes_.h [__DECC]: Likewise.
8741         Reported by Albert Chin <china@thewrittenword.com> in
8742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
8743
8744 2007-04-04  Eric Blake  <ebb9@byu.net>
8745
8746         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
8747         1.5.x.
8748
8749 2007-04-04  Bruno Haible  <bruno@clisp.org>
8750
8751         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
8752         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
8753
8754 2007-04-04  Bruno Haible  <bruno@clisp.org>
8755
8756         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
8757         results for "%010a" of Infinity and NaN.
8758         * tests/test-vasprintf-posix.c (test_function): Likewise.
8759         * tests/test-snprintf-posix.h (test_function): Likewise.
8760         * tests/test-sprintf-posix.h (test_function): Likewise.
8761         * tests/test-fprintf-posix.h (test_function): Remove these tests.
8762         * tests/test-printf-posix.h (test_function): Likewise.
8763         * tests/test-fprintf-posix.out: Update.
8764         Needed for FreeBSD 6.1.
8765
8766 2007-04-04  Bruno Haible  <bruno@clisp.org>
8767
8768         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
8769         directly used by the gnulib modules nor by gnulib-tool.
8770
8771 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
8772
8773         * DEPENDENCIES: Give overall description of version dependency
8774         desirability.  Use more-typical names for apps.
8775         Add shell, coreutils, diffutils, grep, tar, gzip.
8776
8777 2007-04-04  Simon Josefsson  <simon@josefsson.org>
8778
8779         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
8780
8781 2007-04-04  Karl Berry  <karl@gnu.org>
8782
8783         * MODULES.html.sh (func_module): missing '.
8784
8785 2007-04-03  Bruno Haible  <bruno@clisp.org>
8786
8787         * modules/argmatch-tests (Makefile.am): New variable
8788         test_argmatch_LDADD.
8789         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
8790         * modules/array-list-tests (Makefile.am): New variable
8791         test_array_list_LDADD.
8792         * modules/array-oset-tests (Makefile.am): New variable
8793         test_array_oset_LDADD.
8794         * modules/avltree-list-tests (Makefile.am): New variable
8795         test_avltree_list_LDADD.
8796         * modules/avltree-oset-tests (Makefile.am): New variable
8797         test_avltree_oset_LDADD.
8798         * modules/avltreehash-list-tests (Makefile.am): New variable
8799         test_avltreehash_list_LDADD.
8800         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
8801         test_canonicalize_lgpl_LDADD.
8802         * modules/carray-list-tests (Makefile.am): New variable
8803         test_carray_list_LDADD.
8804         * modules/dirname-tests (Makefile.am): New variable
8805         test_dirname_LDADD.
8806         * modules/linked-list-tests (Makefile.am): New variable
8807         test_linked_list_LDADD.
8808         * modules/linkedhash-list-tests (Makefile.am): New variable
8809         test_linkedhash_list_LDADD.
8810         * modules/rbtree-list-tests (Makefile.am): New variable
8811         test_rbtree_list_LDADD.
8812         * modules/rbtree-oset-tests (Makefile.am): New variable
8813         test_rbtree_oset_LDADD.
8814         * modules/rbtreehash-list-tests (Makefile.am): New variable
8815         test_rbtreehash_list_LDADD.
8816         * modules/xvasprintf-tests (Makefile.am): New variable
8817         test_xvasprintf_LDADD.
8818         Reported by Eric Blake.
8819
8820 2007-04-03  Eric Blake  <ebb9@byu.net>
8821
8822         * DEPENDENCIES: Weaken m4 requirements.
8823
8824 2007-04-03  Bruno Haible  <bruno@clisp.org>
8825
8826         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
8827         * modules/isnanl-tests (configure.ac): Likewise.
8828
8829 2007-04-03  Ben Pfaff  <blp@gnu.org>
8830
8831         * modules/iconv_open: Add $(srcdir)/ to source directory
8832         references in Makefile fragments that call gperf, to fix VPATH
8833         builds.
8834
8835 2007-04-03  Bruno Haible  <bruno@clisp.org>
8836
8837         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
8838         * lib/ldexpl.c: Undo last change.
8839
8840 2007-04-03  Bruno Haible  <bruno@clisp.org>
8841
8842         * modules/printf-frexpl (Depends-on): Undo last change.
8843         (Files): Add m4/ldexpl.m4.
8844
8845 2007-04-03  Bruno Haible  <bruno@clisp.org>
8846
8847         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
8848         * modules/isnanl (Link): New section.
8849
8850         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
8851         * modules/frexp (Link): New section.
8852
8853         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
8854         * modules/frexpl (Link): New section.
8855
8856         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
8857         * modules/ldexpl (Link): New section.
8858
8859 2007-04-03  Bruno Haible  <bruno@clisp.org>
8860
8861         * modules/TEMPLATE-EXTENDED: New file.
8862         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
8863
8864 2007-04-03  Bruno Haible  <bruno@clisp.org>
8865
8866         * DEPENDENCIES: New file.
8867         Suggested by Simon Josefsson.
8868
8869 2007-04-03  Bruno Haible  <bruno@clisp.org>
8870
8871         * doc/gnulib.texi: Escape @.
8872
8873 2007-04-03  James Youngman  <jay@gnu.org>
8874         and Paul Eggert  <eggert@cs.ucla.edu>
8875
8876         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
8877         birthtime on all systems that have birthtime, not just those which
8878         use st_birthtimensec rather than st_birthtim.  Putting zero in
8879         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
8880         that the birth time is not available for files on an NFS mount.
8881
8882 2007-04-03  Simon Josefsson  <simon@josefsson.org>
8883
8884         * modules/memxor: Move back from crypto/, suggested by Bruno.
8885         * modules/crypto/hmac-sha1: Fix memxor dependency.
8886
8887         * modules/crypto/gc: Moved from ../.
8888
8889 2007-04-02  Eric Blake  <ebb9@byu.net>
8890
8891         * lib/ldexpl.c (includes): Avoid libm.
8892
8893         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
8894
8895 2007-04-02  Bruno Haible  <bruno@clisp.org>
8896
8897         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
8898         on IRIX.
8899
8900 2007-04-02  Bruno Haible  <bruno@clisp.org>
8901
8902         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
8903         x86 or x86_64 platforms running MacOS X.
8904         Reported by Ryan Schmidt <@ryandesign.com>.
8905
8906 2007-04-02  Bruno Haible  <bruno@clisp.org>
8907
8908         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
8909         i386.
8910
8911 2007-04-01  Simon Josefsson  <simon@josefsson.org>
8912
8913         * modules/crypto/arcfour: Moved from ../.
8914         * modules/crypto/arcfour-tests: Moved from ../.
8915         * modules/crypto/arctwo: Moved from ../.
8916         * modules/crypto/arctwo-tests: Moved from ../.
8917         * modules/crypto/des: Moved from ../.
8918         * modules/crypto/des-tests: Moved from ../.
8919         * modules/crypto/gc-arcfour: Moved from ../.
8920         * modules/crypto/gc-arcfour-tests: Moved from ../.
8921         * modules/crypto/gc-arctwo: Moved from ../.
8922         * modules/crypto/gc-arctwo-tests: Moved from ../.
8923         * modules/crypto/gc-des: Moved from ../.
8924         * modules/crypto/gc-des-tests: Moved from ../.
8925         * modules/crypto/gc-hmac-md5: Moved from ../.
8926         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
8927         * modules/crypto/gc-hmac-sha1: Moved from ../.
8928         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
8929         * modules/crypto/gc-md2: Moved from ../.
8930         * modules/crypto/gc-md2-tests: Moved from ../.
8931         * modules/crypto/gc-md4: Moved from ../.
8932         * modules/crypto/gc-md4-tests: Moved from ../.
8933         * modules/crypto/gc-md5: Moved from ../.
8934         * modules/crypto/gc-md5-tests: Moved from ../.
8935         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
8936         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
8937         * modules/crypto/gc-random: Moved from ../.
8938         * modules/crypto/gc-rijndael: Moved from ../.
8939         * modules/crypto/gc-rijndael-tests: Moved from ../.
8940         * modules/crypto/gc-sha1: Moved from ../.
8941         * modules/crypto/gc-sha1-tests: Moved from ../.
8942         * modules/crypto/gc-tests: Moved from ../.
8943         * modules/crypto/hmac-md5: Moved from ../.
8944         * modules/crypto/hmac-md5-tests: Moved from ../.
8945         * modules/crypto/hmac-sha1: Moved from ../.
8946         * modules/crypto/hmac-sha1-tests: Moved from ../.
8947         * modules/crypto/md2: Moved from ../.
8948         * modules/crypto/md2-tests: Moved from ../.
8949         * modules/crypto/md4: Moved from ../.
8950         * modules/crypto/md4-tests: Moved from ../.
8951         * modules/crypto/md5: Moved from ../.
8952         * modules/crypto/md5-tests: Moved from ../.
8953         * modules/crypto/memxor: Moved from ../.
8954         * modules/crypto/rijndael: Moved from ../.
8955         * modules/crypto/rijndael-tests: Moved from ../.
8956         * modules/crypto/sha1: Moved from ../.
8957
8958 2007-03-30  James Youngman  <jay@gnu.org>
8959
8960         * tests/test-stat-time.c (prepare_test): use chmod() rather than
8961         rename() to change the ctime of a file (because ctime is unaffected
8962         by rename on jfs2 on AIX 5.1).
8963         (main): Start by doing cleanup, in case a previous run failed leaving
8964         test files behind.
8965
8966 2007-03-31  Bruno Haible  <bruno@clisp.org>
8967
8968         Support old proprietary implementations of iconv.
8969         * modules/iconv_open: New file.
8970         * lib/iconv_.h: New file.
8971         * m4/iconv_h.m4: New file.
8972         * lib/iconv_open.c: New file.
8973         * lib/iconv_open-aix.gperf: New file.
8974         * lib/iconv_open-hpux.gperf: New file.
8975         * lib/iconv_open-irix.gperf: New file.
8976         * lib/iconv_open-osf.gperf: New file.
8977         * m4/iconv_open.m4: New file.
8978         * modules/linebreak (Depends-on): Add iconv_open.
8979         * modules/striconv (Depends-on): Likewise.
8980         * modules/striconveh (Depends-on): Likewise.
8981         * modules/unicodeio (Depends-on): Likewise.
8982         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
8983         (iconv_t)(-1).
8984         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
8985         conversion if cd is (iconv_t)(-1).
8986         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
8987         is not possible.
8988
8989 2007-03-31  Bruno Haible  <bruno@clisp.org>
8990
8991         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
8992         work on Solaris either. Protect also second use of "autodetect_jp".
8993
8994 2007-03-31  Bruno Haible  <bruno@clisp.org>
8995
8996         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
8997         the function is not present.
8998
8999 2007-03-31  Bruno Haible  <bruno@clisp.org>
9000
9001         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
9002         the function is not present.
9003
9004 2007-03-31  Bruno Haible  <bruno@clisp.org>
9005
9006         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
9007         a bug in HP-UX iconv_open().
9008
9009 2007-03-31  Bruno Haible  <bruno@clisp.org>
9010
9011         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
9012         (Mathematics <math.h>): New section, add fpieee.
9013         (Input/output <stdio.h>): Add fseterr.
9014         (Mathematics <math.h>): New section, add printf-frexp.
9015         (Container data structures): Add sublist.
9016         (Core language properties): Add fpucw, inline.
9017         (Functions for greatest-width integer types <inttypes.h>): Add
9018         imaxabs, imaxdiv, inttypes.
9019         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
9020         isnanl-nolibm, ldexp.
9021         (Mathematics <math.h>): New section, add printf-frexpl.
9022         (Support for systems lacking POSIX:2001): Add fprintf-posix,
9023         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
9024         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
9025         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
9026         (Unicode string functions): Add unistr/u*-mbtoucr.
9027         (Java): Add javacomp-script, javaexec-script.
9028         (C#): Add csharpcomp-script, csharpexec-script.
9029         (Support for building libraries and executables): Add havelib,
9030         relocatable-*.
9031         (Support for maintaining and releasing projects): Renamed from
9032         'Support for maintaining and release projects'. Add announce-gen.
9033
9034 2007-03-31  Bruno Haible  <bruno@clisp.org>
9035
9036         * README: Talk primarily about git.
9037         (git and CVS): Renamed from CVS.
9038         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
9039         gnulib is available through git.
9040         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
9041
9042 2007-03-30  Bruno Haible  <bruno@clisp.org>
9043
9044         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
9045         * lib/poll_.h: Likewise.
9046         * lib/stat_.h: Likewise.
9047         * lib/sys_time_.h: Likewise.
9048         * lib/sysexit_.h: Likewise.
9049         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
9050         * lib/stdbool_.h: Likewise.
9051         * lib/byteswap_.h: Add double-inclusion guard.
9052
9053 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
9054
9055         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
9056
9057 2007-03-30  Karl Berry  <karl@gnu.org>
9058
9059         * config/srclist-update: double space after USA in the license
9060         substitution, since that's how it's usually (?) written.
9061
9062 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
9063
9064         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
9065         reported by Bruno Haible.
9066
9067 2007-03-29  Bruno Haible  <bruno@clisp.org>
9068
9069         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
9070         a bug in AIX iconv().
9071
9072 2007-03-29  Bruno Haible  <bruno@clisp.org>
9073
9074         * modules/ldexpl-tests: New file.
9075         * tests/test-ldexpl.c: New file.
9076
9077 2007-03-29  Bruno Haible  <bruno@clisp.org>
9078
9079         * lib/ldexpl.c: Include fpucw.h.
9080         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
9081         multiplication.
9082         * modules/ldexpl (Depends-on): Add fpucw.
9083
9084 2007-03-29  Bruno Haible  <bruno@clisp.org>
9085
9086         * modules/ldexpl: New file.
9087         * m4/ldexpl.m4: New file.
9088         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
9089         set.
9090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
9091         REPLACE_LDEXPL.
9092         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
9093         REPLACE_LDEXPL.
9094         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
9095         gl_FUNC_LDEXPL_WORKS.
9096         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
9097         * modules/mathl (Files): Remove lib/ldexpl.c.
9098         (Depends-on): Add ldexpl.
9099
9100 2007-03-29  Bruno Haible  <bruno@clisp.org>
9101
9102         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
9103
9104 2007-03-29  Bruno Haible  <bruno@clisp.org>
9105
9106         * tests/test-striconveh.c (main): Don't assume that a direct conversion
9107         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
9108         and possibly also HP-UX.
9109         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
9110         work on AIX, IRIX, HP-UX, OSF/1.
9111         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9112         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9113         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9114         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9115         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
9116         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9117
9118 2007-03-29  Bruno Haible  <bruno@clisp.org>
9119
9120         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
9121
9122 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
9123
9124         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
9125         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
9126
9127 2007-03-29  Eric Blake  <ebb9@byu.net>
9128
9129         * lib/acl-internal.h: Remove redundant include.
9130         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
9131         Cygwin when a file is locked.
9132
9133 2007-03-29  Bruno Haible  <bruno@clisp.org>
9134
9135         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
9136         file.
9137         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
9138
9139 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
9140
9141         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
9142         try to remove a parent directory if the child couldn't be removed
9143         (except for the first rmdir, which could fail because the child
9144         doesn't exist).  Problem reported by Jeff Blaine in
9145         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
9146
9147 2007-03-28  Bruno Haible  <bruno@clisp.org>
9148
9149         * lib/striconveh.c (utf8conv_carefully): New function.
9150         (mem_cd_iconveh_internal): Invoke it.
9151
9152 2007-03-28  Bruno Haible  <bruno@clisp.org>
9153
9154         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
9155         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
9156         input.
9157         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
9158         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
9159         unistr/u8-uctomb.
9160
9161 2007-03-28  Bruno Haible  <bruno@clisp.org>
9162
9163         * modules/unistr/u8-mbtoucr: New file.
9164         * lib/unistr/u8-mbtoucr.c: New file.
9165         * modules/unistr/u16-mbtoucr: New file.
9166         * lib/unistr/u16-mbtoucr.c: New file.
9167         * modules/unistr/u16-mbtoucr: New file.
9168         * lib/unistr/u16-mbtoucr.c: New file.
9169         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
9170
9171 2007-03-27  Simon Josefsson  <simon@josefsson.org>
9172             Bruno Haible  <bruno@clisp.org>
9173
9174         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
9175         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
9176         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
9177
9178         * m4/stdio_h.m4: Add stubs for vasprintf too.
9179
9180         * modules/stdio: Support vasprintf in sed command.
9181
9182         * modules/vasprintf: Depend on stdio for prototypes.  Remove
9183         vasprintf.h.  Add stdio module indicator.
9184
9185         * lib/stdio_.h: Declare asprintf and vasprintf, based on
9186         vasprintf.h.
9187
9188         * lib/vasprintf.h: File removed.
9189
9190         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
9191         * lib/vasprintf.c: Ditto.
9192         * lib/xvasprintf.c: Ditto.
9193         * tests/test-vasprintf-posix.c: Ditto.
9194         * tests/test-vasprintf.c: Ditto.
9195
9196 2007-03-27  Bruno Haible  <bruno@clisp.org>
9197
9198         Make vasnprintf multithread-safe.
9199         * lib/vasnprintf.c (decimal_point_char): New function.
9200         (VASNPRINTF): Use it.
9201         Suggested by Simon Josefsson.
9202
9203 2007-03-27  Eric Blake  <ebb9@byu.net>
9204
9205         Support sub-second birthtime on cygwin.
9206         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
9207         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
9208         (get_stat_birthtime): Also work with st_birthtim.
9209
9210 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
9211
9212         * lib/stat-time.h (USE_BIRTHTIME): Remove.
9213         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
9214         (get_stat_birthtime_ns): Do not try to use "spare" fields.
9215         (get_stat_birthtime_ns): Simplify compile-time tests.
9216         (get_stat_birthtime): Change the API to look like
9217         get_stat_mtime etc., except return a negative tv_nsec on error.
9218         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
9219         Don't check for "spare" fields.
9220         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
9221         or for struct stat.st_birthtime, as these tests aren't used.
9222         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
9223
9224 2007-03-27  Bruno Haible  <bruno@clisp.org>
9225
9226         * lib/stat-time.h: Include <sys/stat.h>.
9227
9228 2007-03-27  James Youngman  <jay@gnu.org>
9229
9230         * lib/stat-time.h (get_stat_birthtime): New function for
9231           retrieving st_birthtime as provided by UFS2 (hence *BSD).
9232         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
9233           and its variants.
9234         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
9235         * modules/stat-time-test: New file.
9236         * tests/test-stat-time.c: New test, devised by Bruno Haible.
9237
9238 2007-03-26  Bruno Haible  <bruno@clisp.org>
9239
9240         Better support of signalling NaNs.
9241         * lib/atanl.c: Include isnanl.h.
9242         (atanl): Perform test for NaN at the beginning of the function and
9243         through a call to isnanl.
9244         * lib/cosl.c: Include isnanl.h.
9245         (cosl): Perform test for NaN at the beginning of the function and
9246         through a call to isnanl.
9247         * lib/ldexpl.c: Include isnanl.h.
9248         (ldexpl): Perform test for NaN through a call to isnanl.
9249         * lib/logl.c: Include isnanl.h.
9250         (logl): Perform test for NaN at the beginning of the function and
9251         through a call to isnanl.
9252         * lib/sinl.c: Include isnanl.h.
9253         (sinl): Perform test for NaN at the beginning of the function and
9254         through a call to isnanl.
9255         * lib/sqrtl.c: Include isnanl.h.
9256         (sqrtl): Perform test for NaN at the beginning of the function and
9257         through a call to isnanl.
9258         * lib/tanl.c: Include isnanl.h.
9259         (tanl): Perform test for NaN at the beginning of the function and
9260         through a call to isnanl.
9261         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
9262         * modules/mathl (Depends-on): Add isnanl.
9263
9264 2007-03-26  Eric Blake  <ebb9@byu.net>
9265
9266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
9267         regression in logic sense of previous patch.
9268
9269 2007-03-26  Bruno Haible  <bruno@clisp.org>
9270
9271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
9272         unportable shell command "if ! ...".
9273         Reported by Ralf Wildenhues.
9274
9275 2007-03-25  Bruno Haible  <bruno@clisp.org>
9276
9277         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
9278         <sysexits.h> file, and only add EX_CONFIG.
9279         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
9280         absolute file name and whether it is sufficient. Substitute also
9281         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
9282         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
9283         ABSOLUTE_SYSEXITS_H into sysexits.h.
9284
9285 2007-03-25  Bruno Haible  <bruno@clisp.org>
9286
9287         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
9288         hints is NULL.
9289
9290 2007-03-25  Bruno Haible  <bruno@clisp.org>
9291
9292         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
9293         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
9294
9295 2007-03-25  Bruno Haible  <bruno@clisp.org>
9296
9297         * lib/vasnprintf.c: Include langinfo.h.
9298         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
9299         multithread-safe.
9300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
9301         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
9302         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9306         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
9308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9309         Reported by Simon Josefsson.
9310
9311 2007-03-25  Bruno Haible  <bruno@clisp.org>
9312
9313         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
9314         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
9315         * modules/vasnprintf (Depends-on): Add stdint.
9316
9317 2007-03-25  Bruno Haible  <bruno@clisp.org>
9318
9319         * modules/fpieee: New file.
9320         * m4/fpieee.m4: New file.
9321         * modules/isnan-nolibm (Depends-on): Add fpieee.
9322         * modules/isnanl-nolibm (Depends-on): Add fpieee.
9323         * modules/isnanl (Depends-on): Add fpieee.
9324
9325 2007-03-25  Bruno Haible  <bruno@clisp.org>
9326
9327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
9328
9329 2007-03-25  Bruno Haible  <bruno@clisp.org>
9330
9331         Avoid test failures on IRIX 6.5.
9332         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
9333         (main): Use it.
9334         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
9335         macros.
9336         (main): Use them.
9337
9338 2007-03-25  Bruno Haible  <bruno@clisp.org>
9339
9340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
9341         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
9342         exists but doesn't work.
9343         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
9344         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
9345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
9346         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
9347
9348 2007-03-25  Bruno Haible  <bruno@clisp.org>
9349
9350         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
9351         returns inf. Needed on IRIX 6.5.
9352
9353 2007-03-25  Bruno Haible  <bruno@clisp.org>
9354
9355         * tests/test-frexpl.c: Include isnanl-nolibm.h.
9356         (main): Use isnanl instead of x != x idiom.
9357         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
9358
9359         * tests/test-frexp.c: Include isnan.h.
9360         (main): Use isnan instead of x != x idiom.
9361         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
9362
9363 2007-03-25  Bruno Haible  <bruno@clisp.org>
9364
9365         * tests/test-frexp.c (NaN): New function/macro.
9366         (main): Use it instead of 0.0 / 0.0.
9367         * tests/test-isnan.c (NaN): New function/macro.
9368         (main): Use it instead of 0.0 / 0.0.
9369         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
9370         (test_function): Use it instead of 0.0 / 0.0.
9371         * tests/test-vasprintf-posix.c (NaN): New function/macro.
9372         (test_function): Use it instead of 0.0 / 0.0.
9373         * tests/test-snprintf-posix.h (NaN): New function/macro.
9374         (test_function): Use it instead of 0.0 / 0.0.
9375         * tests/test-sprintf-posix.h (NaN): New function/macro.
9376         (test_function): Use it instead of 0.0 / 0.0.
9377         * tests/test-fprintf-posix.h (NaN): New function/macro.
9378         (test_function): Use it instead of 0.0 / 0.0.
9379         * tests/test-printf-posix.h (NaN): New function/macro.
9380         (test_function): Use it instead of 0.0 / 0.0.
9381
9382         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
9383
9384 2007-03-25  Bruno Haible  <bruno@clisp.org>
9385
9386         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
9387
9388 2007-03-25  Bruno Haible  <bruno@clisp.org>
9389
9390         * lib/regexec.c (merge_state_with_log): Make static.
9391
9392 2007-03-25  Bruno Haible  <bruno@clisp.org>
9393
9394         * lib/trigl.c (kernel_rem_pio2): Make static.
9395
9396 2007-03-25  Bruno Haible  <bruno@clisp.org>
9397
9398         * lib/sincosl.c (sincosl_table): Make static.
9399
9400 2007-03-25  Bruno Haible  <bruno@clisp.org>
9401
9402         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
9403         if the compiler does not support C99.
9404
9405 2007-03-25  Bruno Haible  <bruno@clisp.org>
9406
9407         * modules/time (Makefile.am): Ensure all rule action lines start with a
9408         tab.
9409
9410 2007-03-24  Bruno Haible  <bruno@clisp.org>
9411
9412         * modules/tsearch-tests: New file.
9413         * tests/test-tsearch.sh: New file.
9414         * tests/test-tsearch.c: New file, mostly copied from glibc.
9415
9416         * modules/search-tests: New file.
9417         * tests/test-search.c: New file.
9418
9419         * modules/search: New file.
9420         * lib/search_.h: New file, incorporating lib/tsearch.h.
9421         * m4/search_h.m4: New file.
9422         * lib/tsearch.h: Remove file.
9423         * lib/tsearch.c: Include search.h instead of tsearch.h.
9424         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
9425         HAVE_TSEARCH.
9426         * modules/tsearch (Files): Remove lib/tsearch.h.
9427         (Depends-on): Add search.
9428         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
9429         (Include): Change tsearch.h into search.h.
9430
9431 2007-03-24  Bruno Haible  <bruno@clisp.org>
9432
9433         * modules/fpucw: New file.
9434         * lib/fpucw.h: New file.
9435         * lib/frexp.c: Include fpucw.h.
9436         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
9437         (FUNC): Use them.
9438         * lib/printf-frexp.c: Include fpucw.h.
9439         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
9440         (FUNC): Use them.
9441         * lib/vasnprintf.c: Include fpucw.h.
9442         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
9443         'long double' calculations.
9444         * tests/test-frexpl.c: Include fpucw.h.
9445         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
9446         * tests/test-printf-frexpl.c: Include fpucw.h.
9447         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
9448         * modules/frexpl (Depends-on): Add fpucw.
9449         * modules/printf-frexpl (Depends-on): Likewise.
9450         * modules/fprintf-posix (Depends-on): Likewise.
9451         * modules/snprintf-posix (Depends-on): Likewise.
9452         * modules/sprintf-posix (Depends-on): Likewise.
9453         * modules/vasnprintf-posix (Depends-on): Likewise.
9454         * modules/vasprintf-posix (Depends-on): Likewise.
9455         * modules/vfprintf-posix (Depends-on): Likewise.
9456         * modules/vsnprintf-posix (Depends-on): Likewise.
9457         * modules/vsprintf-posix (Depends-on): Likewise.
9458         * modules/frexpl-tests (Depends-on): Likewise.
9459         * modules/printf-frexpl-tests (Depends-on): Likewise.
9460
9461 2007-03-24  Bruno Haible  <bruno@clisp.org>
9462
9463         * lib/float+.h: New file.
9464         * lib/isnan.c: Include float+.h.
9465         (SIZE): New macro.
9466         (FUNC): Compare only SIZE bytes of the value.
9467         * lib/vasnprintf.c: Include float+.h.
9468         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
9469         SIZEOF_LDBL or SIZEOF_DBL bytes.
9470         * modules/isnan-nolibm (Files): Add lib/float+.h.
9471         * modules/isnanl-nolibm (Files): Add lib/float+.h.
9472         * modules/isnanl (Files): Add lib/float+.h.
9473         * modules/vasnprintf (Files): Add lib/float+.h.
9474
9475 2007-03-24  Bruno Haible  <bruno@clisp.org>
9476
9477         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
9478         include isnanl-nolibm.h.
9479
9480 2007-03-24  Bruno Haible  <bruno@clisp.org>
9481
9482         * tests/test-read-file.c (main): Don't produce spurious output for
9483         expected situations. Make the test fail if it encountered unexpected
9484         results.
9485
9486 2007-03-24  Bruno Haible  <bruno@clisp.org>
9487
9488         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
9489         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
9490
9491 2007-03-24  Bruno Haible  <bruno@clisp.org>
9492
9493         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
9494
9495 2007-03-24  Bruno Haible  <bruno@clisp.org>
9496
9497         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
9498         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
9499
9500         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
9501         * modules/utf8-ucs4: Turn into a symbolic link to module
9502         unistr/u8-mbtouc.
9503
9504         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
9505         utf8-ucs4-unsafe.
9506         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
9507         unistr/u8-mbtouc-unsafe.
9508
9509         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
9510         * modules/utf16-ucs4: Turn into a symbolic link to module
9511         unistr/u16-mbtouc.
9512
9513         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
9514         utf16-ucs4-unsafe.
9515         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
9516         unistr/u16-mbtouc-unsafe.
9517
9518         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
9519         * modules/ucs4-utf8: Turn into a symbolic link to module
9520         unistr/u8-ubtomb.
9521
9522         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
9523         * modules/ucs4-utf16: Turn into a symbolic link to module
9524         unistr/u16-ubtomb.
9525
9526 2007-03-24  Bruno Haible  <bruno@clisp.org>
9527
9528         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
9529         Enable the function only if HAVE_INLINE.
9530         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
9531         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
9532         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
9533         Enable the function only if HAVE_INLINE.
9534         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
9535         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
9536         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
9537         Enable the function only if HAVE_INLINE.
9538         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
9539         Enable the function only if HAVE_INLINE.
9540         * modules/utf8-ucs4: Update.
9541         * modules/utf8-ucs4-unsafe: Update.
9542         * modules/utf16-ucs4: Update.
9543         * modules/utf16-ucs4-unsafe: Update.
9544         * modules/ucs4-utf8: Update.
9545         * modules/ucs4-utf16: Update.
9546
9547 2007-03-24  Bruno Haible  <bruno@clisp.org>
9548
9549         * lib/utf8-ucs4.h: Remove file.
9550         * lib/utf8-ucs4-unsafe.h: Remove file.
9551         * lib/utf16-ucs4.h: Remove file.
9552         * lib/utf16-ucs4-unsafe.h: Remove file.
9553         * lib/ucs4-utf8.h: Remove file.
9554         * lib/ucs4-utf16.h: Remove file.
9555         * lib/unistr.h: Include their previous contents.
9556         * m4/utf-ucs4.m4: Remove file.
9557         * m4/ucs4-utf.m4: Remove file.
9558         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
9559         (Depends-on): Add unistr/base.
9560         (configure.ac): Remove gl_UTF_UCS4.
9561         (Makefile.am): Update.
9562         (Include): Change to unistr.h.
9563         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
9564         (Depends-on): Add unistr/base.
9565         (configure.ac): Remove gl_UTF_UCS4.
9566         (Makefile.am): Update.
9567         (Include): Change to unistr.h.
9568         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
9569         (Depends-on): Add unistr/base.
9570         (configure.ac): Remove gl_UTF_UCS4.
9571         (Makefile.am): Update.
9572         (Include): Change to unistr.h.
9573         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
9574         (Depends-on): Add unistr/base.
9575         (configure.ac): Remove gl_UTF_UCS4.
9576         (Makefile.am): Update.
9577         (Include): Change to unistr.h.
9578         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
9579         (Depends-on): Add unistr/base.
9580         (configure.ac): Remove gl_UCS4_UTF.
9581         (Makefile.am): Update.
9582         (Include): Change to unistr.h.
9583         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
9584         (Depends-on): Add unistr/base.
9585         (configure.ac): Remove gl_UCS4_UTF.
9586         (Makefile.am): Update.
9587         (Include): Change to unistr.h.
9588         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
9589         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
9590         utf8-ucs4-unsafe.h.
9591         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
9592         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
9593         utf16-ucs4-unsafe.h.
9594         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
9595         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
9596         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
9597         * lib/unistr/u8-strchr.c: Likewise.
9598         * lib/unistr/u8-strrchr.c: Likewise.
9599         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
9600         * lib/unistr/u16-strchr.c: Likewise.
9601         * lib/unistr/u16-strrchr.c: Likewise.
9602         * lib/striconveh.c: Update.
9603         * lib/linebreak.c: Update.
9604
9605 2007-03-24  Bruno Haible  <bruno@clisp.org>
9606
9607         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
9608         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
9609
9610 2007-03-22  Bruno Haible  <bruno@clisp.org>
9611
9612         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
9613
9614 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
9615
9616         * MODULES.html.sh (File system functions): New module write-any-file.
9617         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
9618         * m4/write-any-file.m4: New files.
9619
9620 2007-03-23  Eric Blake  <ebb9@byu.net>
9621
9622         * gnulib-tool: Rearrange space-tab sequences, since some editors
9623         like to eat them.
9624
9625 2007-03-23  Eric Blake  <ebb9@byu.net>
9626
9627         * lib/version-etc.c (version_etc_va): Update license wording to
9628         be more concise.  Recommended by Richard Stallman.
9629
9630 2007-03-22  Bruno Haible  <bruno@clisp.org>
9631
9632         * lib/poll.c (MSG_PEEK): New fallback definition.
9633
9634 2007-03-22  Bruno Haible  <bruno@clisp.org>
9635
9636         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
9637         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
9638         (main): Update.
9639         Fixes a compilation error on BeOS.
9640
9641 2007-03-22  Bruno Haible  <bruno@clisp.org>
9642
9643         * modules/frexpl-tests: New file.
9644         * tests/test-frexpl.c: New file.
9645
9646         * modules/frexpl: New file.
9647         * m4/frexpl.m4: New file.
9648         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
9649         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
9650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
9651         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
9652         (Depends-on): Add frexpl. Remove isnanl-nolibm.
9653         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
9654
9655 2007-03-22  Bruno Haible  <bruno@clisp.org>
9656
9657         * lib/frexpl.c: Share code with lib/frexp.c.
9658         * modules/mathl (Files): Add lib/frexp.c.
9659         (Depends-on): Add isnanl-nolibm.
9660
9661 2007-03-22  Bruno Haible  <bruno@clisp.org>
9662
9663         * modules/printf-frexp (Files): Add m4/frexp.m4.
9664         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
9665         only if the found frexp function actually works.
9666
9667 2007-03-22  Bruno Haible  <bruno@clisp.org>
9668
9669         * lib/frexp.c: Remove older implementation that uses divisions.
9670
9671 2007-03-21  Bruno Haible  <bruno@clisp.org>
9672
9673         * modules/frexp-tests: New file.
9674         * tests/test-frexp.c: New file.
9675
9676         * modules/frexp: New file.
9677         * lib/frexp.c: New file.
9678         * m4/frexp.m4: New file.
9679         * lib/math_.h (frexp): New declaration.
9680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
9681         REPLACE_FREXP.
9682         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
9683
9684 2007-03-21  Bruno Haible  <bruno@clisp.org>
9685
9686         * modules/isnanl-tests: New file.
9687         * tests/test-isnanl.c: New file.
9688
9689         * modules/isnanl: New file.
9690         * lib/isnanl.h: New file.
9691         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
9692         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
9693         gl_FUNC_ISNANL_WORKS.
9694         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
9695         New macros.
9696
9697 2007-03-21  Bruno Haible  <bruno@clisp.org>
9698
9699         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
9700         lib/isnanl.h.
9701         (Include): Update.
9702         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
9703         * lib/vasnprintf.c: Update.
9704         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
9705         tests/test-isnanl.h, remove tests/test-isnanl.c.
9706         (Makefile.am): Update.
9707         * tests/test-isnanl-nolibm.c: New file.
9708         * tests/test-isnanl.h: New file.
9709         * tests/test-isnanl.c: Remove file.
9710
9711 2007-03-21  Jim Meyering  <jim@meyering.net>
9712
9713         When trying to open ".", treat ESTALE like EACCES.
9714         * lib/savewd.c (savewd_save): Resort to forking not just upon
9715         failure with EACCES, but also when errno is ESTALE.
9716
9717 2007-03-20  Bruno Haible  <bruno@clisp.org>
9718
9719         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
9720         Needed on AIX 5.1. Reported by Matthew Woehlke.
9721
9722 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9723
9724         Suggestions by Bruno Haible:
9725         * lib/acl-internal.h: Include "gettext.h" rather than rolling
9726         our own.
9727         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
9728         * modules/acl (Depends-on): Add gettext.
9729
9730 2007-03-19  Bruno Haible  <bruno@clisp.org>
9731
9732         * modules/iconvme: Remove file.
9733         * lib/iconvme.h: Remove file.
9734         * lib/iconvme.c: Remove file.
9735         * m4/iconvme.m4: Remove file.
9736
9737 2007-03-19  Bruno Haible  <bruno@clisp.org>
9738
9739         * doc/relocatable-maint.texi: Break long shell script line.
9740         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
9741
9742 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9743
9744         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
9745         handle file_has_acl.
9746         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
9747         * lib/acl.c: Move header inclusions and related macro defns into
9748         lib/acl-internal.h.
9749         (S_ISLNK): Remove defn, since that's now done for us.
9750         (file_has_acl): Move to lib/file-has-acl.c.
9751         Call acl_trivial if available.  This is the crucial part of the fix.
9752         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
9753         shared within the library.  Rewrite a bit, partly to make it compatible
9754         with the GNU coding style.
9755         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
9756         Remove unnecessary double-quotes.
9757         Don't test for acl_to_text; the build will catch that.
9758         Replace acl_entries if it doesn't exist and it is needed.
9759         Check for -lsec and acl_trivial (as used on Solaris 10).
9760         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
9761         lib/file-has-acl.c.
9762         (Depends-on): Add sys_stat, for S_ISLNK.
9763
9764 2007-03-19  Ben Pfaff  <blp@gnu.org>
9765
9766         * doc/gnulib.texi: Fix typos.
9767         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
9768
9769 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9770
9771         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
9772         If size is zero here, buf must be zero.
9773
9774 2007-03-19  Simon Josefsson  <simon@josefsson.org>
9775
9776         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
9777         <bruno@clisp.org>.
9778
9779 2007-03-18  Bruno Haible  <bruno@clisp.org>
9780
9781         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
9782         Suggested by Eric Blake.
9783
9784 2007-03-18  Ben Pfaff  <blp@gnu.org>
9785
9786         * doc/relocatable.texi: Recommend using as prefix a directory
9787         that does not exist and will never be created.  Based on
9788         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
9789         and others.
9790
9791 2007-03-17  Bruno Haible  <bruno@clisp.org>
9792
9793         * lib/fchownat.c: Include lchown.h.
9794
9795 2007-03-17  Bruno Haible  <bruno@clisp.org>
9796
9797         Fix endless loop when the given allocated size was > INT_MAX.
9798         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
9799         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
9800         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
9801         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
9802         * lib/sprintf.c (sprintf): Likewise.
9803
9804 2007-03-17  Bruno Haible  <bruno@clisp.org>
9805
9806         * tests/test-argp-2.sh (func_compare): Output a context diff.
9807
9808 2007-03-17  Bruno Haible  <bruno@clisp.org>
9809
9810         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
9811         locale's decimal-point character.
9812
9813 2007-03-17  Bruno Haible  <bruno@clisp.org>
9814
9815         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
9816         before comparing it. Needed because on some platforms (e.g. x86) a
9817         'long double' occupies less bytes than sizeof (long double).
9818
9819 2007-03-17  Bruno Haible  <bruno@clisp.org>
9820
9821         * tests/test-crc.c (main): Make printf statements 64-bit clean.
9822         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
9823         * tests/test-getaddrinfo.c (simple): Likewise.
9824         * tests/test-read-file.c (main): Likewise.
9825
9826 2007-03-17  Bruno Haible  <bruno@clisp.org>
9827
9828         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
9829
9830 2007-03-17  Bruno Haible  <bruno@clisp.org>
9831
9832         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
9833         unused variable.
9834
9835 2007-03-17  Bruno Haible  <bruno@clisp.org>
9836
9837         * tests/test-c-strcasecmp.c: Include c-strcase.h.
9838         * tests/test-c-strncasecmp.c: Likewise.
9839
9840 2007-03-17  Bruno Haible  <bruno@clisp.org>
9841
9842         * modules/stdlib (Depends-on): Add unistd.
9843         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
9844         Needed for MacOS X 10.3.
9845
9846 2007-03-17  Bruno Haible  <bruno@clisp.org>
9847
9848         * lib/unistr/u-strdup.h: Include <stdlib.h>.
9849
9850 2007-03-17  Bruno Haible  <bruno@clisp.org>
9851
9852         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
9853
9854 2007-03-17  Bruno Haible  <bruno@clisp.org>
9855
9856         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
9857         to reflect files copied from gnulib (with or without modifications).
9858         Suggested by Jim Meyering.
9859
9860 2007-03-17  Eric Blake  <ebb9@byu.net>
9861
9862         * NEWS: Document stdlib change from 2007-02-18.
9863
9864 2007-03-17  Jim Meyering  <jim@meyering.net>
9865
9866         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
9867         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
9868         someone uses a name containing shell meta-characters.
9869         Reported by Alfred M. Szmidt.
9870
9871         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
9872
9873 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
9874
9875         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
9876         and copy gettext configuration files only if configure.ac contains
9877         a use of AM_GNU_GETTEXT_VERSION.
9878
9879 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
9880
9881         * build-aux/bootstrap (gnulib_name): New variable.
9882         (gnulib_tool_options): Use it.
9883
9884 2007-03-13  Simon Josefsson  <simon@josefsson.org>
9885
9886         * tests/test-des.c: Use new namespace.
9887
9888 2007-03-15  Bruno Haible  <bruno@clisp.org>
9889
9890         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
9891         Reported by James Youngman <jay@gnu.org>.
9892
9893 2007-03-15  Bruno Haible  <bruno@clisp.org>
9894
9895         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
9896         declared prototype. Needed with cc on OSF/1 5.1.
9897
9898 2007-03-15  Bruno Haible  <bruno@clisp.org>
9899
9900         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
9901         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
9902         (struct gl_list_implementation): Add dispose_fn argument to the
9903         'create_empty', 'create' methods.
9904         (struct gl_list_impl_base): Add field 'dispose_fn'.
9905         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
9906         argument.
9907         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
9908         dispose_fn argument.
9909         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
9910         dispose_fn on the dropped values.
9911         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
9912         dispose_fn argument.
9913         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
9914         dropped values.
9915         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
9916         (gl_tree_remove_node): Call dispose_fn on the dropped value.
9917         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
9918         (gl_tree_remove_node): Call dispose_fn on the dropped value.
9919         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
9920         argument.
9921         (gl_tree_list_free): Call dispose_fn on the dropped values.
9922         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
9923         the dropped values.
9924         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
9925         Add dispose_fn argument.
9926         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
9927         Call dispose_fn on the dropped values.
9928         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
9929         Add dispose_fn argument.
9930         (gl_sublist_create): Initialize the 'dispose_fn' field.
9931         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
9932         * tests/test-array_list.c (main): Update.
9933         * tests/test-carray_list.c (main): Update.
9934         * tests/test-avltree_list.c (main): Update.
9935         * tests/test-rbtree_list.c (main): Update.
9936         * tests/test-avltreehash_list.c (main): Update.
9937         * tests/test-rbtreehash_list.c (main): Update.
9938         * tests/test-linked_list.c (main): Update.
9939         * tests/test-linkedhash_list.c (main): Update.
9940         * tests/test-array_oset.c (main): Update.
9941
9942 2007-03-15  Bruno Haible  <bruno@clisp.org>
9943
9944         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
9945         (gl_oset_create_empty): Add dispose_fn argument.
9946         (struct gl_oset_implementation): Add dispose_fn argument to
9947         'create_empty' method.
9948         (struct gl_oset_impl_base): Add dispose_fn field.
9949         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
9950         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
9951         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
9952         values.
9953         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
9954         (gl_tree_oset_free): Call dispose_fn on the dropped values.
9955         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
9956         dropped value.
9957         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
9958         dropped value.
9959         * tests/test-array_oset.c (main): Update.
9960         * tests/test-avltree_oset.c (main): Update.
9961         * tests/test-rbtree_oset.c (main): Update.
9962         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
9963
9964 2007-03-13  Bruno Haible  <bruno@clisp.org>
9965
9966         * tests/test-stdbool.c (i): Update after last patch.
9967
9968 2007-03-12  Bruno Haible  <bruno@clisp.org>
9969
9970         * lib/quotearg.c: Include <wctype.h> early, before the definition of
9971         the iswprint macro. Needed on Solaris 2.5.1.
9972
9973 2007-03-12  Bruno Haible  <bruno@clisp.org>
9974
9975         * tests/test-printf-frexp.c (main): Declare x as volatile.
9976
9977 2007-03-12  Simon Josefsson  <simon@josefsson.org>
9978
9979         * doc/gnulib.texi (Build robot for gnulib): New section.
9980
9981 2007-03-12  Jim Meyering  <jim@meyering.net>
9982
9983         * build-aux/bootstrap: New file.
9984         * build-aux/bootstrap.conf: New file, from coreutils.
9985
9986 2007-03-11  Bruno Haible  <bruno@clisp.org>
9987
9988         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
9989
9990 2007-03-12  Simon Josefsson  <simon@josefsson.org>
9991
9992         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
9993         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
9994         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
9995
9996 2007-03-11  Bruno Haible  <bruno@clisp.org>
9997
9998         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
9999         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
10000
10001 2007-03-11  Bruno Haible  <bruno@clisp.org>
10002
10003         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
10004         formula. Needed for SunPRO C 5.0.
10005
10006 2007-03-11  Bruno Haible  <bruno@clisp.org>
10007
10008         * modules/long-options (Depends-on): Add getopt.
10009
10010 2007-03-11  Bruno Haible  <bruno@clisp.org>
10011
10012         * modules/modechange (Depends-on): Add stdbool.
10013
10014 2007-03-11  Bruno Haible  <bruno@clisp.org>
10015
10016         * modules/i-ring (Depends-on): Add stdbool.
10017
10018 2007-03-11  Bruno Haible  <bruno@clisp.org>
10019
10020         * modules/gc-des (Depends-on): Add stdbool.
10021
10022 2007-03-11  Bruno Haible  <bruno@clisp.org>
10023
10024         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
10025
10026 2007-03-11  Bruno Haible  <bruno@clisp.org>
10027
10028         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
10029
10030 2007-03-11  Bruno Haible  <bruno@clisp.org>
10031
10032         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
10033
10034 2007-03-11  Bruno Haible  <bruno@clisp.org>
10035
10036         * lib/vasnprintf.c (sprintf): Undefine.
10037
10038 2007-03-11  Bruno Haible  <bruno@clisp.org>
10039
10040         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
10041         initializers in SunPRO C and Compaq C compilers.
10042
10043 2007-03-11  Bruno Haible  <bruno@clisp.org>
10044
10045         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
10046         decrementing code ANSI C compliant.
10047
10048 2007-03-11  Bruno Haible  <bruno@clisp.org>
10049
10050         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
10051         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
10052
10053 2007-03-11  Bruno Haible  <bruno@clisp.org>
10054
10055         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
10056         <stdbool.h> substitute doesn't pass.
10057
10058 2007-03-11  Bruno Haible  <bruno@clisp.org>
10059
10060         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
10061
10062 2007-03-11  Bruno Haible  <bruno@clisp.org>
10063
10064         * gnulib-tool (func_create_megatestdir): Create also an autobuild
10065         script, for submission to autobuild.josefsson.org.
10066
10067 2007-03-10  Bruno Haible  <bruno@clisp.org>
10068
10069         * modules/canonicalize-lgpl-tests: New file.
10070         * tests/test-canonicalize-lgpl.sh: New file.
10071         * tests/test-canonicalize-lgpl.c: New file.
10072
10073         * modules/c-strcase-tests: New file.
10074         * tests/test-c-strcase.sh: New file.
10075         * tests/test-c-strcasecmp.c: New file.
10076         * tests/test-c-strncasecmp.c: New file.
10077
10078         * modules/atexit-tests: New file.
10079         * tests/test-atexit.sh: New file.
10080         * tests/test-atexit.c: New file.
10081
10082 2007-03-10  Bruno Haible  <bruno@clisp.org>
10083
10084         * tests/test-binary-io.sh: Use temporary filenames that are not so
10085         likely to clash with those of other tests (in a parallel make).
10086         * tests/test-binary-io.c: Likewise.
10087
10088 2007-03-10  Bruno Haible  <bruno@clisp.org>
10089
10090         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
10091         fallback; use #error instead.
10092         Suggested by Simon Josefsson.
10093
10094 2007-03-10  Bruno Haible  <bruno@clisp.org>
10095
10096         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
10097         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
10098         first and the last.
10099
10100 2007-03-10  Bruno Haible  <bruno@clisp.org>
10101
10102         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
10103
10104 2007-03-10  Bruno Haible  <bruno@clisp.org>
10105
10106         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
10107         "make distcheck".
10108         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
10109         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
10110         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
10111
10112 2007-03-10  Bruno Haible  <bruno@clisp.org>
10113
10114         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
10115         variable.
10116         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
10117         variable.
10118
10119 2007-03-09  Eric Blake  <ebb9@byu.net>
10120         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
10121
10122         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
10123         types are not being provided by gnulib.
10124         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
10125         types are supported.
10126
10127 2007-03-10  Bruno Haible  <bruno@clisp.org>
10128
10129         * lib/stdio_.h (__attribute__): New macro.
10130         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
10131         vsprintf): Specify __attribute__ __format__ for GCC.
10132         Suggested by Eric Blake.
10133
10134 2007-03-09  Bruno Haible  <bruno@clisp.org>
10135
10136         * modules/printf-posix-tests: New file.
10137         * tests/test-printf-posix.sh: New file.
10138         * tests/test-printf-posix.c: New file.
10139
10140         * modules/printf-posix: New file.
10141         * lib/printf.c: New file.
10142         * m4/printf-posix-rpl.m4: New file.
10143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
10144         REPLACE_PRINTF.
10145         * lib/stdio_.h (printf): New declaration.
10146         (format, __format__, ____printf____, ____scanf____, ____strftime____,
10147         ____strfmon____): New macros.
10148         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
10149         REPLACE_PRINTF.
10150
10151 2007-03-09  Bruno Haible  <bruno@clisp.org>
10152
10153         * tests/test-vasnprintf-posix2.sh: New file.
10154         * tests/test-vasnprintf-posix2.c: New file.
10155         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
10156         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
10157         (Makefile.am): Activate test-vasnprintf-posix2.sh.
10158
10159         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
10160         a locale dependent decimal point, rather than always '.'.
10161
10162 2007-03-09  Eric Blake  <ebb9@byu.net>
10163
10164         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
10165         spite of platforms like Tandem/NSK that define it to -1.
10166
10167 2007-03-08  Bruno Haible  <bruno@clisp.org>
10168
10169         * modules/vprintf-posix-tests: New file.
10170         * tests/test-vprintf-posix.sh: New file.
10171         * tests/test-vprintf-posix.c: New file.
10172         * tests/test-printf-posix.h: New file.
10173
10174         * modules/vprintf-posix: New file.
10175         * lib/vprintf.c: New file.
10176         * m4/vprintf-posix.m4: New file.
10177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
10178         REPLACE_VPRINTF.
10179         * lib/stdio_.h (vprintf): New declaration.
10180         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
10181         REPLACE_VPRINTF.
10182
10183 2007-03-08  Bruno Haible  <bruno@clisp.org>
10184
10185         * modules/fprintf-posix-tests: New file.
10186         * tests/test-fprintf-posix.sh: New file.
10187         * tests/test-fprintf-posix.c: New file.
10188
10189         * modules/fprintf-posix: New file.
10190         * lib/fprintf.c: New file.
10191         * m4/fprintf-posix.m4: New file.
10192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
10193         REPLACE_FPRINTF.
10194         * lib/stdio_.h (fprintf): New declaration.
10195         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
10196         REPLACE_FPRINTF.
10197
10198 2007-03-08  Bruno Haible  <bruno@clisp.org>
10199
10200         * modules/vfprintf-posix-tests: New file.
10201         * tests/test-vfprintf-posix.sh: New file.
10202         * tests/test-vfprintf-posix.c: New file.
10203         * tests/test-fprintf-posix.h: New file.
10204         * tests/test-fprintf-posix.out: New file.
10205
10206         * modules/vfprintf-posix: New file.
10207         * lib/vfprintf.c: New file.
10208         * m4/vfprintf-posix.m4: New file.
10209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
10210         REPLACE_VFPRINTF.
10211         * lib/stdio_.h (vfprintf): New declaration.
10212         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
10213         REPLACE_VFPRINTF.
10214
10215 2007-03-08  Bruno Haible  <bruno@clisp.org>
10216
10217         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
10218
10219 2007-03-08  Bruno Haible  <bruno@clisp.org>
10220
10221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
10222         instead of 'expr' invocations.
10223         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10228         Suggested by Paul Eggert.
10229
10230 2007-03-08  Bruno Haible  <bruno@clisp.org>
10231
10232         * modules/fseterr-tests: New file.
10233         * tests/test-fseterr.c: New file.
10234
10235         * modules/fseterr: New file.
10236         * lib/fseterr.h: New file.
10237         * lib/fseterr.c: New file.
10238
10239 2007-03-08  Bruno Haible  <bruno@clisp.org>
10240
10241         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
10242         * lib/getopt_.h: Likewise.
10243         * lib/mbswidth.h: Likewise.
10244         * lib/setenv.h: Likewise.
10245         * lib/vasnprintf.h: Likewise.
10246         * lib/vasprintf.h: Likewise.
10247         * lib/verror.h: Likewise.
10248         * lib/xsetenv.h: Likewise.
10249         * lib/xvasprintf.h: Likewise.
10250
10251 2007-03-08  Jim Meyering  <jim@meyering.net>
10252
10253         * users.txt: Add parted.
10254
10255         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
10256
10257 2007-03-07  Bruno Haible  <bruno@clisp.org>
10258
10259         * m4/printf.m4: Make the shell script snippets copy&pastable.
10260
10261 2007-03-02  Bruno Haible  <bruno@clisp.org>
10262
10263         * lib/netinet_in_.h: New file.
10264         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
10265         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
10266         * modules/netinet_in (Files): Add lib/netinet_in_.h.
10267         (Depends-on): Add absolute-header.
10268         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
10269         into netinet/in.h.
10270
10271 2007-03-03  Bruno Haible  <bruno@clisp.org>
10272
10273         * lib/sys_select_.h: New file.
10274         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
10275         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
10276         * modules/sys_select (Files): Add lib/sys_select_.h.
10277         (Depends-on): Add absolute-header.
10278         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
10279         into sys/select.h.
10280
10281 2007-03-02  Bruno Haible  <bruno@clisp.org>
10282
10283         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
10284         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
10285         values.
10286         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
10287         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
10288         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
10289         * modules/sys_socket (Depends-on): Add absolute-header.
10290         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
10291         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
10292         (Include): Remove requirement of inclusion of <sys/types.h>.
10293
10294 2007-03-02  Bruno Haible  <bruno@clisp.org>
10295
10296         * lib/byteswap_.h (bswap_32): Fix formula.
10297
10298 2007-03-06  Bruno Haible  <bruno@clisp.org>
10299
10300         * modules/sprintf-posix-tests: New file.
10301         * tests/test-sprintf-posix.c: New file.
10302
10303         * modules/sprintf-posix: New file.
10304         * lib/sprintf.c: New file.
10305         * m4/sprintf-posix.m4: New file.
10306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
10307         REPLACE_SPRINTF.
10308         * lib/stdio_.h (sprintf): New declaration.
10309         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
10310         REPLACE_SPRINTF.
10311
10312 2007-03-06  Bruno Haible  <bruno@clisp.org>
10313
10314         * modules/vsprintf-posix-tests: New file.
10315         * tests/test-vsprintf-posix.c: New file.
10316         * tests/test-sprintf-posix.h: New file.
10317
10318         * modules/vsprintf-posix: New file.
10319         * lib/vsprintf.c: New file.
10320         * m4/vsprintf-posix.m4: New file.
10321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
10322         REPLACE_VSPRINTF.
10323         * lib/stdio_.h (vsprintf): New declaration.
10324         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
10325         REPLACE_VSPRINTF.
10326
10327 2007-03-06  Bruno Haible  <bruno@clisp.org>
10328
10329         * modules/vsnprintf (Depend-on): Remove minmax.
10330
10331 2007-03-06  Bruno Haible  <bruno@clisp.org>
10332
10333         * modules/snprintf-posix-tests: New file.
10334         * tests/test-snprintf-posix.c: New file.
10335
10336         * modules/snprintf-posix: New file.
10337         * m4/snprintf-posix.m4: New file.
10338         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
10339         gl_FUNC_SNPRINTF.
10340         (gl_FUNC_SNPRINTF): Invoke it.
10341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
10342         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
10343         is set.
10344         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
10345
10346 2007-03-06  Bruno Haible  <bruno@clisp.org>
10347
10348         * modules/vsnprintf-posix-tests: New file.
10349         * tests/test-vsnprintf-posix.c: New file.
10350         * tests/test-snprintf-posix.h: New file.
10351
10352         * modules/vsnprintf-posix: New file.
10353         * m4/vsnprintf-posix.m4: New file.
10354         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
10355         gl_FUNC_VSNPRINTF.
10356         (gl_FUNC_VSNPRINTF): Invoke it.
10357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
10358         * lib/stdio_.h (vsnprintf): Define as a replacement if
10359         REPLACE_VSNPRINTF is set.
10360         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
10361
10362 2007-03-06  Bruno Haible  <bruno@clisp.org>
10363
10364         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
10365         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
10366
10367 2007-03-06  Bruno Haible  <bruno@clisp.org>
10368
10369         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
10370         (asinl): Declare also if HAVE_DECL_ASINL is set.
10371         (atanl): Declare also if HAVE_DECL_ATANL is set.
10372         (ceill): Declare also if HAVE_DECL_CEILL is set.
10373         (cosl): Declare also if HAVE_DECL_COSL is set.
10374         (expl): Declare also if HAVE_DECL_EXPL is set.
10375         (floorl): Declare also if HAVE_DECL_FLOORL is set.
10376         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
10377         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
10378         (logl): Declare also if HAVE_DECL_LOGL is set.
10379         (sinl): Declare also if HAVE_DECL_SINL is set.
10380         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
10381         (tanl): Declare also if HAVE_DECL_TANL is set.
10382         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
10383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
10384         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
10385         declaration of frexpl, ldexpl.
10386         * modules/printf-frexpl (Depends-on): Add math.
10387         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
10388
10389 2007-03-05  Bruno Haible  <bruno@clisp.org>
10390
10391         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
10392         frexpl and ldexpl are declared.
10393         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
10394
10395 2007-03-05  Bruno Haible  <bruno@clisp.org>
10396
10397         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
10398         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
10399
10400 2007-03-05  Bruno Haible  <bruno@clisp.org>
10401
10402         * lib/stdio_.h: Include <stddef.h>.
10403
10404 2007-03-05  Bruno Haible  <bruno@clisp.org>
10405
10406         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
10407
10408 2007-03-05  Bruno Haible  <bruno@clisp.org>
10409
10410         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
10411         NetBSD 4, from Ralf Wildenhues.
10412
10413 2007-03-04  Bruno Haible  <bruno@clisp.org>
10414
10415         * lib/vasprintf.h: Update #if logic for the case when the functions
10416         exist but are overridden.
10417
10418 2007-03-04  Bruno Haible  <bruno@clisp.org>
10419
10420         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
10421         implementations: glibc-2.4 and MacOS X 10.3.
10422         * tests/test-vasnprintf-posix.c (test_function): Test also the case
10423         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
10424         * tests/test-vasprintf-posix.c (test_function): Likewise.
10425
10426 2007-03-04  Bruno Haible  <bruno@clisp.org>
10427
10428         * modules/vasprintf-posix-tests: New file.
10429         * tests/test-vasprintf-posix.c: New file.
10430
10431         * modules/vasprintf-posix: New file.
10432         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
10433         defined.
10434         * m4/vasprintf-posix.m4: New file.
10435         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
10436         gl_FUNC_VASPRINTF.
10437         (gl_FUNC_VASPRINTF): Invoke it.
10438         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
10439         here.
10440         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
10441
10442 2007-03-04  Bruno Haible  <bruno@clisp.org>
10443
10444         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
10445         REPLACE_GETTIMEOFDAY.
10446         * modules/sys_time (Makefile.am): Likewise.
10447         * m4/sys_time_h.m4: Likewise.
10448         * m4/gettimeofday.m4: Likewise.
10449
10450 2007-03-04  Bruno Haible  <bruno@clisp.org>
10451
10452         * modules/vasnprintf-posix-tests: New file.
10453         * tests/test-vasnprintf-posix.c: New file.
10454
10455         * modules/vasnprintf-posix: New file.
10456         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
10457         printf-frexpl.h.
10458         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
10459         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
10460         REPLACE_VASNPRINTF is defined.
10461         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
10462         gl_FUNC_VASNPRINTF.
10463         (gl_FUNC_VASNPRINTF): Invoke it.
10464         * m4/vasnprintf-posix.m4: New file.
10465         * m4/printf.m4: New file.
10466
10467 2007-03-04  Bruno Haible  <bruno@clisp.org>
10468
10469         Compile progreloc.c only if --enable-relocatable is specified.
10470         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
10471         if --enable-relocatable was specified.
10472         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
10473         lib_SOURCES.
10474
10475 2007-03-04  Jim Meyering  <jim@meyering.net>
10476
10477         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
10478         Use it consistently, rather than enumerating errno constants.
10479
10480 2007-03-04  Bruno Haible  <bruno@clisp.org>
10481
10482         * modules/xvasprintf-tests: New file.
10483         * tests/test-xvasprintf.c: New file.
10484
10485         * modules/vasprintf-tests: New file.
10486         * tests/test-vasprintf.c: New file.
10487
10488         * modules/vasnprintf-tests: New file.
10489         * tests/test-vasnprintf.c: New file.
10490
10491         * modules/vsnprintf-tests: New file.
10492         * tests/test-vsnprintf.c: New file.
10493
10494         * modules/snprintf-tests: New file.
10495         * tests/test-snprintf.c: New file.
10496
10497 2007-03-04  Bruno Haible  <bruno@clisp.org>
10498
10499         Compile relocatable.c only if --enable-relocatable is specified.
10500         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
10501         gl_RELOCATABLE_LIBRARY.
10502         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
10503         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
10504         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
10505         gl_RELOCATABLE_LIBRARY.
10506         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
10507         (Makefile.am): Remove lib_SOURCES.
10508         * modules/relocatable-lib-lgpl (configure.ac): Invoke
10509         gl_RELOCATABLE_LIBRARY.
10510         (Makefile.am): Remove lib_SOURCES.
10511         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
10512         always.
10513         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10514         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
10515
10516 2007-03-04  Bruno Haible  <bruno@clisp.org>
10517
10518         * modules/argmatch-tests: New file.
10519         * tests/test-argmatch.c: New file.
10520
10521         * tests/test-allocsa.c (main): Halve the number of loop runs.
10522
10523         * modules/alloca-opt-tests: New file.
10524         * tests/test-alloca-opt.c: New file.
10525
10526 2007-03-04  Jim Meyering  <jim@meyering.net>
10527
10528         Work around difference between Linux ACLs and Solaris 10 ZFS.
10529         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
10530         for EINVAL.
10531
10532 2007-03-03  Bruno Haible  <bruno@clisp.org>
10533
10534         * modules/relocatable-prog (Depends-on): Add back progreloc's
10535         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
10536
10537 2007-03-03  Bruno Haible  <bruno@clisp.org>
10538
10539         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
10540         * modules/relocatable-lib: New file.
10541
10542 2007-03-03  Bruno Haible  <bruno@clisp.org>
10543
10544         * modules/relocatable-prog: Renamed from modules/relocatable.
10545         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
10546
10547 2007-03-03  Bruno Haible  <bruno@clisp.org>
10548
10549         * modules/relocatable-script (Files): Add doc/relocatable.texi,
10550         m4/relocatable-lib.m4.
10551         (Depends-on): Remove 'relocatable'.
10552         (configure.ac): Add gl_RELOCATABLE_NOP.
10553
10554 2007-03-03  Bruno Haible  <bruno@clisp.org>
10555
10556         * modules/relocatable-prog-wrapper: New file.
10557         * modules/relocatable (Depends-on): Add it. Remove all other
10558         dependencies except progname.
10559         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
10560
10561         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
10562         (gl_FUNC_STRERROR): Nop.
10563         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
10564
10565         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
10566         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
10567
10568         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
10569         (gl_FUNC_READLINK): Update.
10570
10571         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
10572
10573 2007-03-03  Bruno Haible  <bruno@clisp.org>
10574
10575         * lib/xreadlink.c: Include <unistd.h> unconditionally.
10576         * modules/xreadlink (Depends-on): Add unistd.
10577         * modules/xreadlink-with-size (Depends-on): Likewise.
10578
10579 2007-03-03  Bruno Haible  <bruno@clisp.org>
10580
10581         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
10582         extracted from gt_FUNC_SETENV.
10583         (gt_FUNC_SETENV): Remove macro.
10584         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
10585         remove gt_FUNC_SETENV.
10586
10587 2007-03-03  Bruno Haible  <bruno@clisp.org>
10588
10589         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
10590         ENABLE_RELOCATABLE here.
10591         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
10592
10593 2007-03-03  Bruno Haible  <bruno@clisp.org>
10594
10595         * modules/rbtreehash-list-tests (Depends-on): Add progname.
10596         * tests/test-rbtreehash_list.c: Include progname.h.
10597         (main): Call set_program_name.
10598
10599         * modules/rbtree-oset-tests (Depends-on): Add progname.
10600         * tests/test-rbtree_oset.c: Include progname.h.
10601         (main): Call set_program_name.
10602
10603         * modules/rbtree-list-tests (Depends-on): Add progname.
10604         * tests/test-rbtree_list.c: Include progname.h.
10605         (main): Call set_program_name.
10606
10607         * modules/linked-list-tests (Depends-on): Add progname.
10608         * tests/test-linked_list.c: Include progname.h.
10609         (main): Call set_program_name.
10610
10611 2007-03-03  Bruno Haible  <bruno@clisp.org>
10612
10613         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
10614         All uses of __restrict changed to _Restrict_.
10615         * lib/glob_.h (__restrict): Remove macro.
10616
10617 2007-03-02  Bruno Haible  <bruno@clisp.org>
10618
10619         * modules/gettext (configure.ac): Require gettext infrastructure
10620         from version 0.16.1.
10621
10622 2007-03-02  Bruno Haible  <bruno@clisp.org>
10623
10624         * modules/linkedhash-list-tests (Depends-on): Add progname.
10625         * tests/test-linkedhash_list.c: Include progname.h.
10626         (main): Call set_program_name.
10627
10628         * modules/carray-list-tests (Depends-on): Add progname.
10629         * tests/test-carray_list.c: Include progname.h.
10630         (main): Call set_program_name.
10631
10632         * modules/avltreehash-list-tests (Depends-on): Add progname.
10633         * tests/test-avltreehash_list.c: Include progname.h.
10634         (main): Call set_program_name.
10635
10636         * modules/avltree-oset-tests (Depends-on): Add progname.
10637         * tests/test-avltree_oset.c: Include progname.h.
10638         (main): Call set_program_name.
10639
10640         * modules/avltree-list-tests (Depends-on): Add progname.
10641         * tests/test-avltree_list.c: Include progname.h.
10642         (main): Call set_program_name.
10643
10644         * modules/array-oset-tests (Depends-on): Add progname.
10645         * tests/test-array_oset.c: Include progname.h.
10646         (main): Call set_program_name.
10647
10648         * modules/array-list-tests (Depends-on): Add progname.
10649         * tests/test-array_list.c: Include progname.h.
10650         (main): Call set_program_name.
10651
10652         * modules/argp-tests (Depends-on): Add progname.
10653         * tests/test-argp.c: Include argp.h first. Include progname.h.
10654         (main): Call set_program_name.
10655
10656 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
10657
10658         * doc/gnulib-tool.texi (Initial import): Reword description of
10659         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
10660         limited effect even if defined after the first system include.
10661
10662 2007-03-01  Bruno Haible  <bruno@clisp.org>
10663
10664         * build-aux/config.libpath: Update to libtool-1.5.22.
10665         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10666
10667 2007-03-01  Bruno Haible  <bruno@clisp.org>
10668
10669         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
10670         foo_CFLAGS.
10671         Reported by Ralf Wildenhues.
10672
10673 2007-03-01  Bruno Haible  <bruno@clisp.org>
10674
10675         * build-aux/install-reloc: Remove object files left over by some
10676         compilers.
10677         Reported by Ralf Wildenhues.
10678
10679 2007-03-01  Bruno Haible  <bruno@clisp.org>
10680
10681         * build-aux/install-reloc: Break long lines.
10682
10683 2007-03-01  Bruno Haible  <bruno@clisp.org>
10684
10685         * doc/relocatable.texi: Document that it may not work on OpenBSD.
10686         Reported by Ralf Wildenhues.
10687
10688 2007-03-01  Bruno Haible  <bruno@clisp.org>
10689
10690         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
10691         include ordering constraints.
10692
10693 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
10694
10695         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
10696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
10697         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
10698         as another example.
10699         * lib/time_.h: Fix misspelling.
10700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
10701         Require gl_HEADER_TIME_H_DEFAULTS.
10702         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
10703         * m4/time_r.m4 (gl_TIME_R): Likewise.
10704         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
10705
10706 2007-03-01  Bruno Haible  <bruno@clisp.org>
10707
10708         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
10709         * m4/utimens.m4 (gl_UTIMENS): Likewise.
10710
10711 2007-03-01  Jim Meyering  <jim@meyering.net>
10712
10713         * modules/xreadlink (Maintainer): Add my name.
10714         * modules/xreadlink-with-size (Depends-on): Alphabetize.
10715
10716 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
10717             Bruno Haible  <bruno@clisp.org>
10718
10719         * build-aux/install-reloc: Compile also c-ctype.c.
10720         * build-aux/relocatable.sh.in: New file.
10721         * doc/relocatable.texi: New file.
10722         * doc/relocatable-maint.texi: New file.
10723         * doc/gnulib.texi: Include relocatable-maint.texi.
10724         * lib/progreloc.c: Include unistd.h unconditionally.
10725         * lib/relocwrapper.c: Include unistd.h unconditionally.
10726         Include c-ctype.h.
10727         (add_dotbin): Use c_tolower.
10728         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
10729         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
10730         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
10731         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
10732         to m4/relocatable-lib.m4.
10733         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
10734         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
10735         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
10736         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
10737         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
10738         * modules/relocatable: New file.
10739         * modules/relocatable-lib: New file.
10740         * modules/relocatable-script: New file.
10741
10742 2007-02-28  Bruno Haible  <bruno@clisp.org>
10743
10744         Import --enable-relocatable infrastructure.
10745         * build-aux/config.libpath: New file, from GNU gettext.
10746         * build-aux/install-reloc: New file, from GNU gettext.
10747         * build-aux/reloc-ldflags: New file, from GNU gettext.
10748         * lib/relocatable.h: New file, from GNU gettext.
10749         * lib/relocatable.c: New file, from GNU gettext.
10750         * lib/relocwrapper.c: New file, from GNU gettext.
10751         * m4/relocatable.m4: New file, from GNU gettext.
10752
10753 2007-02-28  Bruno Haible  <bruno@clisp.org>
10754
10755         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
10756
10757         * modules/xreadlink: New file, from GNU gettext with modifications.
10758         * lib/xreadlink.c: New file, from GNU gettext.
10759         * lib/xreadlink.h: Add comments.
10760         (xreadlink): New declaration.
10761
10762         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
10763         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
10764         lib/xreadlink-with-size.c.
10765         (configure.ac): Remove gl_XREADLINK invocation.
10766         (Makefile.am): Augment lib_SOURCES.
10767         * m4/xreadlink.m4: Remove file.
10768         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
10769         (xreadlink_with_size): Renamed from xreadink.
10770         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
10771         * modules/canonicalize (Depends-on): Replace xreadlink with
10772         xreadlink-with-size.
10773         * lib/canonicalize.c (canonicalize_filename_mode): Update.
10774
10775 2007-02-25  Jim Meyering  <jim@meyering.net>
10776
10777         * build-aux/announce-gen: When complaining about excess arguments,
10778         list them.
10779
10780 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10781
10782         * README: Document signed integer overflow situation more
10783         accurately.
10784
10785 2007-02-25  Bruno Haible  <bruno@clisp.org>
10786
10787         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
10788         'a' or 'A' conversion.
10789
10790 2007-02-25  Bruno Haible  <bruno@clisp.org>
10791
10792         * modules/filename: Renamed from modules/pathname.
10793         (Files): Replace lib/pathname.h with lib/filename.h. Replace
10794         lib/concatpath.c with lib/concat-filename.c.
10795         (Makefile.am): Update.
10796         (Include): Replace pathname.h with filename.h.
10797         * lib/filename.h: Renamed from lib/pathname.h.
10798         (concatenated_filename): Renamed from concatenated_pathname.
10799         * lib/concat-filename.c: Renamed from lib/concatpath.c.
10800         (concatenated_filename): Renamed from concatenated_pathname.
10801         * lib/findprog.c: Include filename.h instead of pathname.h.
10802         (find_in_path): Update.
10803         * lib/javacomp.c: Include filename.h instead of pathname.h.
10804         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
10805         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
10806         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
10807         is_oldgcj_14_13_usable, is_javac_usable): Update.
10808         * lib/javaexec.c: Include filename.h instead of pathname.h.
10809         (execute_java_class): Update.
10810         * modules/findprog: Update.
10811         * modules/javacomp: Update.
10812         * modules/javaexec: Update.
10813         * MODULES.html.sh (File system functions): Add 'filename', remove
10814         'pathname'.
10815
10816 2007-02-25  Bruno Haible  <bruno@clisp.org>
10817
10818         * modules/printf-frexpl-tests: New file.
10819         * tests/test-printf-frexpl.c: New file.
10820
10821         * modules/printf-frexpl: New file.
10822         * lib/printf-frexpl.h: New file.
10823         * lib/printf-frexpl.c: New file.
10824         * m4/printf-frexpl.m4: New file.
10825
10826 2007-02-25  Bruno Haible  <bruno@clisp.org>
10827
10828         * modules/printf-frexp-tests: New file.
10829         * tests/test-printf-frexp.c: New file.
10830
10831         * modules/printf-frexp: New file.
10832         * lib/printf-frexp.h: New file.
10833         * lib/printf-frexp.c: New file.
10834         * m4/printf-frexp.m4: New file.
10835
10836 2007-02-25  Bruno Haible  <bruno@clisp.org>
10837
10838         Assume automake >= 1.10 for the tests.
10839         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
10840         * modules/arctwo-tests: Likewise.
10841         * modules/argp-tests: Likewise.
10842         * modules/avltree-list-tests: Likewise.
10843         * modules/avltree-oset-tests: Likewise.
10844         * modules/avltreehash-list-tests: Likewise.
10845         * modules/carray-list-tests: Likewise.
10846         * modules/crc-tests: Likewise.
10847         * modules/des-tests: Likewise.
10848         * modules/gc-arcfour-tests: Likewise.
10849         * modules/gc-arctwo-tests: Likewise.
10850         * modules/gc-des-tests: Likewise.
10851         * modules/gc-hmac-md5-tests: Likewise.
10852         * modules/gc-hmac-sha1-tests: Likewise.
10853         * modules/gc-md2-tests: Likewise.
10854         * modules/gc-md4-tests: Likewise.
10855         * modules/gc-md5-tests: Likewise.
10856         * modules/gc-pbkdf2-sha1-tests: Likewise.
10857         * modules/gc-rijndael-tests: Likewise.
10858         * modules/gc-sha1-tests: Likewise.
10859         * modules/gc-tests: Likewise.
10860         * modules/getaddrinfo-tests: Likewise.
10861         * modules/hmac-md5-tests: Likewise.
10862         * modules/hmac-sha1-tests: Likewise.
10863         * modules/linked-list-tests: Likewise.
10864         * modules/linkedhash-list-tests: Likewise.
10865         * modules/lock-tests: Likewise.
10866         * modules/md2-tests: Likewise.
10867         * modules/md4-tests: Likewise.
10868         * modules/md5-tests: Likewise.
10869         * modules/rbtree-list-tests: Likewise.
10870         * modules/rbtree-oset-tests: Likewise.
10871         * modules/rbtreehash-list-tests: Likewise.
10872         * modules/read-file-tests: Likewise.
10873         * modules/rijndael-tests: Likewise.
10874         * modules/stdint-tests: Likewise.
10875         * modules/tls-tests: Likewise.
10876
10877 2007-02-24  Bruno Haible  <bruno@clisp.org>
10878
10879         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
10880         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
10881         function; instead check whether isnan with a double argument links.
10882         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
10883         function; instead check whether isnan with a 'long double' argument
10884         links.
10885         Reported by Eric Blake <ebb9@byu.net>.
10886
10887 2007-02-24  Bruno Haible  <bruno@clisp.org>
10888
10889         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
10890         defined.
10891         * lib/isnanl.c: Remove all code. Just include isnan.c.
10892         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
10893
10894 2007-02-25  Jim Meyering  <jim@meyering.net>
10895
10896         Avoid conflicting types for 'unsetenv' on FreeBSD.
10897         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
10898         conflicting with FreeBSD's (5.0 and 6.1) function declaration
10899         in stdlib.h.
10900
10901 2007-02-24  Bruno Haible  <bruno@clisp.org>
10902
10903         * modules/isnanl-nolibm-tests: New file.
10904         * tests/test-isnanl.c: New file.
10905
10906         * modules/isnanl-nolibm: New file.
10907         * lib/isnanl.h: New file.
10908         * lib/isnanl.c: New file.
10909         * m4/isnanl.m4: New file.
10910
10911 2007-02-24  Bruno Haible  <bruno@clisp.org>
10912
10913         * modules/isnan-nolibm-tests: New file.
10914         * tests/test-isnan.c: New file.
10915
10916         * modules/isnan-nolibm: New file.
10917         * lib/isnan.h: New file.
10918         * lib/isnan.c: New file.
10919         * m4/isnan.m4: New file.
10920
10921 2007-02-24  Bruno Haible  <bruno@clisp.org>
10922
10923         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
10924         assume that an exponent fits in 20 bits.
10925
10926 2007-02-24  Jim Meyering  <jim@meyering.net>
10927
10928         * m4/regex.m4: Update the description of the configure-time option,
10929         --without-included-regex, to state accurately what the defaults are,
10930         and perhaps to give people an idea why using this option is risky.
10931
10932 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10933
10934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
10935         loops on small arguments.  This attempts to avoid the problem
10936         Bruno Haible reported for AIX 4.3.2 in
10937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
10938
10939 2007-02-23  Bruno Haible  <bruno@clisp.org>
10940
10941         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
10942         Needed for help2man.
10943
10944 2007-02-23  Karl Berry  <karl@gnu.org>
10945
10946         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
10947         exists, foo.h should be cvs-ignored, not committed.
10948
10949 2007-02-23  Eric Blake  <ebb9@byu.net>
10950
10951         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
10952         * lib/stat-time.h (includes): Likewise.
10953         * lib/utimecmp.c (includes): Likewise.
10954         * lib/utimens.h (includes): Likewise.
10955         * lib/getdate.y (includes): Also include "timespec.h" for use
10956         internal to the module.
10957         * modules/utimens (Depends-on): Revert yesterday's patch.
10958         * modules/nanosleep (Depends-on): Add missing dependency.
10959
10960 2007-02-22  Bruno Haible  <bruno@clisp.org>
10961
10962         * lib/glob.c: Don't include getlogin_r.h.
10963
10964 2007-02-22  Jim Meyering  <jim@meyering.net>
10965
10966         * modules/utimens (Depends-on): Add timespec, required for
10967         utimens.h's inclusion of timespec.h.
10968
10969 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10970
10971         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
10972         long unreadable paths in GNU/Linux.  Problem reported by Andreas
10973         Schwab in
10974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
10975         I'll try to think of a better way to fix the Solaris problem.
10976
10977         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
10978         like glibc; on Solaris 10, it fails with errno == EINVAL.
10979         POSIX says the behavior is unspecified if the first argument is NULL,
10980         so play it safe and never pass NULL to the system getcwd.
10981
10982 2007-02-21  Jim Meyering  <jim@meyering.net>
10983
10984         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
10985         of gettimeofday.  It would conflict with the one now always
10986         provided via sys_time_.h.  Reported by Matthew Woehlke, as
10987         an IRIX 6.5 build failure.
10988
10989 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10990
10991         Minor fixups to port to Solaris 10 with Sun C 5.8.
10992         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
10993         * modules/getcwd (Depends-on): Add dirfd.
10994         * lib/putenv.c (putenv): #undef it.
10995         (rpl_putenv): New decl.
10996         (malloc, free): Include <stdlib.h> rather than prototyping separately.
10997
10998 2007-02-20  Bruno Haible  <bruno@clisp.org>
10999
11000         * modules/stdio-tests: New file.
11001         * tests/test-stdio.c: New file.
11002
11003         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
11004         (Depends-on): Add stdio.
11005         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11006         (Include): Use <stdio.h> instead of vsnprintf.h.
11007         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
11008         HAVE_DECL_VSNPRINTF.
11009         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
11010
11011         * modules/snprintf (Files): Remove lib/snprintf.h.
11012         (Depends-on): Add stdio.
11013         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11014         (Include): Use <stdio.h> instead of snprintf.h.
11015         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
11016         HAVE_DECL_SNPRINTF.
11017         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
11018         * lib/getaddrinfo.c: Likewise.
11019
11020         * modules/stdio: New file.
11021         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
11022         * lib/snprintf.h: Remove file.
11023         * lib/vsnprintf.h: Remove file.
11024         * lib/.cppi-disable: Remove snprintf.h.
11025         * m4/stdio_h.m4: New file.
11026         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
11027
11028 2007-02-20  Jim Meyering  <jim@meyering.net>
11029
11030         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
11031         used by e.g., mingw.  From Bruno Haible.
11032
11033 2007-02-19  Bruno Haible  <bruno@clisp.org>
11034
11035         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
11036         warnings.
11037         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11038
11039 2007-02-19  Bruno Haible  <bruno@clisp.org>
11040
11041         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
11042         from mingw users.
11043
11044 2007-02-19  Bruno Haible  <bruno@clisp.org>
11045
11046         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
11047         warnings.
11048         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
11049
11050 2007-02-19  Jim Meyering  <jim@meyering.net>
11051
11052         Don't use FD after a successful "fdopendir (fd)".
11053         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
11054         Reset it by calling dirfd on the just-obtained DIR*.
11055
11056         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
11057         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
11058
11059 2007-02-18  Bruno Haible  <bruno@clisp.org>
11060
11061         * lib/readlink.c: Include <unistd.h>.
11062         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
11063         HAVE_READLINK.
11064         * modules/readlink (Depends-on): Add unistd.
11065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11066         (Include): Add <unistd.h>.
11067
11068         * lib/getlogin_r.h: Remove file.
11069         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
11070         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
11071         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
11072         HAVE_DECL_GETLOGIN_R.
11073         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
11074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11075         (Include): Use <unistd.h> instead of getlogin_r.h.
11076
11077         * lib/getcwd.h: Remove file.
11078         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
11079         * lib/xgetcwd.c: Likewise.
11080         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
11081         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
11082         * modules/getcwd (Files): Remove lib/getcwd.h.
11083         (Depends-on): Add unistd.
11084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11085         (Include): Use <unistd.h> instad of getcwd.h.
11086
11087         * lib/ftruncate.c: Include <unistd.h> first.
11088         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
11089         Set HAVE_FTRUNCATE.
11090         * modules/ftruncate (Depends-on): Add unistd.
11091         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11092
11093         * lib/fchdir.c: Include <unistd.h> first.
11094         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
11095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
11096         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
11097         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11098         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
11099
11100         * lib/dup2.c: Include <unistd.h> first.
11101         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
11102         HAVE_DUP2.
11103         * modules/dup2 (Depends-on): Add unistd.
11104         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11105
11106         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
11107         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
11108         REPLACE_CHOWN. Don't define chown as a macro here.
11109         * modules/chown (Depends-on): Add unistd.
11110         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11111
11112         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
11113         Add definition for GL_LINK_WARNING.
11114         (chown, dup2): New declarations.
11115         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
11116         link warning.
11117         (ftruncate): New declaration.
11118         (getcwd): New declaration, taken from old getcwd.h.
11119         (getlogin_r): New declaration, taken from old getlogin_r.h.
11120         (readlink): New declaration.
11121         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
11122         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
11123         (gl_PREREQ_UNISTD): Remove macro.
11124         (gl_UNISTD_MODULE_INDICATOR): New macro.
11125         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
11126         many new variables. Don't set UNISTD_H.
11127         * modules/unistd (Description): Change.
11128         (Depends-on): Add link-warning.
11129         (configure.ac): Update.
11130         (Makefile.am): Create unistd.h always. Substitute many new variables
11131         into it.
11132
11133 2007-02-18  Bruno Haible  <bruno@clisp.org>
11134
11135         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
11136         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
11137         HAVE_GETSUBOPT.
11138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
11139         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
11140         * lib/getsubopt.h: Remove file.
11141         * modules/getsubopt (Files): Remove lib/getsubopt.h.
11142         (Depends-on): Add stdlib.
11143         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11144         (Includes): Use <stdlib.h> instead of getsubopt.h.
11145         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
11146         Set HAVE_GETSUBOPT.
11147         * lib/getsubopt.c: Don't include getsubopt.h.
11148
11149 2007-02-18  Bruno Haible  <bruno@clisp.org>
11150
11151         * modules/fchdir (Depends-on): Add dup2.
11152
11153 2007-02-18  Bruno Haible  <bruno@clisp.org>
11154
11155         * lib/stdlib_.h: Handle glibc's special invocation convention
11156         specially.
11157
11158 2007-02-18  Bruno Haible  <bruno@clisp.org>
11159
11160         * modules/stdlib-tests: New file.
11161         * tests/test-stdlib.c: New file.
11162
11163         * modules/mkstemp (Files): Remove lib/mkstemp.h.
11164         (Depends-on): Add stdlib.
11165         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11166         (Includes): Use <stdlib.h> instead of mkstemp.h.
11167         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
11168         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
11169         * lib/mkstemp.c: Don't include mkstemp.h.
11170         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
11171         * lib/stdlib--.h: Don't include mkstemp.h.
11172
11173         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
11174         (Depends-on): Add stdlib.
11175         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11176         (Includes): Use <stdlib.h> instead of mkdtemp.h.
11177         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
11178         HAVE_MKDTEMP.
11179         * lib/mkdtemp.c: Don't include mkdtemp.h.
11180         * lib/clean-temp.c: Don't include mkdtemp.h.
11181
11182         * modules/exit (Files): Remove lib/exit.h.
11183         (Depends-on): Add stdlib.
11184         (Makefile.am): Remove lib_SOURCES.
11185         (Include): Use <stdlib.h> instead of exit.h.
11186         * lib/argmatch.c: Don't include exit.h.
11187         * lib/execute.c: Likewise.
11188         * lib/pagealign_alloc.c: Likewise.
11189         * lib/pipe.c: Likewise.
11190         * lib/wait-process.c: Likewise.
11191         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
11192         * lib/exitfail.c: Likewise.
11193         * lib/savewd.c: Likewise.
11194         * lib/xsetenv.c: Likewise.
11195
11196         * modules/stdlib: New file.
11197         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
11198         and extra comments about mkstemp().
11199         * lib/exit.h: Remove file.
11200         * lib/mkdtemp.h: Remove file.
11201         * lib/mkstemp.h: Remove file.
11202         * m4/stdlib_h.m4: New file.
11203         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
11204
11205 2007-02-18  Bruno Haible  <bruno@clisp.org>
11206
11207         * modules/math-tests: New file.
11208         * tests/test-math.c: New file.
11209
11210         * modules/math: New file.
11211         * modules/mathl (Files): Remove lib/mathl.h.
11212         (Depends-on): Add math.
11213         (Makefile.am): Don't mention mathl.h.
11214         (Include): Use <math.h> instead of mathl.h.
11215         * lib/math_.h: New file.
11216         * lib/mathl.h: Remove file.
11217         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
11218         mathl.h.
11219         * lib/asinl.c: Likewise.
11220         * lib/atanl.c: Likewise.
11221         * lib/ceill.c: Likewise.
11222         * lib/cosl.c: Likewise.
11223         * lib/expl.c: Likewise.
11224         * lib/floorl.c: Likewise.
11225         * lib/frexpl.c: Likewise.
11226         * lib/ldexpl.c: Likewise.
11227         * lib/logl.c: Likewise.
11228         * lib/sincosl.c: Likewise.
11229         * lib/sinl.c: Likewise.
11230         * lib/sqrtl.c: Likewise.
11231         * lib/tanl.c: Likewise.
11232         * lib/trigl.c: Likewise.
11233         * m4/math_h.m4: New file.
11234         * MODULES.html.sh (Mathematics): Add math.
11235
11236 2007-02-17  Bruno Haible  <bruno@clisp.org>
11237
11238         * modules/wctype-tests: New file.
11239         * tests/test-wctype.c: New file.
11240
11241         * modules/wchar-tests: New file.
11242         * tests/test-wchar.c: New file.
11243
11244         * modules/unistd-tests: New file.
11245         * tests/test-unistd.c: New file.
11246
11247         * modules/time-tests: New file.
11248         * tests/test-time.c: New file.
11249
11250         * modules/sysexits-tests: New file.
11251         * tests/test-sysexits.c: New file.
11252
11253         * modules/sys_time-tests: New file.
11254         * tests/test-sys_time.c: New file.
11255
11256         * modules/sys_stat-tests: New file.
11257         * tests/test-sys_stat.c: New file.
11258
11259         * modules/sys_socket-tests: New file.
11260         * tests/test-sys_socket.c: New file.
11261
11262         * modules/sys_select-tests: New file.
11263         * tests/test-sys_select.c: New file.
11264
11265         * modules/string-tests: New file.
11266         * tests/test-string.c: New file.
11267
11268         * modules/stdbool-tests: New file.
11269         * tests/test-stdbool.c: New file.
11270
11271         * modules/netinet_in-tests: New file.
11272         * tests/test-netinet_in.c: New file.
11273
11274         * modules/inttypes-tests: New file.
11275         * tests/test-inttypes.c: New file.
11276
11277         * modules/fcntl-tests: New file.
11278         * tests/test-fcntl.c: New file.
11279
11280         * modules/byteswap-tests: New file.
11281         * tests/test-byteswap.c: New file.
11282
11283         * modules/arpa_inet-tests: New file.
11284         * tests/test-arpa_inet.c: New file.
11285
11286 2007-02-17  Bruno Haible  <bruno@clisp.org>
11287
11288         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
11289         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
11290         if the corresponding module is not enabled. Emit link warnings if
11291         the function is used nevertheless.
11292         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
11293         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
11294         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
11295         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
11296         * modules/inttypes (Depends-on): Add link-warning.
11297         (Makefile.am): Copy the contents of build-aux/link-warning.h into
11298         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
11299         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
11300         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
11301         * modules/imaxdiv (configure.ac): Likewise.
11302         * modules/strtoimax (configure.ac): Likewise.
11303         * modules/strtoumax (configure.ac): Likewise.
11304
11305 2007-02-17  Bruno Haible  <bruno@clisp.org>
11306
11307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
11308         gl_STRING_MODULE_INDICATOR_DEFAULTS.
11309         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
11310         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
11311
11312 2007-02-17  Bruno Haible  <bruno@clisp.org>
11313
11314         * modules/link-warning: New file.
11315         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
11316         * lib/string_.h (GL_LINK_WARNING): Remove definition.
11317         * modules/string (Depends-on): Add link-warning.
11318         (Makefile.am): Copy the contents of build-aux/link-warning.h into
11319         string.h.
11320         * MODULES.html.sh (Support for building libraries and executables): Add
11321         link-warning.
11322
11323 2007-02-17  Bruno Haible  <bruno@clisp.org>
11324
11325         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
11326         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
11327         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
11328         long lines.
11329
11330 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
11331             Bruno Haible  <bruno@clisp.org>
11332
11333         * modules/tmpfile: New file.
11334         * lib/tmpfile.c: New file.
11335         * m4/tmpfile.m4: New file.
11336         * MODULES.html.sh (func_all_modules): New section "Input/output".
11337
11338 2007-02-15  Bruno Haible  <bruno@clisp.org>
11339
11340         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
11341         (supports_delete_on_close): New function.
11342         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
11343
11344 2007-02-14  Bruno Haible  <bruno@clisp.org>
11345
11346         * modules/mbspcasecmp-tests: New file.
11347         * tests/test-mbspcasecmp.sh: New file.
11348         * tests/test-mbspcasecmp.c: New file.
11349
11350         New module mbspcasecmp.
11351         * modules/mbspcasecmp: New file.
11352         * lib/mbspcasecmp.c: New file.
11353         * lib/string_.h (strncasecmp): Change warning message.
11354         (mbspcasecmp): New declaration.
11355         * m4/mbspcasecmp.m4: New file.
11356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11357         GNULIB_MBSPCASECMP.
11358         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
11359         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
11360
11361 2007-02-14  Bruno Haible  <bruno@clisp.org>
11362
11363         * modules/mbsncasecmp-tests: New file.
11364         * tests/test-mbsncasecmp.sh: New file.
11365         * tests/test-mbsncasecmp.c: New file.
11366
11367         New module mbsncasecmp.
11368         * modules/mbsncasecmp: New file.
11369         * lib/mbsncasecmp.c: New file.
11370         * lib/string_.h (mbsncasecmp): New declaration.
11371         * m4/mbsncasecmp.m4: New file.
11372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11373         GNULIB_MBSNCASECMP.
11374         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
11375         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
11376
11377 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
11378
11379         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
11380         Verify that it doesn't overlap with our flags.
11381         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
11382         do not have the desired effect in multibyte locales; instead, use
11383         mbscasecmp.
11384         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
11385         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
11386         we don't require GNU fnmatch ourselves (if our users require it, they
11387         should do so explicitly).
11388
11389         Fix regex code so it doesn't rely on strcasecmp.
11390         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
11391         Otherwise, include gnulib's langinfo.h.
11392         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
11393         undesirable behavior in non-C locales.  Instead, rely on localecharset.
11394         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
11395         * modules/regex (FILES): Remove m4/codeset.m4.
11396         (Depends-on): Add localcharset.  Remove strcase.
11397
11398 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11399
11400         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
11401         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11402
11403 2007-02-13  Bruno Haible  <bruno@clisp.org>
11404
11405         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
11406         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11407
11408 2007-02-12  Bruno Haible  <bruno@clisp.org>
11409
11410         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
11411         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
11412         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
11413         time warning rather than a link error.
11414
11415 2007-02-12  Bruno Haible  <bruno@clisp.org>
11416
11417         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
11418         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11419         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11420
11421 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11422
11423         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
11424         args, not 2.
11425
11426 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11427
11428         New module 'time', so that apps can include <time.h> as per
11429         POSIX and GNU instead of separate include files like time_r.h
11430         and timegm.h.  This implementation tries out a simpler approach
11431         for replacing decls in standard include files (as compared to
11432         the string module), somewhat as an experiment.
11433
11434         * config/srclist.txt: Comment out mktime.c for now.
11435         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
11436         since it doesn't apply any more.  Use generic wording instead.
11437         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
11438         'time'.
11439         * lib/time_.h, m4/time_h.m4, modules/time: New files.
11440         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
11441         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
11442         Don't include <sys/types.h>; no longer needed since we assume C89.
11443         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
11444         * lib/strftime.c: Likewise.
11445         * lib/time_r.c: Likewise.
11446         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
11447         * lib/nanosleep.c: Include <time.h> first, to check interface.
11448         * lib/strptime.c: Likewise.
11449         * lib/time_r.c: Likewise.
11450         * lib/timegm.c: Likewise.
11451         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
11452         needed.
11453         * lib/timegm.c: Don't include timegm.h; no longer needed.
11454         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
11455         time.h now handles any problems in that area.
11456         (struct timespec, nanosleep): Remove; time.h now arranges for these.
11457         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
11458         that time.h defines struct timespec.
11459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
11460         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
11461         handles that.
11462         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
11463         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
11464         needed.  Set REPLACE_LOCALTIME.
11465         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
11466         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
11467         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
11468         nanosleep; time_h.m4 now does that.  Don't require
11469         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
11470         module handles this now.
11471         * modules/getdate (Depends-on): Remove timespec.  Add time.
11472         * modules/nanosleep (Depends-on): Likewise.
11473         * modules/stat-time (Depends-on): Likewise.
11474         * modules/nanosleep (Include): Include time.h, not timespec.h.
11475         * modules/strptime (Files): Remove lib/strptime.h.
11476         (Depends-on): Add extensions, time.
11477         (Include): Include time.h, not strptime.h.
11478         * modules/time_r (Files): Remove lib/time_r.h.
11479         (Depends-on): Add time.
11480         (Include): Include time.h, not time_r.h.
11481         * modules/timegm: Likewise.
11482         * modules/timespec (Description): Now does timespec-related decls
11483         of our own, instead of struct timespec itself.
11484         (Depends-on): Add time; remove extensions.
11485         (Maintainer): Add self.
11486         * modules/utimecmp (Depends-on): Add time; remove timespec.
11487         * modules/utimens (Depends-on): Likewise.
11488         * modules/xnanosleep (Depends-on): Likewise.
11489
11490 2007-02-11  Bruno Haible  <bruno@clisp.org>
11491
11492         * lib/c-strstr.c: Include allocsa.h.
11493         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
11494         * lib/c-strcasestr.c: Include allocsa.h.
11495         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
11496         * lib/strcasestr.c: Include allocsa.h.
11497         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
11498         * lib/mbsstr.c: Include allocsa.h.
11499         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
11500         allocsa/freesa instead of malloc/free.
11501         * lib/mbscasestr.c: Include allocsa.h.
11502         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
11503         allocsa/freesa instead of malloc/free.
11504         * modules/c-strstr (Depends-on): Add allocsa.
11505         * modules/c-strcasestr (Depends-on): Likewise.
11506         * modules/strcasestr (Depends-on): Likewise.
11507         * modules/mbsstr (Depends-on): Likewise.
11508         * modules/mbscasestr (Depends-on): Likewise.
11509
11510 2007-02-11  Bruno Haible  <bruno@clisp.org>
11511
11512         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
11513
11514         * modules/mbsspn-tests: New file.
11515         * tests/test-mbsspn.sh: New file.
11516         * tests/test-mbsspn.c: New file.
11517
11518 2007-02-11  Bruno Haible  <bruno@clisp.org>
11519
11520         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
11521
11522         * modules/mbspbrk-tests: New file.
11523         * tests/test-mbspbrk.sh: New file.
11524         * tests/test-mbspbrk.c: New file.
11525
11526 2007-02-11  Bruno Haible  <bruno@clisp.org>
11527
11528         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
11529         unneeded cast.
11530
11531         * modules/mbscspn-tests: New file.
11532         * tests/test-mbscspn.sh: New file.
11533         * tests/test-mbscspn.c: New file.
11534
11535 2007-02-11  Bruno Haible  <bruno@clisp.org>
11536
11537         * modules/mbscasecmp-tests: New file.
11538         * tests/test-mbscasecmp.sh: New file.
11539         * tests/test-mbscasecmp.c: New file.
11540
11541 2007-02-11  Bruno Haible  <bruno@clisp.org>
11542
11543         Ensure O(n) worst-case complexity of mbscasestr.
11544         * lib/mbscasestr.c: Include stdbool.h.
11545         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
11546         functions.
11547         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
11548         the bookkeeping indicates that it's worth it.
11549         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
11550
11551         * modules/mbscasestr-tests: New file.
11552         * tests/test-mbscasestr1.c: New file.
11553         * tests/test-mbscasestr2.sh: New file.
11554         * tests/test-mbscasestr2.c: New file.
11555         * tests/test-mbscasestr3.sh: New file.
11556         * tests/test-mbscasestr3.c: New file.
11557         * tests/test-mbscasestr4.sh: New file.
11558         * tests/test-mbscasestr4.c: New file.
11559         * m4/locale-tr.m4: New file.
11560
11561 2007-02-11  Bruno Haible  <bruno@clisp.org>
11562
11563         Ensure O(n) worst-case complexity of mbsstr.
11564         * lib/mbsstr.c: Include stdbool.h.
11565         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
11566         functions.
11567         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
11568         bookkeeping indicates that it's worth it.
11569         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
11570
11571         * modules/mbsstr-tests: New file.
11572         * tests/test-mbsstr1.c: New file.
11573         * tests/test-mbsstr2.sh: New file.
11574         * tests/test-mbsstr2.c: New file.
11575         * tests/test-mbsstr3.sh: New file.
11576         * tests/test-mbsstr3.c: New file.
11577         * m4/locale-fr.m4: New file.
11578
11579 2007-02-11  Bruno Haible  <bruno@clisp.org>
11580
11581         * lib/mbsrchr.c (mbsrchr): Fix bug.
11582
11583         * modules/mbsrchr-tests: New file.
11584         * tests/test-mbsrchr.sh: New file.
11585         * tests/test-mbsrchr.c: New file.
11586
11587 2007-02-11  Bruno Haible  <bruno@clisp.org>
11588
11589         * lib/mbschr.c (mbschr): Fix bug.
11590
11591         * modules/mbschr-tests: New file.
11592         * tests/test-mbschr.sh: New file.
11593         * tests/test-mbschr.c: New file.
11594         * m4/locale-zh.m4: New file.
11595
11596 2007-02-11  Bruno Haible  <bruno@clisp.org>
11597
11598         Support for copying multibyte string iterators.
11599         * lib/mbiter.h: Include <string.h>.
11600         (mbiter_multi_copy): New function.
11601         (mbi_copy): New macro.
11602         * lib/mbuiter.h: Include <string.h>.
11603         (mbuiter_multi_copy): New function.
11604         (mbui_copy): New macro.
11605
11606 2007-02-11  Bruno Haible  <bruno@clisp.org>
11607
11608         New module mbslen.
11609         * modules/mbslen: New file.
11610         * lib/mbslen.c: New file.
11611         * lib/string_.h (mbslen): New declaration.
11612         * m4/mbslen.m4: New file.
11613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11614         GNULIB_MBSLEN.
11615         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
11616         * MODULES.html.sh (Internationalization functions): Add mbslen.
11617
11618 2007-02-11  Bruno Haible  <bruno@clisp.org>
11619
11620         Ensure O(n) worst-case complexity of strcasestr substitute.
11621         * lib/strcasestr.c: Include stdbool.h.
11622         (knuth_morris_pratt): New function.
11623         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
11624         bookkeeping indicates that it's worth it.
11625         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
11626
11627         * modules/strcasestr-tests: New file.
11628         * tests/test-strcasestr.c: New file.
11629
11630 2007-02-11  Bruno Haible  <bruno@clisp.org>
11631
11632         Ensure O(n) worst-case complexity of c_strcasestr.
11633         * lib/c-strcasestr.c: Include stdbool.h, string.h.
11634         (knuth_morris_pratt): New function.
11635         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
11636         the bookkeeping indicates that it's worth it.
11637         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
11638
11639         * modules/c-strcasestr-tests: New file.
11640         * tests/test-c-strcasestr.c: New file.
11641
11642 2007-02-11  Bruno Haible  <bruno@clisp.org>
11643
11644         Ensure O(n) worst-case complexity of c_strstr.
11645         * lib/c-strstr.c: Include stdbool.h, string.h.
11646         (knuth_morris_pratt): New function.
11647         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
11648         bookkeeping indicates that it's worth it.
11649         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
11650
11651         * lib/c-strstr.c: Complete rewrite for maintainability.
11652
11653         * modules/c-strstr-tests: New file.
11654         * tests/test-c-strstr.c: New file.
11655
11656 2007-02-11  Bruno Haible  <bruno@clisp.org>
11657
11658         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
11659         5.2.1 and earlier, whereby \055 was treated just like the range
11660         delimiter '-'.
11661         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11662
11663 2007-02-08  Bruno Haible  <bruno@clisp.org>
11664
11665         * modules/regex (Depends-on): Add stdbool.
11666         Reported by Dalibor Topic <robilad@kaffe.org>.
11667
11668 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
11669
11670         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
11671         Prefer returning from main to exiting from it.
11672         Remove unnecessary parens after sizeof.
11673
11674 2007-02-05  Bruno Haible  <bruno@clisp.org>
11675
11676         New module mbssep.
11677         * modules/mbssep: New file.
11678         * lib/mbssep.c: New file.
11679         * lib/string_.h (strsep): Add a conditional link warning.
11680         (mbssep): New declaration.
11681         * m4/mbssep.m4: New file.
11682         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11683         GNULIB_MBSSEP.
11684         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
11685         * MODULES.html.sh (Internationalization functions): Add mbssep.
11686
11687 2007-02-05  Bruno Haible  <bruno@clisp.org>
11688
11689         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
11690         Optimize search in case of 1 delimiter.
11691
11692 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
11693
11694         * lib/acl.h: Include sys/types.h before sys/acl.h.
11695
11696 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
11697
11698         Merge upstream fix for glibc bugzilla #3957:
11699
11700         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11701
11702         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11703         bit for RE_HAT_LISTS_NOT_NEWLINE.
11704         (build_charclass_op): Remove bogus comment.
11705
11706 2007-02-05  Simon Josefsson  <simon@josefsson.org>
11707
11708         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
11709
11710 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11711
11712         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
11713         * lib/memmem.c [!defined _LIBC]: Include config.h.
11714
11715 2007-02-04  Bruno Haible  <bruno@clisp.org>
11716
11717         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
11718         warning message.
11719
11720 2007-02-04  Bruno Haible  <bruno@clisp.org>
11721
11722         New module mbstok_r.
11723         * modules/mbstok_r: New file.
11724         * lib/mbstok_r.c: New file.
11725         * lib/string_.h (strtok_r): Change argument names to match the
11726         comments. Add a conditional link warning.
11727         (mbstok_r): New declaration.
11728         * m4/mbstok_r.m4: New file.
11729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11730         GNULIB_MBSTOK_R.
11731         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
11732         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
11733
11734 2007-02-04  Bruno Haible  <bruno@clisp.org>
11735
11736         New module mbsspn.
11737         * modules/mbsspn: New file.
11738         * lib/mbsspn.c: New file.
11739         * lib/string_.h (strspn): Add a conditional link warning.
11740         (mbsspn): New declaration.
11741         * m4/mbsspn.m4: New file.
11742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11743         GNULIB_MBSSPN.
11744         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
11745         * MODULES.html.sh (Internationalization functions): Add mbsspn.
11746
11747 2007-02-04  Bruno Haible  <bruno@clisp.org>
11748
11749         New module mbspbrk.
11750         * modules/mbspbrk: New file.
11751         * lib/mbspbrk.c: New file.
11752         * lib/string_.h (strpbrk): Add a conditional link warning.
11753         (mbspbrk): New declaration.
11754         * m4/mbspbrk.m4: New file.
11755         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11756         GNULIB_MBSPBRK.
11757         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
11758         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
11759
11760 2007-02-04  Bruno Haible  <bruno@clisp.org>
11761
11762         New module mbscspn.
11763         * modules/mbscspn: New file.
11764         * lib/mbscspn.c: New file.
11765         * lib/string_.h (strcspn): Add a conditional link warning.
11766         (mbscspn): New declaration.
11767         * m4/mbscspn.m4: New file.
11768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11769         GNULIB_MBSCSPN.
11770         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
11771         * MODULES.html.sh (Internationalization functions): Add mbscspn.
11772
11773 2007-02-04  Bruno Haible  <bruno@clisp.org>
11774
11775         New module mbscasestr, reduced goal of strcasestr.
11776         * modules/mbscasestr: New file.
11777         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
11778         (mbscasestr): Renamed from strcasestr.
11779         * lib/strcasestr.c: Don't include mbuiter.h.
11780         (strcasestr): Remove support for multibyte locales.
11781         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
11782         Change the conditional link warning.
11783         (mbscasestr): New declaration.
11784         * m4/mbscasestr.m4: New file.
11785         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
11786         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
11787         REPLACE_STRCASESTR.
11788         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
11789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11790         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
11791         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
11792         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
11793         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
11794         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
11795         (Depends-on): Remove mbuiter.
11796         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
11797
11798 2007-02-04  Bruno Haible  <bruno@clisp.org>
11799
11800         Simplify handling of strncasecmp.
11801         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
11802         the conditional link warning.
11803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11804         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
11805         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
11806         * modules/strcase (configure.ac): Don't invoke
11807         gl_STRING_MODULE_INDICATOR.
11808         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
11809
11810 2007-02-04  Bruno Haible  <bruno@clisp.org>
11811
11812         New module mbscasecmp, reduced goal of strcasecmp.
11813         * modules/mbscasecmp: New file.
11814         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
11815         (mbscasecmp): Renamed from strcasecmp.
11816         * lib/strcasecmp.c: Don't include mbuiter.h.
11817         (strcasecmp): Remove support for multibyte locales.
11818         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
11819         Change the conditional link warning.
11820         (mbscasecmp): New declaration.
11821         * m4/mbscasecmp.m4: New file.
11822         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
11823         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
11824         REPLACE_STRCASECMP.
11825         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
11826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11827         GNULIB_MBSCASECMP.
11828         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
11829         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
11830         * modules/strcase (Files): Remove m4/mbrtowc.m4.
11831         (Depends-on): Remove mbuiter.
11832         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
11833
11834 2007-02-04  Bruno Haible  <bruno@clisp.org>
11835
11836         New module mbsstr. Remove module strstr.
11837         * modules/mbsstr: New file.
11838         * modules/strstr: Remove file.
11839         * lib/mbsstr.c: Renamed from lib/strstr.c.
11840         (mbsstr): Renamed from strstr.
11841         * lib/string_.h (strstr): Remove declaration. Change the conditional
11842         link warning.
11843         (mbsstr): New declaration.
11844         * m4/mbsstr.m4: New file.
11845         * m4/strstr.m4: Remove file.
11846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
11847         REPLACE_STRSTR.
11848         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
11849         Don't initialize GNULIB_STRSTR.
11850         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
11851         substitute GNULIB_STRSTR and REPLACE_STRSTR.
11852         * MODULES.html.sh (Internationalization functions): Add mbsstr.
11853         (Support for systems lacking ANSI C 89): Remove strstr.
11854
11855 2007-02-04  Bruno Haible  <bruno@clisp.org>
11856
11857         New module mbsrchr.
11858         * modules/mbsrchr: New file.
11859         * lib/mbsrchr.c: New file.
11860         * lib/string_.h (strrchr): Add a conditional link warning.
11861         (mbsrchr): New declaration.
11862         * m4/mbsrchr.m4: New file.
11863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11864         GNULIB_MBSRCHR.
11865         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
11866         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
11867
11868 2007-02-04  Bruno Haible  <bruno@clisp.org>
11869
11870         New module mbschr.
11871         * modules/mbschr: New file.
11872         * lib/mbschr.c: New file.
11873         * lib/string_.h (strchr): Add a conditional link warning.
11874         (mbschr): New declaration.
11875         * m4/mbschr.m4: New file.
11876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11877         GNULIB_MBSCHR.
11878         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
11879         * MODULES.html.sh (Internationalization functions): Add mbschr.
11880
11881 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11882
11883         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
11884
11885         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
11886
11887 2007-02-04  Bruno Haible  <bruno@clisp.org>
11888
11889         New module description section 'configure.ac-early'.
11890         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
11891         (func_get_autoconf_early_snippet): New function.
11892         (func_import, func_create_testdir): Use it. Remove special cases for
11893         modules 'extensions' and 'lock'.
11894         * modules/extensions (configure.ac-early): Require
11895         gl_USE_SYSTEM_EXTENSIONS.
11896         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
11897
11898 2007-02-04  Bruno Haible  <bruno@clisp.org>
11899
11900         Make use of gcj-4.3's -fsource and -ftarget option.
11901         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
11902         and if so try the options -fsource and -ftarget.
11903         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
11904         source_version, ftarget_option, target_version arguments.
11905         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
11906         (is_envjavac_oldgcj_14_14_usable): Renamed from
11907         is_envjavac_gcj_14_14_usable.
11908         (is_envjavac_oldgcj_14_13_usable): Renamed from
11909         is_envjavac_gcj_14_13_usable.
11910         (is_gcj_present): Update.
11911         (is_gcj_43, is_gcj43_usable): New functions.
11912         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
11913         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
11914         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
11915         try the options -fsource and -ftarget.
11916
11917 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11918
11919         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
11920         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
11921         larger value.
11922
11923 2007-02-03  Jim Meyering  <jim@meyering.net>
11924
11925         Give tools a better chance to allocate space for very large buffers.
11926         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
11927
11928         Make pwd and readlink work also when run with an unreadable parent dir
11929         on systems with openat support.
11930         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
11931         provided getcwd function, even when we have openat support.
11932         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
11933
11934 2007-02-02  Bruno Haible  <bruno@clisp.org>
11935
11936         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
11937         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
11938         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
11939         portability problems if one of these functions is only used on specific
11940         platforms.
11941         Reported by Paul Eggert.
11942
11943 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11944
11945         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
11946         is causing more trouble than it's curing.
11947         * lib/regex_internal.h (__mempcpy): Remove.
11948         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
11949         (and make the code a tad smaller to boot).
11950         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
11951
11952 2007-02-02  Jim Meyering  <jim@meyering.net>
11953
11954         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
11955         section, not in the Makefile.am: one.
11956
11957 2007-02-02  Eric Blake  <ebb9@byu.net>
11958
11959         * lib/strchrnul.c: Always include config.h first.
11960
11961         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
11962         gnulib strstr is not necessary here.
11963
11964 2007-02-02  Simon Josefsson  <simon@josefsson.org>
11965
11966         * m4/socklen.m4: Fix typo.
11967
11968 2007-02-02  Eric Blake  <ebb9@byu.net>
11969
11970         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
11971         * modules/netinet_in (Makefile.am): Likewise.
11972
11973 2007-02-01  Bruno Haible  <bruno@clisp.org>
11974
11975         * lib/string_.h (GL_LINK_WARNING): New macro.
11976         (strcasecmp, strstr, strcasestr): If provided by the system,
11977         conditionally define as a macro that leads to a warning instead of to
11978         an error.
11979         (strncasecmp): Conditionally define as a macro that leads to a warning.
11980
11981 2007-02-01  Karl Berry  <karl@gnu.org>
11982
11983         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
11984
11985 2007-02-01  Bruno Haible  <bruno@clisp.org>
11986
11987         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
11988         renamings.
11989
11990 2007-02-01  Eric Blake  <ebb9@byu.net>
11991
11992         * modules/regex (Depends-on): Revert dependence on mempcpy.
11993         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
11994         module's definition of mempcpy.
11995         Reported by Paul Eggert.
11996
11997 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
11998
11999         * lib/string_.h: If the gnulib module XYZ is not present, undefine
12000         the symbol XYZ before redefining it.  This fixes a problem with
12001         programs that don't use XYZ, when compiled on systems that define
12002         XYZ to something else.
12003
12004 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
12005
12006         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
12007         occurs when "mkdir -m foo" creates a setgid directory that is (1)
12008         writeable to group or other and (2) is intended to have a special
12009         mode bit that is set or cleared.  In such a case, the directory
12010         should be neither group- nor other-writeable until the special
12011         mode bits are right.
12012
12013 2007-01-31  Eric Blake  <ebb9@byu.net>
12014
12015         * modules/mountlist (Depends-on): Add strstr.
12016
12017         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
12018         bug.
12019         * modules/string (Makefile.am): Remove redundant replacement.
12020         * modules/regex (Depends-on): Add mempcpy.
12021
12022 2007-01-31  Bruno Haible  <bruno@clisp.org>
12023
12024         New module description field 'Link'.
12025         * gnulib-tool (func_usage): Document --extract-link-directive.
12026         (sed_extract_prog): Recognize 'Link' directive.
12027         (func_get_link_directive): New function.
12028         (func_import): Show summary of link directives.
12029         Handle --extract-link-directive option.
12030         * modules/acl (Link): New section.
12031         * modules/clock-time (Link): New section.
12032         * modules/euidaccess (Link): New section.
12033         * modules/gettext (Link): New section.
12034         * modules/iconv (Link): New section.
12035         * modules/lock (Link): New section.
12036         * modules/nanosleep (Link): New section.
12037         * modules/readline (Link): New section.
12038
12039 2007-01-27  Bruno Haible  <bruno@clisp.org>
12040
12041         Enforce the use of gnulib modules for unportable <string.h> functions.
12042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
12043         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
12044         (gl_HEADER_STRING_H_BODY): Require it.
12045         * lib/string_.h: If the gnulib module XYZ is not present, redefine
12046         the symbol XYZ to one that gives a link error.
12047         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
12048         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
12049         * modules/mempcpy (configure.ac): Likewise.
12050         * modules/memrchr (configure.ac): Likewise.
12051         * modules/stpcpy (configure.ac): Likewise.
12052         * modules/stpncpy (configure.ac): Likewise.
12053         * modules/strcase (configure.ac): Likewise.
12054         * modules/strcasestr (configure.ac): Likewise.
12055         * modules/strchrnul (configure.ac): Likewise.
12056         * modules/strdup (configure.ac): Likewise.
12057         * modules/strndup (configure.ac): Likewise.
12058         * modules/strnlen (configure.ac): Likewise.
12059         * modules/strpbrk (configure.ac): Likewise.
12060         * modules/strsep (configure.ac): Likewise.
12061         * modules/strstr (configure.ac): Likewise.
12062         * modules/strtok_r (configure.ac): Likewise.
12063
12064 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
12065
12066         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
12067
12068 2007-01-30  Jim Meyering  <jim@meyering.net>
12069
12070         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
12071
12072 2007-01-29  Bruno Haible  <bruno@clisp.org>
12073
12074         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
12075         * lib/execute.c: Likewise.
12076         * lib/pipe.c: Likewise.
12077         * lib/printf-args.h: Likewise.
12078         * lib/printf-args.c: Likewise.
12079         * lib/printf-parse.c: Likewise.
12080         * lib/vasnprintf.c: Likewise.
12081
12082 2007-01-29  Eric Blake  <ebb9@byu.net>
12083
12084         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
12085         declaration.
12086
12087 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12088
12089         * lib/strptime.h (strptime): Use 'restrict' for args where
12090         POSIX requires this.
12091         * lib/strptime.c (strptime): Likewise.
12092         Change license notice from LGPL to GPL, since gnulib-tool will
12093         change this as needed.
12094         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
12095         defined.
12096         Include "strptime.h" first, to check interface.
12097         Do not #undef _LIBC and _NL_CURRENT.
12098         Do not include <stdlib.h>; no longer needed.
12099         Include "time_r.h" and declare ptime_locale_status
12100         only if _LIBC is not defined.
12101         (__P): Remove unused macro.
12102         (match_string): Bring back glibc version, but use it only if _LIBC
12103         is defined.
12104         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
12105         Remove unnecessary assertion and abort() call.
12106         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
12107         * m4/strptime.m4: Fix serial number comment.
12108         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
12109         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
12110         (Depends-on): Add time_r.
12111
12112 2007-01-29  Bruno Haible  <bruno@clisp.org>
12113
12114         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12115         strptime.
12116         * modules/strptime (Depends-on): Add stdbool.
12117         * lib/strptime.h: Include <time.h> always. Add comments.
12118
12119 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
12120
12121         * modules/strptime: New file.
12122         * lib/strptime.h: New file.
12123         * lib/strptime.c: New file.
12124         * m4/strptime.m4: New file.
12125
12126 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12127
12128         * MODULES.html.sh: New module mpsort.
12129         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
12130
12131         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
12132         a circularity problem with HP-UX ia64 reported by Bob Proulx in
12133         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
12134         All uses changed.
12135         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
12136         All uses changed.
12137         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
12138         to _Restrict_.
12139         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
12140         the parameter matches the prototype.
12141
12142 2007-01-28  Jim Meyering  <jim@meyering.net>
12143
12144         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
12145         sys/time.h here, reverting that part of the previous patch:
12146         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
12147
12148 2007-01-28  Bruno Haible  <bruno@clisp.org>
12149
12150         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
12151         value of $(SYS_TIME_H).
12152         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
12153         remove it conditionally, too. [added by Jim Meyering]
12154         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
12155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
12156         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
12157         GETTIMEOFDAY_REPLACEMENT to 1.
12158
12159 2007-01-28  Bruno Haible  <bruno@clisp.org>
12160
12161         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
12162         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
12163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
12164         Set UNISTD_H instead of UNISTD_H2.
12165         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
12166
12167 2007-01-28  Bruno Haible  <bruno@clisp.org>
12168
12169         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
12170         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
12171
12172 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12173
12174         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
12175         (func_create_testdir): Ensure C locale for `grep' and `tr'
12176         character ranges.
12177         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
12178         ACLOCAL_AMFLAGS parsing state machine.
12179
12180 2007-01-27  Bruno Haible  <bruno@clisp.org>
12181
12182         * modules/unistr/base: Update.
12183
12184 2007-01-27  Bruno Haible  <bruno@clisp.org>
12185
12186         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
12187         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
12188         * modules/unistr/u32-mbtouc-unsafe: Renamed from
12189         modules/unistr/u32-mbtouc.
12190         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
12191         * lib/unistr.h: Update.
12192         * lib/linebreak.c: Update.
12193         * modules/unistr/u32-mbtouc: Renamed from
12194         modules/unistr/u32-mbtouc-safe.
12195         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
12196         * lib/unistr.h: Update.
12197         * lib/unistr/u32-to-u8.c: Update.
12198         * lib/unistr/u32-to-u16.c: Update.
12199
12200 2007-01-27  Bruno Haible  <bruno@clisp.org>
12201
12202         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
12203         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
12204         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
12205         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
12206         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
12207         * modules/unistr/u16-mbtouc-unsafe: Renamed from
12208         modules/unistr/u16-mbtouc.
12209         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
12210         * lib/unistr.h: Update.
12211         * lib/linebreak.c: Update.
12212         * modules/linebreak: Update.
12213         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
12214         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
12215         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
12216         * modules/unistr/u16-mbtouc: Renamed from
12217         modules/unistr/u16-mbtouc-safe.
12218         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
12219         * lib/unistr.h: Update.
12220         * lib/unistr/u16-to-u8.c: Update.
12221         * modules/unistr/u16-to-u8: Update.
12222         * lib/unistr/u16-to-u32.c: Update.
12223         * modules/unistr/u16-to-u32: Update.
12224
12225 2007-01-27  Bruno Haible  <bruno@clisp.org>
12226
12227         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
12228         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
12229         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
12230         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
12231         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
12232         * modules/unistr/u8-mbtouc-unsafe: Renamed from
12233         modules/unistr/u8-mbtouc.
12234         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
12235         * lib/unistr.h: Update.
12236         * lib/striconveh.c: Update.
12237         * modules/striconveh: Update.
12238         * lib/linebreak.c: Update.
12239         * modules/linebreak: Update.
12240         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
12241         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
12242         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
12243         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
12244         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
12245         * lib/unistr.h: Update.
12246         * lib/striconveh.c: Update.
12247         * modules/striconveh: Update.
12248         * lib/unistr/u8-to-u16.c: Update.
12249         * modules/unistr/u8-to-u16: Update.
12250         * lib/unistr/u8-to-u32.c: Update.
12251         * modules/unistr/u8-to-u32: Update.
12252
12253 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12254
12255         Sync from Libtool.
12256         * lib/argz.c: Do not include strings.h nor memory.h, include
12257         string.h unconditionally.  Patch by Simon Josefsson.
12258
12259 2007-01-27  Bruno Haible  <bruno@clisp.org>
12260
12261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
12262         from gl_HEADER_STRING_H_BODY.
12263         (gl_HEADER_STRING_H_BODY): Require it.
12264         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
12265         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12267         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12269         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
12270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12271         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12272         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
12273         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12274         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12275         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
12276         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12277         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12278         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12279
12280 2007-01-27  Bruno Haible  <bruno@clisp.org>
12281
12282         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
12283         check_PROGRAMS into noinst_PROGRAMS.
12284         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
12285         check_PROGRAMS in this case.
12286         (func_import): Set for_test to false.
12287         (func_create_testdir): Set for_test to true.
12288
12289 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12290             Bruno Haible  <bruno@clisp.org>
12291
12292         * modules/strcasestr (Files): Remove lib/strcasestr.h.
12293         (Depends-on): Add string.
12294         (Includes): Use <string.h> instead of strcasestr.h.
12295         * modules/string (Makefile.am): Also substitute the value of
12296         REPLACE_STRCASESTR.
12297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
12298         assume strcasestr is declared in <string.h> not <strings.h>. Also
12299         set REPLACE_STRCASESTR.
12300         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
12301         REPLACE_STRCASESTR.
12302         * lib/strcasestr.h: Remove file.
12303         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
12304         * lib/string_.h (strcasestr): New declaration.
12305
12306 2007-01-27  Bruno Haible  <bruno@clisp.org>
12307
12308         * lib/string_.h: Use 'extern'.
12309
12310 2007-01-27  Jim Meyering  <jim@meyering.net>
12311
12312         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
12313         of set-but-not-used local, "q".
12314
12315         * lib/mempcpy.c: Include <config.h> before <string.h>.
12316         This fixes a compilation error on HP-UX, due to the system's
12317         "restrict"-using mempcpy prototype.
12318
12319 2007-01-26  Bruno Haible  <bruno@clisp.org>
12320
12321         Small optimization.
12322         * lib/javacomp.c: Include c-strstr.h.
12323          (is_envjavac_gcj): Use c_strstr instead of strstr.
12324         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
12325
12326 2007-01-26  Bruno Haible  <bruno@clisp.org>
12327
12328         * MODULES.html.sh (Unicode string functions): Add the new modules.
12329
12330         * modules/uniconv/u32-strconv-to-locale: New file.
12331         * lib/uniconv/u32-strconv-to-locale.c: New file.
12332
12333         * modules/uniconv/u16-strconv-to-locale: New file.
12334         * lib/uniconv/u16-strconv-to-locale.c: New file.
12335
12336         * modules/uniconv/u8-strconv-to-locale: New file.
12337         * lib/uniconv/u8-strconv-to-locale.c: New file.
12338
12339         * modules/uniconv/u32-strconv-from-locale: New file.
12340         * lib/uniconv/u32-strconv-from-locale.c: New file.
12341
12342         * modules/uniconv/u16-strconv-from-locale: New file.
12343         * lib/uniconv/u16-strconv-from-locale.c: New file.
12344
12345         * modules/uniconv/u8-strconv-from-locale: New file.
12346         * lib/uniconv/u8-strconv-from-locale.c: New file.
12347
12348         * modules/uniconv/u32-strconv-to-enc: New file.
12349         * lib/uniconv/u32-strconv-to-enc.c: New file.
12350         * modules/uniconv/u32-strconv-to-enc-tests: New file.
12351         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
12352
12353         * modules/uniconv/u16-strconv-to-enc: New file.
12354         * lib/uniconv/u16-strconv-to-enc.c: New file.
12355         * lib/uniconv/u-strconv-to-enc.h: New file.
12356         * modules/uniconv/u16-strconv-to-enc-tests: New file.
12357         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
12358
12359         * modules/uniconv/u8-strconv-to-enc: New file.
12360         * lib/uniconv/u8-strconv-to-enc.c: New file.
12361         * modules/uniconv/u8-strconv-to-enc-tests: New file.
12362         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
12363
12364         * modules/uniconv/u32-strconv-from-enc: New file.
12365         * lib/uniconv/u32-strconv-from-enc.c: New file.
12366         * modules/uniconv/u32-strconv-from-enc-tests: New file.
12367         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
12368
12369         * modules/uniconv/u16-strconv-from-enc: New file.
12370         * lib/uniconv/u16-strconv-from-enc.c: New file.
12371         * modules/uniconv/u16-strconv-from-enc-tests: New file.
12372         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
12373
12374         * modules/uniconv/u8-strconv-from-enc: New file.
12375         * lib/uniconv/u8-strconv-from-enc.c: New file.
12376         * lib/uniconv/u-strconv-from-enc.h: New file.
12377         * modules/uniconv/u8-strconv-from-enc-tests: New file.
12378         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
12379
12380         * modules/uniconv/u32-conv-from-enc: New file.
12381         * lib/uniconv/u32-conv-from-enc.c: New file.
12382         * modules/uniconv/u32-conv-from-enc-tests: New file.
12383         * tests/uniconv/test-u32-conv-from-enc.c: New file.
12384
12385         * modules/uniconv/u16-conv-from-enc: New file.
12386         * lib/uniconv/u16-conv-from-enc.c: New file.
12387         * lib/uniconv/u-conv-from-enc.h: New file.
12388         * modules/uniconv/u16-conv-from-enc-tests: New file.
12389         * tests/uniconv/test-u16-conv-from-enc.c: New file.
12390
12391         * modules/uniconv/u8-conv-from-enc: New file.
12392         * lib/uniconv/u8-conv-from-enc.c: New file.
12393         * modules/uniconv/u8-conv-from-enc-tests: New file.
12394         * tests/uniconv/test-u8-conv-from-enc.c: New file.
12395
12396         * modules/uniconv/base: New file.
12397         * lib/uniconv.h: New file.
12398
12399 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
12400
12401         * doc/gnulib-tool.texi (Initial import): Update to match current
12402         behavior with strdup module.
12403         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
12404         * lib/memmem.h: Remove; all uses removed.  This is now done
12405         by <string.h>.
12406         * lib/mempcpy.h: Likewise.
12407         * lib/memrchr.h: Likewise.
12408         * lib/stpcpy.h: Likewise.
12409         * lib/stpncpy.h: Likewise.
12410         * lib/strcase.h: Likewise.
12411         * lib/strchrnul.h: Likewise.
12412         * lib/strdup.h: Likewise.
12413         * lib/strndup.h: Likewise.
12414         * lib/strnlen.h: Likewise.
12415         * lib/strpbrk.h: Likewise.
12416         * lib/strsep.h: Likewise.
12417         * lib/strstr.h: Likewise.
12418         * lib/strtok_r.h: Likewise.
12419         * lib/string_.h: New file.
12420         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
12421         Rely on <string.h> instead.
12422         * lib/canon-host.c: Likewise.
12423         * lib/chdir-long.c: Likewise.
12424         * lib/concatpath.c: Likewise.
12425         * lib/exclude.c: Likewise.
12426         * lib/fchdir.c: Likewise.
12427         * lib/getaddrinfo.c: Likewise.
12428         * lib/getcwd.c: Likewise.
12429         * lib/getsubopt.c: Likewise.
12430         * lib/glob.c: Likewise.
12431         * lib/hard-locale.c: Likewise.
12432         * lib/iconvme.c: Likewise.
12433         * lib/javacomp.c: Likewise.
12434         * lib/mempcpy.c: Likewise.
12435         * lib/memrchr.c: Likewise.
12436         * lib/regex_internal.h: Likewise.
12437         * lib/stpncpy.c: Likewise.
12438         * lib/strcasecmp.c: Likewise.
12439         * lib/strchrnul.c: Likewise.
12440         * lib/strdup.c: Likewise.
12441         * lib/striconv.c: Likewise.
12442         * lib/striconveh.c: Likewise.
12443         * lib/striconveha.c: Likewise.
12444         * lib/strncasecmp.c: Likewise.
12445         * lib/strndup.c: Likewise.
12446         * lib/strnlen.c: Likewise.
12447         * lib/strsep.c: Likewise.
12448         * lib/strstr.c: Likewise.
12449         * lib/strtok_r.c: Likewise.
12450         * lib/userspec.c: Likewise.
12451         * lib/w32spawn.h: Likewise.
12452         * lib/xstrndup.c: Likewise.
12453         * lib/mountlist.c (strstr): Remove decl.
12454         * m4/string_h.m4: New file.
12455         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
12456         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
12457         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
12458         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
12459         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
12460         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
12461         Set REPLACE_STRCASECMP if necessary.
12462         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
12463         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
12464         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
12465         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
12466         HAVE_DECL_STRDUP if necessary.
12467         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
12468         since gl_FUNC_STRNDUP does that now.
12469         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
12470         Check for decl here...
12471         (gl_PREREQ_STRNLEN): ... not here.
12472         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
12473         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
12474         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
12475         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
12476         necessary.
12477         * modules/string: New file.
12478         * modules/memmem (Files): Remove special-purpose include file.
12479         (Depends-on): Add string.
12480         (Include): Include <string.h>, not the removed file.
12481         * modules/mempcpy: Likewise.
12482         * modules/memrchr: Likewise.
12483         * modules/stpcpy: Likewise.
12484         * modules/stpncpy: Likewise.
12485         * modules/strcase: Likewise.
12486         * modules/strchrnul: Likewise.
12487         * modules/strdup: Likewise.
12488         * modules/strndup: Likewise.
12489         * modules/strnlen: Likewise.
12490         * modules/strpbrk: Likewise.
12491         * modules/strsep: Likewise.
12492         * modules/strstr: Likewise.
12493         * modules/strtok_r: Likewise.
12494         * tests/test-dirname.c: Don't include "strdup.h", since
12495         <string.h> now suffices.
12496         * tests/test-memmem.c: Don't include "memmem.h", since
12497         <string.h> now suffices.
12498
12499 2007-01-25  Bruno Haible  <bruno@clisp.org>
12500
12501         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
12502         *resultp is 0.
12503
12504         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
12505         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
12506         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
12507         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
12508
12509         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
12510         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
12511         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
12512         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
12513         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
12514         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
12515
12516 2007-01-24  Bruno Haible  <bruno@clisp.org>
12517
12518         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
12519         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
12520         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
12521         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
12522         gl_FUNC_FTS_CORE.
12523         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
12524         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
12525         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12526         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
12527         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
12528         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
12529         gl_FUNC_FCHOWNAT.
12530         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
12531         gl_FUNC_STRFTIME.
12532         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
12533         Reported by Ralf Wildenhues.
12534
12535 2007-01-24  Bruno Haible  <bruno@clisp.org>
12536
12537         Drop AC_REQUIRE calls that are redundant with the module dependencies.
12538         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
12539         gl_GETADDRINFO.
12540         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
12541         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
12542         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
12543
12544 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
12547         Don't use 'exit'; just return from 'main'.
12548         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
12549
12550         * lib/fnmatch_.h: Readjust white space and comments to match
12551         glibc, to avoid spurious diffs.
12552
12553 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12554
12555         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
12556         2004-12-01 change by Jakub Jelinek, since this code won't compile
12557         if !LIBC.  Problem reported by Bob Proulx.
12558
12559 2007-01-23  Bruno Haible  <bruno@clisp.org>
12560
12561         * lib/striconveh.c: Include c-strcaseeq.h.
12562         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
12563         * modules/striconveh (Depends-on): Add c-strcaseeq.
12564
12565 2007-01-23  Bruno Haible  <bruno@clisp.org>
12566
12567         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
12568
12569         * modules/c-strcaseeq: New file.
12570         * lib/c-strcaseeq.h: New file.
12571
12572         * modules/streq: New file.
12573         * lib/streq.h: New file.
12574
12575 2007-01-23  Bruno Haible  <bruno@clisp.org>
12576
12577         * modules/striconveha-tests: New file.
12578         * tests/test-striconveha.c: New file.
12579
12580         * lib/striconveha.h: Include <stdbool.h>.
12581         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
12582         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
12583         (mem_iconveha_notranslit): Renamed from mem_iconveha.
12584         (mem_iconveha): New function.
12585         (str_iconveha_notranslit): Renamed from str_iconveha.
12586         (str_iconveha): New function.
12587         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
12588         c-strcase.
12589
12590 2007-01-23  Bruno Haible  <bruno@clisp.org>
12591
12592         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
12593         encodings without forgiving before trying any encoding with handler.
12594         (str_iconveha): Try all encodings without forgiving before trying any
12595         encoding with handler.
12596
12597 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12598
12599         Import the following changes from libc.
12600
12601         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
12602
12603         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
12604
12605         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
12606
12607         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
12608         normal_bracket label.
12609
12610         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
12611
12612         [BZ #361]
12613         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
12614         to normal_bracket after fetching the next character.
12615
12616 2007-01-22  Bruno Haible  <bruno@clisp.org>
12617
12618         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
12619         argument.
12620         * lib/striconveh.c (iconv_carefully_1): New function.
12621         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
12622         argument.
12623         (str_cd_iconveh): Update.
12624         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
12625         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
12626         * tests/test-striconveh.c (MAGIC): New macro.
12627         (new_offsets): New function.
12628         (main): Test call with and without offsets.
12629
12630 2007-01-22  Bruno Haible  <bruno@clisp.org>
12631
12632         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
12633         * modules/sys_select (Makefile.am): Likewise.
12634         * modules/sys_socket (Makefile.am): Likewise.
12635         * modules/sys_time (Makefile.am): Likewise.
12636
12637 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
12638
12639         * modules/gettimeofday (License): Change from GPL to LGPL, since
12640         gettimeofday is a library function.
12641
12642 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12643
12644         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
12645
12646 2007-01-21  Bruno Haible  <bruno@clisp.org>
12647
12648         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
12649
12650 2007-01-21  Bruno Haible  <bruno@clisp.org>
12651
12652         * modules/striconveha: New file.
12653         * lib/striconveha.h: New file.
12654         * lib/striconveha.c: New file.
12655         * MODULES.html.sh (Internationalization functions): Add striconveha.
12656         * lib/striconv.c (str_iconv): Optimize the case of an empty input
12657         string.
12658         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
12659
12660 2007-01-21  Bruno Haible  <bruno@clisp.org>
12661
12662         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
12663         * lib/striconveh.c (str_iconveh): Likewise.
12664
12665 2007-01-21  Bruno Haible  <bruno@clisp.org>
12666
12667         * lib/striconveh.h (mem_iconveh): New declaration.
12668         * lib/striconveh.c (mem_iconveh): New function.
12669         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
12670
12671 2007-01-21  Bruno Haible  <bruno@clisp.org>
12672
12673         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
12674
12675         * lib/striconveh.h (mem_cd_iconveh): Change specification.
12676         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
12677         original result buffer.
12678         (str_cd_iconveh): Update.
12679         * tests/test-striconveh.c (main): Update.
12680
12681         * lib/striconv.h (mem_cd_iconv): Change specification.
12682         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
12683         result buffer.
12684         (str_cd_iconv): Update.
12685         * tests/test-striconv.c (main): Update.
12686
12687 2007-01-21  Bruno Haible  <bruno@clisp.org>
12688
12689         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
12690
12691 2007-01-20  Jim Meyering  <jim@meyering.net>
12692
12693         * lib/userspec.c (parse_with_separator): If a user or group string
12694         starts with "+", skip the corresponding name-to-ID look-up, since
12695         such a look-up must fail: user and group names may not include "+".
12696
12697 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12698
12699         * lib/poll.c: Include sys/time.h and time.h unconditionally,
12700         since we now assume the sys_time module.
12701         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
12702         check for sys/time.h; no longer needed.
12703         * modules/poll (Depends-on): Depend on sys_time.
12704
12705 2007-01-18  Bruno Haible  <bruno@clisp.org>
12706
12707         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
12708         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
12709
12710         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
12711         gettimeofday.
12712
12713         * tests/test-gettimeofday.c: Include <time.h>.
12714         (dummy): Remove variable.
12715
12716         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
12717         gl_HEADER_SYS_TIME_H.
12718         (gl_HEADER_SYS_TIME_H): New macro.
12719
12720         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
12721         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12722         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
12723         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
12724         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12725         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
12726         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
12727         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12728         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
12729         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
12730         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12731
12732         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
12733         last change; it caused a compilation error when cross-compiling to
12734         Cygwin.
12735
12736 2007-01-18  Jim Meyering  <jim@meyering.net>
12737
12738         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
12739         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
12740         than the race-prone "test -d sys || mkdir sys".
12741         (configure.ac): Use AC_PROG_MKDIR_P.
12742         * modules/sys_select: Likewise.
12743         * modules/sys_socket: Likewise.
12744         * modules/sys_time: Likewise.
12745
12746 2007-01-18  Eric Blake  <ebb9@byu.net>
12747
12748         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
12749         replace gettimeofday.
12750         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
12751         name, to avoid infinite recursion.
12752
12753 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
12754
12755         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
12756         module sys_time.
12757         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
12758         assume timespec.h defines struct timeval.
12759         * lib/settime.c: Likewise.
12760         * lib/utimens.c: Likewise.
12761         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
12762         since we now assume the gettimeofday module.
12763         * lib/tempname.c (__gen_tempname): Likewise.
12764         * lib/gettimeofday.h: Remove.
12765         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
12766         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
12767         Include <time.h>, for 'time()'.
12768         (localtime_buffer_addr): Also use this workaround if
12769         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
12770         to simplify the uses.  All uses changed.
12771         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
12772         that #undef is inside {}, and 'const' follows type name consistently.
12773         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
12774         (gettimeofday): Do not use the maximum possible value for
12775         tv->tv_usec, since that might break usages other than ls.c.
12776         Instead, we'll leave ls.c alone.  This undoes today's patch
12777         by Bruno.  Add a compile-time warning for 1s-clock resolution;
12778         we've never observed the problem but might as well keep the
12779         canary.
12780         * lib/nanosleep.c: Include timespec.h first, for interface check.
12781         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
12782         now assume the sys_time module.
12783         * lib/tempname.c: Likewise.
12784         * lib/timespec.h: Likewise.
12785         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
12786         needed.
12787         * lib/strftime.c: Likewise.
12788         * lib/timespec.h: Likewise.
12789         * lib/posixtm.c: Include posixtm.h first, for interface check.
12790         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
12791         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
12792         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
12793         * lib/sys_time_.h: New file.
12794         * lib/timespec.h (struct timespec): Use long int, not long.
12795         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
12796         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
12797         Remove obsolescent call to AC_HEADER_TIME.
12798         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12800         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
12801         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
12802         Likewise.
12803         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
12804         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
12805         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
12806         into the sys_time module.  Check for gettimeofday just once.
12807         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
12808         for gettimeofday signature to just check the signature.  Merely
12809         compile it, since linking doesn't test signature.  Improve test for
12810         whether gettimeofday.o is actually needed.
12811         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
12812         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
12813         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
12814         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12815         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
12816         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
12817         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
12818         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
12819         than worrying about sys/time.h.
12820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12821         Don't bother worrying about TIME_WITH_SYS_TIME.
12822         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
12823         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
12824         * m4/sys_time_h.m4: New file.
12825         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
12826         Don't include sys/time.h.  Return from main rather than exiting.
12827         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
12828         all uses changed.
12829         * modules/gethrxtime (Depends-on): Add sys_time.
12830         * modules/gettime (Depends-on): Likewise.
12831         * modules/gettimeofday (Depends-on): Likewise.
12832         * modules/nanosleep (Depends-on): Likewise.
12833         * modules/settime (Depends-on): Likewise.
12834         * modules/tempname (Depends-on): Likewise.
12835         * modules/utimens (Depends-on): Likewise.
12836         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
12837         (Include:) Change back to <sys/time.h>.
12838         (Maintainer:) Add self.
12839         * modules/sys_time: New file.
12840         * modules/tempname (Depends-on): Add gettimeofday.
12841         * tests/test-gettimeofday.c: Include <sys/time.h>
12842         rather than gettimeofday.h.
12843
12844 2007-01-17  Bruno Haible  <bruno@clisp.org>
12845
12846         * gnulib-tool (func_get_license): Revert last patch. Instead, let
12847         the license default to GPL.
12848         (func_create_testdir): Don't complain if a module is LGPL and its
12849         tests module depends on GPLed modules.
12850
12851 2007-01-17  Bruno Haible  <bruno@clisp.org>
12852
12853         * lib/gettimeofday.c (gettimeofday): Add code for the case
12854         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
12855         maximum possible value for tv->tv_usec, rather than the minimum one.
12856
12857 2005-10-08  Martin Lambers  <marlam@marlam.de>
12858 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12859 2007-01-16  Bruno Haible  <bruno@clisp.org>
12860
12861         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
12862         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
12863         gl_FUNC_GETTIMEOFDAY.
12864         (Include): Add gettimeofday.h.
12865         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
12866         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
12867         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
12868         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
12869         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
12870         * lib/gettimeofday.h: New file.
12871         * lib/gettimeofday.c: Include <sys/timeb.h>.
12872         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
12873         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12874         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
12875         fall back on time().
12876
12877         * tests/test-gettimeofday.c: New file.
12878         * modules/gettimeofday-tests: New file.
12879
12880 2007-01-16  Eric Blake  <ebb9@byu.net>
12881
12882         * modules/fnmatch (Depends-on): Depend on wchar.
12883         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
12884         * m4/fnmatch.m4: Likewise.
12885         * modules/mbchar (Makefile.am): Assume <wchar.h>.
12886         * m4/mbchar.m4: Likewise.
12887         * modules/mbswidth (Depends-on): Depend on wchar.
12888         * lib/mbswidth.c: Assume <wchar.h>.
12889         * m4/mbswidth.m4: Likewise.
12890         * modules/quotearg (Depends-on): Depend on wchar.
12891         * lib/quotearg.c: Assume <wchar.h>.
12892         * m4/quotearg.m4: Likewise.
12893         * modules/regex (Depends-on): Depend on wchar.
12894         * lib/regex_internal.h: Assume <wchar.h>.
12895         * m4/regex.m4: Likewise.
12896         * modules/stdint (Depends-on): Depend on wchar.
12897         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
12898         * m4/stdint.m4: Likewise.
12899         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
12900         * modules/strftime (Depends-on): Depend on wchar.
12901         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
12902         * modules/strtol (Depends-on): Depend on wchar.
12903         * lib/strtol.c: Assume <wchar.h>.
12904         * modules/wcwidth (Depends-on): Depend on wchar.
12905         * lib/wcwidth.h: Assume <wchar.h>.
12906         * m4/wcwidth.m4: Likewise.
12907
12908 2007-01-16  Bruno Haible  <bruno@clisp.org>
12909
12910         * modules/csharpexec-script: New, created from...
12911         * modules/csharpexec: ... this.
12912
12913 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
12914
12915         * modules/javaexec-script: New, created from...
12916         * modules/javaexec: ... this.
12917
12918 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12919
12920         * modules/poll (Dependencies): Add sys_select.
12921
12922 2007-01-15  Jim Meyering  <jim@meyering.net>
12923
12924         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
12925         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
12926         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
12927         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
12928
12929 2007-01-15  Bruno Haible  <bruno@clisp.org>
12930
12931         * modules/striconveh: New file.
12932         * lib/striconveh.h: New file.
12933         * lib/striconveh.c: New file.
12934         * MODULES.html.sh (Internationalization functions): Add striconveh.
12935
12936         * modules/striconveh-tests: New file.
12937         * tests/test-striconveh.c: New file.
12938
12939 2007-01-15  Bruno Haible  <bruno@clisp.org>
12940
12941         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
12942         not from GNU libiconv or GNU libc.
12943
12944 2007-01-15  Bruno Haible  <bruno@clisp.org>
12945
12946         * doc/gnulib-intro.texi (Copyright): Explain the different license
12947         terms for module descriptions, autoconf macros, tests, documentation.
12948
12949 2007-01-14  Bruno Haible  <bruno@clisp.org>
12950
12951         * modules/striconv-tests: New file.
12952         * tests/test-striconv.c: New file.
12953
12954 2007-01-14  Bruno Haible  <bruno@clisp.org>
12955
12956         * modules/iconv-tests: New file.
12957         * tests/test-iconv.c: New file.
12958
12959 2007-01-14  Bruno Haible  <bruno@clisp.org>
12960
12961         * gnulib-tool (func_get_license): For test modules, use the license of
12962         the main module.
12963
12964 2007-01-14  Bruno Haible  <bruno@clisp.org>
12965
12966         * modules/iconv (Include): Clarify that <iconv.h> can only be included
12967         if iconv is found to exist.
12968
12969 2007-01-14  Bruno Haible  <bruno@clisp.org>
12970
12971         * modules/c-ctype-tests: New file.
12972         * tests/test-c-ctype.c: New file.
12973
12974 2007-01-14  Bruno Haible  <bruno@clisp.org>
12975
12976         * modules/binary-io-tests: New file.
12977         * tests/test-binary-io.sh: New file.
12978         * tests/test-binary-io.c: New file.
12979
12980 2007-01-14  Bruno Haible  <bruno@clisp.org>
12981
12982         * modules/array-oset-tests: New file.
12983         * tests/test-array_oset.c: New file.
12984
12985 2007-01-14  Bruno Haible  <bruno@clisp.org>
12986
12987         * modules/array-list-tests: New file.
12988         * tests/test-array_list.c: New file.
12989
12990 2007-01-14  Bruno Haible  <bruno@clisp.org>
12991
12992         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
12993         and make.
12994         Reported by Simon Josefsson in
12995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
12996
12997 2007-01-14  Bruno Haible  <bruno@clisp.org>
12998
12999         * modules/allocsa-tests: New file.
13000         * tests/test-allocsa.c: New file.
13001
13002 2007-01-14  Bruno Haible  <bruno@clisp.org>
13003
13004         * modules/fchdir (Depends-on): Add absolute-header.
13005         * modules/unistd (Depends-on): Likewise.
13006
13007 2006-12-30  Bruno Haible  <bruno@clisp.org>
13008
13009         * modules/fchdir: New file.
13010         * modules/unistd (Files): Add lib/unistd_.h.
13011         (Makefile.am): Generate unistd.h from unistd_.h.
13012         * lib/fchdir.c: New file.
13013         * lib/dirent_.h: New file.
13014         * lib/unistd_.h: New file.
13015         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
13016         * m4/fchdir.m4: New file.
13017         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
13018         (gl_HEADER_UNISTD): Invoke it.
13019         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
13020         function.
13021         * lib/backupfile.c (opendir, closedir): Undefine.
13022         * lib/chown.c (open, close): Undefine.
13023         * lib/clean-temp.c (open, close): Undefine.
13024         * lib/copy-file.c (open, close): Undefine.
13025         * lib/execute.c (open, close): Undefine.
13026         * lib/fsusage.c (open, close): Undefine.
13027         * lib/gc-gnulib.c (open, close): Undefine.
13028         * lib/getcwd.c (opendir, closedir): Undefine.
13029         * lib/glob.c (opendir, closedir): Undefine.
13030         * lib/javacomp.c (open, close): Undefine.
13031         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
13032         * lib/openat-proc.c (open, close): Undefine.
13033         * lib/pagealign_alloc.c (open, close): Undefine.
13034         * lib/pipe.c (open, close): Undefine.
13035         * lib/progreloc.c (open, close): Undefine.
13036         * lib/savedir.c (opendir, closedir): Undefine.
13037         * lib/utime.c (open, close): Undefine.
13038         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
13039
13040 2007-01-10  Bruno Haible  <bruno@clisp.org>
13041
13042         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
13043
13044 2007-01-12  Eric Blake  <ebb9@byu.net>
13045
13046         Provide a robust <wchar.h>.  Further simplifications are now
13047         possible in other modules, but not included here.
13048         * modules/wchar: New module.
13049         * m4/wchar.m4: New file.
13050         * lib/wchar_.h: Likewise.
13051         * modules/mbchar (Depends-on): Depend on wchar, as the first use
13052         of the new module.
13053         * MODULES.html.sh (Extended multibyte and wide character utilities):
13054         New section.
13055
13056 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
13057
13058         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
13059         to a reasonable default for memory allocation.
13060         (xreadlink): Don't allocate a huge buffer, to work around a buggy
13061         file system that reports garbage st_size values for symlinks.
13062         Problem reported by Liyang Hu.
13063
13064 2007-01-11  Simon Josefsson  <simon@josefsson.org>
13065
13066         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
13067         Emacs .#* auto-save files).
13068
13069 2007-01-11  Bruno Haible  <bruno@clisp.org>
13070
13071         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
13072         directory.
13073
13074 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13075
13076         Use @...@ consistently in lib/wctype_.h.
13077         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
13078         on it being set to 1 or 0.
13079         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
13080         go back to AC_SUBSTing it.
13081         * modules/wctype (Makefile.am): Undo previous change.
13082
13083 2007-01-10  Eric Blake  <ebb9@byu.net>
13084
13085         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
13086         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
13087         * modules/wctype (Makefile.am): Likewise.
13088         Reported by Chris McGuire.
13089
13090 2007-01-10  Jim Meyering  <jim@meyering.net>
13091
13092         fts.c: a small readability/maintainability improvement
13093         * lib/fts.c (fts_read): Make this code slightly more readable and
13094         maintainable by hoisting the "sp->fts_cur = p" assignments to
13095         immediately follow the statements that set P.  Derived from
13096         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
13097
13098 2007-01-10  Eric Blake  <ebb9@byu.net>
13099
13100         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
13101         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
13102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13103         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13104         Reported by Chris McGuire.
13105
13106 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13107
13108         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
13109         in sed script.
13110
13111 2007-01-09  Bruno Haible  <bruno@clisp.org>
13112
13113         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
13114         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
13115         variables.
13116         (func_module): Use them.
13117
13118 2007-01-09  Bruno Haible  <bruno@clisp.org>
13119
13120         * modules/unistr/base: New file.
13121         * lib/unistr.h: New file.
13122
13123         * modules/unistr/u8-to-u16: New file.
13124         * lib/unistr/u8-to-u16.c: New file.
13125
13126         * modules/unistr/u8-to-u32: New file.
13127         * lib/unistr/u8-to-u32.c: New file.
13128
13129         * modules/unistr/u16-to-u8: New file.
13130         * lib/unistr/u16-to-u8.c: New file.
13131
13132         * modules/unistr/u16-to-u32: New file.
13133         * lib/unistr/u16-to-u32.c: New file.
13134
13135         * modules/unistr/u32-to-u8: New file.
13136         * lib/unistr/u32-to-u8.c: New file.
13137
13138         * modules/unistr/u32-to-u16: New file.
13139         * lib/unistr/u32-to-u16.c: New file.
13140
13141         * modules/unistr/u8-check: New file.
13142         * modules/unistr/u16-check: New file.
13143         * modules/unistr/u32-check: New file.
13144         * lib/unistr/u8-check.c: New file.
13145         * lib/unistr/u16-check.c: New file.
13146         * lib/unistr/u32-check.c: New file.
13147
13148         * modules/unistr/u8-chr: New file.
13149         * modules/unistr/u16-chr: New file.
13150         * modules/unistr/u32-chr: New file.
13151         * lib/unistr/u8-chr.c: New file.
13152         * lib/unistr/u16-chr.c: New file.
13153         * lib/unistr/u32-chr.c: New file.
13154
13155         * modules/unistr/u8-cmp: New file.
13156         * modules/unistr/u16-cmp: New file.
13157         * modules/unistr/u32-cmp: New file.
13158         * lib/unistr/u8-cmp.c: New file.
13159         * lib/unistr/u16-cmp.c: New file.
13160         * lib/unistr/u32-cmp.c: New file.
13161
13162         * modules/unistr/u8-cpy: New file.
13163         * modules/unistr/u16-cpy: New file.
13164         * modules/unistr/u32-cpy: New file.
13165         * lib/unistr/u8-cpy.c: New file.
13166         * lib/unistr/u16-cpy.c: New file.
13167         * lib/unistr/u32-cpy.c: New file.
13168         * lib/unistr/u-cpy.h: New file.
13169
13170         * modules/unistr/u8-cpy-alloc: New file.
13171         * modules/unistr/u16-cpy-alloc: New file.
13172         * modules/unistr/u32-cpy-alloc: New file.
13173         * lib/unistr/u8-cpy-alloc.c: New file.
13174         * lib/unistr/u16-cpy-alloc.c: New file.
13175         * lib/unistr/u32-cpy-alloc.c: New file.
13176         * lib/unistr/u-cpy-alloc.h: New file.
13177
13178         * modules/unistr/u8-endswith: New file.
13179         * modules/unistr/u16-endswith: New file.
13180         * modules/unistr/u32-endswith: New file.
13181         * lib/unistr/u8-endswith.c: New file.
13182         * lib/unistr/u16-endswith.c: New file.
13183         * lib/unistr/u32-endswith.c: New file.
13184         * lib/unistr/u-endswith.h: New file.
13185
13186         * modules/unistr/u8-mblen: New file.
13187         * modules/unistr/u16-mblen: New file.
13188         * modules/unistr/u32-mblen: New file.
13189         * lib/unistr/u8-mblen.c: New file.
13190         * lib/unistr/u16-mblen.c: New file.
13191         * lib/unistr/u32-mblen.c: New file.
13192
13193         * modules/unistr/u8-mbtouc: New file.
13194         * modules/unistr/u16-mbtouc: New file.
13195         * modules/unistr/u32-mbtouc: New file.
13196         * lib/unistr/u8-mbtouc.c: New file.
13197         * lib/unistr/u16-mbtouc.c: New file.
13198         * lib/unistr/u32-mbtouc.c: New file.
13199
13200         * modules/unistr/u8-mbtouc-safe: New file.
13201         * modules/unistr/u16-mbtouc-safe: New file.
13202         * modules/unistr/u32-mbtouc-safe: New file.
13203         * lib/unistr/u8-mbtouc-safe.c: New file.
13204         * lib/unistr/u16-mbtouc-safe.c: New file.
13205         * lib/unistr/u32-mbtouc-safe.c: New file.
13206
13207         * modules/unistr/u8-move: New file.
13208         * modules/unistr/u16-move: New file.
13209         * modules/unistr/u32-move: New file.
13210         * lib/unistr/u8-move.c: New file.
13211         * lib/unistr/u16-move.c: New file.
13212         * lib/unistr/u32-move.c: New file.
13213         * lib/unistr/u-move.h: New file.
13214
13215         * modules/unistr/u8-next: New file.
13216         * modules/unistr/u16-next: New file.
13217         * modules/unistr/u32-next: New file.
13218         * lib/unistr/u8-next.c: New file.
13219         * lib/unistr/u16-next.c: New file.
13220         * lib/unistr/u32-next.c: New file.
13221
13222         * modules/unistr/u8-prev: New file.
13223         * modules/unistr/u16-prev: New file.
13224         * modules/unistr/u32-prev: New file.
13225         * lib/unistr/u8-prev.c: New file.
13226         * lib/unistr/u16-prev.c: New file.
13227         * lib/unistr/u32-prev.c: New file.
13228
13229         * modules/unistr/u8-set: New file.
13230         * modules/unistr/u16-set: New file.
13231         * modules/unistr/u32-set: New file.
13232         * lib/unistr/u8-set.c: New file.
13233         * lib/unistr/u16-set.c: New file.
13234         * lib/unistr/u32-set.c: New file.
13235         * lib/unistr/u-set.h: New file.
13236
13237         * modules/unistr/u8-startswith: New file.
13238         * modules/unistr/u16-startswith: New file.
13239         * modules/unistr/u32-startswith: New file.
13240         * lib/unistr/u8-startswith.c: New file.
13241         * lib/unistr/u16-startswith.c: New file.
13242         * lib/unistr/u32-startswith.c: New file.
13243         * lib/unistr/u-startswith.h: New file.
13244
13245         * modules/unistr/u8-stpcpy: New file.
13246         * modules/unistr/u16-stpcpy: New file.
13247         * modules/unistr/u32-stpcpy: New file.
13248         * lib/unistr/u8-stpcpy.c: New file.
13249         * lib/unistr/u16-stpcpy.c: New file.
13250         * lib/unistr/u32-stpcpy.c: New file.
13251         * lib/unistr/u-stpcpy.h: New file.
13252
13253         * modules/unistr/u8-stpncpy: New file.
13254         * modules/unistr/u16-stpncpy: New file.
13255         * modules/unistr/u32-stpncpy: New file.
13256         * lib/unistr/u8-stpncpy.c: New file.
13257         * lib/unistr/u16-stpncpy.c: New file.
13258         * lib/unistr/u32-stpncpy.c: New file.
13259         * lib/unistr/u-stpncpy.h: New file.
13260
13261         * modules/unistr/u8-strcat: New file.
13262         * modules/unistr/u16-strcat: New file.
13263         * modules/unistr/u32-strcat: New file.
13264         * lib/unistr/u8-strcat.c: New file.
13265         * lib/unistr/u16-strcat.c: New file.
13266         * lib/unistr/u32-strcat.c: New file.
13267         * lib/unistr/u-strcat.h: New file.
13268
13269         * modules/unistr/u8-strchr: New file.
13270         * modules/unistr/u16-strchr: New file.
13271         * modules/unistr/u32-strchr: New file.
13272         * lib/unistr/u8-strchr.c: New file.
13273         * lib/unistr/u16-strchr.c: New file.
13274         * lib/unistr/u32-strchr.c: New file.
13275
13276         * modules/unistr/u8-strcmp: New file.
13277         * modules/unistr/u16-strcmp: New file.
13278         * modules/unistr/u32-strcmp: New file.
13279         * lib/unistr/u8-strcmp.c: New file.
13280         * lib/unistr/u16-strcmp.c: New file.
13281         * lib/unistr/u32-strcmp.c: New file.
13282
13283         * modules/unistr/u8-strcpy: New file.
13284         * modules/unistr/u16-strcpy: New file.
13285         * modules/unistr/u32-strcpy: New file.
13286         * lib/unistr/u8-strcpy.c: New file.
13287         * lib/unistr/u16-strcpy.c: New file.
13288         * lib/unistr/u32-strcpy.c: New file.
13289         * lib/unistr/u-strcpy.h: New file.
13290
13291         * modules/unistr/u8-strcspn: New file.
13292         * modules/unistr/u16-strcspn: New file.
13293         * modules/unistr/u32-strcspn: New file.
13294         * lib/unistr/u8-strcspn.c: New file.
13295         * lib/unistr/u16-strcspn.c: New file.
13296         * lib/unistr/u32-strcspn.c: New file.
13297         * lib/unistr/u-strcspn.h: New file.
13298
13299         * modules/unistr/u8-strdup: New file.
13300         * modules/unistr/u16-strdup: New file.
13301         * modules/unistr/u32-strdup: New file.
13302         * lib/unistr/u8-strdup.c: New file.
13303         * lib/unistr/u16-strdup.c: New file.
13304         * lib/unistr/u32-strdup.c: New file.
13305         * lib/unistr/u-strdup.h: New file.
13306
13307         * modules/unistr/u8-strlen: New file.
13308         * modules/unistr/u16-strlen: New file.
13309         * modules/unistr/u32-strlen: New file.
13310         * lib/unistr/u8-strlen.c: New file.
13311         * lib/unistr/u16-strlen.c: New file.
13312         * lib/unistr/u32-strlen.c: New file.
13313         * lib/unistr/u-strlen.h: New file.
13314
13315         * modules/unistr/u8-strmblen: New file.
13316         * modules/unistr/u16-strmblen: New file.
13317         * modules/unistr/u32-strmblen: New file.
13318         * lib/unistr/u8-strmblen.c: New file.
13319         * lib/unistr/u16-strmblen.c: New file.
13320         * lib/unistr/u32-strmblen.c: New file.
13321
13322         * modules/unistr/u8-strmbtouc: New file.
13323         * modules/unistr/u16-strmbtouc: New file.
13324         * modules/unistr/u32-strmbtouc: New file.
13325         * lib/unistr/u8-strmbtouc.c: New file.
13326         * lib/unistr/u16-strmbtouc.c: New file.
13327         * lib/unistr/u32-strmbtouc.c: New file.
13328
13329         * modules/unistr/u8-strncat: New file.
13330         * modules/unistr/u16-strncat: New file.
13331         * modules/unistr/u32-strncat: New file.
13332         * lib/unistr/u8-strncat.c: New file.
13333         * lib/unistr/u16-strncat.c: New file.
13334         * lib/unistr/u32-strncat.c: New file.
13335         * lib/unistr/u-strncat.h: New file.
13336
13337         * modules/unistr/u8-strncmp: New file.
13338         * modules/unistr/u16-strncmp: New file.
13339         * modules/unistr/u32-strncmp: New file.
13340         * lib/unistr/u8-strncmp.c: New file.
13341         * lib/unistr/u16-strncmp.c: New file.
13342         * lib/unistr/u32-strncmp.c: New file.
13343
13344         * modules/unistr/u8-strncpy: New file.
13345         * modules/unistr/u16-strncpy: New file.
13346         * modules/unistr/u32-strncpy: New file.
13347         * lib/unistr/u8-strncpy.c: New file.
13348         * lib/unistr/u16-strncpy.c: New file.
13349         * lib/unistr/u32-strncpy.c: New file.
13350         * lib/unistr/u-strncpy.h: New file.
13351
13352         * modules/unistr/u8-strnlen: New file.
13353         * modules/unistr/u16-strnlen: New file.
13354         * modules/unistr/u32-strnlen: New file.
13355         * lib/unistr/u8-strnlen.c: New file.
13356         * lib/unistr/u16-strnlen.c: New file.
13357         * lib/unistr/u32-strnlen.c: New file.
13358         * lib/unistr/u-strnlen.h: New file.
13359
13360         * modules/unistr/u8-strpbrk: New file.
13361         * modules/unistr/u16-strpbrk: New file.
13362         * modules/unistr/u32-strpbrk: New file.
13363         * lib/unistr/u8-strpbrk.c: New file.
13364         * lib/unistr/u16-strpbrk.c: New file.
13365         * lib/unistr/u32-strpbrk.c: New file.
13366         * lib/unistr/u-strpbrk.h: New file.
13367
13368         * modules/unistr/u8-strrchr: New file.
13369         * modules/unistr/u16-strrchr: New file.
13370         * modules/unistr/u32-strrchr: New file.
13371         * lib/unistr/u8-strrchr.c: New file.
13372         * lib/unistr/u16-strrchr.c: New file.
13373         * lib/unistr/u32-strrchr.c: New file.
13374
13375         * modules/unistr/u8-strspn: New file.
13376         * modules/unistr/u16-strspn: New file.
13377         * modules/unistr/u32-strspn: New file.
13378         * lib/unistr/u8-strspn.c: New file.
13379         * lib/unistr/u16-strspn.c: New file.
13380         * lib/unistr/u32-strspn.c: New file.
13381         * lib/unistr/u-strspn.h: New file.
13382
13383         * modules/unistr/u8-strstr: New file.
13384         * modules/unistr/u16-strstr: New file.
13385         * modules/unistr/u32-strstr: New file.
13386         * lib/unistr/u8-strstr.c: New file.
13387         * lib/unistr/u16-strstr.c: New file.
13388         * lib/unistr/u32-strstr.c: New file.
13389         * lib/unistr/u-strstr.h: New file.
13390
13391         * modules/unistr/u8-strtok: New file.
13392         * modules/unistr/u16-strtok: New file.
13393         * modules/unistr/u32-strtok: New file.
13394         * lib/unistr/u8-strtok.c: New file.
13395         * lib/unistr/u16-strtok.c: New file.
13396         * lib/unistr/u32-strtok.c: New file.
13397         * lib/unistr/u-strtok.h: New file.
13398
13399         * modules/unistr/u8-uctomb: New file.
13400         * modules/unistr/u16-uctomb: New file.
13401         * modules/unistr/u32-uctomb: New file.
13402         * lib/unistr/u8-uctomb.c: New file.
13403         * lib/unistr/u16-uctomb.c: New file.
13404         * lib/unistr/u32-uctomb.c: New file.
13405
13406         * MODULES.html.sh (Unicode string functions): Add the new modules.
13407
13408 2007-01-08  Bruno Haible  <bruno@clisp.org>
13409
13410         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
13411         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
13412         subdirectories.
13413
13414 2007-01-08  Karl Berry  <karl@gnu.org>
13415
13416         * doc/error.texi: mention that main() fns must set program_name
13417         when progname is used.
13418
13419 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
13420
13421         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
13422         WCTYPE_H is empty, for the benefit of builds from non-distclean
13423         directories.  Problem reported by Eric Blake in
13424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
13425
13426 2007-01-08  Bruno Haible  <bruno@clisp.org>
13427
13428         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
13429         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
13430         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
13431         PROVIDE_CANONICALIZE_FILENAME_MODE.
13432         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
13433
13434 2007-01-08  Bruno Haible  <bruno@clisp.org>
13435
13436         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
13437         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
13438         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
13439         * lib/fts.c: Likewise.
13440         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
13441
13442 2006-12-25  Bruno Haible  <bruno@clisp.org>
13443
13444         * modules/utf8-ucs4-safe: New file.
13445         * lib/utf8-ucs4-safe.h: New file.
13446         * lib/unistr/utf8-ucs4-safe.c: New file.
13447
13448         * modules/utf16-ucs4-safe: New file.
13449         * lib/utf16-ucs4-safe.h: New file.
13450         * lib/unistr/utf16-ucs4-safe.c: New file.
13451
13452         * MODULES.html.sh (Unicode string functions): Add the new modules.
13453
13454 2007-01-08  Bruno Haible  <bruno@clisp.org>
13455
13456         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
13457         (Depends-on): Add unitypes.
13458         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
13459         (u8_mbtouc_aux): Move out to separate file.
13460         (u8_mbtouc): Use ucs4_t, uint8_t types.
13461         * lib/unistr/utf8-ucs4.c: New file.
13462
13463         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
13464         (Depends-on): Add unitypes.
13465         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
13466         (u16_mbtouc_aux): Move out to separate file.
13467         (u16_mbtouc): Use ucs4_t, uint16_t types.
13468         * lib/unistr/utf16-ucs4.c: New file.
13469
13470         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
13471         (Depends-on): Add unitypes.
13472         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
13473         (u8_uctomb_aux): Move out to separate file.
13474         (u8_uctomb): Use ucs4_t, uint8_t types.
13475         * lib/unistr/ucs4-utf8.c: New file.
13476
13477         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
13478         (Depends-on): Add unitypes.
13479         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
13480         (u16_uctomb_aux): Move out to separate file.
13481         (u16_uctomb): Use ucs4_t, uint16_t types.
13482         * lib/unistr/ucs4-utf16.c: New file.
13483
13484 2006-12-25  Bruno Haible  <bruno@clisp.org>
13485
13486         * modules/unitypes: New file.
13487         * lib/unitypes.h: New file.
13488         * MODULES.html.sh (func_all_modules): New section "Unicode string
13489         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
13490         this section. Add unitypes.
13491
13492 2007-01-08  Bruno Haible  <bruno@clisp.org>
13493
13494         Avoid variable names that conflict with those from libtool.
13495         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
13496         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
13497         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
13498         library_names_spec to acl_library_names_spec, hardcode_* to
13499         acl_hardcode_*.
13500         Reported by Ralf Wildenhues.
13501
13502 2007-01-08  Bruno Haible  <bruno@clisp.org>
13503
13504         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
13505         definition.
13506         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
13507         definition.
13508         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
13509         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
13510         definition.
13511         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
13512         definition.
13513         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
13514         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
13515         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
13516         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
13517         definition.
13518         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
13519         definition.
13520         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
13521         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
13522         GC_USE_<algorithm>.
13523         * lib/gc-libgcrypt.c: Likewise.
13524         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
13525         * modules/gc-arctwo (configure.ac): Likewise.
13526         * modules/gc-des (configure.ac): Likewise.
13527         * modules/gc-hmac-md5 (configure.ac): Likewise.
13528         * modules/gc-hmac-sha1 (configure.ac): Likewise.
13529         * modules/gc-md2 (configure.ac): Likewise.
13530         * modules/gc-md4 (configure.ac): Likewise.
13531         * modules/gc-md5 (configure.ac): Likewise.
13532         * modules/gc-random (configure.ac): Likewise.
13533         * modules/gc-rijndael (configure.ac): Likewise.
13534         * modules/gc-sha1 (configure.ac): Likewise.
13535
13536 2007-01-08  Bruno Haible  <bruno@clisp.org>
13537
13538         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
13539         macro definition.
13540         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
13541         definition.
13542         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
13543         definition.
13544         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
13545         * modules/fcntl-safer (configure.ac): Likewise.
13546         * modules/fopen-safer (configure.ac): Likewise.
13547         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
13548         GNULIB_FWRITEERROR macro definition.
13549
13550 2007-01-08  Bruno Haible  <bruno@clisp.org>
13551
13552         * m4/gnulib-common.m4: New file.
13553         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
13554         (func_get_filelist): Add m4/gnulib-common.m4.
13555
13556 2007-01-08  Bruno Haible  <bruno@clisp.org>
13557
13558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
13559         command.
13560
13561 2007-01-08  Jim Meyering  <jim@meyering.net>
13562
13563         Use a more robust test for a "can't happen" condition.
13564         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
13565         narrowed the st_size value.  Presuming the "can't happen" condition
13566         is true, that narrowing could conceivably convert an invalid st_size
13567         value into a valid one.  Instead, use a change based on Matthew
13568         Woehlke's original patch.
13569
13570         Slight readability improvement: use an assert-like macro
13571         in place of literal "abort ()" uses.
13572         * lib/fts.c (fts_assert): Define.
13573         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
13574         Use this macro instead of a bare 'abort'.
13575
13576 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
13577
13578         Don't worry about using IRIX 5.3's wctype.h broken definitions;
13579         simply work around them.
13580         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
13581         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
13582         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
13583         declaring.
13584         Don't bother to define as macros, since the standard doesn't require it.
13585         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
13586         longer worry about IRIX 5.3.
13587         (HAVE_WCTYPE_CTMP_BUG): Remove.
13588
13589 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13590
13591         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
13592         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
13593         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13594         Problems reported by Georg Schwarz for IRIX 5.3.
13595
13596         * gnulib-tool (autoconf_minversion): Take the maximum version number
13597         found, not the minimum.  Problem reported by James Youngman.
13598
13599 2007-01-03  Karl Berry  <karl@gnu.org>
13600
13601         * doc/error.texi: new file, explaining interaction with progname.
13602         * doc/gnulib.texi: include it.  Update copyright.
13603
13604 2007-01-03  Simon Josefsson  <simon@josefsson.org>
13605
13606         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
13607         AC_CANONICAL_HOST, to improve autobuild outputs.
13608
13609 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
13610             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13611
13612         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
13613         sockets, server sockets, and other file descriptors.  Count errors
13614         to compute the return value.  Reorder the code a bit to be easier
13615         to follow.  Don't set event bits that were not requested (except
13616         POLLERR and POLLHUP).
13617
13618 2007-01-01  Bruno Haible  <bruno@clisp.org>
13619
13620         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
13621
13622 2007-01-03  Jim Meyering  <jim@meyering.net>
13623
13624         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
13625
13626 2007-01-02  Bruno Haible  <bruno@clisp.org>
13627
13628         * modules/settime (Include): Require timespec.h.
13629         * modules/nanosleep (Include): Likewise.
13630
13631 2007-01-01  Bruno Haible  <bruno@clisp.org>
13632
13633         * gnulib-tool (func_emit_copyright_notice): Bump year.
13634         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
13635
13636 2007-01-01  Bruno Haible  <bruno@clisp.org>
13637
13638         Improve support for OpenBSD.
13639         * build-aux/config.rpath (libname_spec): Export.
13640         (library_names_spec): New variable. Export.
13641         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
13642         library_names_spec from the config.rpath output. Locate shared library
13643         through the name pattern in library_names_spec.
13644
13645 2007-01-01  Eric Blake  <ebb9@byu.net>
13646
13647         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
13648
13649 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
13650
13651         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
13652         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
13653         assume the C locale, and avoid an "eval" that could cause trouble.
13654         Problem with SORT reported by Bob Proulx.
13655
13656         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
13657         Define.  Trivial patch from Henning Nielsen Lund, originally
13658         sent to bug-grep@gnu.org today.
13659
13660 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13661
13662         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
13663         struct stat.  Problem reported by Henning Nielsen Lund.
13664         * lib/acl.c: Include acl.h first, to check interface.  Don't
13665         bother to include sys/types.h and sys/stat.h again.
13666
13667 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13668
13669         Import the following change from libc; problem reported by
13670         Sven Verdoolaege.
13671
13672         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
13673
13674         [BZ #1373]
13675         * lib/argp.h: Remove __NTH for __argp_usage inline function.
13676
13677 2006-12-28  Jim Meyering  <jim@meyering.net>
13678
13679         * build-aux/announce-gen: Do not assume that the package
13680         builds any of tar.gz, tar.bz2, and .xdelta files.
13681         Suggestion from Simon Josefsson.
13682
13683 2006-12-28  Simon Josefsson  <simon@josefsson.org>
13684
13685         * modules/announce-gen: New file.
13686
13687 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13688
13689         * lib/mbchar.h: Just include <wctype.h>; the wctype module
13690         handles its gotchas now.
13691         * lib/mbswidth.c: Likewise.
13692         * lib/wcwidth.h: Likewise.
13693         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
13694         and iswcntrl; the wctype module does this stuff now.
13695         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13697         * modules/mbchar (Depends-on): Add wctype.
13698         * modules/mbswidth (Depends-on): Likewise.
13699         * modules/wcwidth (Depends-on): Likewise.
13700
13701 2006-12-27  Eric Blake  <ebb9@byu.net>
13702
13703         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
13704         module uses more than what <wctype.h> is required to provide.
13705
13706 2006-12-26  Eric Blake  <ebb9@byu.net>
13707
13708         * gnulib-tool (sed_extract_prog): Avoid space-tab.
13709
13710 2006-12-26  Eric Blake  <ebb9@byu.net>
13711
13712         * modules/absolute-header: New module.
13713         * modules/fcntl (Depends-on): Depend on it.
13714         * modules/inttypes (Depends-on): Likewise.
13715         * modules/stdint (Depends-on): Likewise.
13716         * modules/sys_stat (Depends-on): Likewise.
13717         * modules/wctype (Depends-on): Likewise.
13718         * MODULES.html.sh (Support for building libraries and
13719         executables): Document it.
13720
13721 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13722
13723         * gnulib-tool (SED): Remove, undoing previous change.
13724         The problem was that it broke coreutils on Solaris, because
13725         "sed --posix" leaked into a makefile.
13726         (sed): New alias, if 'alias' and GNU sed.
13727
13728 2006-12-24  Jim Meyering  <jim@meyering.net>
13729
13730         Work around an fchownat bug in glibc-2.4:
13731         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
13732         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
13733         in spite of the -P option.
13734         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
13735         New macros.
13736         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
13737         * modules/openat (Files): Add lib/fchownat.c.
13738         * lib/openat.c (fchownat): Don't define here.  Move to...
13739         * lib/fchownat.c: ...this new file.
13740
13741 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13742
13743         Fix bug reported by Bruno Haible in
13744         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
13745         where quotearg.c didn't compile on Mac OS X 10.2 because it
13746         lacks <wchar.h> and wint_t.
13747         * lib/wctype_.h (__wctype_wint_t): New type.
13748         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
13749         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
13750         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
13751         Arg is now of type __wctype_wint_t, not wint_t.
13752         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
13753         substitute HAVE_WINT_T.
13754         * modules/wctype (Files): Add m4/wint_t.m4.
13755         (wctype.h): Substitute HAVE_WINT_T.
13756
13757 2006-12-23  Bruno Haible  <bruno@clisp.org>
13758
13759         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
13760
13761 2006-12-23  Bruno Haible  <bruno@clisp.org>
13762
13763         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
13764         S_ISLNK.
13765         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
13766         mingw.
13767
13768 2006-12-22  Bruno Haible  <bruno@clisp.org>
13769
13770         * lib/copy-file.c: Include acl.h.
13771         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
13772         Close the file descriptors only after being done with copy_acl.
13773         * modules/copy-file (Depends-on): Add acl.
13774
13775 2006-12-22  Bruno Haible  <bruno@clisp.org>
13776
13777         * gnulib-tool (SED): New variable.
13778         Use $SED instead of sed everywhere.
13779
13780 2006-12-22  Bruno Haible  <bruno@clisp.org>
13781
13782         * modules/no-c++: New file.
13783         * m4/no-c++.m4: New file.
13784         * MODULES.html.sh (Support for building libraries and executables):
13785         Add no-c++.
13786
13787 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13788
13789         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
13790         Include <limits.h>, and use its INT_MAX to rewrite the
13791         j loop so that it does not overflow 'int'.  Problem reported by
13792         Ralf Wildenhues in
13793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
13794         Play it safe by shifting left by 1 rather than multiplying by 2,
13795         as GCC is less likely to optimize this away when the value
13796         is signed (when it assumes overflow leads to undefined behavior).
13797         Also, don't assume time_t uses two's complement.
13798
13799 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13800
13801         * MODULES.html.sh: New module wctype.
13802         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
13803         * lib/fnmatch.c: Don't bother to include <wchar.h> before
13804         <wctype.h>, since the new wctype module should fix this.
13805         * lib/quotearg.c: Include <wctype.h> unconditionally, since
13806         the wctype module should arrange for it.
13807         * lib/regex_internal.h: Likewise.
13808         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
13809         since the wctype module should handle this now.
13810         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
13811         * modules/fnmatch (Depends-on): Add wctype.
13812         * modules/quotearg (Depends-on): Likewise.
13813         * modules/regex (Depends-on): Likewise.
13814
13815 2006-12-19  Bruno Haible  <bruno@clisp.org>
13816
13817         * lib/strdup.h [C++]: Wrap definitions in extern "C".
13818         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
13819
13820 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13821
13822         * modules/savewd (Depends-on): Fix dependency on fcntl.
13823
13824 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13825
13826         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
13827         conforms to C99, rather than relying on the user's environment
13828         setting of STDINT_H.
13829
13830 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13831         and Eric Blake  <ebb9@byu.net>
13832
13833         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
13834         This is more consistent with the other defines here.
13835         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
13836         Port to z/OS.  Problem reported by Paul Gilmartin.
13837         Change local vars to use gl_ prefix rather than ac_.
13838         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
13839         with other defines.
13840         * modules/double-slash-root: New module.
13841         * modules/dirname (Files): Remove m4/double-slash-root.m4.
13842         (Depends-on): Add double-slash-root.
13843         * MODULES.html.sh (File system functions): Mention new module.
13844
13845 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
13846
13847         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
13848         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
13849         This is for the benefit of gzip, which doesn't do i18n.
13850
13851 2006-12-12  Jim Meyering  <jim@meyering.net>
13852
13853         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
13854         Reported by Andreas Schwab <schwab@suse.de>.
13855
13856 2006-12-12  Bruno Haible  <bruno@clisp.org>
13857
13858         Merge these changes.
13859         2006-09-05  Bruno Haible  <bruno@clisp.org>
13860         * lib/iconvme.c (iconv_string): No need to save and restore errno when
13861         iconv_alloc succeeded.
13862         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
13863         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
13864         test for " && dest " at the end - dest is always != NULL there. Call
13865         iconv with 4xNULL arguments initially, to reset the state. Call iconv
13866         with 2xNULL arguments, also to flush the state storage. Handle the
13867         IRIX iconv behaviour. Realloc the final result, to throw away unused
13868         memory.
13869
13870 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
13871
13872         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
13873         and fchmodat unconditionally, since glibc 2.4 has them.
13874         Problem reported by Arkadiusz Miskiewicz.
13875
13876 2006-12-10  Bruno Haible  <bruno@clisp.org>
13877
13878         * gnulib-tool (func_import): Show the include files only for those
13879         modules that are copied and specified.
13880         Reported by Karl Berry.
13881
13882 2006-12-08  Jim Meyering  <jim@meyering.net>
13883
13884         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
13885         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
13886
13887         * build-aux/announce-gen: Add two new options, both optional:
13888         --bootstrap-tools=TOOL_LIST
13889               a comma-separated list of tools, e.g.,
13890               autoconf,automake,bison,gnulib
13891         --gnulib-snapshot-date=DATE
13892               if gnulib is in the bootstrap tool list,
13893               then report this as the snapshot date.
13894               If not specified, use the current date/time.
13895               If you specify a date here, be sure it's UTC.
13896
13897 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13898
13899         * tests/test-argp-2.sh: Fix test to match actual output.
13900         (func_compare): Fix sed script to be portable.
13901
13902 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
13903
13904         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
13905         workaround for this case.  It is not autoconfigured now; offhand
13906         it's hard to see how to autoconfigure it.
13907
13908 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
13909
13910         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
13911         a directory that is about to be chowned.  Such a directory's
13912         initial file permissions should permit the owner only and this
13913         should not be changed until after the chown, since the group and
13914         other bits would be incorrect if they granted permission before
13915         the chown.
13916
13917         Fix porting problem for iswctype reported by Georg Schwarz in:
13918         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
13919         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
13920         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
13921         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
13922         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13923
13924 2006-12-03  Jim Meyering  <jim@meyering.net>
13925
13926         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
13927         p->fts_statp may not yet be defined.
13928         (fts_read): Instead, set it in the caller, once p->fts_statp is
13929         sure to be defined, and corresponds to a top-level directory.
13930         This bug made du -x fail.  Here's the coreutils test case:
13931         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
13932         Reported by Mike Frysinger.
13933
13934 2006-12-01  Jim Meyering  <jim@meyering.net>
13935
13936         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
13937         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
13938         Reported by Simon Josefsson.
13939
13940 2006-11-30  Jim Meyering  <jim@meyering.net>
13941
13942         * m4/warning.m4: Use the all-permissive copyright notice
13943         recommended by RMS (rather than LGPL).
13944         * m4/vararrays.m4: Likewise.
13945         * m4/flexmember.m4: Likewise.
13946
13947 2006-11-29  Bruno Haible  <bruno@clisp.org>
13948
13949         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
13950         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
13951         using +=.
13952         Reported by Simon Josefsson <simon@josefsson.org>.
13953
13954 2006-11-28  James Youngman <jay@gnu.org>
13955
13956         * README: Advise users that they might find the bug-gnulib@gnu.org
13957         and autotools-announce@gnu.org mailing lists useful.
13958
13959 2006-11-28  Bruno Haible  <bruno@clisp.org>
13960
13961         * m4/ptrdiff_max.m4: Remove file.
13962
13963 2006-11-21  Bruno Haible  <bruno@clisp.org>
13964
13965         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
13966         _AC_COMPUTE_INT.
13967         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13968         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
13969         _AC_COMPUTE_INT.
13970         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13971         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
13972         _AC_COMPUTE_INT.
13973         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13974
13975 2006-11-28  Jim Meyering  <jim@meyering.net>
13976
13977         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
13978         warning from "gcc -Wshadow" about shadowing the builtin.
13979
13980 2006-11-27  Bruno Haible  <bruno@clisp.org>
13981
13982         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
13983         _AC_COMPUTE_INT.
13984         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13985
13986 2006-11-27  Bruno Haible  <bruno@clisp.org>
13987             Paul Eggert  <eggert@cs.ucla.edu>
13988
13989         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
13990
13991 2006-11-26  Bruno Haible  <bruno@clisp.org>
13992
13993         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
13994         noinst_LTLIBRARIES.
13995
13996 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
13997             Bruno Haible  <bruno@clisp.org>
13998
13999         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
14000         if compiling with "gcc -ansi".
14001
14002 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14003
14004         Fix some incompatibilities with gcc -ansi -pedantic.
14005         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
14006         if compiling pedantically with GCC, unless it's C99 or later.
14007         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
14008         it mishandles gcc -ansi -pedantic as well.
14009         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
14010         if gcc -pedantic.
14011         * lib/regexec.c (check_node_accept_bytes): Don't use auto
14012         initializers for struct if -pedantic, unless it's C99 or later.
14013
14014 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
14015
14016         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
14017         Don't close an fd more than once. Identical atimes indicate
14018         success, not failure.
14019
14020 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
14021
14022         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
14023
14024 2006-11-23  Jim Meyering  <jim@meyering.net>
14025
14026         * build-aux/announce-gen: New file.  From coreutils.
14027
14028 2006-11-22  Jim Meyering  <jim@meyering.net>
14029
14030         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
14031         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
14032         (fts_read): Use a temporary to narrow the overused st_size member
14033         before using it in a switch statement.  Reported by Matthew Woehlke.
14034
14035         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
14036         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14037
14038 2006-11-20  Bruno Haible  <bruno@clisp.org>
14039
14040         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
14041         changequote instead of pairs of brackets.
14042         Reported by Andreas Schwab <schwab@suse.de>.
14043
14044 2006-11-21  Jim Meyering  <jim@meyering.net>
14045
14046         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
14047         so as to remain compatible with older compilers.
14048         Patch from Michael Deutschmann.
14049
14050 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14051
14052         * MODULES.html.sh (File system functions): Add openat.
14053
14054         * lib/openat.h (rpl_fstatat): New macro, if
14055         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
14056         (fstatat): Define to rpl_fstatat under the same conditions,
14057         unless COMPILING_FSTATAT.
14058         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
14059         seems to have the bug.
14060         * lib/fstatat.c: New file.
14061         * modules/openat (Files): Add it.
14062
14063 2006-11-20  Bruno Haible  <bruno@clisp.org>
14064
14065         * Makefile: New file.
14066
14067 2006-11-20  Jim Meyering  <jim@meyering.net>
14068
14069         The beginnings of syntax-related checks for gnulib.
14070         * lib/Makefile: New file.
14071         * lib/t-idcache: New script.  Ensure that the two halves of
14072         idcache.c stay in sync.
14073
14074         * lib/idcache.c: Adjust comments in user- and group- portions to
14075         be more accurate, and to be consistent with one another.
14076
14077 2006-11-20  Jim Meyering  <jim@meyering.net>
14078
14079         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
14080         continue using the flexible array member (thus, this module performs
14081         half as many malloc calls), with the addition that...
14082         (getgroup, getuser): Consistently record a non-match via an empty
14083         "name" string, and map an empty string match to a NULL return value.
14084         * modules/idcache (Depends-on): Re-add flexmember.
14085
14086         * lib/idcache.c (getuser): Remove all uses of the register keyword.
14087         (getuidbyname, getgroup, getgidbyname): Likewise.
14088
14089         Use cleaner syntax: NULL rather than 0.
14090         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
14091
14092 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14093
14094         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
14095         It mishandled the case where the group was missing.
14096         Problem reported by Greg Schafer.
14097         * modules/idcache: Likewise.
14098
14099 2006-11-18  Jim Meyering  <jim@meyering.net>
14100
14101         * check-module (%exempt_header): Add exception for some
14102         conditionally-included headers.
14103
14104         * modules/i-ring (Depends-on): Add verify.
14105         (License): Change to LGPL.
14106
14107 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14108
14109         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
14110         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
14111         and inttostr.h.  Use snprintf rather than uinttostr, so that
14112         LGPLed code doesn't depend on GPLed.
14113
14114 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14115
14116         * modules/inline (License): Change from GPL to LGPL.
14117
14118 2006-11-17  Jim Meyering  <jim@meyering.net>
14119
14120         * modules/d-type (License): Switch to LGPL.
14121
14122 2006-11-15  Bruno Haible  <bruno@clisp.org>
14123
14124         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
14125
14126 2006-11-15  Eric Blake  <ebb9@byu.net>
14127
14128         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
14129         the module dependency.
14130
14131 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14132             Bruno Haible  <bruno@clisp.org>
14133
14134         * gnulib-tool (func_create_testdir): Add license consistency check.
14135
14136 2006-11-15  Eric Blake  <ebb9@byu.net>
14137
14138         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
14139         random "(cached)" in configure output.
14140
14141 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14142
14143         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
14144         test for conforming inttypes.h is both announced and cached.
14145
14146         * MODULES.html.sh (seen_modules, seen_files): New variables.
14147         (func_module): Rewrite to use a few less gnulib-tool and sed
14148         invocations.  Avoid a couple of quadratic algorithms for ...
14149         (missed_modules, missed_files): ... these, with ...
14150         (func_append, func_tmpdir): ... these new functions, from
14151         gnulib-tool.  Analogously, install traps for cleanup.
14152
14153         * tests/test-gc.c (main): Remove unused variables.
14154         * tests/test-read-file.c: Include stdlib.h, for 'free'.
14155
14156 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
14157
14158         * modules/inttostr (License): Change to LGPL.
14159
14160 2006-11-14  Eric Blake  <ebb9@byu.net>
14161
14162         * modules/tempname (License): Change to LGPL.
14163
14164 2006-11-14  Eric Blake  <ebb9@byu.net>
14165
14166         * doc/functions.texi (Function Portability): *printf functions on
14167         Cygwin now understand all POSIX size specifiers.
14168
14169 2006-11-14  Bruno Haible  <bruno@clisp.org>
14170
14171         * modules/c-ctype (License): Change to LGPL.
14172
14173 2006-11-12  Bruno Haible  <bruno@clisp.org>
14174
14175         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14176         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
14177         for GNOME libraries, for which the include files are installed in
14178         subdirectories of $prefix/include.
14179
14180 2006-11-12  Bruno Haible  <bruno@clisp.org>
14181
14182         * m4/lib-link.m4: Require at least autoconf-2.54.
14183         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
14184         name to underscores for the --with option.
14185
14186 2006-11-13  Bruno Haible  <bruno@clisp.org>
14187
14188         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
14189         the tests directory.
14190         Reported by Ralf Wildenhues.
14191
14192 2006-11-13  Bruno Haible  <bruno@clisp.org>
14193
14194         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
14195         (func_emit_initmacro_end): Undo the override here.
14196         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
14197         Works around the famous automake error in coreutils.
14198
14199 2006-11-13  Eric Blake  <ebb9@byu.net>
14200
14201         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
14202         element, not its node.
14203
14204 2006-11-12  Bruno Haible  <bruno@clisp.org>
14205
14206         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
14207         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
14208
14209 2006-11-12  Bruno Haible  <bruno@clisp.org>
14210
14211         * gnulib-tool: New option --local-symlink.
14212         (func_usage): Document it.
14213         (lsymbolic): New variable.
14214         (func_import, func_create_testdir): If --symlink was not specified,
14215         test whether --local-symlink was specified and the file comes from
14216         the local_gnulib_dir.
14217
14218 2006-11-12  Bruno Haible  <bruno@clisp.org>
14219
14220         * gnulib-tool (func_ln): New function.
14221         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
14222
14223 2006-11-12  Bruno Haible  <bruno@clisp.org>
14224
14225         Finish support for source files in subdirectories.
14226         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
14227         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
14228         AUTOMAKE_OPTIONS.
14229         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
14230
14231 2006-11-12  Bruno Haible  <bruno@clisp.org>
14232
14233         * gnulib-tool (func_get_automake_snippet): Synthesize also an
14234         EXTRA_lib_SOURCES augmentation.
14235         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
14236
14237 2006-11-12  Jim Meyering  <jim@meyering.net>
14238
14239         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
14240         file descriptors.  This also averts a failure on systems with
14241         native openat support when a traversed directory lacks "x" access.
14242         * lib/fts_.h: Include "i-ring.h"
14243         (struct FTS) [fts_fd_ring]: New member.
14244         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
14245         (FCHDIR): Add parentheses.
14246         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
14247         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
14248         When descending, rather than simply closing the previous
14249         fts_cwd_fd value, push that file descriptor onto the ring.
14250         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
14251         (fts_open): Initialize the new fd_ring member.
14252         (fts_close): Clear the ring.
14253         (fts_safe_changedir): When possible, use our new fd_ring to skip
14254         the diropen and fstat and dev/ino comparison that would normally
14255         accompany a virtual `chdir ("..")'.
14256
14257         * modules/fts (Depends-on): Add i-ring.
14258         * modules/i-ring: New module.
14259         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
14260         * m4/i-ring.m4: New file.
14261
14262 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14263
14264         * gnulib-tool (func_create_testdir): Fix replacement of
14265         `build-aux' in configure.ac.  Run autotools in gltests
14266         subdirectory.
14267         (func_create_testdir, func_create_megatestdir, test): There is
14268         no need for '--force' in most autotool invocations in a new
14269         tree.  Actually fail the whole test if any of the tools, or the
14270         configure or make stages fail.
14271
14272         Sync from Automake.
14273         * build-aux/gnupload: Revert last change.  Add pointer to upload
14274         instructions of the GNU Maintenance Instructions.
14275         Suggestion by Karl Berry.
14276
14277 2006-11-10  Jim Meyering  <jim@meyering.net>
14278
14279         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
14280
14281 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
14282
14283         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
14284         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
14285         (bind_textdomain_codeset) [! ENABLE_NLS]:
14286         Evaluate all the arguments.  That way, callers get compatible behavior
14287         if the arguments have side effects.  Also, it avoids some GCC
14288         diagnostics in some cases; Joel E. Denny reported problems when Bison
14289         was configured with --enable-gcc-warnigs.
14290
14291 2006-11-10  Jim Meyering  <jim@meyering.net>
14292
14293         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
14294         relevant options in CFLAGS (like -O, -fno-inline) are taken into
14295         account.
14296
14297 2006-11-10  Jim Meyering  <jim@meyering.net>
14298
14299         * modules/inline: New file/module.
14300         * modules/xalloc (Files): Remove m4/inline.m4.
14301         (Depends-on): Add inline, instead.
14302         * modules/oset: Likewise.
14303         * modules/list: Likewise.
14304
14305 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
14306
14307         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
14308         Problem reported by Matthew Woehlke.
14309
14310 2006-11-09  Bruno Haible  <bruno@clisp.org>
14311
14312         * lib/tempname.c (gen_tempname): Remove variant that invokes
14313         __gen_tempname.
14314         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
14315         __gen_tempname.
14316
14317 2006-11-08  Bruno Haible  <bruno@clisp.org>
14318
14319         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
14320         to 'yes' instead of 'cross-compiling'.
14321
14322 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
14323
14324         * lib/quotearg.h (quotearg_free): New decl.
14325         * lib/quotearg.c (quotearg_free): New function.
14326         (slot0, nslots, slotvec0, slotvec):
14327         Now file-scope so that quotearg_free can get at them.
14328
14329 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14330
14331         Sync from Automake.
14332         * build-aux/gnupload: Add missing 'gnu' to example URL.
14333         Report by Karl Berry.
14334
14335 2006-11-08  Bruno Haible  <bruno@clisp.org>
14336
14337         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
14338         Suggested by Paul Eggert.
14339
14340 2006-11-08  Jim Meyering  <jim@meyering.net>
14341
14342         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
14343         It's already included if !_LIBC.
14344         (fts_safe_changedir): Add a comment.
14345
14346 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14347
14348         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
14349         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
14350         Matthew Woehlke.
14351
14352         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
14353         definitions up, to avoid colliding with change below.
14354         (static_inline) [HAVE_INLINE]: New macro.
14355         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
14356         Provide extern decls when !HAVE_INLINE.  Do not define unless
14357         static_inline is defined, either by us or by xmalloc.c.  Use
14358         static_inline rather than static inline.
14359         (XCALLOC): Optimize sizeof(T) = 1 case.
14360         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
14361
14362 2006-11-07  Bruno Haible  <bruno@clisp.org>
14363
14364         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
14365         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
14366         AC_C_INLINE.
14367         * modules/xalloc (Files): Add m4/inline.m4.
14368
14369 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14370
14371         * README: Fix typo.
14372         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
14373         (Miscellanous Notes): ...from this.
14374
14375 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14376
14377         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
14378         Mention that offsetof should be used instead of sizeof.
14379         From Bruno Haible.
14380
14381 2006-11-07  Bruno Haible  <bruno@clisp.org>
14382
14383         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
14384
14385 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
14386
14387         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
14388         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
14389         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
14390         (gl_tree_add_before, gl_tree_add_after):
14391         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
14392         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
14393         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14394         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
14395         (gl_linked_add_after, gl_linked_add_at): Likewise.
14396         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
14397         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
14398         (gl_tree_add_before, gl_tree_add_after): Likewise.
14399         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
14400         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
14401         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14402
14403 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14404
14405         * lib/gl_oset.h: Use C comment style, not C++ comment style.
14406
14407 2006-11-06  Bruno Haible  <bruno@clisp.org>
14408
14409         * m4/inline.m4: New file.
14410         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
14411         * modules/list (Files): Add m4/inline.m4.
14412         * modules/oset (Files): Likewise.
14413
14414 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
14415
14416         * lib/idcache.c: Include <stddef.h>, for offsetof.
14417         (struct userid.name): Change from char * to a flexible array member.
14418         All uses changed.
14419         * modules/idcache (Depends-on): Add flexmember.
14420
14421         * MODULES.html.sh (Core language properties): New module flexmember.
14422         * modules/flexmember, m4/flexmember.m4: New files.
14423
14424         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
14425         inline functions that are identical with the old xnmalloc_inline,
14426         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
14427         that we can avoid some unnecessary integer multiplications and
14428         divisions in the common case where the element size is known at
14429         compile time.
14430         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
14431         needed.
14432         (xnboundedmalloc): Remove.
14433         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
14434         arguments, for consistency with rest of this header.
14435         (xcharalloc): Rewrite using XNMALLOC.
14436         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
14437         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
14438         versions have been moved to lib/xalloc.h and renamed to be the
14439         non-*_inline versions.
14440         (xmalloc, xrealloc): Implement without reference to the xnmalloc
14441         and xnrealloc functions, since those functions are now inline and
14442         now call us.
14443         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
14444         renaming described above.
14445         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
14446         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
14447         captures the dependency in AC_C_INLINE.
14448
14449         New module canonicalize-lgpl, proposed by Charles Wilson in
14450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
14451         with a few small changes afterwards.
14452         * MODULES.html.sh (File system functions): New module
14453         canonicalize-lgpl.
14454         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
14455         and canonicalize_file_name.
14456         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
14457         * modules/canonicalize-lgpl: New files.
14458
14459 2006-11-05  Bruno Haible  <bruno@clisp.org>
14460
14461         * gnulib-tool (func_import, func_create_testdir): Create directories
14462         also for files in subdirectories of lib/.
14463
14464 2006-11-05  Bruno Haible  <bruno@clisp.org>
14465
14466         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
14467         ANSI C compliant.
14468
14469 2006-11-03  Bruno Haible  <bruno@clisp.org>
14470
14471         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
14472         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
14473         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
14474         (xnboundedmalloc): New inline function.
14475         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
14476         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
14477         xmalloc.
14478         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
14479         xmalloc.
14480         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
14481         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
14482         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
14483         xmalloc.
14484         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
14485         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
14486         xmalloc.
14487         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
14488         gl_tree_add_after): Use XMALLOC instead of xmalloc.
14489         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
14490         xmalloc.
14491         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
14492         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
14493         gl_tree_add_after): Use XMALLOC instead of xmalloc.
14494         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
14495         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
14496         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
14497         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
14498
14499 2006-11-03  Bruno Haible  <bruno@clisp.org>
14500
14501         * lib/c-ctype.h [C++]: Define functions without name mangling.
14502         * lib/fwriteerror.h [C++]: Likewise.
14503         * lib/gcd.h [C++]: Likewise.
14504         * lib/linebreak.h [C++]: Likewise.
14505
14506 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
14507
14508         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
14509         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
14510         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
14511         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
14512         Check for functions and headers just once.
14513         Check for declaration of canonicalize_file_name.
14514         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
14515
14516 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
14517
14518         * gnulib-tool (func_import): Fix typo in actioncmd.
14519
14520 2006-11-02  Bruno Haible  <bruno@clisp.org>
14521
14522         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
14523         newline sequence in the Makefile.am snippet as a space, like "make"
14524         does.
14525         Reported by Roger Persson <perrog@gmail.com>.
14526
14527 2006-11-01  Bruno Haible  <bruno@clisp.org>
14528
14529         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
14530         already declared in <string.h>.
14531         * lib/strcase.h (strncasecmp): Don't declare it if yes.
14532
14533 2006-11-01  Bruno Haible  <bruno@clisp.org>
14534
14535         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
14536         * lib/strcase.h: Include <string.h>.
14537         (strcasecmp): Define to rpl_strcasecmp here.
14538
14539 2006-11-01  Bruno Haible  <bruno@clisp.org>
14540
14541         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
14542
14543 2006-11-01  Eric Blake  <ebb9@byu.net>
14544
14545         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
14546
14547         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
14548
14549 2006-10-29  Bruno Haible  <bruno@clisp.org>
14550
14551         Make it compile in C++ mode.
14552         * lib/full-write.c (full_rw): Add a cast.
14553
14554 2006-11-01  Bruno Haible  <bruno@clisp.org>
14555
14556         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
14557         be POSIX compliant.
14558         Reported by Roger Persson <perrog@gmail.com>.
14559
14560 2006-11-01  Eric Blake  <ebb9@byu.net>
14561
14562         * lib/getopt_.h: Fix comments.
14563
14564 2006-10-31  Eric Blake  <ebb9@byu.net>
14565
14566         * modules/tmpdir (Depends-on): Add sys_stat.
14567         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
14568         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
14569         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
14570         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
14571         tempname.
14572
14573 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
14574
14575         Avoid some C++ diagnostics reported by Bruno Haible.
14576         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
14577         xmalloc.
14578         (quotearg_alloc): Use xcharalloc rather than xmalloc.
14579         (struct slotvec): Move to top level.
14580         (quotearg_n_options): Rewrite to avoid xmalloc.
14581         * lib/xalloc.h (xcharalloc): New function.
14582         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
14583         [defined __cplusplus]: Add function template that provides result
14584         type propagation.  This part of the change is from Bruno Haible.
14585
14586 2006-10-29  Bruno Haible  <bruno@clisp.org>
14587
14588         Make it compile in C++ mode.
14589         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
14590         * lib/strnlen1.c (strnlen1): Cast memchr result.
14591         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
14592         * lib/clean-temp.c (string_equals, string_hash): Add casts.
14593         (create_temp_dir): Rename local variable 'template'.
14594         (compile_csharp_using_sscli): Add cast.
14595         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
14596         * lib/findprog.c (find_in_path): Likewise.
14597         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
14598         * lib/wait-process.c (register_slave_subprocess): Likewise.
14599
14600 2006-10-22  Bruno Haible  <bruno@clisp.org>
14601
14602         * modules/tsearch: New file.
14603         * lib/tsearch.h: New file.
14604         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
14605         * m4/tsearch.m4: New file.
14606         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
14607
14608 2006-10-29  Eric Blake  <ebb9@byu.net>
14609
14610         * lib/arcfour.c: Assume config.h.
14611         * lib/arctwo.c: Likewise.
14612         * lib/base64.c: Likewise.
14613         * lib/check-version.c: Likewise.
14614         * lib/crc.c: Likewise.
14615         * lib/des.c: Likewise.
14616         * lib/gc-gnulib.c: Likewise.
14617         * lib/gc-libgcrypt.c: Likewise.
14618         * lib/gc-pbkdf2-sha1.c: Likewise.
14619         * lib/getaddrinfo.c: Likewise.
14620         * lib/getdelim.c: Likewise.
14621         * lib/getline.c: Likewise.
14622         * lib/hmac-md5.c: Likewise.
14623         * lib/hmac-sha1.c: Likewise.
14624         * lib/iconvme.c: Likewise.
14625         * lib/md2.c: Likewise.
14626         * lib/md4.c: Likewise.
14627         * lib/memxor.c: Likewise.
14628         * lib/read-file.c: Likewise.
14629         * lib/readline.c: Likewise.
14630         * lib/rijndael-alg-fst.c: Likewise.
14631         * lib/rijndael-api-fst.c: Likewise.
14632         * lib/xgetdomainname.c: Likewise.
14633
14634 2006-10-28  Eric Blake  <ebb9@byu.net>
14635
14636         * lib/xstrndup.c: Assume config.h.
14637
14638 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
14639
14640         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
14641         stat-macros.h is now for our own macros, whereas stat_h is for
14642         macros in the <sys/stat.h> name space.
14643         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
14644         (STAT_MACROS_H): Remove.
14645         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
14646         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
14647         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
14648         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
14649         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
14650         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
14651         Move these macros to ...
14652         * lib/stat_.h: here.  Don't include stat-macros.h.
14653         * lib/canonicalize.c: Don't include stat-macros.h.
14654         * lib/chown.c: Likewise.
14655         * lib/euidaccess.c: Likewise.
14656         * lib/file-type.c: Likewise.
14657         * lib/filemode.c: Likewise.
14658         * lib/glob.c: Likewise.
14659         * lib/isapipe.c: Likewise.
14660         * lib/lchown.c: Likewise.
14661         * lib/lstat.c: Likewise.
14662         * lib/mkdir-p.c: Likewise.
14663         * lib/rmdir.c: Likewise.
14664         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
14665         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
14666         unless mkdir isn't declared, to speed up 'configure'.
14667         Always create sys/stat.h, since it's unlikely any real sys/stat.h
14668         would define all the S_* symbols.
14669         * modules/canonicalize (Depends-on):
14670         Depend on sys_stat, not stat-macros.
14671         * modules/chown: Likewise.
14672         * modules/euidaccess: Likewise.
14673         * modules/filemode: Likewise.
14674         * modules/file-type: Likewise.
14675         * modules/glob: Likewise.
14676         * modules/isapipe: Likewise.
14677         * modules/lchown: Likewise.
14678         * modules/lstat: Likewise.
14679         * modules/mkancesdirs: Likewise.
14680         * modules/rmdir: Likewise.
14681         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
14682         * modules/modechange: Likewise.
14683         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
14684         (configure.ac): Remove gl_STAT_MACROS.
14685         * modules/sys_stat (Depends-on): Remove stat-macros.
14686
14687 2006-10-27  Bruno Haible  <bruno@clisp.org>
14688
14689         * m4/signed.m4: Remove file.
14690         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
14691         invocation.
14692         * modules/vasnprintf (Files): Remove m4/signed.m4.
14693
14694 2006-10-27  Bruno Haible  <bruno@clisp.org>
14695
14696         Update to GNU gettext 0.16.
14697         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
14698         m4/inttypes-h.m4, m4/signed.m4.
14699         * m4/gettext.m4: Update to GNU gettext 0.16.
14700         * m4/intl.m4: New file, from GNU gettext.
14701         * m4/intldir.m4: New file, from GNU gettext.
14702         * config/srclist.txt: Update
14703
14704 2006-10-27  Eric Blake  <ebb9@byu.net>
14705
14706         * MODULES.html.sh: Document tempname.
14707         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
14708         dependencies.
14709         (Files): Move lib/tempname.c...
14710         * modules/tempname: ...to this new module.
14711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
14712         (gl_PREREQ_TEMPNAME): Move...
14713         * m4/tempname.m4: ...to this new file.
14714         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
14715         * modules/sys_stat (Depends-on): Add stat-macros.
14716         * lib/stat_.h (includes): Pick up stat macros.
14717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
14718         if stat macros are broken.
14719         * lib/tempname.c (includes): No need to include "stat-macros.h".
14720         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
14721         (direxists, __path_search) [!_LIBC]: Don't compile these in
14722         gnulib; the tmpdir module covers that.
14723         * lib/tempname.h: New file.
14724
14725 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14726
14727         * COPYING: Explain how gnulib-tool converts licence headers.
14728         Almost all wording by Eric Blake.
14729
14730 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
14731
14732         * lib/mbchar.h (is_basic_table): Make read-only.
14733         * lib/mbchar.c (is_basic_table): Likewise.
14734         Reported by John Darrington.
14735
14736 2006-10-25  Bruno Haible  <bruno@clisp.org>
14737
14738         * lib/progname.h (set_program_name): Undefine before defining.
14739
14740 2006-10-25  Bruno Haible  <bruno@clisp.org>
14741
14742         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
14743         false for non-gcc C++ compilers.
14744         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14745
14746 2006-10-24  Bruno Haible  <bruno@clisp.org>
14747
14748         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
14749         iconv implementations like Irix iconv.
14750
14751 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14752
14753         * modules/vararrays: New file.
14754         * m4/vararrays.m4: New file, taken from diffutils.
14755         * MODULES.html.sh: New module vararrays.
14756
14757 2006-10-24  Karl Berry  <karl@gnu.org>
14758
14759         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
14760         Don't call GNU Unix.
14761
14762 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14763
14764         * users.txt: Add Libtool.
14765
14766         Sync from Libtool:
14767
14768         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14769
14770         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
14771         to gnulib's policy of including config.h unconditionally.
14772
14773 2006-10-24  Bruno Haible  <bruno@clisp.org>
14774
14775         * modules/wcwidth (Files): Add m4/wint_t.m4.
14776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
14777         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
14778
14779 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14780
14781         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
14782         to pacify GCC with some -W flags enabled.  Problem reported by
14783         Bruno Haible.
14784
14785 2006-10-24  Jim Meyering  <jim@meyering.net>
14786
14787         * MODULES.html.sh: Remove uinttostr.  It's not a module.
14788         Reported by Karl Berry.
14789
14790 2006-10-23  Bruno Haible  <bruno@clisp.org>
14791
14792         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
14793
14794 2006-10-24  Bruno Haible  <bruno@clisp.org>
14795
14796         * lib/gl_list.h: Use C comment style, not C++ comment style.
14797
14798 2006-10-23  Eric Blake  <ebb9@byu.net>
14799
14800         * lib/getaddrinfo.c (includes): Add missing include.
14801
14802 2006-10-23  Bruno Haible  <bruno@clisp.org>
14803             Paul Eggert  <eggert@cs.ucla.edu>
14804
14805         Ability to rename obstack_free.
14806         * lib/obstack.h (__obstack_free): New macro. Declare instead of
14807         obstack_free.
14808         (obstack_free): Invoke the __obstack_free macro.
14809         * lib/obstack.c (obstack_free): Use __obstack_free macro.
14810
14811 2006-10-23  Bruno Haible  <bruno@clisp.org>
14812             Paul Eggert  <eggert@cs.ucla.edu>
14813
14814         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
14815         __argc, __argv from the declaration. (They are defined as macros on
14816         mingw.)
14817
14818 2006-10-22  Bruno Haible  <bruno@clisp.org>
14819
14820         * doc/gnulib-intro.texi: New file.
14821         * doc/gnulib.texi: Include it.
14822
14823 2006-10-21  Bruno Haible  <bruno@clisp.org>
14824
14825         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
14826         "Introduction", "Miscellanous Notes", "Particular Modules".
14827
14828 2006-10-21  Bruno Haible  <bruno@clisp.org>
14829
14830         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14831         Change mostlyclean-local rule to avoid sh syntax error from bash
14832         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
14833
14834 2006-10-23  Jim Meyering  <jim@meyering.net>
14835
14836         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
14837         in place of snprintf.
14838
14839         * modules/inttostr (Files): Add lib/uinttostr.c.
14840         * lib/uinttostr.c (inttostr): New file/function.
14841         * lib/inttostr.h (uinttostr): Declare.
14842         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
14843         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
14844         Add uinttostr.
14845         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
14846
14847 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
14848
14849         * lib/canonicalize.c (ELOOP): Define if not already defined.
14850         Problem reported by Bruno Haible in
14851         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
14852
14853 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
14854
14855         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
14856         Problem reported by Perry Smith and Ville Laurikari.
14857
14858         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
14859         uses.
14860
14861 2006-10-19  Bruno Haible  <bruno@clisp.org>
14862
14863         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
14864         for mingw.
14865
14866 2006-10-19  Bruno Haible  <bruno@clisp.org>
14867
14868         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
14869         Needed for mingw.
14870
14871 2006-10-19  Bruno Haible  <bruno@clisp.org>
14872
14873         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
14874
14875 2006-10-19  Bruno Haible  <bruno@clisp.org>
14876
14877         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
14878         it.
14879
14880 2006-10-19  Bruno Haible  <bruno@clisp.org>
14881
14882         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
14883         invocation.
14884
14885 2006-10-19  Bruno Haible  <bruno@clisp.org>
14886
14887         * gnulib-tool (func_create_testdir): Don't include ftruncate and
14888         mountlist by default.
14889
14890 2006-10-16  Bruno Haible  <bruno@clisp.org>
14891
14892         * lib/c-strstr.c: Include c-strstr.h.
14893
14894 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
14895
14896         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
14897         in a slash.
14898
14899 2006-10-18  Bruno Haible  <bruno@clisp.org>
14900
14901         * lib/lock.h [C++]: Wrap definitions in extern "C".
14902
14903 2006-10-18  Bruno Haible  <bruno@clisp.org>
14904
14905         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
14906         gl_LIBOBJS list.
14907
14908 2006-10-18  Bruno Haible  <bruno@clisp.org>
14909
14910         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
14911
14912 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
14913
14914         * lib/xstrtol.h: Include gettext.h.
14915         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
14916         Problem reported by Eric Blake.
14917         * modules/xstrtol (Depends-on): Add gettext-h.
14918
14919 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
14920
14921         * lib/strftime.c (advance): New macro.
14922         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
14923         incomplete type, so you can't add 0 to it.  Problem and patch
14924         reported by Eelco Dolstra for dietlibc.
14925
14926 2006-10-18  Jim Meyering  <jim@meyering.net>
14927
14928         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
14929         type for a local, and rename it: s/up/user_proc/.
14930
14931 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
14932
14933         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
14934         READ_UTMP_USER_PROCESS.
14935         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
14936
14937 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
14938
14939         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
14940         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
14941
14942 2006-10-17  Eric Blake  <ebb9@byu.net>
14943
14944         * lib/sigprocmask.c (sigprocmask): Fix typo.
14945
14946         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
14947
14948         * modules/clean-temp (Makefile.am): Don't add to make output...
14949         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
14950         config.h.
14951
14952 2006-10-17  Bruno Haible  <bruno@clisp.org>
14953
14954         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
14955         differently if DEFAULT_TEXT_DOMAIN is set.
14956
14957 2006-10-16  Bruno Haible  <bruno@clisp.org>
14958
14959         * lib/clean-temp.c: Include fwriteerror.h.
14960
14961 2006-10-16  Bruno Haible  <bruno@clisp.org>
14962
14963         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
14964
14965 2006-10-16  Bruno Haible  <bruno@clisp.org>
14966
14967         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
14968         * lib/sigprocmask.h: Include <sys/types.h>.
14969         (sigset_t): Use the system's definition if present.
14970
14971 2006-10-17  Eric Blake  <ebb9@byu.net>
14972
14973         * lib/xvasprintf.c (includes): Assume config.h.
14974         * lib/xasprintf.c (includes): Likewise.
14975
14976 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14977
14978         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
14979         at least as wide as intmax_t.
14980
14981 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
14982
14983         (Imported from Automake.)
14984         * build-aux/gnupload: Update to version 1.1 of directive file.
14985
14986 2006-10-16  Eric Blake  <ebb9@byu.net>
14987
14988         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
14989         match Automake 1.10a.
14990
14991 2006-10-14  Bruno Haible  <bruno@clisp.org>
14992
14993         * modules/sigprocmask: New file.
14994         * lib/sigprocmask.h: New file.
14995         * lib/sigprocmask.c: New file.
14996         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
14997         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
14998         request sigprocmask.o.
14999         (gl_PREREQ_SIGPROCMASK): New macro.
15000         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
15001         (Depends-on): Add sigprocmask.
15002         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
15003         gt_SIGNALBLOCKING. Test for 'raise' only once.
15004         * lib/fatal-signal.c: Include sigprocmask.h.
15005         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
15006         unblock_fatal_signals): Define always.
15007         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15008         sigprocmask.
15009
15010 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15011
15012         Sync from Automake.
15013         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
15014         which incorrectly sets the mode of an existing destination
15015         directory.  In some cases the unpatched install-sh could do the
15016         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
15017         system.  We hope this is rare in practice, but it's clearly worth
15018         fixing.  Problem reported by Alex Unleashed in
15019         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
15020         Also, don't bother to check for -m bugs unless we're using -m;
15021         suggested by Stepan Kasal.
15022
15023 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15024
15025         Sync from Automake.
15026         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
15027         `-c' flag, so they appear at the same position as in %FASTDEP%
15028         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
15029         which ignores unknown options only after the first non-option.
15030         Bug report against M4 by Nelson H. F. Beebe.
15031
15032 2006-10-13  Jim Meyering  <jim@meyering.net>
15033
15034         Fix a bug in yesterday's change.
15035         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
15036         p->fts_statp->st_dev would be used uninitialized.
15037         Ensures that we always call fts_stat on the very first entry.
15038         Miklos Szeredi reported that find -xdev stopped working.
15039
15040 2006-10-12  Bruno Haible  <bruno@clisp.org>
15041
15042         * gnulib-tool (func_get_automake_snippet): Append an automatically
15043         computed EXTRA_DIST augmentation.
15044         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
15045         * modules/alloca-opt (Makefile.am): Likewise.
15046         * modules/allocsa (Makefile.am): Likewise.
15047         * modules/arcfour (Makefile.am): Likewise.
15048         * modules/arctwo (Makefile.am): Likewise.
15049         * modules/argmatch (Makefile.am): Likewise.
15050         * modules/argz (Makefile.am): Likewise.
15051         * modules/atexit (Makefile.am): Likewise.
15052         * modules/backupfile (Makefile.am): Likewise.
15053         * modules/byteswap (Makefile.am): Likewise.
15054         * modules/c-strtod (Makefile.am): Likewise.
15055         * modules/c-strtold (Makefile.am): Likewise.
15056         * modules/calloc (Makefile.am): Likewise.
15057         * modules/canon-host (Makefile.am): Likewise.
15058         * modules/canonicalize (Makefile.am): Likewise.
15059         * modules/chdir-long (Makefile.am): Likewise.
15060         * modules/chdir-safer (Makefile.am): Likewise.
15061         * modules/check-version (Makefile.am): Likewise.
15062         * modules/chown (Makefile.am): Likewise.
15063         * modules/cloexec (Makefile.am): Likewise.
15064         * modules/close-stream (Makefile.am): Likewise.
15065         * modules/closeout (Makefile.am): Likewise.
15066         * modules/crc (Makefile.am): Likewise.
15067         * modules/csharpexec (Makefile.am): Likewise.
15068         * modules/cycle-check (Makefile.am): Likewise.
15069         * modules/des (Makefile.am): Likewise.
15070         * modules/dev-ino (Makefile.am): Likewise.
15071         * modules/dirfd (Makefile.am): Likewise.
15072         * modules/dirname (Makefile.am): Likewise.
15073         * modules/dup2 (Makefile.am): Likewise.
15074         * modules/eealloc (Makefile.am): Likewise.
15075         * modules/error (Makefile.am): Likewise.
15076         * modules/euidaccess (Makefile.am): Likewise.
15077         * modules/exclude (Makefile.am): Likewise.
15078         * modules/exitfail (Makefile.am): Likewise.
15079         * modules/fcntl-safer (Makefile.am): Likewise.
15080         * modules/fcntl (Makefile.am): Likewise.
15081         * modules/file-type (Makefile.am): Likewise.
15082         * modules/fileblocks (Makefile.am): Likewise.
15083         * modules/filemode (Makefile.am): Likewise.
15084         * modules/filenamecat (Makefile.am): Likewise.
15085         * modules/fnmatch (Makefile.am): Likewise.
15086         * modules/fopen-safer (Makefile.am): Likewise.
15087         * modules/fpending (Makefile.am): Likewise.
15088         * modules/fprintftime (Makefile.am): Likewise.
15089         * modules/free (Makefile.am): Likewise.
15090         * modules/fsusage (Makefile.am): Likewise.
15091         * modules/ftruncate (Makefile.am): Likewise.
15092         * modules/fts (Makefile.am): Likewise.
15093         * modules/gc-arcfour (Makefile.am): Likewise.
15094         * modules/gc-des (Makefile.am): Likewise.
15095         * modules/gc-hmac-md5 (Makefile.am): Likewise.
15096         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
15097         * modules/gc-md4 (Makefile.am): Likewise.
15098         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
15099         * modules/gc-sha1 (Makefile.am): Likewise.
15100         * modules/gc (Makefile.am): Likewise.
15101         * modules/getaddrinfo (Makefile.am): Likewise.
15102         * modules/getcwd (Makefile.am): Likewise.
15103         * modules/getdelim (Makefile.am): Likewise.
15104         * modules/getdomainname (Makefile.am): Likewise.
15105         * modules/getgroups (Makefile.am): Likewise.
15106         * modules/gethostname (Makefile.am): Likewise.
15107         * modules/gethrxtime (Makefile.am): Likewise.
15108         * modules/getline (Makefile.am): Likewise.
15109         * modules/getloadavg (Makefile.am): Likewise.
15110         * modules/getlogin_r (Makefile.am): Likewise.
15111         * modules/getndelim2 (Makefile.am): Likewise.
15112         * modules/getopt (Makefile.am): Likewise.
15113         * modules/getpagesize (Makefile.am): Likewise.
15114         * modules/getpass-gnu (Makefile.am): Likewise.
15115         * modules/getpass (Makefile.am): Likewise.
15116         * modules/getsubopt (Makefile.am): Likewise.
15117         * modules/gettime (Makefile.am): Likewise.
15118         * modules/gettimeofday (Makefile.am): Likewise.
15119         * modules/getugroups (Makefile.am): Likewise.
15120         * modules/getusershell (Makefile.am): Likewise.
15121         * modules/glob (Makefile.am): Likewise.
15122         * modules/group-member (Makefile.am): Likewise.
15123         * modules/hard-locale (Makefile.am): Likewise.
15124         * modules/hash (Makefile.am): Likewise.
15125         * modules/hmac-md5 (Makefile.am): Likewise.
15126         * modules/hmac-sha1 (Makefile.am): Likewise.
15127         * modules/human (Makefile.am): Likewise.
15128         * modules/idcache (Makefile.am): Likewise.
15129         * modules/imaxabs (Makefile.am): Likewise.
15130         * modules/imaxdiv (Makefile.am): Likewise.
15131         * modules/inet_ntop (Makefile.am): Likewise.
15132         * modules/inet_pton (Makefile.am): Likewise.
15133         * modules/intprops (Makefile.am): Likewise.
15134         * modules/inttostr (Makefile.am): Likewise.
15135         * modules/inttypes (Makefile.am): Likewise.
15136         * modules/isapipe (Makefile.am): Likewise.
15137         * modules/javaversion (Makefile.am): Likewise.
15138         * modules/lchmod (Makefile.am): Likewise.
15139         * modules/lchown (Makefile.am): Likewise.
15140         * modules/localcharset (Makefile.am): Likewise.
15141         * modules/long-options (Makefile.am): Likewise.
15142         * modules/lstat (Makefile.am): Likewise.
15143         * modules/malloc (Makefile.am): Likewise.
15144         * modules/mathl (Makefile.am): Likewise.
15145         * modules/mbchar (Makefile.am): Likewise.
15146         * modules/md2 (Makefile.am): Likewise.
15147         * modules/md4 (Makefile.am): Likewise.
15148         * modules/md5 (Makefile.am): Likewise.
15149         * modules/memcasecmp (Makefile.am): Likewise.
15150         * modules/memchr (Makefile.am): Likewise.
15151         * modules/memcmp (Makefile.am): Likewise.
15152         * modules/memcoll (Makefile.am): Likewise.
15153         * modules/memcpy (Makefile.am): Likewise.
15154         * modules/memmem (Makefile.am): Likewise.
15155         * modules/memmove (Makefile.am): Likewise.
15156         * modules/mempcpy (Makefile.am): Likewise.
15157         * modules/memrchr (Makefile.am): Likewise.
15158         * modules/memset (Makefile.am): Likewise.
15159         * modules/memxor (Makefile.am): Likewise.
15160         * modules/mkancesdirs (Makefile.am): Likewise.
15161         * modules/mkdir-p (Makefile.am): Likewise.
15162         * modules/mkdir (Makefile.am): Likewise.
15163         * modules/mkdtemp (Makefile.am): Likewise.
15164         * modules/mkstemp (Makefile.am): Likewise.
15165         * modules/mktime (Makefile.am): Likewise.
15166         * modules/modechange (Makefile.am): Likewise.
15167         * modules/mountlist (Makefile.am): Likewise.
15168         * modules/nanosleep (Makefile.am): Likewise.
15169         * modules/obstack (Makefile.am): Likewise.
15170         * modules/openat (Makefile.am): Likewise.
15171         * modules/pagealign_alloc (Makefile.am): Likewise.
15172         * modules/pathmax (Makefile.am): Likewise.
15173         * modules/physmem (Makefile.am): Likewise.
15174         * modules/poll (Makefile.am): Likewise.
15175         * modules/posixtm (Makefile.am): Likewise.
15176         * modules/posixver (Makefile.am): Likewise.
15177         * modules/putenv (Makefile.am): Likewise.
15178         * modules/quote (Makefile.am): Likewise.
15179         * modules/quotearg (Makefile.am): Likewise.
15180         * modules/raise (Makefile.am): Likewise.
15181         * modules/read-file (Makefile.am): Likewise.
15182         * modules/readline (Makefile.am): Likewise.
15183         * modules/readlink (Makefile.am): Likewise.
15184         * modules/readtokens (Makefile.am): Likewise.
15185         * modules/readutmp (Makefile.am): Likewise.
15186         * modules/realloc (Makefile.am): Likewise.
15187         * modules/regex (Makefile.am): Likewise.
15188         * modules/rename-dest-slash (Makefile.am): Likewise.
15189         * modules/rename (Makefile.am): Likewise.
15190         * modules/rijndael (Makefile.am): Likewise.
15191         * modules/rmdir (Makefile.am): Likewise.
15192         * modules/rpmatch (Makefile.am): Likewise.
15193         * modules/safe-read (Makefile.am): Likewise.
15194         * modules/safe-write (Makefile.am): Likewise.
15195         * modules/same-inode (Makefile.am): Likewise.
15196         * modules/same (Makefile.am): Likewise.
15197         * modules/save-cwd (Makefile.am): Likewise.
15198         * modules/savedir (Makefile.am): Likewise.
15199         * modules/setenv (Makefile.am): Likewise.
15200         * modules/settime (Makefile.am): Likewise.
15201         * modules/sha1 (Makefile.am): Likewise.
15202         * modules/sig2str (Makefile.am): Likewise.
15203         * modules/snprintf (Makefile.am): Likewise.
15204         * modules/stat-macros (Makefile.am): Likewise.
15205         * modules/stat-time (Makefile.am): Likewise.
15206         * modules/stdbool (Makefile.am): Likewise.
15207         * modules/stdint (Makefile.am): Likewise.
15208         * modules/stdlib-safer (Makefile.am): Likewise.
15209         * modules/stpcpy (Makefile.am): Likewise.
15210         * modules/stpncpy (Makefile.am): Likewise.
15211         * modules/strcase (Makefile.am): Likewise.
15212         * modules/strcasestr (Makefile.am): Likewise.
15213         * modules/strchrnul (Makefile.am): Likewise.
15214         * modules/strcspn (Makefile.am): Likewise.
15215         * modules/strdup (Makefile.am): Likewise.
15216         * modules/strerror (Makefile.am): Likewise.
15217         * modules/strftime (Makefile.am): Likewise.
15218         * modules/strndup (Makefile.am): Likewise.
15219         * modules/strnlen (Makefile.am): Likewise.
15220         * modules/strpbrk (Makefile.am): Likewise.
15221         * modules/strsep (Makefile.am): Likewise.
15222         * modules/strstr (Makefile.am): Likewise.
15223         * modules/strtod (Makefile.am): Likewise.
15224         * modules/strtoimax (Makefile.am): Likewise.
15225         * modules/strtok_r (Makefile.am): Likewise.
15226         * modules/strtol (Makefile.am): Likewise.
15227         * modules/strtoll (Makefile.am): Likewise.
15228         * modules/strtoul (Makefile.am): Likewise.
15229         * modules/strtoull (Makefile.am): Likewise.
15230         * modules/strtoumax (Makefile.am): Likewise.
15231         * modules/strverscmp (Makefile.am): Likewise.
15232         * modules/sys_socket (Makefile.am): Likewise.
15233         * modules/sys_stat (Makefile.am): Likewise.
15234         * modules/sysexits (Makefile.am): Likewise.
15235         * modules/time_r (Makefile.am): Likewise.
15236         * modules/timegm (Makefile.am): Likewise.
15237         * modules/timespec (Makefile.am): Likewise.
15238         * modules/tmpfile-safer (Makefile.am): Likewise.
15239         * modules/trim (Makefile.am): Likewise.
15240         * modules/unistd-safer (Makefile.am): Likewise.
15241         * modules/unlinkdir (Makefile.am): Likewise.
15242         * modules/unlocked-io (Makefile.am): Likewise.
15243         * modules/userspec (Makefile.am): Likewise.
15244         * modules/utime (Makefile.am): Likewise.
15245         * modules/utimecmp (Makefile.am): Likewise.
15246         * modules/utimens (Makefile.am): Likewise.
15247         * modules/vasnprintf (Makefile.am): Likewise.
15248         * modules/vasprintf (Makefile.am): Likewise.
15249         * modules/vsnprintf (Makefile.am): Likewise.
15250         * modules/xalloc (Makefile.am): Likewise.
15251         * modules/xgetcwd (Makefile.am): Likewise.
15252         * modules/xnanosleep (Makefile.am): Likewise.
15253         * modules/xreadlink (Makefile.am): Likewise.
15254         * modules/xstrtod (Makefile.am): Likewise.
15255         * modules/xstrtol (Makefile.am): Likewise.
15256         * modules/xstrtold (Makefile.am): Likewise.
15257         * modules/yesno (Makefile.am): Likewise.
15258         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
15259
15260 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15261
15262         * modules/error (Makefile.am): Distribute files through
15263         EXTRA_DIST, not lib_SOURCES.
15264
15265 2006-10-12  Eric Blake  <ebb9@byu.net>
15266
15267         * modules/error (Makefile.am): Distribute files in /lib.
15268         * modules/obstack (Makefile.am): Likewise.
15269
15270 2006-10-12  Bruno Haible  <bruno@clisp.org>
15271
15272         * modules/acl (Makefile.am): Distribute all files in lib/ through
15273         EXTRA_DIST.
15274         * modules/arcfour (Makefile.am): Likewise.
15275         * modules/arctwo (Makefile.am): Likewise.
15276         * modules/argmatch (Makefile.am): Likewise.
15277         * modules/argz (Makefile.am): Likewise.
15278         * modules/atexit (Makefile.am): Likewise.
15279         * modules/backupfile (Makefile.am): Likewise.
15280         * modules/c-strtod (Makefile.am): Likewise.
15281         * modules/c-strtold (Makefile.am): Likewise.
15282         * modules/calloc (Makefile.am): Likewise.
15283         * modules/canon-host (Makefile.am): Likewise.
15284         * modules/canonicalize (Makefile.am): Likewise.
15285         * modules/chdir-long (Makefile.am): Likewise.
15286         * modules/chdir-safer (Makefile.am): Likewise.
15287         * modules/check-version (Makefile.am): Likewise.
15288         * modules/chown (Makefile.am): Likewise.
15289         * modules/cloexec (Makefile.am): Likewise.
15290         * modules/close-stream (Makefile.am): Likewise.
15291         * modules/closeout (Makefile.am): Likewise.
15292         * modules/crc (Makefile.am): Likewise.
15293         * modules/cycle-check (Makefile.am): Likewise.
15294         * modules/des (Makefile.am): Likewise.
15295         * modules/dirfd (Makefile.am): Likewise.
15296         * modules/dirname (Makefile.am): Likewise.
15297         * modules/dup2 (Makefile.am): Likewise.
15298         * modules/euidaccess (Makefile.am): Likewise.
15299         * modules/exclude (Makefile.am): Likewise.
15300         * modules/exitfail (Makefile.am): Likewise.
15301         * modules/fcntl-safer (Makefile.am): Likewise.
15302         * modules/file-type (Makefile.am): Likewise.
15303         * modules/fileblocks (Makefile.am): Likewise.
15304         * modules/filemode (Makefile.am): Likewise.
15305         * modules/filenamecat (Makefile.am): Likewise.
15306         * modules/fnmatch (Makefile.am): Likewise.
15307         * modules/fopen-safer (Makefile.am): Likewise.
15308         * modules/fpending (Makefile.am): Likewise.
15309         * modules/fprintftime (Makefile.am): Likewise.
15310         * modules/free (Makefile.am): Likewise.
15311         * modules/fsusage (Makefile.am): Likewise.
15312         * modules/ftruncate (Makefile.am): Likewise.
15313         * modules/fts (Makefile.am): Likewise.
15314         * modules/gc (Makefile.am): Likewise.
15315         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
15316         * modules/getaddrinfo (Makefile.am): Likewise.
15317         * modules/getcwd (Makefile.am): Likewise.
15318         * modules/getdelim (Makefile.am): Likewise.
15319         * modules/getdomainname (Makefile.am): Likewise.
15320         * modules/getgroups (Makefile.am): Likewise.
15321         * modules/gethostname (Makefile.am): Likewise.
15322         * modules/gethrxtime (Makefile.am): Likewise.
15323         * modules/getline (Makefile.am): Likewise.
15324         * modules/getloadavg (Makefile.am): Likewise.
15325         * modules/getlogin_r (Makefile.am): Likewise.
15326         * modules/getopt (Makefile.am): Likewise.
15327         * modules/getpass (Makefile.am): Likewise.
15328         * modules/getpass-gnu (Makefile.am): Likewise.
15329         * modules/getsubopt (Makefile.am): Likewise.
15330         * modules/gettime (Makefile.am): Likewise.
15331         * modules/gettimeofday (Makefile.am): Likewise.
15332         * modules/getugroups (Makefile.am): Likewise.
15333         * modules/getusershell (Makefile.am): Likewise.
15334         * modules/glob (Makefile.am): Likewise.
15335         * modules/group-member (Makefile.am): Likewise.
15336         * modules/hard-locale (Makefile.am): Likewise.
15337         * modules/hash (Makefile.am): Likewise.
15338         * modules/hmac-md5 (Makefile.am): Likewise.
15339         * modules/hmac-sha1 (Makefile.am): Likewise.
15340         * modules/human (Makefile.am): Likewise.
15341         * modules/idcache (Makefile.am): Likewise.
15342         * modules/imaxabs (Makefile.am): Likewise.
15343         * modules/imaxdiv (Makefile.am): Likewise.
15344         * modules/inet_ntop (Makefile.am): Likewise.
15345         * modules/inet_pton (Makefile.am): Likewise.
15346         * modules/inttostr (Makefile.am): Likewise.
15347         * modules/isapipe (Makefile.am): Likewise.
15348         * modules/lchown (Makefile.am): Likewise.
15349         * modules/long-options (Makefile.am): Likewise.
15350         * modules/lstat (Makefile.am): Likewise.
15351         * modules/malloc (Makefile.am): Likewise.
15352         * modules/mathl (Makefile.am): Likewise.
15353         * modules/mbchar (Makefile.am): Likewise.
15354         * modules/md2 (Makefile.am): Likewise.
15355         * modules/md4 (Makefile.am): Likewise.
15356         * modules/md5 (Makefile.am): Likewise.
15357         * modules/memcasecmp (Makefile.am): Likewise.
15358         * modules/memchr (Makefile.am): Likewise.
15359         * modules/memcmp (Makefile.am): Likewise.
15360         * modules/memcoll (Makefile.am): Likewise.
15361         * modules/memcpy (Makefile.am): Likewise.
15362         * modules/memmem (Makefile.am): Likewise.
15363         * modules/memmove (Makefile.am): Likewise.
15364         * modules/mempcpy (Makefile.am): Likewise.
15365         * modules/memrchr (Makefile.am): Likewise.
15366         * modules/memset (Makefile.am): Likewise.
15367         * modules/memxor (Makefile.am): Likewise.
15368         * modules/mkancesdirs (Makefile.am): Likewise.
15369         * modules/mkdir (Makefile.am): Likewise.
15370         * modules/mkdir-p (Makefile.am): Likewise.
15371         * modules/mkdtemp (Makefile.am): Likewise.
15372         * modules/mkstemp (Makefile.am): Likewise.
15373         * modules/mktime (Makefile.am): Likewise.
15374         * modules/modechange (Makefile.am): Likewise.
15375         * modules/mountlist (Makefile.am): Likewise.
15376         * modules/nanosleep (Makefile.am): Likewise.
15377         * modules/openat (Makefile.am): Likewise.
15378         * modules/pagealign_alloc (Makefile.am): Likewise.
15379         * modules/physmem (Makefile.am): Likewise.
15380         * modules/poll (Makefile.am): Likewise.
15381         * modules/posixtm (Makefile.am): Likewise.
15382         * modules/posixver (Makefile.am): Likewise.
15383         * modules/putenv (Makefile.am): Likewise.
15384         * modules/quote (Makefile.am): Likewise.
15385         * modules/quotearg (Makefile.am): Likewise.
15386         * modules/raise (Makefile.am): Likewise.
15387         * modules/read-file (Makefile.am): Likewise.
15388         * modules/readline (Makefile.am): Likewise.
15389         * modules/readlink (Makefile.am): Likewise.
15390         * modules/readtokens (Makefile.am): Likewise.
15391         * modules/readutmp (Makefile.am): Likewise.
15392         * modules/realloc (Makefile.am): Likewise.
15393         * modules/regex (Makefile.am): Likewise.
15394         * modules/rename (Makefile.am): Likewise.
15395         * modules/rename-dest-slash (Makefile.am): Likewise.
15396         * modules/rijndael (Makefile.am): Likewise.
15397         * modules/rmdir (Makefile.am): Likewise.
15398         * modules/rpmatch (Makefile.am): Likewise.
15399         * modules/safe-read (Makefile.am): Likewise.
15400         * modules/safe-write (Makefile.am): Likewise.
15401         * modules/same (Makefile.am): Likewise.
15402         * modules/save-cwd (Makefile.am): Likewise.
15403         * modules/savedir (Makefile.am): Likewise.
15404         * modules/setenv (Makefile.am): Likewise.
15405         * modules/settime (Makefile.am): Likewise.
15406         * modules/sha1 (Makefile.am): Likewise.
15407         * modules/sig2str (Makefile.am): Likewise.
15408         * modules/snprintf (Makefile.am): Likewise.
15409         * modules/stdlib-safer (Makefile.am): Likewise.
15410         * modules/stpcpy (Makefile.am): Likewise.
15411         * modules/stpncpy (Makefile.am): Likewise.
15412         * modules/strcase (Makefile.am): Likewise.
15413         * modules/strcasestr (Makefile.am): Likewise.
15414         * modules/strchrnul (Makefile.am): Likewise.
15415         * modules/strcspn (Makefile.am): Likewise.
15416         * modules/strdup (Makefile.am): Likewise.
15417         * modules/strerror (Makefile.am): Likewise.
15418         * modules/strftime (Makefile.am): Likewise.
15419         * modules/strndup (Makefile.am): Likewise.
15420         * modules/strnlen (Makefile.am): Likewise.
15421         * modules/strpbrk (Makefile.am): Likewise.
15422         * modules/strsep (Makefile.am): Likewise.
15423         * modules/strstr (Makefile.am): Likewise.
15424         * modules/strtod (Makefile.am): Likewise.
15425         * modules/strtoimax (Makefile.am): Likewise.
15426         * modules/strtok_r (Makefile.am): Likewise.
15427         * modules/strtol (Makefile.am): Likewise.
15428         * modules/strtoll (Makefile.am): Likewise.
15429         * modules/strtoul (Makefile.am): Likewise.
15430         * modules/strtoull (Makefile.am): Likewise.
15431         * modules/strtoumax (Makefile.am): Likewise.
15432         * modules/strverscmp (Makefile.am): Likewise.
15433         * modules/time_r (Makefile.am): Likewise.
15434         * modules/timegm (Makefile.am): Likewise.
15435         * modules/tmpfile-safer (Makefile.am): Likewise.
15436         * modules/unistd-safer (Makefile.am): Likewise.
15437         * modules/unlinkdir (Makefile.am): Likewise.
15438         * modules/userspec (Makefile.am): Likewise.
15439         * modules/utime (Makefile.am): Likewise.
15440         * modules/utimecmp (Makefile.am): Likewise.
15441         * modules/utimens (Makefile.am): Likewise.
15442         * modules/vasnprintf (Makefile.am): Likewise.
15443         * modules/vasprintf (Makefile.am): Likewise.
15444         * modules/vsnprintf (Makefile.am): Likewise.
15445         * modules/xalloc (Makefile.am): Likewise.
15446         * modules/xgetcwd (Makefile.am): Likewise.
15447         * modules/xnanosleep (Makefile.am): Likewise.
15448         * modules/xreadlink (Makefile.am): Likewise.
15449         * modules/xstrtod (Makefile.am): Likewise.
15450         * modules/xstrtol (Makefile.am): Likewise.
15451         * modules/xstrtold (Makefile.am): Likewise.
15452         * modules/yesno (Makefile.am): Likewise.
15453
15454 2006-10-12  Jim Meyering  <jim@meyering.net>
15455
15456         * m4/getloadavg.m4: Revert the change below.
15457
15458         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
15459         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
15460         fail with a symlink, which is what coreutils' ./bootstrap now
15461         creates by default.
15462
15463 2006-10-12  Bruno Haible  <bruno@clisp.org>
15464
15465         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
15466         mingw.
15467         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
15468         MSVC and mingw explicitly.
15469
15470 2006-10-11  Simon Josefsson  <jas@extundo.com>
15471             Bruno Haible  <bruno@clisp.org>
15472
15473         Add support for multiple gnulib-tool invocations in the scope of a
15474         single configure.ac file.
15475         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
15476         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
15477         with the same contents as the _LIBADD variable.
15478         (func_emit_initmacro_start, func_emit_initmacro_end,
15479         func_emit_initmacro_done): New functions.
15480         (func_import, func_create_testdir): Invoke them. Allow the identifiers
15481         gl_LIBOBJS and gl_LTLIBOBJS.
15482
15483 2006-10-11  Bruno Haible  <bruno@clisp.org>
15484
15485         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
15486         (func_create_testdir): Don't create po/Makefile.am, don't invoke
15487         autoreconf. Instead, invoke autopoint explicitly but move back the
15488         *.m4 files from gnulib.
15489
15490 2006-10-11  Bruno Haible  <bruno@clisp.org>
15491
15492         * gnulib-tool (func_usage): Make module names after --create-testdir
15493         optional.
15494         (func_create_testdir): If no module was specified, use nearly all
15495         modules.
15496
15497 2006-10-12  Jim Meyering  <jim@meyering.net>
15498
15499         Big performance improvement for fts-based tools that use FTS_NOSTAT.
15500         Avoid spurious inode-mismatch problems on non-POSIX file systems.
15501         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
15502         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
15503         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
15504         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
15505         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
15506         (fts_set_stat_required): New function.
15507         (fts_open): Defer the calls to fts_stat, if possible or requested.
15508         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
15509         into fts_stat itself.
15510         (fts_read): Perform any required (deferred) fts_stat call.
15511         (fts_build): Likewise, for the directory we're about to open and read.
15512         In the readdir loop, carefully decide whether each entry will require
15513         an eventual call to fts_stat, using dirent.d_type info if available.
15514         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
15515         a command line argument into this function.  Update all callers.
15516         Map a return value of FTS_DOT to FTS_D for a command line argument.
15517         * modules/fts (Depends-on): Add d-type.  Alphabetize.
15518         Thanks to Miklos Szeredi for his tenacity and for the initial
15519         bug report about "find" failing on a FUSE-based file system.
15520
15521         * lib/fts.c (fts_open): Use consistent indentation.
15522
15523 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15524
15525         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
15526         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
15527         reported by Jim Meyering.  All uses of cache variables renamed
15528         to match Autoconf's.
15529         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
15530         the other one.
15531
15532         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
15533         Fix misspelling in diagnostic.
15534
15535 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15536
15537         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
15538         defined.  Problem reported by Matthew Woehlke.
15539
15540         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
15541         Add support for Tandem NonStop R series.
15542         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
15543         Use new macro.
15544
15545         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
15546         (has_trailing_slash): Omit size arg; all callers changed.
15547         Omit 'inline', since it doesn't help performance and we'd
15548         need to configure it.
15549         Don't count //, ///, etc. as having a trailing slash.
15550         As a side effect, this removes a C99ism reported by Matthew Woehlke.
15551         (rpl_rename_dest_slash): On failure, use rename's errno rather
15552         than (in some cases) an incorrect or junk errno.
15553         Simplify code by removing need to compute length; this does
15554         cause it to make two passes instead of one over the file name,
15555         but it's worth it.
15556
15557         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
15558         change, since Autoconf's version may no longer be appropriate now
15559         that we are using CVS Autoconf's version.  Add support for Tandem.
15560
15561 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15562             Bruno Haible  <bruno@clisp.org>
15563
15564         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
15565         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
15566         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
15567         gl_AC_TYPE_LONG_LONG.
15568
15569         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
15570         instead of HAVE_LONG_LONG.
15571         * lib/printf-args.c (printf_fetchargs): Likewise.
15572         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15573         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15574         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
15575         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
15576         gl_AC_TYPE_LONG_LONG.
15577
15578 2006-10-11  Bruno Haible  <bruno@clisp.org>
15579
15580         * m4/longlong.m4: Add comments.
15581         * m4/ulonglong.m4: Likewise.
15582
15583 2006-10-10  Bruno Haible  <bruno@clisp.org>
15584
15585         Make it possible to #define stpcpy, strdup to aliases.
15586         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
15587         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
15588
15589 2006-10-10  Bruno Haible  <bruno@clisp.org>
15590
15591         Make it possible to #define gcd to an alias.
15592         * lib/gcd.c: Include config.h.
15593
15594 2006-10-10  Bruno Haible  <bruno@clisp.org>
15595
15596         Make it possible to #define c_isascii to an alias.
15597         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
15598         defined. Undefine the macros before defining them, to avoid gcc
15599         warnings.
15600         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
15601         define NO_C_CTYPE_MACROS early.
15602
15603 2006-10-10  Bruno Haible  <bruno@clisp.org>
15604
15605         Make it possible to #define set_program_name to an alias.
15606         * lib/progname.c: Don't undefine set_program_name; instead, undefine
15607         ENABLE_RELOCATABLE early.
15608
15609 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15610
15611         Port to Tandem NSK OSS, which has 64-bit signed int but at most
15612         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
15613         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
15614         More generally, don't assume that 64-bit signed int is available
15615         if unsigned int is, and vice versa.
15616         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
15617         unsigned symbols, not on their signed counterparts.
15618         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
15619         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
15620         (UINT64_C, UINTMAX_C):
15621         Likewise.
15622         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
15623         unsigned counterparts.
15624         (Have_long_long, Unsigned): New macros.
15625         (Int): Renamed from INT.
15626         (strtoimax): Use the new macros.
15627         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
15628         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
15629         * modules/inttypes (inttypes.h): Substitute
15630         HAVE_UNSIGNED_LONG_LONG_INT.
15631         * modules/stdint (stdint.h): Likewise.
15632         (Files): Add m4/ulonglong.m4.
15633
15634 2006-10-10  Bruno Haible  <bruno@clisp.org>
15635
15636         Fix a gcc -Wshadow warning.
15637         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
15638         to 'bucket'.
15639         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
15640         gl_linked_indexof_from_to): Likewise.
15641         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
15642         Likewise.
15643         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
15644         Likewise.
15645         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
15646         Reported by Eric Blake.
15647
15648 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
15649
15650         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
15651         for NetBSD.  Problem reported by Bruno Haible.
15652
15653 2006-10-09  Jim Meyering  <jim@meyering.net>
15654
15655         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
15656         Patch from Bruno Haible.
15657
15658 2006-10-09  Jim Meyering  <jim@meyering.net>
15659
15660         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
15661         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
15662         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
15663
15664 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15665
15666         Don't include <config.h> twice; this doesn't work in some cases,
15667         e.g., when config.h has "#define intmax_t long long int" and
15668         we include <config.h>, <inttypes.h>, <config.h> in that order.
15669         Problem reported by Matthew Woehlke in:
15670         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
15671         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
15672         * lib/fts-cycle.c: Don't include config.h.
15673         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
15674         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
15675         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
15676         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
15677         inttypes.h.
15678         * lib/xstrtoumax.c: Likewise.
15679         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
15680         __strtol and the like, so that this module is more like its siblings.
15681         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
15682         Remove; no longer needed now that we assume gnulib inttypes.h.
15683
15684 2006-10-08  Bruno Haible  <bruno@clisp.org>
15685
15686         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
15687         option.
15688
15689 2006-10-07  Jim Meyering  <jim@meyering.net>
15690
15691         * modules/inttypes (inttypes.h): Revert what seems to have been
15692         an inadvertent part of today's change: use "|", not "/" in the
15693         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
15694
15695 2006-10-07  Bruno Haible  <bruno@clisp.org>
15696
15697         * modules/sublist: New file.
15698
15699 2006-10-07  Bruno Haible  <bruno@clisp.org>
15700
15701         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
15702         * modules/argz (argz.h): Likewise.
15703         * modules/arpa_inet (arpa/inet.h): Likewise.
15704         * modules/byteswap (byteswap.h): Likewise.
15705         * modules/configmake (configmake.h): Likewise.
15706         * modules/fcntl (fcntl.h): Likewise.
15707         * modules/fnmatch (fnmatch.h): Likewise.
15708         * modules/getopt (getopt.h): Likewise.
15709         * modules/glob (glob.h): Likewise.
15710         * modules/inttypes (inttypes.h): Likewise.
15711         * modules/netinet_in (netinet/in.h): Likewise.
15712         * modules/poll (poll.h): Likewise.
15713         * modules/stdbool (stdbool.h): Likewise.
15714         * modules/stdint (stdint.h): Likewise.
15715         * modules/sys_select (sys/select.h): Likewise.
15716         * modules/sys_socket (sys/socket.h): Likewise.
15717         * modules/sys_stat (sys/stat.h): Likewise.
15718         * modules/sysexits (sysexits.h): Likewise.
15719         * modules/unistd (unistd.h): Likewise.
15720         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15721         Add a "DO NOT EDIT" comment to the generated file.
15722         (func_import): Likewise for gnulib-comp.m4.
15723
15724 2006-10-07  Bruno Haible  <bruno@clisp.org>
15725
15726         * lib/gl_sublist.h: New file.
15727         * lib/gl_sublist.c: New file.
15728
15729 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15730
15731         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
15732         name (relative to the original working directory) and the file
15733         name component (relative to the temporary working directory).  All
15734         callers changed.
15735         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
15736         * lib/mkdir-p.c (make_dir_parents): Likewise.
15737         * lib/mkdir-p.h (make_dir_parents): Likewise.
15738
15739 2006-10-06  Eric Blake  <ebb9@byu.net>
15740
15741         Define several macros for use by the clean-temp module.
15742         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
15743         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
15744         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
15745
15746         * lib/clean-temp.h (close_stream_temp): New declaration.
15747         * lib/clean-temp.c (includes): Pull in headers according to what
15748         other modules are in use.
15749         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
15750
15751 2006-10-06  Bruno Haible  <bruno@clisp.org>
15752
15753         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
15754         instead of fopen, fwriteerror.
15755
15756 2006-10-06  Bruno Haible  <bruno@clisp.org>
15757
15758         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
15759         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
15760         int.
15761         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
15762         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
15763         Return an error indicator.
15764         Suggested by Eric Blake.
15765
15766 2006-10-06  Bruno Haible  <bruno@clisp.org>
15767
15768         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
15769         Reported by Eric Blake.
15770
15771 2006-10-06  Bruno Haible  <bruno@clisp.org>
15772
15773         * modules/closeout (Description): Mention stderr too.
15774
15775 2006-10-06  Bruno Haible  <bruno@clisp.org>
15776         and Paul Eggert  <eggert@cs.ucla.edu>
15777
15778         * lib/closeout.c (close_stdout): Also close stderr.
15779         * lib/closeout.h: Update comment.
15780
15781 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15782
15783         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
15784         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
15785         * lib/dirchownmod.c: Include lchown.h.
15786         * lib/lchown.c: Don't include files that lchown.h now includes.
15787         Don't declare chown, since lchown.h now does that.
15788         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
15789         (lchown): Define to rpl_chown if lchown is declared but
15790         does not exist.  Declare using a prototype if lchown is not
15791         declared.  Add a copyright notice.
15792         * lib/mkstemp.h: Include <unistd.h>.
15793         * lib/openat.c: Include lchown.h.
15794
15795         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
15796         we now test for that separately.
15797         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
15798         rather than O_NOFOLLOW, when testing whether it's possible to
15799         avoid a race condition reliably.
15800         * lib/savewd.c (savewd_chdir): Likewise.
15801
15802         Remove macros that are no longer needed now that stdint.h is
15803         reliable.
15804         * lib/fsusage.c (UINTMAX_MAX): Remove.
15805         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
15806         * lib/utimecmp.c (SIZE_MAX): Remove.
15807
15808         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
15809
15810         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
15811         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
15812         O_NOATIME works.
15813
15814 2006-10-05  Bruno Haible  <bruno@clisp.org>
15815
15816         * lib/gl_list.h (gl_sortedlist_search_from_to,
15817         gl_sortedlist_indexof_from_to): New declarations.
15818         (gl_list_implementation): New fields sortedlist_search_from_to,
15819         sortedlist_indexof_from_to.
15820         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
15821         inline functions.
15822         * lib/gl_list.c (gl_sortedlist_search_from_to,
15823         gl_sortedlist_indexof_from_to): New functions.
15824         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
15825         function.
15826         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
15827         (gl_array_sortedlist_search_from_to): New function.
15828         (gl_array_list_implementation): Update.
15829         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
15830         function.
15831         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
15832         (gl_carray_sortedlist_search_from_to): New function.
15833         (gl_carray_list_implementation): Update.
15834         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
15835         gl_linked_sortedlist_indexof_from_to): New functions.
15836         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15837         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15838         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
15839         gl_tree_sortedlist_indexof_from_to): New functions.
15840         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15841         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15842         Update.
15843         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15844         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
15845         Update.
15846
15847 2006-10-05  Bruno Haible  <bruno@clisp.org>
15848
15849         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
15850         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
15851         (struct gl_list_implementation): Add fields search_from_to,
15852         indexof_from_to. Remove fields search, indexof.
15853         (gl_list_search): Use the search_from_to method.
15854         (gl_list_search_from, gl_list_search_from_to): New functions.
15855         (gl_list_indexof): Use the indexof_from_to method.
15856         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
15857         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
15858         (gl_list_search_from, gl_list_search_from_to): New functions.
15859         (gl_list_indexof): Use the indexof_from_to method.
15860         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
15861         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
15862         gl_array_indexof. Add start_index, end_index arguments.
15863         (gl_array_search_from_to): Renamed from gl_array_search. Add
15864         start_index, end_index arguments.
15865         (gl_array_remove, gl_array_list_implementation): Update.
15866         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
15867         gl_carray_indexof. Add start_index, end_index arguments.
15868         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
15869         start_index, end_index arguments.
15870         (gl_carray_remove, gl_carray_list_implementation): Update.
15871         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
15872         gl_linked_search. Add start_index, end_index arguments.
15873         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
15874         start_index, end_index arguments.
15875         (gl_linked_remove): Update.
15876         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15877         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15878         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
15879         field to 'size_t'.
15880         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
15881         gl_tree_search. Add start_index, end_index arguments.
15882         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
15883         start_index, end_index arguments.
15884         (gl_tree_remove): Update.
15885         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15886         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15887         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
15888         function.
15889         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
15890         gl_tree_search. Add start_index, end_index arguments.
15891         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
15892         start_index, end_index arguments.
15893         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15894         Update.
15895         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
15896
15897 2006-10-05  Bruno Haible  <bruno@clisp.org>
15898
15899         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
15900
15901         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
15902         fwriteerror_temp): New declarations.
15903         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
15904         (descriptors): New variable.
15905         (cleanup): First, close the descriptors.
15906         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
15907         fclose_temp, fwriteerror_temp): New functions.
15908
15909 2006-10-04  Jim Meyering  <jim@meyering.net>
15910
15911         * lib/fts.c (fts_open): Tiny comment change.
15912
15913 2006-10-04  Bruno Haible  <bruno@clisp.org>
15914
15915         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
15916         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
15917         gl_LOCK_BODY.
15918         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
15919         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
15920         gl_LOCK_EARLY_BODY.
15921         (gl_LOCK): Require gl_LOCK_BODY.
15922
15923 2006-10-04  Bruno Haible  <bruno@clisp.org>
15924
15925         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
15926         (gl_oset_search_atleast): New declaration.
15927         (struct gl_oset_implementation): Add field 'search_atleast'.
15928         (gl_oset_search_atleast): New inline function.
15929         * lib/gl_oset.c (gl_oset_search_atleast): New function.
15930         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
15931         (gl_array_oset_implementation): Update.
15932         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
15933         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
15934         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
15935
15936 2006-10-04  Bruno Haible  <bruno@clisp.org>
15937
15938         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
15939
15940 2006-10-03  Bruno Haible  <bruno@clisp.org>
15941
15942         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
15943         from gl_avltreehash_list_implementation.
15944
15945 2006-10-03  Bruno Haible  <bruno@clisp.org>
15946
15947         * lib/gl_oset.c (gl_oset_add): Fix return type.
15948
15949 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
15950
15951         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
15952
15953 2006-10-02  Eric Blake  <ebb9@byu.net>
15954
15955         * modules/strnlen (Depends-on): Add extensions.
15956
15957 2006-10-02  Eric Blake  <ebb9@byu.net>
15958
15959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
15960         definition in 2.60+.
15961
15962 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
15963
15964         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
15965         checks.
15966
15967 2006-10-02  Bruno Haible  <bruno@clisp.org>
15968
15969         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
15970         to the AUTOMAKE_OPTIONS.
15971         Reported by Jim Meyering.
15972
15973 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
15974
15975         Work around bug in Solaris 10 /proc file system:
15976         /proc/self/fd/NNN/.. isn't the parent directory of
15977         the directory whose file descriptor is NNN.  This needs to
15978         be worked around at run time, not compile time, since a
15979         program might be built on Solaris 8, where things work, and
15980         run on Solaris 10.
15981         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
15982         to use the following interface instead:
15983         (OPENAT_BUFFER_SIZE): New macro.
15984         (openat_proc_name): New function.
15985         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
15986         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
15987         Likewise.
15988         * lib/openat-proc.c: New file.
15989         * modules/openat (Files): Add lib/openat-proc.c.
15990         (Depends-on): Add same-inode, stdbool.
15991         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
15992
15993 2006-09-29  Bruno Haible  <bruno@clisp.org>
15994
15995         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
15996         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
15997         argument. Set stdout_closed before testing for ferror, not after.
15998         (fwriteerror, fwriteerror_no_ebadf): New functions.
15999
16000 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16001
16002         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
16003
16004 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
16005
16006         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
16007         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
16008
16009 2006-09-28  Jim Meyering  <jim@meyering.net>
16010
16011         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
16012         Include <unistd.h>.
16013
16014 2006-09-28  Bruno Haible  <bruno@clisp.org>
16015
16016         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
16017         * modules/linkedhash-list (Depends-on): Likewise.
16018         * modules/rbtreehash-list (Depends-on): Likewise.
16019
16020 2006-09-28  Bruno Haible  <bruno@clisp.org>
16021
16022         * lib/strndup.h: Simplify the redefinition of strndup.
16023         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
16024         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
16025
16026 2006-09-28  Bruno Haible  <bruno@clisp.org>
16027
16028         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
16029         * lib/gl_linkedhash_list.c: Likewise.
16030         * lib/gl_rbtreehash_list.c: Likewise.
16031
16032 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
16033
16034         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
16035         getaddrinfo.
16036
16037         * lib/__fpending.h: Don't include <stdio_ext.h> unless
16038         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
16039         it causes <stdio_ext.h> to cause a compile-time error.
16040         Problem reported by Nelson H. F. Beebe.
16041         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
16042         of HAVE_DECL___PENDING.
16043
16044         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
16045         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
16046         declaration.
16047
16048 2006-09-27  Jim Meyering  <jim@meyering.net>
16049
16050         This file could end up with a definition for a function
16051         named __strndup, rather than rpl_strndup on a system with
16052         incomplete weak_alias support.
16053         * lib/strndup.c (strndup): Rename from __strndup.
16054         Remove #defines that used to map __strndup to strndup.
16055         Don't use K&R prototypes.
16056         Remove LIBC-related code, since this file is not sync'd with glibc.
16057         * lib/strndup.h: Revamp, accordingly.
16058         * m4/strndup.m4: Modernize.
16059
16060 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
16061
16062         * modules/savewd (Depends-on): Add 'raise'.
16063         * lib/savewd.c: Include <signal.h>, for 'raise'.
16064
16065 2006-09-26  Jim Meyering  <jim@meyering.net>
16066
16067         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
16068         when we detect Darwin 8.7.0's acl_get_file bug.
16069         Rearrange to perform the new (below) run-test while $LIBS
16070         contains any acl-related library.  Set USE_ACL at the end.
16071         (gl_ACL_GET_FILE): New function.
16072
16073 2006-09-26  Eric Blake  <ebb9@byu.net>
16074
16075         * lib/verror.c: Include <config.h> unconditionally.
16076
16077 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
16078
16079         * modules/clock-time (Maintainer): Add self.
16080         * modules/getlogin_r (Depends-on): Add extensions.
16081
16082 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16083
16084         * modules/clock-time: New module.
16085         * modules/nanosleep (Depends-on): Add clock-time.
16086         * modules/gethrxtime (Depends-on): Likewise.
16087         * modules/gettime (Depends-on): Likewise.
16088         * modules/settime (Depends-on): Likewise.
16089
16090         * modules/fts-lgpl: Depend on openat.
16091         * modules/mkancesdirs: Depend on savewd.
16092         * modules/mkdir-p: Likewise.
16093
16094 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16095
16096         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
16097
16098         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
16099         `gl_have_arbitrary_file_name_length_limit' to
16100         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
16101         actually works between configure runs.
16102
16103 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16104             Bruno Haible  <bruno@clisp.org>
16105
16106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
16107
16108 2006-09-25  Jim Meyering  <jim@meyering.net>
16109
16110         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
16111         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
16112
16113 2006-09-25  Eric Blake  <ebb9@byu.net>
16114
16115         * gnulib-tool (func_import, func_create_testdir): Fix typos in
16116         exec's in 2006-09-18 patch when shuffling fds.
16117
16118 2006-09-25  Bruno Haible  <bruno@clisp.org>
16119
16120         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
16121         Reported by Jim Meyering.
16122
16123 2006-09-24  Jim Meyering  <jim@meyering.net>
16124
16125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
16126         compare a pointer against a literal "0".  That caused failures with
16127         at least HP-UX's hpcc.
16128
16129 2006-09-22  Simon Josefsson  <jas@extundo.com>
16130
16131         * modules/gc-sha1:
16132         * modules/gc-md4:
16133         * modules/gc-hmac-sha1:
16134         * modules/gc-hmac-md5:
16135         * modules/gc-des:
16136         * modules/gc-arcfour: Distribute more files.
16137
16138 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16139
16140         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
16141         (gl_linked_iterator_from_to): Initialize struct completely.
16142         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
16143         (gl_tree_iterator_from_to): Likewise
16144         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
16145         * lib/gl_array_list.c [lint] (gl_array_iterator)
16146         (gl_array_iterator_from_to): Likewise.
16147         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
16148         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
16149         (gl_carray_iterator_from_to): Likewise.
16150
16151         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
16152         * lib/md4.c (md4_process_block): Remove unused variable.
16153         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
16154         parentheses for clarity.
16155
16156 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16157
16158         * modules/bison-i18n (Depends-on): Add gettext.
16159
16160 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16161
16162         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
16163         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
16164         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
16165         also add missing comma that caused broken test.
16166         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
16167         stdlib.h, for `abort'.
16168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
16169         variables.
16170         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
16171         include unistd.h if present, for `rmdir'.
16172         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
16173         variables.
16174         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
16175         in the process include standard headers for prototypes.
16176         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
16177         gets declared on GNU/Linux.
16178         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
16179         unistd.h, for `rmdir'.
16180         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
16181
16182         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
16183         always true.
16184         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
16185
16186         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
16187
16188 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16189
16190         * gnulib-tool (func_version): Create output all at once.  This
16191         may help avoid triggering unnecessary SIGPIPEs, and at any
16192         rate it doesn't hurt.
16193
16194 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16195             Bruno Haible  <bruno@clisp.org>
16196
16197         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
16198         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16199         * m4/signed.m4 (bh_C_SIGNED): Likewise.
16200
16201         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
16202         (gl_FUNC_VASPRINTF): Invoke it.
16203
16204 2006-09-22  Bruno Haible  <bruno@clisp.org>
16205
16206         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
16207         getloadavg.c as first argument.
16208
16209 2006-09-22  Bruno Haible  <bruno@clisp.org>
16210
16211         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
16212         at the beginning of the gl_INIT macro.
16213         * modules/getloadavg (configure.ac): Pass $gl_source_base to
16214         gl_GETLOADAVG.
16215
16216 2006-09-22  Bruno Haible  <bruno@clisp.org>
16217
16218         * gnulib-tool (func_create_megatestdir): Don't include the config-h
16219         module.
16220         Suggested by Ralf Wildenhues.
16221
16222 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16223
16224         Import this patch from libc:
16225
16226         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
16227
16228         * lib/regex_internal.c (re_string_reconstruct): Handle
16229         offset < pstr->valid_raw_len && pstr->offsets_needed case.
16230         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
16231         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
16232         re_string_context_at.
16233
16234         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
16235         now requires it.
16236         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
16237         gl_REGEX now does it for us.
16238         (gl_REGEX): Add test taken from
16239         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
16240
16241         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
16242         Check that large offsets work.  Modernize Autoconf usages.
16243         Prefer "yes" to mean a good thing rather than a bad.
16244         Don't put "#define mkstemp" in config.h, as this might interfere
16245         with standard system headers that "#define mkstemp mkstemp64".
16246
16247         * modules/mkstemp (Depends-on): Add extensions, so that
16248         mkstemp is visible on some platforms.
16249         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
16250         (Include): Change to "mkstemp.h" from <stdlib.h>.
16251         (Files): Add mkstemp.h.
16252
16253         * lib/mkstemp.h: New file, since some standard headers
16254         #define mkstemp.
16255         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
16256         Include "mkstemp.h".
16257         Make the _LIBC code resemble glibc original more,
16258         e.g., use K&R style.
16259         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
16260         (mkstemp): Remove, since mkstemp.h does this for us.
16261         * lib/stdlib--.h: Include mkstemp.h.
16262
16263         Import this patch from libc:
16264
16265         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
16266
16267         * lib/tempname.c (__gen_tempname): Change attempts_min
16268         into a macro.  Use preprocessor to decide how to initialize
16269         attempts [Coverity CID 67].
16270
16271 2006-09-20  Bruno Haible  <bruno@clisp.org>
16272
16273         * lib/mkdtemp.c: Import from libc.
16274         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
16275                 * sysdeps/posix/tempname.c (__gen_tempname): Change
16276                 attempts_min into a macro.  Use preprocessor to decide how to
16277                 initialize attempts [Coverity CID 67].
16278         2001-11-27  Paul Eggert  <eggert@twinsun.com>
16279                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
16280                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
16281
16282 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16283
16284         * gnulib-tool (func_exit): New function, to allow to pass the
16285         exit status portably through the trap.  Use everywhere.
16286         (--help, --version): Signal a write error.
16287         (trap): catch SIGPIPE, for write errors.
16288         Exit at the end of the trap, with the correct exit status.
16289
16290 2006-09-19  Karl Berry  <karl@gnu.org>
16291
16292         * doc/gnulib.texi: note about the license texinfo files.
16293
16294 2006-09-19  Eric Blake  <ebb9@byu.net>
16295
16296         * gnulib-tool: Avoid space-tab.
16297
16298 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16299
16300         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
16301         that prevented coreutils 6.1 from building.  Problem reported
16302         by Petter Reinholdtsen.
16303
16304 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16305
16306         * gnulib-tool (avoidlist): Fix typo that broke options like
16307         --avoid=lock that are used by coreutils bootstrap.
16308
16309 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
16310
16311         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
16312         more systematically.
16313
16314 2006-09-18  Jim Meyering  <jim@meyering.net>
16315
16316         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
16317
16318 2006-09-18  Bruno Haible  <bruno@clisp.org>
16319
16320         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
16321
16322 2006-09-18  Bruno Haible  <bruno@clisp.org>
16323
16324         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
16325         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
16326         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
16327         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
16328         * m4/gettext.m4: Require autoconf >= 2.52.
16329         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
16330         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
16331         of gl_cv_header_inttypes_h.
16332
16333 2006-09-18  Bruno Haible  <bruno@clisp.org>
16334
16335         * lib/javaversion.c: Include configmake.h.
16336
16337 2006-09-18  Bruno Haible  <bruno@clisp.org>
16338
16339         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
16340         avoid that the while loops be executed in a subshell.
16341
16342 2006-09-18  Bruno Haible  <bruno@clisp.org>
16343
16344         * MODULES.html.sh (func_module): Break long lines.
16345         Suggested by Bruce Korb <bkorb@gnu.org>.
16346
16347 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16348
16349         Speed up by a factor of 1.12.
16350         * gnulib-tool (nl): New variable.
16351         (func_import): Rewrite include directive extraction to only read each
16352         directive once.
16353
16354 2006-09-17  Bruno Haible  <bruno@clisp.org>
16355
16356         * modules/javaversion (Makefile.am): Remove DEFS setting.
16357         (Depends-on): Add configmake, for PKGDATADIR definition.
16358
16359 2006-09-17  Bruno Haible  <bruno@clisp.org>
16360
16361         * gnulib-tool (func_create_testdir): Rewrite all files at once.
16362
16363 2006-09-17  Bruno Haible  <bruno@clisp.org>
16364
16365         * gnulib-tool (func_append): New function, stolen from libtool.m4.
16366         (func_modules_transitive_closure, func_modules_add_dummy,
16367         func_modules_to_filelist, func_import, func_create_testdir,
16368         func_create_megatestdir, ...): Use it wherever possible.
16369         Suggested by Ralf Wildenhues.
16370
16371 2006-09-16  Karl Berry  <karl@gnu.org>
16372
16373         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
16374         to avoid sectioning errors.
16375         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
16376         [ifinfo]: blank line after @center-ed titles.
16377         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
16378         Spell FSF address consistently with others.
16379         (These changes approved by rms.)
16380
16381 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16382
16383         Speed up by a factor of 1.61.
16384         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
16385         already checked module names again.
16386
16387 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16388
16389         Speed up by a factor of 1.13.
16390         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
16391         for new_files, and the input to func_add_or_update.
16392
16393 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16394
16395         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
16396         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
16397
16398 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16399
16400         * modules/mkancesdirs (Depends-on): Add fcntl.
16401         * modules/savewd: New file.
16402         * MODULES.html.sh (File system functions): Add savewd.
16403
16404         * modules/configmake (Makefile.am): Add support for the
16405         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
16406
16407 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16408
16409         * m4/savewd.m4: New file.
16410
16411 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16412
16413         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
16414         (dirchownmod): New arg FD.  All callers changed.
16415         Use FD rather than opening the directory ourself, as opening is
16416         now the caller's responsibility.
16417         * lib/dirchownmod.h: Likewise.
16418         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
16419         hosts that require <sys/types.h> before <sys/stat.h>.  Include
16420         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
16421         (test_dir): Remove.
16422         (mkancesdirs): Return length of prefix of FILE that has already
16423         been made, or -2 if there is a child doing the work.  Redo
16424         algorithm so that it is O(N) rather than O(N**2).  Optimize away
16425         ".", and treat ".." specially since it might stray back into
16426         already-created areas.  Use a subprocess if necessary.  New arg
16427         WD; all users changed.  MAKE_DIR function should now return 1
16428         if it creates a directory that is not readable.  Return -2 if
16429         a child process is spun off.
16430         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
16431         Adjust signature to match code.
16432         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
16433         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
16434         all users changed.
16435         * lib/savewd.c, lib/savewd.h: New files.
16436
16437 2006-09-15  Jim Meyering  <jim@meyering.net>
16438
16439         * modules/rename-dest-slash: New module.
16440         * MODULES.html.sh (posix_compat): Add it here.
16441
16442         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
16443
16444 2006-09-15  Jim Meyering  <jim@meyering.net>
16445
16446         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
16447         file.
16448
16449         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
16450
16451 2006-09-15  Jim Meyering  <jim@meyering.net>
16452
16453         * lib/rename-dest-slash.c (has_trailing_slash): Use
16454         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
16455         (rpl_rename_dest_slash): Perform the cheaper trailing slash
16456         test before testing whether SRC is a directory.
16457         Suggestions from Bruno Haible.
16458
16459         Avoid a warning about an unused variable.
16460         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
16461         into the #ifdef block where it's used.
16462
16463         * lib/rename-dest-slash.c: New file.
16464
16465 2006-09-14  Bruno Haible  <bruno@clisp.org>
16466
16467         * lib/allocsa.c: Include <config.h> unconditionally.
16468         * lib/asnprintf.c: Likewise.
16469         * lib/asprintf.c: Likewise.
16470         * lib/c-strcasecmp.c: Likewise.
16471         * lib/c-strcasestr.c: Likewise.
16472         * lib/c-strncasecmp.c: Likewise.
16473         * lib/c-strstr.c: Likewise.
16474         * lib/classpath.c: Likewise.
16475         * lib/clean-temp.c: Likewise.
16476         * lib/concatpath.c: Likewise.
16477         * lib/copy-file.c: Likewise.
16478         * lib/csharpcomp.c: Likewise.
16479         * lib/csharpexec.c: Likewise.
16480         * lib/execute.c: Likewise.
16481         * lib/fatal-signal.c: Likewise.
16482         * lib/findprog.c: Likewise.
16483         * lib/fwriteerror.c: Likewise.
16484         * lib/gl_array_list.c: Likewise.
16485         * lib/gl_array_oset.c: Likewise.
16486         * lib/gl_avltree_list.c: Likewise.
16487         * lib/gl_avltree_oset.c: Likewise.
16488         * lib/gl_avltreehash_list.c: Likewise.
16489         * lib/gl_carray_list.c: Likewise.
16490         * lib/gl_linked_list.c: Likewise.
16491         * lib/gl_linkedhash_list.c: Likewise.
16492         * lib/gl_list.c: Likewise.
16493         * lib/gl_oset.c: Likewise.
16494         * lib/gl_rbtree_list.c: Likewise.
16495         * lib/gl_rbtree_oset.c: Likewise.
16496         * lib/gl_rbtreehash_list.c: Likewise.
16497         * lib/imaxabs.c: Likewise.
16498         * lib/imaxdiv.c: Likewise.
16499         * lib/javacomp.c: Likewise.
16500         * lib/javaexec.c: Likewise.
16501         * lib/javaversion.c: Likewise.
16502         * lib/linebreak.c: Likewise.
16503         * lib/localcharset.c: Likewise.
16504         * lib/lock.c: Likewise.
16505         * lib/mbchar.c: Likewise.
16506         * lib/mbswidth.c: Likewise.
16507         * lib/mkdtemp.c: Likewise.
16508         * lib/pipe.c: Likewise.
16509         * lib/printf-args.c: Likewise.
16510         * lib/printf-parse.c: Likewise.
16511         * lib/progname.c: Likewise.
16512         * lib/progreloc.c: Likewise.
16513         * lib/readlink.c: Likewise.
16514         * lib/sh-quote.c: Likewise.
16515         * lib/stpcpy.c: Likewise.
16516         * lib/stpncpy.c: Likewise.
16517         * lib/strcasecmp.c: Likewise.
16518         * lib/strcasestr.c: Likewise.
16519         * lib/strcspn.c: Likewise.
16520         * lib/striconv.c: Likewise.
16521         * lib/strncasecmp.c: Likewise.
16522         * lib/strnlen1.c: Likewise.
16523         * lib/strstr.c: Likewise.
16524         * lib/strtok_r.c: Likewise.
16525         * lib/tls.c: Likewise.
16526         * lib/tmpdir.c: Likewise.
16527         * lib/unicodeio.c: Likewise.
16528         * lib/unsetenv.c: Likewise.
16529         * lib/vasnprintf.c: Likewise.
16530         * lib/vasprintf.c: Likewise.
16531         * lib/wait-process.c: Likewise.
16532         * lib/xallocsa.c: Likewise.
16533         * lib/xsetenv.c: Likewise.
16534         * lib/xstriconv.c: Likewise.
16535
16536 2006-09-13  Simon Josefsson  <jas@extundo.com>
16537
16538         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
16539         that internally, suggested by Ralf Wildenhues
16540         <Ralf.Wildenhues@gmx.de>.
16541
16542 2006-09-13  Simon Josefsson  <jas@extundo.com>
16543
16544         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
16545         @LIBOBJS@.
16546         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16547
16548 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16549
16550         * lib/_fpending.c: Include <config.h> unconditionally, since we no
16551         longer worry about uses that don't define HAVE_CONFIG_H.
16552         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
16553         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
16554         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
16555         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
16556         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
16557         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
16558         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
16559         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
16560         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
16561         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
16562         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
16563         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
16564         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
16565         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
16566         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
16567         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
16568         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
16569         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
16570         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
16571         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
16572         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
16573         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
16574         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
16575         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
16576         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
16577         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
16578         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
16579         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
16580         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
16581         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
16582         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
16583         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
16584         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
16585         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
16586         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
16587         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
16588         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
16589         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
16590         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
16591         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
16592         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
16593         Likewise.
16594
16595 2006-09-13  Eric Blake  <ebb9@byu.net>
16596
16597         * lib/getopt.c: Fix typo in last commit.
16598
16599 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16600
16601         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
16602         dgettext.
16603
16604 2006-09-12  Jim Meyering  <jim@meyering.net>
16605
16606         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
16607         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
16608         Reported by Nelson H. F. Beebe.
16609
16610 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
16611
16612         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
16613         program_invocation_name and program_invocation_short_name are
16614         initialized.
16615         * lib/argp-namefrob.h: Move declarations of program_invocation_name
16616         and program_invocation_short_name to argp.h, so they are visible
16617         to user programs.
16618         * lib/argp.h: Likewise
16619
16620 2006-09-10  Bruno Haible  <bruno@clisp.org>
16621
16622         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
16623         m4/inttypes_h.m4, m4/uintmax_t.m4.
16624
16625 2006-09-10  Bruno Haible  <bruno@clisp.org>
16626
16627         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
16628         gl_AC_TYPE_UINTMAX_T.
16629
16630 2006-09-10  Bruno Haible  <bruno@clisp.org>
16631
16632         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
16633
16634 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16635
16636         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
16637         convention.  Text proposed by Bruno Haible.
16638         (struct argp_option): Document the use of N_() wrappers.
16639
16640         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
16641         '\v', and translate the two parts separately, instead of feeding
16642         the whole string to gettext.  This allows to exclude
16643         '\v' from the strings visible to the translator by writing doc
16644         strings as N_("..") "\v" N_("..").
16645
16646 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
16647
16648         * config/srclist.txt: Undo latest change; the bug was fixed.
16649
16650 2006-09-09  Bruno Haible  <bruno@clisp.org>
16651
16652         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
16653         assignments if building a library without libtool.
16654         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
16655         in func_emit_lib_Makefile_am.
16656         (func_import): When building a static library libfoo.a, arrange to
16657         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
16658         (func_create_testdir): Likewise.
16659         * modules/gc (configure.ac, Makefile.am): If building statically,
16660         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
16661         * modules/iconvme (configure.ac, Makefile.am): Likewise.
16662         * modules/striconv (configure.ac, Makefile.am): Likewise.
16663         Based on a suggestion by Ralf Wildenhues.
16664
16665 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16666
16667         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16668         Check for unistd.h too, since Autoconf doesn't assume POSIX.
16669         Also:
16670
16671         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16672         Add year_2050_test to catch glibc bug 2821
16673         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
16674
16675         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16676         Prefer #ifdef to #if.
16677
16678         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
16679         Return from 'main' instead of calling 'exit'.
16680
16681 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16682
16683         * lib/mktime.c (guess_time_tm): Fix bug where mktime
16684         returned the maximum time_t value rather than (time_t) -1.
16685         Problem originally reported by William Bardwell
16686         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
16687
16688         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
16689         Moved to here ...
16690         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
16691         ... from here.
16692
16693 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16694
16695         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
16696         2821 is fixed.
16697
16698 2006-09-08  Jim Meyering  <jim@meyering.net>
16699
16700         Don't make generated files read-only.  That would bother too many
16701         people.  However, do retain the ability to work when targets are
16702         read-only: remove the destination and temporary files before writing
16703         them (when generated via sed or echo), or by using the -f option for
16704         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
16705         * modules/alloca-opt, modules/argz, modules/arpa_inet:
16706         * modules/byteswap, modules/configmake, modules/fcntl:
16707         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
16708         * modules/localcharset, modules/netinet_in, modules/poll:
16709         * modules/stdbool, modules/stdint, modules/sys_select:
16710         * modules/sys_socket, modules/sys_stat, modules/sysexits:
16711
16712 2006-09-08  Jim Meyering  <jim@meyering.net>
16713
16714         Avoid new build failure on FreeBSD 6.0.
16715         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
16716         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
16717         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
16718
16719 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16720
16721         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
16722
16723 2006-09-07  Jim Meyering  <jim@meyering.net>
16724
16725         Fix global typo in last change: use chmod u-w, not chmod u-x.
16726         Spotted by Paul Eggert and Bruce Korb.
16727         * modules/alloca-opt, modules/argz, modules/arpa_inet:
16728         * modules/byteswap, modules/configmake, modules/fcntl:
16729         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
16730         * modules/localcharset, modules/netinet_in, modules/poll:
16731         * modules/stdbool, modules/stdint, modules/sys_select:
16732         * modules/sys_socket, modules/sys_stat, modules/sysexits:
16733
16734 2006-09-06  Jim Meyering  <jim@meyering.net>
16735
16736         Make generated files be read-only.
16737         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
16738         Ensure that each generated file is now read-only.
16739         * modules/argz: Likewise.
16740         * modules/arpa_inet: Likewise.
16741         * modules/byteswap: Likewise.
16742         * modules/configmake: Likewise.
16743         * modules/fcntl: Likewise.
16744         * modules/fnmatch: Likewise.
16745         * modules/getopt: Likewise.
16746         * modules/glob: Likewise.
16747         * modules/inttypes: Likewise.
16748         * modules/netinet_in: Likewise.
16749         * modules/poll: Likewise.
16750         * modules/stdbool: Likewise.
16751         * modules/stdint: Likewise.
16752         * modules/sys_select: Likewise.
16753         * modules/sys_socket: Likewise.
16754         * modules/sys_stat: Likewise.
16755         * modules/sysexits: Likewise.
16756         * modules/localcharset: Same as above, but continue using temporary
16757         file named "t-$@" (why different?) rather than the "$@-t" used
16758         everywhere else.
16759
16760         * modules/sysexits (Makefile.am): Replace literal occurrences
16761         of "sysexit.h" more readable, and more consistent, "$@".
16762
16763 2006-09-06  Bruno Haible  <bruno@clisp.org>
16764
16765         * modules/striconv: New file.
16766         * modules/xstriconv: New file.
16767         * MODULES.html.sh (Internationalization functions): Add striconv,
16768         xstriconv.
16769
16770 2006-09-06  Bruno Haible  <bruno@clisp.org>
16771
16772         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
16773         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
16774         not using libtool correctly.
16775
16776 2006-09-06  Bruno Haible  <bruno@clisp.org>
16777
16778         * lib/striconv.h: New file.
16779         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
16780         iconvstring.c.
16781         * lib/xstriconv.h: New file.
16782         * lib/xstriconv.c: New file.
16783
16784 2006-09-06  Bruno Haible  <bruno@clisp.org>
16785
16786         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16787         lib_..._LDFLAGS.
16788
16789 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16790
16791         * lib/argz_.h: Sync from Libtool.
16792
16793         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
16794                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16795
16796         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
16797
16798 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
16799
16800         * modules/trim: New file.
16801
16802 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
16803
16804         * lib/trim.h: New file.
16805         * lib/trim.c: New file.
16806
16807 2006-09-05  Bruno Haible  <bruno@clisp.org>
16808
16809         * MODULES.html.sh (String handling): Add trim.
16810
16811 2006-09-04  Karl Berry  <karl@gnu.org>
16812
16813         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
16814         until next release.
16815
16816 2006-09-03  Bruno Haible  <bruno@clisp.org>
16817
16818         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
16819         correctly.
16820
16821 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16822
16823         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
16824         not gl_GETLOADAVG.  Omit unneeded semicolons.
16825         Problems reported by Ralf Wildenhues in
16826         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
16827         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
16828         at the end, which is the usual gnulib style.
16829
16830         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
16831         of doing all the work ourselves.
16832         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
16833         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
16834
16835 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16836
16837         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
16838         Problem reported by Ralf Wildenhues in
16839         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
16840
16841         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
16842         HAVE_STRUCT_STATFS_F_FSTYPENAME.
16843
16844 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16845
16846         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
16847         yesterday's patch by changing test -n to test -z.
16848
16849 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16850
16851         * modules/getloadavg (Files): Add m4/getloadavg.m4.
16852         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
16853         the former is now obsolescent.
16854
16855         * modules/chdir-long (Depends-on): Add fcntl.
16856
16857 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16858
16859         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
16860         obsolescent, and programs should use gnulib instead.
16861         * m4/getloadavg.m4: New file, with contents taken from Autoconf
16862         but with prefixes changed.
16863
16864 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16865
16866         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
16867         or stdbool.h, because they might not exist while configuring.
16868
16869         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
16870         Don't include unistd.h or limits.h; not needed, since chdir-long.h
16871         does that for us.
16872         (O_DIRECTORY): Remove.
16873
16874 2006-08-31  Eric Blake  <ebb9@byu.net>
16875
16876         * gnulib-tool: Don't let emacs change spaces to TAB.
16877
16878 2006-08-31  Bruno Haible  <bruno@clisp.org>
16879
16880         * gnulib-tool: When calling func_import more than once, do it in a
16881         subshell.
16882         Reported by Eric Blake <ebb9@byu.net>.
16883
16884 2006-08-31  Bruno Haible  <bruno@clisp.org>
16885
16886         * gnulib-tool (nl): Remove variable.
16887         (sed_transform_lib_file): Use more robust test for config-h module.
16888         (func_import): Fix typo in 2006-08-25 patch.
16889
16890 2006-08-31  Bruno Haible  <bruno@clisp.org>
16891
16892         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
16893         specified, augment Makefile.am variables instead of assigning them.
16894
16895 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16896
16897         Work around a bug in both the Linux and SunOS 64-bit kernels:
16898         nanosleep mishandles sleeps for longer than 2**31 seconds.
16899         Problem reported by Frank v Waveren in
16900         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
16901         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
16902         Check for nanosleep bug.
16903         (LIB_NANOSLEEP): Append clock_gettime library if needed.
16904
16905 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16906
16907         Work around a bug in both the Linux and SunOS 64-bit kernels:
16908         nanosleep mishandles sleeps for longer than 2**31 seconds.
16909         Problem reported by Frank v Waveren in
16910         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
16911         * lib/nanosleep.c (BILLION): New constant.
16912         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
16913         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
16914         implementation.
16915
16916 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16917
16918         * modules/nanosleep (Depends-on): Add gettime.
16919
16920 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16921         and Simon Josefsson  <jas@extundo.com>
16922         and Oskar Liljeblad  <oskar@osk.mine.nu>
16923
16924         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
16925         * gnulib-tool (func_import): New license type 'unmodifiable license
16926         text'.
16927         * modules/fdl: Use it.  Longer description.
16928         * module/gpl, module/lgpl: New files.
16929
16930 2006-08-30  Jim Meyering  <jim@meyering.net>
16931
16932         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
16933         shadowing the parameter.
16934
16935 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16936
16937         Sync from Libtool:
16938
16939         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16940
16941         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
16942         sharing with gnulib.  Report by Eric Blake.
16943
16944 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16945
16946         * modules/isapipe: New file.
16947         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
16948
16949 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16950
16951         * modules/configmake (Makefile.am): Add a comment, and omit
16952         the CONFIGMAKE_ prefix from generated macro names.  Suggested
16953         by Bruno Haible.
16954
16955 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16956
16957         * m4/isapipe.m4: New file.
16958
16959 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16960
16961         * lib/isapipe.c, lib/isapipe.h: New files.
16962
16963 2006-08-29  Jim Meyering  <jim@meyering.net>
16964
16965         * modules/configmake (Makefile.am): Make configmake.h depend on
16966         Makefile.  Otherwise, a stale configmake.h could hang around.
16967
16968 2006-08-29  Eric Blake  <ebb9@byu.net>
16969
16970         * lib/error.c (error_at_line, print_errno_message): Match libc, after
16971         resolution of upstream bug 3044.
16972
16973 2006-08-29  Bruno Haible  <bruno@clisp.org>
16974
16975         * modules/localcharset (Depends-on): Add configmake.
16976         (Makefile.am): Remove setting of LIBDIR through DEFS.
16977
16978 2006-08-29  Bruno Haible  <bruno@clisp.org>
16979
16980         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
16981         defined.
16982
16983 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16984
16985         * modules/fcntl: New file.
16986         * modules/chdir-safer (Depends-on): Add fcntl.
16987         * modules/fts: Likewise.
16988         * modules/mkdir-p: Likewise.
16989
16990         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
16991         This undoes the most recent change, since we're now addressing the
16992         problem in a different way.
16993
16994         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
16995         into output, since the output might be called Makefile.am even
16996         if $makefile_name is something different.
16997         (func_import): Use $makefile_am rather than
16998         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
16999         empty.
17000
17001         * modules/inttypes (Files): Add m4/inttypes-h.m4.
17002
17003 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17004
17005         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
17006         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
17007         recent change to stdint.m4, since we're now addressing the problem in a
17008         different way.
17009
17010 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17011
17012         * m4/fcntl_h.m4: New file.
17013
17014 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17015
17016         * lib/fcntl_.h: New file.
17017         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
17018         the fcntl module.
17019         * lib/dirchownmod.c: Likewise.
17020         * lib/fts.c: Likewise.
17021
17022         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
17023         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
17024         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
17025         just before including <inttypes.h>, to avoid circular inclusion.
17026
17027 2006-08-28  Jim Meyering  <jim@meyering.net>
17028
17029         * doc/visibility.texi: Actually read and correct the grammar of the
17030         sentence affected by yesterday's change.
17031
17032 2006-08-28  Eric Blake  <ebb9@byu.net>
17033
17034         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
17035         needs wrapper.
17036
17037 2006-08-28  Eric Blake  <ebb9@byu.net>
17038
17039         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
17040
17041 2006-08-28  Eric Blake  <ebb9@byu.net>
17042
17043         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
17044
17045 2006-08-28  Bruno Haible  <bruno@clisp.org>
17046
17047         * modules/c-strstr: New file, from GNU gettext.
17048         * MODULES.html.sh (String handling): Add c-strstr.
17049
17050 2006-08-28  Bruno Haible  <bruno@clisp.org>
17051
17052         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
17053         macros.
17054         Reported by Eric Blake.
17055
17056 2006-08-28  Bruno Haible  <bruno@clisp.org>
17057
17058         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
17059         (VASNPRINTF): Return a string of length > INT_MAX without failing.
17060         * lib/vasprintf.c: Include errno.h, limits.h.
17061         (EOVERFLOW): New fallback definition.
17062         (vasprintf): Test here whether the string length is > INT_MAX.
17063         * lib/vsnprintf.c: Include errno.h, limits.h.
17064         (EOVERFLOW): New fallback definition.
17065         (vsnprintf): Fix bug when generated string was too long for the buffer.
17066         Test here whether the string length is > INT_MAX.
17067
17068 2006-08-28  Bruno Haible  <bruno@clisp.org>
17069
17070         * lib/inttypes_.h (SCNX*): Remove definitions.
17071         Reported by Eric Blake.
17072
17073 2006-08-28  Bruno Haible  <bruno@clisp.org>
17074
17075         * lib/c-strstr.h: New file, from GNU gettext.
17076         * lib/c-strstr.c: New file, from GNU gettext.
17077
17078 2006-08-28  Bruno Haible  <bruno@clisp.org>
17079
17080         * gnulib-tool: Reorder some statements.
17081
17082 2006-08-28  Bruno Haible  <bruno@clisp.org>
17083
17084         * gnulib-tool: New option --makefile-name.
17085         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
17086         $makefile_name.
17087         (func_import): Write $makefile_name to the cache file, and read it from
17088         there unless explicitly specified. Use $makefile_name as file name
17089         instead of Makefile.am. Adjust the recommendations accordingly.
17090
17091 2006-08-28  Bruno Haible  <bruno@clisp.org>
17092
17093         * gnulib-tool (func_verify_module): Check against misapplying patch.
17094
17095 2006-08-28  Bruno Haible  <bruno@clisp.org>
17096
17097         * gnulib-tool (func_relativize, func_relconcat): New functions.
17098         Give an error if --local-dir is given with --update.
17099         Remove trailing slashes from $local_gnulib_dir.
17100         (func_import): Store the relativized $local_gnulib_dir in
17101         gnulib-cache.m4, and read it from there if not specified explicitly.
17102
17103 2006-08-28  Bruno Haible  <bruno@clisp.org>
17104
17105         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
17106         is the current directory. Respect also $local_gnulib_dir.
17107
17108 2006-08-28  Bruno Haible  <bruno@clisp.org>
17109             Simon Josefsson  <jas@extundo.com>
17110
17111         BeOS portability.
17112         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
17113
17114 2006-08-27  Jim Meyering  <jim@meyering.net>
17115
17116         * doc/visibility.texi: Remove duplicate word: "pointer".
17117
17118 2006-08-26  Bruno Haible  <bruno@clisp.org>
17119
17120         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
17121         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
17122         (Makefile.am): Create inttypes.h from inttypes_.h.
17123         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
17124
17125         * modules/imaxabs: New file.
17126
17127         * modules/imaxdiv: New file.
17128
17129 2006-08-26  Bruno Haible  <bruno@clisp.org>
17130
17131         * m4/inttypes.m4: New file.
17132         * m4/_inttypes_h.m4: Remove file.
17133         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
17134         PRI_MACROS_BROKEN.
17135         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
17136
17137         * m4/imaxabs.m4: New file.
17138
17139         * m4/imaxdiv.m4: New file.
17140
17141 2006-08-26  Bruno Haible  <bruno@clisp.org>
17142
17143         * lib/inttypes_.h: New file.
17144         * lib/inttypes.h: Remove file.
17145         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
17146
17147         * lib/imaxabs.c: New file.
17148
17149         * lib/imaxdiv.c: New file.
17150
17151 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17152
17153         New config-h module, so that "make" output needn't be cluttered
17154         by -DHAVE_CONFIG_H.
17155         * MODULES.html.sh (Support for building libraries and executables):
17156         Add config-h.
17157         * modules/config-h: New file.
17158         * gnulib-tool (nl, sed_transform_lib_file): New vars.
17159         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
17160         the config-h module is used.
17161
17162         New configmake module, so that "make" output needn't be cluttered
17163         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
17164         * MODULES.html.sh (Support for building libraries and executables):
17165         Add configmake.
17166         * modules/configmake: New file.
17167
17168 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17169
17170         * m4/config-h.m4: New file.
17171
17172 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17173
17174         * config/srclist.txt: Add elisp-comp.
17175
17176 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17177
17178         * MODULES.html.sh (Support for building libraries and executables):
17179         Add elisp-comp.
17180         * build-aux/elisp-comp: New file.
17181         * modules/elisp-comp: New file.
17182
17183 2006-08-24  Bruno Haible  <bruno@clisp.org>
17184
17185         * gnulib-tool (func_create_testdir): Use non-default values of
17186         sourcebase and m4base.
17187
17188 2006-08-24  Bruno Haible  <bruno@clisp.org>
17189
17190         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
17191         HTML structure.
17192
17193 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17194
17195         * modules/openat (Depends-on): Add lchown.
17196
17197 2006-08-23  Bruno Haible  <bruno@clisp.org>
17198
17199         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
17200         of gl_LOCK_EARLY instead of gl_LOCK.
17201
17202 2006-08-23  Bruno Haible  <bruno@clisp.org>
17203
17204         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
17205         on OSF/1 to no.
17206         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
17207
17208 2006-08-23  Bruno Haible  <bruno@clisp.org>
17209
17210         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
17211         as unusable.
17212
17213         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
17214         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
17215         (gl_LOCK): New macro.
17216
17217 2006-08-22  Simon Josefsson  <jas@extundo.com>
17218
17219         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
17220         to md5 module.
17221
17222 2006-08-22  Simon Josefsson  <jas@extundo.com>
17223
17224         * MODULES.html.sh: Add "Support for maintaining and release
17225         projects".
17226
17227         * build-aux/gnupload: New file, from coreutils.
17228
17229 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17230
17231         Avoid the need for AC_LIBSOURCES in m4 macros.
17232         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
17233         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
17234         * modules/check-version (EXTRA_DIST): Add check-version.h.
17235         * modules/crc (EXTRA_DIST): Add crc.h.
17236         * modules/des (EXTRA_DIST): Add des.h.
17237         * modules/gc (EXTRA_DIST): Add gc.h.
17238         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
17239         * modules/getline (EXTRA_DIST): Add getline.h.
17240         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
17241         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
17242         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
17243         * modules/md2 (EXTRA_DIST): Add md2.h.
17244         * modules/md4 (EXTRA_DIST): Add md4.h.
17245         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
17246         * modules/read-file (EXTRA_DIST): Add read-file.h.
17247         * modules/readline (EXTRA_DIST): Add readline.h.
17248         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
17249         rijndael-api-fst.h.
17250
17251 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17252
17253         * m4/rijndael.m4 (gl_ARCFOUR):
17254         * m4/arctwo.m4 (gl_ARCTWO):
17255         * m4/check-version.m4 (gl_CHECK_VERSION):
17256         * m4/crc.m4 (gl_CRC):
17257         * m4/des.m4 (gl_DES):
17258         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
17259         * m4/gc.m4 (gl_GC):
17260         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
17261         * m4/getline.m4 (gl_FUNC_GETLINE):
17262         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
17263         * m4/hmac-md5.m4 (gl_HMAC_MD5):
17264         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
17265         * m4/md2.m4 (gl_MD2):
17266         * m4/md4.m4 (gl_MD4):
17267         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
17268         * m4/read-file.m4 (gl_FUNC_READ_FILE):
17269         * m4/readline.m4 (gl_FUNC_READLINE):
17270         * m4/rijndael.m4 (gl_RIJNDAEL):
17271         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
17272         to get the necessary .h files and whatnot.
17273
17274 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17275
17276         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
17277         gnulib rather than the other way around.
17278         * config/srclistvars.sh (COREUTILS): Remove.
17279
17280 2006-08-22  Jim Meyering  <jim@meyering.net>
17281
17282         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
17283
17284         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
17285
17286 2006-08-22  Eric Blake  <ebb9@byu.net>
17287
17288         * modules/regexprops-generic: New file.
17289         * MODULES.html.sh (Support for building documentation): List it.
17290
17291 2006-08-22  Eric Blake  <ebb9@byu.net>
17292
17293         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
17294         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17295         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
17296         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17297
17298 2006-08-22  Bruno Haible  <bruno@clisp.org>
17299
17300         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
17301         and lib_LTLIBRARIES like the other lib_* variables.
17302
17303 2006-08-22  Bruno Haible  <bruno@clisp.org>
17304
17305         * build-aux/x-to-1.in: New file, from GNU gettext.
17306
17307 2006-08-22  Bruno Haible  <bruno@clisp.org>
17308
17309         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
17310         <utmpx.h> exists.
17311
17312 2006-08-22  Bruno Haible  <bruno@clisp.org>
17313
17314         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
17315         <utmpx.h> exists.
17316
17317 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17318
17319         BeOS portability.
17320         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
17321         exist.
17322         Problem reported by Bruno Haible.
17323
17324 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17325
17326         Avoid the need for AC_LIBSOURCES in m4 macros.
17327         * modules/acl (EXTRA_DIST): Add acl.h.
17328         * modules/argmatch (Files): Add m4/argmatch.m4.
17329         (configure.ac): Add gl_ARGMATCH.
17330         (EXTRA_DIST): Renamed from lib_SOURCES, for
17331         consistency with the other modules.  Remove argmatch.c.
17332         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
17333         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
17334         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
17335         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
17336         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
17337         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
17338         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
17339         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
17340         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
17341         * modules/closeout (EXTRA_DIST): Add closeout.h.
17342         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
17343         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
17344         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
17345         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
17346         dirname.h; remove basename.c and stripslash.c.
17347         * modules/exclude (EXTRA_DIST): Add exclude.h.
17348         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
17349         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
17350         * modules/file-type (EXTRA_DIST): Add file-type.h.
17351         * modules/filemode (EXTRA_DIST): Add filemode.h.
17352         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
17353         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
17354         * modules/fpending (EXTRA_DIST): Add __fpending.h.
17355         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
17356         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
17357         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
17358         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
17359         * modules/getdate (EXTRA_DIST): Add getdate.c.
17360         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
17361         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
17362         * modules/getpass (EXTRA_DIST): Add getpass.h.
17363         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
17364         * modules/group-member (EXTRA_DIST): Add group-member.h.
17365         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
17366         * modules/hash (EXTRA_DIST): Add hash.h.
17367         * modules/human (EXTRA_DIST): Add human.h.
17368         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
17369         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
17370         * modules/lchown (EXTRA_DIST): Add lchown.h.
17371         * modules/long-options (EXTRA_DIST): Add long-options.h.
17372         * modules/lstat (EXTRA_DIST): Add lstat.h.
17373         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
17374         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
17375         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
17376         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
17377         * modules/memxor (EXTRA_DIST): Add memxor.h.
17378         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
17379         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
17380         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
17381         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
17382         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
17383         * modules/physmem (EXTRA_DIST): Add physmem.h.
17384         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
17385         * modules/posixver (EXTRA_DIST): Add posixver.h.
17386         * modules/quote (EXTRA_DIST): Add quote.h.
17387         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
17388         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
17389         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
17390         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
17391         regex_internal.h regexec.c.
17392         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
17393         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
17394         * modules/same (EXTRA_DIST): Add same.h.
17395         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
17396         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
17397         * modules/savedir (EXTRA_DIST): Add savedir.h.
17398         * modules/sha1 (EXTRA_DIST): Add sha1.h.
17399         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
17400         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
17401         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
17402         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
17403         * modules/strdup (EXTRA_DIST): Add strdup.h.
17404         * modules/strftime (EXTRA_DIST): Add strftime.h.
17405         * modules/strndup (EXTRA_DIST): Add strndup.h.
17406         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
17407         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
17408         * modules/time_r (EXTRA_DIST): Add time_r.h.
17409         * modules/timespec (EXTRA_DIST): Add timespec.h.
17410         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
17411         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
17412         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
17413         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
17414         * modules/userspec (EXTRA_DIST): Add userspec.h.
17415         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
17416         * modules/utimens (EXTRA_DIST): Add utimens.h.
17417         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
17418         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
17419         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
17420         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
17421         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
17422         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
17423         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
17424         * modules/yesno (EXTRA_DIST): Add yesno.h.
17425
17426 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17427
17428         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
17429
17430         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
17431         * m4/dev-ino.m4, same-inode.m4: Remove.
17432
17433         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
17434         * m4/acl.m4 (AC_FUNC_ACL):
17435         * m4/backupfile.m4 (gl_BACKUPFILE):
17436         * m4/c-strtod.m4 (gl_C99_STRTOLD):
17437         * m4/canon-host.m4 (gl_CANON_HOST):
17438         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17439         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
17440         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
17441         * m4/cloexec.m4 (gl_CLOEXEC):
17442         * m4/close-stream.m4 (gl_CLOSE_STREAM):
17443         * m4/closeout.m4 (gl_CLOSEOUT):
17444         * m4/dirfd.m4 (gl_FUNC_DIRFD):
17445         * m4/dirname.m4 (gl_DIRNAME):
17446         * m4/exclude.m4 (gl_EXCLUDE):
17447         * m4/exitfail.m4 (gl_EXITFAIL):
17448         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
17449         * m4/file-type.m4 (gl_FILE_TYPE):
17450         * m4/filemode.m4 (gl_FILEMODE):
17451         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
17452         * m4/fpending.m4 (gl_FUNC_FPENDING):
17453         * m4/fprintftime.m4 (gl_FPRINTFTIME):
17454         * m4/fts.m4 (gl_FUNC_FTS):
17455         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
17456         * m4/getdate.m4 (gl_GETDATE):
17457         * m4/gethrxtime.m4 (gl_GETHRXTIME):
17458         * m4/getpagesize.m4 (gl_GETPAGESIZE):
17459         * m4/getpass.m4 (gl_FUNC_GETPASS):
17460         * m4/gettime.m4 (gl_GETTIME):
17461         * m4/getugroups.m4 (gl_GETUGROUPS):
17462         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
17463         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
17464         * m4/hard-locale.m4 (gl_HARD_LOCALE):
17465         * m4/hash.m4 (gl_HASH):
17466         * m4/idcache.m4 (gl_IDCACHE):
17467         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
17468         * m4/lchown.m4 (gl_FUNC_LCHOWN):
17469         * m4/long-options.m4 (gl_LONG_OPTIONS):
17470         * m4/lstat.m4 (gl_FUNC_LSTAT):
17471         * m4/md5.m4 (gl_MD5):
17472         * m4/memcasecmp.m4 (gl_MEMCASECMP):
17473         * m4/memcoll.m4 (gl_MEMCOLL):
17474         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
17475         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
17476         * m4/memxor.m4 (gl_MEMXOR):
17477         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
17478         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
17479         * m4/modechange.m4 (gl_MODECHANGE):
17480         * m4/mountlist.m4 (gl_MOUNTLIST):
17481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17482         * m4/openat.m4 (gl_FUNC_OPENAT):
17483         * m4/pathmax.m4 (gl_PATHMAX):
17484         * m4/physmem.m4 (gl_PHYSMEM):
17485         * m4/posixtm.m4 (gl_POSIXTM):
17486         * m4/posixver.m4 (gl_POSIXVER):
17487         * m4/quote.m4 (gl_QUOTE):
17488         * m4/quotearg.m4 (gl_QUOTEARG):
17489         * m4/readtokens.m4 (gl_READTOKENS):
17490         * m4/readutmp.m4 (gl_READUTMP):
17491         * m4/regex.m4 (gl_REGEX):
17492         * m4/safe-read.m4 (gl_SAFE_READ):
17493         * m4/safe-write.m4 (gl_SAFE_WRITE):
17494         * m4/same.m4 (gl_SAME):
17495         * m4/save-cwd.m4 (gl_SAVE_CWD):
17496         * m4/savedir.m4 (gl_SAVEDIR):
17497         * m4/settime.m4 (gl_SETTIME):
17498         * m4/sha1.m4 (gl_SHA1):
17499         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
17500         * m4/stat-macros.m4 (gl_STAT_MACROS):
17501         * m4/stat-time.m4 (gl_STAT_TIME):
17502         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
17503         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
17504         * m4/strdup.m4 (gl_FUNC_STRDUP):
17505         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
17506         * m4/strndup.m4 (gl_FUNC_STRNDUP):
17507         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
17508         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
17509         * m4/time_r.m4 (gl_TIME_R):
17510         * m4/timespec.m4 (gl_TIMESPEC):
17511         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
17512         * m4/unlinkdir.m4 (gl_UNLINKDIR):
17513         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
17514         * m4/userspec.m4 (gl_USERSPEC):
17515         * m4/utimecmp.m4 (gl_UTIMECMP):
17516         * m4/utimens.m4 (gl_UTIMENS):
17517         * m4/xalloc.m4 (gl_XALLOC):
17518         * m4/xgetcwd.m4 (gl_XGETCWD):
17519         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
17520         * m4/xreadlink.m4 (gl_XREADLINK):
17521         * m4/xstrtod.m4 (gl_XSTRTOD):
17522         * m4/yesno.m4 (gl_YESNO):
17523         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
17524         to get the necessary .h files and whatnot.
17525
17526 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
17527             Bruno Haible  <bruno@clisp.org>
17528
17529         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
17530         /bin/sh understanding of '!' conditional negation.
17531
17532 2006-08-21  Jim Meyering  <jim@meyering.net>
17533
17534         * modules/openat (Depends-on): Really alphabetize.
17535
17536         * modules/acl (Depends-on): Add error and quote.
17537
17538         * check-module (find_included_lib_files): Add at-func.c to the
17539         ok-to-include-more-than-once white list.
17540
17541         * modules/openat (Depends-on): Add lstat.  Alphabetize.
17542
17543 2006-08-21  Bruno Haible  <bruno@clisp.org>
17544
17545         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17546         Emit a pkgdata_DATA variable only if some snippets add contents to it.
17547         Reported by Martin Lambers <marlam@marlam.de>.
17548
17549 2006-08-21  Bruno Haible  <bruno@clisp.org>
17550
17551         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
17552         specify an installation location, don't emit a noinst_LIBRARIES or
17553         noinst_LTLIBRARIES assignment.
17554
17555 2006-08-21  Bruno Haible  <bruno@clisp.org>
17556
17557         BeOS portability.
17558         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
17559         BeOS has mbrtowc() but no <wctype.h>.
17560
17561 2006-08-21  Bruno Haible  <bruno@clisp.org>
17562
17563         BeOS portability.
17564         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
17565         exist.
17566
17567 2006-08-21  Bruno Haible  <bruno@clisp.org>
17568
17569         BeOS portability.
17570         * lib/mbchar.h: Include <wctype.h> only if it exists.
17571
17572 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17573
17574         Remove files that are no longer needed by their respective modules.
17575         * m4/obstack.m4: Remove.
17576         * m4/strerror_r.m4: Remove.
17577         * m4/uint32_t.m4: Remove.
17578         * m4/uintptr_t.m4: Remove.
17579         * m4/ullong_max.m4: Remove.
17580         * m4/xstrtoimax.m4: Remove.
17581         * m4/xstrtoumax.m4: Remove.
17582
17583         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
17584         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
17585         dependencies now capture this.
17586
17587         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
17588         Do not use AC_LIBSOURCES, since gnulib modules now do this.
17589         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
17590         * m4/human.m4 (gl_HUMAN): Likewise.
17591         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
17592         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
17593
17594         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
17595
17596         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
17597         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
17598         stdint.
17599         * m4/human.m4 (gl_HUMAN): Likewise.
17600         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
17601         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
17602         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
17603         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
17604         * m4/xstrtol (gl_XSTRTOL): Likewise.
17605
17606         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
17607         AC_TYPE_LONG_LONG_INT.
17608         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
17609         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
17610         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
17611         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
17612
17613         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
17614         on stdbool.
17615
17616         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
17617         (gl_PREREQ_XSTRTOUL): Remove.
17618
17619         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
17620
17621         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
17622         mode.
17623
17624 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17625
17626         Add and change modules to make it easier for coreutils to use
17627         gnulib-tool.
17628         * modules/backupfile (Files): Remove m4/d-ino.m4.
17629         (Depends-on): Add d-ino.
17630         * modules/cycle-check (Depends-on): Add stdint.
17631         (lib_SOURCES): Add cycle-check.h.
17632         * modules/d-ino: New module.
17633         * modules/d-type: New module.
17634         * modules/error (Files): Remove m4/strerror_r.m4.
17635         * modules/filemode (Files): Add m4/st_dm_mode.m4.
17636         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
17637         m4/inttypes_h.m4, m4/uintmax_t.m4.
17638         (Depends-on): Add stdint.
17639         (lib_SOURCES): Add fsusage.h.
17640         * modules/getcwd (Files): Remove d-ino.m4.
17641         (Depends-on): Add d-ino.
17642         * modules/getndelim2 (Depends-on): Add stdint.
17643         * modules/glob (Files): Remove m4/d-type.m4.
17644         (Depends-on): Add d-type.
17645         * modules/host-os: New module.
17646         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
17647         m4/inttypes_h.m4, m4/uintmax_t.m4.
17648         * Depends-on: Add stdint.
17649         (lib_SOURCES): Add human.h.
17650         * modules/inttostr (Files): Remove m4/intmax_t.m4,
17651         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
17652         m4/uintmax_t.m4, m4/ulonglong.m4.
17653         (Depends-on): Add stdint.
17654         (EXTRA_DIST): Add inttostr.h.
17655         * modules/lchmod: New module.
17656         * modules/link-follow: New module.
17657         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
17658         (Depends-on): Add lchmod.
17659         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
17660         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
17661         (Depends-on): Add stdint.
17662         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
17663         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
17664         (Depends-on): Add stdint.
17665         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
17666         * modules/perl: New module.
17667         * modules/regex (Depends-on): Add stdint.
17668         * modules/rmdir-errno: New module.
17669         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
17670         m4/intmax_t.m4.
17671         (Depends-on): Add stdint.
17672         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
17673         m4/uintmax_t.m4.
17674         (Depends-on): Add stdint.
17675         * modules/unlink-busy: New module.
17676         * modules/utimecmp (Depends-on): Add stdint.
17677         * modules/uptime: New module.
17678         * modules/winsz-ioctl: New module.
17679         * modules/winsz-termios: New module.
17680         * modules/xnanosleep (Depends-on): Add nanosleep.
17681         * modules/ullong_max: Remove.
17682         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
17683         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
17684         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
17685         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
17686         (Depends-on): Add inttypes.
17687         (lib_SOURCES): Add xstrtol.h.
17688         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
17689         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
17690         * MODULES.html.sh: Move 'assert' into the assert section.
17691         Move 'dummy' into the linking section.
17692         Remove ullong_max.
17693         Add section for compatibility checks for POSIX:2001 functions,
17694         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
17695         winsz-ioctl, and winsz-termios into it.
17696         Add lchmod.
17697         Add top-level Misc section and put host-os, perl, and uptime
17698         into it.
17699
17700 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17701
17702         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
17703         now assume the stdint module.  Do not include inttypes.h.
17704         * lib/fsusage.h: Likewise.
17705         * lib/getndelim2.c: Likewise.
17706         * lib/human.h: Likewise.
17707         * lib/inttostr.h: Likewise.
17708         * lib/obstack.c: Likewise.
17709         * lib/regex_internal.h: Likewise.
17710         * lib/tempname.c: Likewise.
17711         * lib/utimecmp.c: Likewise.
17712         * lib/xstrtol.h: Likewise.
17713
17714         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
17715
17716         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
17717         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
17718         * lib/xtime.h: Likewise.
17719
17720 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17721
17722         * modules/openat (Files): Add lib/fchmodat.c.
17723         Fixes problem reported by Jay Youngman.
17724
17725 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17726
17727         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
17728         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
17729
17730 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17731             Bruno Haible  <bruno@clisp.org>
17732
17733         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
17734         and is a script that invokes bison. Tighten the code. Add comments.
17735
17736 2006-08-18  Jim Meyering  <jim@meyering.net>
17737
17738         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
17739         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
17740         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
17741         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
17742
17743 2006-08-18  Bruno Haible  <bruno@clisp.org>
17744
17745         * modules/bison-i18n: New file.
17746         * MODULES.html.sh (Internationalization functions): Add it.
17747
17748 2006-08-18  Bruno Haible  <bruno@clisp.org>
17749
17750         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
17751         sys/statvfs.h. When getmntinfo was found, check its declaration and
17752         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
17753
17754 2006-08-18  Bruno Haible  <bruno@clisp.org>
17755
17756         * m4/bison-i18n.m4: New file, from bison.
17757
17758 2006-08-18  Bruno Haible  <bruno@clisp.org>
17759
17760         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
17761         (ME_DUMMY): Treat "kernfs" as a dummy.
17762         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
17763
17764 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17765
17766         Update from coreutils.
17767
17768         2006-08-15  Jim Meyering  <jim@meyering.net>
17769
17770         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
17771
17772         2006-01-17  Jim Meyering  <jim@meyering.net>
17773
17774         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
17775
17776         2006-01-11  Jim Meyering  <jim@meyering.net>
17777
17778         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
17779         Check for the lchmod function.
17780
17781 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17782
17783         Update from coreutils.
17784
17785         * lib/__fpending.h: Add copyright notice.
17786         * lib/fprintftime.h: Likewise.
17787         * lib/savedir.c: Use (C) in copyright notice.
17788         * lib/savedir.h: Likewise.
17789
17790         2006-08-15  Jim Meyering  <jim@meyering.net>
17791
17792         * lib/at-func.c: New file, with the logic of all emulated at-functions.
17793         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
17794         in support of the EXPECTED_ERRNO macro.
17795         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
17796         definitions.  Instead, define the appropriate symbols and include
17797         "at-func.c".
17798         * lib/mkdirat.c (mkdirat): Likewise.
17799         * lib/fchmodat.c (fchmodat): Likewise.
17800         (ENOSYS): Remove definition.
17801         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
17802         it.  Don't include "unistd--.h" -- it wasn't ever used.
17803
17804         2006-01-17  Jim Meyering  <jim@meyering.net>
17805
17806         Rewrite fts.c not to change the current working directory,
17807         by using openat, fstatat, fdopendir, etc..
17808
17809         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
17810         (HAVE_OPENAT_SUPPORT): Define.
17811         [_LIBC] (fchdir): Don't undef or define; no longer used.
17812         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
17813         Now, this `function' always succeeds, and consumes its file descriptor
17814         parameter -- so callers must not close such FDs.  Update callers.
17815         (diropen_fd, opendirat, cwd_advance_fd): New functions.
17816         (diropen): Add parameter, SP.  Adjust all callers.
17817         Implement using diropen_fd, rather than open.
17818         (fts_open): Initialize new member, fts_cwd_fd.
17819         Remove fts_rft-setting code.
17820         (fts_close): Close fts_cwd_fd, if necessary.
17821         (__opendir2): Define in terms of opendir or opendirat,
17822         depending on whether the FST_NOCHDIR flag is set.
17823         (fts_build): Since fts_safe_changedir consumes its FD, and since
17824         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
17825         and close the dup'd file descriptor upon failure.
17826         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
17827         (fts_safe_changedir): Tweak semantics to reflect that this function
17828         now calls cwd_advance_fd and hence consumes its FD argument.
17829         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
17830         [struct FTS] (fts_rft): Remove now-unused member.
17831         [struct FTS] (fts_cycle.state): Improve comment.
17832
17833         * lib/openat.c (openat_needs_fchdir): New function.
17834         * lib/openat.h (openat_needs_fchdir): Declare it.
17835
17836 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17837
17838         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
17839         Problem and fix reported by Pádraig Brady in
17840         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
17841
17842 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17843
17844         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
17845
17846 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17847
17848         * lib/memcoll.c (memcoll): Optimize for the common case where the
17849         arguments are bytewise equal.
17850
17851 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17852
17853         * doc/regexprops-generic.texi: Add a copyright notice.
17854
17855 2006-08-15  Bruno Haible  <bruno@clisp.org>
17856
17857         * modules/tmpdir (License): Change to LGPL.
17858
17859 2006-08-15  Bruno Haible  <bruno@clisp.org>
17860
17861         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
17862         module.
17863
17864 2006-08-14  Simon Josefsson  <jas@extundo.com>
17865
17866         * config/srclist.txt: Add gnupload.
17867
17868 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17869
17870         Change copyright notice from LGPL 2 to GPL 2, since that's the
17871         standard form used in the gnulib repository.
17872         * tests/test-lock.c: Likewise.
17873         * tests/test-stdint.c: Likewise.
17874         * tests/test-tls.c: Likewise.
17875
17876         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
17877         prelude-manager.  User shorter URLs for GNU projects, without '?'.
17878         Add copyright notice.
17879
17880         * check-module: Add copyright notice.  Output a copyright
17881         notice if "--version" is specified.
17882         * modules/COPYING: New file.
17883         * tests/test-getaddrinfo.c: Add copyright notice.
17884         * tests/test-verify.c: Likewise.
17885
17886 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17887
17888         Change copyright notice from LGPL 2 to GPL 2, since that's the
17889         standard form used in the gnulib repository.
17890         * lib/lock.c: LGPL -> GPL.
17891         * lib/lock.h: Likewise.
17892         * lib/strnlen1.c: Likewise.
17893         * lib/strnlen1.h: Likewise.
17894         * lib/tls.c: Likewise.
17895         * lib/tls.h: Likewise.
17896         * lib/tmpdir.c: Likewise.
17897
17898         * lib/TODO: Remove; this belongs only in coreutils.
17899
17900 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17901
17902         Add copyright notices to long-enough files that lack them, since
17903         otherwise the files aren't clearly free.  Use the same notice that
17904         getdate.texi already uses.
17905         * doc/alloca-opt.texi: Add copyright notice.
17906         * doc/alloca.texi: Likewise.
17907         * doc/ctime.texi: Likewise.
17908         * doc/functions.texi: Likewise.
17909         * doc/gcd.texi: Likewise.
17910         * doc/gnulib-tool.texi: Likewise.
17911         * doc/inet_ntoa.texi: Likewise.
17912         * doc/visibility.texi: Likewise.
17913
17914         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
17915         * doc/quote.texi: Add copyright notice.
17916
17917         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
17918         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
17919         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
17920         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
17921         is now obsolete, and give a pointer to the Sun list.
17922         Add copyright notice.
17923
17924 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17925
17926         * config/srclistvars.sh: Add copyright notice.
17927
17928 2006-08-14  Eric Blake  <ebb9@byu.net>
17929
17930         Import the following change from libc:
17931
17932         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
17933
17934         Upstream bug 2997.
17935         * lib/misc/error.c: Add space between program name and message if file
17936         name is missing.
17937
17938 2006-08-12  Karl Berry  <karl@gnu.org>
17939
17940         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
17941         remove, these originate in gnulib now.
17942
17943 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17944
17945         * doc/Makefile (standards.info standards.html standards.dvi):
17946         Also depend on make-stds.texi.
17947
17948 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17949
17950         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
17951         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
17952
17953         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
17954         in wchar_t.  Problem reported by Eric Blake.
17955
17956         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
17957         LEN is smaller than SIZE.  Suggested by Bruno Haible.
17958         Also, help the compiler to keep LEN in a register.
17959
17960 2006-08-11  Eric Blake  <ebb9@byu.net>
17961
17962         * users.txt: Sort.  Add tar.
17963
17964 2006-08-11  Bruno Haible  <bruno@clisp.org>
17965
17966         * users.txt: New file.
17967
17968 2006-08-11  Bruno Haible  <bruno@clisp.org>
17969
17970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
17971         before <wchar.h>. Needed for OSF/1 and BSD/OS.
17972
17973 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17974
17975         * modules/snprintf (Depends-on): Remove minmax.
17976         (Maintainer): Add self and Bruno.
17977
17978 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17979
17980         * lib/.cppi-disable: Add snprintf.h, socket_.h.
17981         * lib/snprintf.c: Include <errno.h> and <limits.h>.
17982         (EOVERFLOW): Define if the system does not.
17983         Do not include "minmax.h"; it wasn't used.
17984         (snprintf): Don't assume size_t promotes to an unsigned type.
17985         Fix bug when generated string was too long for the buffer: the
17986         buffer's contents are supposed to be the initial prefix of the
17987         output.  Don't assume vasnprintf returns EOVERFLOW if the size
17988         exceeds INT_MAX; do the check ourselves.
17989
17990         Import the following changes from libc:
17991
17992         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
17993
17994         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
17995         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
17996         set wc to the byte which couldn't be converted.
17997         (re_string_reconstruct): Don't clear valid_raw_len before calling
17998         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
17999         tip_context using re_string_context_at.
18000
18001         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
18002
18003         * lib/posix/regex.h: g++ still cannot handled [restrict].
18004
18005         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
18006
18007         * lib/posix/regex.h: Remove special handling for VMS.
18008
18009 2006-08-10  Jim Meyering  <jim@meyering.net>
18010
18011         * modules/same-inode: New module.
18012         * modules/dev-ino: New module.
18013         * modules/cycle-check: Depend on these modules, rather than simply
18014         including their .h files.
18015         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
18016         required via m4/cycle-check.m4.
18017         * modules/same: Depend on new same-inode module, rather than
18018         including same-inode.h.
18019         * modules/chdir-safer: New file.
18020
18021         * modules/chown (Depends-on): Add stat-macros.
18022
18023 2006-08-10  Jim Meyering  <jim@meyering.net>
18024
18025         * m4/cycle-check.m4: New file.
18026         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
18027         * m4/dev-ino.m4, m4/same-inode.m4: New files.
18028
18029 2006-08-10  Eric Blake  <ebb9@byu.net>
18030
18031         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
18032         in from original proposal.
18033
18034 2006-08-10  Eric Blake  <ebb9@byu.net>
18035         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18036
18037         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
18038         namespace.
18039
18040 2006-08-10  Bruno Haible  <bruno@clisp.org>
18041
18042         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
18043         as well.
18044
18045 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18046
18047         Sync from coreutils.
18048
18049         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
18050
18051         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
18052         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
18053
18054 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18055
18056         * modules/restrict: Remove; no longer needed now that we assume
18057         Autoconf 2.59 or later.
18058         * MODULES.html.sh: Remove 'restrict'.
18059         * modules/argp (Depends-on): Remove 'restrict'.
18060         * modules/base64 (Depends-on): Likewise.
18061         * modules/gc (Depends-on): Likewise.
18062         * modules/getaddrinfo (Depends-on): Likewise.
18063         * modules/glob (Depends-on): Likewise.
18064         * modules/inet_ntop (Depends-on): Likewise.
18065         * modules/inet_pton (Depends-on): Likewise.
18066         * modules/memxor (Depends-on): Likewise.
18067         * modules/regex (Depends-on): Likewise.
18068         * modules/strtok_r (Depends-on): Likewise.
18069         * modules/time_r (Depends-on): Likewise.
18070
18071 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18072
18073         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
18074         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
18075         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
18076         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
18077         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18078         * m4/memxor.m4 (gl_MEMXOR): Likewise.
18079         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
18080         gl_C_RESTRICT replaced by AC_C_RESTRICT.
18081
18082         Merge from coreutils.
18083         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
18084         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
18085         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18086         * m4/time_r.m4 (gl_TIME_R): Likewise.
18087
18088 2006-08-09  Karl Berry  <karl@gnu.org>
18089
18090         * config/srclist.txt: no more gettext-tools, per Bruno.
18091
18092 2006-08-08  Eric Blake  <ebb9@byu.net>
18093
18094         * modules/verror: New module.
18095         * MODULES.html.sh: Document it.
18096
18097 2006-08-08  Eric Blake  <ebb9@byu.net>
18098
18099         * lib/verror.h, lib/verror.c: New files.
18100
18101 2006-08-08  Eric Blake  <ebb9@byu.net>
18102
18103         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
18104         verror_at_line output complies with GNU Coding Standards even when
18105         file is NULL.
18106
18107 2006-08-07  Bruno Haible  <bruno@clisp.org>
18108
18109         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
18110         versions of AIX.
18111         Reported by Ralf Wildenhues.
18112
18113 2006-08-07  Bruno Haible  <bruno@clisp.org>
18114
18115         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
18116         in an AC_DEFUN. Needed so that the autoconf snippets can use
18117         AC_REQUIRE.
18118
18119 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18120
18121         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18122         Initialize pkgdata_DATA.
18123         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
18124         overriding it.
18125
18126 2006-08-06  Eric Blake  <ebb9@byu.net>
18127
18128         * lib/error.h: Fold in some upstream changes from glibc.
18129         * lib/error.c: Likewise.
18130
18131 2006-08-04  Bruno Haible  <bruno@clisp.org>
18132
18133         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18134         Make the mostlyclean-local rule depend on mostlyclean-generic.
18135         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
18136
18137 2006-07-31  Bruno Haible  <bruno@clisp.org>
18138
18139         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
18140         <stdlib.h>, <string.h>.
18141
18142 2006-07-30  Bruno Haible  <bruno@clisp.org>
18143
18144         * modules/readlink (License): Change to LGPL.
18145
18146 2006-07-30  Bruno Haible  <bruno@clisp.org>
18147
18148         * modules/javaversion (Makefile.am): Distribute javaversion.java and
18149         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
18150         set PKGDATADIR to point to it.
18151
18152 2006-07-30  Bruno Haible  <bruno@clisp.org>
18153
18154         * modules/csharpexec (configure.ac): Comment out macro invocation.
18155         * modules/javaexec (configure.ac): Likewise.
18156         * modules/javacomp-script (configure.ac): Likewise.
18157
18158         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
18159
18160 2006-07-30  Bruno Haible  <bruno@clisp.org>
18161
18162         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
18163         linked-list.
18164
18165 2006-07-30  Bruno Haible  <bruno@clisp.org>
18166
18167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
18168
18169 2006-07-30  Bruno Haible  <bruno@clisp.org>
18170
18171         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18172         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
18173         get removed.
18174
18175 2006-07-29  Bruno Haible  <bruno@clisp.org>
18176
18177         Make it possible for gnulib-tool to work with locally modified or
18178         augmented gnulib repositories.
18179         * gnulib-tool (func_usage): Document --local-dir option.
18180         (local_gnulib_dir): New variable.
18181         Handle --local-dir option.
18182         (func_lookup_file): New function.
18183         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
18184         (func_get_description, func_get_filelist, func_get_description,
18185         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
18186         func_get_automake_snippet, func_get_include_directive,
18187         func_get_license, func_get_maintainer): Use func_lookup_file.
18188         (func_import, func_create_testdir): Use func_lookup_file.
18189
18190 2006-07-29  Bruno Haible  <bruno@clisp.org>
18191
18192         * modules/setenv (Depends-on): Add unistd.
18193
18194 2006-07-29  Bruno Haible  <bruno@clisp.org>
18195
18196         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
18197
18198 2006-07-29  Bruno Haible  <bruno@clisp.org>
18199
18200         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
18201
18202 2006-07-29  Bruno Haible  <bruno@clisp.org>
18203
18204         * gnulib-tool (import, update): If there is no Makefile.am, look at
18205         aclocal.m4, instead of bailing out.
18206
18207 2006-07-29  Bruno Haible  <bruno@clisp.org>
18208
18209         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
18210         Categorize the options by when they are useful.
18211
18212 2006-07-29  Bruno Haible  <bruno@clisp.org>
18213
18214         * gnulib-tool (func_usage): Document option --no-libtool.
18215         Handle option --no-libtool.
18216         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
18217         for changed semantics of $libtool variable.
18218         (func_import): Likewise. If libtool is not used, show this through
18219         an option --no-libtool.
18220         (func_create_testdir): Update.
18221
18222 2006-07-29  Bruno Haible  <bruno@clisp.org>
18223
18224         * gnulib-tool (func_import): Extend error message about missing
18225         --doc-base.
18226
18227 2006-07-29  Bruno Haible  <bruno@clisp.org>
18228
18229         * gnulib-tool (func_import): Don't create the $docbase directory if
18230         there is no file to store there.
18231
18232 2006-07-29  Bruno Haible  <bruno@clisp.org>
18233
18234         * gnulib-tool (autoconf_minversion): If a --dir option is given and
18235         relevant, look for configure.ac there, not in the current directory.
18236         Also use a simple search for AC_PREREQ, not "autoconf --trace".
18237
18238 2006-07-29  Bruno Haible  <bruno@clisp.org>
18239
18240         * gnulib-tool (SORT): New variable.
18241         (func_usage): Undocument --assume-autoconf option.
18242         Remove --assume-autoconf option handling.
18243         (autoconf_minversion): Determine from the contents of configure.ac.
18244         (func_import): Remove autoconf_minversion handling.
18245         Suggested by Eric Blake.
18246
18247 2006-07-29  Bruno Haible  <bruno@clisp.org>
18248
18249         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
18250
18251 2006-07-29  Bruno Haible  <bruno@clisp.org>
18252
18253         * config/srclist.txt (*setenv.[ch]): Remove rules.
18254
18255 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18256
18257         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
18258
18259 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18260
18261         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
18262         arpa/inet.h.
18263
18264 2006-07-28  Simon Josefsson  <jas@extundo.com>
18265
18266         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
18267         * modules/inet_pton (Depends-on): Likewise.
18268
18269 2006-07-28  Simon Josefsson  <jas@extundo.com>
18270
18271         * m4/netinet_in_h.m4: New file.
18272
18273 2006-07-28  Simon Josefsson  <jas@extundo.com>
18274
18275         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
18276         #include's.
18277
18278 2006-07-28  Simon Josefsson  <jas@extundo.com>
18279
18280         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
18281         #include's.
18282
18283 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
18284
18285         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
18286         setgid on directories only if they set these bits.
18287         * lib/modechange.h: Remove obsolete comment about masks.
18288
18289 2006-07-28  Eric Blake  <ebb9@byu.net>
18290
18291         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
18292         macro expansion.
18293
18294 2006-07-28  Bruno Haible  <bruno@clisp.org>
18295
18296         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
18297
18298 2006-07-28  Bruno Haible  <bruno@clisp.org>
18299
18300         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
18301
18302 2006-07-28  Bruno Haible  <bruno@clisp.org>
18303
18304         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
18305         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
18306         Define fallbacks.
18307         Avoids link error on FreeBSD 4.x.
18308         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18309
18310         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
18311         encoding.
18312         * lib/mbswidth.c (iswcntrl): Likewise.
18313
18314 2006-07-27  Bruno Haible  <bruno@clisp.org>
18315
18316         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
18317         test.
18318
18319 2006-07-27  Bruno Haible  <bruno@clisp.org>
18320
18321         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
18322         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
18323         defined.
18324
18325 2006-07-26  Eric Blake  <ebb9@byu.net>
18326
18327         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
18328
18329 2006-07-26  Eric Blake  <ebb9@byu.net>
18330
18331         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
18332         like mingw that lack mkstemp.
18333         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
18334         avoid compilation warning on mingw.
18335
18336 2006-07-26  Bruno Haible  <bruno@clisp.org>
18337
18338         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
18339         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
18340         INT_FAST*_MIN, INTPTR_MIN.
18341
18342 2006-07-25  Bruno Haible  <bruno@clisp.org>
18343
18344         * modules/version-etc (Depends-on): Add stdarg.
18345
18346 2006-07-25  Bruno Haible  <bruno@clisp.org>
18347
18348         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
18349         complex commands.
18350
18351 2006-07-25  Bruno Haible  <bruno@clisp.org>
18352
18353         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
18354         defined in <stdarg.h> or config.h.
18355
18356 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18357
18358         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
18359         (gl_STDIO_SAFER): Remove.
18360
18361 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18362
18363         * MODULES.html.sh (File stream based Input/Output):
18364         Add fopen-safer, tmpfile-safer; remove stdio-safer.
18365         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
18366         * modules/fopen-safer, modules/tmpfile-safer: New files.
18367         * modules/stdio-safer: Remove.
18368
18369 2006-07-24  Bruno Haible  <bruno@clisp.org>
18370
18371         * modules/tmpdir: New file.
18372         * MODULES.html.sh (File system functions): Add it.
18373
18374 2006-07-24  Bruno Haible  <bruno@clisp.org>
18375
18376         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
18377         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
18378
18379 2006-07-24  Bruno Haible  <bruno@clisp.org>
18380
18381         * modules/clean-temp: New file.
18382
18383 2006-07-24  Bruno Haible  <bruno@clisp.org>
18384
18385         * m4/tmpdir.m4: New file, from GNU gettext.
18386
18387 2006-07-24  Bruno Haible  <bruno@clisp.org>
18388
18389         * lib/tmpdir.h: New file, from GNU gettext.
18390         * lib/tmpdir.c: New file, from GNU gettext.
18391
18392 2006-07-24  Bruno Haible  <bruno@clisp.org>
18393
18394         * lib/clean-temp.h: New file, from GNU gettext.
18395         * lib/clean-temp.c: New file, from GNU gettext.
18396
18397 2006-07-23  Eric Blake  <ebb9@byu.net>
18398
18399         * modules/stdio-safer (Files): Add tmpfile-safer.c.
18400         (Depends-on): Add binary-io.
18401
18402 2006-07-23  Eric Blake  <ebb9@byu.net>
18403
18404         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
18405
18406 2006-07-23  Eric Blake  <ebb9@byu.net>
18407
18408         * lib/tmpfile-safer.c: New file.
18409         * lib/stdio-safer.h (fopen_safer): Add prototype.
18410         * lib/stdio--.h (tmpfile): Make safer.
18411
18412 2006-07-23  Bruno Haible  <bruno@clisp.org>
18413
18414         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
18415         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
18416         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
18417         gl_linked_remove_at): Use it.
18418
18419 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18420         and Simon Josefsson <jas@extundo.com>
18421
18422         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
18423
18424         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
18425
18426 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18427
18428         * modules/close-stream: New file.
18429         * modules/closeout (Description): Make it clear that it exits
18430         with a diagnostic on error.
18431         (Depends-on): Add close-stream.  Remove fpending, stdbool.
18432         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
18433
18434 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18435
18436         * m4/close-stream.m4: New file.
18437
18438 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18439
18440         * lib/close-stream.c, lib/close-stream.h: New files.
18441
18442 2006-07-22  Bruno Haible  <bruno@clisp.org>
18443
18444         Merge from GNU gettext 0.15.
18445
18446         2006-05-01  Bruno Haible  <bruno@clisp.org>
18447
18448                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
18449
18450         2006-07-22  Bruno Haible  <bruno@clisp.org>
18451
18452                 * modules/javaversion: New file.
18453                 * MODULES.html.sh (Java): Add javaversion.
18454
18455         2006-03-12  Bruno Haible  <bruno@clisp.org>
18456
18457                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
18458
18459         2005-12-04  Bruno Haible  <bruno@clisp.org>
18460
18461                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
18462                 (untested).
18463
18464         2006-06-21  Bruno Haible  <bruno@clisp.org>
18465
18466                 Avoid warnings from recent versions of mcs.
18467                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
18468                 -o, -L, -r any more. Use options documented since mcs-1.0
18469                 instead. Similarly for -g.
18470
18471         2005-12-04  Bruno Haible  <bruno@clisp.org>
18472
18473                 * build-aux/csharpcomp.sh.in: Suffix for resources is
18474                 .resources, not .resource.
18475
18476         2005-07-09  Bruno Haible  <bruno@clisp.org>
18477
18478                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
18479                 add a .dll suffix.
18480                 Reported by Mark Junker <mjscod@gmx.de>.
18481
18482         2006-07-22  Bruno Haible  <bruno@clisp.org>
18483
18484                 * modules/gettext: Upgrade to gettext-0.15.
18485                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
18486                 m4/visibility.m4.
18487                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
18488
18489 2006-07-22  Bruno Haible  <bruno@clisp.org>
18490
18491         Merge from GNU gettext 0.15.
18492
18493         2006-03-25  Bruno Haible  <bruno@clisp.org>
18494
18495                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
18496
18497         2006-07-21  Bruno Haible  <bruno@clisp.org>
18498
18499                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
18500                 "1.1".
18501
18502         2006-05-09  Bruno Haible  <bruno@clisp.org>
18503
18504                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
18505                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
18506                 for the conftestver execution.
18507
18508         2006-05-01  Bruno Haible  <bruno@clisp.org>
18509
18510                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
18511                 optional target-version argument. Verify that the compiler
18512                 groks source of the specified source-version, or add -source
18513                 option as necessary. Verify that the compiler produces
18514                 bytecode in the specified target-version, or add -target and
18515                 -source options as necessary. Make the result of the test
18516                 available as variable CONF_JAVAC. Also log error output in
18517                 config.log.
18518
18519         2006-03-11  Bruno Haible  <bruno@clisp.org>
18520
18521                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
18522
18523         2006-05-09  Bruno Haible  <bruno@clisp.org>
18524
18525                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
18526                 CLASSPATH_SEPARATOR to a semicolon.
18527
18528         2006-03-12  Bruno Haible  <bruno@clisp.org>
18529
18530                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
18531                 available as variable CONF_JAVA, for subsequent autoconf
18532                 tests. Also log error output in config.log.
18533
18534         2006-07-19  Bruno Haible  <bruno@clisp.org>
18535
18536                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
18537                 that getline works on glibc2 systems. Needed to avoid trouble
18538                 in relocatable.c.
18539                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
18540
18541         2005-12-04  Bruno Haible  <bruno@clisp.org>
18542
18543                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
18544                 launcher (untested).
18545
18546         2005-12-04  Bruno Haible  <bruno@clisp.org>
18547
18548                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
18549
18550         2006-07-22  Bruno Haible  <bruno@clisp.org>
18551
18552                 * gettext.m4: Update from GNU gettext-0.15.
18553                 * nls.m4: Likewise.
18554                 * po.m4: Likewise.
18555                 * inttypes-pri.m4: Likewise.
18556                 * inttypes-h.m4: Renamed from inttypes.m4.
18557                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
18558
18559 2006-07-22  Bruno Haible  <bruno@clisp.org>
18560
18561         Merge from GNU gettext 0.15.
18562
18563         2005-07-05  Bruno Haible  <bruno@clisp.org>
18564
18565                 * printf-args.c (printf_fetchargs): Work around broken
18566                 definition of wint_t on mingw.
18567
18568         2005-02-12  Bruno Haible  <bruno@clisp.org>
18569
18570                 * xallocsa.h: Add extern "C" for C++.
18571
18572         2006-05-17  Bruno Haible  <bruno@clisp.org>
18573
18574                 Cygwin portability.
18575                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
18576
18577         2006-04-30  Bruno Haible  <bruno@clisp.org>
18578
18579                 * progreloc.c: Include <mach-o/dyld.h> if available.
18580                 (find_executable): Use _NSGetExecutablePath when possible.
18581
18582         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
18583
18584                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
18585                 function.
18586
18587         2005-12-29  Bruno Haible  <bruno@clisp.org>
18588
18589                 * progreloc.c (set_program_name_and_installdir): Fix
18590                 compilation error.
18591
18592         2005-12-04  Bruno Haible  <bruno@clisp.org>
18593
18594                 Cygwin portability.
18595                 * progreloc.c: Include <windows.h> also on Cygwin.
18596                 (find_executable): Add support for Cygwin.
18597                 (set_program_name_and_installdir): Handle also platforms with
18598                 nonempty EXEEXT.
18599
18600         2006-07-11  Bruno Haible  <bruno@clisp.org>
18601
18602                 * javacomp.c: Fix a comment.
18603                 Reported by Jim Meyering.
18604
18605         2006-04-30  Bruno Haible  <bruno@clisp.org>
18606
18607                 * javacomp.h (compile_java_class): Add source_version,
18608                 target_version arguments.
18609                 * javacomp.c: Rewritten to choose only a compiler that
18610                 respects the specified source_version and target_version.
18611
18612         2006-06-27  Bruno Haible  <bruno@clisp.org>
18613
18614                 Assume correct S_ISDIR macro.
18615                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
18616
18617         2006-07-22  Bruno Haible  <bruno@clisp.org>
18618
18619                 * javaversion.h: New file, from GNU gettext.
18620                 * javaversion.c: New file, from GNU gettext.
18621                 * javaversion.java: New file, from GNU gettext.
18622                 * javaversion.class: New file, from GNU gettext.
18623
18624         2006-05-17  Bruno Haible  <bruno@clisp.org>
18625
18626                 Cygwin portability.
18627                 * javaexec.c (execute_java_class): Test for jview program
18628                 also on Cygwin.
18629
18630         2006-04-09  Bruno Haible  <bruno@clisp.org>
18631
18632                 * fatal-signal.c: Don't include string.h.
18633                 (at_fatal_signal): Use a copying loop instead of memcpy.
18634
18635         2005-12-04  Bruno Haible  <bruno@clisp.org>
18636
18637                 * csharpexec.c: Add support for 'clix' launcher (untested).
18638                 (execute_csharp_using_sscli): New function.
18639                 (execute_csharp_program): Call it.
18640
18641         2006-06-21  Bruno Haible  <bruno@clisp.org>
18642
18643                 Avoid warnings from recent versions of mcs.
18644                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
18645                 -o, -L, -r any more. Use options documented since mcs-1.0
18646                 instead. Similarly for -g.
18647
18648         2005-07-09  Bruno Haible  <bruno@clisp.org>
18649
18650                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
18651                 add a .dll suffix.
18652                 Reported by Mark Junker <mjscod@gmx.de>.
18653
18654         2006-06-17  Bruno Haible  <bruno@clisp.org>
18655
18656                 * config.charset: Update for NetBSD 3.0.
18657
18658         2006-05-17  Bruno Haible  <bruno@clisp.org>
18659
18660                 Cygwin portability.
18661                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
18662
18663         2006-05-16  Bruno Haible  <bruno@clisp.org>
18664
18665                 * localcharset.c [CYGWIN]: Include <windows.h>.
18666                 (get_charset_aliases): For Cygwin, return the same CPxxx
18667                 aliases list as under WIN32.
18668                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
18669                 the environment variables. Fall back to GetACP().
18670
18671         2006-04-05  Bruno Haible  <bruno@clisp.org>
18672
18673                 * config.charset: Update Juan Manuel Guerrero's address.
18674
18675         2005-02-12  Bruno Haible  <bruno@clisp.org>
18676
18677                 * allocsa.h: Add extern "C" for C++.
18678
18679         2005-02-10  Bruno Haible  <bruno@clisp.org>
18680
18681                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
18682                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
18683
18684         2006-07-22  Bruno Haible  <bruno@clisp.org>
18685
18686                 * gettext.h: Update to GNU gettext-0.15.
18687
18688 2006-07-22  Bruno Haible  <bruno@clisp.org>
18689
18690         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
18691         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
18692         lib-prefix.m4, longdouble.m4, ssize_t.m4.
18693
18694 2006-07-21  Eric Blake  <ebb9@byu.net>
18695
18696         * modules/stdlib-safer: New file.
18697         * MODULES.html.sh (File stream based Input/Output): Add
18698         stdlib-safer.
18699
18700 2006-07-21  Eric Blake  <ebb9@byu.net>
18701
18702         * lib/stdlib-safer.h: New file from coreutils, required by
18703         stdlib--.h.
18704
18705 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
18706
18707         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
18708
18709 2006-07-20  Bruno Haible  <bruno@clisp.org>
18710
18711         * gnulib-tool: Recognize new option --assume-autoconf.
18712         (autoconf_minversion): New variable.
18713         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
18714
18715 2006-07-20  Bruno Haible  <bruno@clisp.org>
18716
18717         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
18718
18719 2006-07-19  Derek R. Price  <derek@ximbiot.com>
18720
18721         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
18722         Reindent and repaginate.
18723
18724 2006-07-19  Derek Price  <derek@ximbiot.com>
18725
18726         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
18727         Correct grammar.
18728
18729 2006-07-17  Bruno Haible  <bruno@clisp.org>
18730
18731         * modules/list: New file.
18732         * modules/array-list: New file.
18733         * modules/carray-list, modules/carray-list-tests: New files.
18734         * modules/linked-list, modules/linked-list-tests: New files.
18735         * modules/avltree-list, modules/avltree-list-tests: New files.
18736         * modules/rbtree-list, modules/rbtree-list-tests: New files.
18737         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
18738         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
18739         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
18740         * modules/oset: New file.
18741         * modules/array-oset: New file.
18742         * modules/avltree-oset, modules/avltree-oset-tests: New files.
18743         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
18744         * tests/test-carray_list.c: New file.
18745         * tests/test-linked_list.c: New file.
18746         * tests/test-avltree_list.c: New file.
18747         * tests/test-rbtree_list.c: New file.
18748         * tests/test-linkedhash_list.c: New file.
18749         * tests/test-avltreehash_list.c: New file.
18750         * tests/test-rbtreehash_list.c: New file.
18751         * tests/test-avltree_oset.c: New file.
18752         * tests/test-rbtree_oset.c: New file.
18753         * MODULES.html.sh (Container data structures): New section.
18754
18755 2006-07-17  Bruno Haible  <bruno@clisp.org>
18756
18757         * m4/gl_list.m4: New file.
18758
18759 2006-07-17  Bruno Haible  <bruno@clisp.org>
18760
18761         * lib/gl_list.h: New file.
18762         * lib/gl_list.c: New file.
18763         * lib/gl_array_list.h: New file.
18764         * lib/gl_array_list.c: New file.
18765         * lib/gl_carray_list.h: New file.
18766         * lib/gl_carray_list.c: New file.
18767         * lib/gl_linked_list.h: New file.
18768         * lib/gl_linked_list.c: New file.
18769         * lib/gl_anylinked_list1.h: New file.
18770         * lib/gl_anylinked_list2.h: New file.
18771         * lib/gl_avltree_list.h: New file.
18772         * lib/gl_avltree_list.c: New file.
18773         * lib/gl_anyavltree_list1.h: New file.
18774         * lib/gl_anyavltree_list2.h: New file.
18775         * lib/gl_rbtree_list.h: New file.
18776         * lib/gl_rbtree_list.c: New file.
18777         * lib/gl_anyrbtree_list1.h: New file.
18778         * lib/gl_anyrbtree_list2.h: New file.
18779         * lib/gl_anytree_list1.h: New file.
18780         * lib/gl_anytree_list2.h: New file.
18781         * lib/gl_linkedhash_list.h: New file.
18782         * lib/gl_linkedhash_list.c: New file.
18783         * lib/gl_anyhash_list1.h: New file.
18784         * lib/gl_anyhash_list2.h: New file.
18785         * lib/gl_avltreehash_list.h: New file.
18786         * lib/gl_avltreehash_list.c: New file.
18787         * lib/gl_rbtreehash_list.h: New file.
18788         * lib/gl_rbtreehash_list.c: New file.
18789         * lib/gl_anytreehash_list1.h: New file.
18790         * lib/gl_anytreehash_list2.h: New file.
18791
18792         * lib/gl_oset.h: New file.
18793         * lib/gl_oset.c: New file.
18794         * lib/gl_array_oset.h: New file.
18795         * lib/gl_array_oset.c: New file.
18796         * lib/gl_avltree_oset.h: New file.
18797         * lib/gl_avltree_oset.c: New file.
18798         * lib/gl_rbtree_oset.h: New file.
18799         * lib/gl_rbtree_oset.c: New file.
18800         * lib/gl_anytree_oset.h: New file.
18801
18802 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18803
18804         * m4/mkancesdirs.m4: New file.
18805         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
18806         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
18807         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
18808         it.
18809
18810 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18811
18812         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
18813         * lib/mkancesdirs.h: New files.
18814         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
18815         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
18816         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
18817         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
18818         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
18819         callers changed.  Revamp internals significantly, by not
18820         attempting to create directories that are temporarily more
18821         permissive than the final results.  Do not attempt to use
18822         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
18823         This removes some race conditions, fixes some bugs, and simplifies
18824         things.  Use new dirchownmod function to do owner and mode changes.
18825         * lib/mkdir-p.h: Likewise.
18826         * lib/modechange.c (octal_to_mode): New function.
18827         (struct mode_change): New member mentioned.
18828         (make_node_op_equals): New arg mentioned.  All callers changed.
18829         (mode_compile): Keep track of which mode bits the user has explicitly
18830         mentioned.
18831         (mode_adjust): New arg DIR, so that we implement the X op correctly.
18832         New arg PMODE_BITS, to keep track of which mode bits the user
18833         mentioned; it treats S_ISUID and S_ISGID speciall.
18834         All callers changed.
18835         * lib/modechange.h: Likewise.
18836
18837 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18838
18839         * MODULES.html.sh: Add mkancestors.
18840         * modules/mkancesdirs: New module.
18841         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
18842         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
18843         The chdir-safer and afs files are now orphans; I'll remove them
18844         unless someone speaks up.
18845         Add lib/dirchownmod.c, lib/dirchownmod.h.
18846         (Depends-on): Remove alloca, chown, save-cwd, dirname.
18847         Add lchown, mkancesdirs.
18848         (Maintainer): Add self.
18849
18850 2006-07-15  Karl Berry  <karl@gnu.org>
18851
18852         * gnulib-tool: help message wording/arrangement.
18853
18854 2006-07-14  Simon Josefsson  <jas@extundo.com>
18855
18856         * doc/gnulib.texi (Libtool and Windows): New section.
18857
18858 2006-07-12  Simon Josefsson  <jas@extundo.com>
18859
18860         * modules/gendocs (License): Fix license, approved by Karl.
18861
18862 2006-07-12  Eric Blake  <ebb9@byu.net>
18863
18864         * MODULES.html.sh: Add gendocs.
18865
18866 2006-07-11  Eric Blake  <ebb9@byu.net>
18867
18868         * modules/fdl: New module, to install doc/fdl.texi.
18869         * MODULES.html.sh: Add new section for documentation modules.
18870         * gnulib-tool: Avoid space-tab.
18871         (--doc-base): New option, to manage files from doc.
18872
18873 2006-07-11  Eric Blake  <ebb9@byu.net>
18874
18875         * m4/absolute-header.m4: Fix comments to match recent change.
18876
18877 2006-07-11  Eric Blake  <ebb9@byu.net>
18878
18879         * gnulib-tool: List --doc-base before --tests-base.
18880
18881 2006-07-11  Derek R. Price  <derek@ximbiot.com>
18882
18883         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
18884
18885 2006-07-11  Bruno Haible  <bruno@clisp.org>
18886
18887         * README: Mention where to put documentation.
18888
18889 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18890
18891         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
18892
18893 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18894
18895         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
18896         to stdint.m4.
18897
18898 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18899
18900         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
18901         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
18902         "no/such/file/stdint.h" when there is no such file, so that
18903         the resulting C code can be parsed by dodgy compilers.
18904         Problems reported by Bob Proulx.
18905
18906 2006-07-10  Derek R. Price  <derek@ximbiot.com>
18907
18908         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
18909         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
18910         macros into the GNU _D_EXACT_NAMLEN.
18911         * lib/savedir.c:  Likewise.
18912         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
18913
18914 2006-07-10  Derek R. Price  <derek@ximbiot.com>
18915         and Paul Eggert  <eggert@cs.ucla.edu>
18916
18917         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
18918         * m4/savedir.m4:
18919         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
18920         macros into the GNU _D_EXACT_NAMLEN.
18921
18922 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18923
18924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
18925         around the absolute name, to work around a problem with the HP-UX
18926         11.23 native C compiler, reported by Bob Proulx.
18927
18928 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18929
18930         * doc/maintain.texi, make-stds.texi: Sync from
18931         <http://savannah.gnu.org/projects/gnustandards>.
18932
18933 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18934
18935         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
18936
18937 2006-07-09  Jim Meyering  <jim@meyering.net>
18938
18939         * m4/glob.m4: Remove a doubled word in a comment.
18940
18941 2006-07-09  Jim Meyering  <jim@meyering.net>
18942
18943         * lib/argp-pv.c: Remove a doubled word in a comment.
18944         * lib/check-version.c (check_version): Likewise.
18945         * lib/javacomp.c (compile_java_class): Likewise.
18946
18947 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18948
18949         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
18950         for the benefit of people using Autoconf 2.60.  If you want to
18951         support older Autoconf versions you can copy m4/onceonly_2_57.m4
18952         (or m4/onceonly.m4, if pre-2.57) manually.
18953
18954 2006-07-08  Jim Meyering  <jim@meyering.net>
18955
18956         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
18957         comment.
18958         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
18959         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
18960         comment.
18961
18962 2006-07-08  Jim Meyering  <jim@meyering.net>
18963
18964         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
18965
18966 2006-07-07  Simon Josefsson  <jas@extundo.com>
18967
18968         * tests/test-crc.c: Change expected crc value, the test vector
18969         were probably computed using the old broken crc.c?
18970
18971 2006-07-06  Simon Josefsson  <jas@extundo.com>
18972
18973         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
18974         now the canonical place for the M4 file).
18975
18976         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
18977         from the sys_socket dependency now.
18978
18979         * modules/inet_pton (Files): Ditto.
18980
18981         * modules/inet_ntop (Files): Ditto.
18982
18983 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
18984
18985         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
18986         not gl_PREREQ_GETUSERSHELL.
18987
18988 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18989
18990         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
18991         with only one argument, for Autoconf 2.60.
18992         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
18993         expand to nothing, so add a shell command to avoid syntax error.
18994         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
18995
18996 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18997
18998         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
18999
19000 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19001
19002         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
19003         no longer needed.  Check for isblank decl.
19004         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
19005         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
19006         of existence.
19007
19008 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19009
19010         * lib/getloadavg.c: Use __VMS, not VMS.
19011         * lib/getopt.c: Likewise.
19012         * lib/getpagesize.h: Likewise.
19013         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
19014         and probably does not work.
19015
19016 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19017
19018         * lib/.cppi-disable: Add wcwidth.
19019         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
19020         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
19021         (ISGRAPH): Remove.  All uses changed to isgraph.
19022         (FOLD) [!defined _LIBC]: Remove special case.
19023         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
19024         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
19025         HAVE_ISBLANK.
19026         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
19027         case.
19028
19029 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
19030
19031         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
19032         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
19033         brackets.  Other minor changes to suppress some compiler
19034         warnings.
19035
19036 2006-07-06  Derek R. Price  <derek@ximbiot.com>
19037         and Paul Eggert  <eggert@cs.ucla.edu>
19038
19039         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
19040         of invoking obsolescent AC_HEADER_DIRENT macro.
19041         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19042         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
19043         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19045         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
19046         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19047         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
19048         * m4/readdir.m4: Remove; no longer needed.
19049
19050 2006-07-06  Derek R. Price  <derek@ximbiot.com>
19051         and Paul Eggert  <eggert@cs.ucla.edu>
19052
19053         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
19054         Don't worry about this obsolete case any more.
19055         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
19056         directories.
19057         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
19058         worry about this obsolete case any more.
19059         * lib/fts.c: Likewise.
19060         * lib/getcwd.c: Likewise.
19061         * lib/glob.h: Likewise.
19062         * lib/savedir.c: Likewise.
19063
19064 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19065
19066         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
19067         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
19068         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
19069         needed.
19070         All uses removed.
19071         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19072         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
19073         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
19074         needed.
19075         * m4/getdate.m4 (gl_GETDATE): Likewise.
19076         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
19077         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
19078         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19079         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19080         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
19081         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19082         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
19083         needed.
19084
19085 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19086
19087         * lib/memcasecmp.c: Include <limits.h>.
19088         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
19089         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
19090         Don't assume isdigit succeeds only on '0' through '9'.
19091
19092 2006-07-05  Eric Blake  <ebb9@byu.net>
19093
19094         * modules/getaddrinfo (Depends-on): Add snprintf.
19095
19096 2006-07-05  Eric Blake  <ebb9@byu.net>
19097
19098         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
19099         to avoid 'header present but could not be compiled' on cygwin.
19100
19101 2006-07-05  Eric Blake  <ebb9@byu.net>
19102
19103         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
19104         missing from netdb.h.
19105         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
19106
19107 2006-07-05  Derek R. Price  <derek@ximbiot.com>
19108
19109         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
19110         no longer needed.
19111         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
19112         * m4/getdate.m4 (gl_GETDATE): Likewise.
19113         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
19114         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
19115         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19116         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19117         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19118
19119 2006-07-05  Derek R. Price  <derek@ximbiot.com>
19120
19121         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
19122         All uses of is_space replaced by isspace.
19123         * lib/exit.h: Don't talk about STDC_HEADERS.
19124         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
19125         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
19126         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
19127         replaced by isprint etc.
19128         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
19129         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
19130         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
19131         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
19132         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
19133         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
19134
19135 2006-07-05  Bruno Haible  <bruno@clisp.org>
19136
19137         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
19138         the function exists, before testing against AIX.
19139         Reported by Martin Lambers <marlam@marlam.de>.
19140
19141 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19142
19143         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
19144         From Mark D. Baushke.
19145
19146 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19147
19148         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
19149         to the absolute name, not just one, to bypass Sun C 5.8's
19150         "warning: #include of /usr/include/... may be non-portable".
19151
19152 2006-07-04  Eric Blake  <ebb9@byu.net>
19153
19154         * modules/dirname-tests: New test module.
19155         * tests/test-dirname.c: New file, replacing dirname.c
19156         TEST_DIRNAME section that was recently deleted.
19157
19158 2006-07-04  Bruno Haible  <bruno@clisp.org>
19159
19160         Assume ANSI C header files and <ctype.h> functions.
19161         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
19162         (mbsnwidth): Use isprint, iscntrl instead.
19163
19164 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19165
19166         Merge from coreutils.
19167         * MODULES.html.sh: Add xstrtold.
19168         * modules/xstrtold: New file.
19169         * modules/cycle-check (Files): Add lib/same-inode.h.
19170         * modules/dirname (Files): Add m4/double-slash-root.m4.
19171         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
19172         * modules/mkdir-p (Files): Add lib/same-inode.h.
19173         * modules/same (Files): Add lib/same-inode.h.
19174
19175 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19176
19177         * m4/absolute-header.m4: Renamed from full-header-path.m4.
19178         This is to keep the terminology clean; POSIX talks about
19179         "absolute pathnames", not "full pathnames", but the GNU
19180         Coding Standards say to use "path" for something else;
19181         so use "absolute" to keep both sides happy.
19182         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
19183         Set gl_absolute_header, not gl_full_header_path.
19184         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
19185         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
19186         All uses changed.
19187
19188         Merge from coreutils.
19189
19190         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19191
19192         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
19193         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
19194         want to require the building of c-strtod.o.
19195         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
19196         needs -lm directly.
19197         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
19198
19199         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
19200
19201         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
19202         --as-needed option if available.  Problem reported by Albert Chin in
19203         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
19204         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
19205         cc merely issues a bunch of annoying warnings for --as-needed
19206         (this problem was reported by Bob Proulx).  Also, try linking with
19207         -lm to detect a bug in binutils 2.16 (this problem was reported
19208         by Ralf Wildenhues).
19209
19210         2006-06-18  Jim Meyering  <jim@meyering.net>
19211
19212         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
19213         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
19214         macro.
19215         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
19216         also check for glibc-2.4's abort-inducing bug.
19217
19218         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
19219         Low-probability clean-up should be to use rmdir to get rid of
19220         the just-created directory, not unlink.
19221
19222         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
19223         configure fail, and request a bug report to inform us about it.
19224         Add a comment that, barring reports to the contrary, in 2007 we'll
19225         assume ftruncate is universally available.
19226
19227         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
19228
19229         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
19230
19231         2006-03-12  Jim Meyering  <jim@meyering.net>
19232
19233         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
19234         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
19235         * m4/same.m4 (gl_SAME): Likewise.
19236         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
19237
19238         2006-03-11  Eric Blake  <ebb9@byu.net>
19239
19240         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
19241         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
19242         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
19243         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
19244
19245 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19246
19247         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
19248         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
19249         reported by Mark D. Baushke, one in
19250         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
19251
19252         Merge from coreutils.
19253
19254         * lib/.cppi-disable: Add stdint_.h.
19255         * lib/.cvsignore: Add stdint.h.
19256
19257         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19258
19259         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
19260         both double and long double versions.
19261         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
19262         * lib/xstrtold.c: New file.
19263         * lib/xstrtod.h (xstrtold): New decl.
19264
19265         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19266
19267         * lib/filemode.c (setst): Remove.
19268         (strmode): Rewrite to avoid setst.  This makes the code shorter,
19269         (arguably) clearer, and the generated code is a bit smaller on my
19270         Debian GNU/Linux stable x86 host.
19271
19272         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
19273
19274         * lib/filemode.c: Include "filemode.h" first, to test the interface.
19275         Assume that filemode.h includes sys/types.h and sys/stat.h.
19276         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
19277         (ftypelet): Reorder to put common cases first, for efficiency.
19278         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
19279         to do 'M'.
19280         (strmode): Renamed from mode_string, and now stores 12 bytes instead
19281         of 10, for compatibility with FreeBSD.  All callers changed.
19282         (filemodestring): Now stores 12 bytes instead of 10, and sets file
19283         types that can't be deduced solely from st_mode.  First arg is now a
19284         const pointer.
19285         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
19286         (strmode): Renamed from mode_string.
19287         (filemodestring): New decl.
19288         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
19289         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
19290         needed.
19291         (S_ISPORT, S_ISWHT): New macros, if not already defined.
19292
19293         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19294
19295         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
19296         fsusage.h now does that.  Include fsusage.h first, to test interface.
19297         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
19298         at most one method (the old code could have generated decls that
19299         didn't conform to C89, not that this was ever exercised).
19300         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
19301
19302         2006-03-19  Jim Meyering  <jim@meyering.net>
19303
19304         Work even in a chroot where d_ino values for entries in "/"
19305         don't match the stat.st_ino values for the same names.
19306         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
19307         number, iterate through all entries again, using lstat instead.
19308         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
19309         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
19310
19311         * lib/getcwd.c (__getcwd): Clarify a comment.
19312         Use memcpy in place of a call to strcpy.
19313
19314         2006-03-12  Jim Meyering  <jim@meyering.net>
19315
19316         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
19317         matches that of the current directory (which we're about to chdir ".."
19318         out of), then save the dev-ino of the parent, instead.
19319
19320         * lib/same-inode.h (SAME_INODE): New file/macro.
19321         * lib/chdir-safer.c (SAME_INODE): Remove definition.
19322         Include "same-inode.h", instead.
19323         * lib/same.c: Likewise.
19324         * lib/cycle-check.h: Include "same-inode.h".
19325         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
19326         * lib/cycle-check.c (SAME_INODE): Remove definition.
19327         * lib/root-dev-ino.h: Include "same-inode.h".
19328
19329         2006-03-11  Eric Blake  <ebb9@byu.net>
19330
19331         * lib/same.c (same_name): s/base_name/last_component/
19332         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
19333         * lib/filenamecat.c (file_name_concat): Likewise.
19334
19335         2006-03-11  Eric Blake  <ebb9@byu.net>,
19336                     Paul Eggert  <eggert@cs.ucla.edu>
19337
19338         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
19339         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
19340         drive prefix.
19341         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
19342         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
19343         (last_component): New method.
19344         * lib/dirname.c (dir_len): Determine when drive letters need a
19345         subsequent slash.  Preserve // when it is special.
19346         (dir_name): Don't append dot when drive letter is absolute.
19347         [TEST_DIRNAME]: Move into a full-blown gnulib test.
19348         * lib/basename.c (base_name): New semantics - malloc the result.
19349         Preserve // when it is special.  Preserve relative files that look
19350         like drive letters.
19351         (base_len): Preserve // when it is special.
19352         (last_component): New method, similar to old base_name semantics.
19353         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
19354         base_name.  Strip redundant slashes from ///.
19355
19356 2006-07-03  Jim Meyering  <jim@meyering.net>
19357
19358         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
19359         macro is used before the first cycle_check call.
19360
19361 2006-07-03  Eric Blake  <ebb9@byu.net>
19362
19363         * modules/dirname (Depends-on): Add xstrndup.
19364
19365 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19366
19367         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
19368         test cases, so that config.log is a bit easier to follow.
19369
19370 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19371
19372         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
19373         both are 64 bits, since this seems to be the tradition, and this
19374         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
19375         we ever run into a host that prefers long long to long in this
19376         case, we'll need another configure-time test.  Problem reported by
19377         Jim Meyering.
19378
19379 2006-07-02  Eric Blake  <ebb9@byu.net>
19380
19381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
19382
19383 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19384
19385         * modules/inttypes (Depends-on): No longer depends on stdint.
19386         * modules/stdint (Description): Say more about assumptions.
19387         Say that the fast types might differ.  Say macros are used.
19388         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
19389         (Makefile.am): Revise list of substituted symbols to match
19390         new stdint.m4.
19391         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
19392         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
19393         * tests/test-stdint.c (verify_same_types)
19394         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
19395         the code conforms to C99/C89.
19396         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
19397         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
19398
19399 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19400
19401         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
19402         but fix a bug, by requiring at least 64 bits.
19403         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
19404         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
19405         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
19406         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
19407
19408         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
19409         changes.  Make 2.59 a prerequisite.  Check and substitute for
19410         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
19411         inttypes.h.  Do not use special include files; just use the
19412         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
19413         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
19414         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
19415         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
19416         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
19417         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
19418         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
19419         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
19420         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
19421         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
19422         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
19423         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
19424         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
19425         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
19426         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
19427         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
19428         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
19429         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
19430         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
19431         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
19432         WINT_MAX.  Check for C99 conformance more strictly, by detecting
19433         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
19434         not check for things that C99 does not require, e.g., int8_t.  If
19435         a test isn't needed unless <stdint.h> isn't working, and is
19436         unlikely to be needed for any other reason, then don't do it
19437         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
19438         size_t, since we assume C89 freestanding at least.  Do not check
19439         for sig_atomic_t, wchar_t, or wint_t, since the code now does
19440         the right thing even if the types are not defined.  Instead use:
19441         (gl_STDINT_TYPE_PROPERTIES): New macro.
19442         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
19443         testing whether <sys/types.h> clashes, as Autoconf does this for
19444         us now.  All uses removed.
19445         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
19446         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
19447         (gl_CHECK_TYPE_SAME):
19448         Remove; no longer needed.
19449         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
19450         exists, since we'll return 0 anyway in that case.
19451         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
19452
19453 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19454
19455         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
19456         possible collision with system files.
19457         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
19458         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
19459         WCHAR_MIN and WCHAR_MAX in this case.
19460         (<stddef.h>): Do not include; no longer needed.
19461         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
19462         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
19463         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
19464         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
19465         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
19466         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
19467         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
19468         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
19469         !defined(__c99))]: Include in this case too, since it's harmless
19470         now.
19471         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
19472         dangerous to do so.
19473         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
19474         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
19475         (_STDINT_MIN, _STDINT_MAX): New macros.
19476         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
19477         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
19478         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
19479         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
19480         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
19481         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
19482         macros, not typedefs; this simplifies things quite a bit.
19483         Use long int for all types narrower than int64_t.
19484         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
19485         Define in terms of long long int or int64_t or long int,
19486         not int64_t or int32_t.  This saves some compile-time testing.
19487         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
19488         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
19489         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
19490         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
19491         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
19492         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
19493         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
19494         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
19495         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
19496         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
19497         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
19498         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
19499         undef any previous version and define our own version, for
19500         simplicity and consistency with the new macros for types.
19501         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
19502         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
19503         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
19504         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
19505         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
19506         @WINT_T_SUFFIX@ to keep things simple here.
19507         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
19508         Simplify by assuming typical 8/16/32/64 host, since we're
19509         already doing that elsewhere anyway.
19510         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
19511         and assume long long int is 64 bits if available.  This
19512         speeds up 'configure'.
19513
19514 2006-07-01  Eric Blake  <ebb9@byu.net>
19515
19516         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
19517         Reported by Andreas Buening.
19518
19519 2006-07-01  Eric Blake  <ebb9@byu.net>
19520
19521         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
19522
19523 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
19524
19525         * lib/getaddrinfo.c: fixed typo
19526
19527 2006-06-29  Jim Meyering  <jim@meyering.net>
19528
19529         * modules/strftime (Maintainer): Add my name, since with the
19530         FPRINTFTIME changes strftime.c has forked from glibc.
19531
19532 2006-06-29  Eric Blake  <ebb9@byu.net>
19533
19534         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
19535
19536 2006-06-29  Eric Blake  <ebb9@byu.net>
19537
19538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
19539
19540 2006-06-29  Eric Blake  <ebb9@byu.net>
19541
19542         * lib/stat_.h: New file.
19543
19544 2006-06-29  Eric Blake  <ebb9@byu.net>
19545
19546         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
19547         unused static function.
19548
19549 2006-06-29  Eric Blake  <ebb9@byu.net>
19550
19551         * doc/functions.texi (Function Portability): Document missing lstat
19552         on mingw.
19553
19554 2006-06-29  Eric Blake  <ebb9@byu.net>
19555
19556         * MODULES.html.sh: Add sys_stat.
19557         * modules/sys_stat: New module.
19558         * modules/mkstemp (Depends-on): Add sys_stat.
19559
19560 2006-06-29  Derek R. Price  <derek@ximbiot.com>
19561
19562         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
19563
19564 2006-06-29  Derek R. Price  <derek@ximbiot.com>
19565
19566         * m4/c-bs-a.m4: Removed.
19567
19568 2006-06-29  Derek R. Price  <derek@ximbiot.com>
19569
19570         * lib/strftime.c: Assume strftime() exists.
19571
19572 2006-06-29  Derek Price  <derek@ximbiot.com>
19573
19574         * modules/c-bs-a: Removed - \a is C89.
19575         * MODULES.html.sh: Remove c-bs-a.
19576
19577 2006-06-29  Bruno Haible  <bruno@clisp.org>
19578
19579         * modules/wcwidth (License): Change to LGPL.
19580
19581 2006-06-28  Simon Josefsson  <jas@extundo.com>
19582
19583         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
19584         on _WIN32.
19585
19586         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
19587         getnameinfo.
19588
19589 2006-06-28  Simon Josefsson  <jas@extundo.com>
19590
19591         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
19592
19593 2006-06-28  Simon Josefsson  <jas@extundo.com>
19594
19595         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
19596         functions there.  It will succeed on Windows XP, but on Windows
19597         2000 and (presumably) earlier, it will fail, and use the internal
19598         re-implementation.
19599         (use_win32_p): New function.
19600         (getaddrinfo): Use strtoul on servname, to support numeric ports.
19601         Support AI_NUMERICSERV to disable getservbyname.
19602         (getnameinfo): New function, only supports
19603         NI_NUMERICHOST|NI_NUMERICSERV for now.
19604
19605         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
19606         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
19607         getnameinfo.
19608
19609 2006-06-28  Eric Blake  <ebb9@byu.net>
19610
19611         * modules/wcwidth: New file.
19612         * modules/mbchar (Depends-on): Add wcwidth.
19613         * modules/mbswidth (Depends-on): Add wcwidth.
19614         * MODULES.html.sh: Add wcwidth.
19615
19616 2006-06-28  Eric Blake  <ebb9@byu.net>
19617
19618         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
19619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
19620
19621 2006-06-28  Eric Blake  <ebb9@byu.net>
19622
19623         * lib/xvasprintf.h: Fix comments.
19624
19625 2006-06-28  Eric Blake  <ebb9@byu.net>
19626
19627         * lib/mbchar.h (wcwidth): Include wcwidth.h.
19628         * lib/mbswidth.c (wcwidth): Move from here...
19629         * lib/wcwidth.h: ...to this new file.
19630
19631 2006-06-28  Derek R. Price  <derek@ximbiot.com>
19632
19633         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
19634
19635         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
19636         it's obsolete.
19637         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
19638
19639 2006-06-28  Derek R. Price  <derek@ximbiot.com>
19640
19641         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
19642         Autoconf 2.60 says this stuff was obsolete.
19643
19644 2006-06-28  Bruno Haible  <bruno@clisp.org>
19645
19646         * modules/wcwidth (Files): Add m4/wchar_t.m4.
19647
19648 2006-06-28  Bruno Haible  <bruno@clisp.org>
19649
19650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
19651         gt_TYPE_WCHAR_T.
19652
19653 2006-06-28  Bruno Haible  <bruno@clisp.org>
19654
19655         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
19656         declaration for wcwidth.
19657         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
19658
19659 2006-06-28  Bruno Haible  <bruno@clisp.org>
19660
19661         * lib/mkdtemp.c [MINGW]: Include <io.h>.
19662         (mkdir): Define using _mkdir.
19663
19664 2006-06-28  Bruno Haible  <bruno@clisp.org>
19665
19666         * lib/getaddrinfo.h: Fix POSIX URL.
19667         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
19668         _WIN32.
19669         (use_win32_p): Make static.
19670         (getaddrinfo): Reject service name if it is empty or does not consist
19671         solely of decimal digits, or if its value is > 65535.
19672         (getnameinfo): Remove useless casts.
19673
19674 2006-06-27  Simon Josefsson  <jas@extundo.com>
19675
19676         * modules/sys_select: New file, suggested by Bruno Haible, Paul
19677         Eggert and Martin Lambers.
19678
19679 2006-06-27  Simon Josefsson  <jas@extundo.com>
19680
19681         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
19682         Eggert and Martin Lambers.
19683
19684 2006-06-27  Bruno Haible  <bruno@clisp.org>
19685
19686         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
19687         result to 0, not to empty.
19688         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
19689
19690 2006-06-27  Bruno Haible  <bruno@clisp.org>
19691
19692         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
19693
19694 2006-06-26  Simon Josefsson  <jas@extundo.com>
19695
19696         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
19697         present.
19698
19699 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
19700
19701         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
19702         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
19703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
19704
19705 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
19706
19707         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
19708
19709 2006-06-26  Bruno Haible  <bruno@clisp.org>
19710
19711         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
19712
19713 2006-06-26  Bruno Haible  <bruno@clisp.org>
19714
19715         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
19716
19717 2006-06-26  Bruno Haible  <bruno@clisp.org>
19718
19719         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
19720         SGI C compiler in pre-C99 mode.
19721         Suggested by Mark D. Baushke and Larry Jones.
19722
19723 2006-06-26  Bruno Haible  <bruno@clisp.org>
19724
19725         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
19726         WCHAR_MAX.
19727         Reported by Mark D. Baushke and Larry Jones.
19728
19729 2006-06-26  Bruno Haible  <bruno@clisp.org>
19730
19731         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
19732         in pre-C99 mode.
19733         Suggested by Mark D. Baushke and Larry Jones.
19734
19735 2006-06-23  Simon Josefsson  <jas@extundo.com>
19736             Bruno Haible  <bruno@clisp.org>
19737
19738         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
19739         Emit mostlyclean-local rule.
19740         (func_emit_tests_Makefile_am): Likewise.
19741         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
19742
19743 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
19744
19745         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
19746
19747 2006-06-23  Bruno Haible  <bruno@clisp.org>
19748
19749         * tests/test-stdint.c: Update to match ISO C 99 Technical
19750         Corrigendum 1.
19751
19752 2006-06-23  Bruno Haible  <bruno@clisp.org>
19753
19754         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
19755
19756 2006-06-23  Bruno Haible  <bruno@clisp.org>
19757
19758         * lib/stdint_.h: Treat IRIX like OpenBSD.
19759
19760 2006-06-23  Bruno Haible  <bruno@clisp.org>
19761
19762         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
19763         ISO C 99 Technical Corrigendum 1.
19764
19765 2006-06-22  Simon Josefsson  <jas@extundo.com>
19766
19767         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
19768         MinGW.
19769
19770 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
19771
19772         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
19773         needed.  Some compiler complained about some of them.  Problem reported
19774         by Larry Jones in
19775         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
19776
19777 2006-06-21  Simon Josefsson  <jas@extundo.com>
19778
19779         * tests/test-getaddrinfo.c: New file.
19780
19781         * modules/getaddrinfo-tests: New file.
19782
19783         * MODULES.html.sh: Add inet_pton.
19784
19785         * modules/inet_pton: New file.
19786
19787 2006-06-21  Simon Josefsson  <jas@extundo.com>
19788
19789         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
19790         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
19791         of using the (limited) gnulib implementation on Windows XP.
19792
19793         * m4/inet_pton.m4: New file.
19794
19795 2006-06-21  Simon Josefsson  <jas@extundo.com>
19796
19797         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
19798         variable.
19799
19800         * lib/socket_.h: Don't define WINVER.
19801
19802         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
19803         slightly modified to work in gnulib.
19804
19805 2006-06-21  Simon Josefsson  <jas@extundo.com>
19806
19807         * doc/gnulib.texi (Windows sockets): Add.
19808
19809 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19810
19811         * lib/read-file.c (fread_file): Start with buffer allocation of
19812         0 bytes rather than 1 byte; this simplifies the code.
19813         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
19814         code to free buffer and save/restore errno.
19815         (internal_read_file): Remove unused local.
19816
19817 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19818
19819         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
19820         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
19821         Problem reported by Denis Excoffier in
19822         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
19823
19824 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19825
19826         * modules/sys_socket, modules/socklen: Include sys/types since
19827         FreeBSD 4.x's sys/socket.h needs it.
19828
19829 2006-06-19  Simon Josefsson  <jas@extundo.com>
19830
19831         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
19832
19833 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
19834
19835         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
19836
19837 2006-06-19  Bruno Haible  <bruno@clisp.org>
19838
19839         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
19840         and FULL_PATH_INTTYPES_H in angle brackets.
19841         Reported by Mark D. Baushke <mdb@gnu.org>.
19842
19843 2006-06-17  Eric Blake  <ebb9@byu.net>
19844
19845         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
19846         errno.
19847
19848 2006-06-17  Bruno Haible  <bruno@clisp.org>
19849
19850         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
19851         <sys/inttypes.h>.
19852
19853 2006-06-17  Bruno Haible  <bruno@clisp.org>
19854
19855         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
19856         whether errno is declared. Assume <errno.h> declares errno.
19857
19858 2006-06-17  Bruno Haible  <bruno@clisp.org>
19859
19860         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
19861
19862 2006-06-17  Bruno Haible  <bruno@clisp.org>
19863
19864         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
19865         problem on Solaris 2.5.1.
19866
19867 2006-06-16  Eric Blake  <ebb9@byu.net>
19868
19869         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
19870         * lib/unicodeio.c [!defined errno]: Likewise.
19871         * lib/strtol.c [!defined errno]: Likewise.
19872         * lib/strtod.c [!defined errno]: Likewise.
19873
19874 2006-06-15  Eric Blake  <ebb9@byu.net>
19875
19876         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
19877
19878 2006-06-15  Eric Blake  <ebb9@byu.net>
19879
19880         * config/srclist.txt (ssize_t.m4): Lose sync.
19881
19882 2006-06-15  Bruno Haible  <bruno@clisp.org>
19883
19884         * modules/stdint (Files): Include m4/full-header-path.m4,
19885         m4/size_max.m4, m4/wchar_t.m4.
19886         (Makefile.am): Many more substitutions.
19887         * modules/stdint-tests: New file.
19888         * tests/test-stdint.c: New file.
19889
19890 2006-06-15  Bruno Haible  <bruno@clisp.org>
19891
19892         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
19893         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
19894         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
19895         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
19896         gl_CHECK_TYPE_SAME): New macros.
19897
19898 2006-06-15  Bruno Haible  <bruno@clisp.org>
19899
19900         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
19901
19902 2006-06-15  Bruno Haible  <bruno@clisp.org>
19903
19904         * lib/stdint_.h: Rewritten to be fully auto-configured.
19905         Fixes bug on HP-UX/IA64.
19906
19907 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19908
19909         * lib/getdate.y (__attribute__): Don't define if already defined.
19910         Problem reported by Larry Jones.
19911         * lib/utimens.c (__attribute__): Likewise.
19912
19913 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
19914
19915         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
19916         reported by Andreas Schwab.
19917
19918 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19919             Bruno Haible  <bruno@clisp.org>
19920
19921         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
19922         check for the declaration of strnlen and a run test that exposes the
19923         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
19924         rpl_strndup.
19925
19926 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19927             Bruno Haible  <bruno@clisp.org>
19928
19929         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
19930
19931 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19932
19933         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
19934         compile test, for Tru64 4.0D.
19935
19936 2006-05-28  Karl Berry  <karl@gnu.org>
19937
19938         * config/srclist.txt (printf-args.c): lose sync.
19939
19940 2006-05-26  Martin Lambers  <marlam@marlam.de>
19941
19942         * lib/getpass.c: Updates the test for the native W32 API, and adds
19943         missing includes, thus fixing compilation warnings.
19944
19945 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19946
19947         * lib/exclude.c (exclude_fnmatch): New function.
19948         (excluded_file_name): Call exclude_fnmatch.
19949         * lib/exclude.h (excluded_file_name): New prototype
19950
19951 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
19952
19953         * lib/tempname.c (small_open, large_open): New macros.
19954         (__open, __open64) [!_LIBC]: Remove.
19955         (__gen_tempname): Use small_open and large_open instead of __open
19956         and __open64.  This fixes a portability bug on HP-UX 11.11i
19957         reported by Simon Wing-Tang in
19958         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
19959
19960 2006-05-24  Bruno Haible  <bruno@clisp.org>
19961
19962         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
19963         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
19964         Reported by Thorsten Maerz <torte@netztorte.de> via
19965         Aaron Stone <aaron@serendipity.cx>.
19966
19967 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19968
19969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
19970         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
19971         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
19972         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
19973         not really conditional on the cache.
19974         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
19975
19976 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19977
19978         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
19979         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
19980         (my_usleep): Don't mishandle maximum value.
19981
19982 2006-05-19  Jim Meyering  <jim@meyering.net>
19983
19984         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
19985
19986 2006-05-17  Bruno Haible  <bruno@clisp.org>
19987
19988         Cygwin portability.
19989         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
19990
19991 2006-05-17  Bruno Haible  <bruno@clisp.org>
19992
19993         * lib/stdint_.h: Fix recognition of Cygwin.
19994
19995 2006-05-15  Bruno Haible  <bruno@clisp.org>
19996
19997         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
19998         on libtool patch by Ralf Wildenhues.
19999
20000 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20001
20002         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
20003         test for C99 conformance; (bool) 0.5 is an integer constant
20004         expression, but (bool) -0.5 is not.  Problem reported by Fedor
20005         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
20006
20007 2006-05-11  Simon Josefsson  <jas@extundo.com>
20008
20009         * m4/xvasprintf.m4: Fix obvious typo.
20010
20011 2006-05-11  Jim Meyering  <jim@meyering.net>
20012
20013         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
20014         James Lemley.
20015
20016 2006-05-10  Simon Josefsson  <jas@extundo.com>
20017
20018         * lib/md4.c: Typo fix, update copyright years.
20019         (K1, K2): Don't use L because it turn computations into 64-bit on
20020         64-bit platforms.
20021
20022 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20023
20024         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
20025         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
20026         unwanted sign propagation, e.g., on hosts with 64-bit int.
20027         There still are some problems with reeelly weird theoretical hosts
20028         (e.g., 33-bit int) but it's not worth worrying about now.
20029         * lib/sha1.c (rol): Likewise.
20030         (K1, K2, K3, K4): Remove unnecessary L suffix.
20031
20032 2006-05-10  Bruno Haible  <bruno@clisp.org>
20033
20034         * lib/des.c: Cast to avoid warnings.
20035
20036 2006-05-09  Bruno Haible  <bruno@clisp.org>
20037
20038         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
20039         (Depends-on): Depend also on xsize, stdarg.
20040         (configure.ac): Add gl_XVASPRINTF.
20041
20042 2006-05-09  Bruno Haible  <bruno@clisp.org>
20043
20044         * m4/xvasprintf.m4: New file.
20045
20046 2006-05-09  Bruno Haible  <bruno@clisp.org>
20047
20048         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
20049         (EOVERFLOW): Define fallback value.
20050         (xstrcat): New function.
20051         (xvasprintf): Recognize the special case of a string concatenation.
20052
20053 2006-05-08  Eric Blake  <ebb9@byu.net>
20054
20055         * gnulib-tool (func_version): Base copyright year on CVS date.
20056         (func_emit_copyright_notice): New function.
20057         (func_emit_lib_Makefile_am): Use it.
20058         (func_emit_tests_Makefile_am): Likewise.
20059         (func_import): Likewise.
20060
20061 2006-05-08  Bruno Haible  <bruno@clisp.org>
20062
20063         * modules/stdarg: New file.
20064         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
20065
20066 2006-05-08  Bruno Haible  <bruno@clisp.org>
20067
20068         * m4/stdarg.m4: New file, from GNU gettext.
20069
20070 2006-05-08  Bruno Haible  <bruno@clisp.org>
20071
20072         * config/srclist.txt (build-aux/config.rpath): different from latest
20073         release.
20074
20075 2006-05-08  Bruno Haible  <bruno@clisp.org>
20076
20077         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
20078
20079 2006-05-05  Jim Meyering  <jim@meyering.net>
20080
20081         * m4/warning.m4: New file, derived from bison's file by the same name.
20082
20083 2006-05-03  Bruno Haible  <bruno@clisp.org>
20084
20085         * lib/stdint_.h: Shorter URL.
20086         * lib/inttypes.h: Likewise.
20087
20088 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20089
20090         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
20091
20092 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20093
20094         * lib/verify.h: Document the internals better.  Most of this change
20095         was written by Bruno Haible.
20096
20097 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20098
20099         * doc/verify.texi: New file, partly based on a proposal by
20100         Bruno Haible.
20101
20102 2006-05-02  Bruno Haible  <bruno@clisp.org>
20103
20104         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
20105         test from here...
20106         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
20107
20108 2006-04-29  Bruno Haible  <bruno@clisp.org>
20109
20110         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
20111         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
20112
20113 2006-04-29  Bruno Haible  <bruno@clisp.org>
20114
20115         * gnulib-tool: Make --update option actually work.
20116
20117 2006-04-29  Bruno Haible  <bruno@clisp.org>
20118
20119         * doc/gcd.texi: New file.
20120         * doc/gnulib.texi: Include it.
20121
20122 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20123
20124         * lib/getdate.y (get_date): When adding relative date, start with the
20125         initial time, not with the result of the first mktime call.
20126
20127 2006-04-25  Bruno Haible  <bruno@clisp.org>
20128
20129         * gnulib-tool (func_import): Output the include directives in three
20130         blocks, sorted separately.
20131         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20132
20133 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20134
20135         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
20136         to define main with arguments, for C++.  Reported by Eric Blake.
20137         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
20138         Prefer 'int main ()' to 'int main (void)', for C++.
20139         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20140         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
20141         for 'main', for C99 and C++.
20142
20143 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20144
20145         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
20146         Don't assume that exit status -1 is valid.
20147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20148         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20149         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20150         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
20151         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
20152         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
20153         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
20154         functions can be used without declaring them, or that you can
20155         exit with status -1.
20156         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20157
20158 2006-04-24  Karl Berry  <karl@gnu.org>
20159
20160         * config/srclist.txt (longdouble.m4): sync lost.
20161
20162 2006-04-24  Eric Blake  <ebb9@byu.net>
20163
20164         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
20165
20166 2006-04-24  Bruno Haible  <bruno@clisp.org>
20167
20168         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
20169         poll() implementation in AIX.
20170         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20171
20172 2006-04-24  Bruno Haible  <bruno@clisp.org>
20173
20174         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
20175         assigned exactly once.
20176
20177 2006-04-23  Claudio Fontana  <claudio@gnu.org>
20178             Bruno Haible  <bruno@clisp.org>
20179
20180         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
20181         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
20182         for AM_CPPFLAGS.
20183
20184 2006-04-23  Bruno Haible  <bruno@clisp.org>
20185
20186         * modules/copy-file: Depend on unistd.
20187         * modules/execute: Likewise.
20188         * modules/fatal-signal: Likewise.
20189         * modules/findprog: Likewise.
20190         * modules/mkdtemp : Likewise.
20191         * modules/pipe: Likewise.
20192         * modules/wait-process: Likewise.
20193
20194 2006-04-23  Bruno Haible  <bruno@clisp.org>
20195
20196         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
20197         condition was already detected.
20198         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20199
20200 2006-04-23  Bruno Haible  <bruno@clisp.org>
20201
20202         * lib/copy-file.c: Include <unistd.h> unconditionally.
20203         * lib/execute.c: Likewise.
20204         * lib/fatal-signal.c: Likewise.
20205         * lib/findprog.c: Likewise.
20206         * lib/mkdtemp.c: Likewise.
20207         * lib/pipe.h: Likewise.
20208         * lib/pipe.c: Likewise.
20209         * lib/wait-process.h: Likewise.
20210
20211 2006-04-23  Bruno Haible  <bruno@clisp.org>
20212
20213         * gnulib-tool (func_usage): Fix --import description. Document
20214         --update.
20215         (func_import): Create temporary file in a temporary directory, if
20216         --dry-run is specified. Silence errors from 'grep' when there are no
20217         m4 files in $m4dir.
20218         (func_create_testdir): Silence errors from 'grep' when there are no
20219         m4 files in $m4dir.
20220         Reported by Karl Berry <karl@freefriends.org>.
20221
20222 2006-04-20  Bruno Haible  <bruno@clisp.org>
20223
20224         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
20225         one argument, so that the code will be portable to Autoconf 2.60.
20226         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
20227         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
20228         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
20229
20230 2006-04-19  Derek Price  <derek@ximbiot.com>
20231             Eric Blake  <ebb9@byu.net>
20232
20233         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
20234         rather than "/full/path.h".  Update comment to match.  Shorten &
20235         generalize m4_translit call via AS_TR_CPP.
20236
20237 2006-04-19  Derek Price  <derek@ximbiot.com>
20238             Eric Blake  <ebb9@byu.net>
20239
20240         * lib/inttypes.h: Correct grammar in comment.
20241
20242 2006-04-18  Derek Price  <derek@ximbiot.com>
20243             Paul Eggert  <eggert@cs.ucla.edu>
20244
20245         * modules/inttypes: New file.
20246         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
20247
20248 2006-04-18  Derek Price  <derek@ximbiot.com>
20249             Paul Eggert  <eggert@cs.ucla.edu>
20250
20251         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
20252         New files.
20253
20254 2006-04-18  Derek Price  <derek@ximbiot.com>
20255             Paul Eggert  <eggert@cs.ucla.edu>
20256
20257         * lib/inttypes.h: New file.
20258         * lib/strtoimax.c: Assume <inttypes.h>.
20259
20260 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
20261
20262         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
20263         isn't mounted.  Problem reported by Kir Kolyshkin.
20264
20265 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20266
20267         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
20268         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
20269         Derek R. Price.
20270         * lib/regex.h (RE_DUP_MAX): Update comment to match current
20271         implementation.
20272
20273 2006-04-12  Eric Blake  <ebb9@byu.net>
20274
20275         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
20276         is now done automatically by the corresponding Autoconf macro.
20277
20278 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20279
20280         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
20281         time_r.h.
20282
20283 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20284
20285         Merge regex changes from libc, removing some of our
20286         POSIX-conformance changes that were rejected and redoing them in a
20287         less-intrusive way.
20288
20289         * lib/regcomp.c (re_compile_internal, init_dfa):
20290         Length arg is now size_t, not Idx.  All uses changed.
20291         (peek_token): Forward decl now says internal_function.
20292         (__re_error_msgid, __re_error_msgid_idx):
20293         Now static rather than extern with attribute_hidden.
20294         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
20295         For some reason libc prefers K&R style defns for external functions.
20296         (regerror) [!defined _LIBC]: Likewise.
20297         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
20298         (seek_collating_symbol_entry, lookup_collation_sequence_value):
20299         (build_range_exp, build_collating_symbol):
20300         Use K&R-style defn.
20301         (re_compile_fastmap): Use '\0' to memset, not 0.
20302         (utf8_sb_map): Make the calculations more obvious.
20303         (init_dfa, parse_bracket_exp, build_charclass_op):
20304         Call calloc and cast result, as glibc does.
20305         (init_word_char, fetch_token, peek_token, peek_token_bracket):
20306         (build_range_exp, build_collating_symbol):
20307         Now internal functions.
20308
20309         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
20310
20311         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
20312         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
20313         Don't depend on VMS; depend on __VMS instead, for POSIX
20314         namespace cleanness.
20315         (regoff_t): Define to ssize_t, not long int.
20316
20317         Remove the REG_ macros named below.  Instead, make the old names
20318         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
20319         __USE_GNU_REGEX.
20320         (REG_BACKSLASH_ESCAPE_IN_LISTS):
20321         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
20322         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
20323         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
20324         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
20325         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
20326         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
20327         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
20328         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
20329         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
20330         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
20331         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
20332         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
20333         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
20334         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
20335         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
20336         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
20337         (REG_NREGS):
20338         Remove.  All uses replaced by the old RE_* names.
20339         (RE_BACKSLASH_ESCAPE_IN_LISTS):
20340         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
20341         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
20342         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
20343         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
20344         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
20345         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
20346         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
20347         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
20348         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
20349         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
20350         Don't bother having these macros be independent of each others'
20351         values, since they no longer exist in the POSIX name space.
20352
20353         Rename the following member names back to their old names,
20354         unless !__USE_GNU_REGEX.  All uses changed back.
20355         (buffer): Renamed from re_buffer.
20356         (allocated): Renamed from re_allocated.
20357         (used): Renamed from re_used.
20358         (syntax): Renamed from re_syntax.
20359         (fastmap): Renamed from re_fastmap.
20360         (translate): Renamed from re_translate.
20361         (can_be_null): Renamed from re_can_be_null.
20362         (regs_allocated): Renamed from re_regs_allocated.
20363         (fastmap_accurate): Renamed from re_fastmap_accurate.
20364         (no_sub): Renamed from re_no_sub.
20365         (not_bol): Renamed from re_not_bol.
20366         (not_eol): Renamed from re_not_eol.
20367         (newline_anchor): Renamed from re_newline_anchor.
20368         (num_regs): Renamed from rm_num_regs.
20369         (start): Renamed from rm_start.
20370         (end): Renamed from rm_end.
20371
20372         (free_state): Move up a bit.
20373
20374         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
20375         #define to be empty.
20376         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
20377         when that is what is intended.
20378         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
20379         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
20380         (MAX): New macro.
20381         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
20382         All uses changed back to re_malloc, etc.  It's now the caller's
20383         responsibility to check for overflow; all callers changed.
20384         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
20385         (re_x2nrealloc): Remove.
20386         (free_state): Remove decl.
20387
20388         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
20389         (re_set_registers, re_exec):
20390         Use K&R-style defn.
20391
20392         2006-01-31  Roland McGrath  <roland@redhat.com>
20393
20394         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
20395         Reported by Mike Frysinger <vapier@gentoo.org>.
20396
20397         2006-01-15  Andreas Jaeger  <aj@suse.de>
20398
20399         [BZ #1950]
20400         * lib/regex_internal.c (re_string_reconstruct): Adjust for
20401         build_wcs_upper_buffer change.
20402         (build_wcs_upper_buffer): Change return type.
20403
20404         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
20405
20406         * lib/regex_internal.h: Include <stdint.h> if available.
20407
20408         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
20409
20410         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
20411
20412         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
20413
20414         * lib/regcomp.c: Adjust for changed secondary hash function.
20415
20416         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
20417
20418         * lib/regex.h: Pretty printing.
20419         Clean up namespace a bit.
20420
20421         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
20422
20423         * lib/regexec.c (update_cur_sifted_state, check_arrival,
20424         check_arrival_add_next_nodes): Avoid using uninitialized variable.
20425
20426         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
20427                     Ulrich Drepper  <drepper@redhat.com>
20428
20429         [BZ #1302]
20430         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
20431         changed.
20432         (bitset_word_t): Renamed from bitset_word.  All uses changed.
20433
20434         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
20435
20436         [BZ #281]
20437         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
20438         * lib/regcomp.c: Remove unnecessary uses of
20439         unsigned RE_TRANSLATE_TYPE.
20440         * lib/regex_internal.h: Likewise.
20441         * lib/regex_internal.c: Likewise.
20442         * lib/regexec.c: Likewise.
20443         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
20444
20445         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
20446
20447         * lib/regexec.c (find_recover_state): Remove unnecessary
20448         initialization.
20449         (transit_state_bkref): Make DFA a const pointer.
20450         (get_subexp): Likewise.
20451         (check_arrival): Likewise.
20452         (update_cur_sifted_state): Likewise.
20453         (re_search_internal): Likewise.
20454         (prune_impossible_nodes): Likewise.
20455         (acquire_init_state_context): Likewise.
20456         (proceed_next_node): Likewise.
20457         (set_regs): Likewise.
20458         (free_fail_stack_return): Likewise.
20459         (check_arrival_expand_ecl): Mark DFA parameter as const.
20460         (check_arrival_expand_ecl_sub): Likewise.
20461         (check_subexp_limits): Likewise.
20462         (sub_epsilon_src_nodes):  Likewise.
20463         (add_epsilon_src_nodes):  Likewise.
20464         (merge_state_array): Likewise.
20465         (update_regs): Likewise.
20466         (build_trtable): Likewise.
20467         (sift_states_backward): Mark MCTX parameter as const.
20468         (build_sifted_states): Likewise.
20469         (update_cur_sifted_state): Likewise.
20470         (sift_states_mkref): Likewise.
20471         (check_arrival_expand_ecl): Mark eclosure as const.
20472         (check_dst_limits_calc_pos_1): Likewise.
20473         * lib/regex_internal.h (re_match_context_t): Make dfa a const
20474         pointer.
20475
20476         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
20477
20478         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
20479         (transit_state_sb): Likewise.
20480         (transit_state_mb): Likewise.
20481         (sift_states_iter_mb): Likewise.
20482         (check_arrival_add_next_nodes): Likewise.
20483         (check_node_accept_bytes): Change first parameter to pointer-to-const.
20484         [_LIBC] (re_search_2_stub): Use mempcpy.
20485
20486         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
20487         mbrtowc for very simple UTF-8 case.
20488
20489         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
20490         a pointer-to-const.
20491         (re_acquire_state_context): Likewise.
20492         * lib/regex_internal.h: Adjust prototypes.
20493
20494         * lib/regex.c: Prevent using C++ compilers.
20495
20496         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
20497         (re_acquire_state_context): Likewise.
20498
20499 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20500
20501         * modules/regex (Depends-on): Add ssize_t.
20502
20503 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20504
20505         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
20506         translation table.
20507
20508 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20509
20510         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
20511
20512 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
20513             Bruno Haible  <bruno@clisp.org>
20514
20515         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
20516         <sys/types.h> and <inttypes.h>.
20517
20518 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20519
20520         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
20521         `__error_t_defined', so argp.h will not typedef the former.
20522
20523 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
20524
20525         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
20526         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
20527         glibc names.  Even if glibc is changed to conform to POSIX, the
20528         traditional names will be available anyway, since regex depends on
20529         the extensions module.  Also, fix a longstanding typo in the
20530         implementation of Spencer ERE test #75 from grep 2.3.  Problems
20531         reported by Emanuele Giaquinta.  Also, change sense of cached
20532         variable, so that the message makes sense.
20533
20534 2006-03-24  Simon Josefsson  <jas@extundo.com>
20535
20536         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
20537         including some doc fixes.
20538         (base64_encode_alloc): Fix +1 bug on allocation failures.
20539
20540 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20541
20542         * lib/base64.c (base64_encode): Do not read past end of array with
20543         unsanitized input on systems with CHAR_BIT > 8.
20544
20545 2006-03-24  Eric Blake  <ebb9@byu.net>
20546
20547         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
20548
20549 2006-03-22  Karl Berry  <karl@gnu.org>
20550
20551         * config/srclist.txt (*setenv.[ch]): get from coreutils.
20552         * config/srclistvars.sh (COREUTILS): new var.
20553
20554 2006-03-17  Jim Meyering  <jim@meyering.net>
20555
20556         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
20557         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
20558
20559 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20560
20561         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
20562         no longer needs it.  Instead, check that regoff_t is as least
20563         as wide as ptrdiff_t.
20564
20565         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
20566         so that our regex.h stays compatible with the installed regex.
20567         This is helpful for installers who configure --without-included-regex.
20568         Problem reported by Emanuele Giaquinta.
20569
20570 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20571
20572         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
20573         Typedef to long int, not to off_, as POSIX will likely change
20574         in that direction.
20575
20576 2006-03-15  Eric Blake  <ebb9@byu.net>
20577
20578         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
20579
20580 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
20581
20582         * lib/argp-help.c (validate_uparams): Fix typo
20583         * lib/argp-parse.c (argp_default_options): Consistently begin help
20584         messages with a lowercase letter.
20585
20586 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
20587
20588         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
20589         overrun buffers and shouldn't be used (much as gets shouldn't be
20590         used).
20591         * lib/time_r.c (asctime_r, ctime_r): Likewise.
20592
20593 2006-03-08  Simon Josefsson  <jas@extundo.com>
20594
20595         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
20596         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20597
20598 2006-03-08  Simon Josefsson  <jas@extundo.com>
20599
20600         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
20601         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20602
20603 2006-03-08  Simon Josefsson  <jas@extundo.com>
20604
20605         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
20606         signal that configure disabled the device.
20607
20608 2006-03-08  Simon Josefsson  <jas@extundo.com>
20609
20610         * build-aux/maint.mk: Fix refresh-po, to handle no translated
20611         languages.
20612
20613 2006-03-07  Simon Josefsson  <jas@extundo.com>
20614
20615         * modules/getopt (Depends-on): Add unistd.
20616
20617         * modules/unistd: New file.
20618
20619 2006-03-07  Simon Josefsson  <jas@extundo.com>
20620
20621         * modules/gc-random: New file.
20622
20623 2006-03-07  Simon Josefsson  <jas@extundo.com>
20624
20625         * m4/unistd_h.m4: New file.
20626
20627 2006-03-07  Simon Josefsson  <jas@extundo.com>
20628
20629         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
20630         test to be side-effect free by storing the result in the cache
20631         variable gl_cv_lib_readline, and moving the assignment of
20632         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
20633         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20634
20635 2006-03-07  Simon Josefsson  <jas@extundo.com>
20636
20637         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
20638         error on missing devices (the functions will return an error).
20639
20640         * m4/gc.m4: Move random stuff to gc-random.m4
20641
20642 2006-03-07  Simon Josefsson  <jas@extundo.com>
20643
20644         * lib/unistd_.h: New file.
20645
20646 2006-03-07  Simon Josefsson  <jas@extundo.com>
20647
20648         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
20649
20650 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
20653         Problem reported by Juan Manuel Guerrero.
20654
20655 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20656
20657         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
20658         the unistd module.
20659         * lib/getlogin_r.c: Likewise.
20660         * lib/getlogin_r.h: Likewise.
20661         * lib/glob.c: Likewise.
20662         * lib/pagealign_alloc.c: Likewise.
20663         * lib/unistd_.h: Remove; no longer needed.
20664
20665 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20666
20667         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20668         Add unistd.
20669         * modules/c-stack (Depends-on): Add unistd.
20670         * modules/getlogin_r: Likewise.
20671         * modules/glob: Likewise.
20672         * modules/pagealign_alloc: Likewise.
20673         * modules/unistd (Files): Remove lib/unistd_.h.
20674         (EXTRA_DIST): Remove.
20675         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
20676         need unistd_.h.
20677         (MOSTLYCLEANFILES): Remove unistd.h-t.
20678
20679 2006-03-03  Simon Josefsson  <jas@extundo.com>
20680
20681         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
20682
20683 2006-03-03  Simon Josefsson  <jas@extundo.com>
20684
20685         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
20686         libidn and bison.
20687
20688 2006-03-03  Simon Josefsson  <jas@extundo.com>
20689
20690         * build-aux/maint.mk: Add indent target.
20691
20692 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
20693
20694         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
20695         our replacement poll.h in any case, to avoid a differing
20696         declaration from a system header.  Seen on AIX.
20697
20698 2006-03-01  Simon Josefsson  <jas@extundo.com>
20699
20700         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
20701         <kasal@ucw.cz>.
20702
20703 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20704
20705         * modules/gettime (Depends-on): Add extensions module.
20706         * modules/nanosleep (Depends-on): Likewise.
20707         * modules/settime (Depends-on): Likewise.
20708
20709 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20710
20711         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
20712         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
20713         pedantically.
20714         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20715         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
20716
20717         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
20718         not "==".  Reported by Ralf Wildenhues.
20719
20720 2006-03-01  Karl Berry  <karl@gnu.org>
20721
20722         * doc/Copyright/request-*: new files, synced from gnuorg.
20723
20724 2006-03-01  Karl Berry  <karl@gnu.org>
20725
20726         * config/srclist.txt (Copyright/*): new entries.
20727
20728 2006-02-28  Simon Josefsson  <jas@extundo.com>
20729
20730         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
20731
20732 2006-02-27  Simon Josefsson  <jas@extundo.com>
20733
20734         * lib/base64.h: Indent #define's.  From Jim Meyering
20735         <jim@meyering.net>.
20736
20737 2006-02-27  Jim Meyering  <jim@meyering.net>
20738
20739         Revert the change of 2006-02-24, so these files can continue
20740         to be sync'd from gettext.
20741         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
20742         of `config.h'.
20743
20744 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20745
20746         * modules/intprops: New file.
20747         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
20748         Add intprops.
20749         * modules/getloadavg (Files): Remove lib/intprops.h.
20750         (Depends-on): Add intprops.
20751         * modules/human: Likewise.
20752         * modules/inttostr: Likewise.
20753         * modules/openat: Likewise.
20754         * modules/sig2str: Likewise.
20755         * modules/userspec: Likewise.
20756         * modules/utimecmp: Likewise.
20757         * modules/xnanosleep: Likewise.
20758         * modules/xstrtol: Likewise.
20759
20760 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
20761
20762         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
20763         * modules/lock-tests (TESTS): Use $(EXEEXT).
20764         * modules/tls-tests: Likewise.
20765         * modules/argp-tests: Likewise.
20766         (check_PROGRAMS): New var, replacing...
20767         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
20768
20769 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20770
20771         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
20772         `config.h'.
20773
20774 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20775
20776         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
20777
20778 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20779
20780         Sync from coreutils.
20781         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
20782         gl_CHDIR_SAFER.
20783
20784 2006-02-22  Jim Meyering  <jim@meyering.net>
20785
20786         Sync from coreutils.
20787         * m4/chdir-safer.m4: New file.
20788
20789 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20790
20791         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
20792         AT_FDCWD exceeds INT_MAX.
20793         * lib/openat.h (AT_FDCWD): Likewise.
20794
20795 2006-02-17  Eric Blake  <address@hidden>
20796
20797         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
20798
20799 2006-02-16  Simon Josefsson  <jas@extundo.com>
20800
20801         * modules/getaddrinfo (Depends-on): Add sys_socket.
20802
20803 2006-02-15  Simon Josefsson  <jas@extundo.com>
20804
20805         * build-aux/maint.mk: Add dsyntax-check rule.
20806
20807 2006-02-15  Eric Blake  <ebb9@byu.net>
20808
20809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
20810         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
20811         'present but cannot compile' warnings on cygwin.
20812         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
20813         use ws2tcpip.h if sys/socket.h works.
20814         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
20815         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
20816
20817 2006-02-14  Simon Josefsson  <jas@extundo.com>
20818
20819         * modules/maintainer-makefile (Files): Rename.
20820
20821         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
20822         and (the local) Makefile.cfg to maint-cfg.mk.
20823
20824         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
20825         to the latter.
20826
20827         * modules/maintainer-makefile: New module.
20828
20829         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
20830         severaly stripped to make it possible to build it up from scratch
20831         with reliable tests.
20832
20833         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
20834         fixes to permit overriding the default actions when configure and
20835         makefile are not available.
20836
20837 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
20838
20839         Sync from coreutils.
20840         * modules/lstat (Depends-on): Don't depend on xalloc.
20841         (License): Change from GPL to LGPL, since this is now simply a
20842         replacement for a libc function.
20843
20844 2006-02-14  Jim Meyering  <jim@meyering.net>
20845
20846         Sync from coreutils.
20847
20848         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
20849         failure on deficient systems, and simplify gnulib lgpl dependencies.
20850         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
20851         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
20852
20853         * lib/xalloc-die.c: Remove unused definition of N_.
20854
20855 2006-02-14  Jim Meyering  <jim@meyering.net>
20856
20857         Sync from coreutils.
20858         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
20859         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
20860         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
20861         double-quote uses of that variable, to accommodate the rare case in
20862         which getmntent is available in none of the libraries checked.  This
20863         happens at least on FreeBSD 5.0.
20864
20865 2006-02-13  Simon Josefsson  <jas@extundo.com>
20866
20867         * gnulib-tool (Usage): Fix --import, from
20868         karl@freefriends.org (Karl Berry).
20869
20870 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
20871
20872         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
20873
20874 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
20875
20876         * lib/argp-namefrob.h: Restore changes accidentally lost during the
20877         "autoupdate" on 2005-12-12.
20878
20879 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20880
20881         * modules/closeout (Depends-on): Remove atexit.
20882
20883 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20884
20885         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
20886         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
20887
20888 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
20889
20890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
20891         __EXTENSIONS__ if this causes compilation to fail.  Problem
20892         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
20893         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
20894
20895 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
20896
20897         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
20898         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
20899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
20900         All uses changed.
20901
20902 2006-01-26  Simon Josefsson  <jas@extundo.com>
20903
20904         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
20905         prototype is visible on mingw32.
20906
20907         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
20908         for mingw32.
20909
20910         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
20911         mingw32).
20912
20913 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20914
20915         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
20916         attempt to open for write; this always fails, at least on POSIX
20917         hosts.  This reinstates the 2006-01-09 change, which was
20918         inadvertently removed.
20919
20920 2006-01-26  Bruno Haible  <bruno@clisp.org>
20921
20922         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
20923         Reported by Paul Eggert.
20924
20925 2006-01-26  Bruno Haible  <bruno@clisp.org>
20926             Paul Eggert  <eggert@cs.ucla.edu>
20927
20928         * lib/stdbool_.h (_Bool)
20929         [(! (defined __cplusplus || defined __BEOS__)
20930           && !defined __GNUC__
20931           && !(defined __HP_cc || defined __xlc__
20932                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
20933                || defined __sgi))]:
20934         #define to signed char in these cases too; this simplifies
20935         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
20936         etc., separately) and makes it more conservative.
20937
20938 2006-01-25  Simon Josefsson  <jas@extundo.com>
20939
20940         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
20941         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
20942         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
20943
20944 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20945
20946         * lib/argp-namefrob.h: Bugfix. Remove stray #
20947
20948 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
20949
20950         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
20951         so that we test the test.
20952         Check for yet another HP-UX cc bug involving *bool |= bool.
20953
20954 2006-01-25  Karl Berry  <karl@gnu.org>
20955
20956         * config/srclist.txt (vasnprintf.c): sync lost.
20957
20958 2006-01-25  Jim Meyering  <jim@meyering.net>
20959
20960         Sync from the stable (b5) branch of coreutils:
20961
20962         * lib/fts.c (fts_children): Don't let close() clobber errno from
20963         failed fchdir().
20964
20965         * lib/fts.c (fts_stat): When following a symlink-to-directory,
20966         don't necessarily interpret stat-fails+lstat-succeeds as indicating
20967         a dangling symlink.  That can also happen at least for ELOOP.
20968         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
20969         FYI, this bug predates the inclusion of fts.c in coreutils.
20970
20971         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
20972         in their own block, so pre-c99 compilers don't object.
20973
20974         Avoid the double-free (first in fts_read, second in fts_close) that
20975         would occur when an `active' directory is made inaccessible (e.g.,
20976         via chmod a-x) during a traversal.
20977         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
20978         before returning.  Reproduce this failure by
20979         mkdir -p a/b; cd a; chmod a-x . b
20980         Reported by Stavros Passas.
20981
20982 2006-01-25  Jim Meyering  <jim@meyering.net>
20983
20984         * lib/fileblocks.c: Remove more useless parentheses.
20985         * lib/readutmp.h: Likewise.
20986
20987 2006-01-25  Bruno Haible  <bruno@clisp.org>
20988
20989         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
20990         warnings.
20991         Reported by Paul Eggert.
20992
20993 2006-01-25  Bruno Haible  <bruno@clisp.org>
20994
20995         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
20996         rid of a trap command. For Solaris sh.
20997         Reported by Mark D. Baushke <mdb@gnu.org>.
20998
20999 2006-01-24  Simon Josefsson  <jas@extundo.com>
21000
21001         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
21002         Bruno.
21003
21004 2006-01-24  Karl Berry  <karl@gnu.org>
21005
21006         * config/srclist.txt (argp-namefrob.h): sync lost.
21007
21008 2006-01-24  Jim Meyering  <jim@meyering.net>
21009
21010         * modules/openat (Files): Add lib/intprops.h.
21011         From Mark D. Baushke.
21012
21013 2006-01-24  Jim Meyering  <jim@meyering.net>
21014
21015         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
21016         Reported by Mark D. Baushke.
21017
21018 2006-01-24  Jim Meyering  <jim@meyering.net>
21019
21020         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
21021
21022 2006-01-24  Bruno Haible  <bruno@clisp.org>
21023
21024         * modules/strnlen (Maintainer): Change from glibc to all.
21025
21026 2006-01-24  Bruno Haible  <bruno@clisp.org>
21027
21028         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
21029         Patch by Paul Eggert.
21030
21031 2006-01-24  Bruno Haible  <bruno@clisp.org>
21032
21033         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
21034         already has it.
21035         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
21036         2005-11-26.
21037
21038         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
21039         'signed char' to avoid problems with the built-in _Bool type.
21040         Reported by Paul Eggert on 2005-11-26.
21041
21042 2006-01-24  Bruno Haible  <bruno@clisp.org>
21043
21044         * gnulib-tool (func_import): Avoid constructing complicated sed
21045         expressions inside backquote.
21046         Report and solution by Mark D. Baushke <mdb@gnu.org>.
21047
21048 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
21049
21050         These changes imported from libc.
21051         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
21052         test and two separate function calls.
21053         * lib/strndup.c (__strndup): Add libc_hidden_def.
21054
21055 2006-01-23  Simon Josefsson  <jas@extundo.com>
21056
21057         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
21058         Remove the test_*_SOURCES variable: automake infers it by default.
21059         * modules/tls-tests: Likewise.
21060
21061 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21062
21063         Work around porting bugs reported by Dieter in
21064         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
21065         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
21066         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
21067         Include "getopt.h" first, to check interface.
21068         (getenv): Declare only if defined HAVE_DECL_GETENV &&
21069         !HAVE_DECL_GETENV.
21070         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
21071         (__strndup): Revert to K&R-style function dfns, the glibc style.
21072         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
21073         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
21074         Include strnlen.h first, to get prototype properly.
21075         (strnlen): Renamed from __strnlen.
21076         Remove weak alias.
21077
21078 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21079
21080         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
21081
21082 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21083
21084         * config/srclist.txt: Adjust to reflect glibc reorganization.
21085         This affects only comments.
21086
21087 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
21088
21089          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
21090          Reported by Bruce Korb <bkorb@gnu.org>.
21091
21092 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
21093
21094         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
21095         to pacify gcc -Wswitch-default.
21096
21097 2006-01-22  Bruno Haible  <bruno@clisp.org>
21098
21099         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
21100         temporary buffer for sprintf, take into account the precision also
21101         for 'd', 'i', 'u', 'o', 'x', 'X'.
21102
21103 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
21104
21105         * modules/argp-tests: New module
21106         * tests/test-argp.c: New file
21107         * tests/test-argp-2.sh: New file
21108
21109 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
21110
21111         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
21112         (__argp_base_name): Removed
21113         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
21114         typo.
21115         (__argp_base_name): Provide macro definition or extern declaration
21116         depending on the configuration
21117
21118 2006-01-20  Simon Josefsson  <jas@extundo.com>
21119
21120         * modules/inet_ntop (Depends-on): Depend on sys_socket.
21121
21122 2006-01-20  Simon Josefsson  <jas@extundo.com>
21123
21124         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
21125
21126 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21127
21128         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
21129         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
21130         Suggested by Bruno Haible.
21131
21132 2006-01-20  Karl Berry  <karl@gnu.org>
21133
21134         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
21135         until changes propagate, I guess.
21136
21137 2006-01-19  Simon Josefsson  <jas@extundo.com>
21138
21139         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
21140
21141 2006-01-19  Simon Josefsson  <jas@extundo.com>
21142
21143         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
21144
21145 2006-01-19  Simon Josefsson  <jas@extundo.com>
21146
21147         * gnulib-tool: Set check_PROGRAMS.
21148
21149         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
21150         modules/des-tests, modules/gc-arcfour-tests,
21151         modules/gc-arctwo-tests, modules/gc-des-tests,
21152         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
21153         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
21154         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
21155         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
21156         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
21157         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
21158         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
21159         test_*_SOURCES.
21160
21161 2006-01-18  Simon Josefsson  <jas@extundo.com>
21162
21163         * modules/socklen (Depends-on): Depend on sys_socket.
21164
21165 2006-01-18  Simon Josefsson  <jas@extundo.com>
21166
21167         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
21168         modules/des-tests, modules/gc-arcfour-tests,
21169         modules/gc-arctwo-tests, modules/gc-des-tests,
21170         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
21171         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
21172         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
21173         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
21174         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
21175         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
21176         $(EXEEXT) to automake TESTS variable, for mingw32.
21177
21178 2006-01-17  Simon Josefsson  <jas@extundo.com>
21179
21180         * modules/socklen (Include): Need sys/socket.h.
21181
21182 2006-01-17  Bruno Haible  <bruno@clisp.org>
21183
21184         * modules/ssize_t (Include): Add <sys/types.h>.
21185
21186 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
21187
21188         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
21189         it's not portable and it doesn't work with cross-compiles.
21190         Problem reported by Bruno Haible.  Fix missing-$ typo in
21191         'test "gl_cv_ignore_unused_libraries" ...' that prevented
21192         -zignore from being used with Sun's C compiler.
21193
21194 2006-01-12  Simon Josefsson  <jas@extundo.com>
21195
21196         * lib/base64.c: Fix warning, reported by Bruno Haible
21197         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
21198
21199 2006-01-12  Bruno Haible  <bruno@clisp.org>
21200
21201         * modules/ldd: New file.
21202         * build-aux/ldd.sh.in: New file.
21203         * MODULES.html.sh (Support for building libraries and executables): Add
21204         ldd.
21205
21206 2006-01-12  Bruno Haible  <bruno@clisp.org>
21207
21208         * m4/ldd.m4: New file.
21209
21210 2006-01-12  Bruno Haible  <bruno@clisp.org>
21211
21212         * gnulib-tool (func_import, func_create_testdir): Don't go into an
21213         endless loop while replacing $auxdir with build-aux.
21214
21215 2006-01-11  Simon Josefsson  <jas@extundo.com>
21216
21217         * lib/stdint_.h (SIZE_MAX): Add missing (.
21218
21219 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21220
21221         Sync from coreutils.
21222         * lib/md5.c: Fix commentary typos.
21223         (alignof, UNALIGNED_P): No need for a GCC-specific version.
21224         * lib/md5.h (__attribute__): Remove; unused.
21225         * lib/sha1.c: Fix commentary to match md5 better.
21226         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
21227         so that we don't need to worry about alignment.  All uses changed.
21228         This merges the 2005-10-28 md5 change into sha1.
21229
21230 2006-01-11  Jim Meyering  <jim@meyering.net>
21231
21232         Sync from coreutils.
21233         * lib/md5.c (OP): Fix spacing.
21234
21235 2006-01-11  Bruno Haible  <bruno@clisp.org>
21236
21237         Ensure automatic ordering between gl_LOCK and gl_ARGP.
21238         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
21239         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
21240
21241 2006-01-11  Bruno Haible  <bruno@clisp.org>
21242
21243         Ensure automatic ordering between gl_LOCK and gl_ARGP.
21244         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
21245         the "early" section as well.
21246
21247 2006-01-11  Bruno Haible  <bruno@clisp.org>
21248
21249         Avoid "ar: no archive members specified" error on MacOS X.
21250         * gnulib-tool (func_modules_add_dummy): New function.
21251         (func_import, func_create_testdir): Invoke it.
21252
21253 2006-01-11  Bruno Haible  <bruno@clisp.org>
21254
21255         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
21256         with $auxdir in AC_CONFIG_FILES statements.
21257
21258 2006-01-11  Bruno Haible  <bruno@clisp.org>
21259
21260         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21261         Initialize also noinst_HEADERS to empty.
21262
21263 2006-01-11  Bruno Haible  <bruno@clisp.org>
21264
21265         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
21266         variables.
21267         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
21268         autoreconf.
21269
21270 2006-01-11  Bruno Haible  <bruno@clisp.org>
21271
21272         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
21273         overridable by the user.
21274         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21275
21276 2006-01-10  Simon Josefsson  <jas@extundo.com>
21277
21278         * modules/sys_socket: New file.
21279
21280 2006-01-10  Simon Josefsson  <jas@extundo.com>
21281
21282         * m4/sys_socket_h.m4: New file.
21283
21284 2006-01-10  Simon Josefsson  <jas@extundo.com>
21285
21286         * lib/socket_.h: New file.
21287
21288 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21289
21290         * modules/readutmp (Maintainer): Add myself.
21291
21292 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21293
21294         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
21295         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
21296         People who are still concerned with buggy memcmp implementations
21297         can invoke gl_FUNC_MEMCMP themselves.
21298
21299 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21300
21301         * lib/regex_internal.h (BITSET_WORD_BITS):
21302         Work around a bug in 64-bit PGC (before version 6.1-2), where the
21303         preprocessor mishandles large unsigned values as if they were signed.
21304         Problem reported by Claudio Fontana in
21305         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
21306
21307 2006-01-10  Jim Meyering  <jim@meyering.net>
21308
21309         Avoid the double-free (first in fts_read, second in fts_close) that
21310         would occur when an `active' directory is made inaccessible (e.g.,
21311         via chmod a-x) during a traversal.
21312         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
21313         before returning.  Reproduce this failure by
21314         mkdir -p a/b; cd a; chmod a-x . b
21315         Reported by Stavros Passas.
21316
21317         Sync from coreutils.
21318         * lib/sha1.c: Tweak grammar in a comment.
21319
21320 2006-01-10  Jim Meyering  <jim@meyering.net>
21321
21322         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
21323         Patch by Joerg Sonnenberger.
21324
21325 2006-01-10  Bruno Haible  <bruno@clisp.org>
21326
21327         * modules/readutmp: Depend on module free.
21328         * modules/strtok_r: Depend on module restrict.
21329
21330 2006-01-10  Bruno Haible  <bruno@clisp.org>
21331
21332         * modules/gettext (configure.ac): Add an invocation of
21333         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
21334
21335 2006-01-10  Bruno Haible  <bruno@clisp.org>
21336
21337         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
21338         Reported by Werner Lemberg <wl@gnu.org>.
21339
21340 2006-01-10  Bruno Haible  <bruno@clisp.org>
21341
21342         * lib/localcharset.c: Update from GNU gettext.
21343
21344 2006-01-10  Bruno Haible  <bruno@clisp.org>
21345
21346         * lib/argp.h (__const): Remove macro. Use const instead.
21347         * lib/argp-fmtstream.h (__const): Likewise.
21348         * lib/glob_.h (__const): Remove macro.
21349         * lib/glob-libc.h: Use const instead of __const.
21350
21351 2006-01-10  Bruno Haible  <bruno@clisp.org>
21352
21353         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
21354         variable.
21355         Needed to avoid an automake error regarding the 'gettext' module.
21356
21357 2006-01-09  Simon Josefsson  <jas@extundo.com>
21358
21359         * modules/inet_ntop (Depends-on): Add restrict.
21360
21361 2006-01-09  Simon Josefsson  <jas@extundo.com>
21362
21363         * modules/gc-rijndael-tests (License): Put under LGPL.
21364
21365         * modules/gc-des-tests (License): Likewise.
21366
21367         * modules/gc-arcfour-tests (License): Likewise.
21368
21369         * modules/gc-arctwo-tests (License): Likewise.
21370
21371         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
21372
21373         * modules/gc-hmac-sha1-tests (Files): Likewise.
21374
21375         * modules/gc-hmac-md5-tests (License): Likewise.
21376
21377         * modules/gc-sha1-tests (License): Likewise.
21378
21379         * modules/gc-md5-tests (License): Likewise.
21380
21381         * modules/gc-md4-tests (License): Likewise.
21382
21383         * modules/gc-md2-tests (License): Likewise.
21384
21385         * modules/gc-tests (License): Likewise.
21386
21387         * modules/des-tests (License): Likewise.
21388
21389         * modules/md4-tests (License): Likewise.
21390
21391         * modules/md2-tests (License): Likewise.
21392
21393 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21394
21395         Sync from coreutils:
21396
21397         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
21398         * modules/lib-ignore: New file.
21399         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
21400         chdir-safer.m4, lchmod.m4.
21401         * modules/openat: Add mkdirat.c, openat-priv.h.
21402
21403 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21404
21405         Sync from coreutils.
21406         * m4/lib-ignore.m4: New file.
21407         * m4/lchmod.m4: New file.
21408
21409 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21410
21411         Sync from coreutils.
21412         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
21413         for write access: POSIX says that must fail.
21414         * lib/fts.c (diropen): Likewise.
21415         * lib/save-cwd.c (save_cwd): Likewise.
21416         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
21417         well, for minor improvements on hosts that lack O_DIRECTORY.
21418         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
21419         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
21420         Fall back on chown if open failed with EACCES.
21421
21422         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
21423         Report an error at compile-time if only a 1-second nominal clock
21424         resolution is found.
21425
21426         * lib/lchmod.h: New file.
21427         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
21428         (make_dir_parents): Use lchown rather than chown, and
21429         lchmod rather than chmod.
21430
21431         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
21432         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
21433         "proc" reported by n0dalus.
21434
21435         * lib/mountlist.c: Include <limits.h>.
21436         (dev_from_mount_options)
21437         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
21438         New function.  It no longer assumes "dev=" has the System V meaning
21439         on Linux (since it doesn't).  It also parses "dev=" more carefully.
21440         (read_file_system_list)
21441         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
21442         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
21443         dev= in that case.
21444
21445         * lib/posixtm.h (PDS_PRE_2000): New macro.
21446         * lib/posixtm.c (year): Arg is now syntax_bits rather than
21447         allow_century.  All usages changed.  Reject dates outside the range
21448         1969-1999 if PDS_PRE_2000 is used.
21449
21450 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21451
21452         Sync from coreutils.
21453         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
21454         (Time of day items): Mention the possibility of leap seconds.
21455         Problem reported by Dr. David Alan Gilbert.
21456
21457 2006-01-09  Jim Meyering  <jim@meyering.net>
21458
21459         Sync from coreutils.
21460
21461         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
21462
21463         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
21464
21465         * lib/modechange.c (mode_compile): Reject an invalid mode string
21466         that starts with an octal digit.  From Andreas Gruenbacher.
21467
21468         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
21469         and dup to open_safer and dup_safer, respectively.
21470         (openat_permissive): Fix typo in comment.
21471
21472         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
21473         "gettext.h"; either no longer needed or are guaranteed by openat.h.
21474         (_): Remove; no longer needed.
21475         (openat): Renamed from rpl_openat; no need for rpl_openat
21476         since openat.h renames openat for us.
21477         Replace most of the body with a call to openat_permissive,
21478         to avoid duplicate code.
21479         Port to (probably hypothetical) environments were mode_t is
21480         wider than int.
21481         (openat_permissive): Require mode arg, so that we can check
21482         types better.  Put it just after flags.  Change cwd failure
21483         indicator from pointer-to-bool to pointer-to-errno-value.
21484         All callers changed.
21485         Invoke openat_save_fail and/or openat_restore_fail if
21486         cwd_errno is null, so that openat can call us.
21487         (openat_permissive, fdopendir, fstatat, unlinkat):
21488         Simplify errno handling to avoid some duplicate code,
21489         as it's OK to set errno on success.
21490         * lib/openat.h: Revamp code so that function macros depend on
21491         __OPENAT_PREFIX only, not also on AT_FDCWD.
21492         (openat_ro): Remove.  Caller changed to use openat_permissive.
21493         (openat_permissive): Now a macro, if not a function.
21494         (openat_restore_fail, openat_save_fail): Now always functions,
21495         since mkdirat needs them even if __OPENAT_PREFIX is defined.
21496
21497         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
21498         and openat.c.
21499         * lib/mkdirat.c: Include openat-priv.h.
21500         Remove definitions of macros defined therein.
21501         * lib/openat.c: Likewise.
21502
21503         * lib/mkdirat.c (mkdirat): New file and function.
21504         * lib/openat.h (mkdirat): Declare.
21505
21506         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
21507
21508         * lib/openat.h (openat_permissive): Declare.
21509         (openat_ro): Define.
21510
21511         * lib/openat.c (EXPECTED_ERRNO): New macro.
21512         (openat_permissive): New function -- used in remove.c rewrite.
21513         (all functions): Set errno just before returning, only if there
21514         was an actual failure.
21515         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
21516
21517         Emulate openat-family functions using Linux's procfs, if possible.
21518         Idea and some code based on Ulrich Drepper's glibc changes.
21519
21520         * lib/openat.c: (BUILD_PROC_NAME): New macro.
21521         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
21522         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
21523         before falling back on save_cwd and restore_cwd.
21524         (fdopendir, fstatat, unlinkat): Likewise.
21525
21526         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
21527         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
21528
21529         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
21530         as second argument to va_arg.  Otherwise, some versions of gcc
21531         warn that `if this code is reached, the program will abort'.
21532
21533 2006-01-09  Jim Meyering  <jim@meyering.net>
21534
21535         Sync from coreutils.
21536         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
21537         Require openat-priv.h.
21538
21539 2006-01-09  Bruno Haible  <bruno@clisp.org>
21540
21541         * modules/strnlen (Include): Use strnlen.h.
21542
21543 2006-01-09  Bruno Haible  <bruno@clisp.org>
21544
21545         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
21546
21547 2006-01-09  Bruno Haible  <bruno@clisp.org>
21548
21549         * lib/sysexit_.h (EX_OK): New macro.
21550         Suggested by Martin Lambers <marlam@marlam.de>.
21551
21552 2006-01-09  Bruno Haible  <bruno@clisp.org>
21553
21554         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
21555         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
21556
21557 2006-01-09  Bruno Haible  <bruno@clisp.org>
21558
21559         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
21560         numbers.
21561
21562 2006-01-09  Bruno Haible  <bruno@clisp.org>
21563
21564         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
21565         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
21566         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
21567         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
21568
21569 2006-01-09  Bruno Haible  <bruno@clisp.org>
21570
21571         * build-aux/javacomp.sh.in: New file, moved from lib/.
21572         * modules/javacomp-script (Files): Update.
21573         (configure.ac): Add AC_CONFIG_FILES invocation.
21574         (EXTRA_DIST): Remove variable.
21575
21576         * build-aux/javaexec.sh.in: New file, moved from lib/.
21577         * modules/javaexec (Files): Update.
21578         (configure.ac): Add AC_CONFIG_FILES invocation.
21579         (EXTRA_DIST): Remove javaexec.sh.in.
21580
21581         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
21582         * modules/csharpcomp-script (Files): Update.
21583         (configure.ac): Add AC_CONFIG_FILES invocation.
21584         (EXTRA_DIST): Remove variable.
21585
21586         * build-aux/csharpexec.sh.in: New file, moved from lib/.
21587         * modules/csharpexec (Files): Update.
21588         (configure.ac): Add AC_CONFIG_FILES invocation.
21589         (EXTRA_DIST): Remove csharpexec.sh.in.
21590
21591 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
21592
21593         Sync from coreutils.
21594
21595         Add POSIX ACL support
21596         * lib/acl.h (copy_acl, set_acl): Add declarations.
21597         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
21598         systems other than Linux.
21599         (chmod_or_fchmod): New function: use fchmod when possible,
21600         and chmod otherwise.
21601         (file_has_acl): Add a POSIX ACL implementation, with a
21602         Linux-specific subcase.
21603         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
21604         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
21605         acls are unsupported.
21606         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
21607         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
21608         are unsupported.
21609
21610 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
21611
21612         Sync from coreutils.
21613         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
21614
21615 2006-01-07  Bruno Haible  <bruno@clisp.org>
21616
21617         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
21618         gl_EARLY.
21619
21620 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21621
21622         * lib/strftime.c (tzname): Don't declare if it is already #defined.
21623         Problem reported for Mingw by Mark Junker.
21624
21625 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21626
21627         * README: Gnulib normally doesn't generate a tarball.
21628
21629 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
21630
21631         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
21632         long int, not int, for nanosecond counts, so that people who are
21633         used to POSIX struct timespec won't be surprised.  Reported by Jim
21634         Meyering.
21635
21636 2005-12-28  Bruno Haible  <bruno@clisp.org>
21637
21638         * build-aux/config.rpath: Update from GNU gettext.
21639
21640 2005-12-16  Jim Meyering  <jim@meyering.net>
21641
21642         * modules/fprintftime: New module.
21643         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
21644
21645 2005-12-16  Jim Meyering  <jim@meyering.net>
21646
21647         * m4/fprintftime.m4: New file.
21648
21649 2005-12-16  Jim Meyering  <jim@meyering.net>
21650
21651         * lib/fprintftime.c, lib/fprintftime.h: New files.
21652
21653 2005-12-15  Simon Josefsson  <jas@extundo.com>
21654
21655         * modules/socklen (configure.ac): Fix M4 macro name, to align with
21656         new m4/socklen.m4.
21657
21658 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21659
21660         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
21661         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
21662
21663 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21664
21665         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
21666         * lib/argp-help.c (fill_in_uparams): Check if the constructed
21667         struct uparams is valid. Fall back to the default values if it is
21668         not.
21669
21670 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21671
21672         * modules/argp (Files): Add argp-pin.c
21673         (Depends-on): dirname
21674         (lib_SOURCES): Add argp-pin.c
21675
21676 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21677
21678         * m4/argp.m4:  Check if program_invocation_name and
21679         program_invocation_short_name are declared and define appropriate
21680         macros if they are not.
21681
21682 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21683
21684         * lib/argp-help.c (__argp_base_name): New function
21685         (__argp_short_program_name): Rewrite using __argp_base_name
21686         * lib/argp-namefrob.h: Define program_invocation_name and
21687         program_invocation_short_name if requested
21688         (__argp_base_name): Add prototype
21689         * lib/argp-parse.c (argp_def): Use gettext wrappers
21690         (argp_default_parser): Use __argp_base_name
21691         * lib/argp-pin.c: New file. Defines program_invocation_name and
21692         program_invocation_short_name on systems that lack them.
21693
21694 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
21695
21696         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
21697         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
21698         porting problem reported by Georg Schwarz in
21699         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
21700
21701 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
21702
21703         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
21704         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
21705         porting problem reported by Georg Schwarz in
21706         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
21707
21708 2005-12-05  Bruno Haible  <bruno@clisp.org>
21709
21710         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
21711         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
21712         Reported by Mark Junker <mjscod@gmx.de>.
21713
21714 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
21715
21716         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
21717         Use implementation from Albert Chin, with some
21718         comments/corrections by Stepan Kasal and myself.
21719
21720 2005-12-02  Bruno Haible  <bruno@clisp.org>
21721
21722         * gnulib-tool (func_import): Accept GPLed build tool modules when
21723         --lgpl is given.
21724         * modules/csharpcomp-script: New file.
21725         * modules/csharpcomp: Depend on it.
21726         * modules/javacomp-script: New file.
21727         * modules/javacomp: Depend on it.
21728         Suggested by Simon Josefsson.
21729
21730 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
21731
21732         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
21733         statement, to work around an HP-UX 10.20 compiler bug reported by
21734         Peter O'Gorman.
21735
21736 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
21737
21738         * modules/savedir (Depends-on): Add openat.
21739
21740 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
21741
21742         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
21743         (uintmax_t) [defined uintmax_t]: Do not declare.
21744         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
21745         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
21746         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
21747         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
21748         sake of portability to weird hosts that C allows (though we don't
21749         know of any practical examples).
21750
21751         * lib/savedir.h (fdsavedir): New decl.
21752         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
21753         contains most of the former guts of savedir.
21754         (savedir): Use savedirstream.
21755         Include "openat.h".
21756
21757 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21758
21759         * modules/obstack (Files): Add m4/ulonglong.m4.
21760         Problem reported by Davide Angelocola.
21761
21762 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21763
21764         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
21765         coreutils no longer futzes with rounding modes.
21766
21767 2005-11-14  Jim Meyering  <jim@meyering.net>
21768
21769         * lib/mkstemp-safer.c: Include <config.h>, required for possible
21770         replacement of mkstemp.
21771
21772 2005-11-10  Simon Josefsson  <jas@extundo.com>
21773
21774         * lib/readline.c: Remove EOL.
21775
21776 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21777
21778         * modules/gethrxtime (Depends-on): Add gettime.
21779
21780 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21781
21782         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
21783         or gettimeofday; no longer needed.
21784
21785 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21786
21787         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
21788         time business.
21789         (gethrxtime) [! (HAVE_NANOUPTIME
21790         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
21791         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
21792         our own approximation.
21793
21794 2005-11-08  Eric Blake  <ebb9@byu.net>
21795
21796         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
21797
21798 2005-11-08  Eric Blake  <ebb9@byu.net>
21799
21800         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
21801
21802 2005-11-04  Bruno Haible  <bruno@clisp.org>
21803
21804         * gnulib-tool: Implement --update mode.
21805
21806 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21807
21808         Fix porting problem reported by Theodoros V. Kalamatianos.
21809         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
21810         Don't assume that futimes failing means we must fail.
21811
21812 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21813
21814         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
21815         variables to suggest the intended function of the PATH_MAX check.
21816
21817 2005-10-30  Kean Johnston  <jkj@sco.com>
21818
21819         Trivial changes to support SCO systems.
21820         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
21821         as PATH_MAX.
21822         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
21823         where __ptr is null when no I/O is pending.
21824
21825 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21826
21827         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
21828         leave errno alone.  Problem reported by Dmitry V. Levin.
21829
21830 2005-10-28  Simon Josefsson  <jas@extundo.com>
21831
21832         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
21833         Test more.
21834
21835         * tests/test-gc-md2.c, tests/test-md2.c: New files.
21836
21837         * modules/md2, modules/md2-tests: New files.
21838
21839 2005-10-28  Simon Josefsson  <jas@extundo.com>
21840
21841         * m4/inet_ntop.m4: More tests.
21842
21843         * m4/gc-md2.m4, md2.m4: New file.
21844
21845 2005-10-28  Simon Josefsson  <jas@extundo.com>
21846
21847         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
21848         "restrict" keywords, as per POSIX.  Protect the function
21849         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
21850         Don't use K&R prototypes.  Check the sprintf return values.
21851         Re-define EAFNOSUPPORT if not present.  Indent.
21852
21853         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
21854         suggested by Bruno Haible <bruno@clisp.org>.
21855
21856         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
21857
21858         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
21859
21860         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
21861         libgcrypt).
21862
21863         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
21864
21865         * lib/md2.h, lib/md2.c: New files.
21866
21867 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
21868
21869         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
21870         errno alone.  Problem reported by Frederic Jolliton.
21871
21872 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
21873
21874         * modules/verify (License): Change from GPL to LGPL.  This is a
21875         tiny module and there are apparently near-equivalents that are
21876         under the BSD license.
21877
21878 2005-10-24  Simon Josefsson  <jas@extundo.com>
21879
21880         * modules/sha1: Relicense to LGPL.
21881
21882 2005-10-24  Simon Josefsson  <jas@extundo.com>
21883
21884         * lib/md4.h: Shrink buffer size, now that we changed the type.
21885
21886 2005-10-23  Simon Josefsson  <jas@extundo.com>
21887
21888         * gnulib-tool (func_import): Fix --tests-base.
21889
21890 2005-10-22  Simon Josefsson  <jas@extundo.com>
21891
21892         * modules/arcfour (Depends-on): Need stdint.
21893
21894 2005-10-22  Simon Josefsson  <jas@extundo.com>
21895
21896         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
21897         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
21898
21899 2005-10-22  Simon Josefsson  <jas@extundo.com>
21900
21901         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
21902         suggested by Bruno Haible <bruno@clisp.org>.
21903
21904 2005-10-22  Simon Josefsson  <jas@extundo.com>
21905
21906         * lib/crc.h: Include stddef.h, for size_t.
21907
21908 2005-10-22  Simon Josefsson  <jas@extundo.com>
21909
21910         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
21911         arcfour_context struct (simplify test vector testing in GNU
21912         Shishi).
21913
21914 2005-10-21  Simon Josefsson  <jas@extundo.com>
21915
21916         * modules/des, modules/des-tests: New files.
21917
21918         * modules/gc-des, modules/gc-des-tests: New files.
21919
21920         * tests/test-des.c, tests/test-gc-des.c: New file.
21921
21922 2005-10-21  Simon Josefsson  <jas@extundo.com>
21923
21924         * modules/arctwo, modules/arctwo-tests: New files.
21925
21926         * tests/test-arctwo.c: New file.
21927
21928         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
21929
21930         * tests/test-gc-arctwo.c: New file.
21931
21932 2005-10-21  Simon Josefsson  <jas@extundo.com>
21933
21934         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
21935         Bruno Haible <bruno@clisp.org>.
21936
21937         * m4/gc-des.m4: New file.
21938
21939 2005-10-21  Simon Josefsson  <jas@extundo.com>
21940
21941         * m4/arctwo.m4: New file.
21942
21943         * m4/gc-arctwo.m4: New file.
21944
21945 2005-10-21  Simon Josefsson  <jas@extundo.com>
21946
21947         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
21948         block.
21949
21950 2005-10-21  Simon Josefsson  <jas@extundo.com>
21951
21952         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
21953         <bruno@clisp.org>.
21954
21955         * lib/hmac-sha1.c (hmac_sha1): Likewise.
21956
21957         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
21958         Bruno Haible <bruno@clisp.org>.
21959
21960         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
21961         <bruno@clisp.org>.
21962
21963 2005-10-21  Simon Josefsson  <jas@extundo.com>
21964
21965         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
21966
21967 2005-10-21  Simon Josefsson  <jas@extundo.com>
21968
21969         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
21970
21971 2005-10-21  Simon Josefsson  <jas@extundo.com>
21972
21973         * lib/des.h, lib/des.c: New files.
21974
21975         * lib/gc-gnulib.c: Support DES.c
21976
21977 2005-10-21  Simon Josefsson  <jas@extundo.com>
21978
21979         * lib/arctwo.h, lib/arctwo.c: New files.
21980
21981         * lib/gc-gnulib.c: Support ARCTWO.
21982
21983 2005-10-21  Simon Josefsson  <jas@extundo.com>
21984
21985         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
21986         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21987
21988 2005-10-21  Simon Josefsson  <jas@extundo.com>
21989
21990         * gnulib-tool (func_import, func_create_testdir): Define automake
21991         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
21992         Makefile.am snippet),
21993         suggested by Bruno Haible <bruno@clisp.org>.
21994
21995         * modules/gc (Makefile.am): Use it.
21996
21997 2005-10-21  Bruno Haible  <bruno@clisp.org>
21998
21999         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
22000         patch.
22001
22002 2005-10-19  Simon Josefsson  <jas@extundo.com>
22003
22004         * tests/test-gc-rijndael.c: New file.
22005
22006         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
22007
22008 2005-10-19  Simon Josefsson  <jas@extundo.com>
22009
22010         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
22011         interface too.
22012
22013 2005-10-19  Simon Josefsson  <jas@extundo.com>
22014
22015         * tests/test-gc-arcfour.c: New file.
22016
22017         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
22018
22019 2005-10-19  Simon Josefsson  <jas@extundo.com>
22020
22021         * modules/gc-md4, modules/gc-md4-tests: New file.
22022
22023         * tests/test-gc-md4.c: New file.
22024
22025 2005-10-19  Simon Josefsson  <jas@extundo.com>
22026
22027         * m4/gc-md4.m4: New file.
22028
22029 2005-10-19  Simon Josefsson  <jas@extundo.com>
22030
22031         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
22032         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
22033         <kasal@ucw.cz>.
22034
22035 2005-10-19  Simon Josefsson  <jas@extundo.com>
22036
22037         * m4/gc-arcfour.m4: New file.
22038
22039         * m4/gc-rijndael.m4: New file.
22040
22041 2005-10-19  Simon Josefsson  <jas@extundo.com>
22042
22043         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
22044
22045 2005-10-19  Simon Josefsson  <jas@extundo.com>
22046
22047         * lib/gc-gnulib.c: Support ARCFOUR.
22048
22049 2005-10-19  Simon Josefsson  <jas@extundo.com>
22050
22051         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
22052         support.
22053
22054         * lib/gc.h: Add ECB enum type.
22055
22056         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
22057
22058 2005-10-18  Simon Josefsson  <jas@extundo.com>
22059
22060         * tests/test-md5.c: New file.
22061
22062         * modules/md5-tests: New file.
22063
22064 2005-10-18  Simon Josefsson  <jas@extundo.com>
22065
22066         * tests/test-md4.c: New file.
22067
22068         * modules/md4, modules/md4-tests: New files.
22069
22070 2005-10-18  Simon Josefsson  <jas@extundo.com>
22071
22072         * m4/md4.m4: New file.
22073
22074 2005-10-18  Simon Josefsson  <jas@extundo.com>
22075
22076         * lib/md4.h, lib/md4.c: New files, based on md5.?.
22077
22078 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
22079
22080         * gnulib-tool (func_create_testdir): Omit the second check whether
22081         BUILT_SOURCES in nonempty.
22082
22083 2005-10-17  Simon Josefsson  <jas@extundo.com>
22084
22085         * tests/test-rijndael.c: New file.
22086
22087 2005-10-17  Simon Josefsson  <jas@extundo.com>
22088
22089         * modules/sha1: Depend on stdint instead of md5.
22090
22091         * modules/md5: Depend on stdint, remove uint32_t.
22092
22093 2005-10-17  Simon Josefsson  <jas@extundo.com>
22094
22095         * modules/gc-sha1-tests: New file.
22096
22097         * tests/test-gc-sha1.c: New file.
22098
22099 2005-10-17  Simon Josefsson  <jas@extundo.com>
22100
22101         * m4/md5.m4: Remove call to uint32_t.m4.
22102
22103 2005-10-17  Simon Josefsson  <jas@extundo.com>
22104
22105         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
22106
22107         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
22108         md5.h.
22109
22110         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
22111
22112         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
22113
22114 2005-10-17  Simon Josefsson  <jas@extundo.com>
22115
22116         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
22117
22118 2005-10-17  Simon Josefsson  <jas@extundo.com>
22119
22120         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
22121
22122 2005-10-17  Simon Josefsson  <jas@extundo.com>
22123
22124         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
22125
22126         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
22127
22128 2005-10-17  Bruno Haible  <bruno@clisp.org>
22129
22130         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
22131         that it can also be used in a test.
22132
22133 2005-10-16  Bruno Haible  <bruno@clisp.org>
22134
22135         * gnulib-tool (func_emit_tests_Makefile_am): Also define
22136         TESTS_ENVIRONMENT, so that individual tests can augment it.
22137
22138         * gnulib-tool (func_create_testdir): Use an intermediate target for
22139         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
22140         macros, like $(ALLOCA_H), which cannot be passed through the command
22141         line.
22142
22143 2005-10-15  Simon Josefsson  <jas@extundo.com>
22144
22145         * modules/rijndael-tests: New file.
22146
22147         * modules/rijndael: New file.
22148
22149 2005-10-15  Simon Josefsson  <jas@extundo.com>
22150
22151         * m4/rijndael.m4: New file.
22152
22153 2005-10-15  Simon Josefsson  <jas@extundo.com>
22154
22155         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
22156
22157         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
22158
22159 2005-10-14  Simon Josefsson  <jas@extundo.com>
22160
22161         * tests/test-arcfour.c: New file.
22162
22163         * modules/arcfour, modules/arcfour-tests: New files.
22164
22165 2005-10-14  Simon Josefsson  <jas@extundo.com>
22166
22167         * m4/arcfour.m4: New file.
22168
22169 2005-10-14  Simon Josefsson  <jas@extundo.com>
22170
22171         * lib/arcfour.h, lib/arcfour.c: New files.
22172
22173 2005-10-14  Roland McGrath  <roland@redhat.com>
22174
22175         Import from libc.  [BZ #1331]
22176         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
22177         macro argument.
22178         Reported by Matej Vela <vela@debian.org>.
22179
22180 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
22181
22182         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
22183         include <wchar.h>; no longer needed.
22184
22185 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
22186
22187         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
22188
22189 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
22190         and  Ulrich Drepper  <drepper@redhat.com>
22191
22192         Import from libc.
22193         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
22194         instead of inline stream orientation test and two separate
22195         function calls.  Pay no attention to USE_IN_LIBIO.
22196
22197 2005-10-13  Simon Josefsson  <jas@extundo.com>
22198
22199         * modules/gc-hmac-md5-tests: New file.
22200
22201         * tests/test-gc-hmac-sha1.c: New file.
22202
22203         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
22204
22205         * modules/gc-hmac-md5-tests: New file.
22206
22207         * tests/test-gc-md5.c: New file.
22208
22209         * modules/gc-md5-tests: New file.
22210
22211 2005-10-13  Simon Josefsson  <jas@extundo.com>
22212
22213         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
22214         Move memory allocation outside of loop.
22215
22216 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
22217
22218         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
22219         intermediate directory is in a read-only file system.  Problem
22220         reported by Eric Blake.
22221
22222 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
22223
22224         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
22225
22226 2005-10-12  Simon Josefsson  <jas@extundo.com>
22227
22228         * tests/test-hmac-sha1.c: New file.
22229
22230         * modules/hmac-sha1-tests: New file.
22231
22232         * modules/hmac-sha1: New file.
22233
22234 2005-10-12  Simon Josefsson  <jas@extundo.com>
22235
22236         * modules/gc-sha1: New file.
22237
22238 2005-10-12  Simon Josefsson  <jas@extundo.com>
22239
22240         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
22241
22242         * tests/test-gc-pbkdf2-sha1.c: New file.
22243
22244 2005-10-12  Simon Josefsson  <jas@extundo.com>
22245
22246         * modules/gc-md5, modules/gc-hmac-md5: New files.
22247
22248         * modules/gc (Files): Remove md5, memxor and hmac files.
22249
22250 2005-10-12  Simon Josefsson  <jas@extundo.com>
22251
22252         * m4/gc-pbkdf2-sha1.m4: New file.
22253
22254         * m4/gc-hmac-sha1.m4: New file.
22255
22256         * m4/gc-sha1: New file.
22257
22258         * m4/hmac-sha1.m4: New file.
22259
22260 2005-10-12  Simon Josefsson  <jas@extundo.com>
22261
22262         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
22263
22264         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
22265
22266 2005-10-12  Simon Josefsson  <jas@extundo.com>
22267
22268         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
22269         suggested by Bruno Haible <bruno@clisp.org>.
22270
22271 2005-10-12  Simon Josefsson  <jas@extundo.com>
22272
22273         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
22274
22275 2005-10-12  Simon Josefsson  <jas@extundo.com>
22276
22277         * lib/gc-pbkdf2-sha1.c: New file.
22278
22279         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
22280
22281 2005-10-12  Simon Josefsson  <jas@extundo.com>
22282
22283         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
22284
22285         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
22286
22287 2005-10-12  Simon Josefsson  <jas@extundo.com>
22288
22289         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
22290         GC_USE_HMAC_MD5, respectively.
22291
22292         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
22293         (gc_md5): Fix typo.
22294
22295         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
22296
22297         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
22298
22299         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
22300
22301 2005-10-12  Bruno Haible  <bruno@clisp.org>
22302
22303         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
22304         Reported by Stepan Kasal <kasal@ucw.cz>.
22305
22306 2005-10-11  Simon Josefsson  <jas@extundo.com>
22307
22308         * tests/test-crc.c: New file.
22309
22310         * modules/crc, modules/crc-tests: New files.
22311
22312 2005-10-11  Simon Josefsson  <jas@extundo.com>
22313
22314         * m4/crc.m4: New file.
22315
22316 2005-10-11  Simon Josefsson  <jas@extundo.com>
22317
22318         * lib/gc.h: Add gc_hash and gc_hash_buffer.
22319
22320         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
22321
22322         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
22323
22324 2005-10-11  Simon Josefsson  <jas@extundo.com>
22325
22326         * lib/crc.h, lib/crc.c: New files.
22327
22328         * lib/gc.h (gc_hash_buffer): Add doc.
22329
22330 2005-10-11  Bruno Haible  <bruno@clisp.org>
22331
22332         * modules/c-strcasestr: New file.
22333         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
22334
22335 2005-10-11  Bruno Haible  <bruno@clisp.org>
22336
22337         * modules/c-strcase: New file.
22338         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
22339
22340 2005-10-11  Bruno Haible  <bruno@clisp.org>
22341
22342         * lib/strcasecmp.c: Include limits.h.
22343         (strcasecmp): Avoid integer overflow on exotic platforms.
22344         * lib/strncasecmp.c: Include limits.h.
22345         (strncasecmp): Avoid integer overflow on exotic platforms.
22346         Reported by Paul Eggert.
22347
22348 2005-10-11  Bruno Haible  <bruno@clisp.org>
22349
22350         * lib/c-strcasestr.h: New file, from GNU gettext.
22351         * lib/c-strcasestr.c: New file, from GNU gettext.
22352
22353 2005-10-11  Bruno Haible  <bruno@clisp.org>
22354
22355         * lib/c-strcase.h: New file, from GNU gettext.
22356         * lib/c-strcasecmp.c: New file, from GNU gettext.
22357         * lib/c-strncasecmp.c: New file, from GNU gettext.
22358
22359 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22360
22361         * modules/mempcpy (License): GPL -> LGPL.
22362         * modules/strchrnul (License): Likewise.
22363         * modules/sysexits (License): Likewise.
22364
22365 2005-10-08  Simon Josefsson  <jas@extundo.com>
22366
22367         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
22368
22369 2005-10-07  Simon Josefsson  <jas@extundo.com>
22370
22371         * m4/memxor.m4: Remove gl_C_RESTRICT call.
22372
22373 2005-10-06  Simon Josefsson  <jas@extundo.com>
22374
22375         * tests/test-hmac-md5.c: New file.
22376
22377         * modules/hmac-md5-tests: New file.
22378
22379         * modules/hmac-md5: New file.
22380
22381 2005-10-06  Simon Josefsson  <jas@extundo.com>
22382
22383         * m4/hmac-md5.m4: New file.
22384
22385         * m4/memxor.m4: Require gl_C_RESTRICT.
22386
22387 2005-10-06  Simon Josefsson  <jas@extundo.com>
22388
22389         * lib/memxor.c (memxor): Avoid casts and warnings.
22390
22391 2005-10-06  Simon Josefsson  <jas@extundo.com>
22392
22393         * lib/hmac-md5.c: New file.
22394
22395         * lib/hmac.h: New file.
22396
22397 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
22398
22399         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
22400         promotes to int, not unsigned int, to catch the AIX 5.3
22401         compiler bug.
22402
22403 2005-10-05  Simon Josefsson  <jas@extundo.com>
22404
22405         * modules/memxor: New file.
22406
22407         * modules/iconv (Files): Move config.rpath to havelib, it is used
22408         there.
22409
22410         * modules/havelib (Files): Add config.rpath.
22411
22412 2005-10-05  Simon Josefsson  <jas@extundo.com>
22413
22414         * m4/memxor.m4: New file.
22415
22416 2005-10-05  Simon Josefsson  <jas@extundo.com>
22417
22418         * lib/memxor.c (memxor): Fix compiler error.
22419
22420         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
22421         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
22422
22423         * lib/memxor.h, lib/memxor.c: New files.
22424
22425         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
22426         we assume all systems have it, suggested by Jim Meyering
22427         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
22428         any systems lack sys/socket.h; mingw32 is known to lack it, but we
22429         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
22430         same reasons.
22431
22432 2005-10-05  Simon Josefsson  <jas@extundo.com>
22433
22434         * config/srclist.txt: Add glibc bug 1423 for md5.h.
22435
22436 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22437
22438         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
22439         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
22440         needed, since the source code now assumes these .h files.
22441
22442 2005-10-05  Derek Price  <derek@ximbiot.com>
22443
22444         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
22445
22446 2005-10-05  Bruno Haible  <bruno@clisp.org>
22447
22448         * modules/stdint (License): Change to LGPL.
22449
22450 2005-10-04  Simon Josefsson  <jas@extundo.com>
22451
22452         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
22453         D. Baushke" <mdb@gnu.org>.
22454
22455 2005-10-04  Bruno Haible  <bruno@clisp.org>
22456
22457         * lib/verify.h (verify_true): Provide alternative definition for C++.
22458
22459 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22460
22461         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
22462         (SSIZE_MAX): New macro, if not already defined.
22463         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
22464         than 2 GiB.
22465
22466 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
22467
22468         Sync from coreutils.
22469         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
22470         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
22471         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
22472         ULLONG_MAX doesn't work with 2.7.2.1.
22473
22474 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
22475
22476         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
22477         From Ben Pfaff.
22478
22479         * modules/exclude (Depends-on): Depend on verify.
22480         * modules/strtoimax (Depends-on): Likewise.
22481         * modules/utimecmp (Depends-on): Likewise.
22482
22483 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
22484
22485         * lib/exclude.c: Include verify.h.
22486         (verify): Remove.  All callers changed to use verify.h's version.
22487         * lib/strtoimax.c: Likewise.
22488         * lib/utimecmp.c: Likewis.e
22489
22490         Sync from coreutils.
22491         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
22492         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
22493         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
22494         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
22495         bother returning ENOSYS if settimeofday or stime fails; just let
22496         them return whatever errno they want to return.
22497         * lib/utimens.c: Include unistd.h, for dup2.
22498         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
22499         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
22500
22501 2005-10-02  Jim Meyering  <jim@meyering.net>
22502
22503         Sync from coreutils.
22504         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
22505         from glibc-2.2.5 that fails for read-only files.
22506
22507 2005-10-02  Jim Meyering  <jim@meyering.net>
22508
22509         Sync from coreutils.
22510         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
22511         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
22512         `#if HAVE_CONFIG_H'.
22513         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
22514         Remove AT_FDCWD test.
22515         Do not consume the fd unless successful.
22516         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
22517         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
22518         block, so that we don't even try to compile it if settimeofday is
22519         available.  This works around a compilation failure on OSF1 V5.1,
22520         due to stime requiring a `long int*' while tv_sec is `int'.
22521
22522 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
22523
22524         Sync from coreutils.
22525         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
22526         against `yes', rather than just testing for nonempty.
22527
22528 2005-10-01  Simon Josefsson  <jas@extundo.com>
22529
22530         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
22531         and Darwin.
22532
22533         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
22534         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
22535         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
22536         freeaddrinfo and gai_strerror are declared by the POSIX headers.
22537         Check if struct addrinfo is declared.
22538
22539 2005-10-01  Simon Josefsson  <jas@extundo.com>
22540
22541         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
22542         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
22543         AI_* and EAI_* definitions.  Protect function declarations.
22544
22545 2005-10-01  Jim Meyering  <jim@meyering.net>
22546
22547         Sync from coreutils.
22548
22549         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
22550         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
22551         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
22552         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
22553         in the inet and nsl libraries.  Required on Solaris 5.7.
22554
22555 2005-10-01  Jim Meyering  <jim@meyering.net>
22556
22557         Sync from coreutils.
22558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
22559         in the inet and nsl libraries.  Required on Solaris 5.7.
22560
22561 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
22562
22563         * lib/getdelim.c (getdelim): Remove unused variables.
22564
22565 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
22566
22567         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
22568         so that the code works even with ancient cpp.  Portability problem
22569         with GCC 2.7.2.1 reported by Thomas M.Ott.
22570
22571 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
22572
22573         * modules/regex (Depends-on): Add strcase.
22574
22575         * modules/gethostname (Licence): Change from GPL to LGPL, since
22576         gethostname.c is a trivial implementation of a standard library
22577         function.
22578         * modules/poll (License): Change from GPL to LGPL, since it's
22579         derived from LGPL code.
22580
22581 2005-09-27  Jim Meyering  <jim@meyering.net>
22582
22583         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
22584         HAVE_CONFIG_H.
22585
22586         * lib/intprops.h (signed_type_or_expr__): Define.
22587         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
22588         for unsigned types.
22589
22590 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22591
22592         * lib/verify.h (verify_expr): Remove, replacing with:
22593         (verify_true): New macro that returns true instead of void.
22594         (verify_type__): Remove.
22595         (verify): Use verify_true rather than verify_type__.
22596
22597 2005-09-26  Bruno Haible  <bruno@clisp.org>
22598
22599         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
22600         is necessary.
22601         (lib_SOURCES): Remove mbchar.c.
22602         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
22603         (Files): Add m4/mbrtowc.m4.
22604         * modules/mbiter: Likewise.
22605         * modules/mbuiter: Likewise.
22606
22607 2005-09-26  Bruno Haible  <bruno@clisp.org>
22608
22609         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
22610         compile mbchar.c if they are not both present.
22611         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
22612         * m4/mbiter.m4 (gl_MBITER): Likewise.
22613         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
22614         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
22615         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
22616
22617 2005-09-25  Jim Meyering  <jim@meyering.net>
22618
22619         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
22620         also uses socklen_t.
22621
22622 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
22623
22624         * lib/utimens.c (ENOSYS): Define if not already defined.
22625         (futimens): Support having a null PATH if the file descriptor
22626         is nonnegative.
22627
22628         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
22629         Remove.
22630         (__attribute): Define to empty unless GCC 3.1 or later.
22631         This works around a core dump on OpenBSD 3.4, which has GCC
22632         2.95.3, which dumps core when given __attribute__(()).  It also
22633         simplifies other tests, since we really don't want to bother with
22634         worrying about which ancient version of GCC supported what.
22635         Original problem reported by Yoann Vandoorselaere, with part of
22636         the fix suggested by Derek Price.
22637
22638 2005-09-24  Jim Meyering  <jim@meyering.net>
22639
22640         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
22641         so we can once again use a positive bitfield width of 1 -- now we
22642         don't have to explain why we were using a bitfield width of 2.
22643
22644 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
22645
22646         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
22647         and similarly for the other external symbols.  Problem reported
22648         by James Gallager.
22649
22650         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
22651         bug reported by Jim Meyering.
22652
22653         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
22654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
22655         not needed, since socklen is a prerequisite module.
22656
22657 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
22658
22659         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
22660         Problem reported by Eric Blake.
22661         (getaddrinfo): Initialize se so that it's not garbage.
22662         Redo internal storage allocation so that it doesn't make unportable
22663         assumptions about alignment.
22664         Fix a memory leak.
22665
22666         * lib/utimens.c (futimens): Use futimesat if available.
22667         Prefer it to futimes since it doesn't have the futimes bug.
22668
22669         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
22670         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
22671         Instead, declare a function that returns a pointer to an array,
22672         and use verify_type__ to declare the size of the array.
22673         Problem and germ of a solution reported by Bruno Haible.
22674         (verify_type__): Use 2, not 1, for bitfield size, to avoid
22675         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
22676
22677 2005-09-23  Jim Meyering  <jim@meyering.net>
22678
22679         Sync from coreutils.
22680         Correct build failure (socklen_t not defined) on at least
22681         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
22682         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
22683
22684 2005-09-23  Jim Meyering  <jim@meyering.net>
22685
22686         * modules/getaddrinfo (Depends-on): Add socklen.
22687
22688 2005-09-23  Bruno Haible  <bruno@clisp.org>
22689
22690         * tests/test-verify.c: New file.
22691
22692 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22693
22694         Sync from coreutils.
22695
22696         * modules/argmatch (Depends-on): Add verify.
22697         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
22698         unistd-safer.
22699         * modules/save-cwd (Depends-on): Likewise.
22700
22701         * modules/openat (Files): Add lib/openat-die.c.
22702         (Depends-on): Remove error, exitfail.
22703         Add dirname.
22704
22705         * modules/verify: New file.
22706         * MODULES.html.sh (Diagnostics <assert.h>): New section,
22707         with "verify" module.
22708
22709 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22710
22711         Sync from coreutils.
22712
22713         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
22714         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
22715         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
22716         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
22717         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
22718         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
22719         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
22720         Don't bother checking for string.h, stdlib.h, unistd.h.
22721         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
22722         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
22723         module's job.
22724         * m4/jm-macros.m4 (gl_MACROS): Likewise.
22725         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
22726
22727         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
22728         (gl_GETDATE): Use it.
22729
22730         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
22731
22732 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22733
22734         Sync from coreutils.
22735
22736         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
22737         stat-time.h.
22738         * lib/argmatch.h: Include verify.h
22739         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
22740         (ARGMATCH_ASSERT): Remove; unused.
22741         * lib/canonicalize.c: Assume STDC_HEADERS.
22742         * lib/exclude.c: Include "strcase.h".
22743         * lib/regex_internal.h [!defined _LIBC]: Likewise.
22744         * lib/getusershell.c: Include stdio--.h rather than stdio.h
22745         and stdio-safer.h.
22746         (getusershell): Call fopen, not fopen_safer.
22747         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
22748         Do not include unistd-safer.h.
22749         (save_cwd): Don't call fd_safer; no longer needed
22750         now that we include fcntl--.h.
22751
22752         * lib/getdate.y (relative_time): New type.
22753         (RELATIVE_TIME_0): New constant.
22754         (parser_control): Use relative_time instead of doing it ourselves.
22755         (%union): Add new relative_time rel member.
22756         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
22757         Now typeless.
22758         (relunit, relunit_snumber): Now of type rel.
22759         (zone, rel, relunit, get_date): Adjust to above changes.
22760
22761         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
22762         Do not include unistd-safer.h.
22763         (getloadavg): Don't call fd_safer; no longer needed
22764         now that we include fcntl--.h.
22765
22766         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
22767         (make_dir_parents): Treat ENOSYS like EEXIST.
22768
22769         Improve quality of diagnostics on restore_cwd failure.
22770         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
22771         (make_dir_parents): Last arg is now int * (for errno), not bool *.
22772         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
22773         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
22774         each time through the loop.  Do not diagnose restore_cwd failure;
22775         that is the caller's job (and perhaps the caller does not care).
22776
22777         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
22778         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
22779         If the file already exists but is not a directory, don't bother
22780         to try to make its parents.
22781         Close potential file descriptor leak if we can't chdir("/") (!).
22782         Don't always return true if chdir($PWD) fails; return true only
22783         if the requested action was done successfully (except for the
22784         chdir($PWD)).
22785         Don't log final directory unless we actually made it.
22786         Refactor to avoid duplicate code to fix up permissions.
22787         Don't attempt to fix up parent permissions if chdir($PWD) fails.
22788
22789         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
22790         to make it a bit faster and (I hope) clearer.
22791         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
22792         Fix bug in formats like %2N.
22793
22794         * lib/verify.h: New file.
22795
22796 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22797
22798         Sync from coreutils.
22799         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
22800
22801 2005-09-22  Jim Meyering  <jim@meyering.net>
22802
22803         Sync from coreutils.
22804
22805         * m4/lstat.m4 (gl_FUNC_LSTAT):
22806         Use AC_LIBSOURCES to require lstat.c and lstat.h.
22807         Remove obsolete comment.
22808         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
22809         * m4/xstrtod.m4: Likewise.
22810
22811         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
22812
22813 2005-09-22  Jim Meyering  <jim@meyering.net>
22814
22815         Sync from coreutils.
22816
22817         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
22818
22819         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
22820         the .tm_year member, since otherwise gcc-4.0 would now warn about
22821         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
22822
22823         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
22824         order to avoid an unsuppressible warning from gcc on 64-bit systems.
22825
22826         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
22827         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
22828         when run in a time zone for which daylight savings time is in effect
22829         for the starting date.
22830
22831         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
22832         stop us from restricting permissions of just-created absolute-named
22833         directories.
22834         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
22835         to restore initial working directory.
22836         * lib/mkdir-p.c (make_dir_parents): New parameter:
22837         different_working_dir, to tell caller if/when we change the working
22838         directory and are unable to return to the initial one.
22839         * lib/mkdir-p.h (make_dir_parents): Update prototype.
22840         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
22841         `return false'.  This fixes a bug introduced on 2004-07-30.
22842
22843         * lib/openat.c (fdopendir): Be sure to close the supplied
22844         file descriptor before returning.  This makes our replacement
22845         implementation a little closer to Solaris's, where fdopendir
22846         ties the file descriptor to the returned DIR* pointer.
22847         * lib/openat.c (unlinkat): New function.
22848         * lib/openat.h (unlinkat): Add prototype.
22849         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
22850         (openat_restore_fail): Rename from openat_restore_die.
22851         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
22852
22853         Provide an alternative to exiting immediately upon save_cwd or
22854         restore_cwd failure.  Now, an application can arrange e.g.,
22855         to perform a longjump in that case.
22856         * lib/openat.c: Include dirname.h.
22857         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
22858         (rpl_openat, fdopendir, fstatat): Call openat_save_die
22859         and openat_restore_die rather than calling error directly.
22860         Don't include "error.h" or "exitfail.h"; they're no longer needed.
22861
22862         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
22863         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
22864         define.
22865
22866         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
22867         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
22868                             int utc, int nanoseconds);
22869         Background:
22870         date should not have to allocate a megabyte of virtual memory to
22871         handle a format argument like +%1048575T.  When implemented with
22872         strftime, it must allocate such a buffer, use strftime to fill it
22873         in, print it, then free it.
22874         With fprintftime, it simply prints everything and exits.
22875         With no need for memory allocation, that's one fewer way to fail.
22876         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
22877         optional field width, not before, so we accept %9:z, not %:9z.
22878         (my_strftime): Be sure to use L_('x') for literals.
22879
22880         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
22881         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
22882         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
22883         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
22884         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
22885         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
22886         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
22887         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
22888         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
22889         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
22890         * lib/xgethostname.c, lib/xreadlink.c:
22891         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
22892
22893         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
22894         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
22895         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
22896         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
22897         and don't include <sys/file.h>).
22898
22899 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
22900
22901         Sync from coreutils.
22902
22903         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
22904         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
22905         [!LDAV_DONE]: Avoid unused variable warning.
22906
22907 2005-09-21  Bruno Haible  <bruno@clisp.org>
22908
22909         * lib/unicodeio.h (unicode_to_mb): New declaration.
22910
22911 2005-09-20  Derek Price  <derek@ximbiot.com>
22912
22913         * lib/getaddrinfo.c: Don't include <netdb.h> included from
22914         getaddrinfo.h.
22915
22916 2005-09-20  Bruno Haible  <bruno@clisp.org>
22917
22918         * gnulib-tool: Remove trailing slashes from the values specified for
22919         --source-base, --m4-base, --tests-base, --aux-dir.
22920         Suggested by Simon Josefsson <jas@extundo.com>.
22921
22922 2005-09-20  Bruno Haible  <bruno@clisp.org>
22923
22924         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
22925         func_modules_to_filelist, func_import, func_create_testdir): Make all
22926         sorting results locale-independent, so that gnulib-cache.m4 doesn't
22927         change when gnulib-tool is invoked in a different locale.
22928
22929 2005-09-19  Simon Josefsson  <jas@extundo.com>
22930
22931         * m4/socklen.m4: Fix typo.
22932
22933 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22934
22935         Use a consistent style for including <config.h>.
22936         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
22937         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
22938         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
22939         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
22940         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
22941         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
22942         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
22943         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
22944         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
22945         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
22946         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
22947         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
22948         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
22949         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
22950         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
22951         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
22952         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
22953         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
22954         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
22955         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
22956         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
22957         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
22958         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
22959         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
22960         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
22961         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
22962         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
22963         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
22964         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
22965         lib/xstrtoumax.c, lib/yesno.c:
22966         Standardize inclusion of config.h.
22967         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
22968         lib/inttostr.h:  Removed inclusion of config.h from header files.
22969         * lib/inttostr.c:  Adjusted in-tree users.
22970         * lib/timespec.h: Remove superfluous warning to include config.h.
22971         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
22972         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
22973         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
22974         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
22975         config.h with HAVE_CONFIG_H.
22976
22977 2005-09-19  Jim Meyering  <jim@meyering.net>
22978
22979         * modules/pathmax (License): Change to LGPL.
22980
22981 2005-09-19  Derek Price  <derek@ximbiot.com>
22982
22983         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
22984
22985 2005-09-19  Bruno Haible  <bruno@clisp.org>
22986
22987         * gnulib-tool (import): Provide default for --tests-base.
22988
22989 2005-09-19  Bruno Haible  <bruno@clisp.org>
22990
22991         * doc/quote.texi: New file, extracted from gnulib.texi.
22992         * doc/ctime.texi: New file, extracted from gnulib.texi.
22993         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
22994         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
22995         * doc/gnulib.texi: Include them.
22996
22997 2005-09-18  Bruno Haible  <bruno@clisp.org>
22998
22999         Portability fix.
23000         * gnulib-tool (func_readlink): New function.
23001         (func_ln_if_changed): Use it.
23002
23003 2005-09-18  Bruno Haible  <bruno@clisp.org>
23004
23005         * gnulib-tool: Support --with-tests also with --import.
23006         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
23007         (func_import): Use variables $testsbase and $inctests. Emit a
23008         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
23009         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
23010         SUBDIRS += $testsdir.
23011         (func_create_testdir): Update.
23012
23013 2005-09-18  Bruno Haible  <bruno@clisp.org>
23014
23015         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
23016         instead of $dry_run.
23017         (func_cp_if_changed, func_mv_if_changed): Remove functions.
23018         (func_ln_if_changed): Don't handle dry-run here.
23019         (func_import): In dry-run mode, detect more precisely which actions
23020         would be performed, and don't use "...ing" verbs.
23021
23022 2005-09-18  Bruno Haible  <bruno@clisp.org>
23023
23024         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
23025         (func_import): Use join on two temporary files instead of three nested
23026         loops, in order to determine which files are new or old.
23027
23028 2005-09-18  Bruno Haible  <bruno@clisp.org>
23029
23030         * gnulib-tool (func_import): Comment out code that spits out the
23031         new files with --dry-run.
23032
23033 2005-09-18  Bruno Haible  <bruno@clisp.org>
23034
23035         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
23036
23037 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23038
23039         * lib/stat-time.h: New file.
23040         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
23041         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
23042         in a different way.
23043         (timespec_cmp): New function.
23044         * lib/utimecmp.c: Include stat-time.h.
23045         (SYSCALL_RESOLUTION): Depend on whether various struct stat
23046         members exist, not on the obsolescent ST_MTIM_NSEC.
23047         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
23048
23049 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23050
23051         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
23052
23053 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23054
23055         * MODULES.html.sh (File system functions): Add stat-time.
23056         * modules/stat-time: New file.
23057         * modules/timespec (Files): Remove m4/st_mtim.m4; this
23058         is now done in a different way, by the stat-time module.
23059         * modules/utimecmp (Depends-on): Add stat-time.
23060
23061 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23062
23063         * m4/st_mtim.m4: Remove.  Superseded by...
23064         * m4/stat-time.m4: New file.
23065         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
23066         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
23067
23068 2005-09-15  Derek Price  <derek@ximbiot.com>
23069
23070         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
23071
23072 2005-09-15  Derek Price  <derek@ximbiot.com>
23073
23074         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
23075         * lib/regex_internal.c: Ditto, using this...
23076         (__GNUC_PREREQ): ...new macro.
23077         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
23078         using...
23079         (__GNUC_PREREQ): ...this new macro.
23080
23081         * lib/strstr.h: Include string.h. Define strstr as a macro here.
23082
23083 2005-09-15  Derek Price  <derek@ximbiot.com>
23084             Paul Eggert  <eggert@cs.ucla.edu>
23085
23086         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
23087         changes, consolidating in...
23088         * lib/regex_internal.h: ...this file.
23089
23090 2005-09-13  Jim Meyering  <jim@meyering.net>
23091
23092         * lib/canon-host.c: Filter through gnu indent and reword comments
23093         slightly.
23094         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
23095
23096 2005-09-13  Derek Price  <derek@ximbiot.com>
23097
23098         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
23099         failure.
23100         Reported by Jim Meyering  <jim@meyering.net>.
23101
23102 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23103
23104         * lib/base64.c: Typo.
23105         (base64_encode): Put b64str in initialized data section.
23106
23107 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
23108
23109         Merge glibc and coreutils changes into gnulib, plus a few
23110         extra fixes.
23111         * lib/md5.c: Use #error rather than a string.
23112         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
23113         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
23114         (__attribute__): Define to empty for non recent-GCC.
23115         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
23116         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
23117         Renamed from their non-__ counterparts, with new macros replacing
23118         them if not _LIBC.  Add __THROW attribute.
23119         (rol): Remove.
23120         (struct md5_ctx): Align buffer if using GCC.
23121         * lib/sha1.h (struct sha1_ctx): Likewise.
23122         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
23123         The old name was backwards.
23124         (NOTSWAP): Remove; not used.
23125         (rol): New macro, moved here from md5.h.
23126         (sha1_process_block): Remove a FIXME that doesn't make sense.
23127
23128 2005-09-12  Derek Price  <derek@ximbiot.com>
23129
23130         Return usable errors from canon-host.
23131         * lib/canon-host.h: New file.
23132         * lib/canon-host.c (canon_host): Wrap...
23133         (canon_host_r): ...this new function, which now relies exclusively on
23134         getaddrinfo.
23135         (ch_strerror): New function.
23136         (last_cherror): New global.
23137         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
23138         interface.
23139         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
23140         void *.
23141         (freeaddrinfo): Free ai->ai_canonname when set.
23142
23143 2005-09-12  Derek Price  <derek@ximbiot.com>
23144
23145         Make canon-host require getaddrinfo.
23146         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
23147         AC_LIBSOURCE canon-host.h.  Call...
23148         (gl_PREREQ_CANON_HOST): ...this new function, which requires
23149         gl_GETADDRINFO.
23150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
23151
23152 2005-09-12  Derek Price  <derek@ximbiot.com>
23153
23154         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
23155         LGPL.
23156         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
23157
23158 2005-09-12  Derek Price  <derek@ximbiot.com>
23159
23160         * lib/gai_strerror.c: Include config.h when available.  Include
23161         getaddrinfo.h before other headers to test interface.
23162         Reported by Larry Jones <lawrence.jones@ugs.com>.
23163
23164 2005-09-12  Derek Price  <derek@ximbiot.com>
23165             Paul Eggert  <eggert@cs.ucla.edu>
23166
23167         * modules/glob (Files): Add glob-libc.h.
23168
23169 2005-09-12  Derek Price  <derek@ximbiot.com>
23170             Paul Eggert  <eggert@cs.ucla.edu>
23171
23172         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
23173         glob_.h, glob-libc.h.
23174         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
23175
23176 2005-09-12  Derek Price  <derek@ximbiot.com>
23177             Paul Eggert  <eggert@cs.ucla.edu>
23178
23179         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
23180         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
23181         protecting things that should be done only in gnulib contexts.
23182         * lib/glob_.h: New file, containing only the glob things needed for
23183         gnulib.
23184         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
23185         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
23186         (glob, globfree, glob_pattern_p): Now defined simply in terms of
23187         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
23188         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
23189         and to respect the namespace rules better.
23190
23191 2005-09-08  Simon Josefsson  <jas@extundo.com>
23192
23193         * modules/socklen: New file.
23194
23195 2005-09-08  Simon Josefsson  <jas@extundo.com>
23196
23197         * m4/socklen.m4: New file.
23198
23199 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23200
23201         * modules/utimens (Files): Add m4/utimbuf.m4, since
23202         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
23203         Reported by Sergey Poznyakoff.
23204
23205 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23206
23207         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
23208         definitions, since that's the preferred style in glibc.
23209         Fix a minor spacing issue, and update copyright notice to match
23210         glibc's.
23211
23212 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
23213
23214         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
23215
23216 2005-09-06  Simon Josefsson  <jas@extundo.com>
23217
23218         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
23219         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
23220
23221 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23222
23223         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
23224         warning.
23225
23226 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23227
23228         * config/srclist.txt: Add glibc bug 1302.
23229
23230 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
23231
23232         Change bitset word type from unsigned int to unsigned long int,
23233         as this has better performance on typical 64-bit hosts.
23234         Port bitset code to hosts with unusual word sizes.
23235         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
23236         (build_collating_symbol):
23237         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
23238         argument is a bitset.  This is merely a style issue, but it makes
23239         it clearer that an entire array is expected.
23240         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
23241         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
23242         Port to the case where bitset_word is not the same as unsigned int.
23243         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
23244         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
23245         Likewise.
23246         * lib/regexec.c (check_dst_limits_calc_pos_1,
23247         check_subexp_matching_top):
23248         (build_trtable, group_nodes_into_DFAstates):
23249         Likewise.
23250         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
23251         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
23252         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
23253         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
23254         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
23255         * lib/regcomp.c (optimize_subexps, lower_subexp):
23256         Work even if bitset_word has holes in its bitwise representation.
23257         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
23258         * lib/regexec.c (check_dst_limits_calc_pos_1,
23259         check_subexp_matching_top):
23260         Likewise.
23261         * lib/regex_internal.c (re_string_reconstruct):
23262         Don't assume UCHAR_MAX == 255.
23263         * lib/regex_internal.h (bitset_set_all): Likewise.
23264         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
23265         All uses changed.
23266         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
23267         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
23268         All uses changed.
23269         (BITSET_WORD_MAX): New macro.
23270         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
23271         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
23272         (bitset_empty, bitset_copy):
23273         Prefer sizeof (bitset) to multiplying it out ourselves.
23274         (bitset_not_merge): Remove; unused.
23275         (bitset_contain): Return bool, not unsigned int with one bit on.
23276         All callers changed.
23277         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
23278         alignment than re_node_set; do this by defining a new internal
23279         type struct dests_alloc and using it to allocate memory.
23280
23281 2005-09-05  Bruno Haible  <bruno@clisp.org>
23282
23283         * gnulib-tool (func_import): Fix comparison in handling of symbolic
23284         links.
23285
23286 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
23287
23288         * modules/size_max (Makefile.am): Add size_max.h
23289
23290 2005-09-04  Derek Price  <derek@ximbiot.com>
23291
23292         * gnulib-tool (func_import): Fix reversed $symbolic logic.
23293
23294 2005-09-03  Simon Josefsson  <jas@extundo.com>
23295
23296         * gnulib-tool: Fix typo.
23297
23298 2005-09-03  Simon Josefsson  <jas@extundo.com>
23299
23300         * config/srclist.txt: Add glibc bug 1293.
23301
23302 2005-09-03  Derek Price  <derek@ximbiot.com>
23303
23304         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
23305         From Larry Jones <lawrence.jones@ugs.com>.
23306
23307 2005-09-02  Simon Josefsson  <jas@extundo.com>
23308
23309         * modules/socklen: New file.
23310
23311 2005-09-02  Simon Josefsson  <jas@extundo.com>
23312
23313         * modules/havelib: New module.
23314
23315         * modules/gettext, modules/iconv, modules/lock, modules/readline:
23316         Use havelib.
23317
23318 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23319
23320         Check for arithmetic overflow when calculating sizes, to prevent
23321         some buffer-overflow issues.  These patches are conservative, in the
23322         sense that when I couldn't determine whether an overflow was possible,
23323         I inserted a run-time check.
23324         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
23325         macros.
23326         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
23327         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
23328         (re_xnrealloc, re_x2nrealloc): New inline functions.
23329         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
23330         parse_bracket_exp):
23331         (build_equiv_class, build_charclass): Check for arithmetic overflow
23332         in size expression calculations.
23333         * lib/regex_internal.c (re_string_realloc_buffers):
23334         (build_wcs_upper_buffer, re_node_set_add_intersect):
23335         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
23336         (re_dfa_add_node, register_state): Likewise.
23337         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
23338         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
23339         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
23340         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
23341
23342 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23343
23344         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
23345         m4/ulonglong.m4.  Problem reported by Martin Lambers.
23346
23347 2005-09-02  Bruno Haible  <bruno@clisp.org>
23348
23349         Support for lib vs. lib64 distinction on biarch platforms.
23350         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
23351         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
23352         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
23353
23354 2005-09-02  Bruno Haible  <bruno@clisp.org>
23355
23356         * gnulib-tool (import): In the other first-use case, provide defaults
23357         as well.
23358
23359 2005-09-02  Bruno Haible  <bruno@clisp.org>
23360
23361         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
23362         patches not yet found in the latest gettext release.
23363
23364 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23365
23366         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
23367         to avoid a collision with bits/local_lim.h in glibc.
23368         All uses changed.  Problem reported by Dmitry V. Levin in
23369         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
23370
23371         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
23372         bugs in int versus size_t comparisons.
23373         (re_string_context_at): Fix bug where the code assumed that
23374         Idx is signed.
23375
23376         Use bool where appropriate.
23377         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
23378         All callers changed.
23379         (calc_eclosure_iter): Likewise, for ROOT arg.
23380         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
23381         (build_charclass_op): Likewise, for NON_MATCH arg.
23382         * lib/regex_internal.c (re_string_allocate, re_string_construct):
23383         (re_string_construct_common): Likewise, for ICASE arg.
23384         * lib/regexec.c (re_search_2_stub, re_search_stub):
23385         Likewise, for RET_LEN arg.
23386         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
23387         (set_regs): Likewise, for FL_BACKTRACK arg.
23388         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
23389         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
23390         (calc_eclosure_iter, parse_bracket_exp):
23391         Use bool for internal variables that are booleans.
23392         * lib/regexec.c (re_search_internal, check_matching,
23393         proceed_next_node):
23394         (set_regs, build_sifted_states, sift_states_bkref):
23395         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
23396         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
23397         (find_collation_sequence_value):
23398         Likewise.
23399         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
23400         (re_node_set_compare):
23401         Return bool, not int. All callers changed.
23402         * lib/regexec.c (check_halt_node_context, check_dst_limits):
23403         (build_trtable, check_node_accept): Likewise.
23404         * lib/regex_internal.h: Include stdbool.h.
23405
23406         Fix bugs uncovered when converting to bool.
23407         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
23408         failure instead of charging ahead blindly.
23409         * lib/regex_internal.c (register_state): Likewise.
23410         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
23411         for freeing internal storage.
23412         (group_nodes_into_DFA_states): Use unsigned int, not int, for
23413         bitset pieces used as boolean, to avoid undefined behavior
23414         on hosts that do int overflow checking.
23415
23416 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23417
23418         * config/srclist.txt: Add glibc bugs 1285-1287.
23419
23420 2005-09-01  Jim Meyering  <jim@meyering.net>
23421
23422         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
23423         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
23424         Require gl_STAT_MACROS, too.
23425
23426 2005-09-01  Bruno Haible  <bruno@clisp.org>
23427
23428         * gnulib-tool (import): In the first-use case, provide defaults.
23429
23430 2005-09-01  Bruno Haible  <bruno@clisp.org>
23431
23432         * gnulib-tool (func_import): Remove the .tmp files.
23433
23434 2005-09-01  Bruno Haible  <bruno@clisp.org>
23435
23436         * gnulib-tool (func_import): Fix handling of symbolic links.
23437
23438 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23439
23440         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
23441         old glibc regex code mishandles strings longer than 2**31 bytes.
23442         This patch fixes this when the regex code is used in gnulib
23443         (i.e., outside glibc).
23444
23445         This patch should not affect the use of the regex code inside
23446         glibc.  No doubt this problem also needs to be handled for glibc
23447         as well, but the result will be an incompatible change to the
23448         glibc ABI, and the old ABI will have to be supported too.  That
23449         can be the the subject for another patch.
23450
23451         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
23452         governing whether the rest of this patch is active.  By default,
23453         the macro is disabled and the patch has no effect.
23454         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
23455         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
23456         (struct re_pattern_buffer, re_search, re_search_2, re_match):
23457         (re_match_2, re_set_registers): Use the new types.
23458         * lib/regex_internal.h (Idx, re_hashval_t): New types.
23459         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
23460         New macros.
23461         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
23462         (re_string_context_at, bin_tree_t, re_dfastate_t):
23463         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
23464         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
23465         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
23466         (re_string_char_size_at, re_string_wchar_at):
23467         (re_string_elem_size_at):
23468         Use the new types and macros to port to 64-bit hosts.
23469         Use unsigned types for internal values, so that the code
23470         mostly works even for arrays larger than SSIZE_MAX.
23471         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
23472         (search_duplicated_node, calc_eclosure_iter, fetch_number):
23473         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
23474         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
23475         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
23476         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
23477         (calc_inveclosure, parse_dup_op, build_range_exp):
23478         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
23479         (fetch_number, create_token_tree, mark_opt_subexp):
23480         Likewise.
23481         * lib/regex_internal.c (re_string_construct_common,
23482         create_ci_newstate):
23483         (create_cd_newstate, re_string_allocate, re_string_construct):
23484         (re_string_realloc_buffers, build_wcs_upper_buffer):
23485         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
23486         (re_string_reconstruct, re_string_peek_byte_case):
23487         (re_string_fetch_byte_case, re_string_context_at):
23488         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
23489         (re_node_set_init_copy, re_node_set_add_intersect):
23490         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
23491         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
23492         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
23493         (re_acquire_state, re_acquire_state_context, register_state):
23494         Likewise.
23495         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
23496         search_cur_bkref_entry):
23497         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
23498         (re_search_internal, re_search_2_stub, re_search_stub)
23499         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
23500         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
23501         (update_cur_sifted_state, check_dst_limits):
23502         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
23503         (check_subexp_limits, sift_states_bkref, merge_state_array):
23504         (check_subexp_matching_top, get_subexp, get_subexp_sub):
23505         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
23506         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
23507         (expand_bkref_cache, check_node_accept_bytes):
23508         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
23509         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
23510         (acquire_init_state_context, check_halt_node_context):
23511         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
23512         (sift_states_backward, clean_state_log_if_needed):
23513         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
23514         (find_recover_state, transit_state_sb, transit_state_mb):
23515         (transit_state_bkref, build_trtable, match_ctx_clean):
23516         Likewise.
23517         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
23518         to work around an assumption that REG_MISSING is negative.
23519
23520         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
23521         (seek_collating_symbol_entry) [defined _LIBC]:
23522         (lookup_collation_sequence_value) [defined _LIBC]:
23523         (build_range_exp, build_collating_symbol) [defined _LIBC]:
23524         Use prototypes rather than old-style function definitions.
23525         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
23526         (transit_state_sb) [0]:
23527         (find_collation_sequence_value) [defined _LIBC]: Likewise.
23528
23529         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
23530         rm_eo.
23531
23532         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
23533         (optimize_subexps, lower_subexp):
23534         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
23535         since the signed shift might overflow.  Use 1u<<31 instead.
23536         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
23537         Likewise.
23538         * lib/regexec.c (check_dst_limits_calc_pos_1,
23539         check_subexp_matching_top): Likewise.
23540
23541         * lib/regcomp.c (optimize_subexps, lower_subexp):
23542         Use CHAR_BIT rather than 8, for clarity.
23543         * lib/regexec.c (check_dst_limits_calc_pos_1):
23544         (check_subexp_matching_top): Likewise.
23545         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
23546         have to worry about portability issues when shifting it left.
23547         Remove no-longer-needed test for table_size > 0.
23548         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
23549         in a word, as the resulting behavior is undefined.
23550         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
23551         in one case, a <= should have been an <, and in another case the
23552         whole test was missing.
23553         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
23554         the standard name CHAR_BIT.
23555         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
23556         this is not true on one's complement and signed-magnitude hosts.
23557
23558         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
23559         next_last_offset.
23560         (struct re_dfa_t): Remove unused member states_alloc.
23561         * lib/regcomp.c (init_dfa): Don't initialize unused members.
23562
23563 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23564
23565         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
23566         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
23567         and large-file glibc and in 32-bit large-file Solaris.
23568
23569 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23570
23571         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
23572         lengths fit in regoff_t; this isn't true if regoff_t is the same
23573         width as size_t.
23574         * lib/regex.c (re_search_internal): 5th arg is LAST_START
23575         (= START + RANGE) instead of RANGE.  This avoids overflow
23576         problems when regoff_t is the same width as size_t.
23577         All callers changed.
23578         (re_search_2_stub): Check for overflow when adding the
23579         sizes of the two strings.
23580         (re_search_stub): Check for overflow when adding START
23581         to RANGE; if it occurs, substitute the extreme value.
23582
23583 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23584
23585         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
23586
23587 2005-08-31  Jim Meyering  <jim@meyering.net>
23588
23589         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
23590         a pointer-to-const.
23591         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
23592         (register_state): Likewise.
23593         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
23594         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
23595         (group_nodes_into_DFAstates): Likewise.
23596
23597 2005-08-31  Jim Meyering  <jim@meyering.net>
23598
23599         * check-module: Add a FIXME comment.
23600
23601 2005-08-31  Eric Blake  <ebb9@byu.net>
23602
23603         * modules/unistd-safer (Files): Add unistd--.h.
23604         * modules/stdio-safer (Files): Add stdio--.h.
23605
23606 2005-08-31  Derek Price  <derek@ximbiot.com>
23607
23608         * lib/getdelim.c (getdelim): Return EOF on EOF.
23609         Reported by Larry Jones <lawrence.jones@ugs.com>.
23610
23611 2005-08-31  Bruno Haible  <bruno@clisp.org>
23612
23613         Avoid unnecessary diffs in the generated lib/Makefile.am.
23614         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
23615         the generated files.
23616         (func_import): Don't set cmd.
23617
23618 2005-08-31  Bruno Haible  <bruno@clisp.org>
23619
23620         * lib/strstr.c: Include <stddef.h>, for NULL.
23621         * lib/strcasestr.c: Likewise.
23622         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23623
23624 2005-08-31  Bruno Haible  <bruno@clisp.org>
23625
23626         * gnulib-tool: New option --macro-prefix.
23627         (func_import): Use macro_prefix.
23628         (import): Handle option --macro-prefix.
23629
23630 2005-08-31  Bruno Haible  <bruno@clisp.org>
23631
23632         * gnulib-tool (import): Rename most ac_* variables to cached_*.
23633         Also use new variables cached_lgpl, cached_libtool.
23634
23635 2005-08-31  Bruno Haible  <bruno@clisp.org>
23636
23637         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
23638         always instantiating them.
23639
23640 2005-08-31  Bruno Haible  <bruno@clisp.org>
23641
23642         * gnulib-tool (func_import): Read the previous cached settings
23643         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
23644         earlier added by gnulib but are now dropped. Warn when a gnulib file
23645         overwrites a non-gnulib file.
23646
23647 2005-08-31  Bruno Haible  <bruno@clisp.org>
23648
23649         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
23650         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
23651         projects that don't keep autogenerated files in CVS. Put into
23652         actioncmd only the specified modules, not the transitive closure.
23653
23654 2005-08-31  Bruno Haible  <bruno@clisp.org>
23655
23656         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
23657         Create directories that shall be filled.
23658         (import): Don't look for gl_* macros in configure.ac. Recurse across
23659         all directories containing a gnulib-cache.m4 files, if meaningful.
23660
23661 2005-08-31  Bruno Haible  <bruno@clisp.org>
23662
23663         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
23664         (import): Set seen_libtool when we see gl_LIBTOOL.
23665
23666 2005-08-31  Bruno Haible  <bruno@clisp.org>
23667
23668         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
23669         declaration macro definitions from generated gnulib.m4.
23670
23671 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
23672
23673         * lib/iconvme.h: Add prototype for iconv_alloc.
23674
23675 2005-08-29  Simon Josefsson  <jas@extundo.com>
23676
23677         * lib/iconvme.c: Fix errno.
23678
23679 2005-08-29  Bruno Haible  <bruno@clisp.org>
23680
23681         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
23682         that it works when the directory contains spaces.
23683
23684 2005-08-29  Bruno Haible  <bruno@clisp.org>
23685
23686         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
23687
23688 2005-08-29  Bruno Haible  <bruno@clisp.org>
23689
23690         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
23691         Emit more advice.
23692
23693 2005-08-29  Bruno Haible  <bruno@clisp.org>
23694         and Stepan Kasal  <kasal@ucw.cz>
23695
23696         * check-module: If more parameters are given, check each of them
23697         separately; add more exceptions, as noted by Jim Meyering.
23698         (check_module): New procedure.
23699         (%exempt_header): Now contains all exceptions.
23700
23701 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
23702
23703         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
23704
23705 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
23706
23707         * lib/iconvme.c: Split iconv_string into iconv_alloc.
23708
23709 2005-08-28  Bruno Haible  <bruno@clisp.org>
23710
23711         * m4/gnulib-tool.m4: New file.
23712
23713 2005-08-27  Jim Meyering  <jim@meyering.net>
23714
23715         * modules/unistd-safer (Files): Add pipe-safer.c.
23716         * modules/fcntl-safer (Files): Add creat-safer.c.
23717
23718 2005-08-27  Jim Meyering  <jim@meyering.net>
23719
23720         * m4/stdlib-safer.m4: New file.  From coreutils.
23721         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
23722         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
23723         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
23724         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
23725         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
23726
23727 2005-08-27  Jim Meyering  <jim@meyering.net>
23728
23729         * lib/fopen-safer.c: Merge minor changes from coreutils.
23730         * lib/dup-safer.c: Likewise.
23731         * lib/fd-safer.c: Likewise.
23732
23733         Merge from coreutils.
23734         * lib/stdio--.h: New file.
23735         * lib/stdlib--.h: New file.
23736         * lib/mkstemp-safer.c: New file.
23737
23738         GNU tar needs these.
23739         * lib/pipe-safer.c: New file.
23740         * lib/creat-safer.c: New file.
23741         * lib/fcntl--.h (creat): Define to creat_safer.
23742         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
23743         * lib/unistd--.h (pipe): Define to pipe_safer.
23744         * lib/unistd-safer.h: Declare pipe_safer.
23745
23746 2005-08-26  Simon Josefsson  <jas@extundo.com>
23747
23748         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
23749         Haible <bruno@clisp.org>.
23750
23751 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
23752
23753         * lib/regex_internal.h: Remove all references to
23754         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
23755         or better.
23756         (bitset_not, bitset_merge, bitset_not_merge):
23757         (bitset_mask, re_string_allocate, re_string_construct):
23758         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
23759         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
23760         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
23761         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
23762         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
23763         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
23764         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
23765         (re_acquire_state_context):
23766         Remove unnecessary forward decls.
23767         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
23768         Put __attribute at function definition,
23769         now that the function decl has been removed.
23770         * lib/regex_internal.c (re_string_peek_byte_case):
23771         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
23772         Likewise.
23773
23774 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
23775
23776         * m4/regex.m4: Add AC_PREREQ(2.50).
23777         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
23778
23779 2005-08-25  Simon Josefsson  <jas@extundo.com>
23780
23781         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
23782         __fsetlocking.
23783
23784 2005-08-25  Simon Josefsson  <jas@extundo.com>
23785
23786         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
23787         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
23788         GLIBC specific code.
23789
23790 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23791
23792         Make regex safe for g++.  This fixes one real bug (an "err"
23793         that should have been "*err").  g++ problem reported by
23794         Sam Steingold.
23795         * lib/regex_internal.h (re_calloc): New macro, consistent with
23796         re_malloc etc.  All callers of calloc changed to use re_calloc.
23797         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
23798         not int.  All callers changed.
23799         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
23800         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
23801         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
23802         (find_recover_state): Change "err" to "*err"; this fixes what
23803         appears to be a real bug.
23804         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
23805         versus int.
23806
23807 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23808
23809         * modules/regex (Depends-on): Add malloc, since the code
23810         assumes that !malloc(0) means failure.
23811
23812 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23813
23814         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
23815
23816         alloca modernization/simplification for regex.
23817         * lib/regex.c: Remove portability cruft for alloca.  This no longer
23818         needs to be at the start of the file, and can be moved into
23819         regex_internal.h and simplified.
23820         * lib/regex_internal.h: Include <alloca.h>.
23821         (__libc_use_alloca) [!defined _LIBC]: New macro.
23822         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
23823         now works outside glibc.
23824
23825 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23826
23827         * config/srclist.txt: Add glibc bugs 1241, 1245.
23828
23829 2005-08-25  Jim Meyering  <jim@meyering.net>
23830
23831         * lib/open-safer.c: Include <config.h>.
23832         Otherwise, we'd lose LARGEFILE support in any file using
23833         e.g. "fcntl--.h"
23834
23835 2005-08-25  Bruno Haible  <bruno@clisp.org>
23836
23837         * m4/minmax.m4: Require autoconf 2.52.
23838         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
23839         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
23840         alternatives of translit over the alphabet.
23841         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
23842
23843 2005-08-24  Simon Josefsson  <jas@extundo.com>
23844
23845         * tests/test-getpass.c: New file.
23846
23847 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23848
23849         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
23850         for GNU regex features.
23851
23852 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23853
23854         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
23855         * lib/regex.h (regerror): Likewise.
23856
23857         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
23858         requires this.  (The code never needed it.)
23859
23860         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
23861         All uses of recently-renamed identifiers changed to use the new,
23862         POSIX-compliant names.  The code will build and run just fine
23863         without these changes, but it's better to eat our own dog food
23864         and use the standard-conforming names.
23865
23866         * lib/regex.h: Fix a multitude of POSIX name space violations.
23867         These changes have an effect only for programs that define
23868         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
23869         do not change anything for programs compiled in the normal way.
23870         Also, there is no effect on the ABI.
23871
23872         (_REGEX_SOURCE): New macro.
23873         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
23874         defined and _GNU_SOURCE is not; this fixes a name space violation.
23875
23876         Rename the following macros to obey POSIX requirements.
23877         The old names are still visible as macros if _REGEX_SOURCE is defined.
23878         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
23879         RE_BACKSLASH_ESCAPE_IN_LISTS.
23880         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
23881         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
23882         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
23883         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
23884         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
23885         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
23886         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
23887         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
23888         (REG_INTERVALS): renamed from RE_INTERVALS.
23889         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
23890         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
23891         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
23892         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
23893         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
23894         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
23895         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
23896         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
23897         RE_UNMATCHED_RIGHT_PAREN_ORD.
23898         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
23899         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
23900         (REG_DEBUG): renamed from RE_DEBUG.
23901         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
23902         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
23903         unusual, since we can't clash with the POSIX REG_ICASE.
23904         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
23905         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
23906         (REG_NO_SUB): renamed from RE_NO_SUB.
23907         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
23908         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
23909         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
23910         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
23911         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
23912         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
23913         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
23914         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
23915         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
23916         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
23917         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
23918         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
23919         RE_SYNTAX_POSIX_MINIMAL_BASIC.
23920         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
23921         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
23922         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
23923         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
23924         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
23925         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
23926         (REG_FIXED): Renamed from REGS_FIXED.
23927         (REG_NREGS): Renamed from RE_NREGS.
23928
23929         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
23930         of other REG_* macros, since POSIX says the user is allowed to
23931         #undef these macros selectively.
23932
23933         (reg_errcode_t): Update comment stating what other tables need
23934         to be consistent.
23935
23936         Rename the following enum values to obey POSIX requirements.
23937         The old names are still visible as macros.
23938         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
23939         is not defined, since GNU is supposed to be a superset of POSIX as
23940         much as possible, and since we want reg_errcode_t to be a signed
23941         type for implementation consistency.
23942         (_REG_NOERROR): Renamed from REG_NOERROR.
23943         (_REG_NOMATCH): Renamed from REG_NOMATCH.
23944         (_REG_BADPAT): Renamed from REG_BADPAT.
23945         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
23946         (_REG_ECTYPE): Renamed from REG_ECTYPE.
23947         (_REG_EESCAPE): Renamed from REG_EESCAPE.
23948         (_REG_ESUBREG): Renamed from REG_ESUBREG.
23949         (_REG_EBRACK): Renamed from REG_EBRACK.
23950         (_REG_EPAREN): Renamed from REG_EPAREN.
23951         (_REG_EBRACE): Renamed from REG_EBRACE.
23952         (_REG_BADBR): Renamed from REG_BADBR.
23953         (_REG_ERANGE): Renamed from REG_ERANGE.
23954         (_REG_ESPACE): Renamed from REG_ESPACE.
23955         (_REG_BADRPT): Renamed from REG_BADRPT.
23956         (_REG_EEND): Renamed from REG_EEND.
23957         (_REG_ESIZE): Renamed from REG_ESIZE.
23958         (_REG_ERPAREN): Renamed from REG_ERPAREN.
23959         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
23960         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
23961         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
23962         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
23963
23964         (_REG_RE_NAME, _REG_RM_NAME): New macros.
23965         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
23966         changed.  But support the old name if the new one is not defined
23967         and if _REGEX_SOURCE.
23968
23969         Change the following member names in struct re_pattern_buffer.
23970         The old names are still supported if !_REGEX_SOURCE.
23971         The new names are always supported, regardless of _REGEX_SOURCE.
23972         (re_buffer): Renamed from buffer.
23973         (re_allocated): Renamed from allocated.
23974         (re_used): Renamed from used.
23975         (re_syntax): Renamed from syntax.
23976         (re_fastmap): Renamed from fastmap.
23977         (re_translate): Renamed from translate.
23978         (re_can_be_null): Renamed from can_be_null.
23979         (re_regs_allocated): Renamed from regs_allocated.
23980         (re_fastmap_accurate): Renamed from fastmap_accurate.
23981         (re_no_sub): Renamed from no_sub.
23982         (re_not_bol): Renamed from not_bol.
23983         (re_not_eol): Renamed from not_eol.
23984         (re_newline_anchor): Renamed from newline_anchor.
23985
23986         Change the following member names in struct re_registers.
23987         The old names are still supported if !_REGEX_SOURCE.
23988         The new names are always supported, regardless of _REGEX_SOURCE.
23989         (rm_num_regs): Renamed from num_regs.
23990         (rm_start): Renamed from start.
23991         (rm_end): Renamed from end.
23992
23993         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
23994         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
23995         Prepend __ to parameter names.
23996
23997         Undo yesterday's changes.
23998
23999 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24000
24001         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
24002         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
24003         lib/regex.c.
24004
24005 2005-08-24  Jim Meyering  <jim@meyering.net>
24006
24007         Sync from coreutils.
24008         * m4/fcntl-safer.m4: New file.
24009
24010         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
24011         and object files for this module.
24012
24013 2005-08-24  Jim Meyering  <jim@meyering.net>
24014
24015         Sync from coreutils.
24016         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
24017
24018 2005-08-24  Jim Meyering  <jim@meyering.net>
24019
24020         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
24021         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
24022
24023 2005-08-24  Jim Meyering  <jim@meyering.net>
24024
24025         * modules/fcntl-safer: New module.
24026         * modules/fts (Depends-on): Add fcntl-safer.
24027         * MODULES.html.sh (File descriptor based Input/Output):
24028         Add fcntl-safer.
24029
24030 2005-08-24  Bruno Haible  <bruno@clisp.org>
24031
24032         Support for unit test modules.
24033         * modules/README: Mention tests modules.
24034         * modules/TEMPLATE-TESTS: New file.
24035         * gnulib-tool: New options --extract-tests-module, --with-tests and
24036         --tests-base (unused for the moment).
24037         (testsbase, inctests): New variables.
24038         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
24039         (func_verify_module): Exclude TEMPLATE-TESTS.
24040         (func_verify_nontests_module, func_verify_tests_module): New functions.
24041         (func_get_dependencies): Add implicit dependency for tests modules.
24042         (func_get_tests_module): New function.
24043         (func_modules_transitive_closure): When --with-tests was specified,
24044         include the unit tests as well, unless explicitly avoided.
24045         (func_emit_lib_Makefile_am): Ignore the tests modules here.
24046         (func_emit_tests_Makefile_am): New function.
24047         (func_create_testdir): When --with-tests was specified, emit a
24048         tests/ directory.
24049         * MODULES.html.sh (Future developments): Update.
24050
24051 2005-08-24  Bruno Haible  <bruno@clisp.org>
24052
24053         * modules/tls-tests: New file.
24054         * tests/test-tls.c: New file, from GNU gettext.
24055
24056 2005-08-24  Bruno Haible  <bruno@clisp.org>
24057
24058         * modules/lock-tests: New file.
24059         * tests/test-lock.c: New file, from GNU gettext.
24060
24061 2005-08-24  Bruno Haible  <bruno@clisp.org>
24062
24063         * lib/lock.h: Add multiple inclusion guard.
24064         * lib/tls.h: Add multiple inclusion guard.
24065
24066 2005-08-24  Bruno Haible  <bruno@clisp.org>
24067
24068         * gnulib-tool: Add support for the --aux-dir option to
24069         --create-testdir, --create-megatestdir, --test, --megatest.
24070         (func_create_testdir, func_create_megatestdir): Optionally emit a
24071         AC_CONFIG_AUX_DIR directive.
24072         (create-testdir, create-megatestdir, test, megatest): Provide a
24073         default value for $auxdir.
24074
24075 2005-08-24  Bruno Haible  <bruno@clisp.org>
24076
24077         * gnulib-tool (import): Use compound statement instead of subshell
24078         where possible.
24079
24080 2005-08-24  Bruno Haible  <bruno@clisp.org>
24081
24082         * gnulib-tool (import): Change --aux-dir default to "build-aux".
24083
24084 2005-08-24  Bruno Haible  <bruno@clisp.org>
24085
24086         * gnulib-tool (func_version): Update.
24087
24088 2005-08-24  Bruno Haible  <bruno@clisp.org>
24089
24090         * gnulib-tool (func_import, func_create_testdir,
24091         func_create_megatestdir): Quote all autoconf macro arguments.
24092
24093 2005-08-24  Bruno Haible  <bruno@clisp.org>
24094
24095         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
24096         option --force, because --force causes the aclocal.m4 of each
24097         subdirectory to be newer than the corresponding config.h.in.
24098
24099 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24100
24101         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
24102         All contents moved to gl_REGEX.
24103         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
24104         assume that it does.
24105
24106 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24107
24108         * lib/regex.h (REG_NOSYS)
24109         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
24110         Define, since POSIX requires it as of 2001.
24111         (_REG_ENOSYS)
24112         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
24113         New private symbol, used to keep the enum signed in all cases.
24114         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
24115         Youngman in
24116         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
24117
24118         * lib/regex_internal.c (re_string_skip_chars, register_state):
24119         (calc_state_hash):
24120         Remove forward decls; no longer needed now that we use prototypes.
24121         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
24122         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
24123         (clean_state_log_if_needed): Likewise.
24124
24125 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24126
24127         * config/srclist.txt: Add glibc bugs 1231-1233.
24128
24129 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24130
24131         Fix problems reported by Sam Steingold in
24132         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
24133         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
24134         assumed that reg_errcode_t is a signed type, which is not
24135         necessarily true if _XOPEN_SOURCE is not defined.
24136         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
24137         since some compilers warn about it otherwise.
24138
24139 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24140
24141         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
24142         (init_word_char, create_initial_state, duplicate_node_closure):
24143         (fetch_token, peek_token_bracket, build_range_exp):
24144         (build_collating_symbol): Remove forward decls; no longer needed
24145         now that we use prototypes.
24146
24147         * lib/regcomp.c:
24148         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
24149         (re_compile_fastmap_iter, regcomp, regerror, regfree):
24150         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
24151         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
24152         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
24153         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
24154         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
24155         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
24156         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
24157         (build_range_exp, build_collating_symbol, parse_bracket_exp):
24158         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
24159         (build_charclass, build_charclass_op, fetch_number, create_tree):
24160         (create_token_tree, mark_opt_subexp, duplicate_tree):
24161         Use prototypes rather than old-style definitions.
24162
24163         * lib/regex_internal.c:
24164         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
24165         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
24166         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
24167         (re_string_reconstruct, re_string_peek_byte_case):
24168         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
24169         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
24170         (re_node_set_init_copy, re_node_set_add_intersect):
24171         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24172         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24173         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
24174         (re_acquire_state, re_acquire_state_context, register_state):
24175         (create_ci_newstate, create_cd_newstate, free_state):
24176         Likewise.
24177         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
24178         re_search_2):
24179         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
24180         (re_search_internal, prune_impossible_nodes):
24181         (acquire_init_state_context, check_matching, static):
24182         (check_halt_node_context, check_halt_state_context, proceed_next_node):
24183         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
24184         (update_regs, sift_states_backward, build_sifted_states):
24185         (clean_state_log_if_needed, merge_state_array):
24186         (update_cur_sifted_state, add_epsilon_src_nodes):
24187         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
24188         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
24189         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
24190         (find_recover_state, check_subexp_matching_top, transit_state_mb):
24191         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
24192         (check_arrival, check_arrival_add_next_nodes):
24193         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
24194         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
24195         (check_node_accept_bytes, check_node_accept, extend_buffers):
24196         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
24197         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
24198         (sift_ctx_init):
24199         Likewise.
24200
24201         * lib/regex_internal.h:
24202         (re_string_allocate, re_string_construct, re_string_reconstruct):
24203         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
24204         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
24205         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
24206         (re_string_context_at, re_string_peek_byte_case):
24207         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
24208         is defined, since we now use prototypes always.
24209
24210         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
24211         C89 or better.  All uses removed.
24212
24213 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
24214
24215         * config/srclist.txt: Add glibc bugs 1220-1227.
24216
24217 2005-08-20  Jim Meyering  <jim@meyering.net>
24218
24219         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
24220         of unused local, dfa.
24221
24222 2005-08-20  Bruno Haible  <bruno@clisp.org>
24223
24224         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
24225
24226 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24227
24228         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
24229         (re_node_set_insert_last, re_dfa_add_node):
24230         Rename local variables to avoid GCC shadowing warnings.
24231
24232 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24233
24234         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
24235         [defined lint]: Suppress bogus uninitialized-variable warnings.
24236
24237         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
24238         and let the caller return REG_ESPACE if out of space.  This
24239         removes an uninitialied-variable warning with GCC 4.0.1, and also
24240         avoids taking the address of a local variable.  All callers
24241         changed.
24242
24243 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24244
24245         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
24246         $LIBCSRC/posix/regexec.c.
24247         Add glibc bug 1217 for regcomp.c.
24248
24249 2005-08-19  Jim Meyering  <jim@meyering.net>
24250
24251         * lib/regexec.c (proceed_next_node): Redo local variables to
24252         avoid GCC shadowing warnings.
24253
24254 2005-08-18  Bruno Haible  <bruno@clisp.org>
24255
24256         * lib/strstr.c (strstr): Fix return value in multibyte case.
24257         * lib/strcasestr.c (strcasestr): Likewise.
24258
24259 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24260
24261         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
24262
24263 2005-08-17  Jim Meyering  <jim@meyering.net>
24264
24265         Make the %s format (seconds since the epoch) work for a negative
24266         number and when used with a zero-padded field width, e.g. %015s.
24267
24268         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
24269         label so that it precedes the code to set `digits'.  Otherwise,
24270         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
24271         print `00-22'.  Now, it prints `-0022', as it should.
24272
24273 2005-08-17  Bruno Haible  <bruno@clisp.org>
24274
24275         * modules/strstr (Files): Add m4/mbrtowc.m4.
24276         (Depends-on): Add mbuiter.
24277
24278 2005-08-17  Bruno Haible  <bruno@clisp.org>
24279
24280         * modules/strcasestr: New file.
24281         * MODULES.html.sh (String handling, based on ANSI C 89): Add
24282         strcasestr.
24283
24284 2005-08-17  Bruno Haible  <bruno@clisp.org>
24285
24286         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
24287
24288 2005-08-17  Bruno Haible  <bruno@clisp.org>
24289
24290         * modules/mbuiter: New file.
24291         * MODULES.html.sh (Extended multibyte and wide character utilities):
24292         Add mbuiter.
24293
24294 2005-08-17  Bruno Haible  <bruno@clisp.org>
24295
24296         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
24297         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
24298
24299 2005-08-17  Bruno Haible  <bruno@clisp.org>
24300
24301         * m4/strcasestr.m4: New file.
24302
24303 2005-08-17  Bruno Haible  <bruno@clisp.org>
24304
24305         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
24306         * lib/strstr.c: Completely rewritten, with multibyte locale support.
24307
24308 2005-08-17  Bruno Haible  <bruno@clisp.org>
24309
24310         * lib/strcasestr.h: New file.
24311         * lib/strcasestr.c: New file.
24312
24313 2005-08-17  Bruno Haible  <bruno@clisp.org>
24314
24315         * lib/strcasecmp.c: Use mbuiter.h.
24316
24317 2005-08-17  Bruno Haible  <bruno@clisp.org>
24318
24319         * lib/mbuiter.h: New file.
24320
24321 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24322
24323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
24324         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
24325         and gl_GETOPT are both invoked via different paths (as happens
24326         with GNU tar CVS because it uses both argp and getopt), the former
24327         wins.
24328
24329 2005-08-16  Bruno Haible  <bruno@clisp.org>
24330
24331         * modules/tls: New file.
24332         * MODULES.html.sh (Multithreading): Add tls.
24333
24334 2005-08-16  Bruno Haible  <bruno@clisp.org>
24335
24336         * modules/strnlen1: New file.
24337         * MODULES.html.sh (String handling): Add strnlen1.
24338
24339 2005-08-16  Bruno Haible  <bruno@clisp.org>
24340
24341         * modules/strcase (Files): Add m4/mbrtowc.m4.
24342         (Depends-on): Add strnlen1, mbchar.
24343
24344 2005-08-16  Bruno Haible  <bruno@clisp.org>
24345
24346         * modules/mbiter: New file.
24347         * MODULES.html.sh (Extended multibyte and wide character utilities):
24348         Add mbiter.
24349
24350 2005-08-16  Bruno Haible  <bruno@clisp.org>
24351
24352         * modules/mbfile: New file.
24353         * MODULES.html.sh (Extended multibyte and wide character utilities):
24354         Add mbfile.
24355
24356 2005-08-16  Bruno Haible  <bruno@clisp.org>
24357
24358         * modules/mbchar: New file.
24359         * MODULES.html.sh (Extended multibyte and wide character utilities):
24360         New section.
24361
24362 2005-08-16  Bruno Haible  <bruno@clisp.org>
24363
24364         * m4/tls.m4: New file, from GNU gettext.
24365
24366 2005-08-16  Bruno Haible  <bruno@clisp.org>
24367
24368         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
24369         always.
24370         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
24371
24372 2005-08-16  Bruno Haible  <bruno@clisp.org>
24373
24374         * m4/mbiter.m4: New file.
24375
24376 2005-08-16  Bruno Haible  <bruno@clisp.org>
24377
24378         * m4/mbfile.m4: New file.
24379
24380 2005-08-16  Bruno Haible  <bruno@clisp.org>
24381
24382         * m4/mbchar.m4: New file.
24383
24384 2005-08-16  Bruno Haible  <bruno@clisp.org>
24385
24386         * lib/tls.h: New file, from GNU gettext.
24387         * lib/tls.c: New file, from GNU gettext.
24388
24389 2005-08-16  Bruno Haible  <bruno@clisp.org>
24390
24391         * lib/strnlen1.h: New file.
24392         * lib/strnlen1.c: New file.
24393
24394 2005-08-16  Bruno Haible  <bruno@clisp.org>
24395
24396         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
24397         (mbi_init): Update.
24398         (mbi_avail, mbi_advance): Let the iteration end before the terminating
24399         NUL byte, not after it.
24400
24401 2005-08-16  Bruno Haible  <bruno@clisp.org>
24402
24403         * lib/strcase.h (strcasecmp): Add note in comments.
24404         * lib/strncasecmp.c: Use code from strcasecmp.c.
24405         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
24406         (strcasecmp): Work correctly in multibyte locales.
24407
24408 2005-08-16  Bruno Haible  <bruno@clisp.org>
24409
24410         * lib/mbiter.h: New file.
24411
24412 2005-08-16  Bruno Haible  <bruno@clisp.org>
24413
24414         * lib/mbfile.h: New file.
24415
24416 2005-08-16  Bruno Haible  <bruno@clisp.org>
24417
24418         * lib/mbchar.h: New file.
24419         * lib/mbchar.c: New file.
24420
24421 2005-08-16  Bruno Haible  <bruno@clisp.org>
24422
24423         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
24424         the valid ones. Makes the comparison operations transitive:
24425         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
24426         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
24427
24428 2005-08-15  Simon Josefsson  <jas@extundo.com>
24429
24430         * modules/ssize_t (License): Change to 'unlimited'.
24431
24432         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
24433
24434 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24435
24436         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
24437         Add comments for each pending glibc patch.
24438
24439 2005-08-15  Bruno Haible  <bruno@clisp.org>
24440
24441         * lib/regex.h (__restrict_arr): Don't define to __restrict if
24442         __cplusplus is defined.
24443
24444 2005-08-14  Jim Meyering  <jim@meyering.net>
24445
24446         Sync from coreutils.
24447
24448         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
24449         Use the hash-table-based cycle-detection code not just when
24450         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
24451         Reported by James Youngman in
24452         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
24453         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
24454         FTS_TIGHT_CYCLE_CHECK.
24455         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
24456         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
24457         once again.
24458         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
24459         * lib/fts.c (fd_safer): Remove decl.
24460         Include fcntl--.h rather than unistd-safer.h
24461         (fts_safe_changedir): Don't call fd_safer; no longer needed
24462         now that we include fcntl--.h.
24463
24464 2005-08-12  Simon Josefsson  <jas@extundo.com>
24465
24466         * modules/getndelim2: Use ssize_t module.
24467         * modules/getnline: Likewise.
24468         * modules/safe-read: Likewise.
24469         * modules/xreadlink: Likewise.
24470
24471         * modules/ssize_t: New file.
24472
24473 2005-08-12  Simon Josefsson  <jas@extundo.com>
24474
24475         * m4/readline.m4: Look for termcap, curses or ncurses if required.
24476
24477 2005-08-12  Simon Josefsson  <jas@extundo.com>
24478
24479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24480         ssize_t.
24481
24482 2005-08-12  Simon Josefsson  <jas@extundo.com>
24483
24484         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
24485         readline, getdelim and check_version.
24486         (Support for systems lacking ISO C 99: Sizes of integer types):
24487         Add size_max.
24488
24489 2005-08-12  Bruno Haible  <bruno@clisp.org>
24490
24491         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
24492
24493 2005-08-11  Simon Josefsson  <jas@extundo.com>
24494
24495         * modules/readline: New file.
24496
24497         * modules/strnlen (Files): Add strnlen.h.
24498
24499 2005-08-11  Simon Josefsson  <jas@extundo.com>
24500
24501         * m4/readline.m4: New file.
24502
24503 2005-08-11  Simon Josefsson  <jas@extundo.com>
24504
24505         * lib/readline.h, readline.c: New file.
24506
24507 2005-08-11  Simon Josefsson  <jas@extundo.com>
24508
24509         * doc/gnulib.texi (Initial import, Finishing touches): Mention
24510         gl_AVOID.
24511
24512 2005-08-11  Bruno Haible  <bruno@clisp.org>
24513
24514         * lib/strnlen.h (strnlen): Change parameter name to match comment.
24515
24516 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
24517
24518         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
24519
24520 2005-08-10  Simon Josefsson  <jas@extundo.com>
24521
24522         * tests/test-iconvme.c: New file.
24523
24524 2005-08-10  Simon Josefsson  <jas@extundo.com>
24525
24526         * m4/strnlen.m4: New file.
24527
24528         * m4/strndup.m4: Don't check for strnlen declaration, done in
24529         strnlen.m4.
24530
24531 2005-08-10  Simon Josefsson  <jas@extundo.com>
24532
24533         * lib/strndup.c: Use strnlen.h.
24534
24535         * lib/strnlen.h: New file.
24536
24537 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24538
24539         * README: Typos.
24540
24541 2005-08-02  Simon Josefsson  <jas@extundo.com>
24542
24543         * modules/readline: New file.
24544
24545 2005-08-02  Simon Josefsson  <jas@extundo.com>
24546
24547         * modules/getdelim: New file.
24548
24549         * modules/getline: Rewrite, don't use getndelim2.
24550
24551 2005-08-02  Simon Josefsson  <jas@extundo.com>
24552
24553         * m4/getline.m4: Separate out getdelim stuff into separate module.
24554
24555         * m4/getdelim.m4: New file.
24556
24557 2005-08-02  Simon Josefsson  <jas@extundo.com>
24558
24559         * lib/getline.h, getline.c: Rewrite.
24560
24561         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
24562
24563 2005-07-31  Bruno Haible  <bruno@clisp.org>
24564
24565         * lib/lock.h (gl_lock_initializer): New macro.
24566         (gl_lock_define_initialized): Use it.
24567         (gl_rwlock_initializer): New macro.
24568         (gl_rwlock_define_initialized): Use it.
24569         (gl_recursive_lock_initializer): New macro.
24570         (gl_recursive_lock_define_initialized): Use it.
24571
24572 2005-07-30  Karl Berry  <karl@gnu.org>
24573
24574         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
24575         Report from Ben Pfaff, regarding getopt.
24576
24577 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
24578
24579         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
24580         normal way.
24581         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
24582         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
24583         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
24584         (gl_GETOPT): Use the new macros.  Most of the implementation
24585         is moved to the new macros.  This is for programs like Emacs
24586         that don't want all the functionality of gl_GETOPT.
24587
24588 2005-07-26  Bruno Haible  <bruno@clisp.org>
24589
24590         * m4/lock.m4: Update from GNU gettext.
24591
24592 2005-07-26  Bruno Haible  <bruno@clisp.org>
24593
24594         * lib/lock.h: Update from GNU gettext.
24595         * lib/lock.c: Update from GNU gettext.
24596
24597 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
24598
24599         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
24600         obsolescent AC_TRY_RUN.  Include the default includes files, for
24601         'exit'.
24602
24603 2005-07-24  Bruno Haible  <bruno@clisp.org>
24604
24605         * modules/visibility: New file.
24606         * MODULES.html.sh (Misc): Add visibility.
24607
24608 2005-07-24  Bruno Haible  <bruno@clisp.org>
24609
24610         * m4/visibility.m4: New file.
24611
24612 2005-07-24  Bruno Haible  <bruno@clisp.org>
24613
24614         * doc/visibility.texi: New file.
24615
24616 2005-07-22  Bruno Haible  <bruno@clisp.org>
24617
24618         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
24619         $(ALLOCA_H), redundant through BUILT_SOURCES.
24620         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
24621         redundant through BUILT_SOURCES.
24622         * modules/byteswap (Makefile.am): Remove explicit dependency on
24623         $(BYTESWAP_H), redundant through BUILT_SOURCES.
24624         * modules/fnmatch (Makefile.am): Remove explicit dependency on
24625         $(FNMATCH_H), redundant through BUILT_SOURCES.
24626         * modules/getopt (Makefile.am): Remove explicit dependency on
24627         $(GETOPT_H), redundant through BUILT_SOURCES.
24628         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
24629         redundant through BUILT_SOURCES.
24630         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
24631         redundant through BUILT_SOURCES.
24632         * modules/stdbool (Makefile.am): Remove explicit dependency on
24633         $(STDBOOL_H), redundant through BUILT_SOURCES.
24634         * modules/stdint (Makefile.am): Remove explicit dependency on
24635         $(STDINT_H), redundant through BUILT_SOURCES.
24636         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
24637         Remove explicit dependency on $(SYSEXITS_H).
24638         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
24639
24640 2005-07-18  Simon Josefsson  <jas@extundo.com>
24641
24642         * lib/check-version.c (check_version): Accept identical versions too.
24643
24644 2005-07-18  Bruno Haible  <bruno@clisp.org>
24645
24646         * modules/lock: New file.
24647         * MODULES.html.sh (Multithreading): New section.
24648
24649 2005-07-18  Bruno Haible  <bruno@clisp.org>
24650
24651         * m4/lock.m4: New file, from GNU gettext.
24652
24653 2005-07-18  Bruno Haible  <bruno@clisp.org>
24654
24655         * lib/lock.h: New file, from GNU gettext.
24656         * lib/lock.c: New file, from GNU gettext.
24657
24658 2005-07-18  Bruno Haible  <bruno@clisp.org>
24659
24660         * lib/lock.h (gl_once_t): New type.
24661         (gl_once_define, gl_once): New macros.
24662         * lib/lock.c (fresh_once): New variable.
24663         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
24664         functions.
24665
24666 2005-07-16  Simon Josefsson  <jas@extundo.com>
24667
24668         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
24669         workaround, suggested by Bruno.
24670
24671 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24672
24673         * modules/xalloc (Depends-on): Add xalloc-die.
24674         * modules/xvasprintf (Depends-on): Add xalloc-die.
24675
24676 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24677
24678         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
24679         with a minor change.
24680
24681 2005-07-15  Bruno Haible  <bruno@clisp.org>
24682
24683         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
24684         When using lib/poll.c, define poll as rpl_poll.
24685
24686 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
24687
24688         * modules/argp (Depends-on): Remove unlocked-io.
24689
24690 2005-07-14  Derek Price  <derek@ximbiot.com>
24691
24692         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
24693         for glob symlink bug.
24694
24695 2005-07-14  Bruno Haible  <bruno@clisp.org>
24696
24697         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
24698         Instead, test for *_unlocked function declarations directly.
24699
24700 2005-07-11  Simon Josefsson  <jas@extundo.com>
24701
24702         * modules/size_max: New file.
24703
24704         * modules/xsize: Depend on size_max module for size_max.m4.
24705
24706 2005-07-11  Simon Josefsson  <jas@extundo.com>
24707
24708         * lib/size_max.h: New file.
24709
24710 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
24711
24712         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
24713         copyright symbol and the year.
24714         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
24715         (version_etc_va): Use parameterized copyright notice.
24716         Reword to conform to the current GNU coding standards.
24717
24718 2005-07-11  Karl Berry  <karl@gnu.org>
24719
24720         * doc/gnulib.texi (Quoting): new node.
24721         (Initial import): more info, from Patrice.
24722
24723 2005-07-11  Bruno Haible  <bruno@clisp.org>
24724
24725         * gnulib-tool (func_usage): Document option --avoid.
24726         (Command line options): Handle --avoid.
24727         (func_acceptable): New function.
24728         (func_modules_transitive_closure): Use it.
24729
24730 2005-07-11  Bruno Haible  <bruno@clisp.org>
24731
24732         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
24733         Reported by Jim Meyering.
24734
24735 2005-07-10  Bruno Haible  <bruno@clisp.org>
24736
24737         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
24738         Needed when size_t is smaller than 'unsigned int'.
24739         Reported by Paul Eggert.
24740
24741 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24742
24743         * modules/argp (Depends-on): Add unlocked-io
24744
24745 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24746
24747         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
24748         block of defines.
24749
24750 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24751
24752         * config/srclist.txt: Comment out regcomp.c, since we have a porting
24753         fix now.
24754
24755 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
24756         and Paul Eggert  <eggert@cs.ucla.edu>
24757
24758         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
24759         in wint_t, not wchar_t.  Remove now-unnecessary cast.
24760
24761 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24762
24763         * modules/regex (Files): Add lib/regex_internal.c,
24764         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
24765         (Depends-on): Add extensions.
24766         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
24767
24768 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24769
24770         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
24771         pathconf.
24772         * m4/same.m4 (gl_SAME): Likewise.
24773         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
24774
24775         * m4/regex.m4: Adjust to new libc regex implementation.
24776         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
24777         all the .c and .h parts of (the new) regex.
24778         Quote the m4 stuff better.
24779         Check for RE_ICASE bug of old gnulib.
24780         Check for REG_STARTEND of recent libc.
24781         Rename local variables from jm_* to gl_*.
24782         Quote operand of "test -f".
24783         Say "recent enough" version of libc, not "version 2".
24784         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
24785         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
24786         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
24787         Remove check for btowc, isascii.
24788         Require AM_LANGINFO_CODESET.
24789
24790 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24791
24792         * lib/regex.c, regex.h: Sync from libc.
24793         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
24794         * lib/regexec.c:
24795         New files, synced from libc, except that regex_internal.h
24796         currently has a small porting fix.
24797
24798 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24799
24800         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
24801         regex_internal.c, regexec.c.
24802         Add regex_internal.h too, but as a comment, since the libc version
24803         is currently broken in gnulib mode.
24804
24805 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24806
24807         Support programs like Emacs that use gnulib but not gettext.
24808         * MODULES.html.sh (Internationalization functions): Add gettext-h.
24809         * modules/gettext-h: New file.
24810         * modules/gettext (Files): Remove lib/gettext.h.
24811         (Depends-on): Add gettext-h.
24812         (Makefile.am): Remove lib_SOURCES.
24813         * modules/argmatch, modules/c-stack, modules/closeout:
24814         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
24815         * modules/execute, modules/file-type, modules/getaddrinfo:
24816         * modules/getopt, modules/human, modules/javacomp:
24817         * modules/javaexec, modules/mkdir-p, modules/obstack:
24818         * modules/openat, modules/pagealign_alloc, modules/pipe:
24819         * modules/quotearg, modules/regex, modules/rpmatch:
24820         * modules/unicodeio, modules/userspec, modules/version-etc:
24821         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
24822         * modules/xsetenv:
24823         Depend on gettext-h, not gettext.
24824
24825 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24826
24827         * gnulib-tool (func_import): Add support for 'public domain' license.
24828         * modules/alloca, modules/atexit, modules/memmove:
24829         Now public domain, not GPL.
24830         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
24831         * modules/realloc, modules/strerror, modules/strtod:
24832         Now LGPL, not GPL.
24833
24834 2005-07-05  Bruno Haible  <bruno@clisp.org>
24835
24836         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
24837         autoconf CVS. Needed for mingw.
24838
24839 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24840
24841         Remove the dependency of the strftime module on the tzset module.
24842         * modules/strftime (Depends-on): Remove dependency on tzset.
24843
24844 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24845
24846         Remove the dependency of the strftime module on the tzset module.
24847         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
24848         gl_FUNC_TZSET_CLOBBER.
24849
24850 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24851
24852         Remove the dependency of the strftime module on the tzset module.
24853         * lib/strftime.c (my_strftime)
24854         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
24855         Copy the input structure, to work around some of the bug with
24856         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
24857         Solaris releases, you should also use the tzset module, but we won't
24858         require it as a dependency any more since we don't want LGPLed code
24859         to depend on GPLed code.
24860
24861 2005-07-02  Jim Meyering  <jim@meyering.net>
24862
24863         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
24864         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
24865         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
24866         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
24867
24868 2005-07-02  Jim Meyering  <jim@meyering.net>
24869
24870         * lib/backupfile.c (backup_args): Change a `0' to NULL.
24871
24872 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24873
24874         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
24875         declares only 'struct timespec;' (!).
24876
24877 2005-07-01  Jim Meyering  <jim@meyering.net>
24878
24879         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
24880         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
24881         * lib/save-cwd.c, tempname.c:
24882         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
24883         and don't include <sys/file.h>).
24884
24885 2005-06-29  Jim Meyering  <jim@meyering.net>
24886
24887         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
24888         type name.  Use the variable name instead.
24889         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
24890         Likewise.
24891
24892 2005-06-28  Simon Josefsson  <jas@extundo.com>
24893
24894         * modules/check-version (Files): Add check-version.m4.
24895
24896 2005-06-28  Simon Josefsson  <jas@extundo.com>
24897
24898         * m4/check-version.m4: New file, suggested by Jim Meyering
24899         <jim@meyering.net>.
24900
24901 2005-06-28  Simon Josefsson  <jas@extundo.com>
24902
24903         * lib/check-version.h, lib/check-version.c: New files.
24904
24905 2005-06-28  Simon Josefsson  <jas@extundo.com>
24906
24907         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
24908         collision with global variable.  Better indentation.  Don't
24909         increment buffer pointer beyond buffer end.  Based on comments
24910         from Paul Eggert <eggert@cs.ucla.edu>.
24911
24912         * lib/base64.h: Indent.
24913
24914 2005-06-28  Simon Josefsson  <jas@extundo.com>
24915
24916         * doc/gnulib.texi (Library version handling): New section.
24917
24918 2005-06-28  Jim Meyering  <jim@meyering.net>
24919
24920         * check-module (find_included_lib_files): Hard-code another
24921         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
24922         but modules/fts-lgpl (correctly) does not list those files.
24923
24924         * modules/canonicalize (Files): Add lib/pathmax.h.
24925
24926 2005-06-25  Simon Josefsson  <jas@extundo.com>
24927
24928         * modules/check-version: New file.
24929
24930 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24931
24932         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
24933         initializer of struct addrinfo, as an indication that we don't
24934         care how many members the structure has.
24935
24936 2005-06-24  Derek Price  <derek@ximbiot.com>
24937         and Bruno Haible  <bruno@clisp.org>
24938
24939         Remove stat module & update lstat.
24940         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
24941         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24942         * m4/stat.m4: Remove this file.
24943
24944 2005-06-24  Derek Price  <derek@ximbiot.com>
24945         and Bruno Haible  <bruno@clisp.org>
24946
24947         Remove stat module & update lstat.
24948         * lib/stat.c: Remove this file...
24949         (slash_aware_lstat): ...moving this content and its support...
24950         * lib/lstat.c (rpl_lstat): ...into here.
24951         * lib/lstat.h: New file.
24952
24953 2005-06-24  Derek Price  <derek@ximbiot.com>
24954         and Bruno Haible  <bruno@clisp.org>
24955
24956         Remove stat module & update lstat.
24957         * config/srclist.txt (libc sources): Remove stat.
24958
24959 2005-06-24  Derek Price  <derek@ximbiot.com>
24960         and Bruno Haible  <bruno@clisp.org>
24961
24962         Remove stat module & update lstat.
24963         * MODULES.html.sh (stat): Remove.
24964         * MODULES.html: Regenerated.
24965         * modules/lstat (Description): Correct function name.
24966         (Files): Add "lstat.h".
24967         (Depends-on): Remove stat, add xalloc, stat-macros.
24968         * modules/stat: Remove this file.
24969         (Include): Add "lstat.h", remove <sys/stat.h>.
24970
24971 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24972
24973         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
24974         (ranged_convert): Don't save conversion in a temporary struct.
24975         This causes a warning with GCC 4.0.0, and anyway in the typical
24976         case it's not worth the extra 100 bytes or so of code.
24977         (ranged_convert, __mktime_internal): When calling a function via a
24978         pointer P, use P () rather than (*P) (), as we now assume C89 or
24979         better.
24980
24981 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24982
24983         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
24984         "who -r" failed to give output.  Problem reported by Tim Waugh.
24985
24986         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
24987         (xcalloc): Use it to avoid needless tests.
24988         Problem reported by Jim Meyering.
24989
24990 2005-06-20  Derek Price  <derek@ximbiot.com>
24991
24992         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
24993         unnecessary for Autoconfs > 2.59c.
24994
24995 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24996
24997         * lib/argp.h (__option_is_short): Check upper limit of
24998         __key. Isprint() requires its argument to have the value
24999         of an unsigned char or EOF.
25000
25001 2005-06-16  Jim Meyering  <jim@meyering.net>
25002
25003         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
25004         when either N or S is zero.
25005
25006 2005-06-16  Derek Price  <derek@ximbiot.com>
25007
25008         * m4/bison.m4: Declare YACC & YFLAGS precious.
25009
25010 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
25011
25012         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
25013         multibyte string or pattern, fall back on unibyte matching.
25014         Problem reported by James Youngman.
25015
25016 2005-06-08  Bruno Haible  <bruno@clisp.org>
25017
25018         * modules/csharpcomp: New file.
25019         * MODULES.html.sh (C#): Add csharpcomp.
25020
25021 2005-06-08  Bruno Haible  <bruno@clisp.org>
25022
25023         * m4/csharpcomp.m4: New file, from GNU gettext.
25024
25025 2005-06-08  Bruno Haible  <bruno@clisp.org>
25026
25027         * lib/csharpcomp.h: New file, from GNU gettext.
25028         * lib/csharpcomp.c: New file, from GNU gettext.
25029         * lib/csharpcomp.sh.in: New file, from GNU gettext.
25030
25031 2005-06-08  Bruno Haible  <bruno@clisp.org>
25032
25033         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
25034         warning on mingw.
25035
25036 2005-06-07  Derek Price  <derek@ximbiot.com>
25037
25038         Sync from CVS.
25039         * lib/glob_.h: Indent nested #ifdef.
25040
25041 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
25042
25043         Sync from coreutils.
25044         Use "file name" when talking about file names, instead of "filename"
25045         or "path", as per the GNU coding standards.
25046         * lib/mkdir-p.c: Renamed from makepath.c.
25047         (make_dir_parents): Renamed from make_path.  All callers changed.
25048         * lib/mkdir-p.h: Likewise.  All includers changed.
25049         * lib/filenamecat.c: Renamed from path-concat.c.
25050         (file_name_concat): Renamed from path_concat.  All callers changed.
25051         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
25052         * lib/filenamecat.h: Likewise.  All includers changed.
25053         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
25054         in comments or local variable names.
25055         * lib/basename.c: Likewise.
25056         * lib/canonicalize.c, canonicalize.h: Likewise.
25057         * lib/dirname.c, dirname.h: Likewise.
25058         * lib/euidaccess.c: Likewise.
25059         * lib/exclude.c: Likewise
25060         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
25061         * lib/fsusage.c, fsuage.h: Likewise.
25062         * lib/fts.c, fts_.h: Likewise.
25063         * lib/getcwd.c: Likewise.
25064         * lib/getloadavg.c: Likewise.
25065         * lib/mkstemp.c: Likewise.
25066         * lib/mountlist.c, mountlist.h: Likewise.
25067         * lib/openat.c, openat.h: Likewise.
25068         * lib/readlink-stub.c: Likewise.
25069         * lib/readutmp.c, readutmp.h: Likewise.
25070         * lib/rename.c: Likewise.
25071         * lib/rmdir.c: Likewise.
25072         * lib/same.c: Likewise.
25073         * lib/savedir.c: Likewise.
25074         * lib/stripslash.c: Likewise.
25075         * lib/tempname.c: Likewise.
25076         * lib/xreadlink.c: Likewise.
25077         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
25078         All uses changed.
25079         * lib/exclude.h: Likewise.
25080
25081         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
25082         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25083         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
25084         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25085         * lib/pathmax.h: Include <limits.h> unconditionally, since other
25086         files have been getting away with it for years (MORE/BSD 4.3
25087         is extinct now).
25088         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
25089         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25090
25091         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
25092         Define to 256, not 255, as per modern POSIX.
25093
25094 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
25095
25096         Sync from coreutils.
25097         Use "file name" when talking about file names, instead of "filename"
25098         or "path", as per the GNU coding standards.
25099         * MODULES.html.sh: mkdir-p renamed from makepath.
25100         filenamecat renamed from path-concat.
25101         * modules/filenamecat: Renamed from modules/path-concat.
25102         (Files): filenamecat.h and filenamecat.c renamed from
25103         path-concat.h and path-concat.c.
25104         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
25105         (Include): filenamecat.h, not path-concat.h.
25106         * modules/mkdir-p: Renamed from modules/makepath.
25107         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
25108         makepath.c.
25109         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
25110         (Include): mkdir-p.h, not makepath.h.
25111
25112 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
25113
25114         Sync from coreutils.
25115         * m4/mkdir-p.m4: Renamed from makepath.m4.
25116         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
25117         Rename files from makepath.c to mkdir-p.c, and from
25118         makepath.h to mkdir-p.h.
25119         * m4/filenamecat.m4: Renamed from path-concat.m4.
25120         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
25121         Rename files from path-concat.c to filenamecat.c,
25122         and from path-concat.h to filenamecat.h.
25123         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
25124         "file name" in local variables or comments.
25125         * m4/rename.m4: Likewise.
25126
25127 2005-06-01  Bruno Haible  <bruno@clisp.org>
25128
25129         * modules/csharpexec: New file.
25130         * MODULES.html.sh (C#): New section.
25131
25132 2005-06-01  Bruno Haible  <bruno@clisp.org>
25133
25134         * m4/csharp.m4: New file, from GNU gettext.
25135         * m4/csharpexec.m4: New file, from GNU gettext.
25136
25137 2005-06-01  Bruno Haible  <bruno@clisp.org>
25138
25139         * lib/csharpexec.h: New file, from GNU gettext.
25140         * lib/csharpexec.c: New file, from GNU gettext.
25141         * lib/csharpexec.sh.in: New file, from GNU gettext.
25142
25143 2005-05-31  Derek Price  <derek@ximbiot.com>
25144             Paul Eggert  <eggert@cs.ucla.edu>
25145
25146         Sync from cvs.
25147         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
25148
25149 2005-05-31  Derek Price  <derek@ximbiot.com>
25150             Paul Eggert  <eggert@cs.ucla.edu>
25151
25152         Sync from cvs.
25153         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
25154
25155 2005-05-29  Derek Price  <derek@ximbiot.com>
25156
25157         * config/srclist.txt (glob_.h, glob.c): Add these files.
25158
25159 2005-05-29  Derek Price  <derek@ximbiot.com>
25160
25161         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
25162         * modules/glob: New file.
25163         * modules/getlogin_r: Add link to POSIX spec in description.
25164
25165 2005-05-29  Derek Price  <derek@ximbiot.com>
25166             Paul Eggert  <eggert@cs.ucla.edu>
25167
25168         * m4/glob.m4: New file.
25169
25170 2005-05-29  Derek Price  <derek@ximbiot.com>
25171             Paul Eggert  <eggert@cs.ucla.edu>
25172
25173         * lib/glob_.h, lib/glob.c: New files.
25174
25175 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
25176
25177         * modules/fts (Files): Remove m4/inttypes-pri.m4.
25178         * modules/fts-lgpl (Depends-on): Remove gettext.
25179
25180 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
25181
25182         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
25183         and don't require gt_INTTYPES_PRI.
25184
25185 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
25186
25187         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
25188
25189         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
25190         the configuration hassle isn't worth it.
25191         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
25192         (LONGEST_MODIFIER, PRIuMAX): Remove.
25193
25194 2005-05-27  Bruno Haible  <bruno@clisp.org>
25195
25196         * lib/getlogin_r.h: Remove second include of <stddef.h>.
25197
25198 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
25199
25200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
25201         _POSIX_PTHREAD_SEMANTICS for Solaris.
25202
25203 2005-05-25  Derek Price  <derek@ximbiot.com>
25204
25205         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
25206
25207 2005-05-25  Derek Price  <derek@ximbiot.com>
25208             Paul Eggert  <eggert@cs.ucla.edu>
25209
25210         * modules/getlogin_r, m4/getlogin_r.m4: New files.
25211         * lib/getlogin_r.c, getlogin_r.h: New files.
25212
25213 2005-05-25  Bruno Haible  <bruno@clisp.org>
25214             Derek Price  <derek@ximbiot.com>
25215
25216         * lib/getlogin_r.h: Simplify API documentation.
25217
25218 2005-05-23  Derek Price  <derek@ximbiot.com>
25219
25220         * modules/minmax (Files): Add m4/minmax.m4.
25221         (configure.ac): Add gl_MINMAX.
25222
25223 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
25224
25225         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
25226         so that unistd-safer.h (GPL'ed code) need not be included.
25227
25228 2005-05-22  Bruno Haible  <bruno@clisp.org>
25229
25230         * m4/minmax.m4: New file.
25231         Based on a patch by Derek Price <derek@ximbiot.com>.
25232
25233 2005-05-22  Bruno Haible  <bruno@clisp.org>
25234
25235         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
25236         (INT64_MIN): Fix definition.
25237         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
25238
25239         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
25240         NEED_SIGNED_INT_TYPES.
25241
25242         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
25243         HAVE_SYSTEM_INTTYPES.
25244
25245 2005-05-22  Bruno Haible  <bruno@clisp.org>
25246
25247         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
25248         Also include <sys/param.h> if it defines MIN, MAX.
25249         Based on a patch by Derek Price <derek@ximbiot.com>.
25250
25251 2005-05-21  Jim Meyering  <jim@meyering.net>
25252
25253         * modules/fts (Files): Add m4/inttypes-pri.m4.
25254         (Depends-on): Add lstat and remove gettext.  Alphabetize.
25255
25256 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25257
25258         New fts module.
25259         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
25260         (setup_dir, free_dir): New functions.
25261         (enter_dir, leave_dir): Define trivial
25262         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
25263         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
25264         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
25265         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
25266         Move to fts-cycle.c.
25267         (fts_open): Use setup_dir.
25268         (fts_close): Use free_dir.
25269         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
25270         This adds a label and some gotos, but the alternatives were messier.
25271         Check for memory allocation failure when entering a dir.
25272         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
25273         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
25274         (FTS): New member fts_cycle, that is a union that contains the
25275         old active_dir_ht and cycle_state.  All uses changed to mention
25276         fts_cycle.ht and fts_cycle.state.
25277         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
25278         fts.c, with the following changes:
25279         (setup_dir, free_dir): New functions.
25280         (enter_dir): Now returns bool.  Return true if successful, false
25281         if memory exhausted.  All callers changed.
25282         Do not bother partly cleaning up on
25283         memory allocation failure; that is free_dir's job.
25284         However, free ad if hash_insert fails, to avoid memory leak.
25285         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
25286         fts->fts_options to see which union member to use.
25287
25288 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25289
25290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
25291         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
25292
25293 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25294
25295         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
25296
25297 2005-05-20  Jim Meyering  <jim@meyering.net>
25298
25299         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
25300         Now a macro, to pacify GCC.
25301
25302 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
25303
25304         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
25305         of -1.
25306
25307 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
25308
25309         * lib/chown.c (rpl_chown): Return -1 on failure.
25310
25311 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
25312
25313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
25314         Don't check for stddef.h.
25315         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
25316         don't use its results.
25317         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
25318         since we include them unconditionally.  Don't require
25319         AM_STDBOOL_H, since stdbool is a prerequisite.
25320         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
25321         since we assume C89 or better.
25322         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
25323         as we don't use their results.
25324         Don't check for fchdir, memmove, memset, strrchr, as we use
25325         them unconditionally.
25326         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
25327         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
25328
25329 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
25330
25331         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
25332         Include <stddef.h> unconditionally, since we assume C89 now.
25333         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
25334         * lib/fts.c: Include fts_.h first, to check interface.
25335         Do not include intprops.h; no longer needed.
25336         Include cycle-check.h and hash.h, since fts_.h no longer does.
25337         Remove unnecessary casts of closedir to void.
25338         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
25339         decide whether to decrement nlinks.
25340         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
25341         (FTS): Use struct hash_table * instead of Hash_table, so that
25342         we no longer need to include hash.h here.
25343
25344 2005-05-18  Jim Meyering  <jim@meyering.net>
25345
25346         * modules/dirfd (License): Change to LGPL.  Most of the code
25347         is already in the public domain.
25348
25349 2005-05-18  Jim Meyering  <jim@meyering.net>
25350
25351         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
25352         Reported by Yoann Vandoorselaere.
25353
25354 2005-05-17  Jim Meyering  <jim@meyering.net>
25355
25356         * m4/fts.m4: New file, from coreutils.
25357
25358 2005-05-17  Jim Meyering  <jim@meyering.net>
25359
25360         * lib/fts.c, lib/fts_.h: New files, from coreutils.
25361
25362 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25363
25364         Sync from coreutils.
25365         * m4/unlinkdir.m4: New file.
25366
25367 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25368
25369         Sync from coreutils.
25370         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
25371         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
25372         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
25373         White space changes only.
25374         * lib/makepath.c (make_path): Port to hosts where leading "//" is
25375         special.
25376         * lib/yesno.c: Include getline.h, not ctype.h.
25377         (yesno): Don't remove leading white space; POSIX doesn't allow it.
25378         Use getline to remove arbitrary restriction on response length.
25379
25380 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25381
25382         * config/srclist-update: Spell out "Street" in FSF postal
25383         mail address; this is the style the FSF seems to prefer.
25384
25385         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
25386         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
25387         this updates FSF postal mail address.
25388
25389         Sync from coreutils.
25390         * modules/unlinkdir: New file.
25391         * modules/yesno (Depends-on): Add getline.
25392         * MODULES.html.sh (File system functions): Add unlinkdir.
25393
25394 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
25395
25396         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
25397         lib/strsep.h:
25398         Change the initial comment to refer to GPL, not LGPL.
25399         gnulib-tool will change it to LGPL as needed.
25400
25401         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
25402         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
25403         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
25404         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
25405         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
25406         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
25407         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
25408         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
25409         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
25410         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
25411         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
25412         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
25413         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
25414         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
25415         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
25416         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
25417         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
25418         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
25419         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
25420         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
25421         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
25422         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
25423         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
25424         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
25425         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
25426         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
25427         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
25428         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
25429         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
25430         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
25431         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
25432         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
25433         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
25434         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
25435         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
25436         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
25437         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
25438         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
25439         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
25440         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
25441         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
25442         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
25443         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
25444         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
25445         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
25446         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
25447         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
25448         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
25449         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
25450         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
25451         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
25452         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
25453         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
25454         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
25455         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
25456         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
25457         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
25458         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
25459         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
25460         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
25461         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
25462         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
25463         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
25464         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
25465         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
25466         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
25467         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
25468         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
25469         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
25470         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
25471         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
25472         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
25473         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
25474         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
25475         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
25476         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
25477         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
25478         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
25479         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
25480         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
25481         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
25482         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
25483         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
25484         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
25485         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
25486         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
25487         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
25488         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
25489         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
25490         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
25491         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
25492         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
25493         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
25494         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
25495         lib/yesno.c, lib/yesno.h:
25496         Update FSF postal mail address.
25497
25498 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
25499
25500         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
25501         tests/test-memmem.c, tests/test-stpncpy.c:
25502         Update FSF postal mail address.
25503
25504 2005-05-13  Bruno Haible  <bruno@clisp.org>
25505
25506         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
25507         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
25508         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
25509         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
25510         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
25511         Add support for 64-bit integers in the MSVC compiler.
25512
25513 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25514
25515         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
25516
25517 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
25518
25519         * gnulib-tool (func_import): Sort and uniquify recommended includes.
25520
25521 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
25522
25523         * doc/getdate.texi (General date syntax): Don't say that date
25524         date --iso-8601=ns generates acceptable dates; it doesn't yet.
25525         Problem reported by Nic Ferrier.
25526
25527 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25528
25529         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
25530         specified in ai_socktype. Fix invalid ai_protocol
25531         check. ai_protocol is usually set to 0 or depending on
25532         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
25533         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
25534         ai_socktype / ai_protocol in the returned addrinfo structure.
25535
25536 2005-05-10  Simon Josefsson  <jas@extundo.com>
25537
25538         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
25539         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25540
25541 2005-05-10  Karl Berry  <karl@gnu.org>
25542
25543         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
25544         (from http://www.gnu.org/licenses).
25545         * doc/COPYING.LIB: also rename to COPYING.LESSER.
25546         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
25547         fdl.texi suffices.
25548
25549 2005-05-10  Karl Berry  <karl@gnu.org>
25550
25551         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
25552         (COPYING.DOC): remove.
25553
25554         * config/srclist-update: new FSF address.
25555
25556 2005-05-10  Derek Price  <derek@ximbiot.com>
25557
25558         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
25559         possible.
25560
25561 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25562             Bruno Haible  <bruno@clisp.org>
25563
25564         * modules/inet_ntop: New file.
25565         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25566         inet_ntop.
25567
25568 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25569             Bruno Haible  <bruno@clisp.org>
25570
25571         * m4/inet_ntop.m4: New file.
25572
25573 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25574             Bruno Haible  <bruno@clisp.org>
25575
25576         * lib/inet_ntop.h: New file.
25577         * lib/inet_ntop.c: New file, from glibc with modifications.
25578
25579 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
25580
25581         * modules/time_r (License): Change to LGPL.
25582         * modules/extensions (License): Change to LGPL.  Actually,
25583         the license is more permissive than that, but currently gnulib-tool
25584         doesn't know how to handle more-permissive licenses.
25585
25586         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
25587         Problem reported by Dave Love.
25588
25589 2005-05-08  Jim Meyering  <jim@meyering.net>
25590
25591         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
25592         blank.
25593
25594 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
25595
25596         * modules/argmatch (Depends-on): Add stdbool.
25597         * modules/backupfile (Depends-on): Likewise.
25598         * modules/chdir-long (Depends-on): Likewise.
25599         * modules/closeout (Depends-on): Likewise.
25600         * modules/cycle-check (Depends-on): Likewise.
25601         * modules/dirname (Depends-on): Likewise.
25602         * modules/fnmatch (Depends-on): Likewise.
25603         * modules/fsusage (Depends-on): Likewise.
25604         * modules/fwriteerror (Depends-on): Likewise.
25605         * modules/getcwd (Depends-on): Likewise.
25606         * modules/getloadavg (Depends-on): Likewise.
25607         * modules/hard-locale (Depends-on): Likewise.
25608         * modules/makepath (Depends-on): Likewise.
25609         * modules/mountlist (Depends-on): Likewise.
25610         * modules/nanosleep (Depends-on): Likewise.
25611         * modules/posixtm (Depends-on): Likewise.
25612         * modules/quotearg (Depends-on): Likewise.
25613         * modules/readtokens (Depends-on): Likewise.
25614         * modules/readtokens0 (Depends-on): Likewise.
25615         * modules/readutmp (Depends-on): Likewise.
25616         * modules/save-cwd (Depends-on): Likewise.
25617         * modules/strftime (Depends-on): Likewise.
25618         * modules/userspec (Depends-on): Likewise.
25619         * modules/utimecmp (Depends-on): Likewise.
25620         * modules/xgetcwd (Depends-on): Likewise.
25621         * modules/xnanosleep (Depends-on): Likewise.
25622         * modules/xstrtod (Depends-on): Likewise.
25623         * modules/yesno (Depends-on): Likewise.
25624
25625 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25626
25627         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
25628         needless checks.
25629
25630 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25631
25632         Merge from coreutils.  Among other things,
25633         add bulletproofing for cases where stdin, stdout, or stderr are closed.
25634         * lib/fd-safer.c: New file.
25635         * lib/fcntl-safer.h, open-safer.c: Remove.
25636         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
25637         * lib/dup-safer.c: Include unistd-safer.h first.
25638         Don't include errno.h.
25639         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
25640         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
25641         * lib/file-type.c: Rely on file-type.h change.
25642         * lib/getloadavg.c: Include unistd-safer.h.
25643         (getloadavg): Use safer open.
25644         * lib/getusershell.c: Include "stdio-safer.h".
25645         (getusershell): Use safer fopen.
25646         * lib/long-options.c (long_options): Use NULL rather than 0.
25647         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
25648         'free'.
25649         * lib/modechange.c: Likewise.
25650         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
25651         (MODE_DONE): New constant.
25652         (struct mode_change): Remove 'next' member.
25653         (make_node_op_equals): New function; like the old one of the
25654         same name, except it allocates an array.
25655         (mode_compile, mode_create_from_ref): Use it.
25656         (mode_compile): Allocate result as an array, not a linked list.
25657         Parse octal string ourself, so that we catch mistakes like "+0".
25658         (mode_adjust): Arg is an array, not a linked list.
25659         * lib/modechange.c: Include stat-macros.h, xalloc.h.
25660         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
25661         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
25662         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
25663         Remove.  This is now stat-macros.h's job.
25664         (talloc): Remove.  All callers replaced by xalloc, so that
25665         our invokers don't have to worry about reporting memory failures.
25666         (make_node_op_equals): Remove.
25667         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
25668         New constants.
25669         (struct mode_change): Moved here from modechange.h.
25670         (mode_append_entry): Remove.
25671         (mode_compile): Remove MASKED_OPS arg, since it encouraged
25672         apps to have incorrect behavior.  Use simpler algorithm for head
25673         and tail.  Don't futz with umask; that's now the job of mode_adjust.
25674         Detect more invalid usages rather than having somewhat-random behavior.
25675         Don't insert an "a=" action, as that leads to incorrect behavior.
25676         (mode_compile, mode_create_from_ref): Return NULL on error instead
25677         of an enum, since now there's only one way to have an error.  All
25678         callers changed.
25679         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
25680         at the correct time.  Simplify calculation of "+u" and its ilk.
25681         Don't mishandle "+X".
25682         (mode_free): Remove "register" and localize decls.
25683         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
25684         (struct mode_change): Move to modechange.c; callers don't
25685         need to see this stuff.
25686         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
25687         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
25688         (mode_change, mode_adjust): Reflect the new signatures noted above.
25689         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
25690         that might redefine system include files.
25691         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
25692         (my_usleep): Use NULL rather than (void *) 0.
25693         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
25694         Use siginterrupt to specify that system calls should be interrupted.
25695         (rpl_nanosleep): Move initialization of suspended closer to call of
25696         my_usleep.
25697         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
25698         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
25699         (desirable_utmp_entry): New function.
25700         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
25701         using x2nrealloc, to simplify logic.
25702         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
25703         size calculation.  Do not assume utmp file is a regular file.
25704         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
25705         (READ_UTMP_CHECK_PIDS): New constant.
25706         * lib/save-cwd.c: Include unistd-safer.h.
25707         (save_cwd): Use fd_safer.
25708         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
25709         [!_LIBC] Include "stat-macros.h" instead.
25710         * lib/unistd-safer.h (fd_safer): New decl.
25711
25712 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25713
25714         * modules/getloadavg (Depends-on): Add unistd-safer.
25715         * modules/getusershell (Depends-on): Add stdio-safer.
25716         * modules/lstat (Depends-on): Remove xalloc.
25717         * modules/mkstemp (Depends-on): Add stat-macros.
25718         * modules/modechange (Depends-on): Remove xstrtol.
25719         Add stat-macros, xalloc.
25720         * modules/save-cwd (Depends-on): Add unistd-safer.
25721         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
25722         * modules/unistd-safer (Files): Add lib/fd-safer.c
25723         (Makefile.am): Remove lib_SOURCES.
25724
25725         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
25726         Remove fcntl-safer; unistd-safer supersedes it.
25727
25728 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25729
25730         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
25731         AC_HEADER_STAT.
25732         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
25733         (gl_PREREQ_CHOWN): Remove.
25734         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
25735         it.  Don't require AC_HEADER_STAT.
25736         (gl_PREREQ_LSTAT): Remove.
25737         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
25738         Don't require AC_HEADER_STAT.
25739         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
25740         (gl_PREREQ_RMDIR): Remove.
25741         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
25742         mention stat-macros.h or AC_HEADER_STAT, since we'll make
25743         the stat-macros module a prerequisite.
25744         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
25745         * m4/filemode.m4 (gl_FILEMODE): Likewise.
25746         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
25747         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
25748         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
25749         variable names.
25750         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
25751         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
25752         variable prefixes.
25753         * m4/fcntl-safer.m4: Remove.
25754         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
25755         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
25756         Invoke gl_PREREQ_FD_SAFER.
25757         (gl_PREREQ_FD_SAFER): New macro.
25758         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
25759         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
25760         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
25761         Remove duplicate call to AC_LIBOBJ(readutmp).
25762         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
25763
25764         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
25765         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
25766
25767 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25768
25769         * MODULES.html.sh (Misc): Add byteswap.
25770
25771 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25772
25773         * modules/getcwd (Depends-on): Add extensions.
25774         * modules/openat (Depends-on): Likewise.
25775
25776 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25777
25778         * modules/byteswap: New file.
25779
25780 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25781
25782         * m4/byteswap.m4: New file.
25783
25784 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25785
25786         * lib/byteswap_.h: New file.
25787
25788 2005-04-25  Karl Berry  <karl@gnu.org>
25789
25790         * m4/gettext.m4: Update from GNU gettext 0.14.4.
25791
25792 2005-04-25  Albert Chin  <china@thewrittenword.com>
25793
25794         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
25795         Toolkit C bug.
25796
25797 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
25798
25799         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
25800         (func_ln_if_changed) Remove forcibly for no error message
25801         in case file does not exist.
25802
25803 2005-04-19  Simon Josefsson  <jas@extundo.com>
25804
25805         * gnulib-tool (Options): Make --symlink mean --symbolic.
25806
25807 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
25808
25809         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
25810
25811 2005-04-16  Simon Josefsson  <jas@extundo.com>
25812
25813         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
25814
25815 2005-04-15  Simon Josefsson  <jas@extundo.com>
25816
25817         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
25818
25819 2005-04-15  Simon Josefsson  <jas@extundo.com>
25820
25821         * gnulib-tool: Rename --symlink to --symbolic.
25822
25823 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
25824
25825         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
25826         symbolic links to files instead of copying/moving.  Add --aux-dir,
25827         specifying directory relative --dir where auxiliary build tools
25828         are placed.
25829
25830 2005-04-14  Bruno Haible  <bruno@clisp.org>
25831
25832         * modules/allocsa (License): Change to LGPL.
25833         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25834
25835 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25836
25837         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
25838         that "UTC +1 second" continues to work.  Problem reported
25839         by Dmitry V. Levin.
25840         (relunit_snumber): New rule.
25841         (relunit): Use it.
25842
25843 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25844
25845         * lib/getdate.y (universal_time_zone_table): New constant.
25846         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
25847         universal_time_zone_table.
25848         (lookup_zone): Prefer universal_time_zone_table to
25849         local_time_zone_table, so that "GMT" time stamps are allowed in
25850         London during the summer.  Problem reported by Ian Abbott.
25851
25852 2005-04-12  Jim Meyering  <jim@meyering.net>
25853
25854         * lib/human.c (humblock): Set *options even when returning due to
25855         xstrtoumax conversion failure.  Thanks to a used-uninitialized
25856         warning from gcc-4.
25857
25858 2005-04-09  Jim Meyering  <jim@meyering.net>
25859
25860         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
25861         -Wuninitialized: initialize tm0.tm_year.
25862
25863 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
25864
25865         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
25866         count, since there's no maximum.  All uses changed.
25867         Add member dsts_seen.
25868         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
25869         not being INT_MAX.
25870         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
25871         Use pc_rels_seen to decide whther a date is absolute.
25872
25873         * lib/getdate.y (number): Don't overwrite year.
25874         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
25875         check.
25876
25877 2005-04-02  Simon Josefsson  <jas@extundo.com>
25878
25879         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
25880         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
25881
25882 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
25883
25884         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
25885         where no absolute path name can be longer than PATH_MAX.
25886
25887 2005-03-27  Jim Meyering  <jim@meyering.net>
25888
25889         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
25890
25891 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
25892
25893         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
25894         "one's complement" -> "ones' complement" in comment, as per Knuth.
25895         "value of type" -> "type or expression" in comment.
25896         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
25897
25898 2005-03-26  Jim Meyering  <jim@meyering.net>
25899
25900         Comment nits.
25901         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
25902         Correct typos: s/or/of/.
25903
25904 2005-03-26  Jim Meyering  <jim@meyering.net>
25905
25906         * modules/check-include-files: Move to ../ and rename to...
25907         * check-module: ...this.
25908
25909 2005-03-25  Jim Meyering  <jim@meyering.net>
25910
25911         * modules/xvasprintf (Files): Add xalloc.h.
25912
25913 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
25914
25915         * modules/gettext (Files): config/config.rpath ->
25916         build-aux/config.rpath
25917         * modules/iconv (Files): Likewise.
25918         Problem reported by Oskar Liljeblad.
25919
25920 2005-03-23  Jim Meyering  <jim@meyering.net>
25921
25922         * modules/check-include-files: New script to check for
25923         missing dependencies, multiple includes, etc.
25924
25925         * modules/c-strtold (Depends-on): Add xalloc.
25926         * modules/c-strtod (Depends-on): Add xalloc.
25927         * modules/hash (Depends-on): Add xalloc.
25928         (Files): Remove lib/xalloc.h.
25929
25930         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
25931         * modules/userspec (Files): Add lib/inttostr.h.
25932
25933 2005-03-23  Jim Meyering  <jim@meyering.net>
25934
25935         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
25936
25937 2005-03-22  Jim Meyering  <jim@meyering.net>
25938
25939         * modules/stat-macros: New module.
25940         * modules/canonicalize, modules/euidaccess, modules/file-type,
25941         * modules/filemode, modules/lchown, modules/makepath,
25942         * modules/rmdir, modules/stat: Depend on new stat-macros module
25943         rather than listing lib/stat-macros.h manually.
25944         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
25945
25946 2005-03-22  Jim Meyering  <jim@meyering.net>
25947
25948         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
25949
25950 2005-03-22  Bruno Haible  <bruno@clisp.org>
25951
25952         * config/srclist.txt: Replace target directory 'config' with
25953         'build-aux'.
25954         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
25955         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
25956         ../build-aux/.
25957
25958 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25959
25960         * modules/chdir-long (Depends-on): Add mempcpy.
25961
25962         * modules/acl, modules/backupfile, modules/c-strtod,
25963         modules/c-strtold, modules/canon-host, modules/canonicalize,
25964         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
25965         modules/exclude, modules/exitfail, modules/file-type,
25966         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
25967         modules/getdate, modules/getline, modules/getpagesize,
25968         modules/getpass, modules/getugroups, modules/group-member,
25969         modules/hard-locale, modules/hash, modules/human, modules/idcache,
25970         modules/inttostr, modules/long-options, modules/makepath,
25971         modules/md5, modules/memcasecmp, modules/memcoll,
25972         modules/modechange, modules/mountlist, modules/path-concat,
25973         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
25974         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
25975         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
25976         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
25977         modules/strftime, modules/strndup, modules/strverscmp,
25978         modules/timespec, modules/unlocked-io, modules/userspec,
25979         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
25980         modules/yesno:
25981         Remove lib_SOURCES line from Makefile.am section, as this is now
25982         done automatically by the corresponding Autoconf macro.
25983
25984 2005-03-21  Jim Meyering  <jim@meyering.net>
25985
25986         Changes imported from coreutils.
25987
25988         * lib/cycle-check.c: Don't include xalloc.h.
25989
25990         * lib/path-concat.c: Don't include assert.h.
25991         (path_concat): Remove assertion that would have triggered
25992         for ABASE starting with more than one slash.
25993         Reported by Andreas Schwab.
25994
25995         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
25996         properly when ABASE is an absolute file name.
25997         Correct the description of this function.
25998         Include <assert.h>.
25999         Add an assertion and a test driver.
26000         This fixes a bug introduced on 2004-07-02.
26001         Andreas Schwab reported the resulting failure of cp --parents:
26002         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
26003
26004 2005-03-21  Jim Meyering  <jim@meyering.net>
26005
26006         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
26007         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
26008
26009 2005-03-21  Jim Meyering  <jim@meyering.net>
26010         and  Paul Eggert  <eggert@cs.ucla.edu>
26011
26012         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
26013         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
26014         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
26015         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
26016         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
26017         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
26018         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
26019         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
26020         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
26021         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
26022         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
26023         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
26024         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
26025         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
26026         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
26027         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
26028         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
26029         for these modules.
26030
26031 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
26032
26033         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
26034         (which shouldn't happen), generate nothing instead of returning 0
26035         immediately, so that nstrftime (NULL, ...) doesn't return 0.
26036
26037 2005-03-16  Bruno Haible  <bruno@clisp.org>
26038
26039         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
26040         HAVE_LONGLONG_64BIT.
26041
26042 2005-03-16  Bruno Haible  <bruno@clisp.org>
26043
26044         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
26045         HAVE_LONGLONG_64BIT.
26046
26047 2005-03-16  Bruno Haible  <bruno@clisp.org>
26048
26049         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
26050         HAVE_LONGLONG_64BIT.
26051
26052 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
26053
26054         * lib/strftime.c (my_strftime): Prepend space to format so that we can
26055         reliably distinguish strftime failure from empty output on POSIX
26056         hosts.
26057
26058 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
26059
26060         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
26061         (iconv_string): Don't guess a size-zero buffer, as that might cause
26062         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
26063         result would be 'too large', where 'too large' is (heuristically)
26064         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
26065         overflow concerns.  This will prevent some unwanted malloc failures
26066         when the inputs are very large.
26067
26068 2005-03-15  Karl Berry  <karl@gnu.org>
26069
26070         * config/srclist.txt (config.rpath): from gettext.
26071         * config/config.rpath: update.
26072
26073 2005-03-15  Bruno Haible  <bruno@clisp.org>
26074
26075         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
26076         to 'negate'.
26077
26078         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
26079         variable.
26080
26081         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
26082         results.
26083
26084 2005-03-14  Simon Josefsson  <jas@extundo.com>
26085
26086         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
26087         <fx@gnu.org>.
26088
26089 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
26090
26091         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
26092         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
26093         intprops.h.
26094         * lib/strtol.c: Likewise.
26095
26096 2005-03-14  Jim Meyering  <jim@meyering.net>
26097
26098         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
26099         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
26100         to be nonzero so that we (and caller) can detect the difference
26101         between a valid zero-length expansion and an error return, even
26102         when the underlying strftime fails before writing anything into
26103         that location.
26104
26105 2005-03-14  Bruno Haible  <bruno@clisp.org>
26106
26107         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
26108         Update from GNU gettext 0.14.3.
26109
26110 2005-03-10  Jim Meyering  <jim@meyering.net>
26111
26112         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
26113
26114 2005-03-10  Jim Meyering  <jim@meyering.net>
26115
26116         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
26117         so that this module works on systems without fchdir.
26118
26119 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
26120
26121         Factor int-properties macros into a single file, except for
26122         glibc-related files.
26123         * lib/intprops.h: New file.
26124         * lib/getloadavg.c: Include it instead of limits.h.
26125         (INT_STRLEN_BOUND): Remove.
26126         * lib/human.c: Include intprops.h.
26127         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
26128         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
26129         302/1000.
26130         * lib/inttostr.h: Include intprops.h instead of limits.h.
26131         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
26132         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
26133         for consistency with intprops.h.
26134         (time_t_is_integer, twos_complement_arithmetic): Use them.
26135         * lib/sig2str.h: Include <signal.h>, intprops.h.
26136         (INT_STRLEN_BOUND): Remove.
26137         * lib/strftime.c (TYPE_SIGNED): Remove.
26138         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
26139         * lib/strtol.c: Adjust comments to match intprops.h.
26140         * lib/userspec.c: Include intprops.h.
26141         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
26142         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
26143         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
26144         instead of rolling our own expressions.
26145         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
26146
26147         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
26148         instead of int.
26149         (my_strftime): Do not mishandle years close to INT_MAX, by doing
26150         the right thing even if adding 1900 would overflow.  Similarly
26151         for tm_mon + 1 and tm_yday + 1.
26152         Make %Y always equivalent to %C%y, and similarly for %G and %g.
26153         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
26154         (DO_SIGNED_NUMBER): New macro.
26155         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
26156
26157 2005-03-07  Bruno Haible  <bruno@clisp.org>
26158
26159         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
26160
26161 2005-03-07  Bruno Haible  <bruno@clisp.org>
26162
26163         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
26164
26165 2005-03-04  Derek R. Price  <derek@ximbiot.com>
26166
26167         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
26168         (func_import): Only replace files via --import when they have actually
26169         changed.
26170
26171 2005-03-03  Derek R. Price  <derek@ximbiot.com>
26172
26173         * m4/mmap-anon.m4: New file.
26174         * m4/pagealign_alloc.m4: New file.
26175
26176 2005-03-03  Derek R. Price  <derek@ximbiot.com>
26177             Bruno Haible  <bruno@clisp.org>
26178
26179         * modules/pagealign_alloc: New file.
26180         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
26181
26182 2005-03-03  Derek R. Price  <derek@ximbiot.com>
26183             Bruno Haible  <bruno@clisp.org>
26184
26185         * lib/pagealign_alloc.h: New file.
26186         * lib/pagealign_alloc.c: New file.
26187
26188 2005-03-03  Bruno Haible  <bruno@clisp.org>
26189
26190         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
26191         Use an all-permissive copyright notice, recommended by RMS.
26192
26193 2005-03-02  Bruno Haible  <bruno@clisp.org>
26194
26195         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
26196         of AIX, the replacement has to be done only after <string.h> is
26197         included, therefore not in config.h. stpncpy.h does the replacement,
26198         and stpncpy.c uses it.
26199
26200 2005-03-02  Bruno Haible  <bruno@clisp.org>
26201
26202         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
26203         stpncpy.c uses it.
26204
26205 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26206
26207         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
26208         The workaround isn't strictly needed for POSIX conformance, and
26209         it's too much of a pain to configure and maintain.  We'll ask
26210         people to fix their kernels instead.
26211         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
26212         (NANOSLEEP_BUG_WORKAROUND): Remove.
26213         (xnanosleep): Remove the workaround.
26214
26215 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26216
26217         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
26218         Reported by Derek Price.
26219         (Include): Add "timespec.h".
26220
26221         * modules/xnanosleep (Depends-on): Remove gethrxtime.
26222
26223 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26224
26225         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
26226         to detect nanosleep bug.
26227
26228 2005-03-01  Bruno Haible  <bruno@clisp.org>
26229
26230         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
26231
26232 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26233
26234         * modules/gethrxtime: New file.
26235         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
26236         (Depends-on): Add gethrxtime.
26237         (configure.ac): Add gl_XNANOSLEEP.
26238         (Makefile.am): Remove lib_SOURCES line.
26239
26240 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26241
26242         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
26243         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
26244
26245 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26246
26247         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
26248         * lib/timespec.h (gettime): Return void, since it always
26249         succeeds now.  All uses changed.
26250         * lib/gettime.c (gettime) Likewise.
26251         [HAVE_NANOTIME]: Prefer nanotime.
26252         Assume gettimeofday succeeds, as POSIX requires.
26253         Assime time () succeeds, since other code already does.
26254         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
26255         (timespec_subtract): Remove.
26256         (NANOSLEEP_BUG_WORKAROUND): New constant.
26257         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
26258         things considerably.  Use it only on GNU/Linux hosts, since the
26259         workaround shouldn't be needed elsewhere.
26260
26261 2005-02-24  Bruno Haible  <bruno@clisp.org>
26262
26263         * modules/gettext (Files): Add m4/glibc2.m4.
26264
26265 2005-02-24  Bruno Haible  <bruno@clisp.org>
26266
26267         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
26268         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
26269         * m4/progtest.m4:
26270         Update from GNU gettext 0.14.2.
26271         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
26272
26273 2005-02-24  Bruno Haible  <bruno@clisp.org>
26274
26275         * lib/localcharset.c: Update from GNU gettext 0.14.2.
26276         * lib/config.charset: Update from GNU gettext 0.14.2.
26277
26278 2005-02-24  Bruno Haible  <bruno@clisp.org>
26279
26280         * lib/gettext.h: Update from GNU gettext 0.14.2.
26281
26282 2005-02-23  Simon Josefsson  <jas@extundo.com>
26283
26284         * m4/iconvme.m4: New file.
26285
26286 2005-02-23  Jim Meyering  <jim@meyering.net>
26287
26288         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
26289         change.
26290         Thanks to Bruno Haible for catching it.
26291
26292 2005-02-22  Simon Josefsson  <jas@extundo.com>
26293
26294         * modules/iconvme: New file.
26295
26296         * MODULES.html.sh: Add iconvme.
26297
26298 2005-02-22  Simon Josefsson  <jas@extundo.com>
26299
26300         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
26301
26302 2005-02-22  Simon Josefsson  <jas@extundo.com>
26303
26304         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
26305
26306 2005-02-22  Jim Meyering  <jim@meyering.net>
26307
26308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
26309         s/ifndef/ifdef/.
26310
26311 2005-02-20  Neil Conway  <neilc@samurai.com>
26312
26313         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
26314         returned by OSX/Darwin if the specified buffer is not large
26315         enough for the hostname.
26316
26317 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26318
26319         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
26320         pass it to _help, otherwise the latter coredumps trying to
26321         dereference state.root_argp.
26322
26323 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26324
26325         * modules/chdir-long (Depends-on): Add memrchr.
26326         * modules/memrchr (Files): Add lib/memrchr.h.
26327         (Include): "memrchr.h".
26328
26329 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26330
26331         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
26332
26333 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26334
26335         * lib/memrchr.h: New file.
26336         * lib/chdir-long.c: Include it.
26337         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
26338         Don't bother including stddef.h.
26339
26340 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
26341
26342         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
26343         inclusion.
26344         Include <sys/types.h>, for dev_t.
26345         (ME_DUMMY, ME_REMOTE): Move from here....
26346         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
26347         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
26348         Dmitry V. Levin.
26349         Include mountlist.h first, to test the interface.
26350
26351 2005-01-29  Bruno Haible  <bruno@clisp.org>
26352
26353         * lib/progname.c (program_name): Initialize.
26354         Needed when linking statically on MacOS X.
26355
26356 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26357
26358         Sync from coreutils.
26359         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
26360         (Depends-on): Add c-strtod.
26361         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
26362
26363 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26364
26365         Sync from coreutils.
26366         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
26367
26368         Remove files that are specific to coreutils.
26369         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
26370
26371 2005-01-28  Bruno Haible  <bruno@clisp.org>
26372
26373         * modules/javacomp: New file.
26374         * MODULES.html.sh (Java): Add javacomp.
26375
26376 2005-01-28  Bruno Haible  <bruno@clisp.org>
26377
26378         * m4/javacomp.m4: New file, from GNU gettext.
26379
26380 2005-01-28  Bruno Haible  <bruno@clisp.org>
26381
26382         * lib/javacomp.sh.in: New file, from GNU gettext.
26383         * lib/javacomp.h: New file, from GNU gettext.
26384         * lib/javacomp.c: New file, from GNU gettext.
26385
26386 2005-01-26  Simon Josefsson  <jas@extundo.com>
26387
26388         * lib/gai_strerror.c: Use GPL in header.
26389
26390 2005-01-26  Bruno Haible  <bruno@clisp.org>
26391
26392         * modules/javaexec: New file.
26393         * MODULES.html.sh (Java): Add javaexec.
26394
26395 2005-01-26  Bruno Haible  <bruno@clisp.org>
26396
26397         * m4/javaexec.m4: New file, from GNU gettext.
26398
26399 2005-01-26  Bruno Haible  <bruno@clisp.org>
26400
26401         * lib/javaexec.sh.in: New file, from GNU gettext.
26402         * lib/javaexec.h: New file, from GNU gettext.
26403         * lib/javaexec.c: New file, from GNU gettext.
26404
26405 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26406
26407         * modules/lchown (Depends-on): Remove lchown.h
26408
26409 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26410
26411         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
26412         must be defined if the header file was not found, in order
26413         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
26414
26415 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26416
26417         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
26418         initializers for struct pentry_state.
26419         (__argp_error): Check return value of __asprintf
26420         (__argp_failure): Translate error message
26421
26422         * lib/argp-parse.c: Removed braces around the expansion of N_()
26423
26424 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26425
26426         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
26427         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
26428         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
26429         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
26430         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
26431         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
26432         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
26433         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
26434         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
26435         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
26436         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
26437         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
26438         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
26439         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
26440         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
26441         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
26442         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
26443         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
26444         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
26445         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
26446         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
26447         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
26448         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
26449         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
26450         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
26451         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
26452         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
26453         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
26454         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
26455         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
26456         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
26457         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
26458         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
26459         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
26460         xstrtol.m4, xstrtoumax.m4, yesno.m4:
26461         Use an all-permissive copyright notice, recommended by RMS.
26462
26463 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26464
26465         * modules/chdir-long (Depends-on): Remove mempcpy.
26466
26467 2005-01-21  Jim Meyering  <jim@meyering.net>
26468
26469         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
26470         same value as for Solaris 9.
26471
26472         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
26473         component length.  This included changing the parameter to be
26474         of type `char *' rather than `char const *'.
26475         * lib/chdir-long.h (chdir_long): Update prototype.
26476
26477         * lib/openat.c (fdopendir, fstatat): New functions.
26478         * lib/openat.h: Include headers required for use of DIR and struct
26479         stat.
26480         [AT_SYMLINK_NOFOLLOW]: Define.
26481         (fdopendir, fstatat): Add prototypes.
26482
26483 2005-01-21  Bruno Haible  <bruno@clisp.org>
26484
26485         * modules/classpath: New file.
26486         * MODULES.html.sh (Java): Add classpath.
26487
26488 2005-01-21  Bruno Haible  <bruno@clisp.org>
26489
26490         * lib/classpath.h: New file, from GNU gettext.
26491         * lib/classpath.c: New file, from GNU gettext.
26492
26493 2005-01-20  Simon Josefsson  <jas@extundo.com>
26494
26495         * modules/version-etc-fsf: New file.
26496
26497 2005-01-20  Simon Josefsson  <jas@extundo.com>
26498
26499         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
26500         * lib/version-etc.c: Remove version_etc_copyright.
26501         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
26502         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
26503
26504 2005-01-20  Simon Josefsson  <jas@extundo.com>
26505
26506         * lib/base64.h (isbase64): Add.
26507
26508         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
26509         using a unsigned prototype, don't inline.
26510         (base64_decode): Use it.
26511
26512 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26513
26514         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
26515         it.
26516
26517 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26518
26519         * lib/save-cwd.c (save_cwd): Remove code to support the case
26520         where fchdir is missing or flaky.
26521
26522 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26523
26524         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
26525
26526 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26527
26528         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
26529         AC_LIBSOURCES now does this.
26530         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
26531         with new ullong_max module.
26532
26533 2005-01-19  Bruno Haible  <bruno@clisp.org>
26534
26535         * modules/sh-quote: New file.
26536         * MODULES.html.sh (Executing programs): Add sh-quote.
26537
26538 2005-01-19  Bruno Haible  <bruno@clisp.org>
26539
26540         * lib/sh-quote.h: New file, from GNU gettext.
26541         * lib/sh-quote.c: New file, from GNU gettext.
26542
26543 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26544
26545         Merge from coreutils.
26546         * m4/ullong_max.m4: New file.
26547         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
26548         (gl_MACROS): Assume localeconv exists.
26549
26550 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26551
26552         Merge changes from coreutils, as described below in several
26553         changelogs dated today.
26554
26555         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
26556         (O_DIRECTORY): Remove; not needed here, since "." must be
26557         a directory.  All uses removed.
26558         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
26559         universal on Suns, and we also need to test for IRIX.
26560         Revamp code to use 'if' rather than '#if'.
26561         Avoid unnecessary comparison of cwd->desc to 0.
26562
26563         * lib/utimens.c (futimens): Robustify the previous patch, by checking
26564         for known valid error numbers rather than observed invalid ones.
26565
26566 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26567
26568         * modules/ullong_max: New file.
26569
26570         * modules/chdir-long, modules/openat: New files.
26571         * modules/save-cwd (Depends-on): Depend on chdir-long.
26572         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
26573
26574 2005-01-18  Jim Meyering  <jim@meyering.net>
26575
26576         Merge from coreutils.
26577         * m4/chdir-long.m4, m4/openat.m4: New files.
26578         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
26579         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
26580         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
26581         is sane and DOES follow symlinks.  Besides, testing 20 different
26582         systems found no broken chown implementations.
26583         Prompted by a change in rsync's copy of this macro.
26584         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
26585
26586         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
26587
26588         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
26589         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
26590         NULL-means-set-to-current-time semantics.
26591         Remove temporary file immediately, rather than waiting
26592         for configure's at-exit trap code to do it.
26593
26594 2005-01-18  Jim Meyering  <jim@meyering.net>
26595
26596         * lib/version-etc.c (version_etc_copyright): Update copyright date.
26597
26598         * lib/utimens.c (futimens): Account for the fact that futimes
26599         can also fail with errno == ENOSYS or errno == ENOENT.
26600         Patch from Dmitry V. Levin.
26601
26602         Change the name of the robust chdir function from chdir to chdir_long.
26603         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
26604         (restore_cwd): Use chdir_long, not chdir.
26605         * lib/chdir-long.c: Renamed from chdir.c.
26606         * lib/chdir-long.h: Renamed from chdir.h.
26607         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
26608         Hurd.
26609
26610 2005-01-18  Bruno Haible  <bruno@clisp.org>
26611
26612         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
26613         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
26614         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
26615         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
26616         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
26617         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
26618         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
26619         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
26620         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
26621         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
26622         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
26623         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
26624         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
26625         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
26626         Use an all-permissive copyright notice, recommended by RMS.
26627
26628 2005-01-18  Bob Proulx  <bob@proulx.com>
26629
26630         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
26631         simplify offsetof() macro construct to avoid compile failure with
26632         native HP-UX 11.0 ANSI C compiler.
26633
26634 2005-01-17  Bruno Haible  <bruno@clisp.org>
26635
26636         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
26637         redundant because stpncpy.m4 takes care of it.
26638
26639 2005-01-17  Bruno Haible  <bruno@clisp.org>
26640
26641         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
26642
26643 2005-01-17  Bruno Haible  <bruno@clisp.org>
26644
26645         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
26646         used.
26647
26648 2005-01-17  Bruno Haible  <bruno@clisp.org>
26649
26650         * lib/fwriteerror.h (fwriteerror): Change specification to include
26651         fclose.
26652         * lib/fwriteerror.c: Include <stdbool.h>.
26653         (fwriteerror): At the end, close the file stream. Record whether
26654         stdout was already closed.
26655
26656 2005-01-17  Bruno Haible  <bruno@clisp.org>
26657
26658         * lib/execute.c (environ): Declare if needed.
26659         * lib/pipe.c (environ): Likewise.
26660         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
26661
26662 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26663
26664         * modules/argp: Depend on vsnprintf
26665
26666 2005-01-10  Jim Meyering  <jim@meyering.net>
26667
26668         * modules/closeout (Depends-on): Add atexit.
26669
26670 2005-01-06  Bruno Haible  <bruno@clisp.org>
26671
26672         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
26673
26674 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26675
26676         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
26677         definitions to be after all include files, to avoid collisions.
26678         Problem reported by Bob Proulx.
26679
26680 2005-01-04  Jim Meyering  <jim@meyering.net>
26681
26682         Changes imported from coreutils.
26683         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
26684         as the mkstemp template, use a temporary directory and an
26685         8.3-friendly template to avoid trouble on systems like DJGPP.
26686         Reported by Juan M. Guerrero via Stepan Kasal.
26687         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
26688         close. Remove the temporary directory right away, rather than waiting
26689         for configure's at-exit trap code to do it.
26690         Suggestion from Stepan Kasal.
26691
26692 2005-01-01  Simon Josefsson  <jas@extundo.com>
26693
26694         * gnulib-tool: Print #include directives when --import'ing.
26695
26696 2004-12-28  Simon Josefsson  <jas@extundo.com>
26697
26698         * tests/test-base64.c: Include required header files.  Remove
26699         unused variables.
26700
26701 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26702
26703         * modules/error (Depends-on): Remove gettext.
26704
26705 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26706
26707         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
26708         not needed.  This removes a dependency on the gettext module.
26709         [defined _LIBC]: Do not include <libintl.h>; not needed.
26710
26711 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
26712
26713         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
26714         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
26715
26716 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
26717
26718         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
26719         HAVE_DECL_STRTOLD.
26720
26721 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26722
26723         * modules/getdate (Depends-on): Remove alloca-opt.
26724
26725 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26726
26727         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
26728
26729 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26730
26731         * lib/argp-parse.c: Include <stddef.h>.
26732         (alignof, alignto): New macros.
26733         (parser_init): Don't assume that void * is aligned sufficiently
26734         for struct option.
26735
26736         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
26737         need to extend the stack.
26738         (YYINITDEPTH): New macro, so that the initial stack isn't overly
26739         large.
26740
26741 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26742
26743         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
26744
26745 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26746
26747         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
26748         (2004-10-24) change.  Apparently this was a false alarm.
26749
26750         * modules/getdate: Depend on alloca-opt, not alloca.
26751
26752 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26753
26754         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
26755         Remove now-obsolete comment about AIX.
26756         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
26757         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
26758         (YYMAXDEPTH): New macro.
26759
26760 2004-12-18  Simon Josefsson  <jas@extundo.com>
26761
26762         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
26763
26764 2004-12-18  Bruno Haible  <bruno@clisp.org>
26765
26766         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
26767
26768 2004-12-18  Bruno Haible  <bruno@clisp.org>
26769
26770         * lib/fatal-signal.c (fatal_signals): Make non-const.
26771         (init_fatal_signals): New function.
26772         (uninstall_handlers, install_handlers): Ignore signals that were set to
26773         SIG_IGN.
26774         (at_fatal_signal): Call init_fatal_signals.
26775         (init_fatal_signal_set): Likewise. Ignore signals that were set to
26776         SIG_IGN.
26777         Reported by Paul Eggert.
26778
26779 2004-12-18  Bruno Haible  <bruno@clisp.org>
26780
26781         * doc/alloca.texi: New file.
26782         * doc/alloca-opt.texi: New file.
26783
26784 2004-12-17  Jim Meyering  <jim@meyering.net>
26785
26786         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
26787         Otherwise, install-sh could exit with improper exit status when
26788         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
26789
26790 2004-12-16  Simon Josefsson  <jas@extundo.com>
26791
26792         * tests/test-base64.c: Add license.
26793
26794 2004-12-15  Stepan Kasal  <address@hidden>
26795
26796         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
26797
26798 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
26799
26800         * modules/getcwd (Files): Add m4/d-ino.m4.
26801         Suggested by Mark D. Baushke.
26802
26803 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
26804
26805         * lib/getdate.y (textint): New member "negative".
26806         (time_zone_hhmm): New function.
26807         Expect 14 shift-reduce conflicts, not 13.
26808         (o_colon_minutes): New rule.
26809         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
26810         (yylex): Set the "negative" member of signed numbers.
26811
26812 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
26813
26814         * doc/getdate.texi (Time of day items, Time zone items):
26815         Describe new formats +00:00, UTC+00:00.
26816
26817 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26818
26819         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
26820         spurious "-l"s.  Problem reported by Stepan Kasal.
26821
26822 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
26823
26824         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
26825         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
26826
26827 2004-12-04  Simon Josefsson  <jas@extundo.com>
26828
26829         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
26830         Vandoorselaere <yoann@prelude-ids.org>.
26831
26832 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
26833
26834         Changes imported from coreutils.
26835         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
26836         exist.
26837         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
26838
26839 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
26840
26841         Changes imported from coreutils.
26842         * lib/hard-locale.c: Assume <locale.h> exists.
26843         Include "strdup.h".
26844         (GLIBC_VERSION): New macro.
26845         (hard_locale): Assume setlocale exists.
26846         Rewrite to avoid #ifdef.
26847         Use strdup rather than malloc + strcpy.
26848         * lib/human.c: Assume <locale.h> exists.
26849         (human_readable): Assume localeconv exists.
26850
26851 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
26852
26853         * modules/hard-locale (Depends-on): Add strdup.
26854
26855 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
26856
26857         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
26858         convert T2, not T.  (Imported from libc.)
26859
26860 2004-11-30  Simon Josefsson  <jas@extundo.com>
26861
26862         * modules/restrict (License): Change to LGPL.
26863
26864 2004-11-30  Simon Josefsson  <jas@extundo.com>
26865
26866         * m4/restrict.m4: Add copyright and copying conditions.
26867
26868 2004-11-30  Simon Josefsson  <jas@extundo.com>
26869
26870         * m4/base64.m4: New file.
26871
26872 2004-11-30  Simon Josefsson  <jas@extundo.com>
26873
26874         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
26875         base64.
26876
26877         * tests/test-base64.c: New file.
26878
26879         * modules/base64: New file.
26880
26881 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
26882
26883         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
26884         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
26885
26886         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
26887
26888 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
26889
26890         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
26891         (__getcwd.c): Don't restore errno; glibc doesn't.
26892         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
26893         first, falling back to our code only if its results look suspicious.
26894         Ensure that the resulting buffer is only as large as necessary.
26895
26896         * lib/readutmp.c: Include readutmp.h first.
26897         Include <errno.h>, since readutmp.h no longer does that.
26898         * lib/readutmp.h: Don't include <errno.h>,
26899         <sys/param.h>, <time.h>; not needed to establish interface.
26900         (errno): Remove decl.
26901         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
26902         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
26903         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
26904
26905 2004-11-28  Simon Josefsson  <jas@extundo.com>
26906
26907         * lib/base64.h, base64.c: New file.
26908
26909 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
26910
26911         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
26912
26913 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26914
26915         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
26916         (Depends-on): Remove pathmax, same.  Add mempcpy.
26917         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
26918         (Makefile.am): Append getcwd.h to lib_SOURCES.
26919         (Include): Add getcwd.h.
26920         (Maintainer): Change from Jim Meyering to "all, glibc",
26921         since getdate now uses intended-for-glibc code.
26922         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
26923         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
26924
26925 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26926
26927         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
26928         HP's ANSI C compiler.
26929         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
26930         Declaring int functions causes warnings on some modern systems and
26931         shouldn't be needed to compile on ancient ones.
26932         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
26933         defined.
26934
26935         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
26936         with the following changes.
26937         (__set_errno): Parenthesize properly.
26938         Include <stdbool.h>.
26939         (MIN, MAX, MATCHING_INO): New macros.
26940         (__getcwd): Define with prototype, not K&R form.
26941         Use heuristics to allocate default buffer on stack if possible.
26942         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
26943         behavior, and to avoid the PATH_MAX limit when computing
26944         ../../../../...
26945         Use MATCHING_INO to compare inode number to file.
26946         Check for arithmetic overflow in size calculations.
26947         Fix bug in reallocation of dot array that caused getcwd to fail
26948         on directories nested deeper than 75.
26949         Be more careful about saving errno on error.
26950         Do not use realloc; use only free+malloc, as this is a bit
26951         more flexible and avoids a needless copy operation.
26952         Do not inspect st_dev and st_ino for symbolic links; POSIX
26953         doesn't specify the latter.
26954         Check for closedir errors.
26955         Avoid needless casts.
26956         Use "#ifdef weak_alias" around weak_alias, to be like other
26957         glibc code.
26958         The following changes to getcwd.c have effect only when used in
26959         gnulib; they have no effect inside glibc proper.
26960         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
26961         as alloca isn't used.
26962         (alloca, __alloca): Likewise.
26963         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
26964         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
26965         unconditionally, as gnulib assumes C89 or better.
26966         Do not include <sys/param.h>.
26967         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
26968         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
26969         better.
26970         (NULL) [!defined NULL]: Remove; we assume C89 or better.
26971         Include <dirent.h> in a way that is compatible with modern Autoconf.
26972         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
26973         New macros, if not already defined.
26974         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
26975         Use "_LIBC", not "defined _LIBC", for consistency.
26976         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
26977         a mempcpy module.
26978         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
26979         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
26980         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
26981         credit only to Jim Meyering and adjust the copyright dates.
26982         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
26983         <stdlib.h>, <unistd.h>, "pathmax.h".
26984         Instead, include "xgetcwd.h" (first) and "getcwd.h".
26985         (INITIAL_BUFFER_SIZE): Remove.
26986         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
26987
26988 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26989
26990         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
26991         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
26992         Use the _ONCE methods, for efficiency.
26993         Check for fcntl.h.  In test program, include <errno.h>
26994         and <fcntl.h> if available.  Remove old K&R cruft from
26995         test program.  Check for common errors in GNU/Linux,
26996         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
26997         don't do AC_LIBOBJ, as that's getcwd.m4's job.
26998         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
26999         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
27000         name accordingly.
27001         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
27002         accommodate new getcwd.c.
27003         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
27004         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
27005         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
27006         that's all we need now.
27007
27008 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27009
27010         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
27011         argp-parse.c depends on getopt internals, that means we should
27012         always use our getopt, to be on the safe side.
27013         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
27014         order not to spoil the result of an eventual previous invocation
27015         of gl_GETOPT_SUBSTITUTE.
27016
27017 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27018
27019         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
27020         redefinition warnings. To avoid them, include the defines
27021         in `#if !defined __need_getopt ... #endif'. The only place
27022         where __getopt_argv_const is used is in definitions
27023         of getopt_long and getopt_long_only below, which are as well
27024         protected by `#ifndef __need_getopt'.
27025         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
27026         __need_getopt after including <stdio.h> and <unistd.h> These
27027         headers might have defined it.
27028
27029 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
27030
27031         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
27032
27033 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
27034
27035         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
27036         (futimens): New function, which uses futimes if available.
27037         (futimens, utimens): Support timespec==NULL, with same semantics
27038         as utime and utimens.
27039         * lib/utimens.h (futimens): New decl.
27040
27041 2004-11-23  Jim Meyering  <jim@meyering.net>
27042
27043         * lib/getopt_.h: Remove trailing blanks.
27044
27045 2004-11-23  Jim Meyering  <jim@meyering.net>
27046
27047         * lib/__fpending.c: Add comment.
27048
27049 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
27050
27051         * modules/canonicalize (Depends-on): Add xreadlink.
27052         Problem reported by James Youngman.
27053
27054 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27055
27056         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
27057         New macros.
27058         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
27059         optopt): Use them instead of invoking ## directly; otherwise, the
27060         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
27061
27062 2004-11-19  Bruno Haible  <bruno@clisp.org>
27063
27064         * lib/strtok_r.c: Move comments from here...
27065         * lib/strtok_r.h: ... to here.
27066
27067 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27068
27069         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
27070         implementations that mishandle size_t overflow.
27071
27072 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27073
27074         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
27075         might fail.  Problem reported by Yoann Vandoorselaere.
27076         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
27077         implementations that mishandle size_t overflow.
27078
27079 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27080
27081         * modules/canon-host (Depends-on): Add strdup.
27082
27083 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27084
27085         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
27086
27087 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27088
27089         * lib/canon-host.c: Include "strdup.h".
27090         (canon_host): Use getaddrinfo if available, so that IPv6 works.
27091         Use strdup instead of malloc/strcpy to duplicate strings.
27092
27093         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
27094         (human_space_before_unit): New constant.
27095         * lib/human.c (human_readable): Support it.
27096
27097         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
27098         (xgetcwd): Set errno correctly when failing.
27099         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
27100         the failure is actually due to a PATH_MAX problem.
27101
27102         Further getopt changes to make it more likely that glibc will
27103         buy the changes back.
27104         * lib/getopt.c (POSIXLY_CORRECT): New constant.
27105         (getopt): Use it, so to preserve glibc semantic
27106         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
27107         when compiling for libc.
27108         * lib/getopt_.h (__getopt_argv_const): Bring it back.
27109         (getopt_long, getopt_long_only): Use it.
27110
27111         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
27112         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
27113         (getopt): Argv is now char * const *, as per standard.
27114         (_getopt_internal_r, _getopt_internal): Argv is now char **,
27115         not char *__getopt_argv_const *.
27116         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
27117         _getopt_long_only_r): Likewise.
27118         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
27119         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
27120         _getopt_long_r, _getopt_long_only_r): Likewise.
27121         * lib/getopt_.h (__getopt_argv_const): Remove.
27122         (getopt): Argv is now char * const *, as per standard.
27123
27124         * lib/getdate.y (tORDINAL): New token.
27125         (day, relunit): Allow it for relative times.
27126         (relative_time_table): Use tORDINAL for ordinals.
27127
27128 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27129
27130         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
27131         Document that "second" isn't allowed as an ordinal number.
27132
27133 2004-11-16  Jim Meyering  <jim@meyering.net>
27134
27135         * modules/closeout (Depends-on): Add fpending.
27136
27137 2004-11-15  Jim Meyering  <jim@meyering.net>
27138
27139         * lib/closeout.c: Include "__fpending.h" once again.
27140         Include <stdbool.h>.
27141         (close_stdout): Don't fail just because stdout was closed initially,
27142         since some programs don't write to stdout in the normal course of
27143         operation (other than --version and --help), and we don't want this
27144         function to make e.g. `touch file >&-' fail.
27145         But do fail if it was closed and someone has tried to write to it.
27146         E.g., `printf foo >&-' must fail.
27147
27148 2004-11-13  Jim Meyering  <jim@meyering.net>
27149
27150         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
27151
27152 2004-11-12  Simon Josefsson  <jas@extundo.com>
27153
27154         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
27155         small doc fix is still pending.
27156
27157 2004-11-11  Simon Josefsson  <jas@extundo.com>
27158
27159         * modules/strtok_r: New file.
27160
27161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27162         strtok_r.
27163
27164 2004-11-11  Simon Josefsson  <jas@extundo.com>
27165
27166         * m4/strtok_r.m4: New file.
27167
27168         * m4/getopt.m4: Replace opterr.
27169
27170 2004-11-11  Simon Josefsson  <jas@extundo.com>
27171
27172         * lib/strtok_r.h, strtok_r.c: New file.
27173
27174 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27175
27176         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
27177         of replacing opterr, getopt, etc.  This should handle the
27178         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
27179
27180 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27181
27182         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
27183         we can stop lying to compilers about the constness of argv when we
27184         are compiled outside glibc.
27185         (getopt, getopt_long, getopt_long_only): Use it.
27186         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
27187         _getopt_internal, getopt): Likewise.
27188         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
27189         _getopt_long_only_r): Likewise.
27190         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
27191         _getopt_long_r, _getopt_long_only_r): Likewise.
27192
27193         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
27194         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
27195         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
27196         the other external symbols.
27197         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
27198         declaration, since the above renaming now works around collisions.
27199
27200 2004-11-11  Jim Meyering  <jim@meyering.net>
27201
27202         * lib/linebreak.c: Remove trailing blanks.
27203         * lib/alloca_.h: Likewise.
27204         * lib/acosl.c: Likewise.
27205         * lib/euidaccess.c: Likewise.
27206         * lib/allocsa.h: Likewise.
27207
27208 2004-11-10  Simon Josefsson  <jas@extundo.com>
27209
27210         * m4/getaddrinfo.m4: New file.
27211
27212 2004-11-10  Simon Josefsson  <jas@extundo.com>
27213
27214         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
27215
27216 2004-11-10  Simon Josefsson  <jas@extundo.com>
27217
27218         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27219         getaddrinfo.
27220
27221         * modules/getaddrinfo: New file.
27222
27223 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27224
27225         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
27226
27227 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27228
27229         * lib/mktime.c (SHR): New macro, which is a portable
27230         substitute for >> that should work even on Crays.
27231         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
27232         Problem reported by Mark D. Baushke in
27233         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
27234         * lib/getdate.y (SHR): Likewise.
27235         (tm_diff): Use it.
27236         * lib/strftime.c (SHR): Likewise.
27237         (tm_diff): Use it.
27238         * lib/quotearg.c (struct quoting_options): Use unsigned int for
27239         quote_these_too, so that right shifts are well defined.  All uses
27240         changed.
27241
27242 2004-11-10  Jim Meyering  <jim@meyering.net>
27243
27244         Ensure that no close failure goes unreported.
27245         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
27246         return early when it seems there's nothing to flush.
27247         Don't include __fpending.h.
27248
27249 2004-11-10  Jim Meyering  <jim@meyering.net>
27250
27251         * modules/closeout (Depends-on): Remove fpending.
27252
27253 2004-11-10  Jim Meyering  <jim@meyering.net>
27254
27255         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
27256
27257 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27258
27259         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
27260         gl_FUNC_STRFTIME.
27261         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
27262         and AC_REQUIRE when possible, to avoid duplicate checks.
27263         Check for <wchar.h>.
27264
27265 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27266
27267         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
27268
27269 2004-11-09  Bruno Haible  <bruno@clisp.org>
27270
27271         * m4/sockpfaf.m4: New file.
27272
27273 2004-11-05  Bruno Haible  <bruno@clisp.org>
27274
27275         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
27276         Reported by Mark D. Baushke <mdb@cvshome.org>.
27277
27278 2004-11-04  Bruno Haible  <bruno@clisp.org>
27279
27280         2004-09-11  Bruno Haible  <bruno@clisp.org>
27281                 * allocsa.valgrind: New file.
27282         2004-02-06  Bruno Haible  <bruno@clisp.org>
27283                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
27284                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
27285                 Reported by Christopher Seip <chris.seip@hp.com>.
27286
27287 2004-11-04  Bruno Haible  <bruno@clisp.org>
27288
27289         * modules/allocsa (Files): Add lib/allocsa.valgrind.
27290         (Makefile.am): Distribute it.
27291
27292 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27293
27294         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
27295         with errno == ERANGE if the buffer is too small.
27296         Problem reported by Mark D. Baushke.
27297
27298 2004-11-03  Albert Chin  <china@thewrittenword.com>
27299             Paul Eggert  <eggert@cs.ucla.edu>
27300
27301         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
27302         equivalent, substitute $ac_type for equivalent type rather than
27303         blindly using uint32_t *always* which won't work if uint32_t is not
27304         available.  Define _UINT32_T to work around typedef of uint32_t if
27305         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
27306         2.5.1.
27307
27308 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27309
27310         * m4/jm-macros.m4: Sync from coreutils.
27311         (gl_MACROS): Check for mbrlen, for pathchk.
27312         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
27313
27314 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27315
27316         * lib/xreadlink.c (MAXSIZE): New macro.
27317         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
27318         size does not exceed MAXSIZE.  Avoid cast.
27319         As suggested by Mark D. Baushke in
27320         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
27321         if readlink fails with buffer size just under MAXSIZE, try again
27322         with MAXSIZE.
27323
27324 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27325
27326         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
27327
27328 2004-11-02  Derek R. Price  <derek@ximbiot.com>
27329         and  Paul Eggert  <eggert@cs.ucla.edu>
27330
27331         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
27332         (get_date): Overparenthesize to avoid GCC warning.
27333
27334 2004-11-02  Bruno Haible  <bruno@clisp.org>
27335
27336         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
27337         returns void.
27338
27339 2004-11-02  Bruno Haible  <bruno@clisp.org>
27340
27341         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
27342         function returns void.
27343
27344 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27345
27346         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
27347         fflush_unlocked, flockfile, funlockfile, funlockfile,
27348         fputs_unlocked, putc_unlocked.
27349
27350 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27351
27352         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
27353         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
27354         already declared.
27355
27356 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27357
27358         * modules/getdate (Files): Add doc/getdate.texi.
27359         (Depends-on): Add setenv, xalloc.
27360
27361 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27362
27363         * lib/getdate.y: Add support for TZ="foo" within a date string.
27364         Fix some bugs near time_t boundaries.  Reject dates with
27365         out-of-range components, e.g., "Sept 31".
27366         Include <stdlib.h>, "setenv.h", "xalloc.h".
27367         (ISDIGIT_LOCALE): Remove; unused.
27368         Note that the TZ and time functions used here are not reentrant.
27369         (mktime_ok, get_tz): New functions.
27370         (TZBUFSIZE): New constant.
27371         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
27372         This requires that we sometimes generate our own TZ="XXX..." setting.
27373
27374 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27375
27376         * doc/getdate.texi: New file, from coreutils with modifications for
27377         the new TZ parsing.
27378
27379 2004-10-27  Derek R. Price  <derek@ximbiot.com>
27380
27381         * lib/mktime.c (not_equal_tm): Remove redundant check.
27382
27383 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27384
27385         * modules/regex (lib_SOURCES): Add regex.c.
27386         Reported by James Youngman in
27387         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
27388
27389 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27390
27391         * lib/getdate.y: Use Bison 1.875 features, and some minor
27392         code cleanups.  This change does not affect semantics.
27393         Don't include <stdlib.h>; no longer needed.
27394         Don't include unlocked-io.h; only the "#if TEST" code uses
27395         stdio, and performance isn't crucial there.
27396         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
27397         Bison 1.875 features as described below.
27398         All uses of "PC." replaced by "pc->".
27399         (YYSTYPE): Add a forward declaration.
27400         (yylex, yyerror): Use full prototypes in forward decls.
27401         Use "%pure-parser" rather than obsolescent "%pure_parser".
27402         Use %parse-param and %lex-param instead of obsolescent
27403         YYPARSE_PARAM and YYLEX_PARAM.
27404         (meridian_table, month_and_day_table, time_units_table,
27405         relative_time_table, time_zone_table, military_table,
27406         lookup_zone, lookup_word, get_date):
27407         Use NULL instead of 0 where appropriate.
27408         (to_hour): Avoid abort (), to avoid a dependency on
27409         stdlib.h.
27410         (yyerror, yylex): Now accepts parser_control * arg.
27411         (main) [TEST]: Use '\0' rather than 0 for char.
27412
27413 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27414
27415         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
27416
27417 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27418
27419         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
27420         It's now the caller's responsibility to handle the case where
27421         !HAVE_GETPAGESIZE && !defined getpagesize.
27422
27423         * lib/mktime.c (leapyear): Arg is long int, not int.
27424
27425 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
27426
27427         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
27428
27429 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27430
27431         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
27432         missing.  Problem reported by James Youngman.
27433
27434 2004-10-16  Simon Josefsson  <jas@extundo.com>
27435
27436         * gnulib-tool: Fix comments.  Fix parse problem.
27437         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
27438
27439 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
27440
27441         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
27442         implementation of getopt_long.  Problem reported by Alexander Taler in:
27443         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
27444
27445 2004-10-15  Bruno Haible  <bruno@clisp.org>
27446
27447         * gnulib-tool: Untabify. Initialize supplied_libname.
27448         (func_usage): More homogenous output.
27449         (func_modules_transitive_closure, func_modules_to_filelist,
27450         func_emit_lib_Makefile_am): New functions.
27451         (func_import): New function, extracted from big case statement. Use
27452         func_get_license, func_modules_transitive_closure,
27453         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
27454         opt_lgpl. Don't use test -a, as it's not portable.
27455         (func_create_testdir): Use func_modules_transitive_closure,
27456         func_modules_to_filelist, func_emit_lib_Makefile_am.
27457
27458 2004-10-15  Bruno Haible  <bruno@clisp.org>
27459
27460         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
27461
27462 2004-10-15  Bruno Haible  <bruno@clisp.org>
27463
27464         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
27465         the portions belonging to each module.
27466         Suggested by Derek Robert Price <derek@ximbiot.com>.
27467
27468 2004-10-12  Simon Josefsson  <jas@extundo.com>
27469
27470         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
27471         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
27472         to real functions.
27473
27474 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27475
27476         * modules/vsnprintf: New file.
27477
27478 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27479
27480         * m4/vsnprintf.m4: New file.
27481
27482 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27483
27484         * lib/vsnprintf.h: New file.
27485         * lib/vsnprintf.c: New file.
27486
27487 2004-10-11  Bruno Haible  <bruno@clisp.org>
27488
27489         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
27490         vsnprintf.
27491
27492 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27493
27494         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
27495
27496 2004-10-07  Bruno Haible  <bruno@clisp.org>
27497
27498         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
27499         fits into the provided buffer.
27500
27501 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27502
27503         * lib/diacrit.c, diacrit.h: Add GPL notice.
27504
27505         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
27506         notice.
27507         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
27508         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
27509         This avoids a potential constant-folding bug.
27510
27511 2004-10-05  Bruno Haible  <bruno@clisp.org>
27512
27513         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
27514         for the declaration of strsep.
27515
27516 2004-10-05  Bruno Haible  <bruno@clisp.org>
27517
27518         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
27519
27520 2004-10-04  Simon Josefsson  <jas@extundo.com>
27521
27522         * modules/memmem: New file.
27523         * tests/test-memmem.c: New file.
27524         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
27525
27526 2004-10-04  Simon Josefsson  <jas@extundo.com>
27527
27528         * m4/memmem.m4: New file.
27529
27530 2004-10-04  Simon Josefsson  <jas@extundo.com>
27531
27532         * lib/memmem.h: New file.
27533         * lib/memmem.c: New file, taken from glibc.
27534
27535 2004-10-04  Simon Josefsson  <jas@extundo.com>
27536
27537         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
27538         '#ifdef USE_UNLOCKED_IO'.
27539
27540 2004-10-04  Simon Josefsson  <jas@extundo.com>
27541
27542         * config/srclist.txt: Add memmem from glibc.
27543
27544 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
27545
27546         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
27547
27548         * modules/argmatch, modules/argp, modules/closeout, modules/error,
27549         modules/exclude, modules/getdate, modules/getline,
27550         modules/getndelim2, modules/getpass, modules/getpass-gnu,
27551         modules/getusershell, modules/linebuffer, modules/md5,
27552         modules/mountlist, modules/posixtm, modules/readtokens,
27553         modules/readutmp, modules/regex, modules/sha1,
27554         modules/version-etc, modules/yesno:
27555         Remove dependency on unlocked-io.
27556
27557 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
27558
27559         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
27560
27561         * m4/unlocked-io.m4: Add copyright notice.
27562         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
27563
27564 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
27565
27566         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
27567         * lib/xmalloc.c (xmemdup): Likewise.
27568         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
27569         XFREE): Remove these long-obsolescent macros.
27570         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
27571         * lib/xstrdup.c: Remove.
27572
27573         * lib/regex.c (re_comp): Cast gettext return value to char *,
27574         Problem reported by Martin Neitzel via Mark D. Baushke.
27575
27576 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
27577
27578         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
27579         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
27580         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
27581         regex.c, sha1.c, version-etc.c, yesno.c:
27582         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
27583         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
27584         the includer's responsibility.
27585
27586         Sync from coreutils.
27587
27588         * lib/modechange.c (mode_compile): Don't decrement a pointer that
27589         points to the start of a string, as the C Standard says the
27590         resulting behavior is undefined.
27591
27592         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
27593         simple -> simple_backups, numbered_existing ->
27594         numbered_existing_backups, numbered -> numbered_backups
27595         to avoid shadowing problems.  All uses changed.
27596         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
27597         * lib/backupfile.c (check_extension, numbered_backup):
27598         Rename locals to avoid shadowing 'basename'.
27599         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
27600         once.
27601
27602         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
27603         * lib/.cvsignore: Add getopt.h.
27604
27605 2004-10-04  Bruno Haible  <bruno@clisp.org>
27606
27607         * modules/README: New file.
27608         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
27609         not a module.
27610
27611 2004-10-02  Jim Meyering  <jim@meyering.net>
27612
27613         * lib/dirfd.h, getpagesize.h: Add copyright notice.
27614
27615 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27616
27617         * modules/strsep: New file.
27618
27619 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27620
27621         * m4/strsep.m4: New file.
27622
27623 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27624
27625         * lib/strsep.h: New file.
27626         * lib/strsep.c: New file.
27627
27628 2004-10-01  Simon Josefsson  <jas@extundo.com>
27629
27630         * lib/snprintf.c (snprintf): Handle size==0.
27631
27632 2004-10-01  Simon Josefsson  <jas@extundo.com>
27633             Bruno Haible  <bruno@clisp.org>
27634
27635         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
27636         (snprintf): Declare 'args'.
27637
27638 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
27639
27640         * lib/snprintf.c: Remove comments as to why each header is needed.
27641
27642 2004-10-01  Bruno Haible  <bruno@clisp.org>
27643
27644         * MODULES.html.sh: Add strsep.
27645
27646 2004-09-30  Simon Josefsson  <jas@extundo.com>
27647
27648         * modules/snprintf: New file.
27649
27650 2004-09-30  Simon Josefsson  <jas@extundo.com>
27651
27652         * m4/snprintf.m4: New file.
27653
27654 2004-09-30  Simon Josefsson  <jas@extundo.com>
27655
27656         * lib/snprintf.h, lib/snprintf.c: New files.
27657
27658 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27659
27660         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
27661         (hol_entry_help): Never translate an empty string.
27662         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
27663         * lib/argp.h (OPTION_NO_TRANS): New option.
27664
27665 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
27666
27667         * modules/argp (Maintainer): Replace Simon Josefsson
27668         by Sergey Poznyakoff.
27669
27670 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
27671
27672         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
27673         changes merged back into glibc.
27674
27675 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
27676
27677         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
27678
27679 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
27680
27681         * lib/xvasprintf.c: Include xalloc.h.
27682         (xvasprintf): Use xalloc_die, not xmalloc_die.
27683
27684 2004-09-29  Bruno Haible  <bruno@clisp.org>
27685
27686         * modules/alloca-opt: New file, derived from modules/alloca.
27687         * modules/allocsa: Depend on alloca-opt instead of alloca.
27688         * modules/setenv: Likewise.
27689         * modules/vasnprintf: Likewise.
27690         * MODULES.html.sh: Add alloca-opt.
27691
27692 2004-09-28  Simon Josefsson  <jas@extundo.com>
27693
27694         * gnulib-tool: New parameter --lgpl, to asseert that modules are
27695         LGPL, and to replace license template from GPL to LGPL.
27696
27697 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
27698
27699         * modules/dummy: Change license to LGPL.
27700
27701 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
27702
27703         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
27704
27705 2004-09-24  Simon Josefsson  <jas@extundo.com>
27706
27707         * modules/minmax (License): Change from GPL to LGPL.
27708
27709 2004-09-23  Simon Josefsson  <jas@extundo.com>
27710
27711         * gnulib-tool (--import): Typo.
27712
27713 2004-09-23  Simon Josefsson  <jas@extundo.com>
27714
27715         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
27716
27717 2004-09-22  Bruno Haible  <bruno@clisp.org>
27718
27719         * modules/*: Add 'License' field.
27720         * gnulib-tool: Accept --extract-license option.
27721         (func_get_license): New function.
27722
27723 2004-09-21  Bruno Haible  <bruno@clisp.org>
27724
27725         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
27726         Reported by Simon Josefsson.
27727
27728 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27729
27730         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
27731         gl_AC_TYPE_LONG_LONG.
27732
27733 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27734
27735         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
27736
27737 2004-09-18  Simon Josefsson  <jas@extundo.com>
27738         and  Paul Eggert  <eggert@cs.ucla.edu>
27739
27740         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
27741         calls with autoreconf.  Define GL_LIB.
27742
27743 2004-09-14  Karl Berry  <karl@gnu.org>
27744
27745         * config/srclist.txt: unsync setenv.c, sigh.
27746
27747 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27748
27749         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
27750         Problem reported by Bruno Haible in:
27751         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
27752
27753 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27754
27755         * config/srclist.txt: Comment out argp-pvh.c.
27756
27757 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
27758
27759         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
27760         in case some system header has #define'd it.  Problem reported by
27761         Soeren D. Schulze in
27762         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
27763
27764 2004-09-09  Karl Berry  <karl@gnu.org>
27765
27766         * regex.[ch]: delete from the root.  These were supposed to be
27767                 synced with emacs cvs, but this has not happened for about
27768                 a year, and anyway nothing else uses emacs regex.[ch].
27769                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
27770                 lib/regex[.ch] is untouched.
27771
27772 2004-09-09  Bruno Haible  <bruno@clisp.org>
27773
27774         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
27775
27776 2004-09-09  Bruno Haible  <bruno@clisp.org>
27777
27778         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
27779         modifications.
27780         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
27781
27782 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
27783
27784         * modules/xvasprintf: New file.
27785         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
27786
27787 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
27788
27789         * lib/xvasprintf.h: New file.
27790         * lib/xvasprintf.c: New file.
27791         * lib/xasprintf.c: New file.
27792
27793 2004-09-08  Bruno Haible  <bruno@clisp.org>
27794
27795         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
27796
27797 2004-09-08  Bruno Haible  <bruno@clisp.org>
27798
27799         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
27800         length is > INT_MAX.
27801         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
27802         more.
27803
27804 2004-09-08  Bruno Haible  <bruno@clisp.org>
27805
27806         * lib/stdint_.h: New file, taken from GNU clisp.
27807
27808 2004-09-08  Bruno Haible  <bruno@clisp.org>
27809             Oskar Liljeblad  <oskar@osk.mine.nu>
27810
27811         * modules/stdint: New file.
27812         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
27813
27814 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27815
27816         Import from coreutils.
27817         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
27818         strings on unbounded length.  alloca's performance benefits aren't
27819         that important here.
27820         (V_STRDUP): Remove.
27821         (parse_with_separator): New function, with most of the internals
27822         of the old parse_user_spec.  Allow user to omit both user and group,
27823         for compatibility with FreeBSD.
27824         Clone only the user name, not the entire spec.
27825         Do not set *uid, *gid unless entirely successful.
27826         Avoid memory leak in some failing cases.
27827         Fix regression for USER.GROUP reported by Dmitry V. Levin in
27828         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
27829         (parse_user_spec): Rewrite to use parse_with_separator.
27830
27831 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27832
27833         * modules/userspec: Don't depend on alloca.
27834
27835 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27836
27837         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
27838
27839 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27840
27841         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
27842         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
27843         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
27844
27845 2004-08-16  Simon Josefsson  <jas@extundo.com>
27846
27847         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
27848         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
27849         Add --dry-run for --import.
27850         Let user provided command line parameters override configure.ac
27851         settings.
27852
27853 2004-08-12  Simon Josefsson  <jas@extundo.com>
27854
27855         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
27856         as discussed with Paul Eggert in threads rooted at
27857         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
27858         and
27859         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
27860         Before, the test was empty, and relied on ELIDE_CODE in source
27861         code.)
27862         (gl_PREREQ_GETOPT): New macro.
27863         (gl_GETOPT): Use them.
27864
27865 2004-08-12  Simon Josefsson  <jas@extundo.com>
27866
27867         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
27868         * lib/getopt_.h: Renamed from getopt.h.
27869
27870 2004-08-12  Simon Josefsson  <jas@extundo.com>
27871
27872         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
27873         Change default library name from libfoo to libgnu.
27874         Now, if you have a configure.ac that says:
27875                 gl_SOURCE_BASE(gl)
27876                 gl_M4_BASE(gl/m4)
27877                 gl_MODULES(error getopt etcetera)
27878                 gl_INIT
27879         you can import all you need by running:
27880                 ../gnulib/gnulib-tool --import
27881
27882         * modules/getopt (Files): Rename getopt.h to getopt_.h.
27883         (Makefile.am): Rewrite, use logic from argz.
27884         (Include): Use <getopt.h> instead of "getopt.h".
27885
27886 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27887
27888         * modules/argp (Files): Add m4/unlocked-io.m4.
27889         (Depends-on): Add extensions.
27890
27891 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27892
27893         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
27894         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
27895         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
27896         Check for program_invocation_name, program_invocation_short_name,
27897         flockfile, funlockfile, features.h, _getopt_long_only_r.
27898
27899 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27900
27901         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
27902         its complicated substitute.
27903         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
27904         and program_invocation_name.
27905         (__argp_basename) [!_LIBC]: Remove; the only use was
27906         replaced by its body.
27907         (__argp_short_program_name): Change condition from
27908         !defined __argp_short_program_name to
27909         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
27910         to match argp-namefrob.h.
27911         (__argp_failure): Don't assume strerror_r returns char *.
27912         * lib/argp-parse.c (N_): Define unconditionally.
27913         (argp_default_options): Fill out initializers with 0 to avoid
27914         gcc warnings.
27915
27916 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27917
27918         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
27919         getopt1.c.
27920
27921 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27922
27923         Merge from coreutils.
27924
27925         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
27926
27927         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
27928         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
27929
27930 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27931
27932         Merge from coreutils.
27933
27934         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
27935         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
27936         for Reliant Unix 5.43.
27937
27938         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
27939         (union fooround): Use uintmax_t, not long int.
27940         The rest is a merge from libc:
27941         [defined _LIBC]: Include <shlib-compat.h>.
27942         (_obstack) [defined _LIBC]: Remove after 2.3.4.
27943
27944         * lib/settime.c (settime): Recode to avoid warning with
27945         Sun Forte C 6U2.
27946
27947         * lib/strverscmp.c: Convert to UTF-8.
27948
27949 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27950
27951         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
27952         m4/uintmax_t.m4.
27953
27954 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27955
27956         * modules/xalloc-die: New file.
27957         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
27958
27959         * modules/md5 (Files): Add m4/uint32_t.m4.
27960         * modules/sha1: Renamed from modules/sha.
27961         (Files):
27962         Rename lib/sha.h to lib/sha1.h.
27963         Rename lib/sha.c to lib/sha1.c.
27964         Rename m4/sha.m4 to m4/sha1.m4.
27965         (lib_SOURCES): Likewise.
27966         (configure.ac): Rename gl_SHA to gl_SHA1.
27967         (Include): sha.h -> sha1.h.
27968
27969 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27970
27971         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
27972         * m4/sha1.m4: Renamed from sha.m4.
27973         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
27974
27975 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27976
27977         * lib/obstack.h (obstack_empty_p):
27978         Don't assume that chunk->contents is suitably aligned.
27979         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
27980         Likewise. Problem reported by Benno in
27981         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
27982
27983         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
27984         readable.  This could be improved further but it'd take some work.
27985
27986 2004-08-08  Simon Josefsson  <jas@extundo.com>
27987
27988         * modules/xgethostname (Depends-on): Remove exit and error (not
27989         used).
27990
27991         * modules/getpass-gnu: Add getpass.h.
27992         (Depends-on): Add stdbool.
27993         * modules/getpass: Add getpass.h.
27994
27995 2004-08-08  Simon Josefsson  <jas@extundo.com>
27996
27997         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
27998         Check getpass declaration.
27999
28000 2004-08-08  Simon Josefsson  <jas@extundo.com>
28001
28002         * lib/xgethostname.c: Don't include error.h (not used).
28003
28004         * lib/getpass.h: Add.
28005         * lib/getpass.c: Include getpass.h first.
28006
28007 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28008
28009         * lib/xalloc-die.c: New file.
28010         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
28011         All uses removed.
28012         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
28013         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
28014         xalloc-die.c.
28015         (_, N_, xalloc_die): Move to xalloc-die.c.
28016         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
28017         so that we needn't mess with xalloc_msg_memory_exhausted.
28018
28019         * lib/sha1.h: Renamed from sha.h.
28020         (SHA1_H): Renamed from _SHA_H.
28021         (sha1_ctx): Renamed from sha_ctx.
28022         (sha1_init_ctx): Renamed from sha_init_ctx.
28023         (sha1_process_block): Renamed from sha_process_block.
28024         (sha1_process_bytes): Renamed from sha_process_bytes.
28025         (sha1_finish_ctx): Renamed from sha_finish_ctx.
28026         (sha1_read_ctx): Renamed from sha_read_ctx.
28027         (sha1_stream): Renamed from sha_stream.
28028         (sha1_buffer): Renamed from sha_buffer.
28029         * lib/sha1.c: Likewise; renamed from sha.c.
28030         Do not include <sys/types.h>.
28031         Include <stddef.h> rather than <stdlib.h>.
28032
28033 2004-08-08  Bruno Haible  <bruno@clisp.org>
28034
28035         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
28036         FILESYSTEM_PREFIX_LEN.
28037         * lib/progreloc.c: Likewise.
28038         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
28039
28040 2004-08-06  Simon Josefsson  <jas@extundo.com>
28041
28042         * modules/progname (Depends-on): Don't depend on stdbool.
28043
28044 2004-08-06  Simon Josefsson  <jas@extundo.com>
28045
28046         * modules/getsubopt: New file.
28047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28048         getsubopt.
28049
28050 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28051
28052         More merge from coreutils.
28053
28054         * m4/utimens.m4, m4/utimecmp.m4: New files.
28055         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
28056         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
28057         prereq.m4, sha.m4: Import changes from coreutils.
28058
28059 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28060
28061         More merge from coreutils.
28062         * modules/raise, modules/readtokens0, modules/utimens:
28063         * modules/utimecmp, module/xnanosleep: New files.
28064         * modules/strftime: Add lib/strftime.h.
28065         Change include from <time.h> to "strftime.h".
28066         * modules/yesno: Add lib/yesno.h.
28067         * modules/backupfile: Remove lib/addext.c.
28068         * modules/euidaccess: Add stat-macros.h.
28069         * modules/canonicalize, modules/euidaccess,
28070         modules/filemode, modules/lchown, modules/makepath,
28071         modules/rmdir, modules/stat: Likewise.
28072
28073 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28074
28075         Merge from tar.
28076         * lib/argp-help.c (make_hol, hol_append): Don't assume that
28077         SIZE_MAX is a valid preprocessor constant.
28078         (__argp_basename): Change from "#ifndef _LIBC"
28079         to "#ifndef __argp_short_program_name", so that
28080         we don't compile these functions for tar.
28081
28082         More merges from coreutils.
28083         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
28084         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
28085         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
28086         * lib/addext.c: Remove; no longer needed.
28087         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
28088         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
28089         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
28090         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
28091         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
28092         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
28093         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
28094         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
28095         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
28096         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28097         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
28098         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
28099         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
28100         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
28101         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
28102         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
28103         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
28104         Import changes from coreutils.
28105
28106 2004-08-05  Simon Josefsson  <jas@extundo.com>
28107
28108         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
28109
28110 2004-08-05  Simon Josefsson  <jas@extundo.com>
28111
28112         * m4/getsubopt.m4: New file.
28113
28114 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28115
28116         Merge from coreutils.
28117
28118         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
28119         * m4/getcwd-path-max.m4: New files.
28120
28121         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
28122         FILESYSTEM_PREFIX_LEN ->
28123         FILE_SYSTEM_PREFIX_LEN.
28124         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
28125         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
28126         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
28127         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
28128
28129         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
28130         prerequisite modules now handle the DOS stuff.
28131         Don't check for unistd.h.
28132
28133 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28134
28135         Merge from coreutils.
28136
28137         * lib/.gdb-history: Remove; this doesn't belong here.
28138
28139         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
28140         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
28141         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
28142         * lib/getcwd.c: New files.
28143
28144         * lib/dirname.h: Include <stdbool.h>.
28145         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
28146         for consistency with POSIX terminology.  All uses changed.
28147         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
28148         (strip_trailing_slashes): Use bool for booleans.
28149         * lib/stripslash.c (strip_trailing_slashes): Likewise.
28150
28151         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
28152         sometimes returns a positive errno value even when it succeeds.
28153         (print_errno_message) [!LIBC]: Fall back on strerror if
28154         __strerror_r fails.
28155
28156         * lib/path-concat.c (mempcpy): Don't define if a system header defines
28157         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
28158         (longest_relative_suffix): New function.
28159         (path_concat): Use it.  Assume first argument is not NULL.
28160         Port to DOS.  Omit redundant separators.
28161         Report an error instead of returning NULL.
28162         Use mempcpy instead of memcpy.
28163         (xpath_concat): Remove: not declared or used.
28164
28165         * lib/same.h: Include <stdbool.h>
28166         (same_name): Return bool, not int.
28167         * lib/same.c (same_name): Likewise.
28168         (errno): Don't declare; we assume C89 or better now.
28169
28170         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
28171         if not already defined.
28172
28173         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
28174         * lib/dup-safer.c (errno): Likewise.
28175
28176 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28177
28178         Merge from coreutils.
28179         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
28180         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
28181         * modules/path-concat: Don't depend on strdup.
28182
28183 2004-08-03  Simon Josefsson  <jas@extundo.com>
28184
28185         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
28186         * lib/progname.h: Don't include stdbool.h.
28187
28188 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28189
28190         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
28191         * MODULES.html.sh (func_all_modules): Remove fatal.
28192
28193 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28194
28195         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
28196
28197 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28198
28199         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
28200         working.
28201
28202 2004-08-02  Simon Josefsson  <jas@extundo.com>
28203
28204         * lib/getsubopt.h: New file, with comments from Bruno Haible.
28205         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
28206         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
28207
28208 2004-08-01  Simon Josefsson  <jas@extundo.com>
28209
28210         * lib/xgetdomainname.c: Include stdlib.h, for free().
28211
28212 2004-07-19  Bruno Haible  <bruno@clisp.org>
28213
28214         * MODULES.html.sh (func_all_modules): Add dummy.
28215
28216 2004-07-16  Simon Josefsson  <jas@extundo.com>
28217
28218         * modules/dummy: New file.
28219
28220 2004-07-16  Simon Josefsson  <jas@extundo.com>
28221
28222         * lib/dummy.c: New file.
28223
28224 2004-07-16  Bruno Haible  <bruno@clisp.org>
28225
28226         * lib/backupfile.h: Add extern "C" for C++.
28227         * lib/closeout.h: Likewise.
28228         * lib/copy-file.h: Likewise.
28229         * lib/findprog.h: Likewise.
28230         * lib/full-write.h: Likewise.
28231         * lib/pathname.h: Likewise.
28232         * lib/progname.h: Likewise.
28233         * lib/stpcpy.h: Likewise.
28234         * lib/stpncpy.h: Likewise.
28235         * lib/strcase.h: Likewise.
28236         * lib/strstr.h: Likewise.
28237         * lib/xalloc.h: Likewise.
28238
28239         * lib/mbswidth.h: Add extern "C" for C++.
28240         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
28241
28242 2004-07-13  Robert Millan  <robertmh@gnu.org>
28243
28244         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
28245
28246 2004-07-09  Simon Josefsson  <jas@extundo.com>
28247
28248         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
28249         failed without this.)
28250
28251 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28252
28253         * modules/chown (Files): Add lib/fchown-stub.c, since
28254         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
28255
28256 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28257
28258         * lib/fchown-stub.c: New file.
28259
28260 2004-06-24  Jim Meyering  <jim@meyering.net>
28261
28262         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
28263
28264 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28265
28266         * modules/argz: Omit "#include".
28267
28268         * MODULES.html.sh (func_all_modules): Add calloc, to match
28269         2004-06-01 addition of calloc module.
28270
28271 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28272
28273         * m4/argz.m4: New file, which is autoupdated from libtool.
28274
28275 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28276
28277         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
28278         libtool.
28279
28280 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28281
28282         * config/srclist-update: Don't insist on "USA." before the
28283         close-comment, as libtool omits the period and puts the */ on a
28284         separate line.
28285         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
28286         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
28287
28288 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
28289
28290         * modules/argz: New file.
28291         * MODULES.html.sh (func_all_modules): Add argz.
28292
28293 2004-06-12  Jim Meyering  <jim@meyering.net>
28294         and  Paul Eggert  <eggert@cs.ucla.edu>
28295
28296         * modules/hash (Files): Add lib/xalloc.h.
28297         * modules/pipe (Depends-on): Add wait-process.
28298         * modules/stat (Depends-on): Add xalloc.
28299         * modules/userspec (Files): Add lib/userspec.h.
28300         * modules/xstrto
28301
28302         Upgrade from gettext-0.13.
28303         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
28304         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
28305         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
28306
28307 2004-06-10  Jim Meyering  <jim@meyering.net>
28308
28309         * lib/calloc.c: New file.
28310
28311 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
28312
28313         * lib/getdate.y (yylex): Allow space between sign and number.
28314         Problem reported by Dan Jacobson.
28315
28316 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
28317
28318         Merge from coreutils CVS.
28319
28320         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
28321         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
28322         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
28323         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
28324         xstrtol.m4: Fix copyright date and/or serial number.
28325
28326         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
28327         See if we need an fchown replacement.
28328         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
28329         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
28330         and use the replacement function if we detect either defect.
28331
28332         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
28333         gl_UTIMECMP.
28334
28335 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
28336         and  Jim Meyering  <jim@meyering.net>
28337
28338         Merge from coreutils CVS.
28339
28340         * lib/stat-macros.h: New file, with contents from file-type.h
28341         and coreutils' system.h.
28342         * lib/file-type.c: Include "stat-macros.h".
28343         * lib/file-type.h (file_type): Move all macro definitions to new file,
28344         stat-macros.h.
28345
28346         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
28347         Wrap old code with this conditional.
28348         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
28349         function that does not dereference symlinks.
28350         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
28351
28352         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
28353         dependency problems.
28354         (xreadlink): Accept new arg SIZE, for efficiency.
28355         All decls and uses changed.
28356         * lib/xreadlink.h: Include <stddef.h>, for size_t.
28357
28358         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
28359         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
28360
28361         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
28362         sysexits.h.
28363
28364 2004-06-01  Jim Meyering  <jim@meyering.net>
28365
28366         * m4/calloc.m4: New file.
28367
28368 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28369
28370         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
28371         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
28372         Also, fix a typo in a diagnostic.
28373
28374 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28375
28376         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
28377         or AC_FUNC_REALLOC.
28378
28379 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28380
28381         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
28382         macros to be defined.
28383         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
28384         the allocator returns NULL because the requested size is zero.
28385
28386 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28387
28388         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
28389         var.  Add comment explaining why libc still defines it.  This
28390         merges the following patch from glibc:
28391         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
28392
28393 2004-05-20  Andreas Schwab  <schwab@suse.de>
28394
28395         * m4/free.m4: Replace free if it not known to work, not the other
28396         way round.
28397
28398 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
28399
28400         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
28401         present in glibc since revision 1.1 of this file.
28402         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
28403         obstack_alignment_mask, obstack_alloc, obstack_base,
28404         obstack_blank, obstack_blank_fast, obstack_chunk_size,
28405         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
28406         obstack_grow0, obstack_init, obstack_int_grow,
28407         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
28408         obstack_next_free, obstack_object_size, obstack_ptr_grow,
28409         obstack_ptr_grow_fast, obstack_room): Remove declarations of
28410         nonexistent functions.
28411
28412 2004-05-18  Karl Berry  <karl@gnu.org>
28413
28414         * config/srclist.txt: break link for vasnprintf.c.
28415
28416 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28417
28418         Port obstack to the AS/400, where pointers are 16 bytes wide and
28419         you cannot cast an integer to a valid pointer.  This patch is
28420         currently waiting to be integrated into glibc; see
28421         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
28422
28423         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
28424         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
28425         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
28426         (struct obstack): temp member is now a union of a pointer and
28427         an integer, instead of an integer.  All integer uses changed.
28428         This does not affect the physical layout of struct obstack,
28429         except on hosts (like the AS/400) where the size or alignment of
28430         void * is greater than that of ptrdiff_t.
28431         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
28432         __STDC__)]: Store temporary in pointer member of union, not
28433         integer member.
28434         * lib/obstack.c: Include <stddef.h>, for offsetof.
28435         (struct fooalign): Remove; it doesn't need a name.
28436         (union fooround): Change double to long double, and add void *.
28437         (DEFAULT_ALIGNMENT): Use offsetof to compute.
28438         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
28439         not a macro.  Hence the values are always int; so remove all
28440         casts-to-int in uses.
28441
28442 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28443
28444         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
28445         we can get this patch merged into glibc.
28446
28447 2004-05-17  Derek R. Price  <derek@ximbiot.com>
28448             Paul Eggert  <eggert@cs.ucla.edu>
28449
28450         * m4/argp: Depend on alloca.
28451
28452 2004-05-17  Derek R. Price  <derek@ximbiot.com>
28453             Paul Eggert  <eggert@cs.ucla.edu>
28454
28455         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
28456         freecoding.
28457
28458 2004-05-17  Bruno Haible  <bruno@clisp.org>
28459
28460         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
28461         precision that consists of a '.' followed by an empty digit string.
28462         Patch by Tor Lillqvist <tml@iki.fi>.
28463
28464 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
28465
28466         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
28467         for backward compatibility with older code.  We need our own
28468         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
28469         it under some other name, and our alloca.h will define it.
28470
28471 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
28472             Derek Price  <derek@ximbiot.com>
28473
28474         * lib/alloca.c: Include <alloca.h>, to get our interface.
28475         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
28476         include <alloca.h> first.  Use C89 prototype for alloca; this
28477         requires including <stddef.h> for size_t.  Use extern "C" if C++.
28478         Use #elif for simplicity, since we can assume C89 now.
28479         Don't try to source the system alloca.h since it will not be found
28480         and to prevent recursively including its replacement.
28481         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
28482         * lib/regex.c: Likewise.
28483
28484 2004-05-16  Derek Price  <derek@ximbiot.com>
28485             Paul Eggert  <eggert@cs.ucla.edu>
28486
28487         getline cleanup.  This changes the getndelim2 API: both order of
28488         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
28489         no delimiter).
28490
28491         * lib/getline.c: Don't include stddef.h or stdio.h, since our
28492         interface does that.
28493         (getline): Always use getdelim, so that we don't have two
28494         copies of this code.
28495         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
28496         if available.
28497         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
28498         (GETNDELIM2_MAXIMUM): New macro.
28499         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
28500         instead of the old practice of delim2==0.  All callers changed.
28501         Return -1 on overflow, instead of returning junk.
28502         Do not set *linesize unless allocation succeeds.
28503         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
28504         that we include sys/types.h.
28505         * lib/getnline.h: Likewise.
28506         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
28507         (getndelim2): Reorder arguments.
28508         * lib/getnline.c (getnline, getndelim):
28509         Don't discard the NMAX argument.
28510         (getnline): Invoke getndelim, to avoid code duplication.
28511         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
28512         of (size_t) -1 by callers of the getnline family.
28513
28514 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28515
28516         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
28517         Check for gettimeofday.
28518         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
28519         Check for settimeofday, stime.
28520
28521 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28522
28523         * lib/nanosleep.c (suspended): Change its type from int to
28524         sig_atomic_t volatile.
28525         (first_call): Make it private to rpl_nanosleep, and have it
28526         be zero initially as that's a bit faster.
28527         (my_usleep): Round up fractional times instead of truncating them,
28528         as this is the usual meaning for 'sleep'.
28529
28530         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
28531         doesn't work.
28532         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
28533         (ENOSYS): Define if not defined.
28534         (settime): Fall back on stime if it exists and settimeofday fails.
28535         But don't bother with fallbacks if a method fails with errno == EPERM.
28536
28537 2004-05-11  Jim Meyering  <jim@meyering.net>
28538
28539         Prior to this change, the save_cwd caller required read access to the
28540         current directory on most systems (ones with the fchdir function).
28541
28542         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
28543         fails, try write-only, and finally, resort to using xgetcwd.
28544
28545 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28546
28547         * lib/obstack.c, obstack.h: Import changes from libc.
28548
28549 2004-04-28  Bruno Haible  <bruno@clisp.org>
28550
28551         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
28552         also implicitly appends .exe to executables.
28553         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
28554         accepts Windows pathnames.
28555         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
28556         Treat Cygwin like Windows, since it now accepts Windows pathnames.
28557         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
28558         Treat Cygwin like Windows, since it now accepts Windows pathnames.
28559         Reported by Derek Robert Price <derek@ximbiot.com>.
28560
28561 2004-04-21  Karl Berry  <karl@gnu.org>
28562
28563         * config/srclist.txt (localcharset.c): break sync.
28564
28565 2004-04-20  Paul Eggert  <eggert@twinsun.com>
28566
28567         * m4/host-os.m4: Add a copyright notice.
28568
28569 2004-04-20  Jim Meyering  <jim@meyering.net>
28570
28571         Change UTILS_ to gl_ in AC_DEFINE'd names.
28572         Change utils_- and jm_-prefixed variables, too.
28573         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
28574         UTILS_FUNC_MKDIR_TRAILING_SLASH.
28575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
28576
28577         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
28578         Don't emit trailing blanks.
28579         Also rename jm_-prefixed variables to have gl_ prefix.
28580
28581         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
28582         Also rename jm_-prefixed variables to have gl_ prefix.
28583
28584         * m4/jm-macros.m4: Reflect the renamings.
28585         * m4/prereq.m4: Likewise.
28586
28587 2004-04-20  Jim Meyering  <jim@meyering.net>
28588
28589         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
28590         memory.
28591
28592 2004-04-20  Jim Meyering  <jim@meyering.net>
28593             Bruno Haible  <bruno@clisp.org>
28594
28595         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
28596         memory when realloc fails.
28597
28598 2004-04-19  Jim Meyering  <jim@meyering.net>
28599
28600         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
28601         now that readutmp.c may call `free (0)'.
28602
28603 2004-04-19  Bruno Haible  <bruno@clisp.org>
28604
28605         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
28606         * m4/inttypes_h.m4: Likewise.
28607         * m4/stdint_h.m4: Likewise.
28608         * m4/intmax_t.m4: Likewise.
28609         * m4/uintmax_t.m4: Likewise.
28610
28611 2004-04-18  Jim Meyering  <jim@meyering.net>
28612
28613         * m4/prereq.m4: Don't forbid jm_ prefix.
28614
28615         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
28616         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
28617         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
28618         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
28619         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
28620         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
28621         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
28622         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
28623         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
28624         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
28625         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
28626         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
28627         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
28628         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
28629         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
28630         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
28631         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
28632         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
28633         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
28634
28635 2004-04-18  Jim Meyering  <jim@meyering.net>
28636
28637         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
28638         failure, don't leak memory and do call END_UTMP_ENT.
28639
28640 2004-04-16  Jim Meyering  <jim@meyering.net>
28641
28642         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
28643         coreutils' stat program.
28644         (gl_PREREQ): Don't require jm_PREREQ_STAT.
28645
28646 2004-04-11  Paul Eggert  <eggert@twinsun.com>
28647
28648         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
28649         C89.
28650         (CHAR_BIT): Remove, since we assume C89.
28651         Include <stdint.h> if available, as per current Autoconf CVS advice.
28652
28653 2004-03-31  Jim Meyering  <jim@meyering.net>
28654
28655         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
28656         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
28657         * m4/xalloc.m4: Likewise.
28658
28659 2004-03-30  Paul Eggert  <eggert@twinsun.com>
28660
28661         Merge from coreutils.
28662
28663         * m4/inttostr.m4: New file.
28664         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
28665         Require AM_STDBOOL_H and gl_TIMESPEC instead.
28666         Require gl_CLOCK_TIME.
28667         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
28668
28669 2004-03-30  Paul Eggert  <eggert@twinsun.com>
28670
28671         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
28672         not bool, to be more consistent with Unix conventions.
28673         Suggested by Bruno Haible.
28674
28675         Merge from coreutils.
28676
28677         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
28678         * lib/umaxtostr.c: New files.
28679
28680         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
28681         the usual <time.h> dance.
28682         (get_date): Change signature to support fractional time stamps.
28683         All callers changed.
28684         * lib/getdate.y: Include "getdate.h" first, as we can now
28685         assume C89 and don't need to worry about 'const'.
28686         Similarly, include "unlocked-io.h" near start, not in middle.
28687         Include <limits.h>.
28688         (textint.value): Use long int rather than int.
28689         (textint.digits): Use size_t rather than int.
28690         (BILLION, LOG10_BILLION): New constants.
28691         (parser_control): New member rel_ns.  Members day_ordinal,
28692         time_zone, month, day, hour, minutes, rel_year, rel_month,
28693         rel_day, rel_hour, rel_minutes, rel_seconds
28694         are now long int, not int.  Member seconds is now struct timespec,
28695         not int.  New member timespec_seen.  Members dates_seen, days_seen,
28696         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
28697         not int.
28698         (%union.intval): Now long int, not int.
28699         New member timespec.
28700         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
28701         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
28702         (spec): Now is a timespec or an item list.
28703         (timespec, items): New nonterminals.
28704         (time, rel, relunit, number, get_date):
28705         Add support for fractional seconds.
28706         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
28707         (gmtime, localtime, mktime): Remove decls; not needed with C89.
28708         (to_hour): First arg is now long int, not int.
28709         (to_year): Returns long int, not int.
28710         Don't treat year -70 like 70.
28711         (tm_diff): Returns long int, not int.
28712         (lookup_word): Use bool instead of int when appropriate.
28713         (yylex): Use size_t for count, not int.
28714         Detect overflow when parsing large integer constants.
28715         Add support for fractions.
28716         (get_date): Make pointers 'const' if possible.
28717         Use more-portable code to detect integer overflow.
28718         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
28719         Don't use ctime; it's not reliable if the year has >4 digits.
28720
28721         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
28722         This is for compatibility with BSD.
28723
28724         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
28725         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
28726         From coreutils' system.h.
28727
28728         * lib/userspec.c: Don't include "posixver.h".
28729         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
28730         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
28731         compatible extension.  Simplify code by removing a boolean int
28732         that was always nonzero if a string was nonnull.
28733
28734 2004-03-30  Jim Meyering  <jim@meyering.net>
28735
28736         Merge from coreutils.
28737
28738         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
28739         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
28740         on some systems one must include <grp.h> before it.
28741         Reported by Christian Krackowizer.
28742
28743 2004-03-30  Jim Meyering  <jim@meyering.net>
28744
28745         Merge from coreutils.
28746
28747         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
28748
28749         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
28750         an empty input stream.
28751
28752         * lib/readtokens.c: Include <stdbool.h>.
28753         (readtoken): Use `size_t' rather than int/long.
28754         All callers adjusted.
28755         Use `bool' rather than `int' where appropriate.
28756         Use memset rather than an explicit loop.
28757         Use x2nrealloc rather than xrealloc.
28758         Allow the use of `\0' as a delimiter.
28759         (readtokens): Likewise.
28760         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
28761
28762 2004-03-30  Jim Meyering  <jim@meyering.net>
28763
28764         * m4/realloc.m4: Remove file, since now it does no more than
28765         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
28766         the `configure.ac' section of module/realloc.
28767         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
28768
28769 2004-03-30  Bruno Haible  <bruno@clisp.org>
28770
28771         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
28772         nonnull.
28773
28774 2004-03-29  Paul Eggert  <eggert@twinsun.com>
28775
28776         Merge changes to getloadavg.c from coreutils and Emacs.
28777
28778         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
28779         Define to an expression, not to the empty string.
28780         Include cloexec.h and xalloc.h.
28781         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
28782         Use set_cloexec_flag rather than rolling our own.
28783         * lib/cloexec.c, lib/cloexec.h: New files.
28784
28785 2004-03-29  Paul Eggert  <eggert@twinsun.com>
28786
28787         * m4/cloexec.m4: New file.
28788
28789 2004-03-18  Paul Eggert  <eggert@twinsun.com>
28790
28791         * lib/getopt.h: Sync with libc CVS.
28792
28793 2004-03-18  Paul Eggert  <eggert@twinsun.com>
28794             Bruno Haible  <bruno@clisp.org>
28795
28796         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
28797         mbswidth.
28798
28799 2004-03-18  Paul Eggert  <eggert@twinsun.com>
28800             Bruno Haible  <bruno@clisp.org>
28801
28802         * lib/mbswidth.h: Include <wchar.h> only if
28803         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
28804         <wchar.h>.
28805         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
28806
28807 2004-03-09  Paul Eggert  <eggert@twinsun.com>
28808
28809         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
28810         Sync with libc CVS.
28811         * lib/getopt_int.h: New file, also synced from libc.
28812
28813 2004-03-09  Paul Eggert  <eggert@twinsun.com>
28814
28815         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
28816         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
28817         Bring back getopt.c, getopt.h, getopt1.c.
28818
28819 2004-03-07  Paul Eggert  <eggert@twinsun.com>
28820
28821         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
28822         All uses changed.  Check for sa_sigaction member; this fixes
28823         a bug first reported by Jason Andrade in
28824         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
28825
28826 2004-03-07  Paul Eggert  <eggert@twinsun.com>
28827
28828         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
28829         '#if' expressions.  Unlike the code it replaces, it does not
28830         depend on (defined _SC_PAGESIZE).  However, it does depend on
28831         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
28832         first reported by Jason Andrade in
28833         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
28834
28835 2004-02-25  Simon Josefsson  <jas@extundo.com>
28836
28837         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
28838
28839 2004-02-25  Simon Josefsson  <jas@extundo.com>
28840
28841         * lib/strdup.h: New file.
28842         * lib/strdup.c: Include it.
28843         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
28844         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
28845
28846 2004-02-23  Karl Berry  <karl@gnu.org>
28847
28848         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
28849         (from fencepost.gnu.org:/gd/gnuorg).
28850
28851 2004-02-23  Karl Berry  <karl@gnu.org>
28852
28853         * config/srclistvars.sh (GNUORG) [karl]: redefine.
28854         * config/srclist.txt: add maintain/standards documents.
28855
28856 2004-02-18  Bruno Haible  <bruno@clisp.org>
28857
28858         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
28859         Reported by Derek Robert Price <derek@ximbiot.com>.
28860
28861 2004-02-16  Karl Berry  <karl@gnu.org>
28862
28863         * config/mkinstalldirs, install-sh: update from automake.
28864
28865 2004-02-06  Karl Berry  <karl@gnu.org>
28866
28867         * m4/po.m4: update from gettext 0.14.1.
28868
28869 2004-02-06  Karl Berry  <karl@gnu.org>
28870
28871         * lib/config.charset: update from gettext 0.14.1.
28872
28873 2004-02-05  Paul Eggert  <eggert@twinsun.com>
28874
28875         Add comments and code, prompted by suggestions from Bruno Haible
28876         for sh-quote.
28877         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
28878         describing the enum quoting_style values.
28879         * lib/quotearg.c (quotearg_alloc): New function.
28880         (quotearg_buffer_restyled): Treat lone { and } as special.
28881         Treat = as special.  Work around bug with older shells
28882         that "see" a '\' that is really the 2nd byte of a multibyte char.
28883         Quote empty string with shell_quoting_style.
28884
28885 2004-02-03  Bruno Haible  <bruno@clisp.org>
28886
28887         * m4/pipe.m4: New file, from GNU gettext.
28888
28889 2004-02-03  Bruno Haible  <bruno@clisp.org>
28890
28891         * lib/pipe.h: New file, from GNU gettext.
28892         * lib/pipe.c: New file, from GNU gettext.
28893
28894 2004-01-27  Bruno Haible  <bruno@clisp.org>
28895
28896         * m4/execute.m4: New file, from GNU gettext.
28897
28898 2004-01-27  Bruno Haible  <bruno@clisp.org>
28899
28900         * lib/execute.h: New file, from GNU gettext.
28901         * lib/execute.c: New file, from GNU gettext.
28902         * lib/w32spawn.h: New file, from GNU gettext.
28903
28904 2004-01-24  Paul Eggert  <eggert@twinsun.com>
28905
28906         Merge from diffutils.
28907
28908         * lib/file-type.c (file_type): Add typed memory objects.
28909         * lib/file-type.h (S_TYPEISTMO): New macro.
28910
28911         * lib/c-stack.h (c_stack_action): Remove argv argument.
28912         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
28913         (die): Don't calculate message unless segv_action returns.
28914         (get_stack_location, min_address_from_argv, max_address_from_argv,
28915         volatile stack_base, volatile_stack_size): Remove.
28916         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
28917         that every segmentation violation is a stack overflow.  (Ouch!)
28918         See Debian bug 136249 (still outstanding) for more info about why
28919         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
28920
28921 2004-01-24  Paul Eggert  <eggert@twinsun.com>
28922
28923         Exit-status fix from coreutils.
28924
28925         Use exit_failure consistently in place of EXIT_FAILURE,
28926         so that program exit statuses are consistent on failure.
28927
28928         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
28929         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
28930         * lib/argmatch.h: Comment fix to match the above.
28931         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
28932         Now a macro referring to exit_failure, instead of a separate
28933         variable.  Include "exitfail.h" to get it.
28934         * lib/xstrtol.h: Include "exitfail.h".
28935         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
28936
28937         * lib/long-options.c (parse_long_options): Use prototype
28938         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
28939         for clarity.
28940
28941 2004-01-21  Jim Meyering  <jim@meyering.net>
28942
28943         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
28944         so as not to conflict with a different-sized __mktime_internal
28945         function in GNU libc.
28946         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
28947         Problem building statically-linked `ls' reported by Michael Brunnbauer.
28948
28949 2004-01-20  Karl Berry  <karl@gnu.org>
28950
28951         * config/config.guess: update from config.
28952
28953         * config/srclistvars.sh: GNUWWWLICENSES for karl.
28954
28955 2004-01-20  Bruno Haible  <bruno@clisp.org>
28956
28957         Safer stack allocation.
28958         * lib/setenv.c: Include allocsa.h.
28959         (alloca): Remove fallback definition.
28960         (freea): Remove macro.
28961         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
28962         instead of freea.
28963
28964 2004-01-20  Bruno Haible  <bruno@clisp.org>
28965
28966         * m4/eealloc.m4: New file, from GNU gettext.
28967
28968 2004-01-20  Bruno Haible  <bruno@clisp.org>
28969
28970         * m4/allocsa.m4: New file, from GNU gettext.
28971
28972 2004-01-20  Bruno Haible  <bruno@clisp.org>
28973
28974         * lib/xallocsa.h: New file, from GNU gettext.
28975         * lib/xallocsa.c: New file, from GNU gettext.
28976
28977 2004-01-20  Bruno Haible  <bruno@clisp.org>
28978
28979         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
28980
28981 2004-01-20  Bruno Haible  <bruno@clisp.org>
28982
28983         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
28984         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
28985         specially.
28986
28987 2004-01-20  Bruno Haible  <bruno@clisp.org>
28988
28989         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
28990         patch.
28991
28992 2004-01-20  Bruno Haible  <bruno@clisp.org>
28993
28994         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
28995
28996 2004-01-20  Bruno Haible  <bruno@clisp.org>
28997
28998         * lib/eealloc.h: New file.
28999
29000 2004-01-20  Bruno Haible  <bruno@clisp.org>
29001
29002         * lib/binary-io.h: Avoid warnings on Cygwin.
29003
29004 2004-01-20  Bruno Haible  <bruno@clisp.org>
29005
29006         * lib/allocsa.h: New file, from GNU gettext.
29007         * lib/allocsa.c: New file, from GNU gettext.
29008
29009 2004-01-18  Karl Berry  <karl@gnu.org>
29010
29011         * doc/gpl.texi, doc/lgpl.texi: new files.
29012
29013 2004-01-18  Karl Berry  <karl@gnu.org>
29014
29015         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
29016         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
29017
29018 2004-01-15  Paul Eggert  <eggert@twinsun.com>
29019
29020         Merge from coreutils.
29021
29022         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
29023         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
29024         (gl_DEFAULT_POSIX2_VERSION): Move
29025         the documentation from 'configure' into 'config.hin',
29026         so that 'configure --help' isn't burdened by it and
29027         we don't have to worry about its formatting there.
29028         Reword the documentation so that it's more succinct
29029         and can be run together into a single paragraph.
29030         * m4/same.m4 (gl_SAME): Check for pathconf.
29031
29032 2004-01-15  Paul Eggert  <eggert@twinsun.com>
29033
29034         Merge from coreutils.
29035
29036         * lib/posixver.c: Include posixver.h.
29037
29038         * lib/same.c: Include <stdbool.h>, <limits.h>.
29039         (_POSIX_NAME_MAX): Define if not defined.
29040         (MIN): New macro.
29041         (same_name): If file names are silently truncated, report
29042         that the file names are the same if they are the same after
29043         the silent truncation.
29044
29045         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
29046         conversion function.
29047         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
29048         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
29049         longer needed.
29050
29051 2004-01-15  Jim Meyering  <jim@meyering.net>
29052
29053         Merge from coreutils.
29054
29055         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
29056         if no library is required.
29057         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
29058         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
29059         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
29060         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
29061         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
29062         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
29063         value, $ac_cv_search_crypt, if it's "none required".
29064         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
29065         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
29066         not gl_FUNC_GETLOADAVG.
29067         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
29068         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
29069
29070 2004-01-15  Jim Meyering  <jim@meyering.net>
29071
29072         Merge from coreutils.
29073
29074         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
29075         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
29076         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
29077
29078         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
29079         optional configure-time default.
29080
29081         * lib/version-etc.c (version_etc_copyright): Update copyright date.
29082
29083         * lib/xreadlink.c (xreadlink): Correct outdated comment.
29084
29085 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
29086
29087         Merge from coreutils.
29088
29089         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
29090         value, $ac_cv_search_nanosleep, if it's "none required".
29091
29092 2004-01-14  Paul Eggert  <eggert@twinsun.com>
29093
29094         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
29095         with like-named macro in fnmatch.c.
29096         (EXT): Use an internal constant instead.
29097
29098         Merge fnmatch patches from glibc.
29099         * lib/fnmatch.c (mbsinit): Remove define.
29100         Add libc_hidden_ver (__fnmatch, fnmatch).
29101         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
29102         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
29103
29104 2004-01-14  Karl Berry  <karl@gnu.org>
29105
29106         * config/install-sh: update from automake.
29107
29108 2004-01-13  Karl Berry  <karl@gnu.org>
29109
29110         * config/install-sh: update from automake.
29111
29112 2004-01-09  Karl Berry  <karl@gnu.org>
29113
29114         * config/install-sh: update from automake.
29115
29116 2004-01-05  Karl Berry  <karl@gnu.org>
29117
29118         * config/config.{sub,guess}: update from config.
29119
29120 2003-12-31  Karl Berry  <karl@gnu.org>
29121
29122         * config/depcomp: update from automake.
29123
29124 2003-12-14  Karl Berry  <karl@gnu.org>
29125
29126         * lib/config.charset: update from gettext-runtime.
29127
29128 2003-12-03  Paul Eggert  <eggert@twinsun.com>
29129
29130         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
29131         Bug reported by Alfred M. Szmidt.
29132
29133 2003-12-03  Bruno Haible  <bruno@clisp.org>
29134
29135         * m4/gettext.m4: Upgrade from gettext-0.13.
29136         * m4/po.m4: Upgrade from gettext-0.13.
29137         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
29138         * m4/intmax.m4: New file, from gettext-0.13.
29139         * m4/printf-posix.m4: New file, from gettext-0.13.
29140
29141 2003-11-29  Karl Berry  <karl@gnu.org>
29142
29143         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
29144
29145 2003-11-25  Paul Eggert  <eggert@twinsun.com>
29146             Bruno Haible  <bruno@clisp.org>
29147
29148         * lib/printf-parse.h: Don't include sys/types.h.
29149         (ARG_NONE): New macro.
29150         (char_directive): Change type of *arg_index fields to size_t.
29151         * lib/printf-parse.c: Don't include sys/types.h.
29152         (SSIZE_MAX): Remove macro.
29153         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
29154         Remove unnecessary overflow check.
29155         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
29156         fields.
29157
29158 2003-11-25  Bruno Haible  <bruno@clisp.org>
29159
29160         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
29161
29162 2003-11-25  Bruno Haible  <bruno@clisp.org>
29163
29164         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
29165         gt_TYPE_SSIZE_T.
29166
29167 2003-11-24  Paul Eggert  <eggert@twinsun.com>
29168
29169         * modules/alloca: Remove dependency on xalloc.
29170
29171 2003-11-24  Paul Eggert  <eggert@twinsun.com>
29172
29173         * lib/alloca.c: Remove dependency on xalloc module.
29174         (xalloc_die): Remove.
29175         (memory_full) [!defined emacs]: New macro.
29176         [!defined emacs]: Don't include xalloc.h.
29177         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
29178         address arithmetic overflows.  Change datatypes a bit to avoid
29179         unnecessary casts.
29180
29181 2003-11-22  Jim Meyering  <jim@meyering.net>
29182
29183         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
29184         s/size/size_t/.
29185
29186 2003-11-21  Karl Berry  <karl@gnu.org>
29187
29188         * config/config.{sub,guess}: update from config.
29189
29190 2003-11-18  Karl Berry  <karl@gnu.org>
29191
29192         * config/config.{sub,guess}: update from config.
29193
29194         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
29195
29196 2003-11-17  Paul Eggert  <eggert@twinsun.com>
29197
29198         * README: Mention that S+T cannot overflow if S is the size of
29199         an existing object and T is sufficiently small.
29200
29201 2003-11-17  Jim Meyering  <jim@meyering.net>
29202
29203         On systems without utime and without a utimes function capable of
29204         dealing with a NULL struct utimbuf* argument, this utime replacement
29205         could -- in unusual circumstances -- leak a file descriptor.
29206         * lib/utime.c: Include <unistd.h> and <errno.h>.
29207         (utime_null): Be sure to close `fd' and to preserve errno.
29208         Reported by Geoff Collyer via Arnold Robbins.
29209
29210 2003-11-17  Bruno Haible  <bruno@clisp.org>
29211
29212         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
29213         (Depends-on): Add xsize.
29214
29215 2003-11-17  Bruno Haible  <bruno@clisp.org>
29216
29217         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
29218
29219 2003-11-17  Bruno Haible  <bruno@clisp.org>
29220
29221         * lib/vasnprintf.c (alloca): Remove fallback definition.
29222         (freea): Remove definition.
29223         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
29224         Reported by Paul Eggert.
29225
29226 2003-11-16  Paul Eggert  <eggert@twinsun.com>
29227             Bruno Haible  <bruno@clisp.org>
29228
29229         Protect against address arithmetic overflow.
29230         * lib/printf-args.h: Include stddef.h.
29231         (arguments): Change type of field 'count' to size_t.
29232         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
29233         'unsigned int' where appropriate.
29234         * lib/printf-parse.h: Include sys/types.h.
29235         (char_directive): Change type of *arg_index fields to ssize_t.
29236         (char_directives): Change type of fields 'count', max_*_length to
29237         size_t.
29238         * lib/printf-parse.c: Include sys/types.h and xsize.h.
29239         (SSIZE_MAX): Define fallback value.
29240         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
29241         instead of 'int' where appropriate. Check a_allocated, d_allocated
29242         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
29243         * lib/vasnprintf.c: Include xsize.h.
29244         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
29245         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
29246         overflow. Avoid wraparound when converting a width or precision from
29247         decimal to binary.
29248
29249 2003-11-16  Bruno Haible  <bruno@clisp.org>
29250
29251         Update from GNU gettext.
29252         * lib/printf-parse.c: Generalize to it can be compiled for wide
29253         strings.
29254         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
29255         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
29256         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
29257         SNPRINTF): New macros.
29258         Don't include <alloca.h> if the file is used inside libintl.
29259         (local_wcslen): New function, for Solaris 2.5.1.
29260         (VASNPRINTF): Use it instead of wcslen.
29261
29262 2003-11-16  Bruno Haible  <bruno@clisp.org>
29263
29264         * lib/xsize.h (xmax): New function.
29265         (xsum, xsum3, xsum4): Declare as "pure" functions.
29266
29267 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29268
29269         * modules/xalloc (Files): Undo latest change, since xalloc.h
29270         no longer needs SIZE_MAX or PTRDIFF_MAX.
29271
29272 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29273
29274         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
29275         gl_PTRDIFF_MAX.
29276
29277 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29278
29279         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
29280         "return", to pacify some unknown compiler.  Problem reported
29281         by Joerg Schilling.
29282
29283 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29284
29285         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
29286         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
29287         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
29288         heuristic is just as accurate as far as we know, and it removes a
29289         dependency on size_max.m4 and ptrdiff_max.m4.
29290
29291 2003-11-11  Bruno Haible  <bruno@clisp.org>
29292
29293         * modules/xsize (Files): Add m4/size_max.m4.
29294         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
29295
29296 2003-11-11  Bruno Haible  <bruno@clisp.org>
29297
29298         * m4/size_max.m4: New file.
29299         * m4/ptrdiff_max.m4: New file.
29300         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
29301         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
29302         (gl_XALLOC): Invoke it.
29303
29304 2003-11-11  Bruno Haible  <bruno@clisp.org>
29305
29306         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
29307         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
29308         defined.
29309
29310 2003-11-10  Paul Eggert  <eggert@twinsun.com>
29311
29312         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
29313         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
29314         rejected some allocations of exactly SIZE_MAX - 2 bytes.
29315         From Bruno Haible.
29316         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
29317         not (size_t) -1, since it's defined here.
29318
29319 2003-11-09  Karl Berry  <karl@gnu.org>
29320
29321         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
29322
29323 2003-11-06  Paul Eggert  <eggert@twinsun.com>
29324
29325         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
29326         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
29327         Reject sizes of exactly SIZE_MAX bytes.
29328         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
29329         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
29330
29331 2003-11-05  Bruno Haible  <bruno@clisp.org>
29332
29333         * lib/xsize.h: Include limits.h, to avoid a possible collision with
29334         SIZE_MAX defined in <limits.h> on Solaris.
29335
29336 2003-11-04  Jim Meyering  <jim@meyering.net>
29337
29338         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
29339         variable names, rather than @VAR@.
29340         * modules/poll: Likewise.
29341
29342 2003-11-04  Bruno Haible  <bruno@clisp.org>
29343
29344         * modules/xsize: New file.
29345         * modules/linebreak: Depend on xsize.
29346         * MODULES.html.sh (func_all_modules): Add xsize.
29347
29348 2003-11-04  Bruno Haible  <bruno@clisp.org>
29349
29350         * m4/xsize.m4: New file.
29351
29352 2003-11-04  Bruno Haible  <bruno@clisp.org>
29353
29354         * lib/xsize.h: New file.
29355         * lib/linebreak.c: Include xsize.h.
29356         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
29357         argument for overflow.
29358         Suggested by Paul Eggert.
29359
29360 2003-11-03  Karl Berry  <karl@gnu.org>
29361
29362         * config/config.{guess,sub}: update from config.
29363
29364 2003-11-03  Jim Meyering  <jim@meyering.net>
29365
29366         * modules/userspec (lib_SOURCES): Add userspec.h.
29367         (Include): Add "userspec.h".
29368         Improve description.
29369
29370 2003-11-03  Jim Meyering  <jim@meyering.net>
29371
29372         * lib/userspec.c: Include "userspec.h".
29373         * lib/userspec.h: New file.
29374
29375 2003-11-03  Bruno Haible  <bruno@clisp.org>
29376
29377         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
29378
29379 2003-11-03  Bruno Haible  <bruno@clisp.org>
29380
29381         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
29382         available, to avoid (extremely rare) race condition.
29383         Suggested by Paul Eggert.
29384
29385 2003-11-02  Karl Berry  <karl@gnu.org>
29386
29387         * config/srclist.txt (vasprintf.c): sync broken, sigh.
29388
29389 2003-10-31  Paul Eggert  <eggert@twinsun.com>
29390
29391         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
29392         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
29393         (read_filesystem_list): Set and use me_type_malloced.
29394         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
29395         whatever the type happens to be), for brevity and consistency.
29396         Check for size calculation overflow on Alphas running OSF/1.
29397
29398 2003-10-31  Jim Meyering  <jim@meyering.net>
29399
29400         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
29401
29402         * lib/linebuffer.c: Include <string.h> for declaration of memset.
29403
29404 2003-10-30  Paul Eggert  <eggert@twinsun.com>
29405             Bruno Haible  <bruno@clisp.org>
29406
29407         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
29408         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
29409
29410 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29411
29412         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
29413         netbsd*-gnu*.  Suggested by Robert Millan.
29414
29415 2003-10-29  Paul Eggert  <eggert@twinsun.com>
29416
29417         * modules/group-member: Depend on stdbool.
29418
29419 2003-10-29  Paul Eggert  <eggert@twinsun.com>
29420
29421         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
29422
29423 2003-10-29  Paul Eggert  <eggert@twinsun.com>
29424
29425         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
29426         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
29427         after the 'gnu' in these cases.  This fixes some bugs in the
29428         previous change, and is based on suggestions by Robert Millan.
29429
29430 2003-10-29  Paul Eggert  <eggert@twinsun.com>
29431
29432         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
29433         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
29434         no longer needed.
29435         * lib/quotearg.c (quotearg_n_options): Use it.
29436         * lib/group-member.c: Include <stdbool.h>.
29437         (free_group_info): Arg is now const *; don't free arg.
29438         (get_group_info): Now returns bool and accepts struct group_info *,
29439         rather than returning a malloc'ed struct group_info *.
29440         All uses changed.  Check for overflow in internal size calculation.
29441
29442         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
29443         rather than xmalloc/xrealloc.
29444         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
29445         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
29446         conformance bug: the old code used a pointer after freeing the
29447         storage that it addressed.
29448         * lib/hash.c (hash_initialize): Simplify the code by using
29449         xalloc_oversized rather than doing it by hand.
29450         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
29451         the buffer preserved.  Use free and xmalloc instead.
29452         * lib/quotearg.c (quotearg_n_options): Likewise.
29453         Use a simpler test for size overflow.  Don't use xalloc_oversized
29454         because unsigned int might be wider than size_t (!); this suggests
29455         that we should switch from unsigned int to size_t for slot numbers.
29456
29457 2003-10-28  Paul Eggert  <eggert@twinsun.com>
29458
29459         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
29460         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
29461         NetBSD kernels.  Requested by Richard Stallman.
29462
29463 2003-10-27  Paul Eggert  <eggert@twinsun.com>
29464
29465         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
29466         to allocate the returned structure.  Do not allocate a subarray,
29467         as x2nrealloc will do that.
29468         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
29469         instead of xnrealloc.
29470         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
29471
29472 2003-10-27  Bruno Haible  <bruno@clisp.org>
29473
29474         * lib/stdbool_.h: Better support for BeOS.
29475
29476 2003-10-26  Paul Eggert  <eggert@twinsun.com>
29477
29478         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
29479         now uses inline.
29480
29481 2003-10-26  Paul Eggert  <eggert@twinsun.com>
29482
29483         * lib/xalloc.h (xalloc_oversized): New static inline function, for
29484         callers that want to do their own size-overflow checking.  Include
29485         <stdbool.h>, since xalloc_oversized returns bool.
29486         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
29487         to use xalloc_oversized.
29488
29489         Add two functions x2realloc, x2nrealloc, for programs that grow
29490         arrays dynamically by doubling their sizes.
29491         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
29492         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
29493         New functions.
29494
29495         Port to C99 semantics for 'inline' of external functions.
29496         Bug reported by Bruno Haible.
29497         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
29498         with the old contents of xnmalloc.
29499         (xnmalloc, xmalloc): Use it.
29500         (xnrealloc_inline): New static inline function,
29501         with the old contents of xnrealloc.
29502         (xnrealloc, xrealloc): Use it.
29503
29504         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
29505         that.
29506
29507 2003-10-26  Karl Berry  <karl@gnu.org>
29508
29509         * config/srclist.txt (COPYING.DOC): no longer available from
29510         /gd/gnuorg; don't know where the ultimate source is.
29511
29512 2003-10-25  Paul Eggert  <eggert@twinsun.com>
29513
29514         Fix several address-calculation bugs in the hash modules,
29515         plus some minor code cleanup.
29516
29517         * lib/hash.h: Include <stdbool.h>, for bool.
29518         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
29519         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
29520         hash_get_n_entries, hash_get_max_bucket_length,
29521         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
29522         hash_rehash): Use size_t rather than unsigned.
29523         * lib/hash.c (struct hash_table, hash_get_n_buckets,
29524         hash_get_n_buckets_used, hash_get_n_entries,
29525         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
29526         hash_get_entries, hash_do_for_each, hash_string, is_prime,
29527         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
29528         Likewise.
29529         (SIZE_MAX): Define if not defined.
29530         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
29531         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
29532         hash_print):
29533         Use const * when possible.
29534         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
29535         (check_tuning): Fix bug: if tuning parameters were very close to
29536         0 or 1, rounding errors could have caused subscript violations.
29537         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
29538         (hash_initialize): Add 'fail:' label
29539         to free table and return NULL, and use it to simplify code.
29540         Use calloc rather than clearing the storage ourself.
29541         (hash_initialize, hash_rehash): Check for arithmetic overflow in
29542         buffer size calculations.
29543         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
29544         Include <stddef.h>, for size_t.
29545         * lib/hash-pjw.c (hash_pjw): Likewise.
29546         Switch to method described by Bruno Haible.
29547         Include <limits.h>, for CHAR_BIT.
29548         (SIZE_BITS): New macro.
29549
29550 2003-10-23  Paul Eggert  <eggert@twinsun.com>
29551
29552         * m4/getline.m4 (AM_FUNC_GETLINE):
29553         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
29554         hosts.  Problem reported by Derek Robert Price in
29555         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
29556         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
29557         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
29558
29559 2003-10-21  Paul Eggert  <eggert@twinsun.com>
29560
29561         * lib/getndelim2.c (getndelim2): When size calculation overflows,
29562         ceiling the allocation at NMAX bytes rather than silently
29563         discarding input bytes before NMAX is reached.  This makes
29564         a difference only if NMAX exceeds SIZE_MAX / 2.
29565
29566         * lib/obstack.c: Merge from glibc.
29567         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
29568         Add libc_hidden_def (_obstack_newchunk).
29569         (_obstack_free) [! defined _LIBC]: Remove.
29570         [defined _LIBC]: Make a strong alias from obstack_free, rather than
29571         a clone of the function body.
29572         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
29573         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
29574
29575         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
29576         glibc.
29577         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
29578         arg to memcpy.
29579
29580         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
29581         (obstack_ptr_grow_fast, obstack_int_grow_fast):
29582         Don't use lvalue casts, as GCC plans to remove support for them
29583         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
29584         was also present in the non-GCC version, indicating that this
29585         code had always been buggy and had never been widely used.
29586         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
29587         Use the fast variant of each macro, rather than copying the
29588         definiens of the fast variant; that way, we'll be more likely to
29589         catch future bugs in the fast variants.
29590
29591 2003-10-20  Bruno Haible  <bruno@clisp.org>
29592
29593         * modules/wait-process: New file.
29594         * MODULES.html.sh (func_all_modules): Add wait-process.
29595
29596 2003-10-20  Bruno Haible  <bruno@clisp.org>
29597
29598         * m4/wait-process.m4: New file.
29599
29600 2003-10-20  Bruno Haible  <bruno@clisp.org>
29601
29602         * lib/wait-process.h: New file, from GNU gettext.
29603         * lib/wait-process.c: New file, from GNU gettext.
29604
29605 2003-10-19  Jim Meyering  <jim@meyering.net>
29606
29607         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
29608         HPUX 10.20.
29609
29610 2003-10-18  Karl Berry  <karl@gnu.org>
29611
29612         * config/config.guess: update from config.
29613
29614 2003-10-16  Paul Eggert  <eggert@twinsun.com>
29615
29616         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
29617         (getgroups): First arg is int, not size_t.
29618         Don't let 'free' mangle errno.
29619
29620 2003-10-16  Paul Eggert  <eggert@twinsun.com>
29621
29622         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
29623
29624 2003-10-16  Karl Berry  <karl@gnu.org>
29625
29626         * config/config.{guess,sub}: update from config.
29627
29628 2003-10-16  Jim Meyering  <jim@meyering.net>
29629
29630         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
29631         memcpy.
29632
29633 2003-10-15  Paul Eggert  <eggert@twinsun.com>
29634
29635         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
29636         (SIZE_MAX): Remove.
29637         (new_exclude, add_exclude_file): Initial size no longer needs to
29638         be a power of 2.
29639         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
29640         our own address arithmetic overflow checking.
29641
29642         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
29643         (fnmatch): Do not alloca more than 2000 wide characters;
29644         instead, use malloc for large buffers.
29645         Check for address arithmetic overflow, and return -1
29646         with errno set to ENOMEM in that case.
29647         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
29648         (NEW_PATTERN): Do not alloca more than 8000 bytes;
29649         instead, return -1.  Check for address arithmetic overflow.
29650
29651 2003-10-14  Paul Eggert  <eggert@twinsun.com>
29652
29653         Handle invalid suffixes and overflow independently, so that
29654         callers can treat them independently as needed.  Fix some bugs in
29655         suffix handling, e.g., "100k@" was not diagnosed as an invalid
29656         suffix for a human-readable blocksize.  The major caller-visible
29657         change is the addition of a new
29658         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
29659         that both overflow and suffix chars were found.
29660
29661         * lib/human.c (humblock): Don't check separately for invalid suffix
29662         char; that is xstrtoumax's job (now that its bug is fixed).
29663         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
29664         INTMAX_MAX]: New macros.
29665         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
29666         TYPE_MAXIMUM): New macros.
29667         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
29668         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
29669         if overflow occurs, as it's what __strtol does and it's more useful
29670         in practice.
29671         (__xstrtol): If __strtol reports some error other than ERANGE,
29672         reflect it to the caller as LONGINT_INVALID.  If it reports
29673         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
29674         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
29675         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
29676         value.
29677         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
29678         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
29679         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
29680         [defined UINTMAX_MAX]: New macros.
29681
29682 2003-10-14  Bruno Haible  <bruno@clisp.org>
29683
29684         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
29685
29686 2003-10-14  Bruno Haible  <bruno@clisp.org>
29687
29688         * m4/sig_atomic_t: New file, from GNU gettext.
29689         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
29690
29691 2003-10-14  Bruno Haible  <bruno@clisp.org>
29692
29693         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
29694         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
29695         Also use volatile where needed.
29696
29697 2003-10-12  Paul Eggert  <eggert@twinsun.com>
29698
29699         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
29700         Change maintainer from Bruno Haible to 'all'.
29701
29702 2003-10-12  Paul Eggert  <eggert@twinsun.com>
29703
29704         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
29705
29706 2003-10-12  Paul Eggert  <eggert@twinsun.com>
29707
29708         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
29709         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
29710         and define in terms of the other primitives.
29711         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
29712         (SIZE_MAX): Define if not already defined.
29713         (array_size_overflow): New function.
29714         (xalloc_die): Abort instead of exiting if 'error' returns.
29715         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
29716         (xmalloc, xrealloc): Use them.
29717         (xcalloc): Check for address arithmetic overflow.
29718         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
29719         a bit faster than strcpy.
29720
29721 2003-10-10  Simon Josefsson  <jas@extundo.com>
29722
29723         * modules/argp (Depends-on): Add restrict and strcase.
29724
29725 2003-10-10  Simon Josefsson  <jas@extundo.com>
29726
29727         * m4/argp.m4: Add AC_C_INLINE.
29728
29729 2003-10-08  Paul Eggert  <eggert@twinsun.com>
29730
29731         Merge getpass from libc, plus a few fixes.
29732
29733         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
29734         Include <stdbool.h>.
29735         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
29736         __fsetlocking to empty.
29737         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
29738         do include <bits/libc-lock.h>.
29739         Do not include <fcntl.h>; not needed.
29740         [_LIBC]: Include <wchar.h>.
29741         (NOTCANCEL_MODE): New macro.
29742         (flockfile, funlockfile) [_LIBC]: New macros.
29743         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
29744         [!_LIBC]: New macros.
29745         (call_fclose): New function.
29746         (getpass): Use it.  Save tty stream separately; this simplifies the
29747         code and makes it more reliable if stdin happens to equal stdout.
29748         Invoke __fsetlocking on tty.
29749         Handle thread cancellation if needed.
29750         Namespace cleanup (use __tcgetattr, __getline).
29751         Use bool for Booleans.
29752         [USE_IN_LIBIO]: Handle wide streams.
29753         [!_LIBC]: Unconditionally do the fseek, since we don't know what
29754         stream might go where.
29755
29756         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
29757         doesn't have to include <stdio.h> before us.
29758         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
29759         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
29760         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
29761         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
29762         if not declared, so that we can use getpass.c code from libc without
29763         rewriting it.
29764         (flockfile, ftrylockfile, funlockfile): New macros.
29765
29766 2003-10-08  Paul Eggert  <eggert@twinsun.com>
29767
29768         * modules/getpass: Depend on stdbool.
29769
29770 2003-10-08  Paul Eggert  <eggert@twinsun.com>
29771
29772         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
29773
29774 2003-10-07  Karl Berry  <karl@gnu.org>
29775
29776         * config/config.{guess,sub}: update from config.
29777
29778 2003-10-06  Jim Meyering  <jim@meyering.net>
29779             Bruno Haible  <bruno@clisp.org>
29780
29781         This lets translators provide better translations for the
29782         "Written by ..." part of --version output.
29783         * lib/version-etc.h: Include stdarg.h.
29784         (version_etc_copyright): Declare as readonly.
29785         (version_etc): Make this function variadic with a NULL-terminated list
29786         of author name strings.
29787         (version_etc_va): New declaration.
29788         * lib/version-etc.c: Include stdarg.h, stdlib.h.
29789         (version_etc_copyright): Declare as readonly.
29790         (version_etc_va): New function. Provide a different translatable string
29791         for each possible number of authors < 10. Abbreviate when there are 10
29792         authors or more.
29793         (version_etc): Make this function variadic. Call version_etc_va.
29794         Suggestion from Gary V. Vaughan.
29795
29796         * lib/long-options.h (parse_long_options): Change prototype: the
29797         authors string is moved to the end and becomes variadic.
29798         * lib/long-options.c: Include stdarg.h.
29799         (parse_long_options): Make this function variadic, too.
29800         Call version_etc_va, not version_etc.
29801
29802 2003-10-06  Bruno Haible  <bruno@clisp.org>
29803
29804         * modules/version-etc-2: Remove file.
29805         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
29806
29807 2003-10-06  Bruno Haible  <bruno@clisp.org>
29808
29809         * modules/fatal-signal: New file.
29810         * MODULES.html.sh (func_all_modules): Add fatal-signal.
29811
29812 2003-10-06  Bruno Haible  <bruno@clisp.org>
29813
29814         * m4/fatal-signal.m4: New file.
29815         * m4/signalblocking.m4: New file, from GNU gettext.
29816
29817 2003-10-06  Bruno Haible  <bruno@clisp.org>
29818
29819         * lib/version-etc-2.h: Remove file.
29820         * lib/version-etc-2.c: Remove file.
29821
29822 2003-10-06  Bruno Haible  <bruno@clisp.org>
29823
29824         * lib/fatal-signal.h: New file, from GNU gettext.
29825         * lib/fatal-signal.c: New file, from GNU gettext.
29826
29827 2003-10-05  Paul Eggert  <eggert@twinsun.com>
29828
29829         * README: Rework advice for preventing empty .o files.
29830         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
29831         not <sys/types.h>.
29832
29833 2003-10-04  Karl Berry  <karl@gnu.org>
29834
29835         * lib/argp*: update from libc.
29836
29837 2003-10-04  Karl Berry  <karl@gnu.org>
29838
29839         * config/config.{guess,sub}: update from config.
29840
29841 2003-10-02  Bruno Haible  <bruno@clisp.org>
29842
29843         * modules/lchown (Include): Add lchown.h.
29844         * modules/time_r (Include): Use "..." syntax.
29845         * modules/xgetdomainname (Include): Add xgetdomainname.h.
29846
29847 2003-10-01  Simon Josefsson  <jas@extundo.com>
29848
29849         * MODULES.html.sh (func_all_modules): Move gethostname from section
29850         'based on' to section 'lacking' POSIX:2001.
29851
29852 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
29853
29854         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
29855         to output mode on the same stream.
29856
29857 2003-09-29  Paul Eggert  <eggert@twinsun.com>
29858
29859         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
29860         Fix arg typo in previous patch.
29861
29862 2003-09-28  Jim Meyering  <jim@meyering.net>
29863
29864         * lib/error.c: Correct cpp indentation.
29865
29866 2003-09-27  Paul Eggert  <eggert@twinsun.com>
29867
29868         * modules/free: New file.
29869
29870 2003-09-27  Paul Eggert  <eggert@twinsun.com>
29871
29872         * m4/free.m4: New file.
29873
29874 2003-09-27  Paul Eggert  <eggert@twinsun.com>
29875
29876         * lib/minmax.h (MIN, MAX)
29877         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
29878         Omit the special code that used __typeof__, since we worry that
29879         it could be more trouble than it's worth.  See:
29880         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
29881         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
29882
29883         * lib/free.c: New file.
29884
29885 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
29886
29887         Trivial fixes to Makefile.am parts of module listings.
29888         * modules/strstr: Append strstr.h to lib_SOURCES.
29889         * modules/strcase: Likewise, for strcase.h.
29890
29891 2003-09-27  Karl Berry  <karl@gnu.org>
29892
29893         * config/mkinstalldirs: update from automake.
29894
29895 2003-09-26  Paul Eggert  <eggert@twinsun.com>
29896
29897         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
29898         (error_tail): Do not loop, reallocating temporary buffer, since
29899         the output cannot contain more wide characters than the input
29900         contains bytes, the size must be big enough already.  This avoids
29901         one potential size overflow calculation.  Check for size overflow
29902         when calculating temporary buffer size.  Free temporary buffer
29903         when done, if it was allocated with malloc; this plugs a memory
29904         leak.  Remove casts from void * to pointers, that are no longer
29905         needed now that we're assuming C89 or better.
29906
29907         Merge error changes from glibc.
29908
29909         * lib/error.c, error.h: Update copyright notice header to match glibc.
29910         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
29911         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
29912         Disable cancellation while printing error.
29913         * lib/error.h: Prepend __ to parameter names.
29914
29915 2003-09-26  Jim Meyering  <jim@meyering.net>
29916
29917         * lib/error.c (error_tail): Move some declarations
29918         into inner scope where the local variables are used.
29919
29920 2003-09-26  Bruno Haible  <bruno@clisp.org>
29921
29922         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
29923         stpncpy().
29924         Don't define stpncpy through config.h; it's now done through stpncpy.h.
29925
29926 2003-09-26  Bruno Haible  <bruno@clisp.org>
29927
29928         * lib/stpncpy.h (gnu_stpncpy): New declaration.
29929         (stpncpy): Define as alias for gnu_stpncpy.
29930         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
29931
29932 2003-09-25  Simon Josefsson  <jas@extundo.com>
29933
29934         * lib/xgetdomainname.h: New file.
29935         * lib/xgetdomainname.c: New file.
29936
29937 2003-09-25  Simon Josefsson  <jas@extundo.com>
29938             Bruno Haible  <bruno@clisp.org>
29939
29940         * modules/getdomainname: New file.
29941         * modules/xgetdomainname: New file.
29942         * MODULES.html.sh (func_all_modules): Add getdomainname,
29943         xgetdomainname.
29944
29945 2003-09-25  Simon Josefsson  <jas@extundo.com>
29946             Bruno Haible  <bruno@clisp.org>
29947
29948         * m4/getdomainname.m4: New file.
29949
29950 2003-09-25  Simon Josefsson  <jas@extundo.com>
29951             Bruno Haible  <bruno@clisp.org>
29952
29953         * lib/getdomainname.h: New file.
29954         * lib/getdomainname.c: New file.
29955
29956 2003-09-25  Karl Berry  <karl@gnu.org>
29957
29958         * lib/argp-fmtstream.c, argp-help.c: update from libc.
29959
29960 2003-09-25  Karl Berry  <karl@gnu.org>
29961
29962         * config/install-sh: update from automake.
29963
29964 2003-09-25  Bruno Haible  <bruno@clisp.org>
29965
29966         * modules/version-etc-2: New file, from modules/version-etc with
29967         modifications.
29968         * MODULES.html.sh (func_all_modules): Add version-etc-2.
29969
29970 2003-09-25  Bruno Haible  <bruno@clisp.org>
29971
29972         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
29973         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
29974
29975 2003-09-24  Simon Josefsson  <jas@extundo.com>
29976
29977         * modules/xgethostname: Add xgethostname.h.
29978
29979 2003-09-24  Paul Eggert  <eggert@twinsun.com>
29980
29981         * lib/linebuffer.c (freebuffer): Don't free the argument, just
29982         the buffer associated with the argument.  Bug reported by
29983         Simon Josefsson.
29984
29985 2003-09-24  Paul Eggert  <eggert@twinsun.com>
29986
29987         * README: Document assumptions that 'int' is at least 32 bits
29988         wide, that integer arithmetic is 2's complement without overflow,
29989         that there are no holes in integer values, that adding sizes of
29990         two nonoverlapping objects can't overflow, and that all-bits-zero
29991         yields scalar zero.  Fix spelling and capitalization typos.
29992
29993 2003-09-19  Karl Berry  <karl@gnu.org>
29994
29995         * lib/argp.h: update from libc.
29996
29997 2003-09-17  Paul Eggert  <eggert@twinsun.com>
29998
29999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
30000         to avoid spurious warnings like "AC_RUN_IFELSE was called before
30001         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
30002
30003 2003-09-17  Paul Eggert  <eggert@twinsun.com>
30004
30005         * gnulib-tool: Use "test -h", not "test -L", for portability
30006         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
30007         (tags_regexp): Remove, since \| doesn't conform to POSIX.
30008         (sed_extract_prog): Issue s commands one-by-one, rather than
30009         using \| in one s command.
30010
30011 2003-09-16  Paul Eggert  <eggert@twinsun.com>
30012
30013         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
30014         input error, instead of returning NULL the next time we are called
30015         (and therefore losing track of errno).
30016
30017 2003-09-16  Bruno Haible  <bruno@clisp.org>
30018
30019         * gnulib-tool (func_create_testdir): Warn about duplicated
30020         dependencies.
30021
30022 2003-09-15  Paul Eggert  <eggert@twinsun.com>
30023
30024         * modules/argmatch, modules/fatal, modules/obstack,
30025         modules/xalloc, modules/xgethostname: Sort dependencies by
30026         importance, not alphabetically.
30027
30028 2003-09-15  Paul Eggert  <eggert@twinsun.com>
30029
30030         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
30031         fails, so that the caller gets the proper errno.
30032
30033         * lib/readutmp.c (read_utmp): Likewise.
30034         Check for fstat error.  Close stream and free storage
30035         when failing.
30036
30037 2003-09-14  Karl Berry  <karl@gnu.org>
30038
30039         * config/srclist.txt (strdup.c): disable for c89 changes.
30040
30041 2003-09-14  Jim Meyering  <jim@meyering.net>
30042
30043         * lib/getloadavg.c: Correct cpp indentation.
30044         * lib/strdup.c: Likewise.
30045         * lib/vasnprintf.c: Likewise.
30046
30047 2003-09-14  Bruno Haible  <bruno@clisp.org>
30048
30049         * modules/fwriteerror: New file.
30050         * MODULES.html.sh (func_all_modules): Add fwriteerror.
30051
30052 2003-09-14  Bruno Haible  <bruno@clisp.org>
30053
30054         * lib/fwriteerror.h: New file.
30055         * lib/fwriteerror.c: New file.
30056
30057 2003-09-12  Paul Eggert  <eggert@twinsun.com>
30058
30059         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
30060         modules/xgethostname, modules/xalloc: Depend on exit.
30061
30062 2003-09-12  Paul Eggert  <eggert@twinsun.com>
30063
30064         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
30065
30066         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
30067         and AC_MINIX, too, so that their extensions are available.
30068
30069         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
30070         This macro has been superseded by gl_BACKUPFILE.
30071
30072         More patches to assume C89 or better.
30073
30074         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
30075
30076         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
30077         unconditionally.
30078         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
30079         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
30080         Include <string.h>, <stdlib.h> unconditionally.
30081         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
30082         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
30083         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
30084         headers or for string.h.
30085         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
30086         or strtoul.
30087
30088         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
30089         headers.
30090         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
30091         * m4/userspec.m4 (gl_USERSPEC): Likewise.
30092         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
30093         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
30094         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
30095         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
30096         memcpy, memset.
30097         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
30098         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
30099         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
30100         strtol.
30101         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
30102         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
30103         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
30104         strtoul.
30105
30106 2003-09-12  Paul Eggert  <eggert@twinsun.com>
30107
30108         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
30109         * lib/obstack.c [!defined _LIBC]: Likewise.
30110         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
30111         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
30112         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
30113
30114         More changes to assume C89 or better.
30115
30116         * lib/error.c (error_tail): Assume vprintf.
30117
30118         * lib/argmatch.c (getenv): Remove decl.
30119         * lib/progreloc.c (get_full_program_name): Define via prototype.
30120         * lib/setenv.c (clearenv): Likewise.
30121         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
30122         needed.
30123         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
30124         (malloc, memcpy): Remove decls.
30125         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
30126         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
30127         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
30128         (memcpy): Remove macro.
30129         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
30130         (__P): Remove.  All uses removed.
30131         (PTR): Remove.  All uses changed to void *.
30132         (CHAR_BIT, NULL): Remove.
30133         (spaces, zeros, memset_space, memset_zero)
30134         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
30135         Remove.
30136         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
30137         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
30138         Define with prototype.
30139         Remove now-unnecessary prototype decl.
30140         (extra_args_spec): Assume ANSI C.  All uses changed.
30141         (extra_args_spec_iso): Remove.
30142         (my_strftime, emacs_strftimeu): Define via prototype.
30143         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
30144         unconditionally.
30145         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
30146         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
30147         (strtoul, strtol): Remove decls.
30148         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
30149         LONG_MAX): Remove.
30150         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
30151         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
30152         (LOCALE_PARAM_PROTO): New macro.
30153         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
30154         (INTERNAL (strtol), strtol): Define with a prototype.
30155         (PARAMS): Remove.  All uses removed.
30156         * lib/tempname.c: Include <string.h> unconditionally.
30157         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
30158         * lib/xgethostname.c (main): Define with a prototype.
30159         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
30160         Include <stdlib.h> unconditionally.
30161         (calloc, malloc, realloc, free): Remove decls.
30162         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
30163         Include <stdlib.h> unconditionally.  Sort include file names.
30164         (strtod): Remove.
30165         (xstrtod): Define with a prototype.
30166         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
30167         (strtol, strtoul): Remove decls.
30168
30169 2003-09-11  Paul Eggert  <eggert@twinsun.com>
30170
30171         More patches to assume C89 or better.
30172         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
30173         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
30174         string.h, memchr, STDC_HEADERS.
30175
30176 2003-09-11  Paul Eggert  <eggert@twinsun.com>
30177
30178         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
30179         Include <stdlib.h>, <string.h> unconditionally.
30180         Remove now-unnecessary cast to char *.
30181         * lib/strnlen.c: Include <string.h> unconditionally.
30182         * lib/yesno.c (yesno): Define with a prototype.
30183
30184 2003-09-11  Bruno Haible  <bruno@clisp.org>
30185
30186         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
30187
30188 2003-09-10  Jim Meyering  <jim@meyering.net>
30189
30190         * lib/error.c: Correct indentation of cpp directives.
30191
30192 2003-09-10  Bruno Haible  <bruno@clisp.org>
30193
30194         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
30195         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
30196         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
30197         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
30198         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
30199         <stdlib.h> and <string.h> checks.
30200         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
30201         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
30202
30203 2003-09-10  Bruno Haible  <bruno@clisp.org>
30204
30205         * lib/strcspn.c: Include <string.h> unconditionally.
30206         * lib/strpbrk.c: Include <string.h> unconditionally.
30207         * lib/strstr.c: Include <string.h> unconditionally.
30208         * lib/unicodeio.c: Include <string.h> unconditionally.
30209         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
30210         * lib/unsetenv.c: Likewise.
30211         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
30212         * lib/yesno.c: Include <stdlib.h> unconditionally.
30213         (rpmatch): Add prototype.
30214
30215 2003-09-09  Paul Eggert  <eggert@twinsun.com>
30216
30217         More patches to assume C89 or better.
30218         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
30219         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
30220         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
30221         or for string.h.
30222         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
30223         stdlib.h.
30224         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
30225         C headers.
30226         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
30227         string.h.
30228         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
30229         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
30230         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
30231         or for string.h.
30232         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
30233         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
30234         C headers.
30235         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
30236         memcpy.
30237         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
30238         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
30239         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
30240         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
30241         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
30242         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
30243         string.h, free.
30244         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
30245         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
30246         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
30247         C headers, or for string.h.
30248         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
30249         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
30250         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
30251         headers, memory.h, stdlib.h, string.h, strings.h.
30252         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
30253         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
30254         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
30255         strchr.
30256         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
30257         headers, memory.h, string.h.
30258         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
30259         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
30260         free.
30261         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
30262         headers.
30263         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
30264         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
30265         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
30266         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
30267         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
30268
30269 2003-09-09  Paul Eggert  <eggert@twinsun.com>
30270
30271         More K&R removal.
30272
30273         * lib/acosl.c (main): Use a prototype.
30274         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
30275         tanl.c: Likewise.
30276
30277         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
30278
30279         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
30280         (getopt, etopt_long, getopt_long_only, _getopt_internal)
30281         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
30282         with a prototype.
30283         * lib/getopt.c (const): Remove macro.
30284         Include <string.h> unconditionally.
30285         (my_index): Remove; all uses changed to strchr.
30286         (strlen): Remove decl.
30287         (exchange): Remove forward decl; no longer needed.
30288         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
30289         Define with prototype.
30290         * lib/getopt1.c (const): Remove macro.
30291         (getopt_long, getopt_long_only, main): Define with prototype.
30292
30293         * lib/getugroups.c: Include <string.h> unconditionally.
30294
30295         * lib/getusershell.c: Include <stdlib.h> unconditionally.
30296         (getusershell, setusershell, endusershell, readname, main):
30297         Define with prototypes.
30298
30299         * lib/group-member.c: Include group-member.h first.
30300         Include <stdlib.h> unconditionally.
30301
30302         * lib/hard-locale.c: Include hard-locale.h first.
30303         Include <stdlib.h>, <string.h> unconditionally.
30304
30305         * lib/hash.c (free, malloc): Remove decls.
30306         Include <stdlib.h> unconditionally.
30307
30308         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
30309         (getenv): Do not declare.
30310
30311         * lib/idcache.c: Include <string.h> unconditionally.
30312
30313         * lib/long-options.c: Include long-options.h first, to test interface.
30314         Include <stdlib.h> unconditionally.
30315
30316         * lib/makepath.c: Include makepath.h first, to test interface.
30317         Include <stdlib.h> and <string.h> unconditionally.
30318
30319         * lib/linebuffer.c: Include <stdlib.h>.
30320         (free): Remove decl.
30321
30322         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
30323         stddef.h. rpl_malloc returns void *, not char *.
30324         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
30325         prototype.
30326
30327         * lib/md5.h: Include <limits.h> unconditionally.
30328         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
30329         (__P): Remove; all uses removed.
30330         * lib/md5.c: Include "md5.h" first.
30331         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
30332         md5_buffer, md5_process_bytes, md5_process_block):
30333         Define with prototypes.
30334         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
30335         * lib/sha.c: Include "sha.h" first.
30336         Include <stdlib.h>, <string.h> unconditionally.
30337
30338         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
30339         * lib/memcmp.c (__ptr_t): Likewise.
30340         * lib/memrchr.c (__ptr_t): Likewise.
30341         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
30342         Include <string.h> unconditionally.
30343         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
30344         * lib/memchr.c: Include <stdlib.h> unconditionally.
30345         * lib/memchr.c (LONG_MAX): Remove.
30346         * lib/memrchr.c (LONG_MAX): Likewise.
30347         * lib/memchr.c (__memchr): Define via a prototype.
30348         * lib/memrchr.c (__memrchr): Likewise.
30349         * lib/memcmp.c (__P): Remove, and remove all uses.
30350         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
30351         Remove forward decls; no longer needed.
30352         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
30353         Use types required by C89 in prototype.
30354
30355         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
30356         * lib/savedir.c: Likewise.
30357         * lib/mkdir.c (free): Remove decl.
30358         * lib/rmdir.c (rmdir): Define with a prototype.
30359         * lib/savedir.c: Include savedir.h first, to test interface.
30360
30361         * lib/mktime.c (STDC_HEADERS): Remove.
30362         Include <stdlib.h>, <string.h> unconditionally.
30363
30364         * lib/modechange.c: Include <stdlib.h> unconditionally.
30365         (malloc): Remove decl.
30366
30367         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
30368         (free): Remove decl.
30369
30370         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
30371         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
30372         (This type really should be intptr_t, but that's a C99ism.)
30373         (_obstack_memcpy): Remove: all uses changed to memcpy.
30374         Include <string.h> unconditionally.
30375         (struct obstack): Assume __STDC__ for types of members
30376         chunkfun, freefun, extra_arg.
30377         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
30378         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
30379         obstack_begin, obstack_specify_allocation,
30380         obstack_specify_allocation_with_arg, obstack_chunkfun,
30381         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
30382         Remove unprototyped decls and the macros that use them.
30383         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
30384         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
30385         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
30386         (defined __STDC__ && __STDC__)]:
30387         Remove nonprototyped code.
30388         Include <stdlib.h> unconditionally.
30389         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
30390         _obstack_allocated_p, _obstack_free, obstack_free,
30391         _obstack_memory_used, print_and_abort):
30392         Define using prototypes.
30393         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
30394         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
30395         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
30396         obstack_next_free, obstack_object_size, obstack_room) [0]:
30397         Remove unused, unprototyped code.
30398
30399         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
30400
30401         * lib/physmem.c (physmem_total, physmem_available, main): Define
30402         with prototypes.
30403
30404         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
30405         (main): Define with a prototype.
30406
30407         * lib/posixver.c (getenv): Remove decl.
30408
30409         * lib/putenv.c (malloc): Returns void *, not char *.
30410         Include <string.h> unconditionally.
30411         (strchr, memcpy, NULL): Do not define.
30412
30413         * lib/readtokens.c: Include readtokens.h first, to test interface.
30414         Include <stdlib.h>, <string.h> unconditionally.
30415         (init_tokenbuffer): Define with a prototype.
30416
30417         * lib/regex.c (PARAMS): Remove.  All uses removed.
30418         All uses of _RE_ARGS removed, too.
30419         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
30420         unconditionally.
30421         (bzero): Assume memset exists.
30422         (memcmp, memcpy, NULL): Remove.
30423         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
30424         char, or assignments to local vars of type signed char.
30425         (init_syntax_once, PREFIX(extract_number_and_incr),
30426         PREFIX(print_partial_compiled_pattern),
30427         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
30428         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
30429         PREFIX(regex_grow_registers), PREFIX(regex_compile),
30430         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
30431         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
30432         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
30433         wcs_compile_range, byte_compile_range, truncate_wchar,
30434         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
30435         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
30436         count_mbs_length, wcs_re_match_2_internal,
30437         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
30438         PREFIX(alt_match_null_string_p),
30439         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
30440         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
30441         regfree, PREFIX(extract_number)): Define with prototype.  Remove
30442         now-unnecessary declaration, if any.
30443         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
30444         regcomp, regexec):
30445         Remove now-unnecessary casts among pointer types.
30446         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
30447
30448         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
30449         (free): Remove decl.
30450
30451         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
30452
30453         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
30454         (free): Remove decl.
30455
30456         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
30457         * lib/xgetcwd.c: Likewise.
30458
30459         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
30460         (free): Remove decl.
30461
30462         * lib/strchrnul.c (strchrnul): Define with a prototype.
30463         Fix bug: c_in was not converted to char before searching.
30464
30465         The following changes are not K&R related:
30466
30467         * lib/group-member.h: Include <sys/types.h>, so that this file is
30468         self-contained.
30469         * lib/makepath.h: Likewise.
30470
30471         * lib/getusershell.c (readname, default_index, line_size, readname):
30472         Use size_t, not int, for sizes.
30473         (readname): If the size overflows, report an error instead of
30474         looping forever.
30475
30476 2003-09-09  Paul Eggert  <eggert@twinsun.com>
30477
30478         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
30479         libc.
30480
30481 2003-09-09  Paul Eggert  <eggert@twinsun.com>
30482
30483         * README: New section: portability guidelines.
30484
30485 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
30486
30487         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
30488         C89 spec.
30489
30490 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
30491
30492         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
30493
30494 2003-09-08  Paul Eggert  <eggert@twinsun.com>
30495
30496         Assume C89 or better; remove K&R cruft.
30497         A few of these changes were first proposed by Derek Robert Price
30498         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
30499
30500         * lib/addext.c: Include <string.h> unconditionally.
30501         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
30502         Don't declare getenv or malloc.
30503
30504         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
30505         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
30506         (NULL): Remove.
30507         (find_stack_direction, alloca): Use prototypes.
30508
30509         * lib/atexit.c (atexit): Define using a prototype.
30510
30511         * lib/basename.c, dirname.c, stripslash.c:
30512         Include <string.h> unconditionally.
30513
30514         * lib/bcopy.c: Include <stddef.h>.
30515         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
30516
30517         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
30518
30519         * lib/error.h (error, error_at_line, error_print_progname)
30520         [! (defined (__STDC__) && __STDC__)]: Remove decls.
30521         * lib/error.c: Include error.h first, to check interface.
30522         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
30523         (VA_START): Remove; all uses changeed to va_start.
30524         (exit, strerror): Remove decls.
30525         (error_print_progname): Prototype uncondionally.
30526         Don't include <errno.h>; no longer needed.
30527         (private_strerror): Remove.
30528         (error_tail): Always define.
30529         (error, error_at_line): Assume C89 or better; always use prototypes.
30530         * lib/fatal.c: Include "fatal.h" first, to test interface.
30531         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
30532         (VA_START): Remove; all uses changed to va_start.
30533         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
30534         this case.
30535         (exit): Remove decl.
30536         (fatal): Prototype unconditionally.  Assume va_start works.
30537         Abort at end, to pacify gcc.
30538
30539         * lib/euidaccess.c (main): Define with a prototype.
30540
30541         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
30542
30543         * lib/exitfail.c: Include <stdlib.h> unconditionally.
30544
30545         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
30546         prototypes.
30547         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
30548         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
30549         (getenv): Remove decl.
30550         (fnmatch): Define using a prototype.
30551         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
30552         (FCT): Define using a prototype.
30553
30554         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
30555
30556         * lib/gethostname.c: Include <stddef.h>.
30557         (gethostname): Define with prototype.  Length is size_t, not int.
30558
30559 2003-09-08  Paul Eggert  <eggert@twinsun.com>
30560
30561         Assume C89 or better; remove K&R cruft.
30562         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
30563         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
30564         string.h, getenv, malloc.
30565         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
30566         headers.
30567         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
30568         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
30569         do not check for strerror.
30570         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
30571         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
30572         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
30573         do not check for doprnt or vprintf.
30574         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
30575         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
30576
30577 2003-09-08  Paul Eggert  <eggert@twinsun.com>
30578
30579         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
30580         getversion.c should have been removed then, but was accidentally
30581         preserved.
30582
30583         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
30584         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
30585
30586 2003-09-08  Karl Berry  <karl@gnu.org>
30587
30588         * config/config.sub, config.guess, srclistvars.sh: update from savannah
30589                 config, forget about prep.
30590
30591         * config/depcomp, missing: update from automake.
30592
30593 2003-09-07  Paul Eggert  <eggert@twinsun.com>
30594
30595         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
30596         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
30597
30598 2003-09-07  Paul Eggert  <eggert@twinsun.com>
30599
30600         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
30601         copy_tm_result.  Bug reported by Simon Josefsson in
30602         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
30603
30604 2003-09-06  Paul Eggert  <eggert@twinsun.com>
30605
30606         * m4/time_r.m4: New file.
30607         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
30608         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
30609         is. Check for timegm declaration.
30610         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
30611         Do not check for gmtime_r.
30612         Replace mktime if __mktime_internal does not exist and if mktime
30613         hasn't been replaced already.
30614
30615 2003-09-06  Paul Eggert  <eggert@twinsun.com>
30616
30617         * lib/time_r.c, lib/time_r.h: New files.
30618
30619         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
30620         __localtime_r.
30621         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
30622         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
30623
30624         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
30625         __gmtime_r.
30626         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
30627         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
30628         Include <time_r.h>.
30629
30630         * lib/timegm.c: Switch to glibc implementation, with the following
30631         changes:
30632         [defined HAVE_CONFIG_H]: Include <config.h>.
30633         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
30634         (__mktime_internal) [!defined _LIBC]: New decl.
30635         (__gmtime_r) [!defined _LIBC]: New macro and function.
30636         (timegm): Use a prototype, since gnulib assumes C89.
30637         Do not bother declaring tmp to be const, as it's not really usefu.
30638         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
30639         (timegm): Declare only if HAVE_DECL_TIMEGM.
30640
30641 2003-09-06  Paul Eggert  <eggert@twinsun.com>
30642
30643         * MODULES.html.sh (func_all_modules): Add time_r.
30644         * modules/time_r: New file.
30645         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
30646         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
30647
30648 2003-09-03  Paul Eggert  <eggert@twinsun.com>
30649
30650         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
30651         Bug reported by Lute Kamstra in
30652         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
30653
30654         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
30655         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
30656         course with correspondingly smaller numbers for tomorrow and
30657         yesterday.  From Tadayoshi Funaba.  Originally installed into
30658         sh-utils on 1999-08-07, but the patch got lost (I guess during the
30659         coreutils merge?).
30660
30661 2003-08-31  Simon Josefsson  <jas@extundo.com>
30662
30663         * modules/timegm: New file.
30664         * MODULES.html.sh (func_all_modules): Add timegm.
30665
30666 2003-08-31  Simon Josefsson  <jas@extundo.com>
30667
30668         * m4/timegm.m4: New file.
30669
30670 2003-08-31  Simon Josefsson  <jas@extundo.com>
30671
30672         * lib/timegm.h: New file.
30673         * lib/timegm.c: New file.  Based on
30674         wget-1.8.2/src/http.c:mktime_from_utc.
30675
30676 2003-08-31  Karl Berry  <karl@gnu.org>
30677
30678         * lib/argp.h: update from libc.
30679
30680 2003-08-28  Bruno Haible  <bruno@clisp.org>
30681
30682         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
30683         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
30684         followed by '#define fnmatch fnmatch_posix' gives an error.
30685
30686 2003-08-28  Bruno Haible  <bruno@clisp.org>
30687
30688         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
30689         warning on QNX, which defines O_BINARY to 000000.
30690
30691 2003-08-27  Jim Meyering  <jim@meyering.net>
30692
30693         * m4/mkstemp.m4: Require that the system mkstemp be able to create
30694         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
30695         would fail after 32.  Reported by Danny Levinson.  Details here:
30696         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
30697
30698 2003-08-24  Bruno Haible  <bruno@clisp.org>
30699
30700         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
30701         MSVC7 <stdio.h> is included later.
30702
30703 2003-08-22  Simon Josefsson  <jas@extundo.com>
30704
30705         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
30706
30707 2003-08-20  Karl Berry  <karl@gnu.org>
30708
30709         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
30710
30711 2003-08-20  Bruno Haible  <bruno@clisp.org>
30712
30713         * modules/progname: New file.
30714         * MODULES.html.sh (func_all_modules): Add progname.
30715
30716 2003-08-20  Bruno Haible  <bruno@clisp.org>
30717
30718         * lib/progname.h: New file, from GNU gettext.
30719         * lib/progname.c: New file, from GNU gettext.
30720         * lib/progreloc.c: New file, from GNU gettext.
30721
30722 2003-08-19  Jim Meyering  <jim@meyering.net>
30723
30724         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
30725         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
30726
30727 2003-08-19  Bruno Haible  <bruno@clisp.org>
30728
30729         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
30730         more.
30731
30732 2003-08-19  Bruno Haible  <bruno@clisp.org>
30733
30734         * lib/xstrdup.c: Assume <string.h> exists.
30735
30736 2003-08-18  Paul Eggert  <eggert@twinsun.com>
30737
30738         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
30739         in makefile rules.
30740
30741 2003-08-18  Jim Meyering  <jim@meyering.net>
30742
30743         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
30744         * m4/lib-ld.m4: Likewise.
30745
30746 2003-08-18  Jim Meyering  <jim@meyering.net>
30747
30748         * lib/setenv.h: Indent nested cpp directive.
30749         * lib/vasnprintf.c: Remove trailing blanks.
30750
30751 2003-08-17  Simon Josefsson  <jas@extundo.com>
30752
30753         * modules/xstrndup: New file.
30754         * MODULES.html.sh (func_all_modules): Add xstrndup.
30755
30756 2003-08-17  Simon Josefsson  <jas@extundo.com>
30757
30758         * modules/argp: Fix autoconf macro name. Add more dependencies.
30759
30760 2003-08-17  Simon Josefsson  <jas@extundo.com>
30761
30762         * m4/xstrndup.m4: New file.
30763
30764 2003-08-17  Simon Josefsson  <jas@extundo.com>
30765
30766         * m4/argp.m4: New file.
30767
30768 2003-08-17  Simon Josefsson  <jas@extundo.com>
30769             Bruno Haible  <bruno@clisp.org>
30770
30771         * lib/xstrndup.h: New file.
30772         * lib/xstrndup.c: New file.
30773
30774 2003-08-17  Bruno Haible  <bruno@clisp.org>
30775
30776         * modules/strndup (Files, Include): Add lib/strndup.h.
30777
30778 2003-08-17  Bruno Haible  <bruno@clisp.org>
30779
30780         * modules/euidaccess (Files): Add lib/euidaccess.h.
30781
30782 2003-08-17  Bruno Haible  <bruno@clisp.org>
30783
30784         * lib/strndup.h: New file.
30785
30786 2003-08-17  Bruno Haible  <bruno@clisp.org>
30787
30788         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
30789         like AC_GNU_SOURCE.
30790         * modules/extensions (configure.ac): Comment out the invocation of
30791         gl_USE_SYSTEM_EXTENSIONS.
30792
30793 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30794
30795         Merges from coreutils, etc.
30796         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
30797         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
30798         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
30799         fixing a typo.
30800         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
30801         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
30802
30803 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30804
30805         Document merge from coreutils.
30806         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
30807         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
30808         * modules/utime: Add m4/utimes-null.m4.
30809
30810 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30811
30812         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
30813         space, undoing this 2003-08-12 change:
30814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
30815
30816 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30817
30818         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
30819         strtoul.c from libc, undoing this 2003-08-12 change:
30820         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
30821
30822 2003-08-16  Jim Meyering  <jim@meyering.net>
30823
30824         Merges from coreutils.
30825         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
30826         prefix.  Adjust cache variables similarly.  Create 500 rather than
30827         just 300 files, to exercise bug on Darwin6.5, too.
30828         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
30829         $missing_dir.
30830         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
30831         AM_SYS_POSIX_TERMIOS.
30832         Reported by mkc@mathdogs.com.
30833         Also change use of $am_cv_sys_posix_termios
30834         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
30835         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
30836         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
30837         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
30838         in /proc/mounts until it finds one with matching device number.  This
30839         is unnecessary when the FILE argument *is* a mount point.  No stat call
30840         is necessary in that case.  So, disable the statvfs-testing code on
30841         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
30842         as RedHat bug# 84846.
30843         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
30844         to 1MB, so as not to render systems with no stack size limit (e.g.,
30845         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
30846         Include <unistd.h>.  On some systems,
30847         it is required for the definition of _SC_PAGESIZE.
30848
30849 2003-08-16  Jim Meyering  <jim@meyering.net>
30850
30851         Merge from coreutils.
30852         * lib/xstrtoimax.c: #else #if -> #elif.
30853         * lib/xstrtoumax.c: Likewise.
30854
30855 2003-08-16  Jim Meyering  <jim@meyering.net>
30856
30857         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
30858         * m4/utimes.m4: Removed.
30859         * m4/utimes-null.m4: Renamed from utimes.m4.
30860
30861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
30862         to 1MB, so as not to render systems with no stack size limit (e.g.,
30863         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
30864         Include <unistd.h>.  On some systems,
30865         it is required for the definition of _SC_PAGESIZE.
30866
30867 2003-08-16  Jim Meyering  <jim@meyering.net>
30868         and Paul Eggert  <eggert@cs.ucla.edu>
30869
30870         Merges from coreutils, etc.
30871
30872         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
30873         using the latest version from cvs.  This avoids problems with #line
30874         directives using a vendor (Sun) compiler.
30875         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
30876         Don't set GETGROUPS_LIB here; now it's
30877         done via getgroups.m4's wrapper function.
30878         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
30879         rather than just in sh-util/configure.in, so that the
30880         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
30881         same.
30882         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
30883         AC_FUNC_GETLOADAVG where to find getloadavg.c.
30884         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
30885         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
30886         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
30887         Remove code that is now done by the newly-required macros.
30888         Append $(EXEEXT) to DF_PROG.
30889         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
30890         Do not invoke or require the following here,
30891         since prereq.m4 or some gnulib .m4 now does this for us:
30892         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
30893         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
30894         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
30895         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
30896         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
30897         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
30898         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
30899         AC_FUNC_OBSTACK.
30900         Do not replace the following functions, as this is now the job
30901         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
30902         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
30903         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
30904         atexit getpass, strdup, getpagesize.
30905         Replace 'raise'.
30906         Do not check for the following functions, as this is now the job
30907         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
30908         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
30909         setregid.
30910         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
30911         Check for sys/sysctl.h.
30912         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
30913         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
30914         of checking for ssize_t ourselves.
30915
30916         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
30917         Require every macro that gnulib/modules/* suggests for us.
30918         (jm_PREREQ_ADDEXT): New macro.
30919         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
30920         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
30921
30922         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
30923         (gl_PHYSMEM): Use it.
30924         Also check for `table' function.
30925         Check for new headers and functions.
30926         Add check for sys/sysmp.h.
30927         With suggestions from Kaveh Ghazi.
30928         Ignore headers that are present but cannot be compiled.  This
30929         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
30930         C 5.4.
30931
30932 2003-08-15  Paul Eggert  <eggert@twinsun.com>
30933
30934         Document merge from coreutils.
30935         * modules/userspec: Depend on posixver.
30936         * modules/strftime: Depend on tzset.
30937
30938 2003-08-15  Paul Eggert  <eggert@twinsun.com>
30939
30940         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
30941         rather than tab, after '#' in shell-script copyright notices.
30942         Suggested by Bruno Haible.
30943
30944 2003-08-15  Paul Eggert  <eggert@twinsun.com>
30945
30946         * config/srclist-update: Use three spaces, rather than tab, after '#'
30947         in shell-script copyright notices.  Suggested by Bruno Haible.
30948         Remove unnecessary parenthesization in regular expression.
30949
30950 2003-08-15  Jim Meyering  <jim@meyering.net>
30951
30952         Merge from coreutils.
30953         * lib/xgethostname.c: Include <stdlib.h>.
30954         (xghostname): Don't exit for anything other than memory-related
30955         failure; just return NULL.
30956         * lib/userspec.c: Include "posixver.h".
30957         (parse_user_spec): Accept `.' as a separator only
30958         in pre-POSIX-200112 mode.
30959         * lib/strtoimax.c: Use #elif rather than #else #if.
30960         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
30961         Remove function, now that we can rely on a working tzset function.
30962         [!_LIBC]: Ensure that the required autoconf test has been run.
30963         [!defined _NL_CURRENT && HAVE_STRFTIME]:
30964         Use underlying_strftime for %r.
30965         * lib/sha.c: Merge in some clean-up and optimization changes from
30966         glibc.
30967         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
30968         Ensure that it is a multiple of 64.
30969         Rearrange loop exit tests so as to avoid performing an
30970         additional fread after encountering an error or EOF.
30971         * lib/realloc.c: Update copyright date.
30972
30973 2003-08-15  Jim Meyering  <jim@meyering.net>
30974         and Paul Eggert  <eggert@twinsun.com>
30975
30976         Merge from coreutils.
30977         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
30978         member but strut utmpx does not.  Needed for AIX 4.3.3.
30979         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
30980
30981 2003-08-15  Jim Meyering  <jim@meyering.net>
30982         and Paul Eggert  <eggert@cs.ucla.edu>
30983
30984         Merges from coreutils, etc.
30985         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
30986         Require gl_FUNC_TZSET_CLOBBER.
30987         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
30988         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
30989         members.
30990
30991 2003-08-14  Paul Eggert  <eggert@twinsun.com>
30992
30993         Help the merge from coreutils.
30994         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
30995         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
30996         * m4/tzset.m4: Use it too.
30997
30998 2003-08-14  Paul Eggert  <eggert@twinsun.com>
30999
31000         * modules/tzset: New file.
31001
31002 2003-08-14  Jim Meyering  <jim@meyering.net>
31003
31004         Merges from coreutils.
31005         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
31006         variable names, rather than @FNMATCH_H@.
31007         * modules/alloca: Likewise for $(ALLOCA_H).
31008
31009         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
31010         the three copies of the literal target, `fnmatch.h'.
31011         * modules/alloca (alloca.h): Likewise.
31012
31013 2003-08-14  Jim Meyering  <jim@meyering.net>
31014
31015         Merge from coreutils.
31016         * m4/tzset.m4: New file.
31017         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
31018         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
31019         otherwise, AIX 5.1 systems would end up using the latter.
31020         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
31021         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
31022         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
31023         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
31024
31025 2003-08-14  Jim Meyering  <jim@meyering.net>
31026
31027         Merge from coreutils.
31028         * lib/obstack.h: Whitespace changes.
31029         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
31030         and xcalloc return values.
31031         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
31032         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
31033         hang on OSF/1 5.1 for DIR on both local and remote file systems.
31034         Reported by (and fix confirmed by) Nelson H. F. Beebe.
31035         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
31036         error from mntctl.
31037         Use mntctl's return value to drive the entry-processing loop, since
31038         we can't rely on the value of the vmt_length member in the last
31039         entry.  On some systems doing so could result in exhausting
31040         virtual memory.  Based in part on a patch from Mike Jetzer.
31041
31042 2003-08-14  Jim Meyering  <jim@meyering.net>
31043         and Paul Eggert  <eggert@twinsun.com>
31044
31045         Merges from coreutils, plus other fixes.
31046         * lib/physmem.c: Merge in portability changes from gcc/libiberty
31047         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
31048         for credits and details.  Thanks to Kaveh Ghazi for helping
31049         to keep these files in sync.
31050         (ARRAY_SIZE): Define it.
31051         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
31052         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
31053         (memcasecmp): Don't assume size_t fits in unsigned int.
31054         Remove casts and duplicate code.
31055         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
31056         (memcpy): Remove definition.
31057         Merge in some clean-up and optimization changes from glibc.
31058         [BLOCKSIZE]: Move definition to top of file.
31059         Ensure that it is a multiple of 64.
31060         Rearrange loop exit tests so as to avoid performing an
31061         additional fread after encountering an error or EOF.
31062         * lib/md5.h (md5_uintptr): Define.
31063         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
31064         return to the initial working directory.  Preserve errno
31065         for caller.
31066         * lib/idcache.c: Include "xalloc.h".
31067         (xmalloc, xrealloc): Remove decls.
31068         (getuser): Remove casts no longer required in C89.
31069         * lib/human.c: Include stdio.h, for sprintf.
31070         * lib/group-member.c: Include "xalloc.h".
31071         (xmalloc, xrealloc): Remove decls.
31072         (get_group_info): Remove casts no longer required in C89.
31073         * lib/getusershell.c (readname): Remove casts no longer required in
31074         C89.
31075         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
31076         * lib/getline.c: Whitespace fix, from coreutils.
31077
31078 2003-08-13  Paul Eggert  <eggert@twinsun.com>
31079
31080         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
31081         Check for isascii.
31082
31083         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
31084         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
31085         Undo previous (whitespace-only) change.
31086
31087 2003-08-13  Paul Eggert  <eggert@twinsun.com>
31088
31089         * lib/exclude.c: Include <ctype.h>
31090         (IN_CTYPE_DOMAIN): New macro.
31091         (is_space): New fn.
31092         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
31093         and empty lines.
31094
31095         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
31096         Undo previous (whitespace-only) change.
31097
31098 2003-08-13  Paul Eggert  <eggert@twinsun.com>
31099
31100         * config/srclist-update: Change update back to the old behavior,
31101         leaving whitespace alone.  Use one 'sed' command rather than a
31102         pipeline.
31103         (fixlicense): Now a variable, not a function.
31104         (remove_trailing_blanks): Remove.
31105         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
31106         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
31107         Undo previous (whitespace-only) change.
31108
31109 2003-08-12  Paul Eggert  <eggert@twinsun.com>
31110
31111         Merge from coreutils.
31112         * modules/euidaccess: Add lib_SOURCES, include for new
31113         file euidaccess.h
31114
31115 2003-08-12  Paul Eggert  <eggert@twinsun.com>
31116
31117         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
31118         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
31119         Normalize leading white space and remove trailing white space.
31120
31121         Merge from coreutils
31122         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
31123
31124         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
31125         0.12.1.  These files are now being upgraded automatically by
31126         ../config/srclist-update.
31127
31128 2003-08-12  Paul Eggert  <eggert@twinsun.com>
31129
31130         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
31131         Normalize leading white space and remove trailing white space.
31132         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
31133         notice, as per ../config/srclist-update.
31134
31135         Merge from coreutils.
31136         * lib/euidaccess.h: New file.
31137         * lib/euidaccess.c: Include it.
31138         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
31139         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
31140         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
31141
31142 2003-08-12  Paul Eggert  <eggert@twinsun.com>
31143
31144         * config/srclist-update: Add copyright notice.
31145         (remove_id_lines, remove_trailing_blanks): New constants.
31146         (fixfile): Use them to normalize spacing a bit in copied files.
31147         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
31148         Normalize leading white space and remove trailing white space.
31149
31150         * config/texinfo.tex: Sync with texinfo.
31151
31152         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
31153         strtoul.c from libc, to merge coreutils whitespace changes.
31154
31155         * config/srclist.txt: Get the following m4 files from gettext:
31156         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
31157         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
31158         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
31159         wint_t.m4.
31160
31161 2003-08-12  Karl Berry  <karl@gnu.org>
31162
31163         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
31164         been made.
31165
31166 2003-08-11  Paul Eggert  <eggert@twinsun.com>
31167
31168         * modules/gnu-source, m4/gnu-source.m4:
31169         Remove; we're assuming Autoconf 2.54 or later now.
31170         Suggested by Bruno Haible.
31171         * MODULES.html.sh (func_all_modules): Remove gnu-source.
31172
31173 2003-08-11  Bruno Haible  <bruno@clisp.org>
31174
31175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
31176
31177 2003-08-11  Bruno Haible  <bruno@clisp.org>
31178
31179         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
31180         (vasnprintf): Use it instead of wcslen.
31181
31182 2003-08-11  Bruno Haible  <bruno@clisp.org>
31183
31184         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
31185         value to ensure that _Bool promotes to int. Use #define for _Bool when
31186         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
31187
31188 2003-08-10  Karl Berry  <karl@gnu.org>
31189
31190         * lib/regex.h: update from libc (whitespace fix).
31191
31192 2003-08-09  Paul Eggert  <eggert@twinsun.com>
31193
31194         Merge some files from coreutils.  These changes were
31195         originally made by Jim Meyering.
31196         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
31197         many older Unixes require this.
31198         * lib/alloca.c (alloca): Remove cast to argument of free;
31199         no longer needed in C89.
31200         * lib/alloca_.h, regex.h: Fix white space to match
31201         what GNU indent does.
31202
31203 2003-08-09  Paul Eggert  <eggert@twinsun.com>
31204
31205         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
31206         apparently Emacs's Unicode mode got confused before my 2003-08-05
31207         checkin.
31208
31209 2003-08-08  Paul Eggert  <eggert@twinsun.com>
31210
31211         * m4/extensions.m4: New file.
31212         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
31213         Require gl_USE_SYSTEM_EXTENSIONS.
31214         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
31215         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
31216
31217 2003-08-08  Paul Eggert  <eggert@twinsun.com>
31218
31219         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
31220         * modules/extensions, modules/gnu-source: New files.
31221         * modules/timespec, modules/unlocked-io: Depend on extensions.
31222
31223 2003-08-07  Paul Eggert  <eggert@twinsun.com>
31224
31225         * modules/restrict: New file.
31226         * MODULES.html.sh (func_all_modules): Add restrict.
31227         * modules/regex: Depend on restrict.
31228
31229 2003-08-07  Paul Eggert  <eggert@twinsun.com>
31230
31231         * m4/restrict.m4: New file.
31232         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
31233
31234 2003-08-07  Bruno Haible  <bruno@clisp.org>
31235
31236         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
31237         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
31238
31239 2003-08-07  Bruno Haible  <bruno@clisp.org>
31240
31241         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
31242         makes the module 'getndelim2' compatible with the module 'getline'.
31243
31244 2003-08-05  Paul Eggert  <eggert@twinsun.com>
31245
31246         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
31247         byte with "\201" to avoid glitches when editing that source file
31248         with multi-gnome-terminal.
31249
31250 2003-08-05  Paul Eggert  <eggert@twinsun.com>
31251
31252         * lib/bumpalloc.h: Remove.
31253
31254 2003-08-05  Paul Eggert  <eggert@twinsun.com>
31255
31256         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
31257         * modules/bumpalloc: Remove.
31258
31259 2003-08-04  Paul Eggert  <eggert@twinsun.com>
31260
31261         * lib/getloadavg.c: Change copyright notice and spacing to conform to
31262         GNU coding style.
31263
31264         Merge from coreutils.
31265         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
31266         1. From glibc.
31267         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
31268         from Karl Berry, implemented by Jim Meyering.
31269         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
31270         from Dmitry V. Levin.
31271         Remove anachronistic cast of xrealloc.
31272         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
31273         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
31274         type. Otherwise, it wouldn't compile with at least /bin/cc on
31275         ymp-cray-unicos9.0.2.X.
31276         Combine two mostly-identical uses of alloca into one.
31277         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
31278
31279 2003-08-04  Dave Love  <d.love@dl.ac.uk>
31280
31281         [From Emacs.]
31282
31283         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
31284         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
31285         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
31286         obsolete NLIST_NAME_UNION.
31287         [__GNU__]: Undef BSD and FSCALE.
31288         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
31289
31290 2003-08-03  Paul Eggert  <eggert@twinsun.com>
31291
31292         * lib/stdbool_.h (_Bool): Make it signed char, instead of
31293         an enum type, so that it's guaranteed to promote to int.  See:
31294         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
31295
31296 2003-08-03  Karl Berry  <karl@gnu.org>
31297
31298         * config/depcomp: update from automake.
31299
31300 2003-07-31  Paul Eggert  <eggert@twinsun.com>
31301
31302         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
31303         (strerror): Don't assume that a printable int fits in 14 bytes.
31304
31305 2003-07-31  Bruno Haible  <bruno@clisp.org>
31306
31307         * modules/getpass-gnu: New file.
31308         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
31309
31310 2003-07-31  Bruno Haible  <bruno@clisp.org>
31311
31312         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
31313
31314 2003-07-24  Karl Berry  <karl@gnu.org>
31315
31316         * config/missing: update from automake.
31317
31318 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
31319             Bruno Haible  <bruno@clisp.org>
31320
31321         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
31322         * lib/getline.c (getline, getdelim): Likewise.
31323         Remove _GNU_SOURCE define; now it's defined in config.h through
31324         m4/getline.m4.
31325
31326 2003-07-23  Karl Berry  <karl@gnu.org>
31327
31328         * config/config.sub: update from prep.
31329
31330 2003-07-22  Paul Eggert  <eggert@twinsun.com>
31331
31332         * modules/xalloc (Depends-on): Add exitfail.
31333         * modules/xmemcoll: Likewise.
31334
31335 2003-07-22  Paul Eggert  <eggert@twinsun.com>
31336
31337         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
31338         over-parenthesization in macros.
31339
31340         Sync with coreutils.
31341
31342         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
31343         required by C99.
31344
31345         Use `exit_failure' for xalloc and xmemcoll instead of their own
31346         private exit-failure variables.
31347         * lib/xalloc.h (xalloc_exit_failure): Remove.
31348         * lib/xmalloc.c: Likewise.  Include exitfail.h.
31349         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
31350         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
31351         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
31352         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
31353
31354 2003-07-20  Jim Meyering  <jim@meyering.net>
31355
31356         * modules/closeout (Depends-on): Add exitfail.
31357         Suggestion from Bruno Haible.
31358
31359 2003-07-19  Karl Berry  <karl@gnu.org>
31360
31361         * config/config.sub: update from prep.
31362
31363 2003-07-18  Paul Eggert  <eggert@twinsun.com>
31364
31365         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
31366         Remove.
31367         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
31368         to test that it can stand by itself.  Include "exitfail.h".
31369         Clients should set exit_failure instead.
31370         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
31371
31372 2003-07-18  Bruno Haible  <bruno@clisp.org>
31373
31374         * modules/getndelim2: New file.
31375         * modules/getline: Share files with module getndelim2.
31376         * modules/getnline: Depend on getndelim2 instead of sharing files with
31377         it. Add getnline.c to lib_SOURCES.
31378         * MODULES.html.sh (func_all_modules): Add getndelim2.
31379
31380 2003-07-18  Bruno Haible  <bruno@clisp.org>
31381
31382         * m4/getndelim2.m4: New file.
31383         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
31384         invoke gl_PREREQ_GETNDELIM2.
31385         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
31386         gl_PREREQ_GETNDELIM2.
31387         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
31388         gl_GETNDELIM2.
31389
31390 2003-07-18  Bruno Haible  <bruno@clisp.org>
31391
31392         * lib/getndelim2.h: New file.
31393         * lib/getndelim2.c: Make into a module of its own. Include config.h,
31394         getndelim2.h.
31395         (getndelim2): Make non-static. Change return type to ssize_t.
31396         * lib/getline.h: Change argument names.
31397         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
31398         * lib/getnline.c: Include getndelim2.h.
31399
31400 2003-07-18  Andreas Schwab  <schwab@suse.de>
31401
31402         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
31403
31404 2003-07-17  Karl Berry  <karl@gnu.org>
31405
31406         * config/config.sub: update from prep.
31407
31408 2003-07-17  Bruno Haible  <bruno@clisp.org>
31409
31410         * modules/getnline: New file.
31411         * modules/getline: Add lib/getndelim2.c to source file list.
31412         * MODULES.html.sh (func_all_modules): Add getnline.
31413
31414 2003-07-17  Bruno Haible  <bruno@clisp.org>
31415
31416         * m4/getnline.m4: New file.
31417
31418 2003-07-17  Bruno Haible  <bruno@clisp.org>
31419
31420         * m4/Makefile.am.in: Remove file.
31421         * m4/Makefile.am: Remove file.
31422         * m4/Makefile.in: Remove file.
31423
31424 2003-07-17  Bruno Haible  <bruno@clisp.org>
31425
31426         * lib/getnline.h: New file.
31427         * lib/getnline.c: New file.
31428         * lib/getndelim2.c: New file, extracted from getline.c.
31429         (getndelim2): Renamed from getdelim2, with added nmax argument.
31430         * lib/getline.c: Include getndelim2.c.
31431         (getdelim2): Moved out to getndelim2.c.
31432         (getline, getdelim): Update.
31433
31434 2003-07-17  Bruno Haible  <bruno@clisp.org>
31435
31436         * lib/Makefile.am: Remove file.
31437         * lib/Makefile.in: Remove file.
31438
31439 2003-07-17  Bruno Haible  <bruno@clisp.org>
31440
31441         * configure.in: Remove file.
31442         * Makefile.in: Remove file.
31443
31444 2003-07-17  Bruno Haible  <bruno@clisp.org>
31445
31446         * MODULES.html.sh: Put the </BODY> right before </HTML>.
31447
31448 2003-07-16  Karl Berry  <karl@gnu.org>
31449
31450         * config/srclist-update: was running fixlicense twice, which caused
31451                 texinfo.tex to be nullified for some reason.  Simplify,
31452                 $gplsrc is no longer needed as far as I can see?
31453
31454 2003-07-16  Jim Meyering  <jim@meyering.net>
31455
31456         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
31457
31458 2003-07-15  Paul Eggert  <eggert@twinsun.com>
31459
31460         * config/srclist.txt: Get the following files from gettext-runtime/intl
31461         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
31462         ref-del.sin.  From Bruno Haible.
31463         * config/srclist-update (fixfile): Change grep pattern again, since the
31464         previous fix didn't work (there was another trailing $).  Use
31465         '[$]' to escape the $s.
31466
31467 2003-07-15  Karl Berry  <karl@gnu.org>
31468
31469         * lib/vasnprintf.c: update from gettext.
31470
31471 2003-07-15  Karl Berry  <karl@gnu.org>
31472
31473         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
31474         gets expanded when surrounded by '$'.
31475
31476 2003-07-15  Jim Meyering  <jim@meyering.net>
31477
31478         * modules/save-cwd: Don't depend on error.  From Derek Price.
31479
31480 2003-07-15  Jim Meyering  <jim@meyering.net>
31481
31482         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
31483
31484 2003-07-14  Simon Josefsson  <jas@extundo.com>
31485
31486         * modules/mempcpy: New file.
31487         * MODULES.html.sh (func_all_modules): Add mempcpy.
31488
31489 2003-07-14  Simon Josefsson  <jas@extundo.com>
31490
31491         * m4/mempcpy.m4: New file.
31492
31493 2003-07-14  Simon Josefsson  <jas@extundo.com>
31494
31495         * lib/mempcpy.h: New file.
31496         * lib/mempcpy.c: New file.
31497
31498 2003-07-14  Paul Eggert  <eggert@twinsun.com>
31499
31500         * modules/getdate, modules/posixtm: Depend on mktime.
31501
31502 2003-07-14  Paul Eggert  <eggert@twinsun.com>
31503
31504         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
31505         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
31506         unicodeio.c, unicodeio.h, unlocked-io.h:
31507         Switch from LGPL to GPL.
31508
31509 2003-07-14  Paul Eggert  <eggert@twinsun.com>
31510
31511         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
31512         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
31513         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
31514         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
31515         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
31516         updated automatically by ../config/srclist-update.  This changes
31517         their license from LPGL to GPL.
31518
31519 2003-07-14  Paul Eggert  <eggert@twinsun.com>
31520
31521         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
31522         assumed to refer to the root of the most recent stable gettext version.
31523         * config/srclistvars.sh: Add defaults for eggert.
31524         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
31525         Match "This program" as well as "The program".  This is needed
31526         for gettext.
31527
31528 2003-07-14  Jim Meyering  <jim@meyering.net>
31529
31530         Don't emit diagnostics.  Let callers do that.
31531         * lib/save-cwd.c: Don't include "error.h".
31532         (save_cwd): Don't call error.  Ensure that errno is valid
31533         when returning nonzero.
31534
31535         * lib/save-cwd.h (restore_cwd): Update prototype.
31536         * lib/save-cwd.c (restore_cwd): Remove two parameters.
31537         Simplify.  Don't call error upon failure.  Let callers do that.
31538         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
31539         when auditing is enabled.  But don't bother updating the #if.
31540
31541 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
31542
31543         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
31544         it breaks C++ compilation.
31545         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
31546
31547 2003-07-10  Simon Josefsson  <jas@extundo.com>
31548
31549         * modules/strchrnul (Makefile.am): Add strchrnul.h.
31550
31551 2003-07-10  Jim Meyering  <jim@meyering.net>
31552
31553         * m4/clock_time.m4: Remove trailing blank.
31554         * m4/intmax_t.m4: Likewise.
31555
31556 2003-07-10  Jim Meyering  <jim@meyering.net>
31557
31558         * lib/vasnprintf.c: Remove trailing blanks.
31559         Make cpp indentation consistent.
31560
31561 2003-07-09  Paul Eggert  <eggert@twinsun.com>
31562
31563         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
31564         posixver.c, strftime.c, strnlen.c, strverscmp.c:
31565         Switch from LGPL to GPL.
31566
31567 2003-07-09  Paul Eggert  <eggert@twinsun.com>
31568
31569         * config/srclist.txt: Sort sublists.  Add
31570         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
31571         that differ from gnulib for one reason or another; we'd like this list
31572         to be smaller but for now let's document what we have.
31573
31574 2003-07-08  Paul Eggert  <eggert@twinsun.com>
31575
31576         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
31577         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
31578         and sweeter "eval x=$x".
31579         * config/srclist.txt: Get lib/argp* from glibc.
31580
31581 2003-07-07  Paul Eggert  <eggert@twinsun.com>
31582
31583         * lib/mktime.c: Fix some boundary cases and remove need for floating
31584         point.
31585
31586         Issue a compile-time diagnostic if time_t is floating point, or if
31587         two's complement arithmetic is not in effect, or if arithmetic
31588         right shift does not propagate the sign.  These assumptions were
31589         all in the original code but they weren't checked.
31590
31591         (TIME_T_MIDPOINT, verify): New macros.
31592         (__isleap): Remove; it has integer overflow problems.
31593         (leapyear): New function, without those problems.
31594         (ydhms_tm_diff): Remove; splitting into two parts.
31595         (ydhms_diff): New function, containing the arithmetic part of
31596         the old ydhms_tm_diff function.  Issue a compile-time
31597         diagnostic if we are not using C99 integer division.
31598         Avoid casts when possible.
31599         (guess_time_tm): New function, containing the checking part of
31600         the old ydhms_tm_diff function.  Return the new value, rather than
31601         the difference between it and the old.  Accept a new argument T
31602         so that *T specifies the old value.  Check for overflow in the result.
31603
31604         (__mktime_internal): Use a time_t offset, not a long int offset.
31605         This undoes the 2003-06-04 change, which is no longer needed now
31606         that we have better overflow checking.
31607         (localtime_offset): Likewise.
31608
31609         (__mktime_internal): Avoid harmful overflow on hosts where time_t
31610         and long are 64-bit but int is only 32-bit.
31611         (ydhms_diff): Use long int to store year1 and yday1.
31612         Issue a compile-time diagnostic if long int is not wide enough.
31613
31614         (__mktime_internal): Use long int to store adjusted year and yday.
31615         Use plain C rather than preprocessor commands, if that doesn't
31616         affect efficiency.
31617         Check for overflow (and try to repair) after each probe
31618         rather than checking only at the very end.  This avoids some bugs
31619         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
31620         does not equal GMT offset at maximum time).
31621         Use integer to check for overflow rather than floating point; this
31622         is more portable to non-IEEE hosts, and is a tad faster.
31623         When we detect that we are oscillating between two values,
31624         don't check whether tm_isdst has the requested value, since
31625         we already know the answer.  When tm_isdst has the wrong value,
31626         use a different heuristic to find the right one, based on the
31627         extreme values actually observed in practice in tz2003a,
31628         rather than the (overly optimistic) "previous 3 calendar quarters".
31629
31630         (not_equal_tm, print_tm, check_result): Use "const T" rather than
31631         "T const" to accommodate glibc style.
31632         (check_result): Use less-confusing report format.  "long" -> "long int.
31633         (main): Likewise.
31634         Don't loop if the iteration overflows time_t.
31635         Allow a negative step in the iteration.
31636
31637 2003-07-06  Karl Berry  <karl@gnu.org>
31638
31639         * config/depcomp: update from automake.
31640         * config/config.sub: update from prep.
31641
31642 2003-07-03  Karl Berry  <karl@gnu.org>
31643
31644         * config/config.guess: update from prep.
31645
31646 2003-07-01  Paul Eggert  <eggert@twinsun.com>
31647
31648         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
31649         xreadlink.c now includes it unconditionally.
31650
31651 2003-07-01  Paul Eggert  <eggert@twinsun.com>
31652
31653         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
31654         having it depend on HAVE_SYS_TYPES_H.
31655
31656 2003-07-01  Bruno Haible  <bruno@clisp.org>
31657
31658         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
31659         <sys/types.h> should be sufficient.
31660         Reported by Paul Eggert.
31661
31662 2003-06-26  Karl Berry  <karl@gnu.org>
31663
31664         * config/depcomp: update from automake.
31665
31666 2003-06-26  Bruno Haible  <bruno@clisp.org>
31667
31668         * modules/human: Depend on module stdbool.
31669
31670 2003-06-25  Bruno Haible  <bruno@clisp.org>
31671
31672         * modules/readlink: New file.
31673         * modules/xreadlink: Depend on it.
31674         * MODULES.html.sh (func_all_modules): Add readlink.
31675
31676 2003-06-25  Bruno Haible  <bruno@clisp.org>
31677
31678         * m4/readlink.m4: New file.
31679
31680 2003-06-25  Bruno Haible  <bruno@clisp.org>
31681
31682         * lib/readlink.c: New file.
31683
31684 2003-06-22  Karl Berry  <karl@gnu.org>
31685
31686         * config/srclist.txt: update mkinstalldirs from automake.
31687         * config/mkinstalldirs: update.
31688
31689 2003-06-22  Bruno Haible  <bruno@clisp.org>
31690
31691         Portability to mingw32.
31692         * m4/ssize_t.m4: New file, from GNU gettext.
31693         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
31694         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
31695
31696 2003-06-22  Bruno Haible  <bruno@clisp.org>
31697
31698         * modules/safe-read: Add m4/ssize_t.m4.
31699         * modules/xreadlink: Add m4/ssize_t.m4.
31700
31701 2003-06-20  Bruno Haible  <bruno@clisp.org>
31702
31703         Assume C89, so PARAMS isn't needed.
31704         * lib/unicodeio.h (PARAMS): Remove.
31705         * lib/unicodeio.c: Don't use PARAMS.
31706
31707 2003-06-18  Karl Berry  <karl@gnu.org>
31708
31709         * config/config.{guess,sub}: update from prep.
31710
31711 2003-06-18  Jim Meyering  <jim@meyering.net>
31712
31713         Merge changes from coreutils.
31714         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
31715         Remove explicit declarations of xmalloc and realloc.
31716         Include xalloc.h.
31717         (read_utmp): Remove anachronistic cast of xmalloc.
31718
31719 2003-06-17  Paul Eggert  <eggert@twinsun.com>
31720
31721         Assume C89, so PARAMS isn't needed.
31722         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
31723         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
31724         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
31725         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
31726         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
31727         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
31728         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
31729         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
31730         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
31731         lib/xstrtod.h, lib/xstrtol.h: Likewise.
31732         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
31733         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
31734         no longer needed. Anyway, config.h should always be included before any
31735         other file.
31736
31737 2003-06-11  Simon Josefsson  <jas@extundo.com>
31738
31739         * modules/sysexits: New file.
31740         * MODULES.html.sh (func_all_modules): Add sysexits.
31741
31742 2003-06-11  Simon Josefsson  <jas@extundo.com>
31743
31744         * lib/sysexit_.h: New file.
31745
31746 2003-06-11  Derek Price  <derek@ximbiot.com>
31747
31748         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
31749         necessary.
31750
31751 2003-06-11  Bruno Haible  <bruno@clisp.org>
31752
31753         * m4/sysexits.m4: New file.
31754
31755 2003-06-10  Simon Josefsson  <jas@extundo.com>
31756
31757         * lib/argp.h: New file, from glibc.
31758         * lib/argp-ba.c: New file, from glibc.
31759         * lib/argp-eexst.c: New file, from glibc.
31760         * lib/argp-fmtstream.c: New file, from glibc.
31761         * lib/argp-fmtstream.h: New file, from glibc.
31762         * lib/argp-fs-xinl.c: New file, from glibc.
31763         * lib/argp-help.c: New file, from glibc.
31764         * lib/argp-namefrob.h: New file, from glibc.
31765         * lib/argp-parse.c: New file, from glibc.
31766         * lib/argp-pv.c: New file, from glibc.
31767         * lib/argp-pvh.c: New file, from glibc.
31768         * lib/argp-xinl.c: New file, from glibc.
31769
31770 2003-06-10  Simon Josefsson  <jas@extundo.com>
31771
31772         * modules/strchrnul: New file.
31773
31774 2003-06-10  Simon Josefsson  <jas@extundo.com>
31775
31776         * modules/argp: New file.
31777
31778 2003-06-10  Simon Josefsson  <jas@extundo.com>
31779
31780         * m4/strchrnul.m4: New file.
31781
31782 2003-06-10  Simon Josefsson  <jas@extundo.com>
31783
31784         * lib/strchrnul.h: New file.
31785         * lib/strchrnul.c: New file.
31786
31787 2003-06-10  Bruno Haible  <bruno@clisp.org>
31788
31789         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
31790
31791 2003-06-07  Karl Berry  <karl@gnu.org>
31792
31793         * config/config.{guess,sub}: update from prep.
31794
31795 2003-06-07  Jim Meyering  <jim@meyering.net>
31796
31797         * modules/strtod: Use $(...) notation, not @...@ for
31798         AC_REPLACE'd variables.
31799         * modules/localcharset: Likewise.
31800
31801 2003-06-07  Jim Meyering  <jim@meyering.net>
31802
31803         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
31804         in place of my name in the copyright comment.
31805         Remove definition and uses of __P.
31806
31807         From coreutils.
31808         * lib/stat.c: Don't declare xmalloc explicitly.
31809         Instead, include "xalloc.h".
31810         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
31811         xrealloc, and xcalloc return values.
31812         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
31813         Improve comment.
31814         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
31815
31816 2003-06-07  Bruno Haible  <bruno@clisp.org>
31817
31818         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
31819         avoid AC_CONFIG_LINKS.
31820         * modules/fnmatch (Makefile.am): Use explicit creation rule for
31821         fnmatch.h, to avoid AC_CONFIG_LINKS.
31822         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
31823
31824 2003-06-07  Bruno Haible  <bruno@clisp.org>
31825
31826         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
31827         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
31828         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
31829         directory.
31830         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
31831         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
31832         directory.
31833
31834 2003-06-06  Jim Meyering  <jim@meyering.net>
31835
31836         Merge from coreutils.
31837         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
31838         Consolidate declarations and initializations of *_base* locals.
31839
31840         Merge from coreutils.
31841         This avoids a core dump on systems without GNU putenv,
31842         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
31843         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
31844         (unsetenv): New static function, from GNU libc.
31845         (rpl_putenv): Use it.
31846
31847         * lib/modechange.c: Remove trailing blanks.
31848
31849         Merge from coreutils.
31850         * lib/fsusage.c: Remove declaration of statfs.
31851         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
31852
31853         * lib/posixtm.c: Include <stdbool.h> unconditionally.
31854
31855 2003-06-06  Jim Meyering  <jim@meyering.net>
31856
31857         * lib/stdbool_.h: Renamed from stdbool.h.in.
31858
31859 2003-06-06  Jim Meyering  <jim@meyering.net>
31860             Bruno Haible  <bruno@clisp.org>
31861
31862         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
31863         Adjust Makefile.am snippet not to redirect directly to target.
31864         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
31865
31866 2003-06-05  Paul Eggert  <eggert@twinsun.com>
31867
31868         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
31869         mismatch, look in future quarters as well as past.  This fixes a
31870         bug when processing fall-backwards gaps immediately after a long
31871         period of daylight-saving time.
31872
31873         * lib/mktime.c: Assume freestanding C89 or better.
31874         (HAVE_LIMITS_H): Remove.  Assume it's 1.
31875         (__P): Remove; not used.
31876         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
31877         (mktime, not_equal_tm, print_tm, check_result,
31878         main): Use prototypes.  Use const * where appropriate.
31879         (main): Fix typo in testing code that uncovered by above changes.
31880         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
31881
31882 2003-06-04  Paul Eggert  <eggert@twinsun.com>
31883
31884         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
31885         locale.h, localeconv.  This merges changes from coreutils.
31886
31887         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
31888         It can be removed after the next Autoconf is released.
31889         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
31890         needed.
31891
31892 2003-06-04  Paul Eggert  <eggert@twinsun.com>
31893
31894         * lib/mktime.c: Fix Debian bug 177940
31895         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
31896         (localtime_offset): Now long int, not time_t, because we want it
31897         to be guaranteed to be signed.  All uses changed.
31898         (__mktime_internal): If overflow would occur when adding offset,
31899         don't add it.
31900
31901         Merge 'human' changes from coreutils.  Rewrite to support
31902         locale-specific notations like thousands separators.
31903         * lib/human.c: Simplify authorship notice.
31904         Include human.h immediately after config.h.
31905         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
31906         <limits.h>: Do not include, since human.h does.
31907         (SIZE_MAX, UINTMAX_MAX): New macros.
31908         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
31909         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
31910         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
31911         (power_letter): Renamed from suffixes.
31912         (generate_suffix_backwards): Remove.
31913         (adjust_value): Now takes int style (because of human.h changes)
31914         and long double value (for greater precision on some platforms).
31915         (group_number): New function.
31916         (human_readable): Use it.  Use integer options, not enum.
31917         Put the options before the sizes in the arg list.
31918         Support all the new options.
31919         The old human_readable function has been removed;
31920         use inttostr.h instead.
31921         (human_readable, default_block_size, humblock):
31922         Use uintmax_t, not int, for block sizes.
31923         (human_readable_inexact, block_size_types): Remove.
31924         (block_size_opts): New constant.
31925         (human_options): Renamed from human_block_size, with new signature
31926         that allows block sizes up to UINTMAX_MAX.  All callers changed.
31927         * lib/human.h: Add copyright and authorship notice.
31928         Include <limits.h> and <stdbool.h> unconditionally.
31929         (PARAMS): Remove.  All uses removed.
31930         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
31931         (enum human_inexact_style): Remove tag; now a nameless enum.
31932         (human_floor, human_ceiling, human_round_to_even): Now have
31933         values 2, 0, 1 rather than -1, 1, 0.
31934         (human_group_digits, human_suppress_point_zero, human_autoscale,
31935         human_base_1024, human_SI, human_B): New constants.
31936         (human_readable_inexact, human_block_size): Remove.
31937         (human_readable): Size args are now uintmax_t, not int.
31938         (human_options): New decl.
31939
31940         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
31941         unnecessary now that we assume C89 or better.  This change
31942         imported from coreutils.
31943
31944         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
31945         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
31946         in the 2003-05-30 sync from glibc.
31947
31948         .h files should stand alone, but we shouldn't include <sys/types.h>
31949         if we can get away with just <stddef.h>.
31950
31951         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
31952         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
31953         rather than <sys/types.h>, as we merely need size_t.
31954         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
31955         to get size_t.
31956         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
31957         Include <stdio.h>, to get FILE.
31958         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
31959         memcasecmp.h has included <stddef.h> and all we need is size_t.
31960         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
31961         our interface, instead of including <sys/types.h>
31962
31963 2003-06-04  Paul Eggert  <eggert@twinsun.com>
31964
31965         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
31966         now, as glibc mktime is buggy on non-glibc systems.
31967
31968 2003-06-03  Karl Berry  <karl@gnu.org>
31969
31970         * config/config.sub: update from prep.
31971
31972 2003-06-02  Paul Eggert  <eggert@twinsun.com>
31973
31974         [from coreutils]
31975         Fix some minor time-related bugs with POSIX time arguments.
31976         Some valid time stamps were being rejected (notably -1, and
31977         time stamps before 1900 on 64-bit hosts).  And some invalid
31978         time stamps were being accepted, e.g. September 31.
31979
31980         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
31981         that we can return (time_t) -1 successfully.
31982         * lib/posixtm.c: Likewise.
31983         [HAVE_STDBOOL_H]: Include <stdbool.h>.
31984         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
31985         (t): Remove static var.
31986         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
31987         of static var.  All uses changed.
31988         (year): Do not reject years before 1900; they can occur with
31989         64-bit time_t.
31990         (posix_time_parse): Do not check for out-of-range components;
31991         that is now the caller's responsibility, since our checks were
31992         only approximations.
31993         (posixtime): Use mktime to check for out-of-range components,
31994         since it knows them exactly.
31995         If mktime returns (time_t) -1, check whether an error actually occurred
31996         by invoking localtime on -1.
31997         (main) [TEST_POSIXTIME]: Check for input data errors, and report
31998         posixtime failures better.
31999         Improve the test data (in comments only).
32000
32001 2003-06-02  Karl Berry  <karl@gnu.org>
32002
32003         * config/mkinstalldirs (version): new variable.
32004         (--version): new option.
32005         (usage): improve message.
32006
32007 2003-05-30  Karl Berry  <karl@gnu.org>
32008
32009         * lib/mktime.c: update from libc.
32010
32011 2003-05-30  Bruno Haible  <bruno@clisp.org>
32012
32013         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
32014         * config/config.rpath: Upgrade to gettext-0.12.1.
32015
32016 2003-05-30  Bruno Haible  <bruno@clisp.org>
32017
32018         * m4/gettext.m4: Upgrade to gettext-0.12.1.
32019         * m4/nls.m4: New file, from gettext-0.12.1.
32020         * m4/po.m4: New file, from gettext-0.12.1.
32021         * m4/progtest.m4: Upgrade to gettext-0.12.1.
32022
32023 2003-05-30  Bruno Haible  <bruno@clisp.org>
32024
32025         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
32026         * lib/localcharset.h: Likewise.
32027         * lib/localcharset.c: Likewise.
32028
32029 2003-05-29  Karl Berry  <karl@gnu.org>
32030
32031         * config/config.rpath: update from gettext.
32032
32033 2003-05-28  Paul Eggert  <eggert@twinsun.com>
32034
32035         Assume the headers required for C89 freestanding compilers.
32036         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
32037         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
32038         * m4/human.m4 (gl_HUMAN): Likewise.
32039         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
32040         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
32041         * m4/userspec.m4 (gl_USERSPEC): Likewise.
32042         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
32043         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32044         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
32045
32046 2003-05-28  Paul Eggert  <eggert@twinsun.com>
32047
32048         Assume the headers required for C89 freestanding compilers.
32049         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
32050         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
32051         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
32052         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
32053         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
32054         define, since <limits.h> is guaranteed to do that.
32055         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
32056         * lib/exclude.c: Include <stdbool.h> unconditionally.
32057         * lib/tempname.c: Include <stddef.h> unconditionally.
32058         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
32059         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
32060         <stddef.h> does that.
32061         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
32062         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
32063         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
32064         needed.
32065         * lib/xstrtol.c: Likewise.
32066         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
32067         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
32068
32069         * lib/addext.c (addext): Use assignment rather than cast, to avoid
32070         warnings on some platforms.
32071
32072         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
32073         arbitrarily.
32074
32075 2003-05-26  Jim Meyering  <jim@meyering.net>
32076
32077         Merge in a change from coreutils:
32078         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
32079         that is guaranteed to be `no'.  Use `no_such_member' to indicate
32080         that condition, rather than `-1' which is slightly misleading.
32081         Change the name of the cache variable to have the gl_ prefix.
32082         Prompted by a patch from Richard Dawe for DJGPP.
32083
32084 2003-05-24  Karl Berry  <karl@gnu.org>
32085
32086         * config/config.guess: update from prep.
32087
32088 2003-05-22  Karl Berry  <karl@gnu.org>
32089
32090         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
32091
32092 2003-05-20  Karl Berry  <karl@gnu.org>
32093
32094         * config/config.guess: update from prep.
32095
32096 2003-05-18  Karl Berry  <karl@gnu.org>
32097
32098         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
32099         might actually be set by the user.
32100
32101         * config/depcomp, install-sh, mdate-sh: update from automake.
32102
32103 2003-05-17  Bruno Haible  <bruno@clisp.org>
32104
32105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
32106         invalid expansion for AC_EGREP_CPP.
32107         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
32108         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
32109         Suggested by Akim Demaille <akim@epita.fr> in
32110         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
32111
32112 2003-05-12  Jim Meyering  <jim@meyering.net>
32113
32114         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
32115         the space-padded-by-default conversion specifiers, %e, %k, %l.
32116
32117 2003-05-12  Bruno Haible  <bruno@clisp.org>
32118
32119         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
32120         the string is longer than 4 KB.
32121
32122 2003-05-11  Karl Berry  <karl@gnu.org>
32123
32124         * config/config.{guess,sub}: update from prep.
32125
32126 2003-05-09  Bruno Haible  <bruno@clisp.org>
32127
32128         * modules/error: Add m4/strerror_r.m4 to file list.
32129
32130 2003-05-03  Bruno Haible  <bruno@clisp.org>
32131
32132         Upgrade to Unicode-4.0.
32133         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
32134         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
32135         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
32136         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
32137         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
32138         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
32139         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
32140         Change width of U+E0100..U+E01EF from 1 to 0.
32141
32142 2003-04-25  Jim Meyering  <jim@meyering.net>
32143
32144         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
32145         of type size_t, not int.
32146
32147 2003-04-25  Bruno Haible  <bruno@clisp.org>
32148
32149         * lib/copy-file.c: Include <stddef.h>, for size_t.
32150
32151 2003-04-21  Paul Eggert  <eggert@twinsun.com>
32152
32153         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
32154         code which expansion is under static control.  Patch imported from
32155         Akim Demaille's patch to Bison; see
32156         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
32157
32158 2003-04-14  Bruno Haible  <bruno@clisp.org>
32159
32160         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
32161
32162 2003-04-11  Jim Meyering  <jim@meyering.net>
32163
32164         Merge changes from Coreutils.
32165
32166         2003-03-22  Jim Meyering  <jim@meyering.net>
32167
32168         * lib/strftime.c (widen): Cast alloca return value to proper type.
32169
32170         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
32171
32172         From GNU libc.
32173         * lib/strftime.c (my_strftime): Handle very large width
32174         specifications for numeric values correctly.  Improve checks for
32175         overflow.
32176
32177         2003-01-19  Jim Meyering  <jim@meyering.net>
32178
32179         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
32180         definitions.
32181         (nl_get_alt_digit) [! defined my_strftime]: Define.
32182         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
32183         _nl_get_alt_digit and _nl_get_walt_digit.
32184
32185         * lib/strftime.c (my_strftime): Merge in locale-related changes from
32186         libc. These changes have no effect outside of _LIBC.
32187
32188 2003-04-10  Bruno Haible  <bruno@clisp.org>
32189
32190         * modules/findprog: New file.
32191         * MODULES.html.sh (func_all_modules): Add it.
32192
32193 2003-04-10  Bruno Haible  <bruno@clisp.org>
32194
32195         * m4/findprog.m4: New file.
32196         * m4/eaccess.m4: New file.
32197
32198 2003-04-10  Bruno Haible  <bruno@clisp.org>
32199
32200         * lib/findprog.h: New file, from GNU gettext.
32201         * lib/findprog.c: New file, from GNU gettext.
32202
32203 2003-04-05  Jim Meyering  <jim@meyering.net>
32204
32205         Merge changes from Coreutils.
32206
32207         * lib/exclude.h (PARAMS): Remove definition and uses.
32208         * lib/exclude.c: Remove uses of `PARAMS'.
32209
32210         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
32211         Add test-cases for DOS filenames. Declare program_name.
32212         (main): Set up program_name.  Patch by Rich Dawe.
32213
32214         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
32215         error from mntctl.
32216         Use mntctl's return value to drive the entry-processing loop, since
32217         we can't rely on the value of the vmt_length member in the last
32218         entry.  On some systems doing so could result in exhausting
32219         virtual memory.  Based in part on a patch from Mike Jetzer.
32220
32221 2003-04-04  Bruno Haible  <bruno@clisp.org>
32222
32223         * modules/linebreak: New file.
32224         * MODULES.html.sh (func_all_modules): Add it.
32225
32226 2003-04-04  Bruno Haible  <bruno@clisp.org>
32227
32228         * m4/linebreak.m4: New file.
32229
32230 2003-04-04  Bruno Haible  <bruno@clisp.org>
32231
32232         * lib/linebreak.h: New file, from GNU gettext.
32233         * lib/linebreak.c: New file, from GNU gettext with slight
32234         modifications.
32235         * lib/lbrkprop.h: New file, from GNU gettext.
32236
32237 2003-04-03  Bruno Haible  <bruno@clisp.org>
32238
32239         * modules/utf8-ucs4: New file.
32240         * modules/utf16-ucs4: New file.
32241         * modules/ucs4-utf8: New file.
32242         * modules/ucs4-utf16: New file.
32243         * MODULES.html.sh (func_all_modules): Add them.
32244
32245 2003-04-03  Bruno Haible  <bruno@clisp.org>
32246
32247         * m4/utf-ucs4.m4: New file.
32248         * m4/ucs4-utf.m4: New file.
32249
32250 2003-04-03  Bruno Haible  <bruno@clisp.org>
32251
32252         * lib/utf8-ucs4.h: New file, from GNU gettext.
32253         * lib/utf16-ucs4.h: New file, from GNU gettext.
32254         * lib/ucs4-utf8.h: New file, from GNU gettext.
32255         * lib/ucs4-utf16.h: New file, from GNU gettext.
32256
32257 2003-04-02  Bruno Haible  <bruno@clisp.org>
32258
32259         * modules/binary-io: New file.
32260         * MODULES.html.sh (func_all_modules): Add it.
32261
32262 2003-04-02  Bruno Haible  <bruno@clisp.org>
32263
32264         * lib/binary-io.h: New file, from GNU gettext.
32265
32266 2003-04-01  Bruno Haible  <bruno@clisp.org>
32267
32268         * modules/pathname: New file.
32269         * MODULES.html.sh (func_all_modules): Add it.
32270
32271 2003-04-01  Bruno Haible  <bruno@clisp.org>
32272
32273         * lib/pathname.h: New file, from GNU gettext.
32274         * lib/concatpath.c: New file, from GNU gettext.
32275
32276 2003-03-30  Bruno Haible  <bruno@clisp.org>
32277
32278         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
32279
32280 2003-03-30  Bruno Haible  <bruno@clisp.org>
32281
32282         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
32283         function chown() doesn't exist.
32284
32285 2003-03-28  Bruno Haible  <bruno@clisp.org>
32286
32287         * modules/copy-file: New file.
32288         * MODULES.html.sh (func_all_modules): Add it.
32289
32290 2003-03-28  Bruno Haible  <bruno@clisp.org>
32291
32292         * m4/copy-file.m4: New file.
32293
32294 2003-03-28  Bruno Haible  <bruno@clisp.org>
32295
32296         * lib/copy-file.h: New file, from GNU gettext.
32297         * lib/copy-file.c: New file, from GNU gettext.
32298
32299 2003-03-18  Jim Meyering  <jim@meyering.net>
32300
32301         * lib/quote.c (quote_n): Fix typo in comment.
32302
32303 2003-03-18  Bruno Haible  <bruno@clisp.org>
32304
32305         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
32306         checking.
32307         * m4/onceonly_2_57.m4: Likewise.
32308
32309 2003-03-17  Bruno Haible  <bruno@clisp.org>
32310
32311         * m4/onceonly.m4: Require autoconf 2.54 or newer.
32312         (m4_quote): Remove macro.
32313         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
32314
32315 2003-03-14  Jim Meyering  <jim@meyering.net>
32316
32317         Merge changes from Coreutils.
32318         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
32319         to be const, in order to avoid warnings.
32320         (obstack_room): Likewise.
32321         (obstack_empty_p): Likewise.
32322
32323 2003-03-14  Bruno Haible  <bruno@clisp.org>
32324
32325         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
32326         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
32327
32328 2003-03-13  Paul Eggert  <eggert@twinsun.com>
32329
32330         Merge changes from Bison.
32331         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
32332         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
32333         when compiling Bison 1.875's `bitset bset = obstack_alloc
32334         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
32335         * lib/hash.c: Include <stdbool.h> unconditionally.
32336
32337 2003-03-13  Paul Eggert  <eggert@twinsun.com>
32338
32339         * m4/onceonly.m4 (m4_quote): New macro.
32340         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
32341         Quote AC_FOREACH variable-expansions properly.
32342
32343 2003-03-13  Paul Eggert  <eggert@twinsun.com>
32344
32345         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
32346
32347 2003-03-09  Paul Eggert  <eggert@twinsun.com>
32348
32349         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
32350         Reported by Bruce Becker; see:
32351         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
32352
32353 2003-03-03  Paul Eggert  <eggert@twinsun.com>
32354             Bruno Haible  <bruno@clisp.org>
32355
32356         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
32357         Reported by John Hughes, see
32358         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
32359
32360 2003-02-20  Bruno Haible  <bruno@clisp.org>
32361
32362         * MODULES.html.sh (func_all_modules): Add poll.
32363
32364 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
32365
32366         * modules/poll: New file.
32367
32368 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
32369
32370         * lib/poll_.h: New file.
32371         * lib/poll.c: New file.
32372
32373 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
32374
32375         * m4/poll.m4: New file.
32376
32377 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
32378
32379         * modules/mathl: New file.
32380
32381 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
32382
32383         * lib/mathl.h: New file.
32384         * lib/acosl.c: New file.
32385         * lib/asinl.c: New file.
32386         * lib/atanl.c: New file.
32387         * lib/ceill.c: New file.
32388         * lib/cosl.c: New file.
32389         * lib/expl.c: New file.
32390         * lib/floorl.c: New file.
32391         * lib/frexpl.c: New file.
32392         * lib/ldexpl.c: New file.
32393         * lib/logl.c: New file.
32394         * lib/sincosl.c: New file.
32395         * lib/sinl.c: New file.
32396         * lib/sqrtl.c: New file.
32397         * lib/tanl.c: New file.
32398         * lib/trigl.c: New file.
32399         * lib/trigl.h: New file.
32400
32401 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
32402
32403         * m4/mathl.m4: New file.
32404
32405 2003-02-18  Bruno Haible  <bruno@clisp.org>
32406
32407         * MODULES.html.sh (func_all_modules): Add mathl.
32408
32409 2003-02-17  Bruno Haible  <bruno@clisp.org>
32410
32411         * modules/mkdtemp: New module.
32412         * MODULES.html.sh (func_all_modules): Add it.
32413
32414 2003-02-17  Bruno Haible  <bruno@clisp.org>
32415
32416         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
32417
32418 2003-02-17  Bruno Haible  <bruno@clisp.org>
32419
32420         * lib/mkdtemp.h: New file, from GNU gettext.
32421         * lib/mkdtemp.c: New file, from GNU gettext.
32422
32423 2003-02-02  Jim Meyering  <jim@meyering.net>
32424
32425         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
32426         e.g. glibc-2.2.93.
32427
32428 2003-01-31  Bruno Haible  <bruno@clisp.org>
32429
32430         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
32431         'rpl_rename'.
32432         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
32433         'rpl_strnlen'.
32434         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
32435         'rpl_strtod'.
32436         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
32437         'rpl_utime'.
32438
32439 2003-01-31  Bruno Haible  <bruno@clisp.org>
32440
32441         * lib/rename.c: #undef rename before defining rpl_rename.
32442         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
32443
32444 2003-01-30  Bruno Haible  <bruno@clisp.org>
32445
32446         * modules/vasnprintf, modules/vasprintf: New modules.
32447         * MODULES.html.sh (func_all_modules): Add them.
32448
32449 2003-01-30  Bruno Haible  <bruno@clisp.org>
32450
32451         * m4/signed.m4: New file, from GNU gettext.
32452         * m4/longdouble.m4: New file, from GNU gettext.
32453         * m4/wchar_t.m4: New file, from GNU gettext.
32454         * m4/wint_t.m4: New file, from GNU gettext.
32455         * m4/vasnprintf.m4: New file.
32456         * m4/vasprintf.m4: New file.
32457
32458 2003-01-30  Bruno Haible  <bruno@clisp.org>
32459
32460         * lib/printf-args.h: New file, from GNU gettext.
32461         * lib/printf-args.c: New file, from GNU gettext.
32462         * lib/printf-parse.h: New file, from GNU gettext.
32463         * lib/printf-parse.c: New file, from GNU gettext.
32464         * lib/vasnprintf.h: New file, from GNU gettext.
32465         * lib/vasnprintf.c: New file, from GNU gettext.
32466         * lib/asnprintf.c: New file, from GNU gettext.
32467         * lib/vasprintf.h: New file, from GNU gettext with modifications.
32468         * lib/vasprintf.c: New file, from GNU gettext.
32469         * lib/asprintf.c: New file, from GNU gettext.
32470
32471 2003-01-29  Bruno Haible  <bruno@clisp.org>
32472
32473         * modules/stpncpy: New module.
32474         * MODULES.html.sh (func_all_modules): Add it.
32475
32476 2003-01-29  Bruno Haible  <bruno@clisp.org>
32477
32478         * m4/stpncpy.m4: New file.
32479
32480 2003-01-29  Bruno Haible  <bruno@clisp.org>
32481
32482         * lib/stpncpy.h: New file, from GNU gettext with modifications.
32483         * lib/stpncpy.c: New file, from GNU gettext with modifications.
32484
32485 2003-01-28  Bruno Haible  <bruno@clisp.org>
32486
32487         * modules/c-ctype: New module.
32488         * MODULES.html.sh (func_all_modules): Add it.
32489
32490 2003-01-28  Bruno Haible  <bruno@clisp.org>
32491
32492         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
32493         Paul Eggert.
32494         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
32495         Paul Eggert.
32496
32497 2003-01-27  Bruno Haible  <bruno@clisp.org>
32498
32499         * modules/xsetenv: New module.
32500         * MODULES.html.sh (func_all_modules): Add it.
32501
32502 2003-01-27  Bruno Haible  <bruno@clisp.org>
32503
32504         * lib/xsetenv.h: New file, from GNU gettext.
32505         * lib/xsetenv.c: New file, from GNU gettext.
32506
32507 2003-01-23  Jim Meyering  <jim@meyering.net>
32508
32509         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
32510         from working on systems without dirfd (at least Irix and OSF1/Tru64).
32511
32512 2003-01-23  Bruno Haible  <bruno@clisp.org>
32513
32514         * modules/minmax: New module.
32515         * MODULES.html.sh (func_all_modules): Add it.
32516
32517 2003-01-23  Bruno Haible  <bruno@clisp.org>
32518
32519         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
32520         Eggert.
32521
32522 2003-01-22  Bruno Haible  <bruno@clisp.org>
32523
32524         * modules/exit: New module.
32525         * MODULES.html.sh (func_all_modules): Add it.
32526
32527 2003-01-22  Bruno Haible  <bruno@clisp.org>
32528
32529         * lib/exit.h: New file, from GNU gettext.
32530
32531 2003-01-19  Bruno Haible  <bruno@clisp.org>
32532
32533         * gnulib-tool: Recognize option --extract-maintainer.
32534         (func_get_maintainer): New function.
32535         * modules/*: Add Maintainer entry.
32536
32537 2003-01-16  Jim Meyering  <jim@meyering.net>
32538
32539         * m4/regex.m4: The `regex' struct is both input and output.
32540         Initialize it before each use.  Patch by Tim Waugh.
32541
32542 2003-01-16  Bruno Haible  <bruno@clisp.org>
32543
32544         * MODULES.html.sh: Add a table of contents. Add the module name as
32545         leftmost column. Add hyperlinks.
32546
32547 2003-01-15  Bruno Haible  <bruno@clisp.org>
32548
32549         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
32550
32551 2003-01-15  Bruno Haible  <bruno@clisp.org>
32552
32553         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
32554         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
32555         suffix.
32556
32557 2003-01-15  Bruno Haible  <bruno@clisp.org>
32558
32559         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
32560
32561 2003-01-15  Bruno Haible  <bruno@clisp.org>
32562
32563         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
32564         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
32565
32566 2003-01-14  Jim Meyering  <jim@meyering.net>
32567
32568         * lib/same.c (same_name): Tweak a comment.
32569
32570 2003-01-14  Bruno Haible  <bruno@clisp.org>
32571
32572         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
32573         when a string comparison is sufficient.
32574
32575 2003-01-14  Bruno Haible  <bruno@clisp.org>
32576
32577         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
32578         'unsigned int'.
32579
32580 2003-01-14  Bruno Haible  <bruno@clisp.org>
32581
32582         * lib/hash-pjw.c: Add comment about low quality of this function.
32583
32584 2003-01-13  Bruno Haible  <bruno@clisp.org>
32585
32586         * modules/stpcpy: Distribute lib/stpcpy.h.
32587         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
32588
32589 2003-01-13  Bruno Haible  <bruno@clisp.org>
32590
32591         * modules/*: Add a description.
32592         * modules/strpbrk: Fix Makefile.am snippet.
32593         * modules/strtoimax: Fix dependencies.
32594         * modules/strtoumax: Likewise.
32595
32596 2003-01-13  Bruno Haible  <bruno@clisp.org>
32597
32598         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
32599         * modules/alloca (Makefile.am): All object files depend on alloca.h.
32600         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
32601
32602 2003-01-13  Bruno Haible  <bruno@clisp.org>
32603
32604         * gnulib-tool (func_create_testdir): Store config/* files in the main
32605         directory.
32606         * config.rpath: Move to ...
32607         * config/config.rpath: ... here.
32608         * modules/gettext: Contains config/config.rpath, not config.rpath.
32609         * modules/iconv: Likewise.
32610
32611 2003-01-12  Paul Eggert  <eggert@twinsun.com>
32612
32613         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
32614         to avoid collisions with libcurses and libreadline.
32615
32616         * m4/getstr.m4: Remove.
32617         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
32618
32619 2003-01-12  Paul Eggert  <eggert@twinsun.com>
32620
32621         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
32622         to avoid collisions with libcurses and libreadline.
32623
32624         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
32625         * lib/getstr.h, getstr.c: Remove.
32626         * lib/getline.c: Include "getline.h", to check interface.
32627         Move body of old getstr.c here: this defines MIN_CHUNK and
32628         declares getdelim2, which is renamed from getstr.
32629         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
32630
32631         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
32632         All uses changed.
32633         * lib/linebuffer.h: Likewise.
32634         (readline): Remove backward-compatibility macro.
32635
32636 2003-01-12  Paul Eggert  <eggert@twinsun.com>
32637
32638         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
32639         to avoid collisions with libcurses and libreadline.
32640         * getstr: Remove.
32641         * MODULES.html.sh: Remove getstr.
32642         * modules/getline: Depend on unlocked-io, not getstr.
32643
32644 2003-01-12  Jim Meyering  <jim@meyering.net>
32645
32646         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
32647
32648 2003-01-10  Bruno Haible  <bruno@clisp.org>
32649
32650         * modules/alloca: Change Makefile.am requirements. Simplify Include
32651         requirements. Add lib/alloca_.h to file list.
32652
32653 2003-01-10  Bruno Haible  <bruno@clisp.org>
32654
32655         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
32656
32657 2003-01-10  Bruno Haible  <bruno@clisp.org>
32658
32659         * lib/alloca_.h: New file.
32660         * lib/getdate.y: Unconditionally include alloca.h.
32661         * lib/makepath.c: Likewise.
32662         * lib/setenv.c: Likewise.
32663         * lib/userspec.c: Likewise.
32664
32665 2003-01-09  Karl Berry  <karl@gnu.org>
32666
32667         * MODULES.html.sh: include `dirname $0` in PATH, to find
32668         gnulib-tool.
32669
32670 2003-01-09  Bruno Haible  <bruno@clisp.org>
32671
32672         * modules/stdbool: Change configure.ac, Makefile.am requirements.
32673         Simplify Include requirements. Add lib/stdbool.h.in to file list.
32674
32675 2003-01-09  Bruno Haible  <bruno@clisp.org>
32676
32677         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
32678
32679 2003-01-09  Bruno Haible  <bruno@clisp.org>
32680
32681         * lib/stdbool.h.in: New file.
32682
32683 2003-01-09  Bruno Haible  <bruno@clisp.org>
32684
32685         * gnulib-tool (func_all_modules): Ignore files ending in ~.
32686         * MODULES.html.sh: Likewise.
32687
32688 2003-01-08  Jim Meyering  <jim@meyering.net>
32689
32690         * lib/full-write.c: Undefine and define-away `const' after inclusion
32691         of errno.h, not before.  Suggestion from Bruno Haible.
32692
32693 2003-01-08  Bruno Haible  <bruno@clisp.org>
32694
32695         * modules/full-read: Depend on full-write.
32696
32697 2003-01-08  Bruno Haible  <bruno@clisp.org>
32698
32699         * lib/safe-read.c: Include specification header first, to ensure its
32700         selfcontainedness.
32701         * lib/full-write.c: Likewise.
32702
32703 2003-01-07  Jim Meyering  <jim@meyering.net>
32704
32705         * lib/full-write.c: Rework so that it may serve to define full_read,
32706         too.
32707         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
32708
32709 2003-01-07  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/strtoimax.c: Include <stdint.h> as an alternative to
32712         <inttypes.h>.
32713         * lib/xstrtol.h: Likewise.
32714         * lib/xstrtoimax.c: Likewise.
32715         * lib/xstrtoumax.c: Likewise.
32716         * lib/human.h: Likewise.
32717
32718         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
32719         on systems that have <inttypes.h> but not <stdint.h>.
32720
32721 2003-01-07  Bruno Haible  <bruno@clisp.org>
32722
32723         * MODULES.html.sh: Add copyright notice.
32724         (missed_files): Omit CVS directory entries.
32725         (func_module): Make it work with sed-3.02.
32726         * MODULES.txt: Remove file.
32727
32728 2003-01-06  Jim Meyering  <jim@meyering.net>
32729
32730         * lib/version-etc.c: Update year in translatable copyright string.
32731
32732 2003-01-03  Karl Berry  <karl@gnu.org>
32733
32734         * config/config.{guess,sub}: update from prep.
32735
32736 2003-01-02  Karl Berry  <karl@gnu.org>
32737
32738         * doc/COPYING.DOC: belatedly updated to 1.2.
32739
32740 2003-01-01  Karl Berry  <karl@gnu.org>
32741
32742         * gnulib-tool (func_verify_module): report module name $module in
32743         error message, not $1.
32744         * gnulib-tool (create-testdir): don't complain if destdir couldn't
32745         be created, only if it doesn't exist.
32746         * gnulib-tool (last_checkin_date): don't expand the $Date here.
32747
32748 2002-12-31  Paul Eggert  <eggert@twinsun.com>
32749
32750         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
32751
32752 2002-12-31  Paul Eggert  <eggert@twinsun.com>
32753
32754         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
32755         memcmp if strcoll doesn't work.
32756
32757 2002-12-31  Bruno Haible  <bruno@clisp.org>
32758
32759         * lib/utime.c (utime_null): No need to call ftruncate if the file was
32760         nonempty.
32761
32762 2002-12-31  Bruno Haible  <bruno@clisp.org>
32763
32764         * lib/memcoll.c (STRCOLL): New macro.
32765         (memcoll): Use it.
32766
32767 2002-12-31  Bruno Haible  <bruno@clisp.org>
32768
32769         * lib/localcharset.h: New file.
32770         * lib/localcharset.c: Include it.
32771         * lib/unicodeio.c: Likewise.
32772
32773 2002-12-31  Bruno Haible  <bruno@clisp.org>
32774
32775         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
32776         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
32777
32778 2002-12-31  Bruno Haible  <bruno@clisp.org>
32779
32780         * lib/getline.h: Include <stddef.h>, for size_t.
32781
32782         * lib/unicodeio.h: Include <stddef.h>, for size_t.
32783         * lib/unicodeio.c: Don't include <stddef.h>.
32784
32785 2002-12-31  Bruno Haible  <bruno@clisp.org>
32786
32787         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
32788         HAVE_TM_ZONE.
32789
32790 2002-12-24  Karl Berry  <karl@gnu.org>
32791
32792         * config/config.guess: update from prep.
32793
32794 2002-12-24  Bruno Haible  <bruno@clisp.org>
32795
32796         General infrasructure.
32797         * m4/README: Rewritten.
32798         * m4/onceonly.m4: New file.
32799         * m4/onceonly_2_57.m4: New file.
32800
32801         Module atexit.
32802         * m4/atexit.m4: New file.
32803
32804         Module strtod.
32805         * m4/strtod.m4: New file.
32806
32807         Module strtol.
32808         * m4/strtol.m4: New file.
32809
32810         Module strtoul.
32811         * m4/strtoul.m4: New file.
32812
32813         Module memchr.
32814         * m4/memchr.m4: New file.
32815
32816         Module memcmp.
32817         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
32818         (jm_FUNC_MEMCMP): Invoke it.
32819
32820         Module memcpy.
32821         * m4/memcpy.m4: New file.
32822
32823         Module memmove.
32824         * m4/memmove.m4: New file.
32825
32826         Module memset.
32827         * m4/memset.m4: New file.
32828
32829         Module strcspn.
32830         * m4/strcspn.m4: New file.
32831
32832         Module strpbrk.
32833         * m4/strpbrk.m4: New file.
32834
32835         Module strstr.
32836         * m4/strstr.m4: New file.
32837
32838         Module strerror.
32839         * m4/strerror.m4: New file.
32840
32841         Module mktime.
32842         * m4/mktime.m4: Renamed from jm-mktime.m4.
32843         (gl_PREREQ_MKTIME): New macro.
32844         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
32845
32846         Module malloc.
32847         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
32848         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
32849         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
32850
32851         Module realloc.
32852         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
32853         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
32854         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
32855
32856         Module strftime.
32857         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
32858         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
32859         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
32860         gl_TM_GMTOFF.
32861         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
32862
32863         Module xalloc.
32864         * m4/xalloc.m4: New file.
32865
32866         Module alloca.
32867         * m4/alloca.m4: New file.
32868
32869         Module putenv.
32870         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
32871         (jm_FUNC_PUTENV): Invoke it.
32872
32873         Module setenv.
32874         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
32875         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
32876         when invoked twice.
32877         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
32878         gt_FUNC_SETENV.
32879
32880         Module memrchr.
32881         * m4/memrchr.m4: New file.
32882
32883         Module stpcpy.
32884         * m4/stpcpy.m4: New file.
32885
32886         Module strcase.
32887         * m4/strcase.m4: New file.
32888
32889         Module strdup.
32890         * m4/strdup.m4: New file.
32891
32892         Module strnlen.
32893         * m4/strnlen.m4: New file.
32894
32895         Module strndup.
32896         * m4/strndup.m4: New file.
32897
32898         Module xstrtod.
32899         * m4/xstrtod.m4: New file.
32900
32901         Module xstrtol.
32902         * m4/xstrtol.m4: New file.
32903
32904         Module getdate.
32905         * m4/getdate.m4: New file.
32906
32907         Module unlocked-io.
32908         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
32909         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
32910         * m4/jm-glibc-io.m4n: Remove file.
32911
32912         Module long-options.
32913         * m4/long-options.m4: New file.
32914
32915         Module md5.
32916         * m4/md5.m4: New file.
32917
32918         Module sha.
32919         * m4/sha.m4: New file.
32920
32921         Module getstr.
32922         * m4/getstr.m4: New file.
32923
32924         Module getline.
32925         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
32926         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
32927         <sys/types.h>, for size_t. Use the function name gnu_getline, not
32928         simply getline. Infoke gl_PREREQ_GETLINE.
32929
32930         Module obstack.
32931         * m4/obstack.m4: New file.
32932
32933         Module hash.
32934         * m4/hash.m4: New file.
32935
32936         Module readtokens.
32937         * m4/readtokens.m4: New file.
32938
32939         Module strverscmp.
32940         * m4/strverscmp.m4: New file.
32941
32942         Module stdbool.
32943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
32944         OSF/1.
32945
32946         Module strtoll.
32947         * m4/strtoll.m4: New file.
32948
32949         Module strtoull.
32950         * m4/strtoull.m4: New file.
32951
32952         Module strtoimax.
32953         * m4/strtoimax.m4: New file.
32954
32955         Module strtoumax.
32956         * m4/strtoumax.m4: New file.
32957
32958         Module xstrtoimax.
32959         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
32960         jm_AC_PREREQ_XSTRTOIMAX.
32961         Moved the strtol prerequisites to strtol.m4.
32962         Moved the strtoll prerequisites to strtoll.m4.
32963         Moved the strtoimax prerequisites to strtoimax.m4.
32964
32965         Module xstrtoumax.
32966         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
32967         jm_AC_PREREQ_XSTRTOUMAX.
32968         Moved the strtoul prerequisites to strtoul.m4.
32969         Moved the strtoull prerequisites to strtoull.m4.
32970         Moved the strtoumax prerequisites to strtoumax.m4.
32971
32972         Module chown.
32973         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
32974         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
32975
32976         Module dup2.
32977         * m4/dup2.m4: New file.
32978
32979         Module ftruncate.
32980         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
32981         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
32982
32983         Module getgroups.
32984         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
32985         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
32986
32987         Module gettimeofday.
32988         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
32989         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
32990         gl_PREREQ_GETTIMEOFDAY.
32991
32992         Module mkdir.
32993         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
32994         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
32995
32996         Module mkstemp.
32997         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
32998         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
32999         jm_AC_TYPE_UINTMAX_T.
33000         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
33001
33002         Module stat.
33003         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
33004         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
33005
33006         Module lstat.
33007         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
33008         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
33009
33010         Module timespec.
33011         * m4/timespec.m4 (gl_TIMESPEC): New macro.
33012         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
33013         * m4/st_mtim.m4: Indentation.
33014
33015         Module nanosleep.
33016         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
33017         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
33018         gl_PREREQ_NANOSLEEP.
33019
33020         Module regex.
33021         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
33022         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
33023         (gl_REGEX): New macro.
33024
33025         Module rename.
33026         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
33027         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
33028
33029         Module rmdir.
33030         * m4/rmdir.m4: New file.
33031
33032         Module utime.
33033         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
33034         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
33035         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
33036
33037         Module dirname.
33038         * m4/dirname.m4: New file.
33039
33040         Module getopt.
33041         * m4/getopt.m4: New file.
33042
33043         Module unistd-safer.
33044         * m4/unistd-safer.m4: New file.
33045
33046         Module fnmatch.
33047         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
33048         declaration.
33049         (gl_PREREQ_FNMATCH_EXTRA): New macro.
33050         (gl_FUNC_FNMATCH_POSIX): New macro.
33051         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
33052         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
33053         simply fnmatch.
33054
33055         Module exclude.
33056         * m4/exclude.m4: New file.
33057
33058         Module human.
33059         * m4/human.m4: New file.
33060
33061         Module acl.
33062         * m4/acl.m4: Nop.
33063
33064         Module backupfile.
33065         * m4/backupfile.m4: New file.
33066         * m4/d-ino.m4: Indentation.
33067
33068         Module fsusage.
33069         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
33070         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
33071         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
33072
33073         Module dirfd.
33074         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
33075         requirements.
33076
33077         Module euidaccess.
33078         * m4/euidaccess.m4: New file.
33079
33080         Module file-type.
33081         * m4/file-type.m4: New file.
33082
33083         Module fileblocks.
33084         * m4/fileblocks.m4: New file.
33085
33086         Module filemode.
33087         * m4/filemode.m4: New file.
33088
33089         Module isdir.
33090         * m4/isdir.m4: New file.
33091
33092         Module lchown.
33093         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
33094         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
33095
33096         Module makepath.
33097         * m4/makepath.m4: New file.
33098
33099         Module modechange.
33100         * m4/modechange.m4: New file.
33101
33102         Module mountlist.
33103         * m4/mountlist.m4: New file.
33104         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
33105         Indentation.
33106
33107         Module path-concat.
33108         * m4/path-concat.m4: New file.
33109
33110         Module pathmax.
33111         * m4/pathmax.m4: New file.
33112
33113         Module same.
33114         * m4/same.m4: New file.
33115
33116         Module save-cwd.
33117         * m4/save-cwd.m4: New file.
33118
33119         Module savedir.
33120         * m4/savedir.m4: New file.
33121
33122         Module xgetcwd.
33123         * m4/xgetcwd.m4: New file.
33124         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
33125
33126         Module xreadlink.
33127         * m4/xreadlink.m4: New file.
33128
33129         Module safe-read.
33130         * m4/safe-read.m4: New file.
33131
33132         Module safe-write.
33133         * m4/safe-write.m4: New file.
33134
33135         Module closeout.
33136         * m4/closeout.m4: New file.
33137
33138         Module stdio-safer.
33139         * m4/stdio-safer.m4: New file.
33140
33141         Module getpass.
33142         * m4/getpass.m4: New file.
33143
33144         Module getugroups.
33145         * m4/getugroups.m4: New file.
33146
33147         Module group-member.
33148         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
33149         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
33150
33151         Module idcache.
33152         * m4/idcache.m4: New file.
33153
33154         Module userspec.
33155         * m4/userspec.m4: New file.
33156
33157         Module gettime.
33158         * m4/clock_time.m4: New file.
33159         * m4/gettime.m4: New file.
33160
33161         Module settime.
33162         * m4/settime.m4: New file.
33163
33164         Module posixtm.
33165         * m4/posixtm.m4: New file.
33166
33167         Module gethostname.
33168         * m4/gethostname.m4: New file.
33169
33170         Module canon-host.
33171         * m4/canon-host.m4: New file.
33172
33173         Module gettext.
33174         * m4/codeset.m4: New file, from gettext-0.11.5.
33175         * m4/gettext.m4: New file, from gettext-0.11.5.
33176         * m4/glibc21.m4: New file, from gettext-0.11.5.
33177         * m4/iconv.m4: New file, from gettext-0.11.5.
33178         * m4/intdiv0.m4: New file, from gettext-0.11.5.
33179         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
33180         * m4/inttypes.m4: New file, from gettext-0.11.5.
33181         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
33182         * m4/isc-posix.m4: New file, from gettext-0.11.5.
33183         * m4/lcmessage.m4: New file, from gettext-0.11.5.
33184         * m4/lib-ld.m4: New file, from gettext-0.11.5.
33185         * m4/lib-link.m4: New file, from gettext-0.11.5.
33186         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
33187         * m4/progtest.m4: New file, from gettext-0.11.5.
33188         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
33189         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
33190         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
33191
33192         Module localcharset.
33193         * m4/localcharset.m4: New file.
33194
33195         Module hard-locale.
33196         * m4/hard-locale.m4: New file.
33197
33198         Module mbswidth.
33199         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
33200         onceonly macros.
33201         * m4/mbrtowc.m4: Add comment.
33202
33203         Module memcasecmp.
33204         * m4/memcasecmp.m4: New file.
33205
33206         Module memcoll.
33207         * m4/memcoll.m4: New file.
33208
33209         Module unicodeio.
33210         * m4/unicodeio.m4: New file.
33211
33212         Module rpmatch.
33213         * m4/rpmatch.m4: New file.
33214
33215         Module yesno.
33216         * m4/yesno.m4: New file.
33217
33218         Module exitfail.
33219         * m4/exitfail.m4: New file.
33220
33221         Module c-stack.
33222         * m4/c-stack.m4 (gl_C_STACK): New macro.
33223         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
33224
33225         Module error.
33226         * m4/error.m4 (gl_ERROR): New macro.
33227         (jm_PREREQ_ERROR): Use onceonly macros.
33228
33229         Module fatal.
33230         * m4/fatal.m4: New file.
33231
33232         Module getloadavg.
33233         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
33234         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
33235
33236         Module getpagesize.
33237         * m4/getpagesize.m4: New file.
33238
33239         Module getusershell.
33240         * m4/getusershell.m4: New file.
33241
33242         Module physmem.
33243         * m4/physmem.m4: New file.
33244
33245         Module posixver.
33246         * m4/posixver.m4: New file.
33247
33248         Module quotearg.
33249         * m4/quotearg.m4: New file.
33250
33251         Module quote.
33252         * m4/quote.m4: New file.
33253
33254         Module readutmp.
33255         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
33256
33257         Module sig2str.
33258         * m4/sig2str.m4: New file.
33259
33260         Other.
33261         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
33262         ulonglong.m4.
33263         * m4/intmax_t.m4: New file.
33264         * m4/d-type.m4: Indentation.
33265         * m4/jm-macros.m4: Update.
33266         * m4/prereq.m4 (jm_PREREQ): Update.
33267         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
33268         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
33269         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
33270         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
33271         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
33272         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
33273         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
33274         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
33275         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
33276         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
33277         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
33278         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
33279         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
33280         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
33281         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
33282         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
33283         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
33284         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
33285         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
33286
33287 2002-12-24  Bruno Haible  <bruno@clisp.org>
33288
33289         * MODULES.txt: Update according to m4/ changes.
33290
33291         Module gettext.
33292         * config.rpath: New file, from gettext-0.11.5.
33293
33294         * modules/*: New module descriptions.
33295         * gnulib-tool: New file.
33296         * MODULES.html.sh: New file.
33297
33298 2002-12-21  Karl Berry  <karl@gnu.org>
33299
33300         * doc/fdl.texi: update to version 1.2.
33301
33302 2002-12-19  Karl Berry  <karl@gnu.org>
33303
33304         * config/config.guess: update from prep.
33305
33306 2002-12-18  Bruno Haible  <bruno@clisp.org>
33307
33308         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
33309         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
33310
33311 2002-12-17  Bruno Haible  <bruno@clisp.org>
33312
33313         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
33314         stdlib.h, string.h.
33315
33316 2002-12-17  Bruno Haible  <bruno@clisp.org>
33317
33318         * lib/canon-host.c (strdup): Remove unused declaration.
33319
33320         * lib/fsusage.c: Include full_read.h.
33321         (get_fs_usage): Use full_read instead of safe_read.
33322
33323         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
33324
33325 2002-12-12  Karl Berry  <karl@gnu.org>
33326
33327         * config/config.guess: update from prep.
33328
33329 2002-12-11  Bruno Haible  <bruno@clisp.org>
33330
33331         * m4/setenv.m4: New file, from gettext-0.11.5.
33332
33333 2002-12-11  Bruno Haible  <bruno@clisp.org>
33334
33335         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
33336         not unsetenv().
33337         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
33338         modifications:
33339
33340         2002-12-11  Bruno Haible  <bruno@clisp.org>
33341
33342                 * setenv.c (alloca): Fall back to malloc.
33343                 (freea): New macro.
33344                 (setenv): Use freea() to free memory allocated with alloca().
33345
33346         2002-11-13  Bruno Haible  <bruno@clisp.org>
33347
33348                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
33349                 function declarations.
33350                 * unsetenv.c (unsetenv): Likewise.
33351
33352         2002-03-04  Bruno Haible  <bruno@clisp.org>
33353
33354                 Portability to AIX 4.3.3.
33355                 * unsetenv.c: New file, extracted from setenv.c.
33356                 * setenv.c: Move the unsetenv() function to unsetenv.c.
33357
33358         2001-12-20  Bruno Haible  <bruno@clisp.org>
33359
33360                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
33361                 use malloc instead. For SunOS 4.
33362
33363         2001-12-11  Bruno Haible  <bruno@clisp.org>
33364
33365                 * setenv.c: Declare alloca.
33366                 (compar_fn_t): New typedef.
33367                 (KNOWN_VALUE, STORE_VALUE): Use it.
33368
33369         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
33370         setenv.h.
33371
33372 2002-12-10  Paul Eggert  <eggert@twinsun.com>
33373
33374         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
33375         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
33376         Choose values that are less likely to collide with system fnmatch
33377         options.
33378         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
33379         defined (e.g., a pure POSIX system).
33380         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
33381         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
33382
33383 2002-12-06  Paul Eggert  <eggert@twinsun.com>
33384
33385         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
33386         a pain in practice to deal with generated m4 files.  This change
33387         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
33388
33389         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
33390         and jm-glibc-io.m4, as they are no longer a special case.
33391         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
33392         kludge and the auto-generation stuff.  Check only whether the
33393         functions are declared, not whether they exist, since older hosts
33394         that don't declare the functions can't use the optimization anyway.
33395
33396 2002-12-06  Jim Meyering  <jim@meyering.net>
33397
33398         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
33399
33400         Merge in changes from libc's misc/error.c, in preparation
33401         for the merge of gnulib's changes back into libc.
33402
33403         * lib/error.c (_): Define only if not already defined.
33404         Move definition to follow all #include directives.
33405         Include unlocked-io.h only if !_LIBC.
33406         [_LIBC]: Include <libio/libioP.h>.
33407         [USE_IN_LIBIO]: Include <libio/iolibio.h>
33408         (fflush): Tweak definition to use INTUSE.
33409         (putc): Define.
33410
33411 2002-12-05  Paul Eggert  <eggert@twinsun.com>
33412
33413         * lib/alloca.c [defined emacs]: Include "lisp.h".
33414         (xalloc_die) [defined emacs]: New macro.
33415         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
33416         [! defined emacs]: Include <xalloc.h>.
33417         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
33418         (pointer): Typedef to POINTER_TYPE *.
33419         (malloc): Remove decl; we now always use xmalloc.
33420         (alloca): Use old-style definition, since Emacs needs this.
33421         Check for arithmetic overflow when computing combined size.
33422
33423 2002-12-04  Paul Eggert  <eggert@twinsun.com>
33424
33425         Do not generate unlocked-io.h automatically, since it's easier to
33426         maintain it by hand.
33427
33428         * lib/unlocked-io.h: New file, from GNU diffutils,
33429         but with proper copyright notice and attribution.
33430         * lib/gen-uio: Remove.
33431         * lib/Makefile.am: Add copyright notice.
33432         (libfetish_a_SOURCES): Add unlocked-io.h.
33433         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
33434         (DISTCLEANFILES, io_functions): Remove macros.
33435         (EXTRA_DIST): Remove gen_uio.
33436         (unlocked-io.h): Remove rule.
33437
33438 2002-12-04  Jim Meyering  <jim@meyering.net>
33439
33440         Reflect the fact that stat.c and lstat.c are no longer generated.
33441         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
33442         (DISTCLEANFILES): Likewise.
33443         (EXTRA_DIST): Likewise.
33444         (all_local): Don't depend on stat.c or lstat.c.
33445         (stat.c, lstat.c): Remove rules.
33446         (EXTRA_DIST): Remove xstat.in.
33447
33448         * lib/xstat.in: Remove file.  Contents moved into stat.c.
33449         * lib/stat.c: New file.  Contents mostly from xstat.in.
33450         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
33451         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
33452
33453         * lib/safe-read.c: Rework so that it may serve to define safe_write,
33454         too.
33455         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
33456
33457 2002-12-03  Jim Meyering  <jim@meyering.net>
33458
33459         * lib/safe-read.c, safe-write.c: Change variable names and comments,
33460         but not semantics, to minimize the differences between these two files.
33461         (safe_read): Change comment to mention SAFE_READ_ERROR.
33462
33463         * lib/safe-read.c (IS_EINTR): Define.
33464         (safe_read): Use IS_EINTR in place of in-function cpp directives.
33465
33466 2002-12-02  Jim Meyering  <jim@meyering.net>
33467
33468         * lib/safe-read.c (EINTR): Define.
33469         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
33470         (INT_MAX): Provide fallback.
33471         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
33472
33473         * lib/safe-read.h (SAFE_READ_ERROR): Define.
33474
33475 2002-12-02  Bruno Haible  <bruno@clisp.org>
33476
33477         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
33478         Define, taken from safe-read.c.
33479         (INT_MAX): Provide fallback.
33480         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
33481         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
33482
33483         * lib/safe-read.c (EINTR): Remove definition.
33484         (safe_read): Don't use EINTR if it is absent.
33485
33486 2002-12-01  Jim Meyering  <jim@meyering.net>
33487
33488         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
33489         zero.
33490         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
33491
33492 2002-11-27  Paul Eggert  <eggert@twinsun.com>
33493
33494         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
33495         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
33496         with `if (! (value < limit)) abort ();', for readability.
33497
33498 2002-11-26  Karl Berry  <karl@gnu.org>
33499
33500         * lib/strdup.c: copy from libc again, with jim's ok.
33501         * lib/.cppi-disable: re-add strdup.c
33502
33503 2002-11-25  Karl Berry  <karl@gnu.org>
33504
33505         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
33506         instead of "strtol.c".
33507
33508 2002-11-25  Karl Berry  <karl@gnu.org>
33509
33510         * config/install-sh: update from automake for variable quoting, $0 in
33511         error msgs, etc.
33512
33513         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
33514         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
33515         entry.
33516
33517 2002-11-25  Jim Meyering  <jim@meyering.net>
33518
33519         * lib/mktime.c: Sync from libc, now that it has the latest fix.
33520
33521 2002-11-24  Karl Berry  <karl@gnu.org>
33522
33523         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
33524         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
33525
33526 2002-11-24  Jim Meyering  <jim@meyering.net>
33527
33528         Update from coreutils:
33529
33530         * lib/mktime.c: Merge in changes from libc.
33531
33532         Avoid a link-time failure on some Linux systems.
33533         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
33534         (otherwise).
33535         (__mon_yday): Declare with the STATIC attribute.
33536         (__mktime_internal): Likewise.
33537         Based on a report from Greg Schafer.
33538
33539 2002-11-23  Jim Meyering  <jim@meyering.net>
33540
33541         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
33542         Use `unsigned', not `int', as type of index.
33543
33544         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
33545
33546         * lib/fsusage.c: Remove unneeded parentheses around operands of
33547         `defined'.
33548
33549 2002-11-22  Paul Eggert  <eggert@twinsun.com>
33550
33551         * lib/quotearg.h: Allow multiple inclusion by surrounding with
33552         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
33553         so that we can be included first.
33554         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
33555         * lib/quotearg.c: Include quotearg.h immediately after config.h.
33556         No need to include stddef.h or sys/types.h any more.
33557         Surround local include files with "", not "<>".
33558         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
33559         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
33560         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
33561         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
33562         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
33563         (ISPRINT): Remove; no longer needed now that we assume C89.
33564
33565         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
33566         Preserve errno.
33567
33568         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
33569         quotearg_char): Use SIZE_MAX rather than
33570         (size_t) -1 when we are talking about "infinity".
33571
33572         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
33573
33574 2002-11-22  Paul Eggert  <eggert@twinsun.com>
33575
33576         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
33577         hint that one should use `if (! x) abort ();' rather than `assert
33578         (x);', and anyway it's one less thing to worry about configuring.
33579         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
33580         hash_rehash, hash_insert): Use abort rather than assert.
33581
33582 2002-11-22  Bruno Haible  <bruno@clisp.org>
33583
33584         * lib/safe-read.h: Assume C89. Add comments.
33585         (safe_read): Change return type to size_t.
33586         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
33587         byte counts > SSIZE_MAX correctly.
33588         * lib/safe-write.h: New file.
33589         * lib/safe-write.c: New file.
33590         * lib/full-read.h: New file.
33591         * lib/full-read.c: New file.
33592         * lib/full-write.h: Assume C89. Add comments.
33593         * lib/full-write.c: Include safe-write.h.
33594         (full_write): Rewritten to use safe_write.
33595         Suggested by Jim Meyering and Paul Eggert.
33596
33597 2002-11-21  Jim Meyering  <jim@meyering.net>
33598
33599         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
33600
33601         Merge in changes from the coreutils.
33602
33603         2002-09-25  Paul Eggert  <eggert@twinsun.com>
33604         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
33605         <stdint.h>.
33606         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
33607         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
33608         int.  Work more efficiently if X is the same width as uintmax_t.
33609         Do not compare X to -1, to avoid bogus compiler warning.
33610         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
33611         Don't assume that f_frsize and f_bsize are the same type.
33612
33613         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
33614         warning on FreeBSD.
33615
33616         * lib/makepath.c (make_path): Restore umask *before* creating the final
33617         component.
33618         (make_path): Minor reformatting.
33619
33620         * lib/xmalloc.c: Adjust to work with new autoconf macros,
33621         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
33622         HAVE_MALLOC/HAVE_REALLOC.
33623
33624         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
33625         dummy ones.  At least on GNU/Linux systems, `auto' means something
33626         else.
33627         From Michael Stone.
33628
33629 2002-11-21  Bruno Haible  <bruno@clisp.org>
33630
33631         Remove case insensitive option matching.
33632         * lib/argmatch.h (argcasematch): Remove declaration.
33633         (ARGCASEMATCH): Remove macro.
33634         (__xargmatch_internal): Remove case_sensitive argument.
33635         (XARGMATCH): Update.
33636         (XARGCASEMATCH): Remove macro.
33637         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
33638         case_sensitive argument.
33639         (argcasematch): Remove function.
33640         (__xargmatch_internal): Remove case_sensitive argument.
33641         (main): Use XARGMATCH instead of XARGCASEMATCH.
33642
33643         * lib/xmalloc.c: Change compile-time error message. Add comment about
33644         required autoconf version.
33645
33646 2002-11-20  Paul Eggert  <eggert@twinsun.com>
33647
33648         Merge argmatch cleanups from Bison.  Assume C89.
33649
33650         * lib/argmatch.c: Include config.h here, not in argmatch.h.
33651         Include stdlib.h, for EXIT_FAILURE.
33652         Always include <string.h>, since we assume C89.
33653         (EXIT_FAILURE): Remove pre-C89 bug workaround.
33654         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
33655         Include <stddef.h> instead, since it's all we need for size_t.
33656         (PARAMS): Remove.  All uses removed.
33657         (ARRAY_CARDINALITY): Do not bother to #undef.
33658         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
33659         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
33660         Remove unnecessary parentheses.
33661         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
33662         Insert necessary parentheses.
33663         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
33664         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
33665
33666 2002-11-19  Bruno Haible  <bruno@clisp.org>
33667
33668         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
33669         * lib/mbswidth.h: Include <stddef.h>, for size_t.
33670
33671         * lib/mbswidth.h (PARAMS): Remove macro.
33672         (mbswidth, mbsnwidth): Use ANSI C function declarations.
33673         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
33674
33675         * lib/gcd.h (PARAMS): Remove macro.
33676         (gcd): Use ANSI C function declarations.
33677         * lib/gcd.c (gcd): Likewise.
33678
33679 2002-11-15  Bruno Haible  <bruno@clisp.org>
33680
33681         * lib/strcspn.c: Include <stddef.h>.
33682         (strcspn): Use ANSI C function declaration. Change return type to
33683         size_t. Use NULL.
33684         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
33685         (strpbrk): Use NULL.
33686         * lib/strpbrk.h (PARAMS): Remove macro.
33687         (strpbrk): Use ANSI C function declaration.
33688         * lib/strstr.c: Don't include <sys/types.h>.
33689         * lib/strstr.h (PARAMS): Remove macro.
33690         (strstr): Use ANSI C function declarations.
33691
33692 2002-11-14  Karl Berry  <karl@gnu.org>
33693
33694         * config/mkinstalldirs: `do' on separate line, instead of
33695         `for var; do'.
33696
33697 2002-11-06  Bruno Haible  <bruno@clisp.org>
33698
33699         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
33700         * lib/gcd.c (gcd): Likewise.
33701
33702 2002-11-05  Bruno Haible  <bruno@clisp.org>
33703
33704         * lib/gcd.h: New file, from gettext-0.11.5.
33705         * lib/gcd.c: New file, from gettext-0.11.5.
33706
33707 2002-11-05  Bruno Haible  <bruno@clisp.org>
33708
33709         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33710         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33711         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33712         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33713
33714         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
33715         <libintl.h>.
33716         * lib/makepath.c: Include gettext.h instead of <locale.h> and
33717         <libintl.h>.
33718
33719         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
33720         * lib/human.c: Include gettext.h instead of <libintl.h>.
33721         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
33722         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
33723         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
33724         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
33725         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
33726         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
33727         (textdomain): Remove definition.
33728         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
33729
33730         * lib/long-options.c: Remove include of <libintl.h> and definition of
33731         _.
33732         * lib/same.c: Remove include of <libintl.h> and definition of _.
33733
33734 2002-11-04  Owen Taylor  <otaylor@redhat.com>
33735
33736         * lib/config.charset: A few additions for Solaris.
33737
33738 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
33739
33740         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
33741         * lib/localcharset.c (locale_charset): Declare as extern "C".
33742
33743 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
33744
33745         * lib/config.charset: msdos in uk_UA uses CP1125.
33746
33747 2002-11-04  Bruno Haible  <bruno@clisp.org>
33748
33749         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
33750         * lib/strcase.h: New file, from GNU gettext-0.11.5.
33751         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
33752         * lib/strstr.h: New file, from GNU gettext-0.11.5.
33753         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
33754
33755 2002-11-04  Bruno Haible  <bruno@clisp.org>
33756
33757         * lib/localcharset.c (locale_charset): Don't return an empty string.
33758
33759 2002-11-04  Bruno Haible  <bruno@clisp.org>
33760
33761         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
33762         aliases.
33763
33764 2002-11-04  Bruno Haible  <bruno@clisp.org>
33765
33766         * lib/config.charset: Update for newest glibc. Add canonical names
33767         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
33768
33769 2002-11-04  Bruno Haible  <bruno@clisp.org>
33770
33771         * lib/config.charset: Add support for NetBSD.
33772
33773 2002-11-04  Bruno Haible  <bruno@clisp.org>
33774
33775         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
33776
33777 2002-11-01  Bruno Haible  <bruno@clisp.org>
33778
33779         * configure.in: Add AC_CONFIG_AUX_DIR call.
33780         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
33781         test/Makefile.
33782         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
33783
33784 2002-09-28  Karl Berry  <karl@gnu.org>
33785
33786         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
33787         installed automake until the next release, since changes have been
33788         made.
33789
33790 2002-09-25  Karl Berry  <karl@gnu.org>
33791
33792         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
33793         * lib/getopt*: copy from libc/posix.
33794         * lib/gettext.h: copy from gettext.
33795         * lib/.cppi-disable: add strdup.c, gettext.h.
33796
33797 2002-09-25  Karl Berry  <karl@gnu.org>
33798
33799         * config/srclist.txt: enable gettext.h check.
33800         * config/config.{guess,sub}: update from prep.
33801         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
33802                 from automake 1.6.3.
33803         See srclist*.
33804
33805 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
33806
33807         * regex.c (PATFETCH): Remove the translating fetch.
33808         (PATFETCH_RAW): Rename to PATFETCH.
33809         (set_image_of_range): New fun.
33810         (SET_RANGE_TABLE_WORK_AREA): Use it.
33811         (regex_compile): Don't translate the pattern chars so eagerly.
33812         Only do it when inserting an `exactn' bytecode or when handling
33813         a char-range.
33814         (mutually_exclusive_p): Avoid empty statement.
33815
33816 2002-07-06  Jim Meyering  <meyering@lucent.com>
33817
33818         * m4/README: Don't mention Makefile.am.in.
33819         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
33820
33821 2002-07-01  Jim Meyering  <meyering@lucent.com>
33822
33823         * lib/c-stack.c: Include sys/time.h.
33824         From Volker Borchert.
33825
33826 2002-06-26  Paul Eggert  <eggert@twinsun.com>
33827
33828         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
33829
33830 2002-06-26  Paul Eggert  <eggert@twinsun.com>
33831
33832         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
33833         New macro.  Use it uniformly instead of
33834         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
33835         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
33836         reported by Vin Shelton.
33837
33838 2002-06-22  Paul Eggert  <eggert@twinsun.com>
33839
33840         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
33841         Do not assume SA_SIGINFO behavior.
33842         Bug reported by Jim Meyering on NetBSD 1.5.2.
33843
33844 2002-06-22  Jim Meyering  <meyering@lucent.com>
33845
33846         * m4/c-stack.m4: New file, from diffutils-2.8.2.
33847         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
33848
33849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
33850         now that configure.ac uses AC_GNU_SOURCE.
33851         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
33852         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
33853
33854         Update to latest tools.  Suggestions from Paul Eggert.
33855         * m4/stdbool.m4: New file, from diffutils-2.8.2.
33856         * m4/gnu-source.m4: Update from diffutils-2.8.2.
33857         * m4/fnmatch.m4: Likewise.
33858         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
33859         to AC_HEADER_STDBOOL
33860
33861 2002-06-22  Jim Meyering  <meyering@lucent.com>
33862
33863         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
33864         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
33865
33866 2002-06-22  Jim Meyering  <meyering@lucent.com>
33867
33868         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
33869
33870         * lib/exitfail.c, exitfail.h: Likewise.
33871         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
33872
33873         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
33874         of fnmatch.h.
33875         (EXTRA_DIST): Add fnmatch_loop.c.
33876         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
33877
33878         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
33879         * lib/fnmatch.c: Update from diffutils-2.8.2.
33880         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
33881         * lib/fnmatch.h: Remove file.
33882
33883 2002-06-21  Jim Meyering  <meyering@lucent.com>
33884
33885         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
33886         * m4/mbrtowc.m4: Likewise.
33887
33888         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
33889         * m4/mbswidth.m4: Reflect name change:
33890         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
33891         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
33892
33893         * m4/lib-link.m4: Update from gettext-0.11.2.
33894         * m4/gettext.m4: Likewise.
33895
33896         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
33897         From Alfred M. Szmidt.
33898
33899 2002-06-18  Paul Eggert  <eggert@twinsun.com>
33900
33901         * lib/file-type.h: Report an error if neither S_ISREG nor
33902         S_IFREG is defined, instead of using a test specific to glibc
33903         2.2.  This should be safe, since POSIX requires S_ISREG and
33904         Unix Version 7 had S_IFREG.  We don't need to check for
33905         <sys/types.h> since we don't use any symbols that it defines.
33906
33907 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
33908
33909         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
33910         $@-t, so that each temporary file name is unique and valid in the first
33911         8 characters, for operation under DOS.
33912
33913 2002-06-15  Paul Eggert  <eggert@twinsun.com>
33914
33915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
33916
33917 2002-06-15  Jim Meyering  <meyering@lucent.com>
33918
33919         Work even with DJGPP 2.03, which lacks support for symlinks.
33920         From Richard Dawe.
33921         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
33922         is defined.
33923         * lib/lchown.c (S_ISLNK): Likewise.
33924
33925 2002-06-15  Jim Meyering  <meyering@lucent.com>
33926
33927         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
33928         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
33929         have been included before this file.
33930
33931 2002-06-14  Jim Meyering  <meyering@lucent.com>
33932
33933         * lib/file-type.h: Use the version from diffutils-2.8.2.
33934         * lib/file-type.c: Likewise.
33935
33936 2002-06-07  Jim Meyering  <meyering@lucent.com>
33937
33938         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
33939         They're needed at least for NetBSD 1.5.2.
33940         ($statxfs_includes): Include those same headers.
33941         ($statxfs_includes): Include sys/vfs.h if available.
33942         ($statxfs_includes): Likewise for sys/statvfs.h.
33943         Check for the following members in both structs statfs and statvfs:
33944         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
33945
33946 2002-06-01  Jim Meyering  <meyering@lucent.com>
33947
33948         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
33949         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
33950
33951 2002-05-28  Jim Meyering  <meyering@lucent.com>
33952
33953         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
33954         Reported by Volker Borchert.
33955
33956 2002-05-27  Jim Meyering  <meyering@lucent.com>
33957
33958         Fix a problem seen only on nonconforming systems whereby ls.c's
33959         use of localtime, and then of gettimeofday would cause trouble:
33960         the localtime call used to initialize rpl_gettimeofday's save
33961         mechanism would clobber ls's current local time information so
33962         that in any long listing the first file would always be listed
33963         with date 1970-01-01.  Analysis by Volker Borchert.
33964
33965         * lib/gettimeofday.c (localtime): Undefine.
33966         (rpl_localtime): New function.
33967
33968 2002-05-27  Jim Meyering  <meyering@lucent.com>
33969
33970         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
33971         localtime.
33972
33973         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
33974         use the replacement function; it wouldn't resolve at link time.
33975         Reported by Volker Borchert.
33976
33977 2002-05-22  Jim Meyering  <meyering@lucent.com>
33978
33979         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
33980         file-type.h.
33981         * lib/file-type.h: New file.
33982         * lib/file-type.c (file_type): New file/function.  Extracted from
33983         diffutils.
33984
33985 2002-04-30  Jim Meyering  <meyering@lucent.com>
33986
33987         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
33988
33989 2002-04-29  Paul Eggert  <eggert@twinsun.com>
33990
33991         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
33992
33993 2002-04-29  Paul Eggert  <eggert@twinsun.com>
33994
33995         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
33996         Do not check for alloca.h (no longer used) or stdbool.h (was never
33997         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
33998
33999 2002-04-29  Paul Eggert  <eggert@twinsun.com>
34000
34001         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
34002
34003 2002-04-29  Jim Meyering  <meyering@lucent.com>
34004
34005         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
34006         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
34007         Use AC_FUNC_STRNLEN here instead.
34008
34009         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
34010         With autoconf-2.53a, it's part of AC_PROG_CC.
34011
34012 2002-04-28  Paul Eggert  <eggert@twinsun.com>
34013
34014         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
34015         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
34016
34017 2002-04-28  Paul Eggert  <eggert@twinsun.com>
34018
34019         * lib/sig2str.h, lib/sig2str.c: New files.
34020         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
34021
34022 2002-04-28  Paul Eggert  <eggert@twinsun.com>
34023
34024         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
34025         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
34026         of 127, since 64 is the largest conceivable number for ancient
34027         nonstandard hosts.
34028         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
34029
34030 2002-04-28  Jim Meyering  <meyering@lucent.com>
34031
34032         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
34033
34034 2002-04-24  Jim Meyering  <meyering@lucent.com>
34035
34036         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
34037         (jm_PREREQ): Use it.
34038
34039         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
34040         mach/mach.h fcntl.h.
34041         Check for this function: setlocale.
34042
34043 2002-04-24  Jim Meyering  <meyering@lucent.com>
34044
34045         * lib/gettext.h: New file, from Gettext.
34046         * lib/Makefile.am (INCLUDES): Remove -I../intl.
34047         (libfetish_a_SOURCES): Add gettext.h.
34048
34049 2002-04-16  Jim Meyering  <meyering@lucent.com>
34050
34051         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
34052         ut_pid, ut_id, ut_exit.
34053
34054 2002-04-16  Jim Meyering  <meyering@lucent.com>
34055
34056         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
34057         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
34058         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
34059
34060 2002-04-12  Jim Meyering  <meyering@lucent.com>
34061
34062         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
34063         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
34064         existence of the getmntinfo function.  Needed for Darwin 5.3.
34065
34066         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
34067         This is necessary at least on Darwin 5.3.
34068
34069         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
34070         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
34071         strnlen.o in the library, and that makes some versions of ranlib
34072         object.
34073
34074 2002-04-12  Jim Meyering  <meyering@lucent.com>
34075
34076         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
34077
34078 2002-04-09  Jim Meyering  <meyering@lucent.com>
34079
34080         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
34081         to be more precise.  Rather than saying we're checking whether the
34082         function `works', say what we're testing.
34083         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
34084         Reported by Bruno Haible.
34085
34086 2002-03-10  Jim Meyering  <meyering@lucent.com>
34087
34088         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
34089         Suggestion from Santiago Vila.
34090
34091 2002-03-08  Jim Meyering  <meyering@lucent.com>
34092
34093         * lib/rename.c: Mention that this wrapper is needed also on
34094         mips-dec-ultrix4.4 systems.
34095
34096 2002-03-02  Jim Meyering  <meyering@lucent.com>
34097
34098         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
34099         not HAVE_CLOCK_SETTIME.
34100
34101 2002-02-27  Paul Eggert  <eggert@twinsun.com>
34102
34103         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
34104         Check for clock_settime.
34105
34106 2002-02-27  Paul Eggert  <eggert@twinsun.com>
34107
34108         * lib/nanosleep.h: Rename to....
34109         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
34110
34111         * lib/gettime.c: New file.
34112         * lib/settime.c: New file.
34113         * lib/stime.c: Remove.
34114
34115         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
34116         timespec.h.  Remove nanosleep.h.
34117
34118 2002-02-25  Paul Eggert  <eggert@twinsun.com>
34119
34120         * m4/acl.m4: New file.
34121         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
34122         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
34123
34124 2002-02-25  Paul Eggert  <eggert@twinsun.com>
34125
34126         * lib/acl.c, lib/acl.h: New files.
34127         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
34128
34129 2002-02-24  Jim Meyering  <meyering@lucent.com>
34130
34131         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
34132         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
34133         cause trouble.  Reported by Nelson Beebe.
34134
34135 2002-02-23  Paul Eggert  <eggert@twinsun.com>
34136
34137         * lib/path-concat.c (xpath_concat): Reorder code to pacify
34138         compilers that don't know that xalloc_die never returns.
34139
34140 2002-02-20  Jim Meyering  <meyering@lucent.com>
34141
34142         * lib/getdate.c: Regenerate using bison-1.33.
34143
34144 2002-02-17  Jim Meyering  <meyering@lucent.com>
34145
34146         * config/config.guess (main): Don't use `head -1'; it's no longer
34147         portable. Use `sed 1q' instead.
34148
34149 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
34150
34151         * m4/codeset.m4: Upgrade to gettext-0.11.
34152         * m4/gettext.m4: Upgrade to gettext-0.11.
34153         * m4/glibc21.m4: Upgrade to gettext-0.11.
34154         * m4/iconv.m4: Upgrade to gettext-0.11.
34155         * m4/isc-posix.m4: Upgrade to gettext-0.11.
34156         * m4/lcmessage.m4: Upgrade to gettext-0.11.
34157         * m4/lib-ld.m4: New file, from gettext-0.11.
34158         * m4/lib-link.m4: New file, from gettext-0.11.
34159         * m4/lib-prefix.m4: New file, from gettext-0.11.
34160         * m4/progtest.m4: Upgrade to gettext-0.11.
34161
34162 2002-02-15  Paul Eggert  <eggert@twinsun.com>
34163
34164         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
34165         (jm_PREREQ): Use it.
34166
34167 2002-02-15  Paul Eggert  <eggert@twinsun.com>
34168
34169         * lib/posixver.c, lib/posixver.h: New files.
34170         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
34171
34172 2002-02-02  Paul Eggert  <eggert@twinsun.com>
34173             Bruno Haible  <bruno@clisp.org>
34174
34175         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
34176         (fwrite_success_callback): New declaration.
34177         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
34178         print_unicode_char. Call failure callback instead of error.
34179         (fwrite_success_callback): New function.
34180         (exit_failure_callback): New function.
34181         (fallback_failure_callback): New function.
34182         (print_unicode_char): Call unicode_to_mb.
34183
34184 2002-01-26  Jim Meyering  <meyering@lucent.com>
34185
34186         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
34187         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
34188
34189 2002-01-26  Jim Meyering  <meyering@lucent.com>
34190
34191         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
34192
34193 2002-01-22  Paul Eggert  <eggert@twinsun.com>
34194
34195         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
34196
34197 2002-01-22  Jim Meyering  <meyering@lucent.com>
34198
34199         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
34200         Otherwise, some versions of automake would omit the rule that makes
34201         Makefile from Makefile.in.
34202
34203 2002-01-21  Paul Eggert  <eggert@twinsun.com>
34204
34205         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
34206         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
34207         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
34208         (memcoll): Set errno to zero if there is no error.
34209
34210         * lib/quotearg.c (quotearg_buffer_restyled):
34211         Fix bug with quoting buffers containing NUL when backslashing escapes.
34212         This bug was exposed by the other changes in this patch.
34213         (quotearg_n_options): New arg ARGSIZE.
34214         All callers changed.
34215         (quoting_options_from_style): New function.
34216         (quotearg_n_style): Use it.
34217         (quotearg_n_style_mem): New function.
34218
34219         * lib/quotearg.h (quotearg_n_style_mem): New function.
34220
34221 2002-01-19  Jim Meyering  <meyering@lucent.com>
34222
34223         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
34224         Remove useless quotes: DF_PROG="df".
34225         * m4/strnlen.m4: New file.
34226
34227 2002-01-16  Paul Eggert  <eggert@twinsun.com>
34228
34229         * lib/backupfile.c (ISDIGIT): Comment fix.
34230         * lib/getdate.y (ISDIGIT): Likewise.
34231         * lib/posixtm.c (ISDIGIT, year): Likewise.
34232         * lib/strverscmp.c (ISDIGIT): Likewise.
34233         * lib/userspec.c (ISDIGIT): Likewise.
34234
34235 2002-01-16  Jim Meyering  <meyering@lucent.com>
34236
34237         * lib/getdate.y: Add three semicolons, each just before a closing
34238         brace. Bison (as of version 1.31) no longer papers over that mistake.
34239
34240 2002-01-05  Jim Meyering  <meyering@lucent.com>
34241
34242         * lib/version-etc.c (version_etc_copyright): Update copyright year.
34243
34244 2001-12-19  Paul Eggert  <eggert@twinsun.com>
34245
34246         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
34247         not silently exit merely because the output buffer happens to
34248         have nothing pending.
34249
34250 2001-12-18  Paul Eggert  <eggert@twinsun.com>
34251
34252         See the big note in ../ChangeLog.
34253         * lib/human.c (suffixes): Prefer K to k for 1024.
34254         (generate_suffix_backwards): New function.
34255         (human_readable_inexact): Use it.
34256         * lib/xstrtol.c (__xstrtol): If there is no number but there
34257         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
34258         Accept 'K' as well as 'k'.
34259
34260 2001-12-15  Jim Meyering  <meyering@lucent.com>
34261
34262         * lib/regex.h (__restrict_arr): Update from libc.
34263
34264         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
34265         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
34266         (STREQ): Define.
34267
34268 2001-12-14  Jim Meyering  <meyering@lucent.com>
34269
34270         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
34271         Suggestion from Bruno Haible.
34272
34273 2001-12-10  Jim Meyering  <meyering@lucent.com>
34274
34275         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
34276         xrealloc, Instead, include "xalloc.h".
34277         (initbuffer): Don't cast xmalloc return value to char*.
34278         (readline): Reword comment.
34279         Don't cast xrealloc return value to char*
34280         Return NULL, not 0.
34281
34282 2001-12-09  Jim Meyering  <meyering@lucent.com>
34283
34284         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
34285         about `signed and unsigned type in conditional expression'.
34286         * lib/posixtm.c (posix_time_parse): Likewise.
34287
34288         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
34289
34290         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
34291         to avoid a pedantic warning.
34292
34293         * lib/getstr.c: Don't include assert.h.
34294         (getstr): Remove warning-evoking assertions.
34295         Return -1 if offset parameter is out of bounds.
34296         Change the type of a local from int to size_t.
34297
34298         * lib/strftime.c (my_strftime_localtime_r): Include this function
34299         definition in the `#if ! HAVE_TM_GMTOFF' block.
34300
34301         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
34302         Include xalloc.h instead.
34303
34304 2001-12-02  Jim Meyering  <meyering@lucent.com>
34305
34306         * lib/tempname.c: Don't declare getenv, thus reverting the change of
34307         2001-11-18.  It's no longer necessary, now that stdlib.h is always
34308         included.
34309
34310         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
34311         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
34312
34313 2001-11-30  Akim Demaille  <akim@epita.fr>
34314
34315         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
34316         before being defined.
34317
34318 2001-11-27  Paul Eggert  <eggert@twinsun.com>
34319
34320         * lib/quotearg.h (quotearg_n, quotearg_n_style):
34321         First arg is int, not unsigned.
34322         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
34323         (SIZE_MAX, UINT_MAX): New macros.
34324         (quotearg_n_options): Abort if N is negative.
34325         Avoid overflow check on hosts where size_t is 64 bits and int
34326         is 32 bits, as overflow is impossible there.
34327         Fix off-by-one typo that caused unnecessary reallocation.
34328
34329 2001-11-27  Jim Meyering  <meyering@lucent.com>
34330
34331         * lib/tempname.c: Merge with version from libc.
34332         * lib/regex.c: Likewise.
34333
34334         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
34335         systems for which STDC_HEADERS is 0, it was not included, resulting in
34336         a warning about an integer-to-pointer conversion problem with getenv.
34337         Reported by Volker Borchert.
34338
34339 2001-11-26  Jim Meyering  <meyering@lucent.com>
34340
34341         * lib/gtod.h: Remove file.
34342         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
34343         * lib/gettimeofday.c: Don't include gtod.h.
34344         (GTOD_init): Remove function.
34345         (rpl_gettimeofday): Do its job here instead, rather than aborting.
34346         Suggestion from Volker Borchert.
34347
34348 2001-11-23  Jim Meyering  <meyering@lucent.com>
34349
34350         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
34351         it.
34352         * lib/hash.c (struct hash_table): Define it here instead.
34353
34354 2001-11-22  Jim Meyering  <meyering@lucent.com>
34355
34356         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
34357
34358 2001-11-20  Jim Meyering  <meyering@lucent.com>
34359
34360         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
34361         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
34362
34363 2001-11-19  Jim Meyering  <meyering@lucent.com>
34364
34365         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
34366         directory.  Use "conftestXXXXXX" as the template.
34367         Suggestion from Paul Eggert.
34368
34369         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
34370         immediately, so the test doesn't mistakenly hit the max-open-files
34371         limit.
34372
34373 2001-11-18  Paul Eggert  <eggert@twinsun.com>
34374
34375         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
34376         (TEMPORARIES): New macro.
34377         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
34378         removes an artificial limitation (e.g. HP-UX 10.20, where
34379         TMP_MAX is 17576).
34380
34381 2001-11-18  Jim Meyering  <meyering@lucent.com>
34382
34383         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
34384
34385 2001-11-18  Jim Meyering  <meyering@lucent.com>
34386
34387         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
34388         on SunOS 4.
34389
34390         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
34391         files will be created before anything else.
34392
34393 2001-11-17  Paul Eggert  <eggert@twinsun.com>
34394
34395         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
34396         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
34397
34398 2001-11-17  Jim Meyering  <meyering@lucent.com>
34399
34400         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
34401         Prompted by a report from Bob Proulx.
34402
34403         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
34404         Instead, require UTILS_FUNC_MKSTEMP.
34405
34406 2001-11-17  Jim Meyering  <meyering@lucent.com>
34407
34408         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
34409         Now, that's done as part of AC_FUNC_STRTOD.
34410
34411 2001-11-17  Jim Meyering  <meyering@lucent.com>
34412
34413         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
34414         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
34415         rather than group writable.  Patch by Juan F. Codagnone.
34416
34417         * lib/readtokens.c: Remove explicit declarations of xmalloc and
34418         xrealloc, Instead, include "xalloc.h".
34419
34420         * lib/mountlist.c: Include unlocked-io.h after all system headers.
34421         Remove explicit declarations of xmalloc, xrealloc,
34422         and xstrdup.  Instead, include "xalloc.h".
34423
34424         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
34425         unlocked-io.h.
34426         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
34427         Likewise.
34428         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
34429
34430         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
34431         Reported by Padraig Brady.
34432
34433         * lib/mkstemp.c: #undef mkstemp.
34434         Include config.h.
34435         (rpl_mkstemp): Rename from mkstemp.
34436         Protoize.
34437
34438 2001-11-16  Jim Meyering  <meyering@lucent.com>
34439
34440         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
34441         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
34442         determine the amount of total physical memory, use pstat_getstatic.
34443         HPUX-11 doesn't define _SC_PHYS_PAGES.
34444         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
34445         If sysconf couldn't be used to determine the amount of available
34446         physical memory, use both pstat_getstatic and pstat_getdynamic.
34447         Based on a patch from Bob Proulx.
34448
34449 2001-11-10  Jim Meyering  <meyering@lucent.com>
34450
34451         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
34452         (jm_PREREQ): Use it.
34453
34454 2001-11-09  Jim Meyering  <meyering@lucent.com>
34455
34456         * m4/jm-macros.m4: Require autoconf-2.52f.
34457         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
34458         Use these AC_-prefixed names, not the AM_-prefixed ones.
34459
34460         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
34461
34462 2001-11-05  Jim Meyering  <meyering@lucent.com>
34463
34464         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
34465
34466 2001-11-04  Jim Meyering  <meyering@lucent.com>
34467
34468         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
34469         $DEFS.
34470
34471 2001-11-03  Jim Meyering  <meyering@lucent.com>
34472
34473         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
34474         of AC_DEFUN.
34475
34476         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
34477         know the name of the variable in the macro definition.
34478
34479 2001-11-03  Jim Meyering  <meyering@lucent.com>
34480
34481         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
34482         in argmatch_to_argument call.
34483
34484         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
34485         argument.
34486
34487         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
34488         e.g., a fault due to an attempt to free a NULL pointer.
34489
34490 2001-11-01  Jim Meyering  <meyering@lucent.com>
34491
34492         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
34493         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
34494
34495 2001-11-01  Jim Meyering  <meyering@lucent.com>
34496
34497         * lib/dirfd.c, lib/dirfd.h: New files.
34498         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
34499
34500         * lib/hash.c (hash_print) [TESTING]: Clean up.
34501
34502 2001-10-22  Paul Eggert  <eggert@twinsun.com>
34503
34504         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
34505         to avoid a warning if -Wall.
34506
34507 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
34508
34509         * README: New file
34510         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
34511         (per RMS's instructions, this is now the canonical source)
34512         * lgpl/, gpl/: New directories.
34513
34514 2001-10-21  Paul Eggert  <eggert@twinsun.com>
34515
34516         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
34517
34518 2001-10-21  Jim Meyering  <meyering@lucent.com>
34519
34520         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
34521         this code would end up calling gettext even in packages built
34522         with --disable-nls.
34523         * lib/getopt.c (_): Likewise.
34524         * lib/regex.c (_): Likewise.
34525
34526 2001-10-20  Paul Eggert  <eggert@twinsun.com>
34527
34528         * m4/error.m4 (jm_PREREQ_ERROR):
34529         Do not invoke AC_CHECK_FUNCS with strerror_r, as
34530         AC_FUNC_STRERROR_R does that.
34531         Check for strerror declaration.
34532
34533         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
34534         are supposed to have them these days.
34535         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
34536         Merge changes from latest Autoconf CVS.
34537         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
34538         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
34539         POSIX decided to standardize on the int flavor of strerror_r.
34540
34541 2001-10-20  Paul Eggert  <eggert@twinsun.com>
34542
34543         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
34544         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
34545         Use strerror_r that is only a macro, even if it is not a function.
34546         (strerror): Check for HAVE_DECL_STRERROR before declaring.
34547         (private_strerror): Use prototypes, not old-style function definition.
34548         (print_errno_message): New function.
34549         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
34550         char*-flavored one.
34551         (error_tail, error, error_at_line): Use it.
34552
34553 2001-10-11  Jim Meyering  <meyering@lucent.com>
34554
34555         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
34556         and quote_n (1, ... to avoid clobbering a buffer.
34557
34558 2001-10-05  Jim Meyering  <meyering@lucent.com>
34559
34560         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
34561         hash-pjw.h.
34562         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
34563         * lib/hash-pjw.h: New file.
34564
34565 2001-09-30  Jim Meyering  <meyering@lucent.com>
34566
34567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
34568         `struct fsstat' has the `f_fstypename' member.
34569         Use that to define FS_TYPE, which is now used to make
34570         the getfsstat link test tighter.
34571
34572 2001-09-30  Jim Meyering  <meyering@lucent.com>
34573
34574         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
34575         Include <sys/ucred.h>, for Apple Darwin.
34576         Include sys/mount.h and sys/fs_types.h only if available.
34577         (FS_TYPE): Define.
34578         (read_filesystem_list): Use FS_TYPE.
34579
34580 2001-09-29  Paul Eggert  <eggert@twinsun.com>
34581
34582         * lib/exclude.c (excluded_filename): 0 -> false, since it's
34583         a boolean context.
34584
34585 2001-09-29  Jim Meyering  <meyering@lucent.com>
34586
34587         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
34588         [one-argument getmntent function]): Include stdio.h before mntent.h.
34589         SunOS 4.1.x needs it for the declaration of `FILE'.
34590         Patch by Volker Borchert.
34591
34592         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
34593         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
34594         sys/fs_types.h, and make the link-test for getfsstat guard #include
34595         directives with appropriate #if HAVE_*_H tests so that we can
34596         detect getfsstat on Apple Darwin1.3.7 systems.
34597         Reported by Nelson Beebe.
34598         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
34599
34600 2001-09-28  Paul Eggert  <eggert@twinsun.com>
34601
34602         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
34603         #defines strtoimax.  Also treat the other strto* functions
34604         like strtoimax.
34605
34606         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
34607         Check for strtoul and strtoumax,
34608         as those declarations are made even in the signed case.
34609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
34610         Likewise, for strtol and strtoimax.
34611
34612 2001-09-28  Paul Eggert  <eggert@twinsun.com>
34613
34614         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
34615         #defines strtoimax.  Also treat the other strto* functions
34616         like strtoimax.
34617
34618         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
34619         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
34620         (strtoimax, strtoumax): Do not declare if already defined as a macro.
34621
34622 2001-09-26  Jim Meyering  <meyering@lucent.com>
34623
34624         Most macros in unlocked-io.h had the wrong number of arguments.
34625         * lib/gen-uio: New script.
34626         (USE_UNLOCKED_IO): Define to 1 if not already defined.
34627         * lib/unlocked-io.hin: Remove file.
34628         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
34629         rather than trying to embed it here.
34630         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
34631         Reported by Padraig Brady.
34632
34633 2001-09-25  Volker Borchert  <bt@teknon.de>
34634
34635         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
34636         `result'.
34637
34638 2001-09-24  Jim Meyering  <meyering@lucent.com>
34639
34640         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
34641
34642 2001-09-23  Jim Meyering  <meyering@lucent.com>
34643
34644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
34645         instead of the mere test for existence of mntent.h.  The latter
34646         would get a false-positive on AIX 3.4 systems.
34647         In the outer getmntent if-block, don't die if neither of the getmntent
34648         tests succeeds.  Instead, just fall through and continue with the
34649         remaining tests.
34650
34651 2001-09-23  Jim Meyering  <meyering@lucent.com>
34652
34653         * lib/mountlist.c: Remove useless parentheses in #if directives.
34654         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
34655         the deprecated MOUNTED symbol is no longer defined in mntent.h.
34656
34657 2001-09-22  Jim Meyering  <meyering@lucent.com>
34658
34659         * m4/gettext.m4: New file.  From gettext.
34660         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
34661         * m4/progtest.m4: Likewise
34662         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
34663         * m4/glibc21.m4: Likewise.
34664
34665         * m4/libintl.m4: Remove.  No longer used.
34666
34667 2001-09-22  Jim Meyering  <meyering@lucent.com>
34668
34669         * lib/localcharset.c: Update from latest gettext.
34670         * lib/config.charset: Likewise.
34671
34672 2001-09-20  Jim Meyering  <meyering@lucent.com>
34673
34674         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
34675         strtoimax.
34676         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
34677         strtoumax.
34678
34679 2001-09-20  Jim Meyering  <meyering@lucent.com>
34680
34681         * lib/xstrtol.c (strtoimax): Guard declaration with
34682         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
34683         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
34684         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
34685         (strtoumax): Likewise, for completeness (it wasn't necessary).
34686
34687 2001-09-17  Paul Eggert  <eggert@twinsun.com>
34688
34689         * lib/strtoimax.c (HAVE_LONG_LONG):
34690         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
34691         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
34692         to work around bug in IBM C compiler.
34693
34694 2001-09-17  Jim Meyering  <meyering@lucent.com>
34695
34696         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
34697         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
34698         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
34699         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
34700         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
34701         whenever the right hand side need not be expanded by the shell.
34702
34703 2001-09-16  Paul Eggert  <eggert@twinsun.com>
34704
34705         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
34706         library.  It's not correct, as some older glibcs are buggy.
34707         fnmatch wasn't fixed until glibc 2.2.
34708
34709         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
34710         special shell magic here.
34711
34712 2001-09-16  Jim Meyering  <meyering@lucent.com>
34713
34714         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
34715         * m4/jm-macros.m4: Require it.
34716
34717 2001-09-16  Jim Meyering  <meyering@lucent.com>
34718
34719         * lib/mkdir.c: New file.
34720
34721 2001-09-15  Jim Meyering  <meyering@lucent.com>
34722
34723         * m4/jm-macros.m4: Check for help2man.
34724
34725 2001-09-11  Jim Meyering  <meyering@lucent.com>
34726
34727         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
34728         The body, by Paul Eggert, was moved here from configure.in.
34729         * m4/jm-macros.m4: Require UTILS_HOST_OS.
34730
34731 2001-09-04  Paul Eggert  <eggert@twinsun.com>
34732
34733         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
34734         (jm_PREREQ): Use it.
34735
34736 2001-09-04  Paul Eggert  <eggert@twinsun.com>
34737
34738         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
34739         Use ssize_t, not int, to store result of readlink.
34740         Check for ssize_t overflow as well as size_t overflow,
34741         as POSIX says the result of readlink is implementation-defined
34742         when ssize_t overflows.
34743         Remove unnecessary cast to char*.
34744         Use free+malloc instead of realloc, as the storage doesn't need
34745         to be preserved and it's clearer and can be more efficient that way.
34746         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
34747         * lib/xreadlink.h (xreadlink): Update prototype.
34748
34749 2001-09-04  Paul Eggert  <eggert@twinsun.com>
34750
34751         * lib/xgetcwd.c: Revert some of the previous change; intead,
34752         fix the HAVE_GETCWD_NULL code to behave more like the
34753         !HAVE_GETCWD_NULL code used to.
34754
34755         Include "xalloc.h".
34756         (xgetcwd): Do not return NULL when memory is exhausted; instead,
34757         invoke xalloc_die.
34758
34759 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34760
34761         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
34762         sys/param.h, as pathmax.h includes them.
34763
34764 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34765
34766         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
34767         (jm_PREREQ_XGETCWD): New macro.
34768
34769         * m4/getcwd.m4: New file.
34770
34771 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34772
34773         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
34774         like the HAVE_GETCWD_NULL code.
34775         Include pathmax.h if not HAVE_GETCWD.
34776         Do not include xalloc.h.
34777         (INITIAL_BUFFER_SIZE): New symbol.
34778         Do not use xmalloc / xrealloc, since the caller is responsible for
34779         handling errors.  Preserve errno around `free' during failure.
34780         Do not overrun buffer when using getwd.
34781
34782 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34783
34784         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
34785         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
34786         getcwd (NULL, 0).
34787
34788 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34789
34790         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
34791         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
34792         spotted by Jim Meyering.
34793
34794 2001-09-03  Jim Meyering  <meyering@lucent.com>
34795
34796         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
34797         failure.
34798
34799 2001-09-02  Jim Meyering  <meyering@lucent.com>
34800
34801         * lib/error.c: Update from GNU libc.
34802
34803 2001-09-01  Jim Meyering  <meyering@lucent.com>
34804
34805         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
34806         Used by df.
34807
34808 2001-09-01  Jim Meyering  <meyering@lucent.com>
34809
34810         * lib/xreadlink.c: New file.
34811         * lib/xreadlink.h: New file.
34812         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
34813         xreadlink.h.
34814
34815         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
34816         doesn't conflict with sparc Solaris 7's definition in
34817         /usr/include/sys/int_types.h.
34818
34819         * lib/exclude.c: Use `""', not `<>' to #include non-system header
34820         files.
34821         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
34822         and strncasecmp as r-values.  Unixware didn't have declarations.
34823
34824 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34825
34826         * lib/xstrtol.h: Add copyright notice.
34827         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
34828         LONGINT_INVALID_SUFFIX_CHAR.
34829
34830 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34831
34832         * lib/xstrtol.c (strtoimax): New decl.
34833
34834 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34835
34836         * lib/xgetcwd.c: Don't include pathmax.h.
34837         Include stdlib.h and unistd.h if available.
34838         Include xalloc.h.
34839         (xmalloc, xstrdup, free): Remove decls.
34840         (xgetcwd): Don't assume sizes fit in unsigned.
34841         Check for overflow when computing sizes.
34842         Simplify reallocation code.
34843
34844 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34845
34846         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
34847         a directory's st_size can have an arbitrary value, so the old
34848         usage could waste an arbitrary amount of memory.  All uses
34849         changed.
34850         * lib/savedir.h: Update prototype.
34851
34852 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34853
34854         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
34855
34856         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
34857         old strtoimax.c.
34858
34859         Also, make the following further changes to make this file's
34860         configuration more similar to that of strtol.c:
34861         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
34862         (strtoumax, uintmax_t, strtoull, strtol): Remove.
34863         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
34864         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
34865         changed to signed values.
34866
34867         And make the following changes as well:
34868         Fix copyright notice, as 1999 was missing.
34869         (verify): New macro.
34870         (strtoimax): Check sizes at compile-time, not run-time.
34871         Prefer strtol to strtoll if both work.
34872         (main): Remove; it was not that useful and was a pain to maintain.
34873
34874         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
34875
34876 2001-08-31  Jim Meyering  <meyering@lucent.com>
34877
34878         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
34879         Use an initial, malloc'd, buffer of length 128 rather than
34880         a statically allocated one of length 1024.
34881
34882 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34883
34884         Simplify code, partly by assuming autoconf 2.52 semantics.
34885
34886         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
34887
34888         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
34889         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
34890         All uses removed.
34891         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
34892         Move AC_REQUIRE to next-to-top level, to avoid confusion.
34893         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
34894         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
34895         jm_AC_HEADER_INTTYPES_H.
34896         * m4/jm-macros.m4 (jm_MACROS): Likewise.
34897
34898         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
34899
34900         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
34901         Quote first arg of AC_DEFUN.
34902         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
34903         since they are needed to parse the include file even if we need
34904         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
34905         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
34906         but with opposite signedness.
34907
34908 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34909
34910         Merge 'exclude' changes from tar 1.13.22.
34911         This fixes one or two unlikely storage allocation overflow bugs,
34912         but doesn't change user-visible behavior otherwise.
34913
34914 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34915
34916         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
34917         (jm_PREREQ_EXCLUDE): New macro.
34918
34919 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34920
34921         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
34922         tm to be declared.
34923
34924 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34925
34926         * lib/hash.c: Remove '2001' from copyright notice.
34927
34928 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34929
34930         * lib/full-write.h: New file.
34931         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
34932         * lib/full-write.c: Correct credits, as cccp.c no longer
34933         exists and anyway it was so heavily changed from the old cccp
34934         code as to be unrecognizable.  Include full-write.h.
34935         (full_write) Return size_t, with short writes meaning failure.
34936         All callers changed.  This fixes a bug with large buffers
34937         on 64-bit hosts.
34938         * lib/utime.c: Include full-write.h.
34939
34940 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34941
34942         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
34943         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
34944         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
34945         Include if available.
34946         (<xalloc.h>): Include
34947         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
34948         (verify): New macro.  Use it to verify that EXCLUDE macros do not
34949         collide with FNM macros.
34950         (struct patopts): New struct.
34951         (struct exclude): Use it, as exclude patterns now come with options.
34952         (new_exclude): Support above changes.
34953         (new_exclude, add_exclude_file):
34954         Initial size must now be a power of two to simplify overflow checking.
34955         (free_exclude, fnmatch_no_wildcards): New function.
34956         (excluded_filename): No longer requires options arg, as the options
34957         are determined by add_exclude.  Now returns bool, not int.
34958         (excluded_filename, add_exclude):
34959         Add support for the fancy new exclusion options.
34960         (add_exclude, add_exclude_file): Now takes int options arg.
34961         Check for arithmetic overflow when computing sizes.
34962         (add_exclude_file): xrealloc might modify errno, so don't
34963         realloc until after errno might be used.
34964
34965         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
34966         New macros.
34967         (free_exclude): New decl.
34968         (add_exclude, add_exclude_file): Now takes int options arg.
34969         (excluded_filename): No longer requires options arg, as the options
34970         are determined by add_exclude.  Now returns bool, not int.
34971
34972 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34973
34974         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
34975
34976 2001-08-27  Jim Meyering  <meyering@lucent.com>
34977
34978         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
34979
34980         * lib/version-etc.c (N_): Remove definition.
34981         Revert most of last change.
34982         Instead, simply don't mark the `Copyright...' string for translation.
34983         Based on advice from Paul Eggert.
34984
34985         * lib/strtoxmax.c: Tweak comment.
34986
34987 2001-08-26  Jim Meyering  <meyering@lucent.com>
34988
34989         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
34990
34991         * m4/xstrtoimax.m4: New file.
34992         * m4/xstrtoumax.m4: Add comments explaining why we
34993         AC_REPLACE_FUNCS(strtol).
34994
34995 2001-08-26  Jim Meyering  <meyering@lucent.com>
34996
34997         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
34998         of copyright with `%s' so translators don't get an untranslated
34999         message in 2002.
35000         (COPYRIGHT_YEAR): Define.
35001         (version_etc): Use fprintf rather than fputs.
35002         Suggestion from Ulrich Drepper.
35003
35004         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
35005
35006         * lib/strtoll.c: New file, from GNU libc.
35007         * lib/xstrtoimax.c: New file.
35008
35009         * lib/xstrtol.h: Add xstrtoimax.
35010         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
35011         * lib/strtoimax.c: New file.  Likewise, but first define
35012         STRTOUXMAX_SIGNED.
35013
35014         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
35015         ...
35016         * lib/strtoxmax.c: ... then renamed to this.
35017
35018 2001-08-18  Paul Eggert  <eggert@twinsun.com>
35019
35020         * m4/inttypes.m4: Add AC_PREREQ(2.13).
35021         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
35022         (jm_AC_TYPE_INTMAX_T): New macro.
35023         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
35024
35025         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
35026
35027         * m4/longlong.m4: Renamed from ulonglong.m4.
35028         * m4/inttypes.m4: Renamed from inttypes_h.m4.
35029         * m4/uintmax_t.m4: Removed.
35030
35031 2001-08-13  Paul Eggert  <eggert@twinsun.com>
35032
35033         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
35034         Port to Solaris 8, where 'sed' requires a space after the 'r'
35035         command, and where sh dislikes "$/".  Clean up the spacing a bit.
35036         Redirect output to $tmp just once.
35037
35038 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
35039
35040         * lib/addext.c (<errno.h>): Include.
35041         (errno): Declare if not defined.
35042         (addext): Work correctly when pathconf returns -1 and leaves
35043         errno alone because there is no limit.  Also, work even if
35044         pathconf returns a value greater than SIZE_MAX.
35045
35046 2001-08-12  Jim Meyering  <meyering@lucent.com>
35047
35048         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
35049         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
35050         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
35051         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
35052         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
35053         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
35054         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
35055         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
35056         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
35057         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
35058         utime.m4, utimes.m4, xstrtoumax.m4:
35059         Quote the first argument in each use of AC_DEFUN.
35060
35061 2001-08-12  Jim Meyering  <meyering@lucent.com>
35062
35063         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
35064         Simply `return getcwd (NULL, 0);'.
35065         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
35066         Use 1300 as initial value for length, not PATH_MAX.
35067
35068         * lib/pathmax.h: Clean up cpp syntax.
35069
35070 2001-08-12  Jim Meyering  <meyering@lucent.com>
35071
35072         * lib/gettimeofday.c: New file.
35073         * lib/gtod.h: New file.
35074         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
35075
35076 2001-08-05  Jim Meyering  <meyering@lucent.com>
35077
35078         * m4/jm-macros.m4: Require autoconf-2.52.
35079
35080 2001-08-04  Jim Meyering  <meyering@lucent.com>
35081
35082         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
35083         stmt, to get in sync with glibc.
35084
35085 2001-08-03  Paul Eggert  <eggert@twinsun.com>
35086
35087         The following changes are from gettext 0.10.39 as maintained by
35088         Bruno Haible.
35089
35090         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
35091         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
35092         with inverted sense.  All uses changed.
35093
35094         * lib/mbswidth.c: Don't include <limits.h>.
35095         Include <stdlib.h> and <string.h> unconditionally.
35096         (iswcntrl, mbsinit, ISCNTRL): New macros.
35097         (mbsnwidth): Use K&R style function declarations.
35098         Don't bother checking for MB_LEN_MAX == 1, since the compiler
35099         can optimize it when MB_CUR_MAX == 1.
35100         The width of control characters is zero, not 1.
35101
35102 2001-08-03  Paul Eggert  <eggert@twinsun.com>
35103
35104         The following changes are from gettext 0.10.39 as maintained by
35105         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
35106
35107         * m4/codeset.m4: Upgrade to serial AM1.
35108         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
35109         all uses changed.  Quote first arg of AC_DEFUN.
35110         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
35111
35112         * m4/iconv.m4: Upgrade to serial AM2.
35113         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
35114         Add --with-libconv-prefix.
35115         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
35116         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
35117         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
35118         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
35119         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
35120
35121         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
35122         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
35123         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
35124         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
35125         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
35126         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
35127         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35128         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
35129         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
35130
35131         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
35132         string.h any more.
35133
35134         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
35135         not the default value.
35136
35137         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
35138         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
35139         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
35140         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
35141         Also check for iswcntrl, used for wcwidth fallback.
35142         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
35143         to Autoconf 2.13.
35144
35145 2001-08-03  Jim Meyering  <meyering@lucent.com>
35146
35147         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
35148         as it was in the original.  Reported by Paul Eggert.
35149
35150 2001-07-16  Jim Meyering  <meyering@lucent.com>
35151
35152         * m4/gettimeofday.m4: New file.
35153         Prompted by a report from Bernhard Baehr.
35154
35155 2001-07-15  Jim Meyering  <meyering@lucent.com>
35156
35157         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
35158         stuff. Now it's in ../Makefile.cfg.
35159
35160 2001-07-15  Jim Meyering  <meyering@lucent.com>
35161
35162         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
35163         (BUILT_SOURCES): Add unlocked-io.h.
35164         (io_functions): Define.
35165         (unlocked-io.h): New rule.
35166         (DISTCLEANFILES): Add unlocked-io.h.
35167         (all-local): Depend on unlocked-io.h, to ensure it is created.
35168
35169         * lib/unlocked-io.hin: New file
35170
35171         * lib/regex.c: Update from glibc.
35172
35173 2001-07-05  Jim Meyering  <meyering@lucent.com>
35174
35175         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
35176         recommendation.
35177         (libfetish_a_SOURCES): Put all .h files here instead.
35178         Remove a thus-exposed (better checks in automake) duplicate and
35179         two unnecessary .h files.
35180
35181 2001-07-04  Jim Meyering  <meyering@lucent.com>
35182
35183         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
35184         that generates jm-glibc-io.m4 so that it doesn't trigger any make
35185         distcheck failure.
35186
35187 2001-07-02  Jim Meyering  <meyering@lucent.com>
35188
35189         The following changes were prompted by suggestions from Bruno Haible.
35190
35191         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
35192         is now generated.
35193         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
35194         definition of EXTRA_DIST.
35195         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
35196         ensure that the generated file is created/updated whenever the list
35197         of $(unlocked_functions) is changed.
35198         (jm-glibc-io.m4): New rule.
35199         (unlocked-io.h): New rule -- currently unused.
35200
35201 2001-06-24  Jim Meyering  <meyering@lucent.com>
35202
35203         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
35204         unmatched right bracket, rather than kludging it with an extra,
35205         falsely-matching quote in a comment.  Patch by Akim Demaille.
35206
35207 2001-06-11  Jim Meyering  <meyering@lucent.com>
35208
35209         * lib/regex.c: Update from GNU libc.
35210
35211 2001-05-27  Jim Meyering  <meyering@lucent.com>
35212
35213         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
35214         Check for ut_type in struct utmp.
35215
35216 2001-05-27  Jim Meyering  <meyering@lucent.com>
35217
35218         * lib/readutmp.h (UT_TYPE): Define.
35219
35220 2001-05-24  Jim Meyering  <meyering@lucent.com>
35221
35222         * lib/argmatch.c: Include "quote.h".
35223         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
35224         quote function.  Reported by Göran Uddeborg.
35225
35226 2001-05-22  Jim Meyering  <meyering@lucent.com>
35227
35228         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
35229         now that we use the package-supplied version unconditionally.
35230         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
35231
35232 2001-05-21  Jim Meyering  <meyering@lucent.com>
35233
35234         * m4/regex.m4: Change a couple backticks to single quotes to avoid
35235         shell syntax errors.
35236
35237 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
35238
35239         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
35240
35241 2001-05-20  Paul Eggert  <eggert@twinsun.com>
35242
35243         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
35244         Don't bother to check library strftime, since
35245         we'll be using our own my_strftime function anyway.
35246         Define my_strftime instead of strftime.
35247
35248 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
35249
35250         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
35251         which is not yet declared.
35252
35253 2001-05-15  Jim Meyering  <meyering@lucent.com>
35254
35255         * m4/regex.m4: Use proper quoting so brackets appear in the test
35256         program.
35257         Reported by, and with help from, Bruno Haible.
35258
35259 2001-05-13  Jim Meyering  <meyering@lucent.com>
35260
35261         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
35262         undefined.
35263
35264 2001-05-11  Paul Eggert  <eggert@twinsun.com>
35265
35266         dirname code cleanup.  base_name now behaves more compatibly
35267         with POSIX basename when given file names that have trailing
35268         slashes, and similarly for dir_name.  Add new primitives
35269         base_len and dir_len.  Put the directory-name-related decls
35270         into dirname.h.
35271
35272         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
35273         * lib/backupfile.c (base_name): Likewise.
35274         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
35275         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
35276         * lib/makepath.c (strip_trailing_slashes): Likewise.
35277         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
35278         ISSLASH): Likewise.
35279         * lib/rename.c (strip_trailing_slashes): Likewise.
35280         * lib/same.c (base_name): Likewise.
35281         * lib/stripslash.c (ISSLASH): Likewise.
35282
35283         * lib/addext.c: Include <dirname.h> after size_t is defined.
35284         * lib/backupfile.c: Likewise.
35285
35286         * lib/addext.c (addext): Use base_len to trim redundant
35287         trailing slashes instead of doing it ourselves.
35288         But do not trim the last slash if it is not redundant.
35289
35290         * lib/backupfile.c (find_backup_file_name,
35291         max_backup_version): Use base_len instead of rolling it ourselves.
35292         Handle the case of "" and (on DOS) "C:" correctly.
35293
35294         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
35295         needed. Include <string.h>, <dirname.h>.
35296         (base_name): Allow file names ending in slashes, other than names
35297         that are all slashes.  In this case, return the basename followed
35298         by the slashes.  This is more general, and can be used in places
35299         where the original base_name purposely had an assertion failure.
35300         (base_len): New function.
35301
35302         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
35303         Do not include <assert.h>; no longer needed.
35304         Include xalloc.h.
35305         (memrchr): Remove decl.
35306         (dir_name_r): Remove.
35307         (dir_len): Renamed from dirlen.  All callers changed.
35308         Rewrite in terms of base_name, for simplicity and consistency.
35309         (dir_name): Never return NULL.  All callers changed.
35310         Do not include <stdlib.h> in test program; no longer needed.
35311         return 0; is fine for test program.
35312
35313         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
35314         New macros.
35315         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
35316
35317         * lib/path-concat.c (path_concat): Use base_len to compute
35318         base length, not strlen; this means we cannot rely on memcpy
35319         to null-terminate.
35320
35321         * lib/same.c (STREQ): Remove.
35322         (same_name): Handle the case where the basename ends in trailing '/'.
35323
35324         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
35325         a slash was stripped.  Do not strip the last slash after a
35326         file system prefix.
35327
35328 2001-05-11  Paul Eggert  <eggert@twinsun.com>
35329
35330         * lib/Makefile.am (libfetish_a_SOURCES):
35331         Add strftime.c, since we now compile it on all hosts.
35332
35333         * lib/strftime.c (my_strftime):
35334         Define to nstrftime if emacs, but only if my_strftime is not defined.
35335         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
35336         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
35337         Add one more extra argument: a nanoseconds value.
35338         All uses changed.
35339         (ns): New macro.
35340         (my_strftime function): Add %N format.
35341         (emacs_strftimeu): Renamed from emacs_strftime,
35342         with extra ut argument.
35343
35344 2001-05-09  Paul Eggert  <eggert@twinsun.com>
35345
35346         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
35347
35348 2001-04-21  Jim Meyering  <meyering@lucent.com>
35349
35350         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
35351         doesn't interfere.
35352
35353 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
35354
35355         * m4/ftruncate.m4: Check for chsize.
35356         Link with ftruncate.o unconditionally if ftruncate is missing.
35357         This was required when cross-compiling to i586-mingw32msvc.
35358
35359 2001-04-08  Jim Meyering  <meyering@lucent.com>
35360
35361         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
35362         recomputed; that's necessary when the offset spans a DST transition.
35363         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
35364
35365 2001-04-02  Jim Meyering  <meyering@lucent.com>
35366
35367         * lib/regex.h, regex.c: Update from GNU libc.
35368
35369 2001-03-24  Jim Meyering  <meyering@lucent.com>
35370
35371         * m4/jm-macros.m4: Require autoconf-2.49d.
35372
35373 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
35374
35375         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
35376
35377 2001-03-19  Paul Eggert  <eggert@twinsun.com>
35378
35379         * lib/version-etc.c (version_etc_copyright): Update to 2001.
35380
35381 2001-03-17  Jim Meyering  <meyering@lucent.com>
35382
35383         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
35384         now that the version in autoconf is equivalent.
35385         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
35386
35387         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
35388         Suggestion from Akim Demaille.
35389
35390         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
35391         (jm_PREREQ_TEMPNAME): New function.
35392
35393 2001-03-16  Paul Eggert  <eggert@twinsun.com>
35394
35395         * lib/tempname.c (uint64_t): Define to uintmax_t if
35396         not defined, and if UINT64_MAX is not defined.
35397         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
35398         Reported by John David Anglin.
35399
35400 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
35401
35402         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
35403         resolve alias if codeset is empty.
35404         * lib/config.charset (BeOS): Use wildcard syntax.
35405
35406 2001-03-13  Jim Meyering  <meyering@lucent.com>
35407
35408         * lib/path-concat.c (path_concat)
35409         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
35410         concatenating e.g., `C:' and `foo'.
35411         From Bruno Haible.
35412
35413 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
35414
35415         * lib/localcharset.c (locale_charset): Don't use
35416         setlocale(LC_CTYPE,NULL). Don't return NULL.
35417         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
35418
35419 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
35420
35421         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
35422         support for DOS/DJGPP.
35423
35424 2001-03-01  Paul Eggert  <eggert@twinsun.com>
35425
35426         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
35427         lacks mkstemp.  Compile our own tempname.c if we compile our own
35428         mkstemp.c, as mkstemp relies on tempname.
35429
35430 2001-03-01  Jim Meyering  <meyering@lucent.com>
35431
35432         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
35433         AH_VERBATIM really does output its argument verbatim.
35434
35435 2001-02-28  Paul Eggert  <eggert@twinsun.com>
35436
35437         * lib/Makefile.am (libfetish_a_SOURCES):
35438         Add dup-safer.c, fopen-safer.c.
35439         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
35440
35441         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
35442         * lib/unistd-safer.h: New files.
35443
35444 2001-02-25  Paul Eggert  <eggert@twinsun.com>
35445
35446         The mkstemp replacement is taken from glibc 2.2.2, with some
35447         portability fixes for use outside glibc, as follows:
35448
35449         * lib/tempname.c (struct_stat64): New macro.
35450         (direxists, __gen_tempname): Use it.
35451         This avoids a portability problem with Solaris 8.
35452
35453         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
35454         (<stddef.h>, <stdint.h>, <string.h>):
35455         Include only if STDC_HEADERS || _LIBC.
35456         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
35457         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
35458         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
35459         (__set_errno): Define this macro if <errno.h> doesn't.
35460         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
35461         Define these macros if <stdio.h> doesn't.
35462         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
35463         Define these macros if <sys/stat.h>
35464         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
35465         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
35466         __xstat64): Define if not _LIBC.
35467         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
35468         (__gen_tempname): Invoke gettimeofday only if
35469         HAVE_GETTIMEOFDAY || _LIBC;
35470         otherwise, fall back on plain "time".
35471         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
35472
35473         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
35474
35475         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
35476
35477 2001-02-18  Paul Eggert  <eggert@twinsun.com>
35478
35479         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
35480
35481 2001-02-17  Paul Eggert  <eggert@twinsun.com>
35482
35483         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
35484         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
35485         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
35486         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
35487
35488 2001-02-17  Paul Eggert  <eggert@twinsun.com>
35489
35490         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
35491         Remove workaround macros for hosts that have mbrtowc but not
35492         mbstate_t, as we now insist on proper declarations for both
35493         before using mbrtowc.
35494
35495 2001-02-17  Jim Meyering  <meyering@lucent.com>
35496
35497         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
35498         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
35499         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
35500         UnixWare 7.1.1.
35501
35502         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
35503         rather than AC_CACHE_VAL.
35504
35505 2001-02-17  Jim Meyering  <meyering@lucent.com>
35506
35507         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
35508         around included file name.
35509
35510         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
35511
35512         * lib/strftime.c: Update from GNU libc (the only changes were to
35513         comments).
35514
35515 2001-02-17  Jim Meyering  <meyering@lucent.com>
35516
35517         * lib/regex.c: Update from libc.
35518
35519 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
35520
35521         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
35522         clash.
35523
35524 2001-02-16  Paul Eggert  <eggert@twinsun.com>
35525
35526         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
35527         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
35528         Reported by Mark Hounschell via Paul Eggert.
35529
35530 2001-02-07  Jim Meyering  <meyering@lucent.com>
35531
35532         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
35533
35534 2001-02-05  Jim Meyering  <meyering@lucent.com>
35535
35536         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
35537         it includes the patch required for `large file' support with at least
35538         HP-UX's 10.20 /bin/cc.
35539
35540 2001-02-03  Jim Meyering  <meyering@lucent.com>
35541
35542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
35543         AS_IF, now that it works once again (mysteriously).
35544         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
35545
35546 2001-01-30  Jim Meyering  <meyering@lucent.com>
35547
35548         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
35549         * m4/chown.m4: Rename conftestchown to conftest.chown.
35550         * m4/rename.m4: s/conftestdir/conftest.d1/ and
35551         s/conftestdir2/conftest.d2/.
35552         * m4/utimes.m4: s/conftestdata/conftest.data/
35553         Inspired by Pavel Roskin's change in autoconf.
35554
35555 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
35556
35557         * lib/config.charset: Update for FreeBSD 4.2.
35558
35559 2001-01-27  Jim Meyering  <meyering@lucent.com>
35560
35561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
35562         a use of AS_IF.
35563         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
35564
35565 2001-01-26  Jim Meyering  <meyering@lucent.com>
35566
35567         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
35568         quotearg.c includes it.
35569
35570 2001-01-26  Jim Meyering  <meyering@lucent.com>
35571
35572         * lib/quotearg.c: Include stddef.h.
35573         * lib/quote.c: Include stddef.h.
35574         Reported by Axel Kittenberger.
35575
35576         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
35577         line in double quotes so that it evokes a better diagnostic.
35578         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
35579         Reported by Axel Kittenberger.
35580
35581 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
35582
35583         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
35584         as if it was a `charset'.
35585
35586 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
35587
35588         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
35589         has const.
35590
35591 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
35592
35593         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
35594         to avoid a warning.  Add back 'const' to inptr.
35595
35596 2001-01-20  Jim Meyering  <meyering@lucent.com>
35597
35598         Be sure that headers are checked before used in code compiled
35599         for the type checks.
35600         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
35601         In place of that, invoke jm_CHECK_ALL_TYPES.
35602         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
35603         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
35604         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
35605         The check for ssize_t was mistakenly run before the test for unistd.h.
35606
35607         The configure-time check for stdbool.h was missing.
35608         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
35609         (jm_PREREQ_HASH): New function.
35610
35611 2001-01-17  Jim Meyering  <meyering@lucent.com>
35612
35613         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
35614         for autoconf-2.49c.
35615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
35616
35617 2001-01-16  Jim Meyering  <meyering@lucent.com>
35618
35619         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
35620         From Bruno Haible.
35621
35622 2001-01-14  Jim Meyering  <meyering@lucent.com>
35623
35624         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
35625         foo and bar.  Create conftestdir/ in the script, not in the C code.
35626         Remove directories in the script, not in the C code.
35627         Remove conftestdir{,2} before trying to create the directory.
35628         Make the entire configure script fail if the mkdir fails.
35629
35630 2001-01-14  Jim Meyering  <meyering@lucent.com>
35631
35632         * lib/rename.c: New file.  From Volker Borchert.
35633         Include stdlib.h, string.h or strings.h, and xalloc.h.
35634         Use strip_trailing_slashes rather than open-coding it.
35635
35636 2001-01-03  Paul Eggert  <eggert@twinsun.com>
35637
35638         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
35639
35640 2001-01-03  Jim Meyering  <meyering@lucent.com>
35641
35642         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
35643         of local `inptr' to avoid warning with some system declarations of
35644         iconv.
35645
35646 2001-01-02  Volker Borchert  <bt@teknon.de>
35647
35648         * m4/rename.m4: New file.
35649         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
35650
35651 2001-01-01  Jim Meyering  <meyering@lucent.com>
35652
35653         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
35654         even on systems with utmpx.h.  It's necessary for the declaration of
35655         utmp's ut_user member.  Reported by Andreas Jaeger.
35656
35657         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
35658         available. They are required for the declarations of getgrgid and
35659         getpwuid resp.
35660         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
35661         Reported by Andreas Jaeger.
35662
35663 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
35664
35665         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
35666         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
35667         so `make install' also works in VPATH builds.
35668
35669 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
35670
35671         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
35672         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
35673         can be used in subdirectories.
35674
35675 2000-12-29  Paul Eggert  <eggert@twinsun.com>
35676
35677         * lib/modechange.c: Do not assume that mode_t uses the
35678         traditional octal encoding.  E.g. "chmod 1 FOO" should set
35679         the other-execute bit of FOO even if S_IXOTH != 1.
35680
35681         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
35682         WOTH, XOTH, ALLM): New macros.
35683         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
35684          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
35685         Use them.
35686         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
35687         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
35688         (mode_compile):
35689         No need to use uintmax_t; unsigned long is long enough.
35690         Don't bother to get suffix since we don't use it.
35691
35692 2000-12-26  Jim Meyering  <meyering@lucent.com>
35693
35694         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
35695         better with autoheader.
35696
35697 2000-12-24  Jim Meyering  <meyering@lucent.com>
35698
35699         * lib/hash.c (is_prime): Return explicit boolean values.
35700         (hash_get_first): Return NULL to appease Irix5.6's 89.
35701         Reported by Nelson Beebe.
35702
35703 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
35704
35705         * lib/localcharset.c (locale_charset): Add support for Win32.
35706
35707 2000-12-18  Paul Eggert  <eggert@twinsun.com>
35708
35709         * lib/physmem.h, lib/physmem.c: New files.
35710
35711         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
35712         (noinst_HEADERS): Add physmem.h.
35713
35714         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
35715         't' for compatibility with Solaris 8 sort.
35716
35717 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
35718
35719         * lib/config.charset: Add support for BeOS.
35720
35721 2000-12-17  Jim Meyering  <meyering@lucent.com>
35722
35723         * m4/dos.m4 (jm_AC_DOS): New file and macro.
35724         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
35725
35726 2000-12-16  Jim Meyering  <meyering@lucent.com>
35727
35728         This bug had a serious impact on chown: `chown N:M FILE' (for integer
35729         N and M) would have treated it like `chown N:N FILE'.
35730
35731         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
35732
35733 2000-12-16  Jim Meyering  <meyering@lucent.com>
35734
35735         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
35736         SHELLS_FILE to a file name that's useful on djgpp systems.
35737         Include stdlib.h.
35738         (ADDITIONAL_DEFAULT_SHELLS): Define.
35739         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
35740         Based mostly on a patch from Prashant TR.
35741
35742 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
35743
35744         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
35745         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
35746         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
35747
35748 2000-12-08  Andreas Schwab  <schwab@suse.de>
35749
35750         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
35751         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
35752
35753 2000-12-07  Jim Meyering  <meyering@lucent.com>
35754
35755         * lib/stripslash.c (ISSLASH): Define.
35756         (strip_trailing_slashes): Use ISSLASH rather than comparing against
35757         `/'.
35758         From Prashant TR.
35759
35760         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
35761         (dir_name_r): Declare this function as static.
35762         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
35763         manifest itself on a name containing a mix of slashes and
35764         backslashes.
35765         Make this function work with names starting with a DOS-style
35766         drive letter and colon prefix.
35767         (dir_name): Append `.' if necessary.
35768         Based mostly on patches from Prashant TR and Eli Zaretskii.
35769
35770         * lib/dirname.h (dir_name_r): Remove prototype.
35771
35772 2000-12-06  Paul Eggert  <eggert@twinsun.com>
35773
35774         * m4/off_t-format.m4: Remove this file.
35775         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
35776
35777 2000-12-06  Jim Meyering  <meyering@lucent.com>
35778
35779         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
35780         replacement strtoull, we may well need the replacement strtoul, too.
35781         Check for declarations of strtoul and strtoull.
35782         Check for strtol.  Mainly as a cue to cause automake to include
35783         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
35784         Check for limits.h -- strtol.c needs it.
35785
35786 2000-12-05  Jim Meyering  <meyering@lucent.com>
35787
35788         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
35789
35790 2000-12-04  Jim Meyering  <meyering@lucent.com>
35791
35792         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
35793         Also include memory.h, stdlib.h, unistd.h if appropriate.
35794         Reported by Andreas Jaeger (conflicting declaration of malloc).
35795
35796 2000-12-02  Jim Meyering  <meyering@lucent.com>
35797
35798         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
35799         * m4/jm-macros.m4 (jm_MACROS): require it.
35800
35801 2000-12-02  Jim Meyering  <meyering@lucent.com>
35802
35803         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
35804
35805 2000-12-01  Paul Eggert  <eggert@twinsun.com>
35806
35807         * lib/memrchr.c: Include <config.h> before any system include file.
35808
35809 2000-11-30  Jim Meyering  <meyering@lucent.com>
35810
35811         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
35812
35813 2000-11-30  Jim Meyering  <meyering@lucent.com>
35814
35815         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
35816
35817 2000-11-29  Paul Eggert  <eggert@twinsun.com>
35818
35819         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
35820
35821 2000-11-26  Jim Meyering  <meyering@lucent.com>
35822
35823         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
35824
35825 2000-11-22  Paul Eggert  <eggert@twinsun.com>
35826
35827         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
35828         size of (size_t) -1; it's not portable.
35829
35830 2000-11-17  Jim Meyering  <meyering@lucent.com>
35831
35832         * lib/strstr.c: Update from GNU libc.
35833
35834 2000-11-17  Akim Demaille  <akim@epita.fr>
35835
35836         * lib/obstack.h: Formatting changes.
35837         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
35838         prevent type checking.
35839         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
35840         cast the value to (void *): assigning a `foo *' to a `void *'
35841         variable is valid.
35842         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
35843
35844 2000-11-16  Jim Meyering  <meyering@lucent.com>
35845
35846         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
35847
35848 2000-11-11  Jim Meyering  <meyering@lucent.com>
35849
35850         * lib/error.c: Add a couple #includes, merging from GNU libc version.
35851
35852 2000-11-10  Jim Meyering  <meyering@lucent.com>
35853
35854         * lib/obstack.h: Update from GNU libc.
35855         * lib/obstack.c: Likewise.
35856
35857 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
35858
35859         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
35860
35861 2000-11-06  Paul Eggert  <eggert@twinsun.com>
35862
35863         * lib/getusershell.c (setusershell): Use rewind rather than
35864         fseek/fseeko, to avoid configuration hassles with fseeko.
35865         Don't bother opening SHELLS_FILE if shellstream is NULL;
35866         it's not necessary.
35867
35868 2000-11-05  Jim Meyering  <meyering@lucent.com>
35869
35870         * lib/makepath.h (make_dir): Declare.
35871         * lib/makepath.c (make_dir): Remove `static' attribute.
35872         Tweak a comment.
35873
35874 2000-11-04  Jim Meyering  <meyering@lucent.com>
35875
35876         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
35877
35878 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
35879
35880         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
35881         last one in a bucket, advance to the next bucket.
35882
35883 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
35884
35885         * lib/fnmatch.c: Do not comment out all the code if we are using
35886         the GNU C library, because in some cases we are replacing buggy
35887         code in the GNU C library itself.
35888
35889 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
35890
35891         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
35892         (regex_compile): Catch bogus \(\1\).
35893
35894 2000-10-30  Paul Eggert  <eggert@twinsun.com>
35895
35896         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
35897         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
35898         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
35899
35900 2000-10-30  Paul Eggert  <eggert@twinsun.com>
35901
35902         * lib/error.h, getline.h, modechange.h:
35903         Remove "2000" from Copyright line, as the file hasn't been
35904         changed this year other than in the copyright notice.
35905
35906         * lib/xalloc.h: Add "2000" to Copyright line, as this file
35907         was changed this year.
35908
35909 2000-10-29  Jim Meyering  <meyering@lucent.com>
35910
35911         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
35912         renaming.
35913         * m4/ls-mntd-fs.m4: Likewise
35914
35915 2000-10-29  Jim Meyering  <meyering@lucent.com>
35916
35917         * lib/xstat.in: Fix grammar in comment.
35918
35919 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
35920
35921         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
35922         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
35923         doesn't define __restrict_arr.
35924
35925 2000-10-28  Jim Meyering  <meyering@lucent.com>
35926
35927         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
35928         (jm_PREREQ_MEMCHR): New function.
35929
35930 2000-10-28  Jim Meyering  <meyering@lucent.com>
35931
35932         * lib/memchr.c: Update from libc.
35933         Adjust for portability:
35934         [HAVE_STDLIB_H]: Include stdlib.h.
35935         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
35936         Undef __memchr, too.
35937         [!weak_alias]: Define __memchr to memchr.
35938
35939         * lib/regex.c: Update from libc.
35940         * lib/regex.h: Likewise.
35941         * lib/getopt1.c: Likewise.
35942         * lib/memcmp.c: Likewise.
35943
35944         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
35945         Avoid using fseek, when possible -- it's broken by design.
35946         Patch by Ulrich Drepper.
35947
35948 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
35949
35950         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
35951         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
35952         Giving in to popular pressure to shut up the compiler with casts.
35953
35954 2000-10-26  Jim Meyering  <meyering@lucent.com>
35955
35956         * lib/strftime.c: Update from libc.
35957
35958 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
35959
35960         * regex.c: More `unsigned char' -> `re_char' changes.
35961         Also change several `int' into `re_wchar_t'.
35962         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
35963         (PUSH_FAILURE_POINTER): Don't cast any more.
35964         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
35965         We want GCC to complain, since this piece of code makes
35966         re_match non-reentrant, which *should* be fixed.
35967         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
35968         (EXTEND_BUFFER): Use RETALLOC.
35969         (SET_LIST_BIT): Don't cast.
35970         (re_wchar_t): New type.
35971         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
35972         that those two functions will always properly return.
35973         (IMMEDIATE_QUIT_CHECK): Cast to void.
35974         (analyse_first): Use recursion rather than an explicit stack.
35975         (re_compile_fastmap): Can't fail anymore.
35976         (re_search_2): Don't check re_compile_fastmap for failure.
35977         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
35978         Now also sets the new value (passed in a new argument).
35979         (re_match_2_internal): Use it.
35980         Also, use a new var `reg' of type size_t when looping through regs
35981         rather than reuse the inappropriate `mcnt'.
35982
35983 2000-10-25  Jim Meyering  <meyering@lucent.com>
35984
35985         * lib/obstack.c: Update from libc.
35986
35987 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
35988
35989         * regex.c (regex_compile): Change the way of handling a range from
35990         a char less than 256 to a char not less than 256.
35991
35992 2000-10-24  Andrew Innes  <andrewi@gnu.org>
35993
35994         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
35995         NT-Emacs only.
35996         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
35997         so that re_search functions only quit when callers expect them to.
35998
35999 2000-10-23  Jim Meyering  <meyering@lucent.com>
36000
36001         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
36002         wrong.  That set_locale call must not have any side effects.
36003         From Paul Eggert.
36004
36005 2000-10-22  Jim Meyering  <meyering@lucent.com>
36006
36007         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
36008         [CYCLIC]: Remove now-unused definition.
36009
36010         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
36011         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
36012         Suggestion from Ulrich Drepper.
36013
36014 2000-10-21  Jim Meyering  <meyering@lucent.com>
36015
36016         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
36017         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
36018         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
36019
36020 2000-10-21  Jim Meyering  <meyering@lucent.com>
36021
36022         * lib/dirname.c (memrchr): Declare if necessary.
36023         (dir_name): Remove the restriction that there be no
36024         trailing slashes.  Now, this code skips past them, effectively
36025         ignoring them.
36026         [TEST_DIRNAME] (main): New unit tests.
36027
36028         * lib/memrchr.c: New file from GNU libc.
36029         Undef __memrchr, too.
36030         [!weak_alias]: Define __memrchr to memrchr.
36031         Guard weak_alias use with `#ifdef weak_alias'.
36032
36033 2000-10-21  Jim Meyering  <meyering@lucent.com>
36034
36035         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
36036         (dir_name): Use dir_name_r.
36037         * lib/dirname.h (dir_name_r): Declare it.
36038
36039 2000-10-17  Jim Meyering  <meyering@lucent.com>
36040
36041         * lib/quote.h (PARAMS): Define and use.
36042         Reported by Akim Demaille.
36043
36044         * lib/getopt.c: Update from libc.
36045
36046 2000-10-16  Jim Meyering  <meyering@lucent.com>
36047
36048         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
36049         setlocale.
36050         From Jan Fedak.
36051
36052 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
36053
36054         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
36055
36056 2000-09-25  Jim Meyering  <meyering@lucent.com>
36057
36058         * lib/md5.h (rol): Define (from GnuPG).
36059
36060         * lib/sha.c: Give credit (GnuPG) where due.
36061         (M): Use rol rather than open-coding it.
36062         Add a FIXME comment.
36063
36064 2000-09-21  Jim Meyering  <meyering@lucent.com>
36065
36066         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
36067         Reported by Michael Stone.
36068
36069 2000-09-20  Jim Meyering  <meyering@lucent.com>
36070
36071         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
36072         (noinst_HEADERS): Add sha.h.
36073         Based on code from Scott G. Miller and from GnuPG.
36074
36075 2000-09-18  Jim Meyering  <meyering@lucent.com>
36076
36077         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
36078         LIBS. Otherwise, everyone ends up linking with -lelf for some
36079         configurations.
36080         Reported by Mike Stone.
36081
36082 2000-09-15  Jim Meyering  <meyering@lucent.com>
36083
36084         * lib/regex.c: Update from libc.
36085
36086 2000-09-10  Jim Meyering  <meyering@lucent.com>
36087
36088         * lib/getopt.c (_getopt_internal): Update from glibc.
36089
36090 2000-09-09  Jim Meyering  <meyering@lucent.com>
36091
36092         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
36093         think it should be used as a general replacement for isascii.
36094         * lib/fnmatch.c: Likewise.
36095         * lib/mbswidth.c: Likewise
36096         * lib/regex.c: Likewise.
36097
36098         Don't use atoi.
36099         * lib/userspec.c: Include sys/param.h and limits.h.
36100         Include xstrtol.h.
36101         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36102         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
36103         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
36104         UID, GID.  Check range.
36105
36106 2000-09-06  Jim Meyering  <meyering@lucent.com>
36107
36108         * lib/getopt.c (_getopt_internal): Update from glibc.
36109
36110 2000-08-30  Jim Meyering  <meyering@lucent.com>
36111
36112         * lib/strftime.c: Merge in changes from GNU libc.
36113
36114 2000-08-26  Jim Meyering  <meyering@lucent.com>
36115
36116         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
36117         * m4/fpending.m4: New file.
36118
36119 2000-08-26  Jim Meyering  <meyering@lucent.com>
36120
36121         * lib/closeout.c: Include "__fpending.h".
36122         (close_stdout_status): Return right away if there's nothing to flush.
36123
36124         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
36125         * lib/__fpending.c: New file.
36126         * lib/__fpending.h: New file.
36127
36128 2000-08-20  Jim Meyering  <meyering@lucent.com>
36129
36130         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
36131         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
36132         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
36133
36134 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
36135
36136         Improve fileutils installation on systems where running
36137         programs (like install) can't be unlinked.
36138         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
36139         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
36140
36141 2000-08-07  Paul Eggert  <eggert@twinsun.com>
36142
36143         Standardize on "memory exhausted" instead of "Memory exhausted"
36144         or "virtual memory exhausted".
36145         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
36146         "virtual memory exhausted".
36147         * lib/same.c (same_name): Invoke xalloc_die instead of printing
36148         our own message.
36149         * lib/userspec.c (parse_user_spec): Likewise.
36150         * lib/bumpalloc.h: comment fix
36151         * lib/same.c, userspec.c: Include xalloc.h.
36152
36153         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
36154         not char *const and pointing to a constant array.
36155         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
36156         (xrealloc): Comment fix.
36157
36158         * lib/userspec.c (parse_user_spec):
36159         Don't translate a message until just before returning,
36160         to avoid unnecessary translation.
36161
36162 2000-08-07  Jim Meyering  <meyering@lucent.com>
36163
36164         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
36165         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
36166         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
36167         getgroups.c, gethostname.c, getopt.h, group-member.c,
36168         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
36169         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
36170         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
36171         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
36172         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
36173         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
36174         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
36175         yesno.c: Back out Copyright date changes for each file with no change
36176         this year.  This eases coordination with other programs using the same
36177         source code modules.  From Paul Eggert.
36178
36179 2000-08-06  Paul Eggert  <eggert@twinsun.com>
36180
36181         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
36182         not char, for compatibility with glibc 2.1.3 strftime.c.
36183
36184 2000-08-03  Greg McGary  <greg@mcgary.org>
36185
36186         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
36187         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
36188         (EXTEND_BUFFER): Use them.
36189
36190 2000-08-01  Jim Meyering  <meyering@lucent.com>
36191
36192         * lib/dirname.c (ISSLASH): Define.
36193         (BACKSLASH_IS_PATH_SEPARATOR): Define.
36194         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
36195         both `\' and `/' may be use as path separators.
36196         Based on a patch from Prashant TR.
36197
36198 2000-07-31  Paul Eggert  <eggert@twinsun.com>
36199
36200         * lib/quotearg.c (quotearg_n_options): Don't make the initial
36201         slot vector a constant, since it might get modified.
36202
36203 2000-07-31  Jim Meyering  <meyering@lucent.com>
36204
36205         * lib/xmalloc.c: Use `virtual memory exhausted', not
36206         `Memory exhausted'.
36207         * lib/obstack.c (print_and_abort): Likewise.
36208
36209 2000-07-30  Paul Eggert  <eggert@twinsun.com>
36210
36211         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
36212         buffer, so that the caller can always quote one small
36213         component of a "memory exhausted" message in slot 0.
36214         From a suggestion by Jim Meyering.
36215
36216 2000-07-30  Jim Meyering  <meyering@lucent.com>
36217
36218         * lib/makepath.c (make_path): Quote the other instance, too.
36219
36220         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
36221         (STATIC_BUF_SIZE): Define.
36222         (quotearg_n_options): Use only statically allocated storage when
36223         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
36224         than STATIC_BUF_SIZE.
36225
36226 2000-07-29  Jim Meyering  <meyering@lucent.com>
36227
36228         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
36229         * lib/dirname.c (dir_name): Likewise.
36230
36231         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
36232         `/'.
36233
36234         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
36235         (dir_name): Assert that there are no trailing slashes.
36236
36237 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
36238
36239         * lib/mbswidth.h (mbswidth): Add a flags argument.
36240         (mbswidth): New declaration.
36241         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
36242         * lib/mbswidth.c (mbswidth): Add a flags argument.
36243         (mbsnwidth): New function.
36244
36245 2000-07-24  Jim Meyering  <meyering@lucent.com>
36246
36247         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
36248
36249 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36250
36251         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
36252
36253 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36254
36255         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
36256         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
36257         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
36258         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
36259         invoke multibyte primitives.
36260
36261 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36262
36263         * lib/quotearg.c:
36264         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
36265         so that mbstate_t is always defined.
36266
36267         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
36268         be 1 in at least one GCC installation, and this configuration
36269         error is likely to be common.  Ignoring MB_LEN_MAX hurts
36270         performance on hosts that have mbrtowc but have only unibyte
36271         locales, but I assume these hosts are rare.
36272
36273 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36274
36275         * lib/mbswidth.c (_XOPEN_SOURCE):
36276         Don't define; this causes problems on Solaris 7.
36277         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
36278
36279 2000-07-23  Jim Meyering  <meyering@lucent.com>
36280
36281         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
36282         too: getgrgid, getpwuid, getuid.
36283
36284 2000-07-23  Jim Meyering  <meyering@lucent.com>
36285
36286         * lib/basename.c (base_name): Add an assertion.
36287
36288 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
36289
36290         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
36291         shadow its mbsinit function.
36292
36293 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
36294
36295         * lib/mbswidth.h: New file.
36296         * lib/mbswidth.c: New file.
36297         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
36298         (noinst_HEADERS): Add mbswidth.h.
36299
36300 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
36301
36302         * lib/config.charset: Add support for FreeBSD. Improve support for
36303         HP-UX and IRIX 6.
36304
36305 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
36306
36307         * m4/mbswidth.m4: New file.
36308         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
36309
36310 2000-07-15  Jim Meyering  <meyering@lucent.com>
36311
36312         * lib/makepath.c: Include quote.h.
36313         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
36314         corresponding argument in a `quote (...)' call.
36315         Give better diagnostics.
36316
36317         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
36318         (noinst_HEADERS): Add quote.h.
36319
36320         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
36321         from tar's src/misc.c.
36322         * lib/quote.h: New file.  Prototypes for same.
36323
36324 2000-07-14  Paul Eggert  <eggert@twinsun.com>
36325
36326         From a suggestion by Bruno Haible.
36327         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
36328         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
36329         to decide whether to define the BeOS workaround macro;
36330         this adjusts to the change to AC_MBSTATE_T.
36331
36332 2000-07-14  Jim Meyering  <meyering@lucent.com>
36333
36334         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
36335         jm_AC_TYPE_UINTMAX_T.
36336
36337 2000-07-13  Paul Eggert  <eggert@twinsun.com>
36338
36339         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
36340
36341         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
36342         quotearg_buffer_restyled): Add support for
36343         clocale_quoting_style.  Undo previous change to
36344         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
36345         and "{RIGHT QUOTATION MARK}" msgids.
36346
36347 2000-07-10  Paul Eggert  <eggert@twinsun.com>
36348
36349         From a suggestion by Bruno Haible.
36350         * m4/mbstate_t.m4 (AC_MBSTATE_T):
36351         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
36352         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
36353         and mbstate_t, to a single-part test that simply defines mbstate_t.
36354         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
36355         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
36356
36357 2000-07-10  Jim Meyering  <meyering@lucent.com>
36358
36359         * m4/strerror_r.m4: Mirror the correction made in autoconf.
36360
36361         * m4/gnu-source.m4: Output to confdefs.h directly.
36362         Suggestion from Akim Demaille.
36363
36364 2000-07-09  Paul Eggert  <eggert@twinsun.com>
36365
36366         The old behavior of quoting `like this' doesn't look good with
36367         newer, ISO-style fonts.  See:
36368         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
36369
36370         Instead, quote "like this" by default.  Let the translator
36371         tailor the locale-specific quoting behavior by providing
36372         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
36373
36374         * lib/quotearg.c (N_): New macro.
36375         (gettext_default): New function.
36376         (quotearg_buffer_restyled): Use
36377         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
36378         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
36379
36380 2000-07-09  Jim Meyering  <meyering@lucent.com>
36381
36382         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
36383         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
36384
36385         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
36386         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
36387
36388 2000-07-09  Jim Meyering  <meyering@lucent.com>
36389
36390         * lib/Most files: Update copyright dates to include 2000.
36391
36392 2000-07-08  Jim Meyering  <meyering@lucent.com>
36393
36394         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
36395         if not defined.
36396         (xgethostname): Remove now-unnecessary #ifdef.
36397         Move declaration of `err' into loop where it's used.
36398
36399 2000-07-05  Paul Eggert  <eggert@twinsun.com>
36400         and Bruno Haible  <haible@clisp.cons.org>
36401
36402         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
36403         only if the test for an object-type mbstate_t fails.  This
36404         prevents us from mistakenly reporting that mbstate_t is a
36405         system object type after we "#define mbstate_t int" to work
36406         around its lack.
36407
36408 2000-07-05  Paul Eggert  <eggert@twinsun.com>
36409         and Bruno Haible  <haible@clisp.cons.org>
36410
36411         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
36412
36413 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
36414
36415         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
36416         to strerror_r.
36417         Include <ctype.h> for use of isalpha.
36418
36419 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
36420
36421         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
36422         by allocating a larger buffer. Test the gethostname return value for
36423         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
36424         returns an error and ENAMETOOLONG isn't defined.
36425
36426 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
36427
36428         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
36429         dimension.
36430
36431 2000-07-04  Jim Meyering  <meyering@lucent.com>
36432
36433         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
36434         of the deprecated AC_CHECKING.
36435
36436 2000-07-04  Jim Meyering  <meyering@lucent.com>
36437
36438         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
36439         Reported by Bruno Haible.
36440
36441 2000-07-04  Jim Meyering  <meyering@lucent.com>
36442
36443         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
36444         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
36445         lacks mbrtowc.
36446
36447 2000-07-03  Paul Eggert  <eggert@twinsun.com>
36448
36449         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
36450         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
36451
36452 2000-07-03  Paul Eggert  <eggert@twinsun.com>
36453         and Bruno Haible  <haible@clisp.cons.org>
36454
36455         * lib/quotearg.c (mbrtowc):
36456         Assign to *pwc, and return 1 only if result is nonzero.
36457         (iswprint): Use ISPRINT when substituting our own mbrtowc.
36458
36459 2000-07-03  Jim Meyering  <meyering@lucent.com>
36460
36461         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
36462
36463 2000-07-03  Jim Meyering  <meyering@lucent.com>
36464
36465         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
36466         This is necessary to get a definition of e.g., UTMP_FILE on
36467         HP-UX 10.20.
36468         From Bob Proulx.
36469
36470 2000-07-02  Jim Meyering  <meyering@lucent.com>
36471
36472         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
36473
36474         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
36475         AC_LIBOBJ(function_name).
36476         * m4/chown.m4: Likewise.
36477         * m4/fnmatch.m4: Likewise.
36478         * m4/ftruncate.m4: Likewise.
36479         * m4/getgroups.m4: Likewise.
36480         * m4/getline.m4: Likewise.
36481         * m4/group-member.m4: Likewise.
36482         * m4/jm-macros.m4: Likewise.
36483         * m4/lstat.m4: Likewise.
36484         * m4/malloc.m4: Likewise.
36485         * m4/memcmp.m4: Likewise.
36486         * m4/nanosleep.m4: Likewise.
36487         * m4/putenv.m4: Likewise.
36488         * m4/realloc.m4: Likewise.
36489         * m4/regex.m4: Likewise.
36490         * m4/stat.m4: Likewise.
36491         * m4/strftime.m4: Likewise.
36492
36493 2000-07-02  Jim Meyering  <meyering@lucent.com>
36494
36495         * lib/quotearg.c (mbstate_t): Don't define here.
36496
36497 2000-07-02  Jim Meyering  <meyering@lucent.com>
36498
36499         * lib/nanosleep.c (SIGCONT): Define if not already defined.
36500
36501 2000-07-01  Jim Meyering  <meyering@lucent.com>
36502
36503         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
36504
36505 2000-07-01  Jim Meyering  <meyering@lucent.com>
36506
36507         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
36508         problem.
36509
36510 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
36511
36512         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
36513         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
36514
36515 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
36516
36517         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
36518         per change in ../m4/ls-mntd-fs.m4.
36519         (read_filesystem_list): Ignore symbolic links.
36520
36521 2000-06-29  Jim Meyering  <meyering@lucent.com>
36522
36523         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
36524         for declaration of strcmp.
36525
36526         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
36527
36528         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
36529         Avoid warning by casting result to `char *' to remove `const'.
36530
36531 2000-06-28  Jim Meyering  <meyering@lucent.com>
36532
36533         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
36534         included by quotearg.c, for which we perform this test.  From
36535         Bruno Haible.
36536
36537 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
36538
36539         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
36540         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
36541         <utmpx.h> exists, put readutmp.o into LIBOBJS.
36542
36543 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
36544
36545         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
36546
36547 2000-06-26  Paul Eggert  <eggert@twinsun.com>
36548
36549         savedir now sets errno on failure and invokes xmalloc to get memory.
36550         Fix a couple of other minor bugs while we're at it.
36551
36552         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
36553         (NAMLEN): Remove macro.
36554         (malloc, realloc): Remove decls.
36555         (stpcpy): Likewise.
36556         ("xalloc.h"): Include.
36557         (NAME_SIZE_DEFAULT): New macro.
36558         (savedir): Use xmalloc / xrealloc to allocate memory.
36559         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
36560         Skip "" directory entries.
36561         Use strlen to calculate directory entry length, since the old method
36562         is rarely used these days and isn't worth supporting.
36563         Don't use a pointer after freeing it.
36564         Check for integer overflow when calculating allocation size.
36565         Use memcpy to copy entries, instead of stpcpy.
36566         Set errno properly when returning NULL.
36567         Check for readdir error.
36568
36569 2000-06-26  Jim Meyering  <meyering@lucent.com>
36570
36571         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
36572
36573 2000-06-25  Jim Meyering  <meyering@lucent.com>
36574
36575         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
36576         Linux header bug when _XOPEN_SOURCE is defined to 500.
36577
36578 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
36579
36580         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
36581         deficiency.
36582
36583 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
36584
36585         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
36586         Include xalloc.h.
36587         Don't include <stdlib.h>.  Don't declare malloc, realloc.
36588
36589 2000-06-24  Jim Meyering  <meyering@lucent.com>
36590
36591         * m4/strerror_r.m4: Revive this file -- to try out an experimental
36592         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
36593         for which strerror does return char*, but which lacks a conveniently
36594         accessible declaration of the function.  If the compile-test says
36595         strerror_r doesn't work, then resort to a `run'-test that works on
36596         BeOS and segfaults on DEC Unix.
36597
36598 2000-06-24  Jim Meyering  <meyering@lucent.com>
36599
36600         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
36601
36602 2000-06-23  Paul Eggert  <eggert@twinsun.com>
36603
36604         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
36605         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
36606
36607 2000-06-23  Paul Eggert  <eggert@twinsun.com>
36608
36609         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
36610         (mbrtowc, mbstate_t): Define substitutes if
36611         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
36612         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
36613         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
36614
36615 2000-06-23  Jim Meyering  <meyering@lucent.com>
36616
36617         * m4/afs.m4: Add missing AC_MSG_RESULT.
36618         Reported by Bruno Haible.
36619
36620         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
36621         Suggestion from Bruno Haible.
36622
36623 2000-06-23  Jim Meyering  <meyering@lucent.com>
36624
36625         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
36626
36627 2000-06-21  Jim Meyering  <meyering@lucent.com>
36628
36629         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
36630
36631 2000-06-21  Jim Meyering  <meyering@lucent.com>
36632
36633         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
36634         (noinst_HEADERS): Add getstr.h.
36635
36636         * lib/getline.c (getstr): Move into a separate file.
36637         * lib/getstr.c (getstr): New file, extracted from getline.c, with
36638         the following changes: new parameter, delim2; both delim[12]
36639         parameters have type `int', not `char'.  The latter would lose
36640         with 8-bit delimiters.
36641         * lib/getstr.h: New file.
36642
36643 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
36644
36645         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
36646         than 1024, return a memory chunk of least possible size, instead
36647         of size PATH_MAX + 2. In the loop, increment the size proportionally.
36648         Use free/xmalloc instead of xrealloc to avoid copying for very long
36649         paths.
36650
36651 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
36652
36653         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
36654         the empty string.
36655
36656 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
36657
36658         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
36659         address, not strdup.  Include <stdlib.h> and don't declare free().
36660
36661 2000-06-19  Jim Meyering  <meyering@lucent.com>
36662
36663         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
36664
36665 2000-06-18  Jim Meyering  <meyering@lucent.com>
36666
36667         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
36668
36669         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
36670         `checking whether...' message to be consistent with that of the
36671         lstat test.
36672
36673 2000-06-18  Jim Meyering  <meyering@lucent.com>
36674
36675         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
36676         Besides, these days every porting target provides a mkdir function.
36677
36678         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
36679         needed. (this snippet comes from src/system.h).
36680
36681 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
36682
36683         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
36684
36685 2000-06-15  Paul Eggert  <eggert@twinsun.com>
36686
36687         * lib/human.c (adjust_value): New function.
36688         (human_readable_inexact): Apply rounding style even when
36689         printing approximate values.
36690
36691 2000-06-14  Paul Eggert  <eggert@twinsun.com>
36692
36693         * lib/human.c (human_readable_inexact): Allow an input block
36694         size that is not a multiple of the output block size, and vice versa.
36695         Reported by Piergiorgio Sartor.
36696
36697 2000-06-14  Paul Eggert  <eggert@twinsun.com>
36698
36699         * lib/getdate.y (get_date): Apply relative times after time
36700         zone indicator, not before.  Reported by Todd A. Jacobs.
36701
36702 2000-06-13  Jim Meyering  <meyering@lucent.com>
36703
36704         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
36705
36706         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
36707
36708 2000-06-12  Paul Eggert  <eggert@twinsun.com>
36709
36710         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
36711
36712 2000-06-12  Jim Meyering  <meyering@lucent.com>
36713
36714         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
36715         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
36716         optional argument.
36717         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
36718         the optional argument, `lib'.
36719
36720 2000-06-08  Jim Meyering  <meyering@lucent.com>
36721
36722         * m4/largefile.m4: Remove file (now that it's part of autoconf).
36723
36724 2000-06-04  Paul Eggert  <eggert@twinsun.com>
36725
36726         Rewrite largefile configuration so that we don't need to run
36727         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
36728         AC_CANONICAL_HOST in configure.in -- jmm]
36729
36730         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
36731         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
36732         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
36733         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
36734         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
36735         All uses changed.
36736         Instead of inspecting the output of getconf, try to compile the
36737         test program without and with the macro definition.
36738         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
36739         for getconf.  Instead, check for the needed flags by compiling
36740         test programs.
36741
36742 2000-06-04  Paul Eggert  <eggert@twinsun.com>
36743
36744         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
36745
36746 2000-06-04  Jim Meyering  <meyering@lucent.com>
36747
36748         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
36749         SunOS 4.1.4 for which gid_t is an unsigned type.
36750
36751 2000-06-03  Jim Meyering  <meyering@lucent.com>
36752
36753         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
36754         now that autoconf requires that.
36755
36756         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
36757         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
36758         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
36759
36760 2000-06-03  Jim Meyering  <meyering@lucent.com>
36761
36762         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
36763
36764 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
36765
36766         * m4/glibc21.m4: New file.
36767         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
36768
36769 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
36770
36771         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
36772         newer, don't install charset.alias.
36773         * lib/config.charset: Change the Linux/glibc rules so they become empty
36774         on glibc-2.1 or newer.
36775
36776 2000-06-02  Jim Meyering  <meyering@lucent.com>
36777
36778         * lib/mountlist.c: Back out last change.  Instead, do this...
36779         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
36780         me_dummy member using the same `ignore'-testing code.
36781         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
36782         fs_type strings.
36783         From Mark D. Roth.
36784
36785 2000-05-29  Jim Meyering  <meyering@lucent.com>
36786
36787         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
36788         mounts with the `ignore' attribute.  Based on a patch from
36789         Mark D. Roth.
36790
36791 2000-05-28  Jim Meyering  <meyering@lucent.com>
36792
36793         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
36794         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36795         * m4/stat.m4: Likewise.
36796         * m4/lstat.m4: Likewise.
36797         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
36798
36799         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
36800         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
36801
36802 2000-05-26  Jim Meyering  <meyering@lucent.com>
36803
36804         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
36805
36806 2000-05-24  Jim Meyering  <meyering@lucent.com>
36807
36808         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
36809         autoconf requires that.
36810         * m4/lib-check.m4: Likewise.
36811         * m4/jm-macros.m4: Likewise.
36812         * m4/strftime.m4: Likewise.
36813
36814         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
36815         AC_CHECK_DECLS, now that autoconf requires that.
36816
36817 2000-05-22  Jim Meyering  <meyering@lucent.com>
36818
36819         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36820         * m4/lstat.m4: Likewise.
36821
36822 2000-05-22  Jim Meyering  <meyering@lucent.com>
36823
36824         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
36825
36826 2000-05-20  Jim Meyering  <meyering@lucent.com>
36827
36828         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
36829         (jm_PREREQ): Use it.
36830
36831 2000-05-18  Jim Meyering  <meyering@lucent.com>
36832
36833         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
36834         back, too, since it may have been modified by allocate_entry.
36835         (hash_delete): Rewrite to use neither the assignment operator
36836         nor the comma operator in an if-expression.
36837
36838 2000-05-15  Paul Eggert  <eggert@twinsun.com>
36839
36840         * lib/closeout.c:
36841         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
36842         Remove; no longer needed.
36843         "quotearg.h": Add include.
36844         (file_name): Do not bother to explicitly initialize to NULL; it's less
36845         efficient on some hosts.
36846         (close_stdout_status): Remove test as to whether stdout was already
36847         closed; it breaks for the case "echo x | sort >&-".
36848         Quote file name colons.
36849         Do not assume that _("write error") lacks format strings.
36850
36851 2000-05-15  Jim Meyering  <meyering@lucent.com>
36852
36853         * lib/version-etc.c (version_etc_copyright): Update the copyright
36854         string used in all --version output.
36855
36856 2000-05-14  Jim Meyering  <meyering@lucent.com>
36857
36858         * lib/closeout.c (close_stdout_set_file_name): New function.
36859         (close_stdout_status): Use new file-scoped global.
36860         Return right away if fstat says the stdout file descriptor is invalid.
36861         * lib/closeout.h (close_stdout_set_file_name): Declare.
36862
36863 2000-05-10  Jim Meyering  <meyering@lucent.com>
36864
36865         * lib/closeout.c [default_exit_status]: New file-scoped variable.
36866         (close_stdout_set_status): New function.
36867         * lib/closeout.h (close_stdout_set_status): Declare.
36868
36869 2000-05-09  Jim Meyering  <meyering@lucent.com>
36870
36871         * m4/gettext.m4: Rename this...
36872         * m4/libintl.m4: ...to this.
36873
36874 2000-05-08  Jim Meyering  <meyering@lucent.com>
36875
36876         * lib/long-options.c: Don't include closeout.h.
36877         (parse_long_options): Don't call close_stdout for --version.
36878
36879 2000-05-06  Paul Eggert  <eggert@twinsun.com>
36880
36881         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
36882         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
36883         2.1.3 bug.  This avoids a clash when files like regex.c define
36884         _GNU_SOURCE.
36885
36886 2000-05-06  Jim Meyering  <meyering@lucent.com>
36887
36888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
36889         (AC_REPLACE_FUNCS): Add strnlen.
36890
36891         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
36892         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
36893
36894         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
36895         AC_SEARCH_LIBS call for nanosleep.
36896         (LIB_NANOSLEEP): Set and AC_SUBST.
36897
36898 2000-05-06  Jim Meyering  <meyering@lucent.com>
36899
36900         * lib/strnlen.c: Undefine __strnlen and strnlen.
36901         [!weak_alias]: Define __strnlen to strnlen.
36902
36903         * lib/atexit.c: New file, from libiberty.
36904
36905 2000-05-06  Jim Meyering  <meyering@lucent.com>
36906
36907         * lib/closeout.c (close_stdout_status): Also check for errors on the
36908         stderr stream.
36909
36910 2000-05-05  Jim Meyering  <meyering@lucent.com>
36911
36912         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
36913         AC_SEARCH_LIBS call for clock_gettime.
36914         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
36915
36916         * m4/search-libs.m4: Update from autoconf.
36917
36918         su doesn't work on Solaris 2.6.
36919         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
36920         <shadow.h>.  Reported by Dragos Harabor.
36921
36922 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
36923
36924         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
36925         memcpy instead of xmalloc, xrealloc, path_concat.
36926         (locale_charset): Treat empty environment variables as absent.
36927         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
36928
36929 2000-05-04  Jim Meyering  <meyering@lucent.com>
36930
36931         * lib/getopt.c: Update from glibc.
36932         * lib/obstack.c: Likewise.
36933         * lib/obstack.h: Likewise.
36934         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
36935         file
36936
36937         * lib/regex.h: Likewise.
36938         * lib/strndup.c: Likewise.
36939         * lib/strnlen.c: New file, from glibc.
36940
36941 2000-05-03  Jim Meyering  <meyering@lucent.com>
36942
36943         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
36944
36945 2000-05-02  Paul Eggert  <eggert@twinsun.com>
36946
36947         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
36948         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
36949         compile-time test, rather than inspecting host and OS, to
36950         decide whether to define _LARGEFILE_SOURCE.
36951
36952 2000-05-01  Jim Meyering  <meyering@lucent.com>
36953
36954         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
36955
36956         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
36957         Based on a patch from Bruno Haible.
36958
36959 2000-05-01  Jim Meyering  <meyering@lucent.com>
36960
36961         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
36962
36963 2000-04-29  Jim Meyering  <meyering@lucent.com>
36964
36965         * lib/path-concat.c: Declare strdup only if it's not defined.
36966         * lib/canon-host.c: Likewise.
36967
36968 2000-04-28  Jim Meyering  <meyering@lucent.com>
36969
36970         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
36971         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
36972         is included first, then limits.h is included by locale.h by libintl.h.
36973         From John David Anglin.
36974
36975 2000-04-25  Jim Meyering  <meyering@lucent.com>
36976
36977         * lib/makepath.c (S_IRWXUGO): Define.
36978         (make_path): Always perform explicit chmod if MODE specifies any
36979         of the `special' permission bits.  Prompted by a bug report against
36980         install from Mate Wierdl and Joost van Baal.
36981
36982 2000-04-18  Jim Meyering  <meyering@lucent.com>
36983
36984         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
36985         (jm_PREREQ): Use it.
36986
36987 2000-04-18  Jim Meyering  <meyering@lucent.com>
36988
36989         * lib/README: New file.
36990
36991         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
36992         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
36993
36994 2000-04-17  Jim Meyering  <meyering@lucent.com>
36995
36996         Get it right :-)
36997         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
36998         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
36999         Suggestion from Akim Demaille.
37000
37001 2000-04-17  Jim Meyering  <meyering@lucent.com>
37002
37003         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
37004         the definition of it to rpl_strftime also defined-away the system's
37005         declaration.
37006
37007 2000-04-15  Jim Meyering  <meyering@lucent.com>
37008
37009         Use `C' to denote so-called `contiguous' files, the same way
37010         that tar does.
37011         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
37012         (ftypelet): Use S_ISCTG.
37013         From Michael Deutschmann.
37014
37015 2000-04-14  Jim Meyering  <meyering@lucent.com>
37016
37017         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
37018         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
37019         clobbered.
37020
37021 2000-04-14  Jim Meyering  <meyering@lucent.com>
37022
37023         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
37024
37025 2000-04-13  Jim Meyering  <meyering@lucent.com>
37026
37027         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
37028         AH_VERBATIM to insert required #ifndef into config.h.in.
37029         Suggestion from Akim Demaille.
37030
37031 2000-04-12  Jim Meyering  <meyering@lucent.com>
37032
37033         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
37034         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
37035         Christian Krackowizer.
37036
37037         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
37038         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
37039         (AC_SYS_LARGEFILE): Require.
37040         (AM_C_PROTOTYPES): Require.
37041
37042 2000-04-08  Jim Meyering  <meyering@lucent.com>
37043
37044         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
37045         names don't conflict.  Reported by Eli Zaretskii.
37046
37047 2000-04-07  Jim Meyering  <meyering@lucent.com>
37048
37049         * lib/putenv.c: Move inclusion of errno.h so it follows that of
37050         sys/types.h, to work around system header problems on AIX 3.2.5.
37051         From Bruno Haible.
37052
37053 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
37054
37055         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
37056         bug.  Deal with the different error behavior of Irix iconv.
37057
37058 2000-04-05  Paul Eggert  <eggert@twinsun.com>
37059
37060         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
37061         IRIX if the installer said otherwise.
37062
37063 2000-04-05  Jim Meyering  <meyering@lucent.com>
37064
37065         Portability tweaks required for ultrix4.3.
37066         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
37067         (jm_CHECK_DECLS): Add getutent to the list of functions.
37068         (_jm_DECL_HEADERS): Add utmpx.h.
37069         From John David Anglin.
37070
37071         * m4/strftime.m4: Back out the 2000-04-02 change.
37072         Instead of that change, simply undefine putenv in the test program.
37073
37074 2000-04-05  Jim Meyering  <meyering@lucent.com>
37075
37076         Portability tweaks required for ultrix4.3.
37077         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
37078         getutent.
37079         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
37080         * lib/canon-host.c: Declare strdup.
37081         * lib/path-concat.c: Likewise.
37082         From John David Anglin.
37083
37084 2000-04-04  Jim Meyering  <meyering@lucent.com>
37085
37086         Be more DOS 8.3-friendly.
37087         * lib/ref-add.sin: Renamed from ref-add.sed.in.
37088         * lib/ref-del.sin: Renamed from ref-del.sed.in.
37089         * lib/Makefile.am: Reflect renaming.
37090         Reported by Eli Zaretskii.
37091
37092         Use a temporary file name that won't clash with `charset.alias'
37093         in the DOS 8.3 name space.
37094         * lib/Makefile.am (charset_tmp): Define.
37095         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
37096         (uninstall-local): Likewise.
37097         Reported by Eli Zaretskii.
37098
37099 2000-04-03  Jim Meyering  <meyering@lucent.com>
37100
37101         * m4/gettext.m4: Fix typo in comment.
37102
37103         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
37104         textutils/configure.in).  Suggestion from Paul Eggert.
37105         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
37106
37107 2000-04-02  Paul Eggert  <eggert@twinsun.com>
37108
37109         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
37110         variable in the shell rather than using putenv, which isn't
37111         portable.  This avoids the configure-time inter-test dependency
37112         on the potentially-renamed putenv function.
37113
37114 2000-03-30  Paul Eggert  <eggert@twinsun.com>
37115
37116         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
37117         before checking struct stat.st_blksize, so that
37118         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
37119
37120 2000-03-29  Paul Eggert  <eggert@twinsun.com>
37121
37122         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
37123         since strftime.c uses HAVE_STRFTIME to decide whether to use
37124         the underlying strftime.
37125
37126 2000-03-29  Paul Eggert  <eggert@twinsun.com>
37127
37128         * lib/time/strftime.c (my_strftime): Make sure we call the system
37129         strftime, not ourselves, when invoking the underlying strftime.
37130
37131 2000-03-24  Jim Meyering  <meyering@lucent.com>
37132
37133         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
37134         (charset_alias): Define.
37135         (install-exec-local): Factor out common code.
37136         (uninstall-local): Split lines longer than 80.
37137         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
37138         (SUFFIXES): Define.
37139         (.sed.in.sed): New rule.  Don't redirect directly to $@.
37140         (CLEANFILES): Add ref-add.sed and ref-del.sed.
37141
37142 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
37143
37144         * lib/config.charset: Output a line containing "Packages using this
37145         file".
37146         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
37147         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
37148         ref-del.sed): New rules.
37149
37150 2000-03-17  Jim Meyering  <meyering@lucent.com>
37151
37152         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
37153         Otherwise, include <strings.h>
37154
37155 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
37156
37157         * lib/unicodeio.c (utf8_wctomb): New function.
37158         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
37159         format instead of in UCS-4 with platform dependent endianness.
37160
37161 2000-03-10  Jim Meyering  <meyering@lucent.com>
37162
37163         * m4/lib-check.m4: Look for getspnam in -lgen, too.
37164         From Marco Franzen.
37165
37166 2000-03-07  Paul Eggert  <eggert@twinsun.com>
37167
37168         * lib/savedir.c (savedir): Work even if directory size is
37169         negative; this can happen with some screwy NFS configurations.
37170
37171 2000-03-06  Jim Meyering  <meyering@lucent.com>
37172
37173         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
37174         if it's NULL (because we ran out of memory).  From Bruno Haible.
37175
37176 2000-03-05  Jim Meyering  <meyering@lucent.com>
37177
37178         * lib/localcharset.c ("path-concat.h"): Include.
37179         (get_charset_aliases): Use path_concat instead of ANSI string
37180         concatenation.
37181
37182         * lib/unicodeio.h (PARAMS): Define.
37183         Use it to guard prototype.
37184
37185 2000-03-04  Jim Meyering  <meyering@lucent.com>
37186
37187         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
37188         for lib/localcharset.c.
37189
37190 2000-03-04  Jim Meyering  <meyering@lucent.com>
37191
37192         * lib/Makefile.am (install-exec-local): Create $(libdir) before
37193         installing into it.
37194         (uninstall-local): Uncomment this rule so `make distcheck' works
37195         once again.
37196
37197         * lib/unicodeio.c (<errno.h>): Include it.
37198         (errno): Declare if not defined.
37199
37200         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
37201
37202         * lib/config.charset: New version, incorporating remarks from a linux
37203         i18n mailing list.  From Bruno Haible.
37204
37205 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
37206
37207         * m4/codeset.m4: New file.
37208         * m4/iconv.m4: New file.
37209         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
37210
37211 2000-03-03  Jim Meyering  <meyering@lucent.com>
37212
37213         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
37214
37215 2000-03-02  Jim Meyering  <meyering@lucent.com>
37216
37217         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
37218         the messages come out on separate lines.
37219
37220         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
37221         rather than jm_CHECK_DECLARATIONS.
37222         * m4/decl.m4: Remove now-unused file.
37223
37224         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
37225         geteuid.
37226
37227 2000-03-02  Jim Meyering  <meyering@lucent.com>
37228
37229         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
37230
37231 2000-03-01  Jim Meyering  <meyering@lucent.com>
37232
37233         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
37234         * lib/unicodeio.c: Likewise.
37235
37236 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
37237
37238         * lib/config.charset: New file.
37239         * lib/localcharset.c: New file.
37240         * lib/unicodeio.h, lib/unicodeio.c: New files.
37241         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
37242         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
37243         (noinst_HEADERS): Add unicodeio.h.
37244         (all-local, install-exec-local, charset.alias): New targets.
37245
37246 2000-02-28  Paul Eggert  <eggert@twinsun.com>
37247
37248         * lib/quotearg.c (ALERT_CHAR): New macro.
37249         (quotearg_buffer_restyled): Use it.
37250
37251 2000-02-27  Jim Meyering  <meyering@lucent.com>
37252
37253         * m4/check-decl.m4: Add getenv to the list.
37254
37255 2000-02-27  Jim Meyering  <meyering@lucent.com>
37256
37257         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
37258         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
37259
37260         * lib/backupfile.c: Guard inclusion of stdlib.h with
37261         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
37262         Declare malloc if needed.
37263
37264         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
37265         `#ifndef HAVE_DECL..'
37266         now that autoconf always defines the HAVE_DECL_ symbols.
37267         * lib/human.c: Likewise.
37268         * lib/same.c: Likewise.
37269         * lib/strtoumax.c: Likewise.
37270
37271         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
37272         declaration check was not run.
37273         * lib/hash.c: Likewise.
37274         * lib/human.c: Likewise.
37275         * lib/same.c: Likewise.
37276         * lib/strtoumax.c: Likewise.
37277
37278         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
37279         `.', then first look up the entire `.'-containing string as a login
37280         name.
37281
37282 2000-02-23  Jim Meyering  <meyering@lucent.com>
37283
37284         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
37285         in place of my hack.
37286
37287 2000-02-18  Paul Eggert  <eggert@twinsun.com>
37288
37289         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
37290         (textint): New typedef.
37291         (parser_control): Member year changed from int to textint.
37292         All uses changed.
37293         (YYSTYPE): Removed; replaced by %union with int and textint members.
37294         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
37295         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
37296         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
37297         (tSNUMBER, tUNUMBER): Now of type <textintval>.
37298         (date, number, to_year): Use width of number in digits, not its value,
37299         to determine whether it's a 2-digit year, or a 2-digit time.
37300         (yylex): Store number of digits of numeric tokens.
37301         Reported by John Kendall.
37302
37303         (parser_control): Changed from struct parser_control to typedef (for
37304         consistency).  All uses changed.
37305
37306         (tID): Removed; not used.
37307         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
37308
37309 2000-02-14  Paul Eggert  <eggert@twinsun.com>
37310
37311         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
37312         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
37313
37314 2000-02-12  Jim Meyering  <meyering@lucent.com>
37315
37316         * lib/userspec.c (ISDIGIT): Define it.
37317         (isdigit): Remove definition.
37318         (is_number): Use ISDIGIT, not isdigit.
37319         <libintl.h>: Include.
37320         (_ and N_): Define.
37321         (parse_user_spec): Mark translatable strings.
37322
37323 2000-02-10  Jim Meyering  <meyering@lucent.com>
37324
37325         With these changes, nanosleep.[ch] are finally enough like the other
37326         lib/* replacement files to compile on a few more losing systems.
37327
37328         * lib/nanosleep.h: Don't include config.h.
37329         Remove prototype from declaration of nanosleep.
37330         (PARAMS): Remove now-unneeded definition.
37331         * lib/nanosleep.c: #undef nanosleep.
37332         (rpl_nanosleep): Rename from nanosleep.
37333
37334 2000-02-10  Jim Meyering  <meyering@lucent.com>
37335
37336         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
37337         gnu_nanosleep to rpl_nanosleep.
37338
37339 2000-02-09  Jim Meyering  <meyering@lucent.com>
37340
37341         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
37342         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
37343
37344 2000-02-08  Akim Demaille  <akim@epita.fr>
37345
37346         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
37347         `[' and `]' and remove uses of `changequote'.
37348         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
37349         (AC_SYS_LARGEFILE): Likewise.
37350         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37351         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
37352         of changequote.
37353         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
37354         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
37355         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
37356         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
37357
37358 2000-02-05  Jim Meyering  <meyering@lucent.com>
37359
37360         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
37361         Remove explicit use of AC_HEADER_TIME.  It is required by
37362         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
37363         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
37364         in autoconf whereby the expansion of the latter ended up preceding
37365         the expansion of its prerequisite, AC_HEADER_TIME.
37366         Reported by Volker Borchert.
37367
37368 2000-02-03  Jim Meyering  <meyering@lucent.com>
37369
37370         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
37371
37372 2000-02-03  Jim Meyering  <meyering@lucent.com>
37373
37374         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
37375         rather than with `#if HAVE_UTMPNAME'.
37376
37377 2000-02-02  Jim Meyering  <meyering@lucent.com>
37378
37379         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
37380         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
37381         Reported by Eli Zaretskii.
37382
37383 2000-02-01  Jim Meyering  <meyering@lucent.com>
37384
37385         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
37386
37387 2000-01-31  Jim Meyering  <meyering@lucent.com>
37388
37389         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
37390         functions.  Add the time.h and sys/time.h headers along with the
37391         AC_REQUIRE'ment of AC_HEADER_TIME.
37392
37393 2000-01-31  Jim Meyering  <meyering@lucent.com>
37394
37395         * lib/nanosleep.h (nanosleep): Guard declaration with
37396         `#if ! HAVE_DECL_NANOSLEEP'.
37397         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
37398         the declaration in that vendor's sys/timers.h.
37399         Reported by Christian Krackowizer.
37400
37401         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
37402         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
37403         (ISPRINT): Likewise.
37404         Reported by Tom Tromey.
37405
37406 2000-01-30  Jim Meyering  <meyering@lucent.com>
37407
37408         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
37409
37410         * m4/prereq.m4 (utmp_includes): Define.
37411         Check for ut_user and ut_name members in both struct utmpx
37412         and struct utmp.
37413
37414 2000-01-30  Jim Meyering  <meyering@lucent.com>
37415
37416         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
37417         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
37418         header files where only utmpx.ut_user is declared.
37419
37420         * lib/readutmp.h (UT_USER): Define.
37421
37422 2000-01-29  Jim Meyering  <meyering@lucent.com>
37423
37424         * m4/lib-check.m4: New file containing library-related checks from
37425         fileutils and sh-utils (textutils had none).
37426
37427 2000-01-28  Jim Meyering  <meyering@lucent.com>
37428
37429         * m4/perl.m4: Change format of warning message to look more like that
37430         from the missing script.  Suggestion from François Pinard.
37431
37432 2000-01-25  Jim Meyering  <meyering@lucent.com>
37433
37434         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
37435         well as time.h in the compile check.
37436         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
37437         Fix typo in cross-compiling case: s/yes/no/.
37438
37439 2000-01-23  Jim Meyering  <meyering@lucent.com>
37440
37441         * m4/jm-macros.m4: Move df-related tests here from
37442         fileutils/configure.in
37443
37444         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
37445         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
37446
37447         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
37448         s/space/ac_fsusage_space/.
37449         (jm_FILE_SYSTEM_USAGE): Take two parameters.
37450
37451         * m4/ftruncate.m4: New file (derived from part of
37452         fileutils/configure.in).
37453         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
37454         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
37455
37456         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
37457         AC_SUBST these here, rather than just in sh-util/configure.in, so
37458         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
37459         all the same.
37460         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
37461         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
37462         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
37463         (AC_SUBST(POW_LIBM)): Likewise.
37464         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
37465
37466 2000-01-23  Jim Meyering  <meyering@lucent.com>
37467
37468         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
37469         obstack.c.
37470
37471 2000-01-22  Jim Meyering  <meyering@lucent.com>
37472
37473         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
37474
37475         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
37476
37477         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
37478         configure.in
37479         (AC_CHECK_HEADERS): Likewise for sh-utils.
37480         (AC_CHECK_HEADERS): Likewise for textutils.
37481         Merge the three lists of headers.
37482
37483         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
37484         from fileutils' configure.in.
37485
37486         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
37487         code. Moved tests into their own function (_jm_DECL_HEADERS) in
37488         check-decl.m4.
37489
37490         * m4/check-decl.m4: Use #if rather than #ifdef.
37491         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
37492         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
37493         (_jm_DECL_HEADERS): Define new function.
37494         (jm_CHECK_DECLARATIONS): Require it.
37495
37496 2000-01-22  Jim Meyering  <meyering@lucent.com>
37497
37498         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
37499         [! HAVE_DECL_STRTOULL]: Declare strtoull.
37500         Required for some AIX systems.  Reported by Christian Krackowizer.
37501         [TESTING] (main): New function.
37502
37503         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
37504         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
37505         letters.
37506
37507         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
37508         iswprint.
37509
37510         * lib/strverscmp.c (ISDIGIT): Define.
37511         (strverscmp): Use ISDIGIT, not isdigit.
37512
37513 2000-01-19  Jim Meyering  <meyering@lucent.com>
37514
37515         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
37516         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
37517         defines `struct timespec' in <sys/time.h>
37518
37519         * m4/c-bs-a.m4: Remove uses of changequote altogether.
37520         Thanks to Akim for explaining.
37521
37522 2000-01-17  Paul Eggert  <eggert@twinsun.com>
37523
37524         * lib/nanosleep.c (nanosleep):
37525         Don't use SA_INTERRUPT to decide whether to call sigaction, as
37526         POSIX.1 doesn't require SA_INTERRUPT and some systems
37527         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
37528         it's been part of POSIX.1 since day 1 (in 1988).
37529
37530 2000-01-17  Jim Meyering  <meyering@lucent.com>
37531
37532         * lib/interlock: Remove unused file.  Reported by François Pinard.
37533
37534 2000-01-16  Paul Eggert  <eggert@twinsun.com>
37535
37536         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
37537         alert, backslash, formfeed, and vertical tab unnecessarily in
37538         shell quoting style.
37539
37540 2000-01-16  Jim Meyering  <meyering@lucent.com>
37541
37542         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
37543         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
37544         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
37545         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
37546
37547 2000-01-16  Jim Meyering  <meyering@lucent.com>
37548
37549         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
37550         because the latter didn't work.
37551
37552 2000-01-15  Jim Meyering  <meyering@lucent.com>
37553
37554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
37555         (AC_REPLACE_FUNCS): Add memcpy and memset.
37556         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
37557         Add strpbrk.
37558         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
37559
37560 2000-01-12  Jim Meyering  <meyering@lucent.com>
37561
37562         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
37563         (jm_PREREQ): Use it.
37564         (jm_PREREQ_READUTMP): New macro.
37565         (jm_PREREQ): Use it.
37566
37567 2000-01-11  Paul Eggert  <eggert@twinsun.com>
37568
37569         Quote multibyte characters correctly.
37570         * m4/c-bs-a.m4: New file.
37571         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
37572         (jm_PREREQ): Use it.
37573
37574 2000-01-11  Paul Eggert  <eggert@twinsun.com>
37575
37576         * m4/uintmax_t.m4: Port to autoconf 2.13.
37577
37578 2000-01-08  Jim Meyering  <meyering@ascend.com>
37579
37580         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
37581         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
37582
37583 2000-01-04  Jim Meyering  <meyering@ascend.com>
37584
37585         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
37586         jm_STRUCT_DIRENT_D_TYPE.
37587         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
37588         jm_STRUCT_DIRENT_D_INO.
37589         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
37590         jm_STRUCT_UTIMBUF.
37591         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
37592         renamings.
37593         * m4/utime.m4: Likewise.
37594
37595         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
37596         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
37597
37598 2000-01-03  Paul Eggert  <eggert@twinsun.com>
37599
37600         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
37601         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
37602
37603 2000-01-02  Jim Meyering  <meyering@ascend.com>
37604
37605         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
37606         remember if this is necessary.
37607
37608 1999-12-26  Jim Meyering  <meyering@ascend.com>
37609
37610         * m4/jm-macros.m4: Use it here.
37611         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
37612
37613 1999-12-23  Jim Meyering  <meyering@ascend.com>
37614
37615         * m4/jm-macros.m4: Check for clock_gettime (moved from
37616         fileutils/configure.in)
37617         Check for gettimeofday.
37618
37619 1999-12-20  Jim Meyering  <meyering@ascend.com>
37620
37621         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
37622         autoconf-2.14a-1999-12-20.
37623
37624 1999-12-19  Jim Meyering  <meyering@ascend.com>
37625
37626         * m4/lstat-slash.m4: New file.
37627         * m4/jm-macros.m4: Use the new macro:
37628         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37629
37630 1999-12-07  Jim Meyering  <meyering@ascend.com>
37631
37632         * m4/perl.m4: Require that File::Compare be available, too.
37633         Too many systems seem to lack it.
37634
37635         * m4/strftime.m4: Add checks for most of the cpp macros tested in
37636         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
37637
37638 1999-11-18  Paul Eggert  <eggert@twinsun.com>
37639
37640         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
37641         problem with the QNX 4.25 shell, which doesn't propagate exit
37642         status of failed commands inside shell assignments.
37643
37644 1999-11-17  Jim Meyering  <meyering@ascend.com>
37645
37646         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
37647
37648 1999-11-07  Jim Meyering  <meyering@ascend.com>
37649
37650         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
37651
37652 1999-11-06  Jim Meyering  <meyering@ascend.com>
37653
37654         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
37655         * m4/jm-macros.m4 (jm_MACROS): Use it here.
37656
37657 1999-11-05  Jim Meyering  <meyering@ascend.com>
37658
37659         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
37660         configure.in of textutils, fileutils, and sh-utils into this one
37661         (shared between those packages) file.
37662         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
37663         AC_STRUCT_ST_BLKSIZE.
37664
37665 1999-11-03  Jim Meyering  <meyering@ascend.com>
37666
37667         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
37668         of AC_CHECK_TYPE checks includes unistd.h.
37669         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
37670         Suggestion from Akim Demaille.
37671
37672 1999-10-30  Jim Meyering  <meyering@ascend.com>
37673
37674         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
37675         m4-quoted string.
37676         * m4/ls-mntd-fs.m4: Likewise.
37677         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
37678         * m4/jm-winsz1.m4: Likewise.
37679
37680         * m4/const.m4: Remove file, since the fix made it into the experimental
37681         version of autoconf.
37682         * m4/mktime.m4: Likewise.
37683
37684         * m4/check-type.m4: Remove file, now that the latest version of
37685         AC_CHECK_TYPE takes a third arg to specify additional #includes.
37686
37687         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
37688         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
37689         AC_CHECK_TYPE.
37690
37691 1999-10-04  Jim Meyering  <meyering@ascend.com>
37692
37693         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
37694
37695 1999-09-22  Paul Eggert  <eggert@twinsun.com>
37696
37697         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
37698         2.95.1 bug with HP-UX 10.20.
37699
37700 1999-09-17  Jim Meyering  <meyering@ascend.com>
37701
37702         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
37703         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
37704         due to missing strdup (against sh-utils-2.0).
37705
37706 1999-08-29  Jim Meyering  <meyering@ascend.com>
37707
37708         * m4/jm-macros.m4: Require jm_BISON.
37709         * m4/bison.m4: New file.
37710
37711 1999-08-17  Paul Eggert  <eggert@twinsun.com>
37712
37713         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
37714         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
37715
37716 1999-08-05  Jim Meyering  <meyering@ascend.com>
37717
37718         * m4/getline.m4: Rename test file from conftestdata to conftest.data
37719         to avoid conflicts with `conftest' on 8+3 filesystems.
37720         Suggestion from Eli Zaretskii.
37721
37722 1999-08-04  Jim Meyering  <meyering@ascend.com>
37723
37724         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
37725         fileutils and sh-utils (textutils's getline test was inadequate).
37726         (AM_FUNC_GETLINE): Run this test.
37727         (AC_CHECK_FUNCS): Check for getdelim.
37728         Reported by Bob Proulx.
37729
37730 1999-08-02  Jim Meyering  <meyering@ascend.com>
37731
37732         * m4/jm-macros.m4: Add a comment.
37733
37734 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37735
37736         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
37737         <inttypes.h> defines strtoumax as a macro (and not as a
37738         function).
37739
37740 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37741
37742         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
37743         that we can shift, multiply and divide unsigned long long
37744         values; Ultrix cc can't do it.
37745
37746 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37747
37748         * m4/mktime.m4: New file, which is a preview of what should appear
37749         in the next public autoconf release.
37750
37751 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37752
37753         * m4/lfs.m4: Remove this file.
37754         * m4/largefile.m4: New file.  It contains the old contents of
37755         lfs.m4, except that all names with prefix AC_LFS have been
37756         changed to use the prefix AC_SYS_LARGEFILE instead, to be
37757         compatible with future autoconf versions.  Also, some minor m4
37758         quoting problems have been fixed.
37759
37760 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37761
37762         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
37763         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
37764         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
37765         and simplify the shell code.
37766
37767 1999-08-01  Jim Meyering  <meyering@ascend.com>
37768
37769         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
37770         m4.
37771
37772 1999-07-20  Jim Meyering  <meyering@ascend.com>
37773
37774         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
37775
37776 1999-07-15  Jim Meyering  <meyering@ascend.com>
37777
37778         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
37779
37780 1999-05-22  Jim Meyering  <meyering@ascend.com>
37781
37782         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
37783
37784 1999-05-20  Jim Meyering  <meyering@ascend.com>
37785
37786         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
37787         Add a colon after each `then' in case $4 is empty.
37788
37789 1999-05-16  Jim Meyering  <meyering@ascend.com>
37790
37791         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
37792
37793 1999-05-10  Jim Meyering  <meyering@ascend.com>
37794
37795         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
37796
37797         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
37798         AC_FUNC_MKTIME.
37799
37800 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
37801
37802         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
37803
37804 1999-05-04  Paul Eggert  <eggert@twinsun.com>
37805
37806         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
37807         not CPPFLAGS, so that linking works correctly in IRIX.
37808
37809 1999-04-30  Paul Eggert  <eggert@twinsun.com>
37810
37811         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
37812
37813 1999-04-20  Paul Eggert  <eggert@twinsun.com>
37814
37815         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
37816         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
37817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
37818         jm_AC_TYPE_UNSIGNED_LONG_LONG.
37819         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
37820
37821         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
37822
37823 1999-04-20  Jim Meyering  <meyering@ascend.com>
37824
37825         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
37826         AC_REPLACE xstroull if necessary.  From Paul Eggert.
37827         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
37828
37829 1999-04-18  Jim Meyering  <meyering@ascend.com>
37830
37831         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
37832         * m4/jm-macros.m4: Use it.
37833
37834 1999-04-06  Jim Meyering  <meyering@ascend.com>
37835
37836         * m4/strftime.m4: Remove test for %f.
37837
37838 1999-03-29  Jim Meyering  <meyering@ascend.com>
37839
37840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
37841         superset of the AC_TYPE_* checks in the textutils, fileutils,
37842         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
37843         AC_TYPE_PID_T.
37844
37845 1999-03-28  Jim Meyering  <meyering@ascend.com>
37846
37847         * m4/jm-macros.m4: Define GNU_PACKAGE here.
37848         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
37849         replaced e.g., in the *.sh files of the sh-utils.
37850
37851 1999-03-20  Jim Meyering  <meyering@ascend.com>
37852
37853         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
37854         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
37855         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
37856
37857 1999-03-19  Jim Meyering  <meyering@ascend.com>
37858
37859         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
37860
37861 1999-03-12  Jim Meyering  <meyering@ascend.com>
37862
37863         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
37864
37865 1999-03-07  Jim Meyering  <meyering@ascend.com>
37866
37867         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
37868         declared.
37869
37870 1999-02-17  Jim Meyering  <meyering@ascend.com>
37871
37872         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
37873         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
37874
37875 1999-02-07  Jim Meyering  <meyering@ascend.com>
37876
37877         * m4/group-member.m4: New file -- extracted from sh-utils'
37878         configure.in.
37879
37880         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
37881         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
37882
37883 1999-02-06  Jim Meyering  <meyering@ascend.com>
37884
37885         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
37886         * m4/fnmatch.m4: Likewise.
37887         * m4/getgroups.m4: Likewise.
37888         * m4/lstat.m4: Likewise.
37889         * m4/malloc.m4: Likewise.
37890         * m4/putenv.m4: Likewise.
37891         * m4/realloc.m4: Likewise.
37892         * m4/regex.m4: Likewise.
37893         * m4/stat.m4: Likewise.
37894         * m4/strftime.m4: Likewise.
37895         Suggestion from Alain Magloire.
37896
37897         * m4/chown.m4: Use `.$ac_objext', not `.o'.
37898         * m4/fnmatch.m4: Likewise.
37899         * m4/getgroups.m4: Likewise.
37900         * m4/getline.m4: Likewise.
37901         * m4/lstat.m4: Likewise.
37902         * m4/malloc.m4: Likewise.
37903         * m4/memcmp.m4: Likewise.
37904         * m4/putenv.m4: Likewise.
37905         * m4/realloc.m4: Likewise.
37906         * m4/regex.m4: Likewise.
37907         * m4/stat.m4: Likewise.
37908         * m4/strftime.m4: Likewise.
37909         Suggestion from Alain Magloire.
37910
37911         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
37912         an argument.
37913
37914         * m4/regex.m4: Add a run-time Test for proper operation of
37915         re_compile_pattern.
37916
37917 1999-01-31  Jim Meyering  <meyering@ascend.com>
37918
37919         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
37920
37921 1999-01-30  Jim Meyering  <meyering@ascend.com>
37922
37923         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
37924
37925         * m4/jm-mktime.m4: Make this a wrapper around the official
37926         AM_FUNC_MKTIME rather than my private copy, now that the official one
37927         is up to date.
37928         * m4/mktime.m4: Remove file.
37929
37930         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
37931         * m4/uptime.m4: Likewise.
37932         * m4/uintmax_t.m4: Likewise.
37933
37934 1999-01-28  Jim Meyering  <meyering@ascend.com>
37935
37936         * m4/jm-macros.m4: Use jm_AFS.
37937         * m4/afs.m4: New file (from fileutils' configure.in).
37938
37939         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
37940         * m4/chown.m4: Likewise.
37941         * m4/d-ino.m4: Likewise.
37942         * m4/d-type.m4: Likewise.
37943         * m4/fnmatch.m4: Likewise.
37944         * m4/getgroups.m4: Likewise.
37945         * m4/gettext.m4: Likewise.
37946         * m4/jm-mktime.m4: Likewise.
37947         * m4/jm-winsz2.m4: Likewise.
37948         * m4/lcmessage.m4: Likewise.
37949         * m4/ls-mntd-fs.m4: Likewise.
37950         * m4/malloc.m4: Likewise.
37951         * m4/memcmp.m4: Likewise.
37952         * m4/putenv.m4: Likewise.
37953         * m4/realloc.m4: Likewise.
37954         * m4/st_mtim.m4: Likewise.
37955         * m4/strftime.m4: Likewise.
37956
37957 1999-01-16  Jim Meyering  <meyering@ascend.com>
37958
37959         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
37960         (ARGMATCH_DIE_DECL): Define.
37961
37962 1999-01-12  Jim Meyering  <meyering@ascend.com>
37963
37964         * m4/Makefile.am.in: Rewrite to avoid using fmt.
37965         Reported by Lars Hecking.
37966
37967 1999-01-10  Jim Meyering  <meyering@ascend.com>
37968
37969         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
37970         gross kludge.
37971         * m4/inttypes_h.m4: Likewise.
37972         * m4/lstat.m4: Likewise.
37973         * m4/malloc.m4: Likewise.
37974         * m4/readdir.m4: Likewise.
37975         * m4/realloc.m4: Likewise.
37976         * m4/st_dm_mode.m4: Likewise.
37977         * m4/stat.m4: Likewise.
37978         * m4/utimbuf.m4: Likewise.
37979         * m4/utimes.m4: Likewise.
37980
37981         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
37982         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
37983         comments in config.h.in are meaningful.
37984
37985         * m4/jm-macros.m4: Require autoconf-2.13 here.
37986
37987         * m4/regex.m4: By default, don't use the included regex.c on systems
37988         with glibc 2.  Suggestion from Uli Drepper.
37989
37990 1999-01-02  Jim Meyering  <meyering@ascend.com>
37991
37992         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
37993
37994 1998-12-18  Jim Meyering  <meyering@ascend.com>
37995
37996         * m4/Makefile.am.in (Makefile.am): Simplify rule.
37997         Based on a suggestion from Lars Hecking.
37998
37999 1998-11-16  Paul Eggert  <eggert@twinsun.com>
38000
38001         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
38002
38003 1998-11-16  Jim Meyering  <meyering@ascend.com>
38004
38005         * m4/lfs.m4: Double-quote the `uname...` expression.
38006
38007 1998-11-14  Jim Meyering  <meyering@ascend.com>
38008
38009         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
38010         * m4/stat.m4: Likewise.
38011
38012 1998-11-03  Jim Meyering  <meyering@ascend.com>
38013
38014         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
38015         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
38016
38017 1998-10-18  Jim Meyering  <meyering@ascend.com>
38018
38019         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
38020
38021 1998-10-17  Jim Meyering  <meyering@ascend.com>
38022
38023         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
38024         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
38025         calls for those previously hard-coded headers.  Instead, take a new
38026         parameter.
38027         (jm_CHECK_DECLARATIONS): Reflect interface change.
38028         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
38029         (jm_CHECK_DECL_LOCALTIME_R): New macro.
38030
38031         * m4/mktime.m4: Test for spring-forward gap before long-running test.
38032
38033 1998-10-14  Jim Meyering  <meyering@ascend.com>
38034
38035         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
38036         instead of "TZ=America/Vancouver".  From Paul Eggert.
38037
38038 1998-10-11  Jim Meyering  <meyering@ascend.com>
38039
38040         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
38041         This adds a test for a recently added compatibility fix for mktime.c.
38042         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
38043
38044 1998-09-27  Jim Meyering  <meyering@ascend.com>
38045
38046         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
38047
38048         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
38049         ../configure.in, including a change from Gordon Matzigkeit to allow
38050         cross-compiling for the Hurd.
38051
38052         * m4/glibc.m4: New file/macro to test for the GNU C Library
38053         versions 1 and 2.  From Gordon Matzigkeit.
38054         Indent.
38055
38056 1998-09-21  Jim Meyering  <meyering@ascend.com>
38057
38058         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
38059
38060 1998-08-18  Paul Eggert  <eggert@twinsun.com>
38061
38062         Port nanosecond-resolution times to UnixWare 2.1.2 and
38063         pedantic Solaris 2.6.
38064
38065         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
38066         AC_STRUCT_ST_MTIM.
38067         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
38068         Generate name of ns member, instead of just 1 or undef.
38069         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
38070
38071 1998-08-15  Jim Meyering  <meyering@ascend.com>
38072
38073         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
38074         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
38075         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
38076         instead of jm_TYPE_SSIZE_T.
38077
38078 1998-08-12  Jim Meyering  <meyering@ascend.com>
38079
38080         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
38081
38082 1998-08-02  Jim Meyering  <meyering@ascend.com>
38083
38084         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
38085         in acconfig.h manually.
38086
38087 1998-07-31  Paul Eggert  <eggert@twinsun.com>
38088
38089         * m4/st_mtim.m4: New file.
38090
38091 1998-07-28  Jim Meyering  <meyering@ascend.com>
38092
38093         * m4/utimes.m4: Undef stat.
38094
38095 1998-07-25  Jim Meyering  <meyering@ascend.com>
38096
38097         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
38098         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
38099
38100 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
38101
38102         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
38103         uid and gid actually remain unchanged.
38104
38105 1998-07-07  Jim Meyering  <meyering@ascend.com>
38106
38107         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
38108
38109 1998-07-04  Jim Meyering  <meyering@ascend.com>
38110
38111         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
38112         to prove that this macro can be used in packages without regex.c.
38113
38114 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
38115
38116         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
38117         is to be used.
38118
38119 1998-07-03  Jim Meyering  <meyering@ascend.com>
38120
38121         * m4/gettext.m4: Add -lintl if it's found to be necessary.
38122
38123         * m4/gettext.m4: New file -- from gettext-0.10.35.
38124         * m4/lcmessage.m4: Likewise.
38125         * m4/progtest.m4: Likewise.
38126
38127         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
38128         * m4/jm-macros.m4: Require the new macro.
38129
38130 1998-06-29  Jim Meyering  <meyering@ascend.com>
38131
38132         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
38133         for the definition of NGROUPS (used in a system header included
38134         by sys/mount.h).
38135
38136 1998-06-28  Jim Meyering  <meyering@ascend.com>
38137
38138         * m4/ls-mntd-fs.m4: New file.
38139         * m4/fstypename.m4: New file.
38140
38141         * m4/jm-macros.m4: Require the new macro.
38142         * m4/jm-glibc-io.m4: New file.
38143
38144 1998-05-19  Jim Meyering  <meyering@ascend.com>
38145
38146         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
38147         * m4/lchown.m4: New file.
38148
38149         * m4/Makefile.am.in: New file.
38150         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
38151
38152 1998-05-14  Jim Meyering  <meyering@ascend.com>
38153
38154         * m4/Makefile.am (EXTRA_DIST): Add them.
38155         * m4/jm-macros.m4: New file.
38156         * m4/utimbuf.m4: New file.
38157
38158 1998-05-12  Jim Meyering  <meyering@ascend.com>
38159
38160         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
38161
38162 1998-05-11  Jim Meyering  <meyering@ascend.com>
38163
38164         * m4/isc-posix.m4: New file.
38165
38166 1998-05-10  Jim Meyering  <meyering@ascend.com>
38167
38168         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
38169
38170 1998-05-09  Jim Meyering  <meyering@ascend.com>
38171
38172         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
38173         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
38174         with automake.
38175
38176         * m4/ssize_t.m4: New file.
38177         * m4/mktime.m4: Remove file -- the new automake has this now.
38178
38179 1998-04-26  Jim Meyering  <meyering@ascend.com>
38180
38181         * m4/assert.m4: New file.
38182         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
38183
38184 1998-04-05  Jim Meyering  <meyering@ascend.com>
38185
38186         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
38187         (jm_PREREQ): Use it here.
38188
38189 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
38190
38191         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
38192         in acconfig.h.
38193
38194 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
38195
38196         * m4/prereq.m4: New file.
38197         * m4/error.m4: New file.
38198         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
38199
38200 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
38201
38202         * m4/getline.m4: Don't set am_cv_func_working_getline before the
38203         cache-check for the same variable -- that defeated the purpose of
38204         the test; the test program was never run.  This was a problem only
38205         on systems with losing getline functions -- HP-UX 10.20 is one.
38206         Reported by Bjorn Helgaas.
38207
38208 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
38209
38210         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
38211
38212 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
38213
38214         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
38215
38216         * m4/const.m4: New file.  Use an initializer in this declaration
38217         typedef int charset[2]; const charset x;
38218         Reported by Bob Glickstein.
38219
38220 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
38221
38222         * m4/chown.m4: Fix reversed types on -1 args to chown.
38223         From Kaveh Ghazi.
38224
38225 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
38226
38227         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
38228         Add lseek and memchr.
38229
38230         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
38231         T.E.Dickey <dickey@clark.net> said that some older preprocessors
38232         have a 20-character limit on names.
38233
38234 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
38235
38236         * m4/inttypes_h.m4: New file.
38237         * m4/uintmax_t.m4: New file.
38238         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
38239
38240
38241         -----
38242
38243         Copyright (C) 1997-2008 Free Software Foundation, Inc.
38244
38245         Copying and distribution of this file, with or without
38246         modification, are permitted provided the copyright notice
38247         and this notice are preserved.