9668dafbd7f129165e7cf702c05f593652303005
[gnulib.git] / ChangeLog
1 2011-01-18  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'get-rusage-as'.
4         * modules/get-rusage-as-tests: New file.
5         * tests/test-get-rusage-as.c: New file.
6
7         New module 'get-rusage-as'.
8         * modules/get-rusage-as: New file.
9         * lib/resource-ext.h: New file.
10         * lib/get-rusage-as.c: New file.
11
12 2011-01-17  Eric Blake  <eblake@redhat.com>
13
14         sigaction: relax license from LGPLv3+ to LGPLv2+
15         * modules/sigaction (License): Relax to LGPLv2+.
16
17 2011-01-14  Bruno Haible  <bruno@clisp.org>
18
19         filemode: Make function declarations usable in C++ mode.
20         * lib/filemode.h: Enclose function declarations in extern "C" block.
21         Reported by John W. Eaton <jwe@gnu.org>.
22
23 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24
25         save-cwd: no longer include "xgetcwd.h"
26         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
27         This avoids a compilation failure in projects that use save-cwd
28         without also using the xgetcwd module.
29
30 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
31
32         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
33         This is so that a program like Emacs, which needs only dtoastr,
34         does not have to bother with distributing and compiling ftoastr
35         and ldtoastr.
36         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
37         * modules/dtoastr, modules/ldtoastr: New files.
38         * modules/ftoastr: Now works just for 'float'.
39         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
40         (Makefile.am): Remove ftoastr.h (not needed and no effect),
41         dtoastr.c, ldtoastr.c.
42
43 2011-01-11  Jim Meyering  <meyering@redhat.com>
44
45         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
46         There is no need to work around the lack of the fchdir function,
47         since gnulib can now provide a replacement when required.
48         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
49         * modules/save-cwd (Depends-on): Add fchdir.
50
51 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
52
53         openat, save-cwd: avoid xmalloc
54
55         This removes a direct (but undocumented) dependency of openat on
56         xalloc, along with an indirect dependency via save-cwd.  It also
57         removes a dependency of save-cwd on xgetcwd, and thereby
58         indirectly on xalloc.  This change causes the openat substitute
59         to fall back on save_cwd when memory is tight, and for save_cwd to
60         fail instead of dying when memory is tight, but that's good enough.
61
62         * lib/openat-proc.c: Include stdlib.h (for malloc), not
63         xalloc.h (for xmalloc).
64         (openat_proc_name): Use malloc, not xmalloc.
65         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
66         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
67
68         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
69         This avoids heap allocation for file names whose lengths are in
70         the range 512..1023, with the upper bound increasing to at most
71         4031 depending on the platform's PATH_MAX.  (We do not want
72         pathmax.h here as it might supply a non-constant PATH_MAX.)
73         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
74         Perhaps they should be moved to malloca.h?
75         (OPENAT_BUFFER_SIZE): Use them.
76
77 2011-01-10  Bruno Haible  <bruno@clisp.org>
78
79         doc: Update users.txt.
80         * users.txt: Add recutils.
81
82 2011-01-09  Karl Berry  <karl@gnu.org>
83
84         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
85
86         * doc/configmake.texi: New file.
87         * doc/gnulib.texi: Include it.
88         * modules/configmake: Move documentation from here.
89
90 2011-01-09  Bruno Haible  <bruno@clisp.org>
91
92         Update to Unicode 6.0.0.
93         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
94         (get_lbp): Update for Unicode 6.0.0.
95         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
96         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
97         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
98         U+11001, U+11038..U+11046. Remove U+06DE.
99         (uc_width): Fix bounds of planes.
100         * tests/uniwidth/test-uc_width2.sh: Same updates as in
101         lib/uniwidth/width.c.
102         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
103         trailing whitespace removed.
104         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
105         without comments, but with the original copyright notice.
106         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
107         * lib/unicase/ignorable.h: Likewise.
108         * lib/unicase/tocasefold.h: Likewise.
109         * lib/unicase/tolower.h: Likewise.
110         * lib/unicase/totitle.h: Likewise.
111         * lib/unicase/toupper.h: Likewise.
112         * lib/unictype/bidi_of.h: Likewise.
113         * lib/unictype/blocks.h: Likewise.
114         * lib/unictype/categ_C.h: Likewise.
115         * lib/unictype/categ_Cn.h: Likewise.
116         * lib/unictype/categ_L.h: Likewise.
117         * lib/unictype/categ_Ll.h: Likewise.
118         * lib/unictype/categ_Lm.h: Likewise.
119         * lib/unictype/categ_Lo.h: Likewise.
120         * lib/unictype/categ_Lu.h: Likewise.
121         * lib/unictype/categ_M.h: Likewise.
122         * lib/unictype/categ_Mc.h: Likewise.
123         * lib/unictype/categ_Me.h: Likewise.
124         * lib/unictype/categ_Mn.h: Likewise.
125         * lib/unictype/categ_N.h: Likewise.
126         * lib/unictype/categ_Nd.h: Likewise.
127         * lib/unictype/categ_No.h: Likewise.
128         * lib/unictype/categ_P.h: Likewise.
129         * lib/unictype/categ_Po.h: Likewise.
130         * lib/unictype/categ_S.h: Likewise.
131         * lib/unictype/categ_Sc.h: Likewise.
132         * lib/unictype/categ_Sk.h: Likewise.
133         * lib/unictype/categ_Sm.h: Likewise.
134         * lib/unictype/categ_So.h: Likewise.
135         * lib/unictype/categ_of.h: Likewise.
136         * lib/unictype/combining.h: Likewise.
137         * lib/unictype/ctype_alnum.h: Likewise.
138         * lib/unictype/ctype_alpha.h: Likewise.
139         * lib/unictype/ctype_graph.h: Likewise.
140         * lib/unictype/ctype_lower.h: Likewise.
141         * lib/unictype/ctype_print.h: Likewise.
142         * lib/unictype/ctype_punct.h: Likewise.
143         * lib/unictype/ctype_upper.h: Likewise.
144         * lib/unictype/decdigit.h: Likewise.
145         * lib/unictype/digit.h: Likewise.
146         * lib/unictype/numeric.h: Likewise.
147         * lib/unictype/pr_alphabetic.h: Likewise.
148         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
149         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
150         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
151         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
152         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
153         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
154         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
155         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
156         * lib/unictype/pr_case_ignorable.h: Likewise.
157         * lib/unictype/pr_cased.h: Likewise.
158         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
159         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
160         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
161         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
162         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
163         * lib/unictype/pr_combining.h: Likewise.
164         * lib/unictype/pr_composite.h: Likewise.
165         * lib/unictype/pr_currency_symbol.h: Likewise.
166         * lib/unictype/pr_decimal_digit.h: Likewise.
167         * lib/unictype/pr_deprecated.h: Likewise.
168         * lib/unictype/pr_format_control.h: Likewise.
169         * lib/unictype/pr_grapheme_base.h: Likewise.
170         * lib/unictype/pr_grapheme_extend.h: Likewise.
171         * lib/unictype/pr_grapheme_link.h: Likewise.
172         * lib/unictype/pr_id_continue.h: Likewise.
173         * lib/unictype/pr_id_start.h: Likewise.
174         * lib/unictype/pr_ideographic.h: Likewise.
175         * lib/unictype/pr_lowercase.h: Likewise.
176         * lib/unictype/pr_math.h: Likewise.
177         * lib/unictype/pr_numeric.h: Likewise.
178         * lib/unictype/pr_other_alphabetic.h: Likewise.
179         * lib/unictype/pr_other_id_continue.h: Likewise.
180         * lib/unictype/pr_other_math.h: Likewise.
181         * lib/unictype/pr_punctuation.h: Likewise.
182         * lib/unictype/pr_sentence_terminal.h: Likewise.
183         * lib/unictype/pr_terminal_punctuation.h: Likewise.
184         * lib/unictype/pr_unassigned_code_value.h: Likewise.
185         * lib/unictype/pr_unified_ideograph.h: Likewise.
186         * lib/unictype/pr_uppercase.h: Likewise.
187         * lib/unictype/pr_xid_continue.h: Likewise.
188         * lib/unictype/pr_xid_start.h: Likewise.
189         * lib/unictype/scripts.h: Likewise.
190         * lib/unictype/scripts_byname.gperf: Likewise.
191         * lib/unictype/sy_java_ident.h: Likewise.
192         * lib/unigbrk/gbrkprop.h: Likewise.
193         * lib/unilbrk/lbrkprop1.h: Likewise.
194         * lib/unilbrk/lbrkprop2.h: Likewise.
195         * lib/uninorm/decomposition-table2.h: Likewise.
196         * lib/uniwbrk/wbrkprop.h: Likewise.
197         * tests/unicase/test-cased.c: Likewise.
198         * tests/unicase/test-ignorable.c: Likewise.
199         * tests/unicase/test-uc_tolower.c: Likewise.
200         * tests/unicase/test-uc_totitle.c: Likewise.
201         * tests/unicase/test-uc_toupper.c: Likewise.
202         * tests/unictype/test-categ_C.c: Likewise.
203         * tests/unictype/test-categ_Cn.c: Likewise.
204         * tests/unictype/test-categ_L.c: Likewise.
205         * tests/unictype/test-categ_Ll.c: Likewise.
206         * tests/unictype/test-categ_Lm.c: Likewise.
207         * tests/unictype/test-categ_Lo.c: Likewise.
208         * tests/unictype/test-categ_Lu.c: Likewise.
209         * tests/unictype/test-categ_M.c: Likewise.
210         * tests/unictype/test-categ_Mc.c: Likewise.
211         * tests/unictype/test-categ_Me.c: Likewise.
212         * tests/unictype/test-categ_Mn.c: Likewise.
213         * tests/unictype/test-categ_N.c: Likewise.
214         * tests/unictype/test-categ_Nd.c: Likewise.
215         * tests/unictype/test-categ_No.c: Likewise.
216         * tests/unictype/test-categ_P.c: Likewise.
217         * tests/unictype/test-categ_Po.c: Likewise.
218         * tests/unictype/test-categ_S.c: Likewise.
219         * tests/unictype/test-categ_Sc.c: Likewise.
220         * tests/unictype/test-categ_Sk.c: Likewise.
221         * tests/unictype/test-categ_Sm.c: Likewise.
222         * tests/unictype/test-categ_So.c: Likewise.
223         * tests/unictype/test-ctype_alnum.c: Likewise.
224         * tests/unictype/test-ctype_alpha.c: Likewise.
225         * tests/unictype/test-ctype_graph.c: Likewise.
226         * tests/unictype/test-ctype_lower.c: Likewise.
227         * tests/unictype/test-ctype_print.c: Likewise.
228         * tests/unictype/test-ctype_punct.c: Likewise.
229         * tests/unictype/test-ctype_upper.c: Likewise.
230         * tests/unictype/test-decdigit.h: Likewise.
231         * tests/unictype/test-digit.h: Likewise.
232         * tests/unictype/test-numeric.h: Likewise.
233         * tests/unictype/test-pr_alphabetic.c: Likewise.
234         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
235         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
236         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
237         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
238         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
239         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
240         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
241         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
242         * tests/unictype/test-pr_case_ignorable.c: Likewise.
243         * tests/unictype/test-pr_cased.c: Likewise.
244         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
245         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
246         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
247         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
248         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
249         * tests/unictype/test-pr_combining.c: Likewise.
250         * tests/unictype/test-pr_composite.c: Likewise.
251         * tests/unictype/test-pr_currency_symbol.c: Likewise.
252         * tests/unictype/test-pr_decimal_digit.c: Likewise.
253         * tests/unictype/test-pr_deprecated.c: Likewise.
254         * tests/unictype/test-pr_format_control.c: Likewise.
255         * tests/unictype/test-pr_grapheme_base.c: Likewise.
256         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
257         * tests/unictype/test-pr_grapheme_link.c: Likewise.
258         * tests/unictype/test-pr_id_continue.c: Likewise.
259         * tests/unictype/test-pr_id_start.c: Likewise.
260         * tests/unictype/test-pr_ideographic.c: Likewise.
261         * tests/unictype/test-pr_lowercase.c: Likewise.
262         * tests/unictype/test-pr_math.c: Likewise.
263         * tests/unictype/test-pr_numeric.c: Likewise.
264         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
265         * tests/unictype/test-pr_other_id_continue.c: Likewise.
266         * tests/unictype/test-pr_other_math.c: Likewise.
267         * tests/unictype/test-pr_punctuation.c: Likewise.
268         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
269         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
270         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
271         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
272         * tests/unictype/test-pr_uppercase.c: Likewise.
273         * tests/unictype/test-pr_xid_continue.c: Likewise.
274         * tests/unictype/test-pr_xid_start.c: Likewise.
275         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
276         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
277         changes.
278         * lib/unictype/categ_Cc.h: Likewise.
279         * lib/unictype/categ_Cf.h: Likewise.
280         * lib/unictype/categ_Co.h: Likewise.
281         * lib/unictype/categ_Cs.h: Likewise.
282         * lib/unictype/categ_Lt.h: Likewise.
283         * lib/unictype/categ_Nl.h: Likewise.
284         * lib/unictype/categ_Pc.h: Likewise.
285         * lib/unictype/categ_Pd.h: Likewise.
286         * lib/unictype/categ_Pe.h: Likewise.
287         * lib/unictype/categ_Pf.h: Likewise.
288         * lib/unictype/categ_Pi.h: Likewise.
289         * lib/unictype/categ_Ps.h: Likewise.
290         * lib/unictype/categ_Z.h: Likewise.
291         * lib/unictype/categ_Zl.h: Likewise.
292         * lib/unictype/categ_Zp.h: Likewise.
293         * lib/unictype/categ_Zs.h: Likewise.
294         * lib/unictype/ctype_blank.h: Likewise.
295         * lib/unictype/ctype_cntrl.h: Likewise.
296         * lib/unictype/ctype_digit.h: Likewise.
297         * lib/unictype/ctype_space.h: Likewise.
298         * lib/unictype/ctype_xdigit.h: Likewise.
299         * lib/unictype/mirror.h: Likewise.
300         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
301         * lib/unictype/pr_bidi_block_separator.h: Likewise.
302         * lib/unictype/pr_bidi_common_separator.h: Likewise.
303         * lib/unictype/pr_bidi_control.h: Likewise.
304         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
305         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
306         * lib/unictype/pr_bidi_european_digit.h: Likewise.
307         * lib/unictype/pr_bidi_pdf.h: Likewise.
308         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
309         * lib/unictype/pr_bidi_whitespace.h: Likewise.
310         * lib/unictype/pr_dash.h: Likewise.
311         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
312         * lib/unictype/pr_diacritic.h: Likewise.
313         * lib/unictype/pr_extender.h: Likewise.
314         * lib/unictype/pr_hex_digit.h: Likewise.
315         * lib/unictype/pr_hyphen.h: Likewise.
316         * lib/unictype/pr_ids_binary_operator.h: Likewise.
317         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
318         * lib/unictype/pr_ignorable_control.h: Likewise.
319         * lib/unictype/pr_iso_control.h: Likewise.
320         * lib/unictype/pr_join_control.h: Likewise.
321         * lib/unictype/pr_left_of_pair.h: Likewise.
322         * lib/unictype/pr_line_separator.h: Likewise.
323         * lib/unictype/pr_logical_order_exception.h: Likewise.
324         * lib/unictype/pr_non_break.h: Likewise.
325         * lib/unictype/pr_not_a_character.h: Likewise.
326         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
327         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
328         * lib/unictype/pr_other_id_start.h: Likewise.
329         * lib/unictype/pr_other_lowercase.h: Likewise.
330         * lib/unictype/pr_other_uppercase.h: Likewise.
331         * lib/unictype/pr_paired_punctuation.h: Likewise.
332         * lib/unictype/pr_paragraph_separator.h: Likewise.
333         * lib/unictype/pr_pattern_syntax.h: Likewise.
334         * lib/unictype/pr_pattern_white_space.h: Likewise.
335         * lib/unictype/pr_private_use.h: Likewise.
336         * lib/unictype/pr_quotation_mark.h: Likewise.
337         * lib/unictype/pr_radical.h: Likewise.
338         * lib/unictype/pr_soft_dotted.h: Likewise.
339         * lib/unictype/pr_space.h: Likewise.
340         * lib/unictype/pr_titlecase.h: Likewise.
341         * lib/unictype/pr_variation_selector.h: Likewise.
342         * lib/unictype/pr_white_space.h: Likewise.
343         * lib/unictype/pr_zero_width.h: Likewise.
344         * lib/unictype/sy_c_ident.h: Likewise.
345         * lib/unictype/sy_c_whitespace.h: Likewise.
346         * lib/unictype/sy_java_whitespace.h: Likewise.
347         * lib/uninorm/composition-table.gperf: Likewise.
348         * lib/uninorm/decomposition-table1.h: Likewise.
349         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
350         LB8.
351         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
352         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
353         * modules/unictype/*: Bump version number of expected libunistring
354         version.
355
356 2011-01-09  Bruno Haible  <bruno@clisp.org>
357
358         Update to Unicode 5.2.0.
359         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
360         trailing whitespace removed.
361
362 2011-01-09  Bruno Haible  <bruno@clisp.org>
363
364         New Unicode character properties, from Unicode 5.2.0.
365         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
366         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
367         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
368         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
369         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
370         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
371         uc_is_property_cased, uc_is_property_case_ignorable,
372         uc_is_property_changes_when_lowercased,
373         uc_is_property_changes_when_uppercased,
374         uc_is_property_changes_when_titlecased,
375         uc_is_property_changes_when_casefolded,
376         uc_is_property_changes_when_casemapped): New declarations.
377         * lib/unictype/pr_byname.gperf: Add the new properties.
378         * modules/unictype/property-byname (Depends-on): Depend on the new
379         properties modules.
380         * modules/unictype/property-all (Depends-on): Likewise.
381         * MODULES.html.sh (Unicode string functions): Add
382         unictype/property-case-ignorable, unictype/property-cased,
383         unictype/property-changes-when-casefolded,
384         unictype/property-changes-when-casemapped,
385         unictype/property-changes-when-lowercased,
386         unictype/property-changes-when-titlecased,
387         unictype/property-changes-when-uppercased.
388
389         New module 'unictype/property-changes-when-casemapped'.
390         * modules/unictype/property-changes-when-casemapped: New file.
391         * lib/unictype/pr_changes_when_casemapped.c: New file.
392         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
393         generated by gen-uni-tables.
394         * modules/unictype/property-changes-when-casemapped-tests: New file.
395         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
396         automatically generated by gen-uni-tables.
397
398         New module 'unictype/property-changes-when-casefolded'.
399         * modules/unictype/property-changes-when-casefolded: New file.
400         * lib/unictype/pr_changes_when_casefolded.c: New file.
401         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
402         generated by gen-uni-tables.
403         * modules/unictype/property-changes-when-casefolded-tests: New file.
404         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
405         automatically generated by gen-uni-tables.
406
407         New module 'unictype/property-changes-when-titlecased'.
408         * modules/unictype/property-changes-when-titlecased: New file.
409         * lib/unictype/pr_changes_when_titlecased.c: New file.
410         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
411         generated by gen-uni-tables.
412         * modules/unictype/property-changes-when-titlecased-tests: New file.
413         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
414         automatically generated by gen-uni-tables.
415
416         New module 'unictype/property-changes-when-uppercased'.
417         * modules/unictype/property-changes-when-uppercased: New file.
418         * lib/unictype/pr_changes_when_uppercased.c: New file.
419         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
420         generated by gen-uni-tables.
421         * modules/unictype/property-changes-when-uppercased-tests: New file.
422         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
423         automatically generated by gen-uni-tables.
424
425         New module 'unictype/property-changes-when-lowercased'.
426         * modules/unictype/property-changes-when-lowercased: New file.
427         * lib/unictype/pr_changes_when_lowercased.c: New file.
428         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
429         generated by gen-uni-tables.
430         * modules/unictype/property-changes-when-lowercased-tests: New file.
431         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
432         automatically generated by gen-uni-tables.
433
434         New module 'unictype/property-case-ignorable'.
435         * modules/unictype/property-case-ignorable: New file.
436         * lib/unictype/pr_case_ignorable.c: New file.
437         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
438         by gen-uni-tables.
439         * modules/unictype/property-case-ignorable-tests: New file.
440         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
441         generated by gen-uni-tables.
442
443         New module 'unictype/property-cased'.
444         * modules/unictype/property-cased: New file.
445         * lib/unictype/pr_cased.c: New file.
446         * lib/unictype/pr_cased.h: New file, automatically generated by
447         gen-uni-tables.
448         * modules/unictype/property-cased-tests: New file.
449         * tests/unictype/test-pr_cased.c: New file, automatically generated by
450         gen-uni-tables.
451
452 2011-01-09  Bruno Haible  <bruno@clisp.org>
453
454         Update to Unicode 5.2.0.
455         * lib/gen-uni-tables.c (output_predicate, output_category,
456         output_combclass, output_bidi_category, output_decimal_digit_test,
457         output_decimal_digit, output_digit_test, output_digit,
458         output_numeric_test, output_numeric, output_mirror, output_scripts,
459         output_scripts_byname, output_blocks, output_ident_category): Fix
460         comment header.
461         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
462         get_wbp.
463         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
464         items.
465         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
466         Changes_When_Lowercased, Changes_When_Uppercased,
467         Changes_When_Titlecased, Changes_When_Casefolded,
468         Changes_When_Casemapped.
469         (is_property_alphabetic, is_property_default_ignorable_code_point):
470         Update for Unicode 5.2.0.
471         (is_property_cased, is_property_case_ignorable,
472         is_property_changes_when_lowercased,
473         is_property_changes_when_uppercased,
474         is_property_changes_when_titlecased,
475         is_property_changes_when_casefolded,
476         is_property_changes_when_casemapped): New functions.
477         (output_properties): Output also the properties cased, case_ignorable,
478         changes_when_lowercased, changes_when_uppercased,
479         changes_when_titlecased, changes_when_casefolded,
480         changes_when_casemapped.
481         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
482         Unicode TR#11 revision 17 -> 19.
483         (LBP_CP): New enumeration value.
484         (LBP_*): Adjust values accordingly.
485         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
486         TR#14 revision 22 -> 24.
487         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
488         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
489         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
490         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
491         is_WBP_MIDLETTER.
492         (output_composition_tables): Allow for 24 bits instead of 16 bits in
493         the code1 and code2 of each composition rule.
494         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
495         * lib/unicase/ignorable.h: Likewise.
496         * lib/unicase/tocasefold.h: Likewise.
497         * lib/unicase/tolower.h: Likewise.
498         * lib/unicase/totitle.h: Likewise.
499         * lib/unicase/toupper.h: Likewise.
500         * lib/unictype/bidi_of.h: Likewise.
501         * lib/unictype/blocks.h: Likewise.
502         * lib/unictype/categ_C.h: Likewise.
503         * lib/unictype/categ_Cf.h: Likewise.
504         * lib/unictype/categ_Cn.h: Likewise.
505         * lib/unictype/categ_L.h: Likewise.
506         * lib/unictype/categ_Ll.h: Likewise.
507         * lib/unictype/categ_Lm.h: Likewise.
508         * lib/unictype/categ_Lo.h: Likewise.
509         * lib/unictype/categ_Lu.h: Likewise.
510         * lib/unictype/categ_M.h: Likewise.
511         * lib/unictype/categ_Mc.h: Likewise.
512         * lib/unictype/categ_Mn.h: Likewise.
513         * lib/unictype/categ_N.h: Likewise.
514         * lib/unictype/categ_Nd.h: Likewise.
515         * lib/unictype/categ_Nl.h: Likewise.
516         * lib/unictype/categ_No.h: Likewise.
517         * lib/unictype/categ_P.h: Likewise.
518         * lib/unictype/categ_Pd.h: Likewise.
519         * lib/unictype/categ_Po.h: Likewise.
520         * lib/unictype/categ_S.h: Likewise.
521         * lib/unictype/categ_Sc.h: Likewise.
522         * lib/unictype/categ_So.h: Likewise.
523         * lib/unictype/categ_of.h: Likewise.
524         * lib/unictype/combining.h: Likewise.
525         * lib/unictype/ctype_alnum.h: Likewise.
526         * lib/unictype/ctype_alpha.h: Likewise.
527         * lib/unictype/ctype_graph.h: Likewise.
528         * lib/unictype/ctype_lower.h: Likewise.
529         * lib/unictype/ctype_print.h: Likewise.
530         * lib/unictype/ctype_punct.h: Likewise.
531         * lib/unictype/ctype_upper.h: Likewise.
532         * lib/unictype/decdigit.h: Likewise.
533         * lib/unictype/digit.h: Likewise.
534         * lib/unictype/numeric.h: Likewise.
535         * lib/unictype/pr_alphabetic.h: Likewise.
536         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
537         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
538         * lib/unictype/pr_bidi_european_digit.h: Likewise.
539         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
540         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
541         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
542         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
543         * lib/unictype/pr_combining.h: Likewise.
544         * lib/unictype/pr_composite.h: Likewise.
545         * lib/unictype/pr_currency_symbol.h: Likewise.
546         * lib/unictype/pr_dash.h: Likewise.
547         * lib/unictype/pr_decimal_digit.h: Likewise.
548         * lib/unictype/pr_deprecated.h: Likewise.
549         * lib/unictype/pr_diacritic.h: Likewise.
550         * lib/unictype/pr_extender.h: Likewise.
551         * lib/unictype/pr_grapheme_base.h: Likewise.
552         * lib/unictype/pr_grapheme_extend.h: Likewise.
553         * lib/unictype/pr_grapheme_link.h: Likewise.
554         * lib/unictype/pr_id_continue.h: Likewise.
555         * lib/unictype/pr_id_start.h: Likewise.
556         * lib/unictype/pr_ideographic.h: Likewise.
557         * lib/unictype/pr_ignorable_control.h: Likewise.
558         * lib/unictype/pr_logical_order_exception.h: Likewise.
559         * lib/unictype/pr_lowercase.h: Likewise.
560         * lib/unictype/pr_numeric.h: Likewise.
561         * lib/unictype/pr_other_alphabetic.h: Likewise.
562         * lib/unictype/pr_punctuation.h: Likewise.
563         * lib/unictype/pr_sentence_terminal.h: Likewise.
564         * lib/unictype/pr_terminal_punctuation.h: Likewise.
565         * lib/unictype/pr_unassigned_code_value.h: Likewise.
566         * lib/unictype/pr_unified_ideograph.h: Likewise.
567         * lib/unictype/pr_uppercase.h: Likewise.
568         * lib/unictype/pr_xid_continue.h: Likewise.
569         * lib/unictype/pr_xid_start.h: Likewise.
570         * lib/unictype/pr_zero_width.h: Likewise.
571         * lib/unictype/scripts.h: Likewise.
572         * lib/unictype/scripts_byname.gperf: Likewise.
573         * lib/unictype/sy_java_ident.h: Likewise.
574         * lib/unigbrk/gbrkprop.h: Likewise.
575         * lib/unilbrk/lbrkprop1.h: Likewise.
576         * lib/unilbrk/lbrkprop2.h: Likewise.
577         * lib/unilbrk/lbrktables.h: Likewise.
578         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
579         LBP_CP. Implement rule LB30.
580         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
581         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
582         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
583         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
584         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
585         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
586         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
587         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
588         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
589         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
590         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
591         bits instead of 16 bits in the code1 and code2 of each composition
592         rule.
593         (uc_composition): Update for Unicode 5.2.0.
594         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
595         * lib/uninorm/decomposition-table2.h: Likewise.
596         * lib/uniwbrk/wbrkprop.h: Likewise.
597         * tests/unicase/test-cased.c: Likewise.
598         * tests/unicase/test-ignorable.c: Likewise.
599         * tests/unicase/test-uc_tolower.c: Likewise.
600         * tests/unicase/test-uc_totitle.c: Likewise.
601         * tests/unicase/test-uc_toupper.c: Likewise.
602         * tests/unictype/test-categ_C.c: Likewise.
603         * tests/unictype/test-categ_Cf.c: Likewise.
604         * tests/unictype/test-categ_Cn.c: Likewise.
605         * tests/unictype/test-categ_L.c: Likewise.
606         * tests/unictype/test-categ_Ll.c: Likewise.
607         * tests/unictype/test-categ_Lm.c: Likewise.
608         * tests/unictype/test-categ_Lo.c: Likewise.
609         * tests/unictype/test-categ_Lu.c: Likewise.
610         * tests/unictype/test-categ_M.c: Likewise.
611         * tests/unictype/test-categ_Mc.c: Likewise.
612         * tests/unictype/test-categ_Mn.c: Likewise.
613         * tests/unictype/test-categ_N.c: Likewise.
614         * tests/unictype/test-categ_Nd.c: Likewise.
615         * tests/unictype/test-categ_Nl.c: Likewise.
616         * tests/unictype/test-categ_No.c: Likewise.
617         * tests/unictype/test-categ_P.c: Likewise.
618         * tests/unictype/test-categ_Pd.c: Likewise.
619         * tests/unictype/test-categ_Po.c: Likewise.
620         * tests/unictype/test-categ_S.c: Likewise.
621         * tests/unictype/test-categ_Sc.c: Likewise.
622         * tests/unictype/test-categ_So.c: Likewise.
623         * tests/unictype/test-ctype_alnum.c: Likewise.
624         * tests/unictype/test-ctype_alpha.c: Likewise.
625         * tests/unictype/test-ctype_graph.c: Likewise.
626         * tests/unictype/test-ctype_lower.c: Likewise.
627         * tests/unictype/test-ctype_print.c: Likewise.
628         * tests/unictype/test-ctype_punct.c: Likewise.
629         * tests/unictype/test-ctype_upper.c: Likewise.
630         * tests/unictype/test-decdigit.h: Likewise.
631         * tests/unictype/test-digit.h: Likewise.
632         * tests/unictype/test-numeric.h: Likewise.
633         * tests/unictype/test-pr_alphabetic.c: Likewise.
634         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
635         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
636         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
637         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
638         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
639         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
640         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
641         * tests/unictype/test-pr_combining.c: Likewise.
642         * tests/unictype/test-pr_composite.c: Likewise.
643         * tests/unictype/test-pr_currency_symbol.c: Likewise.
644         * tests/unictype/test-pr_dash.c: Likewise.
645         * tests/unictype/test-pr_decimal_digit.c: Likewise.
646         * tests/unictype/test-pr_deprecated.c: Likewise.
647         * tests/unictype/test-pr_diacritic.c: Likewise.
648         * tests/unictype/test-pr_extender.c: Likewise.
649         * tests/unictype/test-pr_grapheme_base.c: Likewise.
650         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
651         * tests/unictype/test-pr_grapheme_link.c: Likewise.
652         * tests/unictype/test-pr_id_continue.c: Likewise.
653         * tests/unictype/test-pr_id_start.c: Likewise.
654         * tests/unictype/test-pr_ideographic.c: Likewise.
655         * tests/unictype/test-pr_ignorable_control.c: Likewise.
656         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
657         * tests/unictype/test-pr_lowercase.c: Likewise.
658         * tests/unictype/test-pr_numeric.c: Likewise.
659         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
660         * tests/unictype/test-pr_punctuation.c: Likewise.
661         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
662         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
663         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
664         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
665         * tests/unictype/test-pr_uppercase.c: Likewise.
666         * tests/unictype/test-pr_xid_continue.c: Likewise.
667         * tests/unictype/test-pr_xid_start.c: Likewise.
668         * tests/unictype/test-pr_zero_width.c: Likewise.
669         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
670         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
671         changed behaviour: line breaking is now disallowed between a letter
672         or '=' and '('.
673         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
674         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
675         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
676         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
677         * tests/uniwidth/test-uc_width2.sh: Same updates as in
678         lib/uniwidth/width.c.
679         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
680         without comments, but with the original copyright notice.
681         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
682         changes.
683         * lib/unictype/categ_Cc.h: Likewise.
684         * lib/unictype/categ_Co.h: Likewise.
685         * lib/unictype/categ_Cs.h: Likewise.
686         * lib/unictype/categ_Lt.h: Likewise.
687         * lib/unictype/categ_Me.h: Likewise.
688         * lib/unictype/categ_Pc.h: Likewise.
689         * lib/unictype/categ_Pe.h: Likewise.
690         * lib/unictype/categ_Pf.h: Likewise.
691         * lib/unictype/categ_Pi.h: Likewise.
692         * lib/unictype/categ_Ps.h: Likewise.
693         * lib/unictype/categ_Sk.h: Likewise.
694         * lib/unictype/categ_Sm.h: Likewise.
695         * lib/unictype/categ_Z.h: Likewise.
696         * lib/unictype/categ_Zl.h: Likewise.
697         * lib/unictype/categ_Zp.h: Likewise.
698         * lib/unictype/categ_Zs.h: Likewise.
699         * lib/unictype/ctype_blank.h: Likewise.
700         * lib/unictype/ctype_cntrl.h: Likewise.
701         * lib/unictype/ctype_digit.h: Likewise.
702         * lib/unictype/ctype_space.h: Likewise.
703         * lib/unictype/ctype_xdigit.h: Likewise.
704         * lib/unictype/mirror.h: Likewise.
705         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
706         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
707         * lib/unictype/pr_bidi_block_separator.h: Likewise.
708         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
709         * lib/unictype/pr_bidi_common_separator.h: Likewise.
710         * lib/unictype/pr_bidi_control.h: Likewise.
711         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
712         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
713         * lib/unictype/pr_bidi_pdf.h: Likewise.
714         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
715         * lib/unictype/pr_bidi_whitespace.h: Likewise.
716         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
717         * lib/unictype/pr_format_control.h: Likewise.
718         * lib/unictype/pr_hex_digit.h: Likewise.
719         * lib/unictype/pr_hyphen.h: Likewise.
720         * lib/unictype/pr_ids_binary_operator.h: Likewise.
721         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
722         * lib/unictype/pr_iso_control.h: Likewise.
723         * lib/unictype/pr_join_control.h: Likewise.
724         * lib/unictype/pr_left_of_pair.h: Likewise.
725         * lib/unictype/pr_line_separator.h: Likewise.
726         * lib/unictype/pr_math.h: Likewise.
727         * lib/unictype/pr_non_break.h: Likewise.
728         * lib/unictype/pr_not_a_character.h: Likewise.
729         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
730         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
731         * lib/unictype/pr_other_id_continue.h: Likewise.
732         * lib/unictype/pr_other_id_start.h: Likewise.
733         * lib/unictype/pr_other_lowercase.h: Likewise.
734         * lib/unictype/pr_other_math.h: Likewise.
735         * lib/unictype/pr_other_uppercase.h: Likewise.
736         * lib/unictype/pr_paired_punctuation.h: Likewise.
737         * lib/unictype/pr_paragraph_separator.h: Likewise.
738         * lib/unictype/pr_pattern_syntax.h: Likewise.
739         * lib/unictype/pr_pattern_white_space.h: Likewise.
740         * lib/unictype/pr_private_use.h: Likewise.
741         * lib/unictype/pr_quotation_mark.h: Likewise.
742         * lib/unictype/pr_radical.h: Likewise.
743         * lib/unictype/pr_soft_dotted.h: Likewise.
744         * lib/unictype/pr_space.h: Likewise.
745         * lib/unictype/pr_titlecase.h: Likewise.
746         * lib/unictype/pr_variation_selector.h: Likewise.
747         * lib/unictype/pr_white_space.h: Likewise.
748         * lib/unictype/sy_c_ident.h: Likewise.
749         * lib/unictype/sy_c_whitespace.h: Likewise.
750         * lib/unictype/sy_java_whitespace.h: Likewise.
751         * modules/uni*/*: Bump version number of expected libunistring version.
752         Reported by Simon Josefsson.
753
754 2011-01-09  Karl Heuer  <kwzh@gnu.org>
755
756         useless-if-before-free: fix typo in --help and make the internal,
757         automatic version date update process work once again.
758         --help output contained a NUL character instead of the
759         backslash-zero that was intended.  Also, the "must lie within
760         the first 8 lines" line is on line 9, and hence not getting
761         automatically updated.
762         * build-aux/useless-if-before-free: Fix the former by adding a
763         backslash, and the latter by condensing the three lines of what-it-does
764         to a single line, leaving one line of slack for the future.
765
766 2011-01-09  Bruno Haible  <bruno@clisp.org>
767
768         uniwidth/width: Fix width of U+1D173..U+1D17A.
769         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
770         symbolic_width, output_width_property_test): New functions.
771         (main): Invoke output_nonspacing_property, output_width_property_test.
772         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
773         U+1D173..U+1D17A.
774         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
775         1.
776         * modules/uniwidth/*: Bump version number of expected libunistring
777         version.
778         * modules/unilbrk/*: Likewise.
779
780 2011-01-08  Bruno Haible  <bruno@clisp.org>
781
782         uninorm tests: Preserve copyright of Unicode data file.
783         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
784         Mention modifications.
785
786 2011-01-08  Bruno Haible  <bruno@clisp.org>
787
788         gen-uni-tables: Prepare for Unicode 5.2.0.
789         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
790         (debug_output_lbp, output_lbp): Update.
791
792 2011-01-08  Bruno Haible  <bruno@clisp.org>
793
794         unilbrk: Clarify gen-uni-tables.c code.
795         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
796         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
797         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
798
799 2011-01-07  Bruno Haible  <bruno@clisp.org>
800
801         strtod: Restore errno when successfully parsing Infinity or NaN.
802         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
803         restore the original errno.
804
805 2011-01-07  Bruno Haible  <bruno@clisp.org>
806
807         remove test: Avoid failure on HP-UX 11.
808         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
809
810 2011-01-07  Bruno Haible  <bruno@clisp.org>
811
812         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
813         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
814         error code.
815
816 2011-01-07  Pádraig Brady <P@draigBrady.com>
817
818         ignore-value: fixup comments, and add Eric Blake
819         as an author since he rewrote the macros.
820         * lib/ignore-value.h (ignore_value):  State that
821         we now support aggregates.  Also specify exactly
822         when the GCC warn_unused_result feature was added.
823
824 2011-01-06  Eric Blake  <eblake@redhat.com>
825
826         ignore-value: support aggregate types
827         * lib/ignore-value.h (ignore_value): Provide separate gcc
828         definition.
829         * modules/ignore-value-tests: New test module.
830         * tests/test-ignore-value.c: New test.
831
832         maint.mk: improve sc_prohibit_strcmp regex
833         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
834         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
835         definition of STRNEQ.
836
837         signal: work around Haiku issue with SIGBUS
838         * lib/siglist.h: Add comment.
839         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
840         strsignal's favoring of SIGSEGV.
841         * tests/test-signal.c (main): Avoid test failure.
842         * doc/posix-headers/signal.texi (signal.h): Document the issue.
843         Reported by Scott McCreary.
844
845         maint.mk: add pre-release check to ensure submodule commits are public
846         * top/maint.mk (public-submodule-commit): New rule.
847         (submodule-checks): New variable.
848         (alpha beta stable): Depend on the variable.
849
850 2011-01-05  Pádraig Brady <P@draigBrady.com>
851         and Jim Meyering  <meyering@redhat.com>
852
853         ignore-value: make ignore_value more generic; deprecate ignore_ptr
854         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
855         (ATTRIBUTE_DEPRECATED): Define.
856         (_ignore_case): New function.
857         (ignore_value): New macro, to replace the old function.
858         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
859         * modules/ignore-value (Depends-on): Add stdint.
860
861 2011-01-04  Eric Blake  <eblake@redhat.com>
862
863         doc: regenerate INSTALL
864         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
865         @firstparagraphindent support, now that autoconf dropped it.
866         (INSTALL_PRELUDE): Reinstate old macro.
867         * doc/install.texi: Resync from autoconf.
868         * doc/INSTALL: Reflect recent autoconf update.
869         * doc/INSTALL.ISO: Likewise.
870         * doc/INSTALL.UTF-8: Likewise.
871         Reported by Karl Berry.
872
873 2011-01-04  Bruce Korb  <address@hidden>
874
875         git-version-gen: avoid a sub-shell
876         * build-aux/git-version-gen: Redirect stderr in `...` via
877         "exec 2>...", rather than via an added sub-shell.
878
879 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
880
881         git-version-gen: use (...) rather than sh -c '...'
882         * build-aux/git-version-gen: Rather than hard-coding a shell's name
883         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
884
885 2011-01-03  Jim Meyering  <meyering@redhat.com>
886
887         git-version-gen: convert leading TABs to spaces
888         * build-aux/git-version-gen: Expand leading TABs.
889
890         git-version-gen: handle failed "git rev-list"
891         * build-aux/git-version-gen: Rather than leaking a "fatal" error
892         from git and proceeding as if it had succeeded but printed no SHA1
893         checksums, suppress the diagnostic and handle the failure.
894         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
895
896         git-version-gen: include command name in one more diagnostic
897         * build-aux/git-version-gen: When the required .tarball-version file
898         was missing or unreadable, you might see the diagnostic from "cat",
899         but no trace of the name of the invoking script.  Now, you still see
900         the diagnostic from cat, but also get one from "git-version-gen: ".
901         Inspired by a patch from Bruce Korb.
902
903         update-copyright: adjust test to match changed code
904         * tests/test-update-copyright.sh: Change test's expected output
905         to match new actual output.
906
907 2011-01-02  Bruno Haible  <bruno@clisp.org>
908
909         getlogin_r: Avoid test failure on HP-UX 11.
910         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
911         ERANGE when the second argument is zero.
912         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
913         portability problem.
914
915 2011-01-02  Bruce Korb  <bkorb@gnu.org>
916
917         * build-aux/update-copyright: doc Simon's changes
918
919 2011-01-02  Simon Josefsson  <simon@josefsson.org>
920
921         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
922         environment variable.
923
924 2011-01-02  Bruno Haible  <bruno@clisp.org>
925
926         unigbrk: Avoid gcc warnings.
927         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
928         unused variable.
929         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
930         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
931         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
932         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
933         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
934         Change type of first argument to 'const char *'.
935         (main): Remove unused variable.
936         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
937         type of first argument to 'const char *'.
938         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
939         Likewise.
940         (main): Change type of variable 's'.
941         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
942         to 'int'.
943
944 2011-01-02  Bruno Haible  <bruno@clisp.org>
945
946         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
947         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
948         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
949         bug.
950         * lib/pwrite.c: Undo 2010-12-31 patch.
951         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
952
953 2011-01-02  Bruno Haible  <bruno@clisp.org>
954
955         pread: Fix test whether it works.
956         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
957
958 2011-01-02  Bruno Haible  <bruno@clisp.org>
959
960         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
961         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
962         ends in "6". Don't require a specific month name. Try also the locale
963         names found on HP-UX 11 and Solaris 7.
964
965 2011-01-02  Bruno Haible  <bruno@clisp.org>
966
967         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
968         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
969         C linkage.
970         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
971
972 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
973
974         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
975         for consistency, since the "cluster" term is not used elsewhere.
976         * lib/unigbrk.in.h: Update name.
977         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
978         * lib/unigbrk/u16-grapheme-next.c: Update name.
979         * lib/unigbrk/u16-grapheme-prev.c: Update name.
980         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
981         * lib/unigbrk/u32-grapheme-next.c: Update name.
982         * lib/unigbrk/u32-grapheme-prev.c: Update name.
983         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
984         * lib/unigbrk/u8-grapheme-next.c: Update name.
985         * lib/unigbrk/u8-grapheme-prev.c: Update name.
986         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
987         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
988         Suggested by Bruno Haible.
989
990 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
991
992         Remove module 'u8-grapheme-len' as too redundant with
993         'u8-grapheme-next'.
994         * modules/unigbrk/u8-grapheme-len: Delete file.
995         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
996         * lib/unigbrk.in.h: Remove prototype for deleted function.
997         * lib/unigbrk/u8-grapheme-len.c: Delete file.
998         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
999
1000         Remove module 'u16-grapheme-len' as too redundant with
1001         'u16-grapheme-next'.
1002         * modules/unigbrk/u16-grapheme-len: Delete file.
1003         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1004         * lib/unigbrk.in.h: Remove prototype for deleted function.
1005         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1006         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1007
1008         Remove module 'u32-grapheme-len' as too redundant with
1009         'u32-grapheme-next'.
1010         * modules/unigbrk/u32-grapheme-len: Delete file.
1011         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1012         * lib/unigbrk.in.h: Remove prototype for deleted function.
1013         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1014         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1015
1016         Suggested by Bruno Haible.
1017
1018 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1019
1020         * unigbrk.in.h: Fix typo: "ben" => "been".
1021         Reported by Bruno Haible.
1022
1023 2011-01-01  Jim Meyering  <meyering@redhat.com>
1024
1025         maint: update almost all copyright ranges to include 2011
1026         Run the new "make update-copyright" rule.
1027
1028 2011-01-01  Jim Meyering  <meyering@redhat.com>
1029
1030         maint: update-copyright: exempt doc/INSTALL*
1031         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1032         since they are generated.  Suggested by Bruno Haible.
1033
1034 2011-01-01  Jim Meyering  <meyering@redhat.com>
1035
1036         maint: refine the update-copyright rule
1037         * Makefile (update-copyright): Also exclude any file that includes
1038         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1039         code that merely generates the comment.
1040
1041 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1042
1043         New module 'u8-grapheme-len'.
1044         * modules/unigbrk/u8-grapheme-len: New file.
1045         * modules/unigbrk/u8-grapheme-len-tests: New file.
1046         * lib/unigbrk.in.h: Add prototype for new function.
1047         * lib/unigbrk/u8-grapheme-len.c: New file.
1048         * tests/unigbrk/test-u8-grapheme-len.c: New file.
1049
1050         New module 'u16-grapheme-len'.
1051         * modules/unigbrk/u16-grapheme-len: New file.
1052         * modules/unigbrk/u16-grapheme-len-tests: New file.
1053         * lib/unigbrk.in.h: Add prototype for new function.
1054         * lib/unigbrk/u16-grapheme-len.c: New file.
1055         * tests/unigbrk/test-u16-grapheme-len.c: New file.
1056
1057         New module 'u32-grapheme-len'.
1058         * modules/unigbrk/u32-grapheme-len: New file.
1059         * modules/unigbrk/u32-grapheme-len-tests: New file.
1060         * lib/unigbrk.in.h: Add prototype for new function.
1061         * lib/unigbrk/u32-grapheme-len.c: New file.
1062         * tests/unigbrk/test-u32-grapheme-len.c: New file.
1063
1064         New module 'u8-grapheme-next'.
1065         * modules/unigbrk/u8-grapheme-next: New file.
1066         * modules/unigbrk/u8-grapheme-next-tests: New file.
1067         * lib/unigbrk.in.h: Add prototype for new function.
1068         * lib/unigbrk/u8-grapheme-next.c: New file.
1069         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1070
1071         New module 'u16-grapheme-next'.
1072         * modules/unigbrk/u16-grapheme-next: New file.
1073         * modules/unigbrk/u16-grapheme-next-tests: New file.
1074         * lib/unigbrk.in.h: Add prototype for new function.
1075         * lib/unigbrk/u16-grapheme-next.c: New file.
1076         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1077
1078         New module 'u32-grapheme-next'.
1079         * modules/unigbrk/u32-grapheme-next: New file.
1080         * modules/unigbrk/u32-grapheme-next-tests: New file.
1081         * lib/unigbrk.in.h: Add prototype for new function.
1082         * lib/unigbrk/u32-grapheme-next.c: New file.
1083         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1084
1085         New module 'u8-grapheme-prev'.
1086         * modules/unigbrk/u8-grapheme-prev: New file.
1087         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1088         * lib/unigbrk.in.h: Add prototype for new function.
1089         * lib/unigbrk/u8-grapheme-prev.c: New file.
1090         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1091
1092         New module 'u16-grapheme-prev'.
1093         * modules/unigbrk/u16-grapheme-prev: New file.
1094         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1095         * lib/unigbrk.in.h: Add prototype for new function.
1096         * lib/unigbrk/u16-grapheme-prev.c: New file.
1097         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1098
1099         New module 'u32-grapheme-prev'.
1100         * modules/unigbrk/u32-grapheme-prev: New file.
1101         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1102         * lib/unigbrk.in.h: Add prototype for new function.
1103         * lib/unigbrk/u32-grapheme-prev.c: New file.
1104         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1105
1106         New module 'u8-grapheme-breaks'.
1107         * modules/unigbrk/u8-grapheme-breaks: New file.
1108         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1109         * lib/unigbrk.in.h: Add prototype for new function.
1110         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1111         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1112
1113         New module 'u16-grapheme-breaks'.
1114         * modules/unigbrk/u16-grapheme-breaks: New file.
1115         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1116         * lib/unigbrk.in.h: Add prototype for new function.
1117         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1118         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1119
1120         New module 'u32-grapheme-breaks'.
1121         * modules/unigbrk/u32-grapheme-breaks: New file.
1122         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1123         * lib/unigbrk.in.h: Add prototype for new function.
1124         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1125         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1126
1127         New module 'ulc-grapheme-breaks'.
1128         * modules/unigbrk/ulc-grapheme-breaks: New file.
1129         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1130         * m4/locale-ar.m4: New file.
1131         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1132         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1133         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1134
1135 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1136
1137         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1138         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1139         modified how this file was generated before I initially submitted
1140         the module, but failed to regenerate it.  This meant that several
1141         of the level2 entries were wrong.
1142         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1143         Remove the division-by-2 that is folded into the table now that
1144         gbrkprop.h has been regenerated properly.  Now -1 entries are
1145         handled correctly.
1146
1147         New module 'unigbrk/uc-gbrk-prop-tests'.
1148         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1149         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1150         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1151         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1152
1153 2011-01-01  Bruno Haible  <bruno@clisp.org>
1154
1155         Avoid use of hexadecimal escapes.
1156         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1157         instead of hexadecimal escapes.
1158
1159 2011-01-01  Jim Meyering  <meyering@redhat.com>
1160
1161         maint: new rule to update copyright year ranges
1162         * Makefile (update-copyright): New rule.
1163
1164         maint: indent with TABs in Makefile
1165         * Makefile: Expand leading sequences of spaces to TABs
1166
1167         version-etc: update the copyright year it reports
1168         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1169
1170 2010-12-31  Bruno Haible  <bruno@clisp.org>
1171
1172         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1173         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1174         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1175         zero.
1176
1177 2010-12-31  Bruno Haible  <bruno@clisp.org>
1178
1179         pwrite: Work around HP-UX 11.11 bug.
1180         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1181         works and set REPLACE_PWRITE if not.
1182         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1183         function.
1184         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1185
1186 2010-12-31  Bruno Haible  <bruno@clisp.org>
1187
1188         pread: Work around HP-UX 11 bugs.
1189         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1190         and set REPLACE_PREAD if not.
1191         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1192
1193 2010-12-31  Eric Blake  <eblake@redhat.com>
1194
1195         nl_langinfo: fix YESEXPR on Irix 6.5
1196         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1197         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1198         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1199         it.
1200
1201 2010-12-31  Bruno Haible  <bruno@clisp.org>
1202
1203         iconv: Document HP-UX 11 bug.
1204         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1205
1206 2010-12-31  Bruno Haible  <bruno@clisp.org>
1207
1208         ldexpl: Fix link error on HP-UX 11.
1209         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1210         LDEXPL_LIBM, using $ISNANL_LIBM.
1211
1212 2010-12-31  Eric Blake  <eblake@redhat.com>
1213
1214         ftello: avoid compilation failure with SunStudio c89
1215         * lib/ftello.c (ftello): Use lseek, not llseek.
1216
1217         tests: avoid failing coreutils tests on cygwin
1218         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1219         (create_exe_shims_): Return 0 when skipping.
1220
1221 2010-12-31  Bruno Haible  <bruno@clisp.org>
1222
1223         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1224         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1225
1226 2010-12-31  Bruno Haible  <bruno@clisp.org>
1227
1228         waitpid: Fix link error in C++ mode.
1229         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1230
1231 2010-12-31  Bruno Haible  <bruno@clisp.org>
1232
1233         isnan: Use GCC built-ins when possible.
1234         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1235         __builtin_isnan.
1236         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1237         (isnan): Define using GCC built-ins for GCC >= 4.0.
1238
1239 2010-12-31  Bruno Haible  <bruno@clisp.org>
1240
1241         isnand: Fix mistake.
1242         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1243         __builtin_isnand.
1244
1245 2010-12-31  Bruno Haible  <bruno@clisp.org>
1246
1247         open: Avoid C++ error on HP-UX 11.
1248         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1249
1250 2010-12-31  Bruno Haible  <bruno@clisp.org>
1251
1252         time_r: Add missing declarations on HP-UX 11.
1253         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1254         instead of HAVE_LOCALTIME_R.
1255         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1256         HAVE_LOCALTIME_R always.
1257         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1258         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1259         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1260         HAVE_LOCALTIME_R.
1261         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1262         * doc/posix-functions/localtime_r.texi: Likewise.
1263
1264 2010-12-29  Eric Blake  <eblake@redhat.com>
1265
1266         mountlist: tweak previous commit
1267         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1268         Reported by Paul Eggert.
1269
1270         mountlist: fix local drive detection on cygwin
1271         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1272         that works for cygwin.
1273
1274 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1275
1276         ftoastr, snprintf: ftoastr + snprintf module
1277         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1278         since the snprintf module now should be good enough here.
1279         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1280         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1281         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1282         GNULIB_SNPRINTF only for the test directory, and the latter
1283         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1284         seems to suffice by itself.
1285
1286 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1287
1288         alloca: one step towards thread-safety
1289         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1290         need for a static variable.  All callers changed.  This does not
1291         make the alloca replacement thread-safe, but it's one step.
1292
1293         tests: minor indenting change
1294         * tests/init.sh: Sync from coreutils housekeeping patch
1295         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1296         to keep lines within 80 columns.
1297
1298 2010-12-28  Jim Meyering  <meyering@redhat.com>
1299
1300         regex: don't infloop on persistent failing calloc
1301         * lib/regexec.c (build_trtable): Return failure indication upon
1302         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1303         In glibc, this was fixed for version 2.13:
1304         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1305
1306 2010-12-28  Bruno Haible  <bruno@clisp.org>
1307             Paul Eggert <eggert@cs.ucla.edu>
1308
1309         linkat: Make implementation robust against system behaviour variations.
1310         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1311         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1312         way, and to -2 if it needs a generic runtime test.
1313         * lib/linkat.c (solaris_optimized_link_immediate,
1314         solaris_optimized_link_follow): New functions.
1315         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1316         (check_same_link): Use it.
1317
1318 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1319
1320         New module 'unigbrk/base'.
1321         * modules/unigbrk/base: New file.
1322         * lib/unigbrk.in.h: New file.
1323
1324         New module 'unigbrk/uc-gbrk-prop'.
1325         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1326         * modules/unigbrk/uc-gbrk-prop: New file.
1327         * lib/unigbrk/gbrkprop.h: New file.
1328         * lib/unigbrk/uc-gbrk-prop.c: New file.
1329
1330         New module 'unigbrk/uc-is-grapheme-break'.
1331         * modules/unigbrk/uc-is-grapheme-break: New file.
1332         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1333         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1334         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1335         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1336         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1337
1338         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1339
1340 2010-12-27  Bruno Haible  <bruno@clisp.org>
1341
1342         linkat test: Avoid failure on Solaris 11 2010-11.
1343         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1344
1345 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1346
1347         utimens: work around glibc rounding bug on more platforms
1348         * lib/utimens.c (fdutimens): Work around rounding bug even if
1349         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1351
1352 2010-12-27  Bruno Haible  <bruno@clisp.org>
1353
1354         select tests: Improve comments.
1355         * tests/test-select.c (do_select): Add comments.
1356
1357 2010-12-27  Bruno Haible  <bruno@clisp.org>
1358
1359         select tests: Safer way of handling timeout.
1360         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1361         at every invocation.
1362
1363 2010-12-27  Bruno Haible  <bruno@clisp.org>
1364
1365         select tests: Use 'bool' where appropriate.
1366         * tests/test-select.c (connect_to_socket): Change argument type to
1367         'bool'.
1368
1369 2010-12-27  Bruno Haible  <bruno@clisp.org>
1370
1371         select tests: Use existing modules.
1372         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1373         (configure.ac): Don't test for unistd.h.
1374         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1375         declared in <unistd.h>.
1376
1377 2010-12-27  Bruno Haible  <bruno@clisp.org>
1378
1379         mbrtowc: Work around a Solaris 7 bug.
1380         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
1381         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
1382         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
1383         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
1384         MBRTOWC_NULL_ARG1_BUG.
1385         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
1386         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
1387         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
1388         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
1389
1390 2010-12-27  Jim Meyering  <meyering@redhat.com>
1391
1392         read-file.c: tweak syntax
1393         * lib/read-file.c (fread_file): Remove space after "*" in function
1394         definitions.
1395
1396 2010-12-27  Bruno Haible  <bruno@clisp.org>
1397
1398         times test: Avoid gcc warnings on OSF/1.
1399         * tests/test-times.c (main): Cast printf arguments from clock_t to
1400         'long int'.
1401
1402 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1403
1404         utimens: work around glibc rounding bug on older Linux kernels
1405         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
1406         on Linux with a glibc whose utimes might not work, then work
1407         around a longstanding glibc bug involving rounding rather than
1408         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
1409         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1410
1411 2010-12-26  Bruno Haible  <bruno@clisp.org>
1412
1413         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
1414         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
1415         _GL_CXXALIAS_SYS.
1416         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1417
1418 2010-12-26  Bruno Haible  <bruno@clisp.org>
1419
1420         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
1421         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
1422         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1423         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
1424         looking for the declaration.
1425         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
1426         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
1427         problem.
1428         * doc/posix-functions/inet_pton.texi: Likewise.
1429
1430 2010-12-26  Bruno Haible  <bruno@clisp.org>
1431
1432         arpa_inet: Use the common idioms with C++ support.
1433         * lib/arpa_inet.in.h: Include c++defs.h.
1434         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
1435         support.
1436         * modules/arpa_inet (Depends-on): Add c++defs.
1437         (Makefile.am): Substitute the contents of c++defs.h.
1438         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
1439         * modules/arpa_inet-c++-tests: New file.
1440         * tests/test-arpa_inet-c++.cc: New file.
1441
1442 2010-12-25  Bruno Haible  <bruno@clisp.org>
1443
1444         Fix more C++ link errors on Solaris 8.
1445         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
1446         $(LIB_EACCESS).
1447         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
1448         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
1449         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
1450         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1451         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1452
1453 2010-12-25  Bruno Haible  <bruno@clisp.org>
1454
1455         printf-posix: Fix link error when a non-GCC compiler is used.
1456         * lib/stdio.in.h (printf): When not using GCC, override printf
1457         correctly.
1458         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1459
1460 2010-12-25  Bruno Haible  <bruno@clisp.org>
1461
1462         strerror_r-posix: Update doc.
1463         * doc/posix-functions/strerror_r.texi: Update doc about the return
1464         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
1465
1466 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1467
1468         utimens: simplify the logic of the previous change
1469         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
1470         This should not affect whether the test succeeds or fails.
1471
1472         utimens: configure better on hosts with NFS clock skew
1473         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
1474         uses the clock of the local host.  It might use the clock of the
1475         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
1476         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1477
1478 2010-12-25  Bruno Haible  <bruno@clisp.org>
1479
1480         ptsname test: Avoid failure on Solaris.
1481         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
1482         open a pseudo-terminal; don't use BSD-style ptys.
1483         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
1484
1485 2010-12-25  Bruno Haible  <bruno@clisp.org>
1486
1487         ptsname: Avoid ERANGE failure on some systems.
1488         * lib/ptsname.c (buffer): Increase size.
1489
1490 2010-12-25  Bruno Haible  <bruno@clisp.org>
1491
1492         rename, renameat: Avoid test failures at NFS mounted locations.
1493         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
1494         so that subsequent mkdir calls succeed.
1495
1496 2010-12-25  Bruno Haible  <bruno@clisp.org>
1497
1498         iswblank: Fix C++ link error on Solaris 8.
1499         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
1500         _GL_FUNCDECL_SYS.
1501
1502 2010-12-25  Bruno Haible  <bruno@clisp.org>
1503
1504         unistd: Fix C++ link error on Solaris 8.
1505         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
1506
1507 2010-12-25  Bruno Haible  <bruno@clisp.org>
1508
1509         readlink doc: Mention an old glibc bug.
1510         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
1511
1512 2010-12-25  Bruno Haible  <bruno@clisp.org>
1513
1514         fcntl-h: Fix for use of C++ on glibc systems.
1515         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1516         also on glibc systems in C++ mode.
1517         Reported by Gary V. Vaughan <gary@gnu.org>.
1518
1519 2010-12-25  Bruno Haible  <bruno@clisp.org>
1520
1521         roundl-ieee: Make it work on OSF/1 5.1 with cc.
1522         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
1523
1524 2010-12-25  Bruno Haible  <bruno@clisp.org>
1525
1526         truncl-ieee: Make it work on OSF/1 5.1 with cc.
1527         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
1528         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
1529         test whether truncl works according to ISO C 99 with IEC 60559.
1530         * m4/truncl-ieee.m4: New file.
1531         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
1532         m4/signbit.m4.
1533         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
1534
1535 2010-12-25  Bruno Haible  <bruno@clisp.org>
1536
1537         ceill-ieee: Make it work on OSF/1 5.1 with cc.
1538         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
1539         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
1540         test whether ceill works according to ISO C 99 with IEC 60559.
1541         * m4/ceill-ieee.m4: New file.
1542         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
1543         m4/signbit.m4.
1544         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
1545
1546 2010-12-25  Bruno Haible  <bruno@clisp.org>
1547
1548         Ensure all prerequisites of <wchar.h> are included.
1549         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
1550         before <wchar.h>.
1551         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1552         gl_MBRLEN_NUL_RETVAL): Likewise.
1553         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1554         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
1555         AC_FUNC_MBRTOWC): Likewise.
1556         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1557         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1558         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1559         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1560         Likewise.
1561         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1562         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
1563         (gl_WCHAR_H): Improve comments.
1564         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1565
1566 2010-12-25  Bruno Haible  <bruno@clisp.org>
1567
1568         strtok_r: Fix C syntax error in autoconf macro.
1569         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
1570         characters in test program.
1571
1572 2010-12-24  Bruno Haible  <bruno@clisp.org>
1573
1574         ceil, trunc, round: Fix gcc warnings.
1575         * lib/ceil.c (MIN): Undefine before redefining.
1576         * lib/trunc.c (MIN): Likewise.
1577         * lib/round.c (MIN): Likewise.
1578         Include <math.h> first.
1579
1580 2010-12-24  Bruno Haible  <bruno@clisp.org>
1581
1582         select tests: Avoid failures on OSF/1 5.1.
1583         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
1584         failure of closing the last socket; it may fail with ECONNRESET.
1585
1586 2010-12-24  Eric Blake  <eblake@redhat.com>
1587
1588         stdint: avoid HP-UX 10.20 preprocessor bug
1589         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
1590         than #if.
1591         * tests/test-floor2.c (main): Likewise.
1592         Reported by Peter O'Gorman.
1593
1594         pipe: make obsoletion transition easier
1595         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
1596         * modules/pipe (Files): Include revived file.
1597         (Include): Drop reference, to mirror getdate's behavior.
1598
1599 2010-12-24  Bruno Haible  <bruno@clisp.org>
1600
1601         sys_socket: Hide mismatch of declarations on NonStop Kernel.
1602         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
1603         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
1604         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1605
1606 2010-12-24  Bruno Haible  <bruno@clisp.org>
1607
1608         gethostname: Ensure declaration on NonStop Kernel.
1609         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
1610         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1611
1612 2010-12-24  Bruno Haible  <bruno@clisp.org>
1613
1614         sys_select: Ensure all necessary types on NonStop Kernel.
1615         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
1616         include <sys/time.h>.
1617         * doc/posix-headers/sys_select.texi: Mention that it's missing on
1618         NonStop Kernel.
1619         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1620
1621 2010-12-24  Bruno Haible  <bruno@clisp.org>
1622
1623         sys_select: Remove unneeded include.
1624         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
1625         have <sys/select.h>.
1626
1627 2010-12-24  Bruno Haible  <bruno@clisp.org>
1628
1629         gethostname: Provide a fallback for HOST_NAME_MAX.
1630         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
1631         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
1632         instead.
1633         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1634
1635 2010-12-24  Bruno Haible  <bruno@clisp.org>
1636
1637         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
1638         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
1639         (SA_RESTART): Likewise.
1640         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1641
1642 2010-12-24  Bruno Haible  <bruno@clisp.org>
1643
1644         signal: Define NSIG.
1645         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
1646         * tests/test-signal.c (nsig): New variable.
1647         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1648
1649 2010-12-24  Bruno Haible  <bruno@clisp.org>
1650
1651         rename, renameat: Avoid test failures on OSF/1 5.1.
1652         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
1653         alternative error codes.
1654         * tests/test-renameat.c (main): Likewise.
1655
1656 2010-12-24  Bruno Haible  <bruno@clisp.org>
1657
1658         *printf: Detect large precisions bug on Solaris 10/SPARC.
1659         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
1660         by Paul Eggert.
1661         * tests/test-snprintf-posix.h (test_function): Add this test code here
1662         too.
1663         * tests/test-sprintf-posix.h (test_function): Likewise.
1664         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1665         * tests/test-vasprintf-posix.c (test_function): Likewise.
1666         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
1667         around by gnulib.
1668         * doc/posix-functions/printf.texi: Likewise.
1669         * doc/posix-functions/snprintf.texi: Likewise.
1670         * doc/posix-functions/sprintf.texi: Likewise.
1671         * doc/posix-functions/vfprintf.texi: Likewise.
1672         * doc/posix-functions/vprintf.texi: Likewise.
1673         * doc/posix-functions/vsnprintf.texi: Likewise.
1674         * doc/posix-functions/vsprintf.texi: Likewise.
1675         * doc/posix-functions/dprintf.texi: Undo last commit.
1676         * doc/posix-functions/vdprintf.texi: Likewise.
1677
1678 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1679
1680         tests: port test-fdutimensat.c to Solaris 8
1681         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
1682         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
1683         On Solaris 8, it fails with errno == ENOSYS, because there is no
1684         futimens (so it can't use the fd), and there is no lutimens (so it
1685         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
1686
1687         vsnprintf: make more consistent with snprintf; doc fixes
1688
1689         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
1690         the byte count return problem was promoted from the snprintf-posix
1691         to the snprintf module.
1692         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1693         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
1694         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
1695         * tests/test-snprintf.c (main): Check the byte count returned.
1696         * tests/test-vsnprintf.c (main): Likewise.
1697
1698 2010-12-23  Eric Blake  <eblake@redhat.com>
1699
1700         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
1701         * modules/sigpipe (License): Relax license.
1702
1703 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1704
1705         doc: document Solaris printf bug with large float precisions
1706         * doc/posix-functions/dprintf.texi (dprintf):
1707         * doc/posix-functions/fprintf.texi (fprintf):
1708         * doc/posix-functions/printf.texi (printf):
1709         * doc/posix-functions/snprintf.texi (snprintf):
1710         * doc/posix-functions/sprintf.texi (sprintf):
1711         * doc/posix-functions/vdprintf.texi (vdprintf):
1712         * doc/posix-functions/vfprintf.texi (vfprintf):
1713         * doc/posix-functions/vprintf.texi (vprintf):
1714         * doc/posix-functions/vsnprintf.texi (vsnprintf):
1715         * doc/posix-functions/vsprintf.texi (vsprintf):
1716         Mention that these functions mishandle large floating point
1717         precisions on Solaris 10.  The same bug is also present in Solaris
1718         8, and I assume earlier.  This causes "cd gnulib-tests; make
1719         check" to fail on Solaris 8 (and I assume, later) when building
1720         the latest coreutils, in test-vasprintf-posix's call to
1721         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
1722         the wide flavors (e.g., wprintf) so this patch just updates the
1723         documentation for the narrow ones.
1724
1725         test-posixtm.c: add two tests
1726         * tests/test-posixtm.c: Add two tests, to highlight the
1727         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
1728         around this bug; this is merely to document it.
1729
1730 2010-12-22  Bruno Haible  <bruno@clisp.org>
1731
1732         getlogin_r: Work around portability problem on OSF/1.
1733         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
1734         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
1735         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
1736         test for a truncated result.
1737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
1738         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
1739         * modules/getlogin_r (Depends-on): Add memchr.
1740         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
1741
1742 2010-12-22  Bruno Haible  <bruno@clisp.org>
1743
1744         ptsname: Avoid test failure on OSF/1 5.1.
1745         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
1746         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
1747         (same_slave): New function.
1748         (main): Use it to compare ptsname's result with the expected file name.
1749
1750 2010-12-22  Bruno Haible  <bruno@clisp.org>
1751
1752         Port extended stdio modules to HP NonStop Kernel.
1753         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
1754         macros.
1755         * lib/fbufmode.c: Update comments.
1756         * lib/fflush.c: Likewise.
1757         * lib/fpurge.c: Likewise.
1758         * lib/freadable.c: Likewise.
1759         * lib/freadahead.c: Likewise.
1760         * lib/freading.c: Likewise.
1761         * lib/freadptr.c: Likewise.
1762         * lib/freadseek.c: Likewise.
1763         * lib/fseeko.c: Likewise.
1764         * lib/fseterr.c: Likewise.
1765         * lib/fwritable.c: Likewise.
1766         * lib/fwriting.c: Likewise.
1767         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1768
1769 2010-12-22  Bruno Haible  <bruno@clisp.org>
1770
1771         ttyname_r: Work around bug on OSF/1 5.1.
1772         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
1773         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
1774         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
1775         present.
1776         * lib/ttyname_r.c (ttyname_r): Update comments.
1777
1778 2010-12-22  Bruno Haible  <bruno@clisp.org>
1779
1780         round: Implement result sign according to IEEE 754.
1781         * lib/round.c (MIN, MINUS_ZERO): New macros.
1782         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
1783         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
1784         * tests/test-round-ieee.c (main): Likewise.
1785         * tests/test-roundl-ieee.c (main): Likewise.
1786
1787         trunc: Implement result sign according to IEEE 754.
1788         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
1789         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
1790         * tests/test-trunc2.c: Include minus-zero.h.
1791         (MINUS_ZERO): New macro.
1792         (trunc_reference): Keep in sync with lib/trunc.c.
1793         * tests/test-truncf2.c: Include minus-zero.h.
1794         (MINUS_ZERO): New macro.
1795         (truncf_reference): Keep in sync with lib/trunc.c.
1796         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
1797         * tests/test-trunc-ieee.c (main): Likewise.
1798         * tests/test-truncl-ieee.c (main): Likewise.
1799
1800         ceil: Implement result sign according to IEEE 754.
1801         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
1802         (FUNC): Return -0.0 for -1 < x < 0.
1803         * tests/test-ceil2.c: Include minus-zero.h.
1804         (MINUS_ZERO): New macro.
1805         (ceil_reference): Keep in sync with lib/ceil.c.
1806         * tests/test-ceilf2.c: Include minus-zero.h.
1807         (MINUS_ZERO): New macro.
1808         (ceilf_reference): Keep in sync with lib/ceil.c.
1809         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
1810         * tests/test-ceil-ieee.c (main): Likewise.
1811         * tests/test-ceill-ieee.c (main): Likewise.
1812
1813         floor: Implement result sign according to IEEE 754.
1814         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
1815         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
1816         * tests/test-floorf2.c (floorf_reference): Likewise.
1817         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
1818         * tests/test-floor-ieee.c (main): Likewise.
1819         * tests/test-floorl-ieee.c (main): Likewise.
1820
1821 2010-12-22  Bruno Haible  <bruno@clisp.org>
1822
1823         getaddrinfo: Update doc.
1824         * doc/posix-functions/gai_strerror.texi: Return type is also different
1825         on AIX and HP-UX.
1826
1827 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1828
1829         getaddrinfo, inet_ntop: Update doc for Solaris.
1830         * doc/posix-functions/gai_strerror.texi: Return type is also an
1831         issue on Solaris 9 and earlier.
1832         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
1833         on Solaris 10 and earlier.
1834
1835 2010-12-21  Bruno Haible  <bruno@clisp.org>
1836
1837         New module 'roundl-ieee'.
1838         * modules/roundl-ieee: New file.
1839         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
1840         test whether roundl works according to ISO C 99 with IEC 60559.
1841         * m4/roundl-ieee.m4: New file.
1842         * modules/roundl-ieee-tests: New file.
1843         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
1844         * tests/test-roundl.c (main): Remove signbit tests.
1845         * modules/roundl-tests (Depends-on): Remove signbit.
1846         * doc/posix-functions/roundl.texi: Mention the new module.
1847
1848 2010-12-21  Bruno Haible  <bruno@clisp.org>
1849
1850         New module 'truncl-ieee'.
1851         * modules/truncl-ieee: New file.
1852         * modules/truncl-ieee-tests: New file.
1853         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
1854         * tests/test-truncl.c (main): Remove signbit tests.
1855         * modules/truncl-tests (Depends-on): Remove signbit.
1856         * doc/posix-functions/truncl.texi: Mention the new module.
1857
1858 2010-12-21  Bruno Haible  <bruno@clisp.org>
1859
1860         New module 'ceill-ieee'.
1861         * modules/ceill-ieee: New file.
1862         * modules/ceill-ieee-tests: New file.
1863         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
1864         * tests/test-ceill.c (main): Remove signbit tests.
1865         * modules/ceill-tests (Depends-on): Remove signbit.
1866         * doc/posix-functions/ceill.texi: Mention the new module.
1867
1868 2010-12-21  Bruno Haible  <bruno@clisp.org>
1869
1870         New module 'floorl-ieee'.
1871         * modules/floorl-ieee: New file.
1872         * modules/floorl-ieee-tests: New file.
1873         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
1874         * tests/test-floorl.c (main): Remove signbit tests.
1875         * modules/floorl-tests (Depends-on): Remove signbit.
1876         * doc/posix-functions/floorl.texi: Mention the new module.
1877
1878 2010-12-21  Bruno Haible  <bruno@clisp.org>
1879
1880         New module 'round-ieee'.
1881         * modules/round-ieee: New file.
1882         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
1883         whether round works according to ISO C 99 with IEC 60559.
1884         * m4/round-ieee.m4: New file.
1885         * modules/round-ieee-tests: New file.
1886         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
1887         * tests/test-round1.c (main): Remove signbit tests.
1888         * modules/round-tests (Depends-on): Remove 'signbit'.
1889         * doc/posix-functions/round.texi: Mention the new module.
1890
1891 2010-12-21  Bruno Haible  <bruno@clisp.org>
1892
1893         New module 'trunc-ieee'.
1894         * modules/trunc-ieee: New file.
1895         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
1896         whether trunc works according to ISO C 99 with IEC 60559.
1897         * m4/trunc-ieee.m4: New file.
1898         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
1899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
1900         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
1901         * modules/trunc-ieee-tests: New file.
1902         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
1903         * tests/test-trunc1.c (main): Remove signbit tests.
1904         * modules/trunc-tests (Depends-on): Remove 'signbit'.
1905         * doc/posix-functions/trunc.texi: Mention the new module.
1906
1907 2010-12-21  Bruno Haible  <bruno@clisp.org>
1908
1909         New module 'ceil-ieee'.
1910         * modules/ceil-ieee: New file.
1911         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
1912         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
1913         ISO C 99 with IEC 60559.
1914         * m4/ceil-ieee.m4: New file.
1915         * modules/ceil (Files): Add lib/ceil.c.
1916         (Depends-on): Add 'float'.
1917         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1918         * lib/math.in.h (ceil): New declaration.
1919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
1920         REPLACE_CEIL.
1921         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
1922         * modules/ceil-ieee-tests: New file.
1923         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
1924         * tests/test-math-c++.cc: Check the signature of 'ceil'.
1925         * doc/posix-functions/ceil.texi: Mention the new module.
1926
1927 2010-12-21  Bruno Haible  <bruno@clisp.org>
1928
1929         New module 'floor-ieee'.
1930         * modules/floor-ieee: New file.
1931         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
1932         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
1933         ISO C 99 with IEC 60559.
1934         * m4/floor-ieee.m4: New file.
1935         * modules/floor (Files): Add lib/floor.c.
1936         (Depends-on): Add 'float'.
1937         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1938         * lib/math.in.h (floor): New declaration.
1939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
1940         REPLACE_FLOOR.
1941         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
1942         * modules/floor-ieee-tests: New file.
1943         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
1944         * tests/test-math-c++.cc: Check the signature of 'floor'.
1945         * doc/posix-functions/floor.texi: Mention the new module.
1946
1947 2010-12-21  Bruno Haible  <bruno@clisp.org>
1948
1949         New module 'roundf-ieee'.
1950         * modules/roundf-ieee: New file.
1951         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
1952         test whether roundf works according to ISO C 99 with IEC 60559.
1953         * m4/roundf-ieee.m4: New file.
1954         * modules/roundf-ieee-tests: New file.
1955         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
1956         * tests/test-roundf1.c (main): Remove signbit tests.
1957         * modules/roundf-tests (Depends-on): Remove 'signbit'.
1958         * doc/posix-functions/roundf.texi: Mention the new module.
1959
1960 2010-12-21  Bruno Haible  <bruno@clisp.org>
1961
1962         New module 'truncf-ieee'.
1963         * modules/truncf-ieee: New file.
1964         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
1965         test whether truncf works according to ISO C 99 with IEC 60559.
1966         * m4/truncf-ieee.m4: New file.
1967         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
1968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
1969         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
1970         * modules/truncf-ieee-tests: New file.
1971         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
1972         * tests/test-truncf1.c (main): Remove signbit tests.
1973         * modules/truncf-tests (Depends-on): Remove 'signbit'.
1974         * doc/posix-functions/truncf.texi: Mention the new module.
1975
1976 2010-12-21  Bruno Haible  <bruno@clisp.org>
1977
1978         New module 'ceilf-ieee'.
1979         * modules/ceilf-ieee: New file.
1980         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
1981         test whether ceilf works according to ISO C 99 with IEC 60559.
1982         * m4/ceilf-ieee.m4: New file.
1983         * modules/ceilf-ieee-tests: New file.
1984         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
1985         * tests/test-ceilf1.c (main): Remove signbit tests.
1986         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
1987         * doc/posix-functions/ceilf.texi: Mention the new module.
1988
1989 2010-12-21  Bruno Haible  <bruno@clisp.org>
1990
1991         New module 'floorf-ieee'.
1992         * modules/floorf-ieee: New file.
1993         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
1994         test whether floorf works according to ISO C 99 with IEC 60559.
1995         * m4/floorf-ieee.m4: New file.
1996         * modules/floorf-ieee-tests: New file.
1997         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
1998         * tests/test-floorf1.c (main): Remove signbit tests.
1999         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2000         * doc/posix-functions/floorf.texi: Mention the new module.
2001
2002 2010-12-21  Bruno Haible  <bruno@clisp.org>
2003
2004         Support for minus zero in autoconf macros.
2005         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2006         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2007         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2008         * tests/minus-zero.h: Update comments.
2009
2010 2010-12-21  Bruno Haible  <bruno@clisp.org>
2011
2012         Tests for module 'ceil'.
2013         * modules/ceil-tests: New file.
2014         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2015         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2016
2017 2010-12-21  Bruno Haible  <bruno@clisp.org>
2018
2019         Tests for module 'floor'.
2020         * modules/floor-tests: New file.
2021         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2022         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2023
2024 2010-12-21  Bruno Haible  <bruno@clisp.org>
2025
2026         math: Fix indentation.
2027         * lib/math.in.h (floorf): Fix indentation.
2028
2029 2010-12-21  Bruno Haible  <bruno@clisp.org>
2030
2031         Fix cross-compilation guesses on Solaris.
2032         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2033         not match "solaris2.10".
2034         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2035         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2036         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2037
2038 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2039
2040         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2041         This fixes a problem observed with the latest coreutils snapshot
2042         that caused a test to fail on Solaris 8.  src/csplit.c's call
2043         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2044         earlier, instead of returning the number of bytes that would have
2045         been generated; this causes csplit to incorrectly report memory
2046         exhaustion.
2047         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
2048         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
2049         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
2050         comments to match.
2051         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
2052         Fix typo in matching older versions of Solaris: "solaris2.10"
2053         is matched by the shell pattern "solaris2.[0-9]*".  This matters
2054         only for guessing while cross-compiling.
2055         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
2056
2057 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2058
2059         ftoastr: fix comment again
2060         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2061         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
2062         Also, simplify example a bit by using flags = 0.
2063
2064 2010-12-20  Bruno Haible  <bruno@clisp.org>
2065
2066         round*, trunc*: Update documentation regarding glibc.
2067         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2068         * doc/posix-functions/round.texi: Likewise.
2069         * doc/posix-functions/roundl.texi: Likewise.
2070         * doc/posix-functions/truncf.texi: Likewise.
2071         * doc/posix-functions/trunc.texi: Likewise.
2072         * doc/posix-functions/truncl.texi: Likewise.
2073
2074 2010-12-20  Bruno Haible  <bruno@clisp.org>
2075
2076         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2077         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2078         * doc/posix-functions/round.texi: Likewise.
2079         * doc/posix-functions/roundl.texi: Likewise.
2080
2081 2010-12-20  Bruno Haible  <bruno@clisp.org>
2082
2083         ttyname_r: Add missing declaration on HP-UX 11.
2084         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2085         HAVE_TTYNAME_R.
2086         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2087         declared. Set HAVE_TTYNAME_R always.
2088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2089         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2090         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2091         HAVE_TTYNAME_R.
2092         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2093
2094 2010-12-20  Bruno Haible  <bruno@clisp.org>
2095
2096         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2097         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2098         * doc/posix-functions/getlogin_r.texi: Likewise.
2099         * tests/test-getlogin.c: Include <errno.h>.
2100         (main): Avoid test failure on HP-UX 11.11.
2101         * tests/test-getlogin_r.c (main): Likewise.
2102
2103 2010-12-20  Bruno Haible  <bruno@clisp.org>
2104
2105         getlogin_r: Add missing declaration on HP-UX 11.
2106         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2107         declared also when it exists as a function.
2108         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2109
2110 2010-12-20  Bruno Haible  <bruno@clisp.org>
2111
2112         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2113         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2114         through wcrtomb.
2115
2116 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2117
2118         ftoastr: fix comment
2119         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2121
2122 2010-12-19  Bruno Haible  <bruno@clisp.org>
2123
2124         isnan: Ensure it is a macro.
2125         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2126         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2127         Solaris.
2128
2129 2010-12-19  Bruno Haible  <bruno@clisp.org>
2130
2131         ldexpl test: Fix link error on OSF/1 5.1.
2132         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2133
2134 2010-12-19  Bruno Haible  <bruno@clisp.org>
2135
2136         wctype: Make it work in C++ mode on OSF/1 5.1.
2137         * lib/wctype.in.h (iswblank): Declare but not define here.
2138         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2139         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2140         * modules/wctype (Files): Add lib/iswblank.c.
2141
2142 2010-12-19  Bruno Haible  <bruno@clisp.org>
2143
2144         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2145         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2146         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2147
2148 2010-12-19  Bruno Haible  <bruno@clisp.org>
2149
2150         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2152         _POSIX_PII_SOCKET.
2153         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2154         * doc/posix-functions/recvfrom.texi: Likewise.
2155         * doc/posix-functions/send.texi: Likewise.
2156         * doc/posix-functions/sendto.texi: Likewise.
2157
2158 2010-12-19  Bruno Haible  <bruno@clisp.org>
2159
2160         tcgetsid: Add missing declaration on OSF/1 5.1.
2161         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2162         HAVE_TCGETSID.
2163         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2164         Don't set HAVE_TCGETSID.
2165         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2166         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2167         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2168         HAVE_TCGETSID.
2169         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2170
2171 2010-12-19  Bruno Haible  <bruno@clisp.org>
2172
2173         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2174         * lib/stdio.in.h: During the include_next statement, let recursive
2175         includes of this file include only the system header file.
2176
2177 2010-12-19  Bruno Haible  <bruno@clisp.org>
2178
2179         iconv_open: Fix regression from 2010-12-04.
2180         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2181         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2182
2183 2010-12-19  Bruno Haible  <bruno@clisp.org>
2184
2185         stdbool test: Avoid a gcc warning.
2186         * tests/test-stdbool.c (main): Fail if e1 is false.
2187         Reported by Jim Meyering.
2188
2189 2010-12-19  Jim Meyering  <meyering@redhat.com>
2190
2191         setenv: restore to working order
2192         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2193         mistakenly removed.
2194         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2195         HAVE_SETENV.
2196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2197         HAVE_SETENV.
2198
2199 2010-12-19  Bruno Haible  <bruno@clisp.org>
2200
2201         Document some different function declarations on OSF/1 5.1.
2202         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2203         * doc/posix-functions/inet_ntop.texi: Likewise.
2204         * doc/posix-functions/gethostname.texi: Likewise.
2205         * lib/unistd.in.h (gethostname): Update comment.
2206
2207 2010-12-19  Bruno Haible  <bruno@clisp.org>
2208
2209         doc: Mention vasprintf-posix module.
2210         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2211         the 'vasprintf-posix' module.
2212         * doc/glibc-functions/vasprintf.texi: Likewise.
2213
2214 2010-12-19  Bruno Haible  <bruno@clisp.org>
2215
2216         unsetenv: Add missing declaration on OSF/1 5.1.
2217         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2218         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2219         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2221         not HAVE_UNSETENV.
2222         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2223         HAVE_UNSETENV.
2224         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2225
2226 2010-12-19  Bruno Haible  <bruno@clisp.org>
2227
2228         setenv: Add missing declaration on OSF/1 5.1.
2229         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2230         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2231         declared. Don't set HAVE_SETENV.
2232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2233         not HAVE_SETENV.
2234         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2235         HAVE_SETENV.
2236         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2237
2238 2010-12-19  Bruno Haible  <bruno@clisp.org>
2239
2240         nl_langinfo tests: Avoid gcc warning.
2241         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2242
2243 2010-12-19  Bruno Haible  <bruno@clisp.org>
2244
2245         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2246         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2247         _GL_CXXALIAS_SYS.
2248
2249 2010-12-19  Bruno Haible  <bruno@clisp.org>
2250
2251         stdbool: Relax test.
2252         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2253         address to 'bool' work in static initializer, for compilers other than
2254         GCC.
2255
2256 2010-12-19  Bruno Haible  <bruno@clisp.org>
2257
2258         ftello: Add missing declaration on OSF/1 5.1.
2259         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2260         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2262         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2263         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2264
2265 2010-12-19  Bruno Haible  <bruno@clisp.org>
2266
2267         fseeko: Add missing declaration on OSF/1 5.1.
2268         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2269         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2271         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2272         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2273
2274 2010-12-19  Bruno Haible  <bruno@clisp.org>
2275
2276         fchdir: Add missing declaration on OSF/1 5.1.
2277         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2280         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2281         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2282
2283 2010-12-19  Bruno Haible  <bruno@clisp.org>
2284
2285         relocatable-prog-wrapper: Separate from relocatable-prog.
2286         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2287         uninstall-relocwrapper rule here.
2288         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2289         Reported by Ian Beckwith <ianb@erislabs.net>.
2290
2291 2010-12-19  Bruno Haible  <bruno@clisp.org>
2292
2293         unistr/u8-mbsnlen: Add missing dependency.
2294         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2295         Reported by Ian Beckwith <ianb@erislabs.net>.
2296
2297 2010-12-19  Bruno Haible  <bruno@clisp.org>
2298
2299         iconv: Make it possible again to use this module without 'iconv-h'.
2300         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2301         if it is not defined.
2302         Reported by Ian Beckwith <ianb@erislabs.net>.
2303
2304 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2305
2306         acl: port to Solaris 8 when copying from tmpfs to ufs
2307         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2308         error number.  Problem observed on Solaris 8 with latest
2309         coreutils, with "mv A B", where A is on a tmpfs file system and B
2310         is on a ufs file system.  This caused coreutils' mv/part-symlink
2311         test to fail.
2312
2313         tests: set fail=0 at start
2314         * tests/init.sh (setup_): Move fail=0 initialization here ...
2315         (mktempd_): ... from here, so that tests can rely on fail being
2316         set to 0 initially.  This fixes a problem in coreutils; see:
2317         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2318
2319 2010-12-18  Bruno Haible  <bruno@clisp.org>
2320
2321         memmem-simple: Stylistic changes.
2322         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2323         Fix preprocessor directive indentation.
2324
2325 2010-12-15  Pádraig Brady <P@draigBrady.com>
2326
2327         memmem, memmem-simple: reorganize and expand empty needle check
2328         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2329         functional checks to memmem-simple so that one has a fully functional
2330         memmem by using just this module.
2331         Restrict the performance only check to the memmem module.
2332         Also expand the empty needle check to ensure the correct
2333         pointer is returned, not just a non NULL pointer.
2334         * doc/glibc-functions/memmem.texi: Rearrange the portability
2335         documentation to correlate with the rearranged checks.
2336         Clarify exactly how the memmem and memmem-simple modules
2337         relate to each other.
2338
2339 2010-12-15  Pádraig Brady <P@draigBrady.com>
2340             Bruno Haible  <bruno@clisp.org>
2341
2342         Improve cross-compilation guesses for uClibc.
2343         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2344         that uClibc does not have the glibc bug.
2345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2346         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2347
2348 2010-12-14  Eric Blake  <eblake@redhat.com>
2349
2350         configmake: provide fallbacks for oldest supported autotools
2351         * m4/configmake.m4: New file.
2352         * modules/configmake (Files): Ship it.
2353         (configure.ac): Use it to guarantee fallbacks.
2354
2355 2010-12-13  Pádraig Brady <P@draigBrady.com>
2356
2357         read-file: Improve handling of large files
2358         * lib/read-file.c (fread_file): Minimize realloc()s
2359         for regular files, and better manage sizes around SIZE_MAX.
2360
2361 2010-12-13  Eric Blake  <eblake@redhat.com>
2362
2363         cloexec, fcntl: relax license
2364         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2365         consent from all contributors.
2366         * modules/fcntl (License): Likewise.
2367
2368 2010-12-10  Bruno Haible  <bruno@clisp.org>
2369
2370         Tests for module 'pipe-posix'.
2371         * modules/pipe-posix-tests: New file.
2372         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2373
2374 2010-12-10  Bruno Haible  <bruno@clisp.org>
2375
2376         pipe-posix: Make it work in C++ mode.
2377         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2378         (pipe): Use common idiom, not a macro definition.
2379         * lib/pipe.c: New file.
2380         * m4/pipe.m4: New file.
2381         * modules/pipe-posix (Description): Enhance.
2382         (Files): Add lib/pipe.c, m4/pipe.m4.
2383         (configure.ac): Invoke gl_FUNC_PIPE.
2384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
2385         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
2386         * tests/test-unistd-c++.cc: Check the signature of pipe.
2387
2388 2010-12-10  Bruno Haible  <bruno@clisp.org>
2389
2390         Rename module 'pipe' to 'spawn-pipe'.
2391         * modules/spawn-pipe: New file, renamed from modules/pipe.
2392         (Files, configure.ac, Makefile.am): Update.
2393         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
2394         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
2395         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
2396         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
2397         "spawn-pipe.h" instead of "pipe.h".
2398         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
2399         to gl_SPAWN_PIPE.
2400         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
2401         (Files, Makefile.am): Update.
2402         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
2403         Update.
2404         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
2405         Include "spawn-pipe.h" instead of "pipe.h".
2406         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
2407         * lib/javacomp.c: Likewise.
2408         * lib/javaversion.c: Likewise.
2409         * lib/pipe-filter-gi.c: Likewise.
2410         * lib/pipe-filter-ii.c: Likewise.
2411         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
2412         * modules/javacomp (Depends-on): Likewise.
2413         * modules/javaversion (Depends-on): Likewise.
2414         * modules/pipe-filter-gi (Depends-on): Likewise.
2415         * modules/pipe-filter-ii (Depends-on): Likewise.
2416         * MODULES.html.sh (Executing programs): Update.
2417         * NEWS: Mention the change.
2418
2419 2010-12-10  Eric Blake  <eblake@redhat.com>
2420
2421         pipe-posix: new module
2422         * modules/pipe-posix: New file.
2423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
2424         (gl_UNISTD_H): Check for declaration.
2425         * modules/unistd (Makefile.am): Substitute it.
2426         * lib/unistd.in.h (pipe): Provide it for mingw.
2427         * doc/posix-functions/pipe.texi (pipe): Update documentation.
2428         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
2429
2430 2010-12-07  Bruno Haible  <bruno@clisp.org>
2431
2432         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
2433         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
2434         u8_strcmp_gnu.
2435         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
2436
2437 2010-12-06  Bruno Haible  <bruno@clisp.org>
2438
2439         Update internal documentation.
2440         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
2441
2442 2010-12-04  Bruno Haible  <bruno@clisp.org>
2443
2444         Put more information about failed tests into the test return codes.
2445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
2446         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
2447         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2448         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2449         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2450         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2451         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2452         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2453         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2454         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2455         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2456         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2457         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2458         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2459         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
2460         returns a bit mask.
2461         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2462         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2463         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2464         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2465         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2466         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2467         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2469         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2470         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2471         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2472         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2473         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2475         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2476         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2477         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
2478         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
2479         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2480         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
2481         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2482         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2483         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2484         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2485         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2486         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2487         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2488         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2489         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2490         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
2491         gl_PRINTF_PRECISION): Likewise.
2492         * m4/regex.m4 (gl_REGEX): Likewise.
2493         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2494         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2495         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
2496         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2499         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2500         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
2501         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2502         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2503         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2504         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2505         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2506         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2507         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2508         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2509         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2510         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2512         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
2513         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
2514         enumerated value.
2515         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
2516
2517 2010-12-04  Bruno Haible  <bruno@clisp.org>
2518
2519         Update for Solaris 11 2010-11.
2520         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
2521         Express, released in November 2010.
2522
2523 2010-12-04  Bruno Haible  <bruno@clisp.org>
2524
2525         nproc: Relax license.
2526         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
2527         and Paul Eggert.
2528         Requested by Ludovic Courtès <ludo@gnu.org>.
2529
2530 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2531
2532         utimecmp: fine-grained src to nearby coarse-grained dest
2533
2534         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
2535         and the source is on a file system with higher-resolution time
2536         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
2537         not work, and the time stamps are close together, the algorithm to
2538         determine the exact resolution from the read-back mtime was buggy:
2539         it had a "!=" where it should have had an "==".  This bug has been
2540         in the code ever since it was introduced to gnulib.
2541         Problem reported by Dan Jacobson in
2542         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
2543
2544 2010-11-30  Bruno Haible  <bruno@clisp.org>
2545
2546         strerror_r-posix: Fix autoconf test.
2547         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
2548
2549 2010-11-28  Bruno Haible  <bruno@clisp.org>
2550             Paul Eggert  <eggert@cs.ucla.edu>
2551
2552         Tests for module 'getdomainname'.
2553         * modules/getdomainname-tests: New file.
2554         * tests/test-getdomainname.c: New file, based on
2555         tests/test-gethostname.c.
2556
2557 2010-11-28  Bruno Haible  <bruno@clisp.org>
2558             Paul Eggert  <eggert@cs.ucla.edu>
2559
2560         getdomainname: Use the system function when possible.
2561         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
2562         (getdomainname): Replace if needed. Provide the declaration if it is
2563         missing. Don't use _GL_CXXALIAS_SYS_CAST.
2564         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
2565         (getdomainname): When the system has getdomainname, call the system
2566         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
2567         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
2568         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
2569         found in libnsl. Look for the declaration also in <netdb.h>. Replace
2570         the function if its second argument is of type 'int' or if it is found
2571         in libnsl.
2572         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
2573         <sys/systeminfo.h> and sysinfo().
2574         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
2575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2576         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
2577         HAVE_GETDOMAINNAME.
2578         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
2579         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
2580         * doc/glibc-functions/getdomainname.texi: Document the problems with
2581         the getdomainname declaration.
2582
2583 2010-11-28  Bruno Haible  <bruno@clisp.org>
2584
2585         sys_socket: Ensure ss_family field on AIX.
2586         * lib/sys_socket.in.h (ss_family): New macro definition.
2587         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
2588         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
2589         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2590         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2591         * modules/sys_socket (Makefile.am): Substitute
2592         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2593         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
2594
2595 2010-11-27  Bruno Haible  <bruno@clisp.org>
2596
2597         readline: Improve configure output.
2598         * m4/readline.m4 (gl_FUNC_READLINE): Make the
2599         "checking for readline..." result understandable.
2600
2601 2010-11-27  Bruno Haible  <bruno@clisp.org>
2602
2603         *printf-posix: Detect a bug on Solaris 10/x86.
2604         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
2605         for floating-point output.
2606         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
2607         directive.
2608         * tests/test-snprintf-posix.h (test_function): Likewise.
2609         * tests/test-sprintf-posix.h (test_function): Likewise.
2610         * tests/test-vasprintf-posix.c (test_function): Likewise.
2611         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
2612         * doc/posix-functions/printf.texi: Likewise.
2613         * doc/posix-functions/snprintf.texi: Likewise.
2614         * doc/posix-functions/sprintf.texi: Likewise.
2615         * doc/posix-functions/vfprintf.texi: Likewise.
2616         * doc/posix-functions/vprintf.texi: Likewise.
2617         * doc/posix-functions/vsnprintf.texi: Likewise.
2618         * doc/posix-functions/vsprintf.texi: Likewise.
2619         * doc/glibc-functions/obstack_printf.texi: Likewise.
2620         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2621
2622 2010-11-27  Bruno Haible  <bruno@clisp.org>
2623
2624         Fix link error when module libunistring-optional is in use.
2625         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
2626         * modules/striconveha-tests (Makefile.am): Likewise.
2627
2628 2010-11-27  Bruno Haible  <bruno@clisp.org>
2629
2630         regex: Mention link dependencies.
2631         * modules/regex (Link): New section.
2632         * modules/rpmatch (Link): Likewise.
2633         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
2634
2635 2010-11-27  Bruno Haible  <bruno@clisp.org>
2636
2637         ftoastr: Fix compilation error on Solaris.
2638         * lib/ftoastr.c: Include <config.h>.
2639
2640 2010-11-27  Bruno Haible  <bruno@clisp.org>
2641
2642         getloadavg: Update documentation.
2643         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
2644
2645 2010-11-27  Bruno Haible  <bruno@clisp.org>
2646
2647         sys_socket: Fix test whether the functions are declared.
2648         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
2649         not <sys/select.h>.
2650
2651 2010-11-27  Bruno Haible  <bruno@clisp.org>
2652
2653         getpass: Make sure to get system declaration on some platforms.
2654         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
2655         gl_USE_SYSTEM_EXTENSIONS.
2656         * modules/getpass (Depends-on): Add extensions.
2657
2658 2010-11-26  Bruno Haible  <bruno@clisp.org>
2659
2660         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
2661         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
2662         'iconv' module is present.
2663         (ICONV_CONST): New macro.
2664         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
2665         ICONV_CONST.
2666         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
2667         set ICONV_CONST.
2668         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
2669         here.
2670         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
2671         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
2672         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
2673         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
2674         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
2675         present.
2676
2677 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
2678
2679         ftoastr: comment fix
2680         * lib/ftoastr.c: "little" -> "little or no" in comment
2681
2682 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2683
2684         stdint: port to GCC 4.3 + OSX + Octave
2685         On this platform, stdint.h is buggy and defines int64_t to long
2686         long int.  The replacement defined it to long int, causing
2687         problems with C++ style name mangling.  Instead, trust the system
2688         definition if INT64_MAX is defined, and likewise for the unsigned
2689         variant.   Problem reported by Jarno Rajahalme in
2690         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
2691         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
2692         and don't mess with int64_t and INT64_MAX in this case.
2693         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
2694
2695 2010-11-24  Bruno Haible  <bruno@clisp.org>
2696
2697         doc: Corrections regarding MacOS X 10.4 and 10.5.
2698         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
2699         MacOS X.
2700         Reported by Simon Josefsson.
2701
2702 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
2703
2704         Uninstall ".bin" files installed by relocwrapper.
2705         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
2706         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
2707         unless it is already there.
2708
2709 2010-11-21  Bruno Haible  <bruno@clisp.org>
2710
2711         Update for NetBSD 5.0.
2712         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2713         NetBSD; the test fails on NetBSD 5.0.
2714         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2715         about NetBSD.
2716
2717 2010-11-21  Bruno Haible  <bruno@clisp.org>
2718
2719         Update for HP-UX 11.23 and HP-UX 11.31.
2720         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
2721         HP-UX.
2722
2723 2010-11-21  Bruno Haible  <bruno@clisp.org>
2724
2725         Update for MacOS X 10.5.
2726         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2727         MacOS X; the test fails on MacOS X 10.5.8.
2728         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2729         about MacOS X.
2730
2731 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
2732
2733         bootstrap: add bootstrap_sync option.
2734         See discussion at
2735         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
2736         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
2737         * build-aux/bootstrap: Accept --bootstrap-sync to update
2738         bootstrap if it is not identical to the local gnulib's
2739         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
2740         enable this by default.  Accept --no-bootstrap-sync to disable
2741         it.
2742
2743 2010-11-20  Bruno Haible  <bruno@clisp.org>
2744
2745         Ensure that <features.h> is included before __GLIBC__ is tested.
2746         * lib/printf-parse.h: Include <features.h>.
2747         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
2748         Reported by Mike Frysinger <vapier@gentoo.org>.
2749
2750         Ensure that <features.h> is included before __GLIBC__ is tested.
2751         * lib/wchar.in.h: Include <features.h>.
2752         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
2753         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
2754         Reported by Mike Frysinger <vapier@gentoo.org>.
2755
2756         Ensure that <features.h> is included before __GLIBC__ is tested.
2757         * lib/arpa_inet.in.h: Include <features.h>.
2758         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
2759         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
2760         Reported by Mike Frysinger <vapier@gentoo.org>.
2761
2762         Ensure that <features.h> is included before __GLIBC__ is tested.
2763         * build-aux/link-warning.h: Include <features.h>.
2764         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
2765         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
2766         Reported by Mike Frysinger <vapier@gentoo.org>.
2767
2768         Ensure that <features.h> is included before __GLIBC__ is tested.
2769         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
2770         Reported by Mike Frysinger <vapier@gentoo.org>.
2771
2772 2010-11-20  Bruno Haible  <bruno@clisp.org>
2773
2774         memmem: Fix autoconf test.
2775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
2776
2777 2010-11-20  Bruno Haible  <bruno@clisp.org>
2778
2779         Port to uClibc.
2780         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
2781         * lib/fcntl.in.h: Likewise.
2782         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
2783         * lib/mbrtowc.c (mbrtowc): Likewise.
2784         * lib/relocatable.c (find_shared_library_fullname): Likewise.
2785         * lib/strerror_r.c: Likewise.
2786         * lib/unistr/u8-strnlen.c: Likewise.
2787         * lib/vasnprintf.c (decimal_point_char): Likewise.
2788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2789         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2790         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
2791         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
2792         * tests/test-sigaction.c (handler, main): Likewise.
2793         * lib/freading.h: Treat uClibc like a non-glibc platform.
2794         * lib/freading.c: Likewise.
2795         * lib/gettext.h: Likewise.
2796         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
2797         Likewise.
2798         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
2799         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2800         * lib/propername.c (proper_name_utf8): Likewise.
2801         * lib/spawn.in.h: Likewise.
2802         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
2803         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
2804         mem_cd_iconveh_internal): Likewise.
2805         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
2806         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2807         strstr, strcasestr): Likewise.
2808         * lib/unicodeio.c (unicode_to_mb): Likewise.
2809         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
2810         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
2811         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
2812         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
2813         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
2814         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
2815         * lib/unistr/u8-stpncpy.c: Likewise.
2816         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2817         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
2818         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2819         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2820         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
2821         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
2822         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
2823         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
2824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2825         Likewise.
2826         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2827         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2828         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2829         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2831         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2832         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2833         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2834         * tests/test-getopt.h (OPTIND_MIN): Likewise.
2835         * tests/test-striconveha.c (main): Likewise.
2836         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2837         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
2838         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
2839         * doc/posix-functions/getline.texi: Likewise.
2840         Reported by Mike Frysinger <vapier@gentoo.org>.
2841
2842 2010-11-20  Bruno Haible  <bruno@clisp.org>
2843
2844         nproc: Fix condition.
2845         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
2846         HAVE_PTHREAD_AFFINITY_NP.
2847
2848 2010-11-20  Bruno Haible  <bruno@clisp.org>
2849
2850         Fix a comment.
2851         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
2852
2853 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
2854
2855         ftoastr: don't assume snprintf
2856         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
2857         Implement a subset of snprintf here, by using sprintf safely.
2858         * modules/ftoastr (Depends-on): Remove snprintf.
2859
2860 2010-11-19  Jim Meyering  <meyering@redhat.com>
2861
2862         test-rename.h: fix compilation failure
2863         * tests/test-rename.h (test_rename): Add omitted "}".
2864
2865 2010-11-17  Jim Meyering  <meyering@redhat.com>
2866
2867         maint.mk: add a URL discussing the no-@acronym policy
2868         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
2869
2870 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2871
2872         ftoastr: depend on snprintf, improve comments
2873         * lib/ftoastr.c: Also mention Loitsch's draft.
2874         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
2875         needed in the current implementation, but it might simplify
2876         speeding up the code later.
2877         * modules/ftoastr: Depend on snprintf; this improves portability.
2878         Suggested by Bruno Haible in the same email.
2879
2880         ftoastr: port to hosts lacking strtof and strtold
2881         Problem reported by Bruno Haible in
2882         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
2883         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
2884         environment and strtold (and presumably strtof) are not available.
2885         * modules/ftoastr (Files): Add m4/c-strtod.m4.
2886         (configure.ac): Require gl_C99_STRTOLD.
2887
2888 2010-11-18  Bruno Haible  <bruno@clisp.org>
2889
2890         c-strtold: Avoid link error on AIX 7.
2891         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
2892         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
2893         (gl_C_STRTOLD): Test whether strtold_l exists.
2894         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2895
2896 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2897
2898         intprops: new macro INT_BITS_STRLEN_BOUND
2899         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
2900         ftoastr.h.  This exposes an internal of intprops.h that was formerly
2901         not exposed.  Also, it uses a slightly tighter bound than before;
2902         though this makes no practical difference, we might as well be as
2903         tight as we easily can.
2904
2905         ftoastr: new module, for lossless conversion of floats to short strings
2906         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
2907         * modules/ftoastr: New files.
2908
2909 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2910
2911         bootstrap: port to Solaris sed
2912         * build-aux/bootstrap (get_version): Port to Solaris sed.
2913         See Ralf Wildenhues's note in
2914         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
2915
2916 2010-11-14  Jim Meyering  <meyering@redhat.com>
2917
2918         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
2919         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
2920         and move definition closer to sole use.
2921
2922 2010-11-13  Jim Meyering  <meyering@redhat.com>
2923
2924         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
2925         Now we require at least autoconf-2.59, which means the work-around
2926         is no longer needed.
2927         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
2928         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2929         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2930         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
2931         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2932
2933 2010-11-13  Bruno Haible  <bruno@clisp.org>
2934
2935         rename, renameat: Avoid test failures at NFS mounted locations.
2936         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
2937         functions.
2938         (test_rename): Use assert_nonexistent.
2939         * tests/test-rename.c: Include <dirent.h>.
2940         * tests/test-renameat.c: Likewise.
2941         Reported by Gary V. Vaughan <gary@gnu.org>.
2942
2943         rename, renameat: Document Linux bug with NFS
2944         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
2945         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
2946         * doc/posix-functions/renameat.texi: Likewise.
2947         Suggested by Eric Blake.
2948
2949 2010-11-13  Bruno Haible  <bruno@clisp.org>
2950
2951         rename test: Add comments.
2952         * tests/test-rename.h (test_rename): Add structure and comments.
2953
2954 2010-11-13  Eric Blake  <eblake@redhat.com>
2955
2956         maintainer-makefile: cover a few more files
2957         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
2958         scripts generated within C files, for libvirt.
2959
2960 2010-11-13  Bruno Haible  <bruno@clisp.org>
2961
2962         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
2963         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
2964         character, return the number of bytes that belong together, not always
2965         1.
2966         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
2967         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
2968         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
2969         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
2970         number of bytes of an invalid character.
2971         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
2972         (main): Invoke it.
2973         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
2974         results.
2975         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
2976         malformed byte sequences.
2977         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
2978         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
2979         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
2980         Reported by Ben Pfaff and Paolo Bonzini.
2981
2982 2010-11-13  Bruno Haible  <bruno@clisp.org>
2983
2984         openat: Work around glibc bug with fchownat() and empty file names.
2985         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
2986         (gl_FUNC_FCHOWNAT): Invoke it.
2987         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
2988         * doc/posix-functions/fchownat.texi: Document the glibc bug.
2989         Reported by Gary V. Vaughan <gary@gnu.org>.
2990
2991 2010-11-13  Bruno Haible  <bruno@clisp.org>
2992
2993         openat: Ensure autoconf macro ordering.
2994         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
2995         gl_USE_SYSTEM_EXTENSIONS.
2996         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
2997
2998 2010-11-13  Bruno Haible  <bruno@clisp.org>
2999
3000         Update comments.
3001         * lib/unistr/u8-check.c: Update file name in comments.
3002         * lib/unistr/u8-mblen.c: Likewise.
3003         * lib/unistr/u8-prev.c: Likewise.
3004         * lib/unistr/u8-strmblen.c: Likewise.
3005         * lib/unistr/u8-strmbtouc.c: Likewise.
3006
3007 2010-11-13  Jim Meyering  <meyering@redhat.com>
3008
3009         tests: avoid test failure on Solaris 10 due to lack of PATH export
3010         * tests/test-update-copyright.sh: Don't forget to export PATH.
3011
3012         init.sh: ensure that IFS is defined, just in case...
3013         * tests/init.sh (setup_): Ensure that IFS is defined,
3014         so that saving and restoring it works as expected.  This
3015         appears to be useful at least for an old version of dash
3016         from a long time ago (RH 6).  See here for details:
3017         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3018
3019         maint.mk: tighten "test a == b" check
3020         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3021         test to files that contain something like #!/bin/sh.
3022         Without this, coreutils would get two false positives in
3023         the comments of C source files.
3024
3025 2010-11-12  Eric Blake  <eblake@redhat.com>
3026
3027         bootstrap: fix typo in previous attempt
3028         * build-aux/bootstrap (buildreq): Correct the grouping.
3029         Reported by Paul Eggert.
3030
3031         maintainer-makefile: prohibit test x == x
3032         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3033         Based on a report by Matthias Bolte.
3034
3035         bootstrap: allow FreeBSD gzip
3036         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3037         which has no '.' and goes to stderr.
3038         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3039         Reported by Matthias Bolte.
3040
3041         maintainer-makefile: check for i18n setup
3042         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3043         will likely work.
3044
3045 2010-11-12  Bruno Haible  <bruno@clisp.org>
3046
3047         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
3048         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
3049         * lib/nanosleep.c (nanosleep): Likewise.
3050
3051 2010-11-11  Bruno Haible  <bruno@clisp.org>
3052
3053         fcntl-h: Fix for use of C++ on glibc systems.
3054         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3055         also on glibc systems in C++ mode.
3056         Reported by Gary V. Vaughan <gary@gnu.org>.
3057
3058 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3059
3060         mknod: avoid false failure with dash
3061         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
3062
3063 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3064
3065         unlink: Fix "is it should" typo in diagnostic.
3066         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3067         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3068
3069 2010-11-11  Bruno Haible  <bruno@clisp.org>
3070
3071         Tests for module 'strerror_r-posix'.
3072         * modules/strerror_r-posix-tests: New file.
3073         * tests/test-strerror_r.c: New file.
3074         * tests/test-string-c++.cc: Check the signature of strerror_r.
3075
3076         New module 'strerror_r-posix'.
3077         * lib/string.in.h (strerror_r): New declaration.
3078         * lib/strerror_r.c: New file.
3079         * m4/strerror_r.m4: New file.
3080         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3081         of strerror_r.
3082         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3083         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3084         * modules/strerror_r-posix: New file.
3085         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3086         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3087         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3088         portability problems.
3089
3090 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3091
3092         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3093         line is also considered for output. Quoted function name in shell
3094         command, so temporary files for functions like MyClass::operator()
3095         are removed correctly without errors.
3096
3097 2010-11-09  Bruno Haible  <bruno@clisp.org>
3098
3099         * doc/posix-functions/strerror.texi: List more failing platforms.
3100
3101         * doc/posix-functions/strerror.texi: Add a comment.
3102
3103 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3104
3105         fdopendir: fix bug on MacOS X when low on file descriptors
3106
3107         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3108         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3109         All callers changed.
3110         (fdopendir): Invoke save_cwd at the top level, not after using
3111         multiple dup() calls to use up file descriptors.  Then retry
3112         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3113         less than the maximum number of open file descriptors, because
3114         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3115         on Mac OS X 10.6.4 for tar 1.24
3116         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3117         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3118         and for tar 1.25
3119         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3120
3121 2010-11-07  Bruno Haible  <bruno@clisp.org>
3122
3123         vasnprintf: Support I flag on glibc systems.
3124         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3125         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3126         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3127         snprintf function.
3128         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3129         glibc systems.
3130         * tests/test-vasnprintf-posix3.c: New file.
3131         * modules/vasnprintf-posix-tests (Files): Add it.
3132         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3133
3134 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3135
3136         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3137         * MODULES.html.sh: For compiler warnings, use name
3138         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3139
3140 2010-11-05  Eric Blake  <eblake@redhat.com>
3141
3142         ceil, floor: avoid spurious failure with icc
3143         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3144         [denormals-as-zero] when optimizing without -mieee-fp option.
3145         * tests/test-floorf2.c (floorf_reference): Likewise.
3146         * tests/test-ceilf1.c (dummy): New function.
3147         (main): Use it to outsmart icc's optimization.
3148         * tests/test-floorf1.c (dummy, main): Likewise.
3149
3150         tests: require working signbit
3151         * modules/ceilf-tests (Depends-on): Add signbit.
3152         * modules/ceill-tests (Depends-on): Likewise.
3153         * modules/floorf-tests (Depends-on): Likewise.
3154         * modules/floorl-tests (Depends-on): Likewise.
3155         * modules/round-tests (Depends-on): Likewise.
3156         * modules/roundf-tests (Depends-on): Likewise.
3157         * modules/roundl-tests (Depends-on): Likewise.
3158         * modules/trunc-tests (Depends-on): Likewise.
3159         * modules/truncf-tests (Depends-on): Likewise.
3160         * modules/truncl-tests (Depends-on): Likewise.
3161
3162         strtod: work around icc bug
3163         * lib/strtod.c (minus_zero): Define to working value.
3164         (strtod): Use it to avoid icc bug.
3165
3166         copysign: enhance tests
3167         * modules/copysign-tests (Files): Add minus-zero.h.
3168         * tests/test-copysign.c (main): Also test zeros.
3169
3170 2010-11-04  Eric Blake  <eblake@redhat.com>
3171
3172         ceil, floor, round, trunc: enhance tests of -0
3173         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3174         * tests/test-ceill.c (main): Likewise.
3175         * tests/test-floorf1.c (main): Likewise.
3176         * tests/test-floorl.c (main): Likewise.
3177         * tests/test-round1.c (main): Likewise.
3178         * tests/test-roundf1.c (main): Likewise.
3179         * tests/test-roundl.c (main): Likewise.
3180         * tests/test-trunc1.c (main): Likewise.
3181         * tests/test-truncf1.c (main): Likewise.
3182         * tests/test-truncl.c (main): Likewise.
3183
3184 2010-11-04  Eric Blake  <eblake@redhat.com>
3185
3186         frexp, tests: work around ICC bug with -zero
3187         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3188         works with more compilers.
3189         * tests/minus-zero.h: New file.
3190         * modules/ceilf-tests (Files): Include it.
3191         * modules/ceill-tests (Files): Likewise.
3192         * modules/floorf-tests (Files): Likewise.
3193         * modules/floorl-tests (Files): Likewise.
3194         * modules/frexp-nolibm-tests (Files): Likewise.
3195         * modules/frexp-tests (Files): Likewise.
3196         * modules/frexpl-nolibm-tests (Files): Likewise.
3197         * modules/frexpl-tests (Files): Likewise.
3198         * modules/isnan-tests (Files): Likewise.
3199         * modules/isnand-nolibm-tests (Files): Likewise.
3200         * modules/isnand-tests (Files): Likewise.
3201         * modules/isnanf-nolibm-tests (Files): Likewise.
3202         * modules/isnanf-tests (Files): Likewise.
3203         * modules/isnanl-nolibm-tests (Files): Likewise.
3204         * modules/isnanl-tests (Files): Likewise.
3205         * modules/round-tests (Files): Likewise.
3206         * modules/roundf-tests (Files): Likewise.
3207         * modules/roundl-tests (Files): Likewise.
3208         * modules/ldexpl-tests (Files): Likewise.
3209         * modules/signbit-tests (Files): Likewise.
3210         * modules/snprintf-posix-tests (Files): Likewise.
3211         * modules/sprintf-posix-tests (Files): Likewise.
3212         * modules/strtod-tests (Files): Likewise.
3213         * modules/trunc-tests (Files): Likewise.
3214         * modules/truncf-tests (Files): Likewise.
3215         * modules/truncl-tests (Files): Likewise.
3216         * modules/vsnprintf-posix-tests (Files): Likewise.
3217         * modules/vsprintf-posix-tests (Files): Likewise.
3218         * modules/vasnprintf-posix-tests (Files): Likewise.
3219         * modules/vasprintf-posix-tests (Files): Likewise.
3220         * tests/test-ceilf1.c (main): Use it.
3221         * tests/test-ceill.c (main): Likewise.
3222         * tests/test-floorf1.c (main): Likewise.
3223         * tests/test-floorl.c (main): Likewise.
3224         * tests/test-frexp.c (main): Likewise.
3225         * tests/test-frexpl.c (main): Likewise.
3226         * tests/test-isnan.c (main): Likewise.
3227         * tests/test-isnand.h (main): Likewise.
3228         * tests/test-isnanf.h (main): Likewise.
3229         * tests/test-isnanl.h (main): Likewise.
3230         * tests/test-ldexpl.c (main): Likewise.
3231         * tests/test-round.c (main): Likewise.
3232         * tests/test-roundf.c (main): Likewise.
3233         * tests/test-roundl.c (main): Likewise.
3234         * tests/test-signbit.c (test_signbitf, test_signbitd)
3235         (test_signbitl): Likewise.
3236         * tests/test-snprintf-posix.h (test_function): Likewise.
3237         * tests/test-sprintf-posix.h (test_function): Likewise.
3238         * tests/test-strtod.c (main): Likewise.
3239         * tests/test-trunc1.c (main): Likewise.
3240         * tests/test-truncf1.c (main): Likewise.
3241         * tests/test-truncl.c (main): Likewise.
3242
3243         isnanl: work around icc bug
3244         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3245
3246 2010-11-03  Eric Blake  <eblake@redhat.com>
3247
3248         tests: fix compiler warnings
3249         * tests/test-getopt.h (test_getopt): Fix condition.
3250         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3251         * tests/test-pipe2.c (main): Likewise.
3252         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3253
3254         utimens: fix broken m4 test
3255         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3256
3257 2010-10-28  Bruno Haible  <bruno@clisp.org>
3258
3259         posix_spawn*, getdtablesize: Relax license.
3260         * modules/posix_spawn (License): Change to LGPLv2+.
3261         * modules/posix_spawnp (License): Likewise.
3262         * modules/posix_spawn-internal (License): Likewise.
3263         * modules/posix_spawnattr_init (License): Likewise.
3264         * modules/posix_spawnattr_getflags (License): Likewise.
3265         * modules/posix_spawnattr_setflags (License): Likewise.
3266         * modules/posix_spawnattr_getpgroup (License): Likewise.
3267         * modules/posix_spawnattr_setpgroup (License): Likewise.
3268         * modules/posix_spawnattr_getschedparam (License): Likewise.
3269         * modules/posix_spawnattr_setschedparam (License): Likewise.
3270         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3271         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3272         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3273         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3274         * modules/posix_spawnattr_getsigmask (License): Likewise.
3275         * modules/posix_spawnattr_setsigmask (License): Likewise.
3276         * modules/posix_spawnattr_destroy (License): Likewise.
3277         * modules/posix_spawn_file_actions_init (License): Likewise.
3278         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3279         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3280         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3281         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3282         * modules/getdtablesize (License): Likewise.
3283         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3284
3285 2010-10-26  Bruno Haible  <bruno@clisp.org>
3286
3287         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3288         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3289         Cygwin and mingw.
3290         Suggested by Eric Blake.
3291
3292 2010-10-26  Bruno Haible  <bruno@clisp.org>
3293
3294         stdio: Work around compilation error due to renameat() on Solaris 10.
3295         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3296         * lib/renameat.c: Don't include <unistd.h> here.
3297         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3298         Reported by Paul Eggert and Eric Blake.
3299
3300 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3301
3302         renameat: port to Solaris 10, which declares renameat in unistd.h
3303
3304         * lib/renameat.c: Include unistd.h before stdio.h, because
3305         Solaris 10 declares renameat in unistd.h.  Problem encountered
3306         when building GNU tar 1.24 on Solaris 10.
3307
3308 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3309
3310         fdopendir: fix C89 compilation
3311         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3312         compilers.
3313
3314 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3315
3316         inttostr: simplify by removing unnecessary redundancy
3317         * lib/anytostr.c: Don't include verify.h.
3318         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3319         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3320         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3321         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3322         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3323         Likewise.
3324         * modules/inttostr (Depends-on): Remove 'verify'.
3325
3326 2010-10-23  Bruno Haible  <bruno@clisp.org>
3327
3328         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3329         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3330         Reported by Eric Blake.
3331
3332 2010-10-23  Bruno Haible  <bruno@clisp.org>
3333
3334         Tests: Fix LOCALE_JA on MirBSD 10.
3335         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3336         to an UTF-8 locale.
3337         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3338         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3339         Reported by Eric Blake.
3340
3341 2010-10-21  Bruno Haible  <bruno@clisp.org>
3342
3343         nl_langinfo test: Avoid test failure on NetBSD 5.
3344         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3345         Reported by Eric Blake.
3346
3347 2010-10-21  Eric Blake  <eblake@redhat.com>
3348
3349         c-stack: work around libsigsegv 2.8 bug
3350         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3351         overflow on at least PowerPC64.
3352
3353 2010-10-17  Bruno Haible  <bruno@clisp.org>
3354
3355         userspec: Drop redundant file.
3356         * modules/userspec (Files): Remove lib/inttostr.h.
3357
3358 2010-10-17  Bruno Haible  <bruno@clisp.org>
3359
3360         nl_langinfo tests: Silence some warnings.
3361         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3362         Reported by Jim Meyering.
3363
3364 2010-10-17  Bruno Haible  <bruno@clisp.org>
3365
3366         Make use of GCC's attribute __alloc_size__.
3367         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3368         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3369         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3370         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3371         __alloc_size__.
3372         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3373         Suggested by Jim Meyering.
3374
3375 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3376
3377         bootstrap: anchor .gitignore entries.
3378         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3379         with...
3380         (insert_vc_ignore): ... this new function, which prepends `/' to
3381         all .gitignore entries before passing them to
3382         insert_sorted_if_absent.
3383
3384 2010-10-16  Bruno Haible  <bruno@clisp.org>
3385
3386         nextafter: Fix configure check.
3387         * modules/nextafter (configure.ac): Correct expected prototype.
3388
3389 2010-10-16  Bruno Haible  <bruno@clisp.org>
3390
3391         termios: Update documentation.
3392         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
3393
3394 2010-10-16  Bruno Haible  <bruno@clisp.org>
3395
3396         tests: Make them compile with TinyCC.
3397         * tests/test-strstr.c (main): Remove parentheses around array
3398         initializer.
3399
3400 2010-10-15  Eric Blake  <eblake@redhat.com>
3401
3402         ignore-value: make header idempotent
3403         * lib/ignore-value.h: Add double-inclusion guards.
3404         Reported by Stefan Berger.
3405
3406 2010-10-15  Jim Meyering  <meyering@redhat.com>
3407
3408         GNUmakefile: handle "stable" target, not "major"
3409         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
3410         lists in maint.mk and announce-gen.  Without this, "make stable"
3411         would fail to ensure that $(VERSION) is up to date.
3412
3413 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
3414
3415         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
3416         & co.
3417
3418 2010-10-14  Bruno Haible  <bruno@clisp.org>
3419
3420         vasnprintf: Don't set errno to 0.
3421         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
3422         block that sets it to 0.
3423         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3424
3425 2010-10-14  Bruno Haible  <bruno@clisp.org>
3426
3427         socketlib: Fix.
3428         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
3429         gl_PREREQ_SYS_H_WINSOCK2.
3430         Reported by Ian Beckwith <ianb@erislabs.net>.
3431
3432 2010-10-13  Jim Meyering  <meyering@redhat.com>
3433
3434         test-select-stdin.c: avoid warn_unused_result warnings
3435         * tests/test-select-stdin.c: Include "macros.h".
3436         ASSERT that read and fflush succeed.
3437
3438 2010-10-13  Jim Meyering  <meyering@redhat.com>
3439
3440         git-version-gen: do require git-VC'd files in cwd
3441         * build-aux/git-version-gen: Reject a git version string
3442         if there are no commits associated with the current directory.
3443         This avoids an unlikely false-positive (unrelated dir whose parent
3444         repository also contains a tag matching v*), as pointed out
3445         by Giuseppe Scrivano in
3446         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
3447
3448 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3449
3450         argv-iter: omit nonconforming declaration
3451         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3452         enum arg_iter_err declaration, which doesn't conform to C99.
3453         Solaris 10 cc warns about this.
3454
3455 2010-10-13  Eric Blake  <eblake@redhat.com>
3456
3457         termios: fix compilation on mingw
3458         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
3459         (gl_TERMIOS_H): Adjust it on mingw.
3460         * modules/termios (Makefile.am): Substitute new key.
3461         * lib/termios.in.h (includes): Make include_next conditional.
3462         * doc/posix-headers/termios.texi (termios.h): Update
3463         documentation.
3464         Reported by Daniel P. Berrange.
3465
3466 2010-10-13  Jim Meyering  <meyering@redhat.com>
3467
3468         git-version-gen: don't require that .git/ be in the current dir
3469         * build-aux/git-version-gen: Adjust this script so that it works
3470         when run from any working directory beneath the top-level .git/-
3471         containing directory.  Inspired by a patch from Giuseppe Scrivano,
3472         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
3473
3474         test-select: avoid warn_unused_result warnings
3475         * tests/test-select.c: Include "macros.h".
3476         ASSERT that each call to read, write, and pipe succeeds.
3477         While not technically required, also check each "close".
3478         * modules/select-tests (Files): Add tests/macros.h.
3479
3480         test-symlinkat: remove declaration of unused local
3481         * tests/test-symlinkat.c (main): Remove unused local, "buf".
3482
3483         test-inttostr: avoid shadowing warnings
3484         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
3485         and use malloc rather than the stack for the same reason as
3486         mentioned in the comment justifying the other allocation.
3487
3488 2010-10-11  Bruno Haible  <bruno@clisp.org>
3489
3490         stdlib: Allow multiple gnulib generated replacements to coexist.
3491         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
3492         Reported by Sam Steingold <sds@gnu.org>.
3493
3494 2010-10-11  Jim Meyering  <meyering@redhat.com>
3495
3496         fix a documentation typo
3497         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
3498
3499 2010-10-11  Eric Blake  <eblake@redhat.com>
3500
3501         futimens: work around Solaris 11 bug
3502         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
3503         * tests/test-futimens.h (test_futimens): Enhance, rather than
3504         weaken test.
3505         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3506
3507 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3508
3509         Indentation.
3510         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
3511         higher-level operators more to the left.
3512
3513 2010-10-11  Jim Meyering  <meyering@redhat.com>
3514
3515         test-futimens: avoid unwarranted test failure on Solaris 5.11
3516         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
3517         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
3518         because it tries to dereference the NULL name argument.
3519
3520 2010-10-11  Bruno Haible  <bruno@clisp.org>
3521
3522         Indentation.
3523         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
3524         indentation.
3525
3526 2010-10-11  Jim Meyering  <meyering@redhat.com>
3527
3528         spawn.in.h: make indentation consistent with parentheses
3529         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
3530         Make indentation consistent with parentheses.
3531
3532 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
3533
3534         Fix mismatched parens in previous commit
3535         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
3536         parens.
3537
3538 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3539
3540         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
3541
3542         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
3543         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
3544         * lib/malloca.c: Include "verify.h".
3545         (verify1): Remove, replacing with a verify call.
3546         * lib/relocwrapper.c (verify1): Likewise.
3547         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
3548         Likewise.
3549         * modules/malloca (Depends-on): Add 'verify'.
3550         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
3551         * modules/vasnprintf (Depends-on): Add 'verify'.
3552         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3553         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3554         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3555         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3556         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3557         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3558         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3559
3560         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
3561
3562         Formerly the style was sometimes 2*X - 1, because the C standard
3563         was wrongly thought to disallow ?: in integral constant expressions.
3564         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
3565         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
3566         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3567         * lib/stdint.in.h (_verify_intmax_size): Likewise.
3568         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
3569         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
3570         verify that time_t cannot be floating.
3571
3572 2010-10-08  Eric Blake  <eblake@redhat.com>
3573
3574         time: enforce recent POSIX ruling that time_t is integral
3575         * lib/time.in.h (__time_t_must_be_integral): Detect any
3576         problematic systems, allowing the rest of gnulib to assume POSIX.
3577
3578 2010-10-08  Jim Meyering  <meyering@redhat.com>
3579
3580         fdopendir: fix a bug on systems lacking openat and /proc support
3581         OpenBSD 4.7 is one such system.  The most noticeable effect was
3582         failure of any application making nontrivial use of fts: rm, du,
3583         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
3584           ./rm: traversal failed: `a': Bad file descriptor
3585         Debugging that, you see that even though FD 6 was closed just
3586         prior to the opendir call in fd_clone_opendir, its resulting
3587         dir->dd_fd was 8, rather than the expected value of 6:
3588
3589         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
3590         93                close (fd);
3591         (gdb) n
3592         94                dir = fd_clone_opendir (dupfd);
3593         (gdb) n
3594         95                saved_errno = errno;
3595         (gdb) p dir->dd_fd
3596         $11 = 8
3597
3598         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
3599         The problem is that on OpenBSD, fd_clone_opendir has to resort
3600         to using the old-style save/restore CWD mechanism, due to its
3601         lack of openat/proc support, and *that* would steal the FD (6)
3602         that opendir was supposed to use.
3603
3604         The fix is to squirrel away the desired FD so that save_cwd uses a
3605         different one, and then free the dest FD right before calling opendir.
3606         That guarantees opendir will use the required file descriptor.
3607
3608         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
3609
3610 2010-10-08  Bruno Haible  <bruno@clisp.org>
3611
3612         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
3613         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
3614
3615 2010-10-08  Bruno Haible  <bruno@clisp.org>
3616
3617         nanosleep: Make replacement POSIX compliant.
3618         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
3619         is out of range.
3620         Reported by Jim Meyering.
3621
3622 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3623
3624         bootstrap: add hook for altering gnulib.mk, for Bison
3625         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
3626         the Bison bootstrapping process can rewrite file names and variables
3627         in this file before later parts of 'bootstrap' use the file.
3628         Bison wants to include lib/gnulib.mk from the top-level makefile,
3629         so it needs the file names in this file to be relative to the top
3630         level, not relative to lib; plus it needs variable names to be
3631         rewritten.
3632         (slurp): Use the new function.
3633
3634         bootstrap: reformat for readability
3635         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
3636
3637 2010-10-08  Eric Blake  <eblake@redhat.com>
3638
3639         docs: update cygwin progress
3640         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
3641         1.7.7.
3642         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
3643         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
3644         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
3645         * doc/posix-functions/carg.texi (carg): Likewise.
3646         * doc/posix-functions/cargf.texi (cargf): Likewise.
3647         * doc/posix-functions/casin.texi (casin): Likewise.
3648         * doc/posix-functions/casinf.texi (casinf): Likewise.
3649         * doc/posix-functions/casinh.texi (casinh): Likewise.
3650         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
3651         * doc/posix-functions/catan.texi (catan): Likewise.
3652         * doc/posix-functions/catanf.texi (catanf): Likewise.
3653         * doc/posix-functions/catanh.texi (catanh): Likewise.
3654         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
3655         * doc/posix-functions/ccos.texi (ccos): Likewise.
3656         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
3657         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
3658         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
3659         * doc/posix-functions/cexp.texi (cexp): Likewise.
3660         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
3661         * doc/posix-functions/cimag.texi (cimag): Likewise.
3662         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
3663         * doc/posix-functions/clog.texi (clog): Likewise.
3664         * doc/posix-functions/clogf.texi (clogf): Likewise.
3665         * doc/posix-functions/conj.texi (conj): Likewise.
3666         * doc/posix-functions/conjf.texi (conjf): Likewise.
3667         * doc/posix-functions/cpow.texi (cpow): Likewise.
3668         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
3669         * doc/posix-functions/cproj.texi (cproj): Likewise.
3670         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
3671         * doc/posix-functions/creal.texi (creal): Likewise.
3672         * doc/posix-functions/crealf.texi (crealf): Likewise.
3673         * doc/posix-functions/csin.texi (csin): Likewise.
3674         * doc/posix-functions/csinf.texi (csinf): Likewise.
3675         * doc/posix-functions/csinh.texi (csinh): Likewise.
3676         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
3677         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
3678         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
3679         * doc/posix-functions/ctan.texi (ctan): Likewise.
3680         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
3681         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
3682         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
3683         * doc/posix-headers/complex.texi (complex.h): Likewise.
3684
3685 2010-10-07  Jim Meyering  <meyering@redhat.com>
3686
3687         parse-datetime: avoid compilation failure on OpenBSD 4.7
3688         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
3689         This works around a compilation failure on OpenBSD 4.7:
3690         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
3691
3692 2010-10-07  Eric Blake  <eblake@redhat.com>
3693
3694         docs: update cygwin progress
3695         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
3696         1.7.6.
3697         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
3698         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
3699         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
3700         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
3701         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
3702         Likewise.
3703         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
3704         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
3705         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
3706         Likewise.
3707         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
3708         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
3709         Likewise.
3710         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
3711         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
3712         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
3713         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
3714         Likewise.
3715         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
3716         Likewise.
3717         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
3718
3719         docs: update parse-datetime history
3720         * doc/parse-datetime.texi (Authors of parse_datetime): Better
3721         documentation of this function's history and alternatives.
3722
3723         cygwin: use more robust version check
3724         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
3725         exclude an eventual cygwin 1.9.1.
3726         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3728         (gl_FUNC_STRCASESTR): Likewise.
3729         Reported by Bruno Haible.
3730
3731 2010-10-06  Bruno Haible  <bruno@clisp.org>
3732
3733         string, sys_select: Avoid #including large headers unless necessary.
3734         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
3735         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
3736         OSF/1, BeOS, Haiku.
3737         Reported by Jim Meyering.
3738
3739 2010-10-05  Eric Blake  <eblake@redhat.com>
3740
3741         memmem, strstr, strcasestr: fix bug with long periodic needle
3742         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
3743         periodic needle having false positive.
3744         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
3745         and cygwin 1.7.7.
3746         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
3747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3748         (gl_FUNC_STRCASESTR): Likewise.
3749         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3750         * tests/test-memmem.c (main): Expose the bug.
3751         * tests/test-strcasestr.c (main): Likewise.
3752         * tests/test-strstr.c (main): Likewise.
3753         * tests/test-c-strcasestr.c (main): Likewise.
3754         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
3755         * doc/posix-functions/strstr.texi (strstr): Likewise.
3756         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3757         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
3758
3759 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3760
3761         parse-datetime: do some more renaming
3762         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
3763         parse_datetime, not get_date.  Mention the renaming.
3764         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
3765         in comments.
3766         * m4/bison.m4: Likewise.
3767
3768 2010-10-05  Eric Blake  <eblake@redhat.com>
3769
3770         parse-datetime: better name than get_date
3771         * NEWS: Reword the deprecation notice.
3772         * modules/get_date: Rename to modules/parse-datetime.
3773         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
3774         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
3775         * lib/get_date.y: Rename to lib/parse-datetime.y.
3776         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
3777         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
3778         * doc/getdate.texi: Provide fallback wrapper.
3779         * lib/getdate.h: Move guts, and wrap...
3780         * lib/parse-datetime.h: ...new file.
3781         * lib/parse-datetime.y (get_date): Rename...
3782         (parse_datetime): ...to this.
3783         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
3784         (gl_PARSE_DATETIME): ...to this.
3785         * doc/posix-functions/getdate.texi (get_date): Provide fallback
3786         documentation.
3787         * modules/getdate (Files): Provide fallback docs and header.
3788         (Notice, Depends-on): Update references.
3789         * tests/test-parse-datetime.c: Likewise.
3790         * DEPENDENCIES: Likewise.
3791         * MODULES.html.sh (Date and time <time.h>): Likewise.
3792         * doc/parse-datetime.texi (Date input formats)
3793         (Authors of parse_datetime): Likewise.
3794         * modules/parse-datetime (Files, configure.ac, Makefile.am)
3795         (Include): Likewise.
3796         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
3797         * gnulib-tool: Likewise.
3798         * m4/bison.m4 (gl_BISON): Likewise.
3799         Suggested by Bruno Haible.
3800
3801 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3802
3803         more ports to Solaris tr, which needs [] around ranges
3804         * gnulib-tool: Solaris tr needs [] around ranges.
3805         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3806         * tests/test-pipe-filter-gi1.c (main): Likewise.
3807         * tests/test-pipe-filter-ii1.c (main): Likewise.
3808
3809 2010-10-05  Eric Blake  <eblake@redhat.com>
3810
3811         bootstrap: fix Solaris regression
3812         * build-aux/bootstrap (check_versions): Solaris tr still needs []
3813         around ranges.
3814         Reported by Pádraig Brady.
3815
3816         bootstrap: work with pkg-config
3817         * build-aux/bootstrap (check_versions): Also transliterate - in
3818         prerequisite name.
3819         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
3820         prerequisites that were already found, to avoid confusion.
3821         Reported by Justin Clift.
3822
3823         faccessat: remove unused wrappers
3824         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
3825         presence of these wrappers dragged in -lgen on Solaris.
3826         Reported by Clemens Brogi; fix suggested by Paul Eggert.
3827
3828 2010-10-05  Jim Meyering  <meyering@redhat.com>
3829
3830         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
3831         * Makefile (sc_pragma_columns): New syntax-check rule.
3832
3833 2010-10-04  Bruno Haible  <bruno@clisp.org>
3834
3835         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
3836         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
3837         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
3838         Reported by Bruce Korb and Eric Blake.
3839
3840 2010-10-04  Bruno Haible  <bruno@clisp.org>
3841
3842         threadlib: Make option --with-libpth-prefix work.
3843         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
3844         use $LIBPTH, not just -lpth.
3845
3846 2010-10-04  Bruno Haible  <bruno@clisp.org>
3847
3848         Avoid line length limitation from HP NonStop system header files.
3849         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
3850         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
3851         * lib/ctype.in.h: Likewise.
3852         * lib/dirent.in.h: Likewise.
3853         * lib/errno.in.h: Likewise.
3854         * lib/fcntl.in.h: Likewise.
3855         * lib/float.in.h: Likewise.
3856         * lib/getopt.in.h: Likewise.
3857         * lib/iconv.in.h: Likewise.
3858         * lib/inttypes.in.h: Likewise.
3859         * lib/langinfo.in.h: Likewise.
3860         * lib/locale.in.h: Likewise.
3861         * lib/math.in.h: Likewise.
3862         * lib/netdb.in.h: Likewise.
3863         * lib/netinet_in.in.h: Likewise.
3864         * lib/poll.in.h: Likewise.
3865         * lib/pthread.in.h: Likewise.
3866         * lib/pty.in.h: Likewise.
3867         * lib/sched.in.h: Likewise.
3868         * lib/se-selinux.in.h: Likewise.
3869         * lib/search.in.h: Likewise.
3870         * lib/signal.in.h: Likewise.
3871         * lib/spawn.in.h: Likewise.
3872         * lib/stdarg.in.h: Likewise.
3873         * lib/stddef.in.h: Likewise.
3874         * lib/stdint.in.h: Likewise.
3875         * lib/stdio.in.h: Likewise.
3876         * lib/stdlib.in.h: Likewise.
3877         * lib/string.in.h: Likewise.
3878         * lib/strings.in.h: Likewise.
3879         * lib/sys_file.in.h: Likewise.
3880         * lib/sys_ioctl.in.h: Likewise.
3881         * lib/sys_select.in.h: Likewise.
3882         * lib/sys_socket.in.h: Likewise.
3883         * lib/sys_stat.in.h: Likewise.
3884         * lib/sys_time.in.h: Likewise.
3885         * lib/sys_times.in.h: Likewise.
3886         * lib/sys_utsname.in.h: Likewise.
3887         * lib/sys_wait.in.h: Likewise.
3888         * lib/sysexits.in.h: Likewise.
3889         * lib/termios.in.h: Likewise.
3890         * lib/time.in.h: Likewise.
3891         * lib/unistd.in.h: Likewise.
3892         * lib/wchar.in.h: Likewise.
3893         * lib/wctype.in.h: Likewise.
3894         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
3895         * modules/ctype (Makefile.am): Likewise.
3896         * modules/dirent (Makefile.am): Likewise.
3897         * modules/errno (Makefile.am): Likewise.
3898         * modules/fcntl-h (Makefile.am): Likewise.
3899         * modules/float (Makefile.am): Likewise.
3900         * modules/getopt-posix (Makefile.am): Likewise.
3901         * modules/iconv-h (Makefile.am): Likewise.
3902         * modules/inttypes (Makefile.am): Likewise.
3903         * modules/langinfo (Makefile.am): Likewise.
3904         * modules/locale (Makefile.am): Likewise.
3905         * modules/math (Makefile.am): Likewise.
3906         * modules/netdb (Makefile.am): Likewise.
3907         * modules/netinet_in (Makefile.am): Likewise.
3908         * modules/poll-h (Makefile.am): Likewise.
3909         * modules/pthread (Makefile.am): Likewise.
3910         * modules/pty (Makefile.am): Likewise.
3911         * modules/sched (Makefile.am): Likewise.
3912         * modules/search (Makefile.am): Likewise.
3913         * modules/selinux-h (Makefile.am): Likewise.
3914         * modules/signal (Makefile.am): Likewise.
3915         * modules/spawn (Makefile.am): Likewise.
3916         * modules/stdarg (Makefile.am): Likewise.
3917         * modules/stddef (Makefile.am): Likewise.
3918         * modules/stdint (Makefile.am): Likewise.
3919         * modules/stdio (Makefile.am): Likewise.
3920         * modules/stdlib (Makefile.am): Likewise.
3921         * modules/string (Makefile.am): Likewise.
3922         * modules/strings (Makefile.am): Likewise.
3923         * modules/sys_file (Makefile.am): Likewise.
3924         * modules/sys_ioctl (Makefile.am): Likewise.
3925         * modules/sys_select (Makefile.am): Likewise.
3926         * modules/sys_socket (Makefile.am): Likewise.
3927         * modules/sys_stat (Makefile.am): Likewise.
3928         * modules/sys_time (Makefile.am): Likewise.
3929         * modules/sys_times (Makefile.am): Likewise.
3930         * modules/sys_utsname (Makefile.am): Likewise.
3931         * modules/sys_wait (Makefile.am): Likewise.
3932         * modules/sysexits (Makefile.am): Likewise.
3933         * modules/termios (Makefile.am): Likewise.
3934         * modules/time (Makefile.am): Likewise.
3935         * modules/unistd (Makefile.am): Likewise.
3936         * modules/wchar (Makefile.am): Likewise.
3937         * modules/wctype (Makefile.am): Likewise.
3938
3939 2010-10-04  Bruno Haible  <bruno@clisp.org>
3940
3941         read-file tests: Avoid a test failure on NonStop Kernel.
3942         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
3943         a regular file.
3944         Reported by Joachim Schmitz <schmitz@hp.com>.
3945
3946 2010-10-03  Bruno Haible  <bruno@clisp.org>
3947
3948         gnulib-tool: Fixes for --create-testdir with --libtool.
3949         * gnulib-tool (func_get_automake_snippet): Don't augment
3950         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
3951         an executable.
3952         (func_create_testdir): Handle module 'alloca' like func_import.
3953         Reported by Bruce Korb <bruce.korb@gmail.com>.
3954
3955 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3956
3957         Avoid some lines longer than 80 characters.
3958         * lib/stdint.in.h: Break long comment lines.
3959         * lib/math.in.h: Likewise.
3960         (_GL_NUM_UINT_WORDS): New macro, for readability.
3961         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
3962         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
3963         * lib/stdlib.in.h: Likewise.
3964         * lib/spawn.in.h: Likewise.
3965         * lib/sys_socket.in.h: Update an URL.
3966         * lib/sys_stat.in.h: Break long line.
3967
3968 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
3969
3970         Improve pmccabe2html.
3971         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
3972         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
3973         when the sources change. Remove the line in the HTML about "Used
3974         ranges" (which implied that there might be other unused ranges),
3975         rename "Resume" to "Summary" (easier to understand for more users).
3976         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
3977         styles, and some unnecessary blank lines.
3978
3979 2010-10-03  Bruno Haible  <bruno@clisp.org>
3980             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3981
3982         acl: Add support for ACLs on NonStop Kernel.
3983         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
3984         Check whether the function aclsort() exists.
3985         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
3986         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
3987         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3988         (acl_nontrivial [HAVE_ACLSORT]: New function.
3989         (file_has_acl): Implement for NonStop Kernel.
3990         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3991         (qset_acl): Implement for NonStop Kernel.
3992         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
3993         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3994         (main): Implement for NonStop Kernel.
3995         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
3996         Kernel. Handle this flavor.
3997         * tests/test-set-mode-acl.sh: Likewise.
3998         * tests/test-copy-acl.sh: Likewise.
3999         * tests/test-copy-file.sh: Likewise.
4000
4001 2010-10-03  Bruno Haible  <bruno@clisp.org>
4002
4003         Info about ACLs on NonStop Kernel.
4004         * doc/acl-resources.txt: Add info about NonStop Kernel.
4005         References by Joachim Schmitz <schmitz@hp.com>.
4006
4007 2010-10-02  Bruno Haible  <bruno@clisp.org>
4008
4009         Define missing EDQUOT on NonStop Kernel.
4010         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4011         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4012         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4013         missing.
4014         * doc/posix-headers/errno.texi: Mention the NSK bug.
4015         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4016         Reported by Joachim Schmitz <schmitz@hp.com>.
4017
4018 2010-10-02  Bruno Haible  <bruno@clisp.org>
4019
4020         Update doc for POSIX:2008.
4021         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4022         Update URL of POSIX specification.
4023
4024 2010-10-02  Bruno Haible  <bruno@clisp.org>
4025
4026         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4027         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4028         from gnulib, not from Automake.
4029
4030 2010-10-02  Bruno Haible  <bruno@clisp.org>
4031
4032         New module 'system-posix'.
4033         * modules/system-posix: New file.
4034         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4035         module is present.
4036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4037         GNULIB_SYSTEM_POSIX.
4038         * modules/stdlib (Depends-on): Remove sys_wait.
4039         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4040         * doc/posix-functions/system.texi: Mention the new module.
4041         * doc/posix-headers/stdlib.texi: Likewise.
4042         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4043         define test_sys_wait_macros to a no-op.
4044         Reported by Sam Steingold <sds@gnu.org>.
4045
4046 2010-09-30  Bruno Haible  <bruno@clisp.org>
4047
4048         More renaming from 'getdate' to 'get_date'.
4049         * doc/get_date.texi: Renamed from doc/getdate.texi.
4050         * modules/get_date (Files): Update.
4051         * MODULES.html.sh (Date and time <time.h>): Update.
4052         * DEPENDENCIES: Update.
4053         * gnulib-tool: Update comment.
4054         * m4/bison.m4 (gl_BISON): Likewise.
4055         * m4/get_date.m4 (gl_GET_DATE): Likewise.
4056
4057 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
4058
4059         bootstrap: support ACLOCAL_FLAGS during aclocal
4060         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
4061         can add additional -I dir for third-party .m4 files.
4062
4063 2010-09-30  Eric Blake  <eblake@redhat.com>
4064
4065         bootstrap: use glibtoolize on MacOS
4066         * build-aux/bootstrap (check_versions): Convert libtool into
4067         libtoolize.
4068         (tool search): Move libtool check earlier, and look for
4069         glibtoolize for MacOS.
4070         (gnulib_tool_options): Auto-add --libtool when appropriate.
4071         Reported by Justin Clift.
4072
4073         poll: fix typo that broke test on MacOS
4074         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4075         Reported by Justin Clift.
4076
4077         getdate: rename to get_date
4078         Note: getdate.h is not renamed, to minimize client impact.
4079         * modules/getdate: Mark obsolete.  Move old contents...
4080         * modules/get_date: ...to new module name.
4081         * modules/getdate-tests: Move...
4082         * modules/get_date-tests: ...here.
4083         * m4/getdate.m4: Move...
4084         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4085         * lib/getdate.y: Move...
4086         * lib/get_date.y: ...here.
4087         * tests/test-getdate.c: Move...
4088         * tests/test-get_date.c: ...here.
4089         * doc/posix-functions/getdate.texi (getdate): Update name.
4090         * NEWS: Mention the change.
4091
4092 2010-09-29  Bruno Haible  <bruno@clisp.org>
4093
4094         Separate the module 'waitpid' from the module 'sys_wait'.
4095         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4096         present.
4097         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4098         gl_MODULE_INDICATOR_FOR_TESTS.
4099         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4100         * modules/sys_wait (Depends-on): Remove waitpid.
4101         (Makefile.am): Substitute GNULIB_WAITPID.
4102         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4103         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4104         signature only if the 'waitpid' module is present.
4105         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4106         * NEWS: Mention the change.
4107         * modules/grantpt (Depends-on): Add waitpid.
4108         * modules/wait-process (Depends-on): Likewise.
4109
4110 2010-09-29  Bruno Haible  <bruno@clisp.org>
4111
4112         More tests for module 'sys_wait'.
4113         * modules/sys_wait-c++-tests: New file.
4114         * tests/test-sys_wait-c++.cc: New file.
4115         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4116         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4117
4118 2010-09-29  Bruno Haible  <bruno@clisp.org>
4119
4120         New module 'waitpid'.
4121         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4122         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4123         Don't include <process.h>.
4124         (waitpid): Declare only, using modern idiom.
4125         * m4/waitpid.m4: New file.
4126         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4127         * modules/waitpid: New file.
4128         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4129         (Makefile.am): Update.
4130         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4131
4132 2010-09-28  Bruno Haible  <bruno@clisp.org>
4133
4134         poll: Assume ANSI C.
4135         * lib/poll.c (poll): Use an ANSI C declaration.
4136
4137 2010-09-28  Bruno Haible  <bruno@clisp.org>
4138
4139         poll-h: Create poll.h on all platforms.
4140         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4141         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4142         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4143         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4144         (gl_REPLACE_POLL_H): Don't set POLL_H.
4145         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4146         * modules/poll-h (Depends-on): Add include_next.
4147         (Makefile.am): Create poll.h unconditionally. Substitute also
4148         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4149
4150 2010-09-28  Bruno Haible  <bruno@clisp.org>
4151
4152         Tests for module 'poll-h'.
4153         * modules/poll-h-c++-tests: New file.
4154         * tests/test-poll-h-c++.cc: New file.
4155
4156         Tests for module 'poll-h'.
4157         * modules/poll-h-tests: New file.
4158         * tests/test-poll-h.c: New file.
4159
4160 2010-09-28  Bruno Haible  <bruno@clisp.org>
4161
4162         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4163         * modules/poll-h (Depends-on): Add 'extensions'.
4164
4165 2010-09-28  Bruno Haible  <bruno@clisp.org>
4166
4167         New module 'poll-h'.
4168         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4169         (poll): Use modern idiom.
4170         * modules/poll-h: New file.
4171         * modules/poll (Files): Remove lib/poll.in.h.
4172         (Depends-on): Add poll-h.
4173         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4174         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4175         * m4/poll_h.m4: New file.
4176         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4177         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4178         and invoke gl_REPLACE_POLL_H.
4179         * lib/poll.c: Use common idiom.
4180         * tests/test-poll.c: Likewise.
4181         * doc/posix-headers/poll.texi: Mention the poll-h module.
4182         Suggested by Eric Blake.
4183
4184 2010-09-26  Bruno Haible  <bruno@clisp.org>
4185
4186         sys_wait: Implement WSTOPSIG.
4187         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4188         Reported by Simon Josefsson.
4189
4190 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4191
4192         stdlib, sys_wait: Avoid compilation error on mingw.
4193         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4194
4195 2010-09-26  Bruno Haible  <bruno@clisp.org>
4196
4197         stdlib tests: Avoid code duplication.
4198         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4199         * modules/sys_wait-tests (Files): Likewise.
4200         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4201         * tests/test-stdlib.c: Include test-sys_wait.h.
4202         (main): Invoke test_sys_wait_macros.
4203         * tests/test-sys_wait.c: Include test-sys_wait.h.
4204         (main): Invoke test_sys_wait_macros.
4205
4206 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4207
4208         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4209         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4210         sure Windows sockets are working before calling getaddrinfo.
4211         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4212         * doc/gnulib.texi (Windows sockets): Fix typo.
4213
4214 2010-09-25  Bruno Haible  <bruno@clisp.org>
4215
4216         Tests for module 'regex-quote'.
4217         * modules/regex-quote-tests: New file.
4218         * tests/test-regex-quote.c: New file.
4219
4220         New module 'regex-quote'.
4221         * lib/regex-quote.h: New file.
4222         * lib/regex-quote.c: New file.
4223         * modules/regex-quote: New file.
4224         Suggested by Reuben Thomas <rrt@sc3d.org>.
4225
4226 2010-09-24  Bruno Haible  <bruno@clisp.org>
4227
4228         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4229         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4230
4231 2010-09-23  Bruno Haible  <bruno@clisp.org>
4232
4233         setenv: Relax license.
4234         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4235         Blake.
4236         Requested by Eric Blake.
4237
4238 2010-09-22  Bruno Haible  <bruno@clisp.org>
4239
4240         termios: Relax license.
4241         * modules/termios (License): Change to LGPLv2+.
4242         Requested by Eric Blake.
4243
4244 2010-09-22  Bruno Haible  <bruno@clisp.org>
4245
4246         threadlib: Allow the package to change the default to 'no'.
4247         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4248         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4249         Reported by Paul Eggert.
4250
4251 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4252             Bruno Haible  <bruno@clisp.org>
4253
4254         Fix endless loop in mbmemcasecoll.
4255         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4256         byte.
4257         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4258
4259 2010-09-22  Bruno Haible  <bruno@clisp.org>
4260
4261         Tests for module 'memcoll'.
4262         * modules/memcoll-tests: New file.
4263         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4264
4265         memcoll, xmemcoll: Clarify size vs. length.
4266         * modules/memcoll.c (memcoll0): Clarify specification.
4267         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4268         passed to collate_error.
4269
4270 2010-09-22  Bruno Haible  <bruno@clisp.org>
4271
4272         Tests for module 'memcasecmp'.
4273         * modules/memcasecmp-tests: New file.
4274         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4275
4276 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4277
4278         * lib/pthread.in.h: Add split double-inclusion guard, and include
4279         system <pthread.h> if there is one.  Use @@-style as in other
4280         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4281         pthread.h doesn't.
4282         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4283         (pthread_mutexattr_settype, pthread_mutex_trylock):
4284         New static inline functions, if there's no system <pthread.h>.
4285         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4286         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4287         Approximate with mutexes if the system lacks spinlocks, as in
4288         MacOS.
4289         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4290         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4291         @@-style.  Check for spinlocks separately.
4292         (gl_PTHREAD_DEFAULTS): New macro.
4293         * modules/pthread: Redo to use a more typical style for in.h files.
4294
4295 2010-09-21  Eric Blake  <eblake@redhat.com>
4296
4297         net_if: enhance tests
4298         * tests/test-net_if.c (main): Move signature checks earlier.
4299         Print failures to stderr.
4300         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4301         Document the bug that we do not yet fix.
4302
4303 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4304
4305         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4306         about gnulib, not GSS.
4307
4308 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4309
4310         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4311         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4312         for Emacs.
4313         * build-aux/pmccabe2html: Make Makefile.am example code more
4314         cut-and-paste friendly.
4315
4316 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4317
4318         * tests/test-net_if.c: New file.
4319         * modules/net_if-tests: New file.
4320
4321 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4322
4323         pthread: add pthread_spin_destroy
4324         * lib/pthread.in.h (pthread_spin_destroy): New function.
4325
4326 2010-09-19  Bruno Haible  <bruno@clisp.org>
4327
4328         gnulib-tool: Fix --help output.
4329         * gnulib-tool (func_usage): Fix help message.
4330         Reported by Reuben Thomas <rrt@sc3d.org>.
4331
4332 2010-09-18  Jim Meyering  <meyering@redhat.com>
4333
4334         maint.mk: avoid unexpanded \n in two diagnostics
4335         * top/maint.mk (sc_prohibit_always_true_header_tests):
4336         Don't use a literal \n in a halt=... assignment.  It would not be
4337         expanded, and the two \n bytes would appear in the diagnostic output
4338         rather than the desired newline.  Use halt=$$(printf ... instead.
4339         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4340
4341 2010-09-18  Bruno Haible  <bruno@clisp.org>
4342
4343         netinet_in: Doc tweak.
4344         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4345         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4346
4347 2010-09-18  Jim Meyering  <meyering@redhat.com>
4348
4349         init.sh: correct an outdated comment
4350         * tests/init.sh (create_exe_shims_):  s/function/alias/
4351
4352         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4353         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4354         a file named "*.exe" is removed between the glob expansion and the
4355         processing of that oddly named file.
4356
4357 2010-09-17  Eric Blake  <eblake@redhat.com>
4358
4359         mirbsd: add some more support
4360         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4361         in BSD family.
4362         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4363         devices as OpenBSD.
4364         * m4/host-os.m4 (mirbsd): Add MirBSD.
4365
4366         tests: fix unportable assumption on sys/wait.h
4367         * tests/test-sys_wait.c (main): Relax test.
4368         * tests/test-stdlib.c (main): Likewise.
4369
4370         init.sh: accomodate directory with no .exes
4371         * tests/init.sh: Accomodate directory containing only scripts.
4372
4373         tests: avoid compiler warning
4374         * tests/test-stdlib.c (main): Use the variable.
4375
4376         fdutimens, fdutimensat: update signature, again
4377         * lib/utimens.h (gl_futimens): Delete, and move signature...
4378         (fdutimens): ...here.
4379         (fdutimensat): Rearrange signature.
4380         (lutimensat): Rename variable for clarity.
4381         * lib/fdutimensat.c (fdutimensat): Update signature.
4382         * lib/utimens.c (fdutimens): Likewise.
4383         (gl_futimens): Delete.
4384         (utimens, lutimens): Update callers.
4385         * lib/futimens.c (futimens): Likewise.
4386         * tests/test-fdutimensat.c: Likewise.
4387         * tests/test-utimens.c: Likewise.
4388         * tests/test-futimens.h: Update comment.
4389         * NEWS: Mention this.
4390         Suggested by Paul Eggert.
4391
4392 2010-09-17  Bruno Haible  <bruno@clisp.org>
4393
4394         Take over the maintenance of some older macros from Autoconf.
4395         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
4396         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
4397         GNU Autoconf.
4398         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
4399         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
4400
4401 2010-09-17  Eric Blake  <eblake@redhat.com>
4402
4403         fdutimensat: drop atflag validation
4404         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
4405         with valid fd, to close a race scenario where futimens is
4406         unsupported and FILE was replaced by a symlink.
4407         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
4408         accordingly.
4409         Suggested by Paul Eggert.
4410
4411 2010-09-16  Bruno Haible  <bruno@clisp.org>
4412
4413         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
4414         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
4415
4416 2010-09-16  Bruno Haible  <bruno@clisp.org>
4417
4418         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
4419         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
4420         login_tty exists.
4421         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4422
4423 2010-09-16  Bruno Haible  <bruno@clisp.org>
4424
4425         login_tty: Make the replacement code work on BSD systems.
4426         * lib/login_tty.c: Include <sys/ioctl.h>.
4427         (login_tty): Use ioctl TIOCSCTTY when available.
4428         * modules/login_tty (Depends-on): Add sys_ioctl.
4429         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4430
4431 2010-09-16  Bruno Haible  <bruno@clisp.org>
4432
4433         login_tty: Stricter unit test.
4434         * modules/login_tty-tests (Depends-on): Add tcgetsid.
4435         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
4436         and tcgetsid() after login_tty.
4437         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4438
4439 2010-09-16  Bruno Haible  <bruno@clisp.org>
4440
4441         New module 'tcgetsid'.
4442         * lib/tcgetsid.c: New file.
4443         * m4/tcgetsid.m4: New file.
4444         * modules/tcgetsid: New file.
4445         * modules/termios (Depends-on): Add c++defs, warn-on-use.
4446         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
4447         GNULIB_TCGETSID, HAVE_TCGETSID.
4448         * lib/termios.in.h: Include <sys/types.h>.
4449         (tcgetsid): New declaration.
4450         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4451         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4452         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4453         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4454
4455 2010-09-16  Bruno Haible  <bruno@clisp.org>
4456
4457         Tests for module 'termios'.
4458         * modules/termios-c++-tests: New file.
4459         * modules/termios-tests: New file.
4460         * tests/test-termios-c++.cc: New file.
4461         * tests/test-termios.c: New file.
4462
4463         New module 'termios'.
4464         * modules/termios: New file.
4465         * lib/termios.in.h: New file.
4466         * m4/termios_h.m4: New file.
4467         * doc/posix-headers/termios.texi: Mention the new module.
4468
4469 2010-09-16  Eric Blake  <eblake@redhat.com>
4470
4471         fdutimensat: add an atflag parameter
4472         * lib/fdutimensat.c (fdutimensat): Add new parameter.
4473         * lib/utimens.h (fdutimensat): Update prototype.
4474         * tests/test-fdutimensat.c: Adjust test to match.
4475         * NEWS: Document the change.
4476         Suggested by Paul Eggert.
4477
4478 2010-09-16  Bruno Haible  <bruno@clisp.org>
4479
4480         Fix typos in comments.
4481         * lib/striconveh.h: Fix typo in comment.
4482         * lib/login_tty.c (login_tty): Likewise.
4483
4484 2010-09-15  Bruno Haible  <bruno@clisp.org>
4485
4486         stdlib: clarify MirBSD WEXITSTATUS bug
4487         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
4488         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4489
4490 2010-09-15  Eric Blake  <eblake@redhat.com>
4491
4492         stdlib: work around MirBSD WEXITSTATUS bug
4493         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
4494         * modules/stdlib (Depends-on): Add sys_wait.
4495         * tests/test-sys_wait.c (main): Enhance test.
4496         * tests/test-stdlib.c (main): Likewise.
4497         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
4498
4499         docs: mention MacOS issue with WEXITSTATUS(constant)
4500         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
4501         issue.
4502         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4503
4504         strnlen: add tests
4505         * modules/strnlen-tests: New file.
4506         * tests/test-strnlen.c: Likewise.
4507
4508 2010-09-14  Bruno Haible  <bruno@clisp.org>
4509
4510         unistr/base: Avoid link errors when module 'libunistring' is also used.
4511         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
4512         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
4513         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
4514         Declare also when HAVE_LIBUNISTRING is set.
4515         Reported by Pádraig Brady <P@draigbrady.com>.
4516
4517 2010-09-14  Eric Blake  <eblake@redhat.com>
4518
4519         test-rawmemchr: make more robust
4520         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
4521         (Depends-on, configure.ac): Add needed prerequisites to use it.
4522         * modules/memchr-tests (Files, Depends-on, configure.ac):
4523         Likewise, to avoid implicit reliance on memchr module prereqs.
4524         * tests/test-memchr.c (main): Ensure proper masking.
4525         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
4526         reads.
4527
4528         memchr: detect glibc Alpha bug
4529         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
4530         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
4531         Alpha.
4532         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
4533         * tests/test-memchr.c (main): Enhance test.
4534         Reported by Nelson H. F. Beebe.
4535
4536 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4537
4538         fts, getcwd, glob: audit for dirfd returning -1
4539         * lib/fts.c (opendir): Remove #define; no longer used.
4540         (opendirat): New arg PDIR_FD.  All callers changed.
4541         (fts_build, _opendir2): Use new opendirat to avoid the need for
4542         dirfd, or for checking whether dirfd returns a negative value.
4543         Don't use opendir; always use openat followed by fdopendir.
4544         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
4545         it.
4546         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
4547         returns -1 here.
4548         * modules/fts (Depends-on): Remove dirfd.
4549         * modules/getcwd (Depends-on): Likewise.
4550
4551 2010-09-13  Eric Blake  <eblake@redhat.com>
4552
4553         float: fix broken MirBSD header
4554         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
4555         * doc/posix-headers/float.texi (float.h): Document it.
4556
4557 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4558
4559         fts: use O_NOFOLLOW to avoid race condition when opening a directory
4560         * lib/fts.c (opendirat): New arg extra_flags.
4561         (__opendir2): Use it to avoid following symlinks when opening
4562         a directory, if symlinks are not supposed to be followed.  See
4563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
4564
4565         fdopendir: preserve argument fd before returning
4566         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
4567         (fdopendir_with_dup, fd_clone_opendir): New static functions.
4568         (fdopendir): Use them, arranging for FD to be open to the same
4569         directory that it was when it started.  (It might be temporarily
4570         closed while fdopendir is running, so this not thread- or
4571         signal-safe.)  Be careful to do the right thing even when file
4572         descriptors are scarce and dup fails with errno == EMFILE.  See
4573         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
4574
4575 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
4576
4577         regex: Pass the system regex if its only problem is 32-bit regoff_t.
4578         * NEWS: Document change.
4579         * m4/regex.m4: Disable test for regoff_t size.
4580
4581 2010-09-13  Jim Meyering  <meyering@redhat.com>
4582
4583         fts: don't operate on an invalid file descriptor after failed dup
4584         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
4585         negative file descriptor.
4586
4587 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4588
4589         savedir: add streamsavedir, deprecate fdsavedir
4590         * NEWS: Mention deprecation of fdsavedir.
4591         * lib/savedir.c (streamsavedir): New extern function, whose name
4592         ends in "savedir" to be consistent with the others.  This differs
4593         from savedirstream in that it doesn't close its argument.  The
4594         next version of GNU tar will use this instead of fdsavedir, to
4595         avoid some race conditions and conserve file descriptors.
4596         (savedirstream): Reimplement as a wrapper around streamsavedir.
4597         (fdsavedir): Add a comment deprecating this function.  As far as
4598         I know, only GNU tar used it, and GNU tar doesn't need it any more.
4599         * lib/savedir.h (streamsavedir): New decl.
4600         (fdsavedir): Add a comment deprecating this.
4601
4602 2010-09-10  Bruno Haible  <bruno@clisp.org>
4603
4604         langinfo: Fix last commit.
4605         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
4606         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
4607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4608
4609 2010-09-10  Bruno Haible  <bruno@clisp.org>
4610
4611         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
4612         * lib/progreloc.c (O_EXEC): Define fallback.
4613
4614 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4615
4616         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
4617         * NEWS: Document recent changes to fcntl-h.
4618         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
4619         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
4620         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
4621         Similarly for O_SEARCH; this last was already true, but not documented.
4622         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
4623         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
4624         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
4625         Likewise.
4626         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
4627         is zero, not whether it is defined.
4628         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
4629         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
4630         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
4631
4632 2010-09-10  Bruno Haible  <bruno@clisp.org>
4633
4634         langinfo, nl_langinfo: Fix for IRIX 5.3.
4635         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
4636         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
4637         HAVE_LANGINFO_YESEXPR.
4638         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
4639         HAVE_LANGINFO_YESEXPR.
4640         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
4641         HAVE_LANGINFO_T_FMT_AMPM is 0.
4642         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
4643         HAVE_LANGINFO_YESEXPR is 0.
4644         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
4645         NOEXPR.
4646         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
4647         * doc/posix-functions/nl_langinfo.texi: Likewise.
4648         Reported by Eric Blake.
4649
4650 2010-09-10  Bruno Haible  <bruno@clisp.org>
4651
4652         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
4653         * doc/glibc-functions/login_tty.texi: Mention the include file problem
4654         on FreeBSD 8.0 and OpenBSD 4.6.
4655         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
4656         * m4/pty_h.m4 (gl_PTY_H): Likewise.
4657         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
4658         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
4659         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
4660         ac_includes_default.
4661         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4662
4663 2010-09-09  Eric Blake  <eblake@redhat.com>
4664
4665         strsignal: work around NetBSD bug
4666         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
4667         * lib/string.in.h (includes): Likewise.
4668         * doc/posix-functions/strsignal.texi (strsignal): Document the
4669         bug.
4670         Reported by Nelson H. F. Beebe.
4671
4672         gnulib-tool: work with NetBSD /bin/sh
4673         * gnulib-tool (func_cache_var, func_cache_lookup_module)
4674         (func_get_description, func_get_comment, func_get_status)
4675         (func_get_notice, func_get_applicability, func_get_filelist)
4676         (func_get_dependencies, func_get_autoconf_early_snippet)
4677         (func_get_autoconf_snippet, func_get_automake_snippet)
4678         (func_get_include_directive, func_get_link_directive)
4679         (func_get_license, func_get_maintainer, func_import): Avoid
4680         shell syntax errors from parsing syntax extensions.
4681
4682 2010-09-09  Bruno Haible  <bruno@clisp.org>
4683
4684         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4685         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
4686         a reliable way to determine whether the 'alias' command works.
4687
4688 2010-09-08  Jim Meyering  <meyering@redhat.com>
4689
4690         init.sh: penalize a set-x-impaired shell; don't disqualify it
4691         * tests/init.sh: Too many shells corrupt application stderr when
4692         you set -x, so we can't afford to disqualify them, since at least
4693         on Irix-6.5, that would disqualify all bourne shells.
4694         Instead, use a two-pass approach.
4695         On the first pass, try to find a shell that meets the stricter
4696         condition that set -x does not corrupt stderr.
4697         If no shell meets the stricter condition, retest each candidate
4698         shell, but without that extra condition.  Finally, when
4699         VERBOSE=yes is requested and set -x might cause trouble, simply
4700         issue a warning and refrain from enabling debug output.
4701
4702 2010-09-08  Eric Blake  <eblake@redhat.com>
4703
4704         unsetenv: fix OpenBSD bug
4705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
4706         * doc/posix-functions/unsetenv.texi (unsetenv): Update
4707         documentation.
4708         Reported by Jim Meyering.
4709
4710         strtod: work around IRIX 6.5 bug
4711         * lib/strtod.c (strtod): Reparse number on shorter string if
4712         exponent parse was invalid.
4713         * tests/test-strtod.c (main): Add check for "0x1p 2".
4714         Reported by Tom G. Christensen.
4715
4716         getopt: optimize previous patch
4717         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
4718         empty variable.  Speed up awk script.
4719         Reported by Paolo Bonzini.
4720
4721 2010-09-08  Jim Meyering  <meyering@redhat.com>
4722
4723         test.sh: disqualify shells for which set -x corrupts stderr
4724         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
4725         and OpenBSD 4.7.  They make it so with "set -x", environment settings
4726         appear in stderr output.  For example, this command:
4727             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
4728         prints "P=1" on those two systems:
4729
4730 2010-09-08  Bruno Haible  <bruno@clisp.org>
4731
4732         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4733         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
4734         commands, because some shells ignore redirections when there is an
4735         error in the command lookup.
4736         Reported by Eric Blake.
4737
4738 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
4739
4740         * lib/regex.h: Fix a mention of `regex_compile' (should be
4741         `re_compile_pattern').
4742         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
4743         (re_set_registers): Correct name of parameter in comment.
4744
4745         * doc/regex.texi: Add documentation for missing syntax flags.
4746         Remove commented-out documentation of defunct syntax option
4747         RE_NO_EMPTY_ALTS.
4748         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
4749         Add documentation of re_set_registers.
4750         Document trick to re-use a pattern buffer by setting fastmap manually.
4751         Update documentation of struct re_pattern_buffer per public members.
4752         Uncomment documentation of equivalence class operators and
4753         collating symbol operators, since they are now implemented,
4754         Explain leftmost-longest matching in relation to alternatives.
4755         Tidy documentation of substring matching.
4756         Remove POSIX documentation, which is done better in
4757         glibc, and refer the reader there. Keep BSD API documentation, as
4758         that is not readily available elsewhere.
4759
4760 2010-09-07  Eric Blake  <eblake@redhat.com>
4761
4762         getopt: handle POSIXLY_CORRECT set but not exported
4763         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
4764         export state of POSIXLY_CORRECT, due to bash set -o posix.
4765         Reported by Dustin J. Mitchell.
4766
4767 2010-09-05  Bruno Haible  <bruno@clisp.org>
4768
4769         gnulib-tool: Highlight the changed options.
4770         * gnulib-tool (func_usage): Display the --import, --add-import,
4771         --remove-import explanations in bold font.
4772
4773 2010-09-06  Karl Berry  <karl@gnu.org>
4774
4775         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
4776
4777 2010-09-05  Bruno Haible  <bruno@clisp.org>
4778
4779         uniwidth/width: Update comment.
4780         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
4781         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
4782
4783 2010-09-05  Bruno Haible  <bruno@clisp.org>
4784
4785         isinf, isnan: Relax license.
4786         * modules/isinf (License): Change from GPL to LGPL, with consent from
4787         Ben Pfaff.
4788         * modules/isnan (License): Likewise.
4789         Requested by Ludovic Courtès.
4790
4791 2010-09-04  Bruno Haible  <bruno@clisp.org>
4792
4793         gnulib-tool: Help migration from --import to --add-import or --update.
4794         * gnulib-tool: Emit a verbose error message when --import is used
4795         without any module name.
4796
4797 2010-09-04  Bruno Haible  <bruno@clisp.org>
4798
4799         Update doc about gnulib-tool.
4800         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
4801         'gnulib-tool --update' in more detail.
4802         Reported by Eric Blake.
4803
4804 2010-09-04  Bruno Haible  <bruno@clisp.org>
4805
4806         gnulib-tool: Change --import. New options --add/remove-import.
4807         * gnulib-tool: New options --add-import, --remove-import.
4808         (func_usage): Document them.
4809         (have_associative): Define always.
4810         (func_import): In import mode, don't merge the specified settings with
4811         the cached settings. Implement remove-import mode.
4812         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
4813         Explain when to use them versus --import.
4814         (Simple update): Use --add-import instead of --import.
4815         * NEWS: Mention the change.
4816
4817 2010-09-04  Bruno Haible  <bruno@clisp.org>
4818
4819         * doc/gnulib-tool.texi (Initial import): Update paragraph about
4820         separate gnulib.mk.
4821
4822 2010-09-04  Bruno Haible  <bruno@clisp.org>
4823
4824         gnulib-tool: Don't talk about CVS any more.
4825         * gnulib-tool (func_usage, func_import): Write "version control"
4826         instead of CVS.
4827
4828 2010-09-04  Jim Meyering  <meyering@redhat.com>
4829
4830         maint.mk: avoid obscure sc_copyright_check failure in coreutils
4831         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
4832         false positives (whose names may be ill-chosen) when searching
4833         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
4834         would cause a false-positive.
4835
4836         avoid coreutils "make distcheck" failure
4837         Coreutils tests with an absolute build directory name that contains
4838         a space.  Not quoting this directory name caused a failure.
4839         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
4840         * tests/test-vc-list-files-cvs.sh: Likewise.
4841
4842 2010-09-04  Bruno Haible  <bruno@clisp.org>
4843
4844         gnulib-tool: Avoid error when run in a package without Makefile.am.
4845         * gnulib-tool: When collecting the m4dirs in a package that does not
4846         have a Makefile.am, eliminate those directories that contain no
4847         gnulib-cache.m4. Fix expression that counts these directories.
4848
4849 2010-09-04  Bruno Haible  <bruno@clisp.org>
4850
4851         update-copyright test: Improve output when perl is missing or too old.
4852         * tests/test-update-copyright.sh: Move test of Perl version down after
4853         the test whether Perl exists. Provide an explanation relating Perl's
4854         error message to Automake's SKIP: message.
4855
4856 2010-09-04  Bruno Haible  <bruno@clisp.org>
4857
4858         Don't augment PATH in TESTS_ENVIRONMENT.
4859         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
4860         set abs_aux_dir instead of augmenting PATH.
4861         * modules/vc-list-files-tests (Makefile.am): Likewise.
4862         * tests/test-update-copyright.sh: Augment PATH here.
4863         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
4864         path_prepend_.
4865         * tests/test-vc-list-files-git.sh: Likewise.
4866
4867 2010-09-04  Jim Meyering  <meyering@redhat.com>
4868
4869         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
4870         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
4871
4872 2010-09-04  Bruno Haible  <bruno@clisp.org>
4873
4874         strdup: Fix compilation error in C++ mode.
4875         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
4876         the macro.
4877
4878 2010-09-04  Bruno Haible  <bruno@clisp.org>
4879
4880         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
4881         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
4882         macro into a function.
4883         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4884
4885 2010-09-04  Bruno Haible  <bruno@clisp.org>
4886
4887         Set PATH_SEPARATOR the same way autoconf does.
4888         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
4889         the value of PATH_SEPARATOR the same way autoconf-generated configure
4890         scripts do.
4891         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
4892         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
4893
4894 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4895
4896         Set PATH_SEPARATOR the same way autoconf does.
4897         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
4898         the same way autoconf-generated configure scripts do.
4899         * posix-modules: Likewise.
4900
4901 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
4902
4903         hash: fix safe_hasher const typo
4904         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
4905         const; otherwise, there is a type error later.
4906
4907 2010-09-02  Jim Meyering  <meyering@redhat.com>
4908
4909         test-update-copyright.sh: require perl 5.8.0
4910         * tests/test-update-copyright.sh: Require 5.8.0,
4911         which Tom G. Christensen has confirmed is adequate,
4912         while 5.6.1 is not.
4913
4914 2010-09-02  Eric Blake  <eblake@redhat.com>
4915
4916         tests: init.sh improvements for re-exec'ing with zsh
4917         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
4918         -vx through shell re-exec.
4919         Reported by Tom G. Christensen.
4920
4921         wctype: fix typo in previous commit
4922         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
4923         Reported by Ludovic Courtès.
4924
4925 2010-09-02  Jim Meyering  <meyering@redhat.com>
4926
4927         test-update-copyright.sh: skip test if Perl is too old
4928         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
4929         Reported by Tom G. Christensen.
4930
4931 2010-09-02  Bruno Haible  <bruno@clisp.org>
4932
4933         wctype: Avoid compilation error on IRIX 6.5.30.
4934         * lib/wctype.in.h (iswblank): Declare with a replacement if
4935         REPLACE_ISWBLANK is set.
4936         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
4937         declared. Set REPLACE_ISWBLANK.
4938         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
4939         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
4940         * doc/posix-headers/wctype.texi: Likewise.
4941         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4942
4943 2010-09-01  Bruno Haible  <bruno@clisp.org>
4944
4945         New module 'socketlib'.
4946         * modules/socketlib: New file.
4947         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
4948         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
4949         * modules/sockets (Depends-on): Add socketlib.
4950         Suggested by Sam Steingold <sds@gnu.org>.
4951
4952 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4953
4954         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
4955
4956         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
4957         when one needs search access to a directory but not read access.
4958         On systems where it is available, it works in some cases where
4959         O_RDONLY does not, namely on directories that are searchable but
4960         not readable, and which need only to be searchable.  If O_SEARCH
4961         is not available, fall back to the traditional method of using
4962         O_RDONLY.
4963
4964         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
4965         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
4966         when opening a directory that needs only to be searchable.
4967         * lib/chdir-safer.c (chdir_no_follow): Likewise.
4968         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
4969         * lib/openat-proc.c (openat_proc_name): Likewise.
4970         * lib/openat.c (openat_needs_fchdir): Likewise.
4971         * lib/save-cwd.c (save_cwd): Likewise.
4972         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
4973
4974 2010-08-28  Bruno Haible  <bruno@clisp.org>
4975
4976         New module 'host-cpu-c-abi'.
4977         * modules/host-cpu-c-abi: New file.
4978         * m4/host-cpu-c-abi.m4: New file, based on part of
4979         clisp/src/m4/general.m4.
4980         Requested by Sam Steingold <sds@gnu.org>.
4981
4982 2010-08-31  Eric Blake  <eblake@redhat.com>
4983         and Jim Meyering  <meyering@redhat.com>
4984
4985         hash: factor, and guard against misbehaving hasher function
4986         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
4987         of table->hasher's return value.  Also protect against a hash value
4988         so large that adding it to table->bucket results in a NULL pointer.
4989         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
4990         Use it in place of open-coded check-and-abort.
4991
4992 2010-08-30  Bruno Haible  <bruno@clisp.org>
4993
4994         hash: silence spurious clang warning
4995         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
4996         Reported by Eric Blake.
4997
4998 2010-08-30  Eric Blake  <eblake@redhat.com>
4999
5000         strstr, memmem, strcasestr: avoid leaked shell message
5001         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5002         FreeBSD.
5003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5005
5006         tests: silence clang warning
5007         * tests/test-malloca.c (do_allocation): Avoid dead store.
5008
5009 2010-08-29  Bruno Haible  <bruno@clisp.org>
5010
5011         gettext: Fix recent mistake.
5012         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5013
5014 2010-08-29  Bruno Haible  <bruno@clisp.org>
5015
5016         selinux-h: Offer a --without-selinux option.
5017         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5018         --without-selinux was specified, skip all tests and define
5019         HAVE_SELINUX_SELINUX_H to 0.
5020         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5021         set LIB_SELINUX to empty.
5022         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5023         gl_LIBSELINUX. If --without-selinux was specified, replace
5024         selinux/context.h.
5025         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5026
5027 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5028             Bruno Haible  <bruno@clisp.org>
5029
5030         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5031         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5032         of HAVE_REALLOC.
5033         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5034         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5035         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5036         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5037
5038 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5039             Bruno Haible  <bruno@clisp.org>
5040
5041         Make the module 'calloc-gnu' work again on AIX and OSF/1.
5042         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5043         HAVE_CALLOC.
5044         * lib/xmalloc.c: Update accordingly.
5045         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
5046         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
5047         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
5048
5049 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5050             Bruno Haible  <bruno@clisp.org>
5051
5052         Make the module 'malloc-gnu' work again on AIX and OSF/1.
5053         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
5054         HAVE_MALLOC.
5055         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
5056         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
5057         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5058
5059 2010-08-29  Bruno Haible  <bruno@clisp.org>
5060
5061         Update modules list.
5062         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5063         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
5064         (String handling <string.h>): Add astrxfrm.
5065         (File system functions): Add readlinkat.
5066
5067 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5068
5069         Tests for module 'realloc-gnu'.
5070         * modules/realloc-gnu-tests: New file.
5071         * tests/test-realloc-gnu.c: New file.
5072
5073         Tests for module 'calloc-gnu'.
5074         * modules/calloc-gnu-tests: New file.
5075         * tests/test-calloc-gnu.c: New file.
5076
5077         Tests for module 'malloc-gnu'.
5078         * modules/malloc-gnu-tests: New file.
5079         * tests/test-malloc-gnu.c: New file.
5080
5081 2010-08-28  Bruno Haible  <bruno@clisp.org>
5082
5083         Rename module 'realloc' -> 'realloc-gnu'.
5084         * modules/realloc-gnu: New file, copied from modules/realloc.
5085         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5086         obsolete.
5087         * modules/mgetgroups (Depends-on): Update.
5088         * doc/posix-functions/realloc.texi: Update.
5089         * NEWS: Mention the change.
5090
5091         Rename module 'calloc' -> 'calloc-gnu'.
5092         * modules/calloc-gnu: New file, copied from modules/calloc.
5093         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5094         obsolete.
5095         * doc/posix-functions/calloc.texi: Update.
5096         * NEWS: Mention the change.
5097
5098         Rename module 'malloc' -> 'malloc-gnu'.
5099         * modules/malloc-gnu: New file, copied from modules/malloc.
5100         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5101         obsolete.
5102         * modules/argp (Depends-on): Update.
5103         * modules/regex (Depends-on): Update.
5104         * doc/posix-functions/malloc.texi: Update.
5105         * NEWS: Mention the change.
5106
5107 2010-08-28  Eric Blake  <eblake@redhat.com>
5108
5109         pread, pwrite: add missing dependency
5110         * modules/pread (Depends-on): Add extensions.
5111         * modules/pwrite (Depends-on): Likewise.
5112
5113 2010-08-28  Bruno Haible  <bruno@clisp.org>
5114
5115         unistr/u*-strchr: Fix tests dependencies.
5116         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5117         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5118         Reported by Ian Beckwith <ianb@erislabs.net>.
5119
5120 2010-08-28  Bruno Haible  <bruno@clisp.org>
5121
5122         read-file: Don't occupy too much unused memory.
5123         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5124
5125 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5126             Eric Blake  <eblake@redhat.com>
5127             Bruno Haible  <bruno@clisp.org>
5128
5129         read-file: Avoid memory reallocations with regular files.
5130         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5131         (fread_file): With regular files, use the remaining length as the
5132         initial buffer size.  Check against overflow.
5133         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5134         sys_stat.
5135
5136 2010-08-28  Bruno Haible  <bruno@clisp.org>
5137
5138         ftello: Relax license.
5139         * modules/ftello (License): Relax to LGPLv2+.
5140         Reported by Eric Blake.
5141
5142 2010-08-28  Bruno Haible  <bruno@clisp.org>
5143
5144         Avoid relocwrapper link errors due to gnulib replacement functions.
5145         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5146         function.
5147         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5148
5149 2010-08-28  Bruno Haible  <bruno@clisp.org>
5150
5151         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5152         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5153         defined.
5154         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5155         Suggested by Eric Blake.
5156
5157 2010-08-28  Bruno Haible  <bruno@clisp.org>
5158
5159         sys_socket, netdb: Ensure socklen_t gets defined.
5160         * modules/sys_socket (Depends-on): Add socklen.
5161         * modules/netdb (Depends-on): Likewise.
5162         * modules/getaddrinfo (Depends-on): Remove socklen.
5163         * modules/getsockopt (Depends-on): Likewise.
5164         * modules/setsockopt (Depends-on): Likewise.
5165         * tests/test-sys_socket.c: Check that socklen_t is defined.
5166         * tests/test-netdb.c: Likewise.
5167         * m4/socklen.m4: Update comments.
5168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5169
5170 2010-08-27  Eric Blake  <eblake@redhat.com>
5171
5172         login_tty: add missing dependency
5173         * modules/login_tty (Depends-on): Add pty.
5174
5175 2010-08-26  Eric Blake  <eblake@redhat.com>
5176
5177         lib-symbol-versions: fix m4 quoting
5178         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5179         format for AC_LINK_IFELSE.
5180
5181         glob: fix compile test
5182         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5183
5184         btowc: fix missing file
5185         * modules/btowc (Files): Also ship locale-fr.m4.
5186
5187         lseek: fix link test
5188         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5189         AC_LINK_IFELSE.
5190
5191         include_next: silence autoconf 2.68 warning
5192         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5193         AC_COMPILE_IFELSE as special.
5194         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5195         autoconf < 2.68.
5196
5197         acl: fix compilation test
5198         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5199         AC_COMPILE_IFELSE.
5200
5201 2010-08-26  Bruno Haible  <bruno@clisp.org>
5202
5203         Modernize AC_TRY_RUN invocations.
5204         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5205         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5206         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5207         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5208         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5209         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5210         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5211         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5212         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5213         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5214         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5215         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5216         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5217         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5218         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5219         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5220         gl_MBRLEN_NUL_RETVAL): Likewise.
5221         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5222         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5223         Likewise.
5224         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5225         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5226         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5227         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5228         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5229         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5230         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5231         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5232         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5233         Likewise.
5234         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5235         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5236         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5237         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5238         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5239         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5240         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5241         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5242         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5244
5245 2010-08-26  Bruno Haible  <bruno@clisp.org>
5246
5247         Modernize AC_TRY_LINK invocations.
5248         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5249         AC_TRY_LINK.
5250         * m4/argp.m4 (gl_ARGP): Likewise.
5251         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5252         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5253         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5254         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5255         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5256         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5257         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5258         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5259         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5260         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5261         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5262         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5263         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5264         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5265         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5266         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5267         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5268         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5269         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5270         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5271         Likewise.
5272         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5273         Likewise.
5274         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5275         Likewise.
5276         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5277         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5278         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5279         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5280         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5281         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5282         * m4/servent.m4 (gl_SERVENT): Likewise.
5283         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5284         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5285         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5286         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5287         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5288         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5289         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5290         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5291         * modules/tsearch-tests (configure.ac): Likewise.
5292
5293 2010-08-26  Bruno Haible  <bruno@clisp.org>
5294
5295         Modernize AC_TRY_COMPILE invocations.
5296         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5297         AC_TRY_COMPILE.
5298         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5299         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5300         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5301         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5302         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5303         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5304         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5305         * m4/lock.m4 (gl_LOCK): Likewise.
5306         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5307         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5308         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5309         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5310         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5311         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5312         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5313         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5314         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5315         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5316         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5317         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5318         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5319         extraneous semicolon.
5320
5321 2010-08-26  Jim Meyering  <meyering@redhat.com>
5322
5323         stat-time: relax license LGPL
5324         * modules/stat-time (License): Change from GPL to LGPL,
5325         with consent from all contributors, for use in libguile.
5326         Requested by Ludovic Courtès.
5327
5328 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5329
5330         poll: return immediately on POLLHUP.
5331         * lib/poll.c (poll): Always set timeout before wait_timeout is
5332         computed.
5333
5334 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5335
5336         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5337         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5338         rmdir ("dir/.//"), unlinkat.
5339
5340 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5341
5342         stdbool: avoid spurious failure with modern xlc
5343         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5344
5345 2010-08-24  Bruno Haible  <bruno@clisp.org>
5346
5347         getloadavg: simplify code
5348         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5349         gl_have_func. Update comments.
5350
5351 2010-08-24  Eric Blake  <eblake@redhat.com>
5352
5353         getloadavg: don't define SVR4 on cygwin
5354         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5355         only define SVR4 when -lkvm is required.
5356         Reported by Yaakov Selkowitz.
5357
5358 2010-08-24  Bruno Haible  <bruno@clisp.org>
5359
5360         priv-set: fix comment
5361         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5362
5363 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5364
5365         priv-set: fix comments
5366         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5367         to match code, as suggested by David Bartley in:
5368         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5369
5370 2010-08-23  Eric Blake  <eblake@redhat.com>
5371
5372         stdbool: avoid rejecting clang
5373         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5374         * tests/test-stdbool.c: Enable more tests if using the system
5375         <stdbool.h> instead of the gnulib replacement.
5376         (main): Move xlc bug test to a runtime test for all compilers.
5377         Reported by Anders Kaseorg.
5378
5379         argz: fix shell quoting issue
5380         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
5381         Reported by Charles Wilson.
5382
5383 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
5384             Erik Faye-Lund <kusmabite@gmail.com>
5385
5386         poll, select: handle ERROR_BROKEN_PIPE.
5387         * lib/poll.c (win32_compute_revents): Return POLLHUP when
5388         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5389         * lib/select.c (win32_compute_revents): Do not mark a pipe
5390         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5391
5392 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
5393
5394         fts: allow compilation with C++
5395         * lib/fts_.h: Specify extern "C" linkage with C++.
5396
5397 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5398
5399         Fix gnulib-tool sed script de-commentation for AIX sed.
5400         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
5401         sed.
5402
5403 2010-08-17  Eric Blake  <eblake@redhat.com>
5404
5405         test-stddef: test for (some) offsetof bugs
5406         * tests/test-stddef.c: Enhance test to ensure correct type of
5407         offsetof.
5408         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
5409         that we are not fixing at this time.
5410
5411 2010-08-15  Bruno Haible  <bruno@clisp.org>
5412
5413         stpncpy: Allow stpncpy to be defined as a macro.
5414         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
5415         if it's already correctly declared.
5416         * lib/string.in.h (stpncpy): Undefine before redefining.
5417         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
5418
5419 2010-08-14  Bruno Haible  <bruno@clisp.org>
5420
5421         Rename module 'memxfrm' to 'amemxfrm'.
5422         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
5423         (amemxfrm): Renamed from memxfrm.
5424         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
5425         (amemxfrm): Renamed from memxfrm.
5426         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
5427         * NEWS: Mention the change.
5428         * MODULES.html.sh (String handling <string.h>): Update.
5429         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
5430         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
5431         * lib/unicase/u16-casexfrm.c: Likewise.
5432         * lib/unicase/u32-casexfrm.c: Likewise.
5433         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
5434         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
5435         * lib/uninorm/u16-normxfrm.c: Likewise.
5436         * lib/uninorm/u32-normxfrm.c: Likewise.
5437         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
5438         memxfrm.
5439         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
5440         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
5441         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
5442         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
5443         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
5444         Suggested by Paul Eggert.
5445
5446 2010-08-14  Bruno Haible  <bruno@clisp.org>
5447
5448         Tests for module 'astrxfrm'.
5449         * modules/astrxfrm-tests: New file.
5450         * tests/test-astrxfrm.c: New file.
5451
5452         New module 'astrxfrm'.
5453         * lib/astrxfrm.h: New file.
5454         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5455         * modules/astrxfrm: New file.
5456
5457 2010-08-14  Reuben Thomas <rrt@sc3d.org>
5458
5459         regex: Tweak doc.
5460         * doc/regex.texi (Overview): Don't mention regex.c.
5461         (GNU Regular Expression Compiling): Likewise.
5462         (Match-end-of-line Operator): Mention 'not_eol'.
5463
5464 2010-08-14  Brian Gough  <bjg@gnu.org>
5465             Bruno Haible  <bruno@clisp.org>
5466
5467         git-merge-changelog: add doc relating to use with bzr and hg.
5468         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
5469
5470 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
5471
5472         pthread: fix pthread.h creation for srcdir != builddir
5473         * modules/pthread (Makefile.am): Fix the rule to work also in a
5474         non-srcdir build.
5475
5476 2010-08-13  Karl Berry  <karl@gnu.org>
5477
5478         * doc/regex.texi (Predefined Syntaxes): @smallexample.
5479         * doc/posix-*/*: force line break before @url of POSIX
5480         specifications.
5481         Suggested by Werner Lemberg.
5482
5483 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5484
5485         strtod: fix const diagnostic
5486         * lib/strtod.c (strtod): Don't assign const char * to char *,
5487         as this elicits a warning from GCC when warnings are enabled.
5488
5489 2010-08-10  Pádraig Brady <P@draigbrady.com>
5490         and Eric Blake  <eblake@redhat.com>
5491
5492         copy-acl: ignore ENOTSUP on HP-UX
5493         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
5494         so that it is available for HP-UX.
5495         * lib/copy-acl.c (qcopy_acl): Use it.
5496         Reported by Patrick M. Callahan.
5497
5498 2010-08-10  Eric Blake  <eblake@redhat.com>
5499
5500         open, chown: relax license
5501         * modules/open (License): Change to LGPLv2+, with consent by all
5502         authors, for use in augeas.
5503         * modules/chown (License): Likewise.
5504         * modules/lchown (Likewise): Likewise.
5505         Requested by Adam Stokes.
5506
5507 2010-08-09  Karl Berry  <karl@gnu.org>
5508
5509         * build-aux/ar-lib: new file, import from Automake.
5510         * config/srclist.txt: autocheck for updates.
5511
5512 2010-08-09  Eric Blake  <eblake@redhat.com>
5513
5514         readlinkat: adjust client modules
5515         * modules/areadlinkat (Depends-on): Use readlinkat, not
5516         symlinkat.
5517         * modules/areadlinkat-with-size (Depends-on): Likewise.
5518
5519         mknod: be more vocal about danger of running tests as root
5520         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
5521         root, since that is just asking for problems.
5522         Suggested by Bruno Haible, based on a report by Rainer Tammer.
5523
5524         readlinkat: split into its own module
5525         * modules/symlinkat: Split readlinkat...
5526         * modules/readlinkat: ...into separate module.
5527         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
5528         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
5529         * lib/symlinkat.c (readlinkat): Move...
5530         * lib/readlinkat.c: ...into new file.
5531         * modules/symlinkat-tests: Split readlinkat test...
5532         * modules/readlinkat-tests: ...into separate module.
5533         * tests/test-symlinkat.c: Split...
5534         * tests/test-readlinkat.c: ...into new file.
5535         * NEWS: Document the split.
5536         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5537         * lib/unistd.in.h (readlinkat): Likewise.
5538         Suggested by Bruno Haible.
5539
5540 2010-08-08  Bruno Haible  <bruno@clisp.org>
5541
5542         memxfrm: Speed up.
5543         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
5544         that usually only one call to strxfrm is necessary for each string
5545         part.
5546         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5547
5548 2010-08-07  Karl Berry  <karl@gnu.org>
5549
5550         * doc/posix-headers/limits.texi,
5551         * doc/posix-functions/malloc.texi,
5552         * doc/posix-functions/strsignal.texi: missing @item.
5553         * doc/ld-version-script.texi: spurious leading i.
5554         * doc/regex.texi (Interval Operators): no commas inside @var.
5555
5556 2010-08-01  Bruno Haible  <bruno@clisp.org>
5557
5558         Integrate the regex documentation.
5559         * doc/gnulib.texi: Define 'cn' index.
5560         (Regular expressions): New a chapter that includes regex.texi and
5561         regexprops-generic.texi.
5562         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
5563         syntax.
5564
5565         Whitespace cleanup.
5566         * doc/regex.texi: Remove trailing spaces.
5567
5568         Add regex documentation.
5569         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
5570         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
5571         Written by Kathy A. Hargreaves and Karl Berry.
5572
5573 2010-08-01  Bruno Haible  <bruno@clisp.org>
5574
5575         link: Update documentation.
5576         * doc/posix-functions/link.texi: Update regarding Solaris.
5577
5578 2010-07-31  Bruno Haible  <bruno@clisp.org>
5579
5580         Update modules list.
5581         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
5582         (String handling <string.h>): Add memcmp2, memxfrm.
5583         (Container data structures): Add xlist, xsublist, xoset.
5584         (Core language properties): Add alignof, unused-parameter.
5585         (Process control, Numeric conversion functions <stdlib.h>): Renamed
5586         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
5587         (Unibyte characters <ctype.h>): New section.
5588         (String handling <string.h>): New section.
5589         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
5590         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
5591         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
5592         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
5593         tan, tanh, tanl, y0, y1, yn.
5594         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
5595         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
5596         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
5597         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
5598         unlockpt, vdprintf, vdprintf-posix.
5599         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
5600         (File system functions): Add concat-filename, sys_file, sys_ioctl,
5601         xconcat-filename.
5602         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
5603         getdtablesize, pipe2, pipe2-safer.
5604         (Security): New section.
5605         (Networking functions): Add accept4.
5606         (Signal handling): Add sigpipe.
5607         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
5608         mbmemcasecoll.
5609         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
5610         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
5611         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
5612         pipe-filter-ii.
5613         (Misc): Add argp-version-etc, login_tty, parse-duration.
5614
5615 2010-07-31  Bruno Haible  <bruno@clisp.org>
5616
5617         Improve doc in MODULES.html.
5618         * modules/linkat (Description): Add the word "function".
5619         * modules/mkfifo (Description): Likewise.
5620         * modules/mknod (Description): Likewise.
5621         * modules/remove (Description): Likewise.
5622         * modules/renameat (Description): Likewise.
5623         * modules/stat (Description): Likewise.
5624         * modules/symlink (Description): Likewise.
5625         * modules/unlink (Description): Likewise.
5626
5627 2010-07-31  Bruno Haible  <bruno@clisp.org>
5628
5629         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
5630         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
5631         option --enable/disable-c++ instead of --enable/disable-cxx.
5632         * NEWS: Mention the change.
5633
5634 2010-07-31  Bruno Haible  <bruno@clisp.org>
5635
5636         readlink, areadlink: Relax test a bit.
5637         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
5638         alternative to ENOTDIR.
5639         * tests/test-areadlink.h (test_areadlink): Likewise.
5640         Reported by Rainer Tammer.
5641
5642 2010-07-31  Bruno Haible  <bruno@clisp.org>
5643
5644         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
5645         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
5646         character, perform the search using U_STRCHR.
5647         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
5648         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
5649         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
5650         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
5651         Suggested by Paolo Bonzini.
5652
5653 2010-07-31  Bruno Haible  <bruno@clisp.org>
5654
5655         unistr/u*-strstr: Fix dependencies.
5656         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
5657         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
5658         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
5659
5660 2010-07-31  Bruno Haible  <bruno@clisp.org>
5661
5662         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
5663         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
5664         the beginning of the loop.
5665         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
5666         cases in 'switch' statement.
5667
5668         unistr/u8-strchr: Fix several bugs.
5669         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
5670         the string. When not found, return NULL, not a pointer near the end.
5671
5672         More tests for unistr/u8-strchr.
5673         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
5674         that the function does not read past the first occurrence of the byte
5675         being searched.
5676         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
5677         * tests/unistr/test-u16-strchr.c (main): New function.
5678         * tests/unistr/test-u32-strchr.c (main): New function.
5679
5680 2010-07-31  Bruno Haible  <bruno@clisp.org>
5681
5682         posix-modules: Ignore backup files of documentation files.
5683         * posix-modules: grep only through files named *.texi.
5684
5685 2010-07-31  Bruno Haible  <bruno@clisp.org>
5686
5687         symlinkat: Fix documentation.
5688         * doc/posix-functions/readlinkat.texi: Fix module name.
5689
5690 2010-07-31  Bruno Haible  <bruno@clisp.org>
5691
5692         fchownat: Replace also when chown has the trailing slash bug.
5693         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
5694         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
5695         introduced on 2010-04-10.
5696         Reported by Rainer Tammer.
5697
5698 2010-07-31  Bruno Haible  <bruno@clisp.org>
5699
5700         linkat: Work around AIX 7.1 bug.
5701         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
5702         whether linkat handles trailing slash correctly. If not, replace linkat
5703         and define LINKAT_TRAILING_SLASH_BUG.
5704         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
5705         check whether (fd1,file1) points to a directory if file1 or file2 ends
5706         in a slash. Code taken from lib/link.c.
5707         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
5708         Reported by Rainer Tammer.
5709
5710 2010-07-31  Bruno Haible  <bruno@clisp.org>
5711
5712         Correctly determine whether pow is available in libc on AIX 7 with xlc.
5713         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
5714         This disables an xlc optimization that was causing wrong test results.
5715         Reported by Rainer Tammer.
5716
5717 2010-07-31  Bruno Haible  <bruno@clisp.org>
5718
5719         iconv: Work around AIX 6.1..7.1 bug.
5720         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
5721         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
5722         cross-compiling, guess no on all versions of AIX.
5723         Reported by Rainer Tammer.
5724
5725 2010-07-31  Bruno Haible  <bruno@clisp.org>
5726
5727         readlink: Relax test a bit.
5728         * tests/test-readlink.h (test_readlink): Allow different errno value
5729         when readlink is called with a file name that ends in / and refers to
5730         a file.
5731         Suggested by Eric Blake.
5732         Reported by Rainer Tammer.
5733
5734 2010-07-31  Bruno Haible  <bruno@clisp.org>
5735
5736         copysign: Does not require -lm on glibc systems.
5737         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
5738         gl_COMMON_DOUBLE_MATHFUNC.
5739         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
5740
5741 2010-07-31  Bruno Haible  <bruno@clisp.org>
5742
5743         duplocale: Work around AIX 7.1 bug.
5744         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
5745         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
5746         * lib/duplocale.c (rpl_duplocale): Update comment.
5747         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
5748         Reported by Rainer Tammer.
5749
5750 2010-07-30  Bruno Haible  <bruno@clisp.org>
5751
5752         dirfd: Avoid link error on AIX 7.1.
5753         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
5754         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
5755         exist, set REPLACE_DIRFD.
5756         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
5757         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
5758         * doc/posix-functions/dirfd.texi: Update.
5759         Reported by Rainer Tammer.
5760
5761 2010-07-30  Eric Blake  <eblake@redhat.com>
5762
5763         strtod: next round of AIX fixes
5764         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
5765         exponent.
5766         * tests/test-strtod.c (main): Enhance tests.
5767         * doc/posix-functions/strtod.texi (strtod): Document next bug.
5768         Reported by Rainer Tammer.
5769
5770         futimens: fix configure check
5771         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
5772         Reported by Bruno Haible.
5773
5774 2010-07-30  Bruno Haible  <bruno@clisp.org>
5775
5776         getline: Update regarding AIX.
5777         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
5778         Reported by Rainer Tammer.
5779
5780 2010-07-30  Bruno Haible  <bruno@clisp.org>
5781
5782         wcwidth: Drop replacement on AIX 7.
5783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
5784         AIX 7.
5785         Reported by Rainer Tammer.
5786
5787 2010-07-30  Bruno Haible  <bruno@clisp.org>
5788
5789         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
5790         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
5791         a 'char *'.
5792         Reported by Rainer Tammer.
5793
5794 2010-07-30  Bruno Haible  <bruno@clisp.org>
5795
5796         unlink: Update regarding AIX.
5797         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
5798         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
5799         Reported by Rainer Tammer.
5800
5801 2010-07-30  Bruno Haible  <bruno@clisp.org>
5802
5803         symlink: Update regarding AIX.
5804         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
5805         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
5806         Reported by Rainer Tammer.
5807
5808 2010-07-30  Bruno Haible  <bruno@clisp.org>
5809
5810         strndup: Update regarding AIX.
5811         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
5812         AIX 7.
5813         Reported by Rainer Tammer.
5814
5815 2010-07-30  Bruno Haible  <bruno@clisp.org>
5816
5817         stat: Update regarding AIX.
5818         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
5819         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
5820         Reported by Rainer Tammer.
5821
5822 2010-07-30  Bruno Haible  <bruno@clisp.org>
5823
5824         truncl: Fix autoconf test.
5825         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
5826         whether truncl works.
5827         Reported by Rainer Tammer.
5828
5829 2010-07-30  Bruno Haible  <bruno@clisp.org>
5830
5831         round: Update regarding AIX.
5832         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
5833         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
5834         Reported by Rainer Tammer.
5835
5836 2010-07-30  Bruno Haible  <bruno@clisp.org>
5837
5838         rename: Update regarding AIX.
5839         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
5840         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
5841         Reported by Rainer Tammer.
5842
5843 2010-07-30  Bruno Haible  <bruno@clisp.org>
5844
5845         printf.m4: Update regarding AIX.
5846         * m4/printf.m4: Update comments regarding AIX.
5847         Reported by Rainer Tammer.
5848
5849 2010-07-30  Bruno Haible  <bruno@clisp.org>
5850
5851         iconv: Update regarding AIX.
5852         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
5853         AIX 7.
5854         Reported by Rainer Tammer.
5855
5856 2010-07-30  Bruno Haible  <bruno@clisp.org>
5857
5858         getopt: Update regarding AIX.
5859         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
5860         no on AIX.
5861         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
5862         Reported by Rainer Tammer.
5863
5864 2010-07-30  Bruno Haible  <bruno@clisp.org>
5865
5866         ldexpl; Update regarding AIX.
5867         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
5868         on AIX 7.
5869         Reported by Rainer Tammer.
5870
5871 2010-07-30  Bruno Haible  <bruno@clisp.org>
5872
5873         frexpl: Update regarding AIX.
5874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
5875         on AIX 7.
5876         Reported by Rainer Tammer.
5877
5878 2010-07-30  Bruno Haible  <bruno@clisp.org>
5879
5880         open, fopen: Update regarding AIX.
5881         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
5882         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5883         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
5884         * doc/posix-functions/fopen.texi: Likewise.
5885         Reported by Rainer Tammer.
5886
5887 2010-07-30  Bruno Haible  <bruno@clisp.org>
5888
5889         chown: Update doc regarding AIX.
5890         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
5891         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
5892         Reported by Rainer Tammer.
5893
5894 2010-07-30  Eric Blake  <eblake@redhat.com>
5895
5896         strtod: fix bug in replacement function on AIX
5897         * lib/strtod.c (strtod): Special case broken "0x" parse in
5898         underlying strtod.
5899         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
5900         * doc/posix-functions/strtod.texi (strtod): Likewise.
5901         Reported by Rainer Tammer.
5902
5903 2010-07-30  Bruno Haible  <bruno@clisp.org>
5904
5905         mbrlen: Fix cross-compilation guess for AIX.
5906         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
5907         guess. Leftover from 2008-12-22.
5908
5909 2010-07-30  Bruno Haible  <bruno@clisp.org>
5910
5911         mbrtowc: Fix cross-compilation guess for AIX.
5912         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
5913         guess. Leftover from 2008-12-21.
5914
5915 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
5916
5917         init.sh: work around trap limitation of some shells
5918         * tests/init.sh (setup_): Move exit trap outside of shell function.
5919
5920 2010-07-29  Eric Blake  <eblake@redhat.com>
5921
5922         strtod: aid debugging
5923         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
5924         understanding why strtod is rejected.
5925
5926 2010-07-28  Bruno Haible  <bruno@clisp.org>
5927
5928         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
5929         * lib/unistr/u8-chr.c: Include <string.h>.
5930         * tests/unistr/test-u8-chr.c: Likewise.
5931         * tests/unistr/test-u16-chr.c: Likewise.
5932         * tests/unistr/test-u32-chr.c: Likewise.
5933         * tests/unistr/test-u8-strchr.c: Likewise.
5934         * tests/unistr/test-u16-strchr.c: Likewise.
5935         * tests/unistr/test-u32-strchr.c: Likewise.
5936         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
5937         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
5938         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
5939         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
5940
5941 2010-07-28  Bruno Haible  <bruno@clisp.org>
5942
5943         Use spaces for indentation, not tabs.
5944         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5945
5946 2010-07-27  Bruno Haible  <bruno@clisp.org>
5947
5948         mbspcasecmp: Fix function specification.
5949         * lib/string.in.h (mbspcasecmp): Fix specification comment.
5950         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
5951         Reported by Eric Blake <eblake@redhat.com>.
5952
5953 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
5954
5955         timespec: use cast and not conditional, as truncation isn't possible
5956         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
5957         instead of a conditional.  Comment about the situation in more detail.
5958         This undoes most of the 2009-10-29 patch.
5959
5960 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
5961
5962         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
5963         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
5964         * lib/unistr/u8-strchr.c: Likewise.
5965         * modules/unistr/u8-chr: Depend on memchr.
5966
5967         unistr/u*-strchr: add tests
5968         * modules/unistr/u8-strchr-tests: New file.
5969         * modules/unistr/u16-strchr-tests: New file.
5970         * modules/unistr/u32-strchr-tests: New file.
5971         * tests/unistr/test-strchr.h: New file.
5972         * tests/unistr/test-u8-strchr.c: New file.
5973         * tests/unistr/test-u16-strchr.c: New file.
5974         * tests/unistr/test-u32-strchr.c: New file.
5975
5976         unistr/u*-chr: test multibyte sequences more
5977         * tests/unistr/test-chr.h: Do complete testing of the characters in the
5978         test vector.
5979         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
5980         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
5981         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
5982
5983         unistr/u*-chr: test multibyte sequences
5984         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
5985
5986         unistr/u*-chr: prepare for multibyte tests
5987         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
5988         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
5989         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
5990         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
5991         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
5992         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
5993
5994 2010-07-18  Bruno Haible  <bruno@clisp.org>
5995
5996         unistr/u8-strchr: Optimize non-ASCII argument case.
5997         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
5998         because the first byte often matches anyway.
5999         Reported by Pádraig Brady <P@draigbrady.com>.
6000
6001 2010-07-15  Karl Berry  <karl@gnu.org>
6002
6003         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6004
6005 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6006
6007         getcwd: on Solaris, work better if ancestors are inaccessible
6008         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6009         buffer and size, try again with a large buffer.  This works better
6010         on Solaris, since its getcwd succeeds even if the path to the root
6011         is inaccessible, and this is helpful in common cases such as .zfs
6012         hidden directories.  Problem reported by J Chapman Flack in
6013         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6014         Use system getcwd if it's declared, not merely if it's partly
6015         working; use the partly-working test only to avoid needless effort
6016         if the system getcwd fails.
6017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6018         comment that was already obsolete and is now even more obsolete.
6019         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6020         now might call strdup.
6021
6022 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6023
6024         pthread: Add enough so that coreutils/src/sort.c compiles.
6025         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6026         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6027         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6028         Include <sys/types.h>, in case it defines pthread_t.
6029         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6030         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6031         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6032         (pthread_rwlockattr_t, pthread_spinlock_t):
6033         New typedefs, if HAVE_PTHREAD_T is not defined.
6034         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6035         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6036         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6037         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6038         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6039         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6040         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6041         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6042         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6043         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6044         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6045         New macros.
6046         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
6047         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
6048         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
6049         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
6050         (pthread_spin_unlock): New dummy functions.
6051         (pthread_create): Return EAGAIN; don't set errno.
6052         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
6053         require AC_C_INLINE.
6054         * modules/pthread (Depends-on): Add sched, time.
6055         (pthread.h): Use AM_V_GEN.
6056
6057 2010-07-13  Bruno Haible  <bruno@clisp.org>
6058
6059         striconveh: Don't malloc memory if the result buffer is sufficient.
6060         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
6061         buffer if its size is sufficient.
6062         Reported by Ludovic Courtès <ludo@gnu.org>.
6063
6064 2010-07-13  Bruno Haible  <bruno@clisp.org>
6065
6066         strtod: Add safety check.
6067         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6068
6069 2010-07-12  Bruno Haible  <bruno@clisp.org>
6070
6071         Unify tests that set gl_cv_func_ldexpl_no_libm.
6072         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6073         gl_FUNC_LDEXPL.
6074         (gl_FUNC_LDEXPL): Invoke it.
6075         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6076
6077 2010-07-12  Bruno Haible  <bruno@clisp.org>
6078
6079         Unify tests that set gl_cv_func_ldexp_no_libm.
6080         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6081         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6082         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6083         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6084         * modules/strtod (Files): Add m4/ldexp.m4.
6085
6086 2010-07-12  Bruno Haible  <bruno@clisp.org>
6087
6088         Unify tests that set gl_cv_func_frexpl_no_libm.
6089         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6090         gl_FUNC_FREXPL_NO_LIBM.
6091         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6092         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6093
6094 2010-07-12  Bruno Haible  <bruno@clisp.org>
6095
6096         Unify tests that set gl_cv_func_frexp_no_libm.
6097         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6098         gl_FUNC_FREXP_NO_LIBM.
6099         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6100         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6101
6102 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6103
6104         memcoll: clarify sizes versus lengths, document better, and tweak perf
6105         * lib/memcoll.c (strcoll_loop, memcoll0):
6106         Improve quality of descriptive comments.  Name variables
6107         consistently as to whether they are lengths (which do not include
6108         terminating null) versus sizes (which do).
6109         * lib/xmemcoll.c (xmemcoll0): Likewise.
6110         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6111         returned when s1size == 0; this is easier to compile and saves
6112         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6113
6114 2010-07-12  Bruno Haible  <bruno@clisp.org>
6115
6116         Tests for module '_Exit'.
6117         * modules/_Exit-tests: New file.
6118         * tests/test-_Exit.sh: New file.
6119         * tests/test-_Exit.c: New file.
6120
6121         New module '_Exit'.
6122         * lib/stdlib.in.h (__attribute__): New macro.
6123         (_Exit): New declaration.
6124         * lib/_Exit.c: New file.
6125         * m4/_Exit.m4: New file.
6126         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6127         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6128         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6129         * modules/_Exit: New file.
6130         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6131         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6132
6133 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6134
6135         strtod: make it more-accurate typically, and don't require libm
6136         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6137         Include limits.h.  Don't include string.h.
6138         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6139         (locale_isspace): New function, so that no casts are needed to
6140         check whether *s is a space.
6141         (ldexp): Provide an unused dummy if not available.
6142         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6143         (strtod): Use them.  This implementation prefers to use the
6144         underlying strtod if available, falling back on our own code
6145         only to fix known bugs.  This is more likely to produce an
6146         accurate result.  Also, it avoids the use of libm functions.
6147         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6148         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6149         was absent, but it caused a test failure with coreutils.
6150         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6151         with libm.
6152         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6153         * modules/strtod-tests (Makefile.am): Likewise.
6154
6155 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6156             Bruno Haible  <bruno@clisp.org>
6157
6158         unistr/u8-strchr: Optimize ASCII argument case.
6159         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6160
6161 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6162
6163         (x)memcoll: minor tweaks
6164         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6165         is after the type that it qualifies.
6166         (memcoll0): Likewise.
6167         * lib/memcoll.h (memcoll0): Likewise.
6168         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6169         * lib/xmemcoll.h (xmemcoll0): Likewise.
6170         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6171         differs from memcoll in that the NUL byte is part of the argument.
6172         Omit the abort-checks, as performance is a real issue here.  Plus,
6173         the checks were wrong anyway (an off-by-one error).  Omit local
6174         variable 'diff', as it's a bit clearer that way.
6175         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6176         no longer needed.
6177
6178 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6179
6180         (x)memcoll: speedup when input is known to be NUL delimited
6181         * lib/memcoll.c: Include stdlib.
6182         (memcoll0) New function.
6183         (strcoll_loop) New function, refactored for use in both memcoll
6184         and memcoll0.
6185         * lib/memcoll.h: Add prototype for memcoll0.
6186         * lib/xmemcoll.c: (xmemcoll0) New function.
6187         (collate_error) New function, refactored for use in both xmemcoll
6188         and xmemcoll0.
6189         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6190         * m4/memcoll.m4: add inline invocation.
6191
6192 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6193
6194         * build-aux/bootstrap: Remove any local translations
6195         from the translation project synchronization directory,
6196         so that local only translations are not distributed.
6197
6198 2010-07-04  Bruno Haible  <bruno@clisp.org>
6199
6200         fsusage: Clarify which code applies to which platforms.
6201         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6202         platform.
6203         * lib/fsusage.c (get_fs_usage): Likewise.
6204
6205 2010-07-04  Bruno Haible  <bruno@clisp.org>
6206
6207         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6208         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6209         Reported by Martin Lambers <marlam@marlam.de>.
6210
6211 2010-07-04  Jim Meyering  <meyering@redhat.com>
6212
6213         hash: once again explicitly disallow insertion of NULL
6214         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6215         inserting a NULL pointer cannot work with these functions.
6216         Add a comment with details.
6217         This reverts part of the 2010-07-01 commit, 5bef1a35
6218         "hash: extend module to deal with non-pointer keys".
6219
6220 2010-07-01  Bruno Haible  <bruno@clisp.org>
6221
6222         stdbool: Update doc.
6223         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6224         Info from Christian Weisgerber <naddy@mips.inka.de>.
6225
6226 2010-07-01  Jim Meyering  <meyering@redhat.com>
6227
6228         hash: extend module to deal with non-pointer keys
6229         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6230         but that allows insertion of non-pointer entries.
6231         Do not disallow an ENTRY value of NULL.
6232         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6233         * lib/hash.h (hash_insert0): Declare.
6234
6235 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6236
6237         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6238         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6239         not present (i.e. with autoconf 2.59 and when using gettextize, not
6240         gnulib), require AC_GNU_SOURCE instead.
6241
6242 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6243
6244         idpriv-drop: Fix tests.
6245         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6246         not to the test-idpriv-droptemp program.
6247
6248 2010-06-29  Bruno Haible  <bruno@clisp.org>
6249
6250         string: Fix syntax error with g++ 2.96.
6251         * lib/string.in.h (__pure__): Remove definition.
6252         (_GL_ATTRIBUTE_PURE): New macro.
6253         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6254         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6255         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6256
6257 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6258
6259         unitypes: Fix bug introduced on 2010-05-18.
6260         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6261
6262 2010-06-22  Eric Blake  <eblake@redhat.com>
6263
6264         memmem: slight optimization
6265         * lib/str-two-way.h (critical_factorization): Update comments.
6266         Reduce work during factorization phase.
6267         Reported by Carlos Bueno <carlos@bueno.org>.
6268
6269 2010-06-21  Bruno Haible  <bruno@clisp.org>
6270
6271         Fix HAVE_CALLOC_POSIX misnomer.
6272         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6273         !HAVE_CALLOC_POSIX.
6274         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6275         HAVE_CALLOC_POSIX.
6276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6277         instead of HAVE_CALLOC_POSIX.
6278         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6279         HAVE_CALLOC_POSIX.
6280
6281         Use modern idiom for calloc() replacement.
6282         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6283         AC_FUNC_CALLOC.
6284         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6285         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6286         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6287         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6288         (gl_REPLACE_CALLOC): New macro.
6289
6290 2010-06-21  Bruno Haible  <bruno@clisp.org>
6291
6292         Fix HAVE_REALLOC_POSIX misnomer.
6293         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6294         !HAVE_REALLOC_POSIX.
6295         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6296         HAVE_REALLOC_POSIX.
6297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6298         instead of HAVE_REALLOC_POSIX.
6299         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6300         HAVE_REALLOC_POSIX.
6301
6302         Use modern idiom for realloc() replacement.
6303         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6304         AC_FUNC_REALLOC.
6305         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6306         Autoconf's AC_FUNC_REALLOC.
6307         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6308         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6309         (gl_REPLACE_REALLOC): New macro.
6310         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6311
6312 2010-06-21  Bruno Haible  <bruno@clisp.org>
6313
6314         Fix HAVE_MALLOC_POSIX misnomer.
6315         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6316         !HAVE_MALLOC_POSIX.
6317         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6318         HAVE_MALLOC_POSIX.
6319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6320         instead of HAVE_MALLOC_POSIX.
6321         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6322         HAVE_MALLOC_POSIX.
6323
6324         Use modern idiom for malloc() replacement.
6325         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6326         AC_FUNC_MALLOC.
6327         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6328         Autoconf's AC_FUNC_MALLOC.
6329         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6330         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6331         (gl_REPLACE_MALLOC): New macro.
6332         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6333
6334 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6335
6336         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6337         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6338         This macro takes 3 arguments, not 4.
6339
6340 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6341
6342         ipv6: fix detection under mingw
6343         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6344         in6_addr.
6345
6346 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6347
6348         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6349         that strtod() works when cross-compiling to a glibc version known
6350         to work.
6351
6352 2010-06-15  Bruno Haible  <bruno@clisp.org>
6353
6354         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6355
6356 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6357
6358         select: Correct timeout.
6359         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6360
6361 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6362
6363         git-version-gen: init shell var to avoid env var influence
6364         * build-aux/git-version-gen (v): Init shell var to empty.
6365
6366 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6367
6368         priv-set: Don't assume that priv.h exists merely because getppriv does.
6369         See Jan Andersen's bug report about AIX 5L in
6370         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6371         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6372         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6373         * lib/priv-set.h: Likewise.
6374         * tests/test-priv-set.c: Likewise.
6375
6376 2010-06-13  Bruno Haible  <bruno@clisp.org>
6377
6378         relocatable: Make it easier to test whether to install wrappers.
6379         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6380         RELOCATABLE_VIA_WRAPPER.
6381
6382 2010-06-13  Bruno Haible  <bruno@clisp.org>
6383
6384         gnulib-tool: Display specified modules and dependencies differently.
6385         * gnulib-tool (func_show_module_list): New function.
6386         (func_import, func_create_testdir): Invoke it.
6387         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6388
6389 2010-06-13  Bruno Haible  <bruno@clisp.org>
6390
6391         gnulib-tool: Align code of func_import and func_create_testdir.
6392         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
6393         specified_modules.
6394
6395 2010-06-12  Jim Meyering  <meyering@redhat.com>
6396
6397         test-inttostr: avoid spurious failure on Solaris 9
6398         * tests/test-inttostr.c (main): Skip the test when snprintf fails
6399         to accept "%ju".  Reported by Bruno Haible.
6400
6401 2010-06-11  Jim Meyering  <meyering@redhat.com>
6402
6403         test-sys_socket: mark variables as used more readably
6404         * tests/test-sys_socket.c (main): Mark otherwise unused variables
6405         as "used" explicitly via (void) statement casts.  This is more
6406         readable than using them in an artificial return expression.
6407         Suggestion from Bruno Haible.
6408
6409 2010-06-11  Bruno Haible  <bruno@clisp.org>
6410
6411         Avoid some more warnings from "gcc -Wwrite-strings".
6412         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
6413         to 'const char *'.
6414         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
6415         * tests/test-c-strcasestr.c (main): Likewise.
6416         * tests/test-mbscasestr1.c (main): Likewise.
6417         * tests/test-mbscasestr2.c (main): Likewise.
6418         * tests/test-memmem.c (main): Likewise.
6419         * tests/test-strstr.c (main): Likewise.
6420         * tests/test-strcasestr.c (main): Likewise.
6421
6422 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6423
6424         init.sh: change framework_failure_ to fail with status 99, not 1
6425         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
6426         automake's parallel-tests rule that this is an unexpected failure,
6427         even if the test is listed in XFAIL_TESTS.
6428
6429 2010-06-11  Jim Meyering  <meyering@redhat.com>
6430
6431         test-inttostr: avoid warnings about 4-6KB literal strings
6432         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
6433         Include "macros.h", for its definition of ASSERT.
6434         (CK): s/assert/ASSERT/
6435         * modules/inttostr-tests (Files): Add macros.h.
6436
6437         init.sh: don't use $ME_ or skip_ before they are defined
6438         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
6439         their first uses.  Also hoist their companions: warn_, fail_,
6440         framework_failure_, $stderr_fileno.  Prompted by a patch from
6441         Stefano Lattarini.
6442
6443         test-sys_socket: avoid set-but-not-used warnings from gcc
6444         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
6445         avoid warning about set-but-not-used variables.
6446
6447         test-xvasprintf: avoid 'const' discard warnings
6448         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
6449         "const" when assigning from literal strings.
6450         (test_xasprintf): Add "void" in function argument list to placate
6451         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6452
6453         tests: avoid compilation warnings in argmatch and exclude tests...
6454         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6455         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
6456         Since it always exits, declare with the "noreturn" attribute.
6457         * tests/test-argmatch.c: Likewise.
6458
6459         tests: avoid 'const' discard warnings in mbsstr tests
6460         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
6461         * tests/test-mbsstr2.c (main): Likewise.
6462
6463         test-verify: avoid warning from gcc's -Wmissing-declarations
6464         * tests/test-verify.c (function): Declare to be static.
6465
6466         test-inttostr.c: include <string.h> for use of strcmp
6467         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
6468
6469         test-linkat: avoid failed assertion on "other" architectures
6470         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
6471         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
6472         sparc: https://bugs.launchpad.net/bugs/591968
6473
6474 2010-06-11  Jim Meyering  <meyering@redhat.com>
6475
6476         printf.m4: avoid autoconf's "Expanded Before Required" warning
6477         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
6478         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
6479         autoconf warning.
6480
6481 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
6482
6483         Replacement header templates are now named with ".in", not "_".
6484         * doc/gnulib-intro.texi: Correct.
6485
6486 2010-06-10  Jim Meyering  <meyering@redhat.com>
6487
6488         inttostr-tests: depend on snprintf, not snprintf-posix
6489         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
6490         snprintf-posix, to avoid this aclocal failure:
6491           missing file gnulib-tests/vasnprintf.c
6492           configure.ac:45: error: expected source file, required through \
6493           AC_LIBSOURCES, not found
6494
6495 2010-06-10  Jim Meyering  <meyering@redhat.com>
6496
6497         inttostr: add a new function, inttostr, and tests
6498         The namesake function was not available.  The existence of the
6499         template file, inttostr.c makes its addition nontrivial.
6500         * lib/anytostr.c: Rename from inttostr.c.
6501         (anytostr): Rename from inttostr.
6502         * lib/inttostr.c: New file.
6503         * modules/inttostr (Files): Add anytostr.c.
6504         (Makefile.am): Set lib_SOURCES instead of ...
6505         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
6506         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
6507         * lib/offtostr.c: Likewise.
6508         * lib/uinttostr.c: Likewise.
6509         * lib/umaxtostr.c: Likewise.
6510         * modules/inttostr-tests: New file.
6511         * tests/test-inttostr.c: New file.  Test these functions.
6512
6513 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
6514             Bruno Haible  <bruno@clisp.org>
6515
6516         Add "Extending Gnulib" chapter to manual.
6517         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
6518         chapter.
6519         (Extending Gnulib): New chapter.
6520         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
6521         chapter.
6522
6523 2010-06-09  Bruno Haible  <bruno@clisp.org>
6524
6525         Avoid relocwrapper link errors due to gnulib replacement functions.
6526         * lib/areadlink.c: Use the system's malloc, realloc functions.
6527         (areadlink): Set errno to ENOMEM explicitly.
6528         * modules/areadlink (Depends-on): Remove malloc-posix.
6529         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6530
6531 2010-06-09  Bruno Haible  <bruno@clisp.org>
6532
6533         Avoid relocwrapper link errors due to gnulib replacement functions.
6534         * lib/canonicalize-lgpl.c: Use the system's malloc function.
6535         * lib/malloca.c: Likewise.
6536         * lib/relocatable.c: Likewise.
6537         * lib/progreloc.c: Use the system's malloc, sprintf functions.
6538         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
6539         * lib/setenv.c: Use the system's malloc, realloc functions.
6540         * lib/strerror.c: Use the system's sprintf function.
6541         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6542
6543 2010-06-04  Bruno Haible  <bruno@clisp.org>
6544
6545         Prefer documented low-level autoconf macro names.
6546         * m4/lib-link.m4: Use m4_translit instead of translit.
6547         * m4/environ.m4: Likewise.
6548         * m4/mathfunc.m4: Likewise.
6549         * m4/onceonly.m4: Likewise.
6550         * m4/stdint.m4: Likewise.
6551         Suggested by Eric Blake.
6552
6553 2010-06-04  Martin Lambers  <marlam@marlam.de>
6554             Bruno Haible  <bruno@clisp.org>
6555
6556         havelib: Allow library names with '+' characters.
6557         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6558         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
6559
6560 2010-06-09  Bruno Haible  <bruno@clisp.org>
6561
6562         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
6563         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
6564         realloc failed.
6565
6566 2010-06-08  Peter Simons  <simons@cryp.to>
6567
6568         maint.mk: make the news-check rule more configurable
6569         * top/maint.mk (news-check-lines-spec) New variable.
6570         (news-check): Use "sed -n 1,10p" in place of "head".
6571
6572 2010-06-07  Jim Meyering  <meyering@redhat.com>
6573
6574         do-release-commit-and-tag: fix typo in --help
6575         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
6576
6577         regex: avoid new dead-code warning with gcc-4.6.0
6578         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
6579         if-block containing a while-loop.  It's been unused for at least
6580         5 years.
6581
6582 2010-06-05  Bruno Haible  <bruno@clisp.org>
6583
6584         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
6585         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
6586
6587 2010-06-04  Bruno Haible  <bruno@clisp.org>
6588
6589         Update to GNU gettext 0.18.1.
6590         * modules/gettext (configure.ac): Require gettext infrastructure from
6591         version 0.18.1.
6592
6593 2010-06-03  Bruno Haible  <bruno@clisp.org>
6594
6595         Don't use AC_LIBOBJ with file names in subdirectories.
6596         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
6597         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
6598         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
6599         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
6600         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
6601         gl_LIBUNISTRING_LIBSOURCE.
6602         (Makefile.am): Augment lib_SOURCES here, conditionally.
6603         * NEWS: Drop requirement for Automake option 'subdir-objects'.
6604
6605 2010-06-03  Bruno Haible  <bruno@clisp.org>
6606
6607         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
6608         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
6609         expansion does not end with a newline.
6610         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
6611         unnecessary newline.
6612
6613 2010-06-03  Bruno Haible  <bruno@clisp.org>
6614
6615         Reduce dependencies.
6616         * tests/test-quotearg.h: New file, extracted from
6617         tests/test-quotearg.c.
6618         * tests/test-quotearg-simple.c: New file, extracted from
6619         tests/test-quotearg.c.
6620         * tests/test-quotearg.c: Don't include <ctype.h>.
6621         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
6622         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
6623         use_quote_double_quotes, use_quotearg_colon): Moved to
6624         tests/test-quotearg.h.
6625         (results_g, flag_results, custom_quotes, custom_results): Moved
6626         to tests/test-quotearg-simple.c.
6627         (main): Moved the part that does not depend on gettext to
6628         tests/test-quotearg-simple.c. Return 77 if the test cannot be
6629         performed.
6630         * modules/quotearg-simple: New file.
6631         * modules/quotearg-simple-tests: New file.
6632         * modules/quotearg (Depends-on): Add quotearg-simple.
6633         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
6634         (Files): Add tests/test-quotearg.h.
6635         Reported by Paolo Bonzini.
6636
6637 2010-06-03  Bruno Haible  <bruno@clisp.org>
6638
6639         Reduce dependencies.
6640         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
6641
6642 2010-06-03  Bruno Haible  <bruno@clisp.org>
6643
6644         time: Undefine more broken macros.
6645         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
6646         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
6647         Reported by Eric Blake.
6648
6649 2010-06-03  Bruno Haible  <bruno@clisp.org>
6650
6651         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
6652         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
6653         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
6654         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
6655         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
6656         Reported by Ludovic Courtès <ludo@gnu.org>.
6657
6658 2010-06-02  Eric Blake  <eblake@redhat.com>
6659
6660         time: work with mingw + pthreads-win32 library
6661         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
6662         if timespec is defined only in pthread.h.
6663         * modules/time (Makefile.am): Substitute it.
6664         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
6665         <pthread.h>, when needed.
6666         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
6667         from the library.
6668
6669 2010-05-31  Bruno Haible  <bruno@clisp.org>
6670
6671         Avoid expanding two macros in the wrong order.
6672         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
6673         gl_LIBUNISTRING if it is defined.
6674         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
6675         autoconf >= 2.64.
6676         Reported by Ludovic Courtès <ludo@gnu.org>.
6677
6678 2010-05-27  Jim Meyering  <meyering@redhat.com>
6679
6680         maint.mk: also prohibit "#undef" of always-defined symbols
6681         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
6682         Allow more than one space before the symbol name.
6683         (sc_prohibit_always-defined_macros): Use grep's -E, now that
6684         the regexp uses alternation.
6685
6686 2010-05-26  Eric Blake  <eblake@redhat.com>
6687
6688         maint.mk: avoid echo -e
6689         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
6690         Convert all uses of echo -* to printf.
6691         Reported by Matthias Bolte.
6692
6693 2010-05-25  Bruno Haible  <bruno@clisp.org>
6694
6695         Update to GNU gettext 0.18, part 2.
6696         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
6697         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
6698
6699 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6700
6701         Add missing include in test-pwrite.c.
6702         * tests/test-pwrite.c: Include string.h, for strcmp.
6703
6704 2010-05-24  Bruno Haible  <bruno@clisp.org>
6705
6706         * NEWS: Mention requirement for Automake option 'subdir-objects'.
6707
6708 2010-05-24  Bruno Haible  <bruno@clisp.org>
6709
6710         Don't use conversion with transliteration in u{8,16,32}_strcoll.
6711         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
6712         iconveh_error argument.
6713         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
6714         U_STRCONV_TO_LOCALE.
6715         * lib/unistr/u16-strcoll.c: Likewise.
6716         * lib/unistr/u32-strcoll.c: Likewise.
6717         * modules/unistr/u8-strcoll (Depends-on): Add
6718         uniconv/u8-strconv-to-enc, localcharset. Remove
6719         uniconv/u8-strconv-to-locale.
6720         (configure.ac): Bump version number.
6721         * modules/unistr/u16-strcoll (Depends-on): Add
6722         uniconv/u16-strconv-to-enc, localcharset. Remove
6723         uniconv/u16-strconv-to-locale.
6724         (configure.ac): Bump version number.
6725         * modules/unistr/u32-strcoll (Depends-on): Add
6726         uniconv/u32-strconv-to-enc, localcharset. Remove
6727         uniconv/u32-strconv-to-locale.
6728         (configure.ac): Bump version number.
6729
6730 2010-05-24  Bruno Haible  <bruno@clisp.org>
6731
6732         Avoid a test failure on NetBSD 5.0.
6733         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
6734         an iconv() bug.
6735
6736 2010-05-24  Bruno Haible  <bruno@clisp.org>
6737
6738         Adjust #include directive style.
6739         * modules/regex (Includes): Recommend to write <regex.h>.
6740
6741 2010-05-24  Bruno Haible  <bruno@clisp.org>
6742
6743         regex: Don't require alloca.
6744         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
6745         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
6746         only inside if (0).
6747
6748 2010-05-23  Jim Meyering  <meyering@redhat.com>
6749
6750         test-renameat.c: include <sys/stat.h>
6751         * tests/test-renameat.c: Include <sys/stat.h>; required for
6752         definition of S_IS* macros.
6753
6754 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
6755
6756         Update maintainer documentation for 'relocatable-prog' module.
6757         * doc/relocatable-maint.texi: Update.
6758         Comments by Bruno Haible.
6759
6760 2010-05-23  Bruno Haible  <bruno@clisp.org>
6761
6762         git-merge-changelog: Enable --split-merged-entry by default.
6763         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
6764         (usage): Don't mention this option any more.
6765         Reported by Ralf Wildenhues.
6766
6767 2010-05-23  Jim Meyering  <meyering@redhat.com>
6768
6769         test-pwrite: do not leave behind a test file named "out"
6770         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
6771         The trivial-looking use of init.sh is really necessary.
6772         It ensures that the temporary file, "out", is created in
6773         a temporary directory, and removed upon termination.
6774         * tests/test-pwrite.sh: Re-add file.
6775         * modules/pwrite-tests: Reference it.
6776
6777 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6778
6779         Fix output redirection buglet in init.sh.
6780         * tests/init.sh: Fix redirection of stderr.
6781
6782 2010-05-20  Simon Josefsson  <simon@josefsson.org>
6783
6784         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
6785
6786 2010-05-17  Simon Josefsson  <simon@josefsson.org>
6787
6788         * modules/valgrind-tests: New file.
6789         * m4/valgrind-tests.m4: New file.
6790         * doc/valgrind-tests.texi: New file.
6791         * doc/gnulib.texi (Running self-tests under valgrind): New
6792         section.
6793
6794 2010-05-19  Bruno Haible  <bruno@clisp.org>
6795
6796         Clean up dead code in recent commit.
6797         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
6798         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
6799         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
6800         Suggested by Paolo Bonzini.
6801
6802 2010-05-19  Bruno Haible  <bruno@clisp.org>
6803
6804         Avoid valgrind error reports from libunistring.
6805         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
6806         * modules/libunistring (Files): Add it.
6807         * modules/libunistring-optional (Files): Likewise.
6808
6809 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
6810             Bruno Haible  <bruno@clisp.org>
6811
6812         New module 'libunistring-optional'.
6813         * modules/libunistring-optional: New file.
6814         * m4/libunistring-base.m4: New file.
6815         * m4/libunistring-optional.m4: New file.
6816         * lib/unicase.in.h: Renamed from lib/unicase.h.
6817         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
6818         * lib/unictype.in.h: Renamed from lib/unictype.h.
6819         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
6820         * lib/uniname.in.h: Renamed from lib/uniname.h.
6821         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
6822         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
6823         * lib/unistr.in.h: Renamed from lib/unistr.h.
6824         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
6825         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
6826         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
6827         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
6828         gl_LIBUNISTRING. If the library was found, determine the installed
6829         version and set LIBUNISTRING_VERSION.
6830         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
6831         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
6832         handle a configuration option --with-included-libunistring.
6833         * modules/libunistring (Files): Add m4/absolute-header.m4.
6834         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
6835         Add m4/libunistring-base.m4.
6836         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6837         (Makefile.am): Build unicase.h from unicase.in.h.
6838         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
6839         Add m4/libunistring-base.m4.
6840         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6841         (Makefile.am): Build uniconv.h from uniconv.in.h.
6842         * modules/unictype/base (Files): Use unictype.in.h instead of
6843         unictype.h. Add m4/libunistring-base.m4.
6844         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6845         (Makefile.am): Build unictype.h from unictype.in.h.
6846         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
6847         Add m4/libunistring-base.m4.
6848         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6849         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
6850         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
6851         Add m4/libunistring-base.m4.
6852         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6853         (Makefile.am): Build uniname.h from uniname.in.h.
6854         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
6855         Add m4/libunistring-base.m4.
6856         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6857         (Makefile.am): Build uninorm.h from uninorm.in.h.
6858         * modules/unistdio/base (Files): Use unistdio.in.h instead of
6859         unistdio.h. Add m4/libunistring-base.m4.
6860         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6861         (Makefile.am): Build unistdio.h from unistdio.in.h.
6862         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
6863         Add m4/libunistring-base.m4.
6864         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6865         (Makefile.am): Build unistr.h from unistr.in.h.
6866         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
6867         Add m4/libunistring-base.m4.
6868         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6869         (Makefile.am): Build unitypes.h from unitypes.in.h.
6870         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
6871         Add m4/libunistring-base.m4.
6872         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6873         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
6874         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
6875         uniwidth.h. Add m4/libunistring-base.m4.
6876         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6877         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
6878         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
6879         instead of augmenting lib_SOURCES.
6880         * modules/unicase/empty-suffix-context: Likewise.
6881         * modules/unicase/locale-language: Likewise.
6882         * modules/unicase/tolower: Likewise.
6883         * modules/unicase/totitle: Likewise.
6884         * modules/unicase/toupper: Likewise.
6885         * modules/unicase/u8-casecmp: Likewise.
6886         * modules/unicase/u8-casecoll: Likewise.
6887         * modules/unicase/u8-casefold: Likewise.
6888         * modules/unicase/u8-casexfrm: Likewise.
6889         * modules/unicase/u8-ct-casefold: Likewise.
6890         * modules/unicase/u8-ct-tolower: Likewise.
6891         * modules/unicase/u8-ct-totitle: Likewise.
6892         * modules/unicase/u8-ct-toupper: Likewise.
6893         * modules/unicase/u8-is-cased: Likewise.
6894         * modules/unicase/u8-is-casefolded: Likewise.
6895         * modules/unicase/u8-is-lowercase: Likewise.
6896         * modules/unicase/u8-is-titlecase: Likewise.
6897         * modules/unicase/u8-is-uppercase: Likewise.
6898         * modules/unicase/u8-prefix-context: Likewise.
6899         * modules/unicase/u8-suffix-context: Likewise.
6900         * modules/unicase/u8-tolower: Likewise.
6901         * modules/unicase/u8-totitle: Likewise.
6902         * modules/unicase/u8-toupper: Likewise.
6903         * modules/unicase/u16-casecmp: Likewise.
6904         * modules/unicase/u16-casecoll: Likewise.
6905         * modules/unicase/u16-casefold: Likewise.
6906         * modules/unicase/u16-casexfrm: Likewise.
6907         * modules/unicase/u16-ct-casefold: Likewise.
6908         * modules/unicase/u16-ct-tolower: Likewise.
6909         * modules/unicase/u16-ct-totitle: Likewise.
6910         * modules/unicase/u16-ct-toupper: Likewise.
6911         * modules/unicase/u16-is-cased: Likewise.
6912         * modules/unicase/u16-is-casefolded: Likewise.
6913         * modules/unicase/u16-is-lowercase: Likewise.
6914         * modules/unicase/u16-is-titlecase: Likewise.
6915         * modules/unicase/u16-is-uppercase: Likewise.
6916         * modules/unicase/u16-prefix-context: Likewise.
6917         * modules/unicase/u16-suffix-context: Likewise.
6918         * modules/unicase/u16-tolower: Likewise.
6919         * modules/unicase/u16-totitle: Likewise.
6920         * modules/unicase/u16-toupper: Likewise.
6921         * modules/unicase/u32-casecmp: Likewise.
6922         * modules/unicase/u32-casecoll: Likewise.
6923         * modules/unicase/u32-casefold: Likewise.
6924         * modules/unicase/u32-casexfrm: Likewise.
6925         * modules/unicase/u32-ct-casefold: Likewise.
6926         * modules/unicase/u32-ct-tolower: Likewise.
6927         * modules/unicase/u32-ct-totitle: Likewise.
6928         * modules/unicase/u32-ct-toupper: Likewise.
6929         * modules/unicase/u32-is-cased: Likewise.
6930         * modules/unicase/u32-is-casefolded: Likewise.
6931         * modules/unicase/u32-is-lowercase: Likewise.
6932         * modules/unicase/u32-is-titlecase: Likewise.
6933         * modules/unicase/u32-is-uppercase: Likewise.
6934         * modules/unicase/u32-prefix-context: Likewise.
6935         * modules/unicase/u32-suffix-context: Likewise.
6936         * modules/unicase/u32-tolower: Likewise.
6937         * modules/unicase/u32-totitle: Likewise.
6938         * modules/unicase/u32-toupper: Likewise.
6939         * modules/unicase/ulc-casecmp: Likewise.
6940         * modules/unicase/ulc-casecoll: Likewise.
6941         * modules/unicase/ulc-casexfrm: Likewise.
6942         * modules/uniconv/u8-conv-from-enc: Likewise.
6943         * modules/uniconv/u8-conv-to-enc: Likewise.
6944         * modules/uniconv/u8-strconv-from-enc: Likewise.
6945         * modules/uniconv/u8-strconv-from-locale: Likewise.
6946         * modules/uniconv/u8-strconv-to-enc: Likewise.
6947         * modules/uniconv/u8-strconv-to-locale: Likewise.
6948         * modules/uniconv/u16-conv-from-enc: Likewise.
6949         * modules/uniconv/u16-conv-to-enc: Likewise.
6950         * modules/uniconv/u16-strconv-from-enc: Likewise.
6951         * modules/uniconv/u16-strconv-from-locale: Likewise.
6952         * modules/uniconv/u16-strconv-to-enc: Likewise.
6953         * modules/uniconv/u16-strconv-to-locale: Likewise.
6954         * modules/uniconv/u32-conv-from-enc: Likewise.
6955         * modules/uniconv/u32-conv-to-enc: Likewise.
6956         * modules/uniconv/u32-strconv-from-enc: Likewise.
6957         * modules/uniconv/u32-strconv-from-locale: Likewise.
6958         * modules/uniconv/u32-strconv-to-enc: Likewise.
6959         * modules/uniconv/u32-strconv-to-locale: Likewise.
6960         * modules/unictype/bidicategory-byname: Likewise.
6961         * modules/unictype/bidicategory-name: Likewise.
6962         * modules/unictype/bidicategory-of: Likewise.
6963         * modules/unictype/bidicategory-test: Likewise.
6964         * modules/unictype/block-list: Likewise.
6965         * modules/unictype/block-test: Likewise.
6966         * modules/unictype/category-C: Likewise.
6967         * modules/unictype/category-Cc: Likewise.
6968         * modules/unictype/category-Cf: Likewise.
6969         * modules/unictype/category-Cn: Likewise.
6970         * modules/unictype/category-Co: Likewise.
6971         * modules/unictype/category-Cs: Likewise.
6972         * modules/unictype/category-L: Likewise.
6973         * modules/unictype/category-Ll: Likewise.
6974         * modules/unictype/category-Lm: Likewise.
6975         * modules/unictype/category-Lo: Likewise.
6976         * modules/unictype/category-Lt: Likewise.
6977         * modules/unictype/category-Lu: Likewise.
6978         * modules/unictype/category-M: Likewise.
6979         * modules/unictype/category-Mc: Likewise.
6980         * modules/unictype/category-Me: Likewise.
6981         * modules/unictype/category-Mn: Likewise.
6982         * modules/unictype/category-N: Likewise.
6983         * modules/unictype/category-Nd: Likewise.
6984         * modules/unictype/category-Nl: Likewise.
6985         * modules/unictype/category-No: Likewise.
6986         * modules/unictype/category-P: Likewise.
6987         * modules/unictype/category-Pc: Likewise.
6988         * modules/unictype/category-Pd: Likewise.
6989         * modules/unictype/category-Pe: Likewise.
6990         * modules/unictype/category-Pf: Likewise.
6991         * modules/unictype/category-Pi: Likewise.
6992         * modules/unictype/category-Po: Likewise.
6993         * modules/unictype/category-Ps: Likewise.
6994         * modules/unictype/category-S: Likewise.
6995         * modules/unictype/category-Sc: Likewise.
6996         * modules/unictype/category-Sk: Likewise.
6997         * modules/unictype/category-Sm: Likewise.
6998         * modules/unictype/category-So: Likewise.
6999         * modules/unictype/category-Z: Likewise.
7000         * modules/unictype/category-Zl: Likewise.
7001         * modules/unictype/category-Zp: Likewise.
7002         * modules/unictype/category-Zs: Likewise.
7003         * modules/unictype/category-and: Likewise.
7004         * modules/unictype/category-and-not: Likewise.
7005         * modules/unictype/category-byname: Likewise.
7006         * modules/unictype/category-name: Likewise.
7007         * modules/unictype/category-none: Likewise.
7008         * modules/unictype/category-of: Likewise.
7009         * modules/unictype/category-or: Likewise.
7010         * modules/unictype/category-test: Likewise.
7011         * modules/unictype/combining-class: Likewise.
7012         * modules/unictype/ctype-alnum: Likewise.
7013         * modules/unictype/ctype-alpha: Likewise.
7014         * modules/unictype/ctype-blank: Likewise.
7015         * modules/unictype/ctype-cntrl: Likewise.
7016         * modules/unictype/ctype-digit: Likewise.
7017         * modules/unictype/ctype-graph: Likewise.
7018         * modules/unictype/ctype-lower: Likewise.
7019         * modules/unictype/ctype-print: Likewise.
7020         * modules/unictype/ctype-punct: Likewise.
7021         * modules/unictype/ctype-space: Likewise.
7022         * modules/unictype/ctype-upper: Likewise.
7023         * modules/unictype/ctype-xdigit: Likewise.
7024         * modules/unictype/decimal-digit: Likewise.
7025         * modules/unictype/digit: Likewise.
7026         * modules/unictype/mirror: Likewise.
7027         * modules/unictype/numeric: Likewise.
7028         * modules/unictype/property-alphabetic: Likewise.
7029         * modules/unictype/property-ascii-hex-digit: Likewise.
7030         * modules/unictype/property-bidi-arabic-digit: Likewise.
7031         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7032         * modules/unictype/property-bidi-block-separator: Likewise.
7033         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7034         * modules/unictype/property-bidi-common-separator: Likewise.
7035         * modules/unictype/property-bidi-control: Likewise.
7036         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7037         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7038         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7039         * modules/unictype/property-bidi-european-digit: Likewise.
7040         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7041         * modules/unictype/property-bidi-left-to-right: Likewise.
7042         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7043         * modules/unictype/property-bidi-other-neutral: Likewise.
7044         * modules/unictype/property-bidi-pdf: Likewise.
7045         * modules/unictype/property-bidi-segment-separator: Likewise.
7046         * modules/unictype/property-bidi-whitespace: Likewise.
7047         * modules/unictype/property-byname: Likewise.
7048         * modules/unictype/property-combining: Likewise.
7049         * modules/unictype/property-composite: Likewise.
7050         * modules/unictype/property-currency-symbol: Likewise.
7051         * modules/unictype/property-dash: Likewise.
7052         * modules/unictype/property-decimal-digit: Likewise.
7053         * modules/unictype/property-default-ignorable-code-point: Likewise.
7054         * modules/unictype/property-deprecated: Likewise.
7055         * modules/unictype/property-diacritic: Likewise.
7056         * modules/unictype/property-extender: Likewise.
7057         * modules/unictype/property-format-control: Likewise.
7058         * modules/unictype/property-grapheme-base: Likewise.
7059         * modules/unictype/property-grapheme-extend: Likewise.
7060         * modules/unictype/property-grapheme-link: Likewise.
7061         * modules/unictype/property-hex-digit: Likewise.
7062         * modules/unictype/property-hyphen: Likewise.
7063         * modules/unictype/property-id-continue: Likewise.
7064         * modules/unictype/property-id-start: Likewise.
7065         * modules/unictype/property-ideographic: Likewise.
7066         * modules/unictype/property-ids-binary-operator: Likewise.
7067         * modules/unictype/property-ids-trinary-operator: Likewise.
7068         * modules/unictype/property-ignorable-control: Likewise.
7069         * modules/unictype/property-iso-control: Likewise.
7070         * modules/unictype/property-join-control: Likewise.
7071         * modules/unictype/property-left-of-pair: Likewise.
7072         * modules/unictype/property-line-separator: Likewise.
7073         * modules/unictype/property-logical-order-exception: Likewise.
7074         * modules/unictype/property-lowercase: Likewise.
7075         * modules/unictype/property-math: Likewise.
7076         * modules/unictype/property-non-break: Likewise.
7077         * modules/unictype/property-not-a-character: Likewise.
7078         * modules/unictype/property-numeric: Likewise.
7079         * modules/unictype/property-other-alphabetic: Likewise.
7080         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7081         * modules/unictype/property-other-grapheme-extend: Likewise.
7082         * modules/unictype/property-other-id-continue: Likewise.
7083         * modules/unictype/property-other-id-start: Likewise.
7084         * modules/unictype/property-other-lowercase: Likewise.
7085         * modules/unictype/property-other-math: Likewise.
7086         * modules/unictype/property-other-uppercase: Likewise.
7087         * modules/unictype/property-paired-punctuation: Likewise.
7088         * modules/unictype/property-paragraph-separator: Likewise.
7089         * modules/unictype/property-pattern-syntax: Likewise.
7090         * modules/unictype/property-pattern-white-space: Likewise.
7091         * modules/unictype/property-private-use: Likewise.
7092         * modules/unictype/property-punctuation: Likewise.
7093         * modules/unictype/property-quotation-mark: Likewise.
7094         * modules/unictype/property-radical: Likewise.
7095         * modules/unictype/property-sentence-terminal: Likewise.
7096         * modules/unictype/property-soft-dotted: Likewise.
7097         * modules/unictype/property-space: Likewise.
7098         * modules/unictype/property-terminal-punctuation: Likewise.
7099         * modules/unictype/property-test: Likewise.
7100         * modules/unictype/property-titlecase: Likewise.
7101         * modules/unictype/property-unassigned-code-value: Likewise.
7102         * modules/unictype/property-unified-ideograph: Likewise.
7103         * modules/unictype/property-uppercase: Likewise.
7104         * modules/unictype/property-variation-selector: Likewise.
7105         * modules/unictype/property-white-space: Likewise.
7106         * modules/unictype/property-xid-continue: Likewise.
7107         * modules/unictype/property-xid-start: Likewise.
7108         * modules/unictype/property-zero-width: Likewise.
7109         * modules/unictype/scripts: Likewise.
7110         * modules/unictype/syntax-c-ident: Likewise.
7111         * modules/unictype/syntax-c-whitespace: Likewise.
7112         * modules/unictype/syntax-java-ident: Likewise.
7113         * modules/unictype/syntax-java-whitespace: Likewise.
7114         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7115         * modules/unilbrk/u8-width-linebreaks: Likewise.
7116         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7117         * modules/unilbrk/u16-width-linebreaks: Likewise.
7118         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7119         * modules/unilbrk/u32-width-linebreaks: Likewise.
7120         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7121         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7122         * modules/uniname/uniname: Likewise.
7123         * modules/uninorm/canonical-decomposition: Likewise.
7124         * modules/uninorm/composition: Likewise.
7125         * modules/uninorm/decomposing-form: Likewise.
7126         * modules/uninorm/decomposition: Likewise.
7127         * modules/uninorm/filter: Likewise.
7128         * modules/uninorm/nfc: Likewise.
7129         * modules/uninorm/nfd: Likewise.
7130         * modules/uninorm/nfkc: Likewise.
7131         * modules/uninorm/nfkd: Likewise.
7132         * modules/uninorm/u8-normalize: Likewise.
7133         * modules/uninorm/u8-normcmp: Likewise.
7134         * modules/uninorm/u8-normcoll: Likewise.
7135         * modules/uninorm/u8-normxfrm: Likewise.
7136         * modules/uninorm/u16-normalize: Likewise.
7137         * modules/uninorm/u16-normcmp: Likewise.
7138         * modules/uninorm/u16-normcoll: Likewise.
7139         * modules/uninorm/u16-normxfrm: Likewise.
7140         * modules/uninorm/u32-normalize: Likewise.
7141         * modules/uninorm/u32-normcmp: Likewise.
7142         * modules/uninorm/u32-normcoll: Likewise.
7143         * modules/uninorm/u32-normxfrm: Likewise.
7144         * modules/unistdio/u8-asnprintf: Likewise.
7145         * modules/unistdio/u8-asprintf: Likewise.
7146         * modules/unistdio/u8-snprintf: Likewise.
7147         * modules/unistdio/u8-sprintf: Likewise.
7148         * modules/unistdio/u8-u8-asnprintf: Likewise.
7149         * modules/unistdio/u8-u8-asprintf: Likewise.
7150         * modules/unistdio/u8-u8-snprintf: Likewise.
7151         * modules/unistdio/u8-u8-sprintf: Likewise.
7152         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7153         * modules/unistdio/u8-u8-vasprintf: Likewise.
7154         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7155         * modules/unistdio/u8-u8-vsprintf: Likewise.
7156         * modules/unistdio/u8-vasnprintf: Likewise.
7157         * modules/unistdio/u8-vasprintf: Likewise.
7158         * modules/unistdio/u8-vsnprintf: Likewise.
7159         * modules/unistdio/u8-vsprintf: Likewise.
7160         * modules/unistdio/u16-asnprintf: Likewise.
7161         * modules/unistdio/u16-asprintf: Likewise.
7162         * modules/unistdio/u16-snprintf: Likewise.
7163         * modules/unistdio/u16-sprintf: Likewise.
7164         * modules/unistdio/u16-u16-asnprintf: Likewise.
7165         * modules/unistdio/u16-u16-asprintf: Likewise.
7166         * modules/unistdio/u16-u16-snprintf: Likewise.
7167         * modules/unistdio/u16-u16-sprintf: Likewise.
7168         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7169         * modules/unistdio/u16-u16-vasprintf: Likewise.
7170         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7171         * modules/unistdio/u16-u16-vsprintf: Likewise.
7172         * modules/unistdio/u16-vasnprintf: Likewise.
7173         * modules/unistdio/u16-vasprintf: Likewise.
7174         * modules/unistdio/u16-vsnprintf: Likewise.
7175         * modules/unistdio/u16-vsprintf: Likewise.
7176         * modules/unistdio/u32-asnprintf: Likewise.
7177         * modules/unistdio/u32-asprintf: Likewise.
7178         * modules/unistdio/u32-snprintf: Likewise.
7179         * modules/unistdio/u32-sprintf: Likewise.
7180         * modules/unistdio/u32-u32-asnprintf: Likewise.
7181         * modules/unistdio/u32-u32-asprintf: Likewise.
7182         * modules/unistdio/u32-u32-snprintf: Likewise.
7183         * modules/unistdio/u32-u32-sprintf: Likewise.
7184         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7185         * modules/unistdio/u32-u32-vasprintf: Likewise.
7186         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7187         * modules/unistdio/u32-u32-vsprintf: Likewise.
7188         * modules/unistdio/u32-vasnprintf: Likewise.
7189         * modules/unistdio/u32-vasprintf: Likewise.
7190         * modules/unistdio/u32-vsnprintf: Likewise.
7191         * modules/unistdio/u32-vsprintf: Likewise.
7192         * modules/unistdio/ulc-asnprintf: Likewise.
7193         * modules/unistdio/ulc-asprintf: Likewise.
7194         * modules/unistdio/ulc-fprintf: Likewise.
7195         * modules/unistdio/ulc-snprintf: Likewise.
7196         * modules/unistdio/ulc-sprintf: Likewise.
7197         * modules/unistdio/ulc-vasnprintf: Likewise.
7198         * modules/unistdio/ulc-vasprintf: Likewise.
7199         * modules/unistdio/ulc-vfprintf: Likewise.
7200         * modules/unistdio/ulc-vsnprintf: Likewise.
7201         * modules/unistdio/ulc-vsprintf: Likewise.
7202         * modules/unistr/u8-check: Likewise.
7203         * modules/unistr/u8-chr: Likewise.
7204         * modules/unistr/u8-cmp: Likewise.
7205         * modules/unistr/u8-cmp2: Likewise.
7206         * modules/unistr/u8-cpy: Likewise.
7207         * modules/unistr/u8-cpy-alloc: Likewise.
7208         * modules/unistr/u8-endswith: Likewise.
7209         * modules/unistr/u8-mblen: Likewise.
7210         * modules/unistr/u8-mbsnlen: Likewise.
7211         * modules/unistr/u8-mbtouc: Likewise.
7212         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7213         * modules/unistr/u8-mbtoucr: Likewise.
7214         * modules/unistr/u8-move: Likewise.
7215         * modules/unistr/u8-next: Likewise.
7216         * modules/unistr/u8-prev: Likewise.
7217         * modules/unistr/u8-set: Likewise.
7218         * modules/unistr/u8-startswith: Likewise.
7219         * modules/unistr/u8-stpcpy: Likewise.
7220         * modules/unistr/u8-stpncpy: Likewise.
7221         * modules/unistr/u8-strcat: Likewise.
7222         * modules/unistr/u8-strchr: Likewise.
7223         * modules/unistr/u8-strcmp: Likewise.
7224         * modules/unistr/u8-strcoll: Likewise.
7225         * modules/unistr/u8-strcpy: Likewise.
7226         * modules/unistr/u8-strcspn: Likewise.
7227         * modules/unistr/u8-strdup: Likewise.
7228         * modules/unistr/u8-strlen: Likewise.
7229         * modules/unistr/u8-strmblen: Likewise.
7230         * modules/unistr/u8-strmbtouc: Likewise.
7231         * modules/unistr/u8-strncat: Likewise.
7232         * modules/unistr/u8-strncmp: Likewise.
7233         * modules/unistr/u8-strncpy: Likewise.
7234         * modules/unistr/u8-strnlen: Likewise.
7235         * modules/unistr/u8-strpbrk: Likewise.
7236         * modules/unistr/u8-strrchr: Likewise.
7237         * modules/unistr/u8-strspn: Likewise.
7238         * modules/unistr/u8-strstr: Likewise.
7239         * modules/unistr/u8-strtok: Likewise.
7240         * modules/unistr/u8-to-u16: Likewise.
7241         * modules/unistr/u8-to-u32: Likewise.
7242         * modules/unistr/u8-uctomb: Likewise.
7243         * modules/unistr/u16-check: Likewise.
7244         * modules/unistr/u16-chr: Likewise.
7245         * modules/unistr/u16-cmp: Likewise.
7246         * modules/unistr/u16-cmp2: Likewise.
7247         * modules/unistr/u16-cpy: Likewise.
7248         * modules/unistr/u16-cpy-alloc: Likewise.
7249         * modules/unistr/u16-endswith: Likewise.
7250         * modules/unistr/u16-mblen: Likewise.
7251         * modules/unistr/u16-mbsnlen: Likewise.
7252         * modules/unistr/u16-mbtouc: Likewise.
7253         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7254         * modules/unistr/u16-mbtoucr: Likewise.
7255         * modules/unistr/u16-move: Likewise.
7256         * modules/unistr/u16-next: Likewise.
7257         * modules/unistr/u16-prev: Likewise.
7258         * modules/unistr/u16-set: Likewise.
7259         * modules/unistr/u16-startswith: Likewise.
7260         * modules/unistr/u16-stpcpy: Likewise.
7261         * modules/unistr/u16-stpncpy: Likewise.
7262         * modules/unistr/u16-strcat: Likewise.
7263         * modules/unistr/u16-strchr: Likewise.
7264         * modules/unistr/u16-strcmp: Likewise.
7265         * modules/unistr/u16-strcoll: Likewise.
7266         * modules/unistr/u16-strcpy: Likewise.
7267         * modules/unistr/u16-strcspn: Likewise.
7268         * modules/unistr/u16-strdup: Likewise.
7269         * modules/unistr/u16-strlen: Likewise.
7270         * modules/unistr/u16-strmblen: Likewise.
7271         * modules/unistr/u16-strmbtouc: Likewise.
7272         * modules/unistr/u16-strncat: Likewise.
7273         * modules/unistr/u16-strncmp: Likewise.
7274         * modules/unistr/u16-strncpy: Likewise.
7275         * modules/unistr/u16-strnlen: Likewise.
7276         * modules/unistr/u16-strpbrk: Likewise.
7277         * modules/unistr/u16-strrchr: Likewise.
7278         * modules/unistr/u16-strspn: Likewise.
7279         * modules/unistr/u16-strstr: Likewise.
7280         * modules/unistr/u16-strtok: Likewise.
7281         * modules/unistr/u16-to-u32: Likewise.
7282         * modules/unistr/u16-to-u8: Likewise.
7283         * modules/unistr/u16-uctomb: Likewise.
7284         * modules/unistr/u32-check: Likewise.
7285         * modules/unistr/u32-chr: Likewise.
7286         * modules/unistr/u32-cmp: Likewise.
7287         * modules/unistr/u32-cmp2: Likewise.
7288         * modules/unistr/u32-cpy: Likewise.
7289         * modules/unistr/u32-cpy-alloc: Likewise.
7290         * modules/unistr/u32-endswith: Likewise.
7291         * modules/unistr/u32-mblen: Likewise.
7292         * modules/unistr/u32-mbsnlen: Likewise.
7293         * modules/unistr/u32-mbtouc: Likewise.
7294         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7295         * modules/unistr/u32-mbtoucr: Likewise.
7296         * modules/unistr/u32-move: Likewise.
7297         * modules/unistr/u32-next: Likewise.
7298         * modules/unistr/u32-prev: Likewise.
7299         * modules/unistr/u32-set: Likewise.
7300         * modules/unistr/u32-startswith: Likewise.
7301         * modules/unistr/u32-stpcpy: Likewise.
7302         * modules/unistr/u32-stpncpy: Likewise.
7303         * modules/unistr/u32-strcat: Likewise.
7304         * modules/unistr/u32-strchr: Likewise.
7305         * modules/unistr/u32-strcmp: Likewise.
7306         * modules/unistr/u32-strcoll: Likewise.
7307         * modules/unistr/u32-strcpy: Likewise.
7308         * modules/unistr/u32-strcspn: Likewise.
7309         * modules/unistr/u32-strdup: Likewise.
7310         * modules/unistr/u32-strlen: Likewise.
7311         * modules/unistr/u32-strmblen: Likewise.
7312         * modules/unistr/u32-strmbtouc: Likewise.
7313         * modules/unistr/u32-strncat: Likewise.
7314         * modules/unistr/u32-strncmp: Likewise.
7315         * modules/unistr/u32-strncpy: Likewise.
7316         * modules/unistr/u32-strnlen: Likewise.
7317         * modules/unistr/u32-strpbrk: Likewise.
7318         * modules/unistr/u32-strrchr: Likewise.
7319         * modules/unistr/u32-strspn: Likewise.
7320         * modules/unistr/u32-strstr: Likewise.
7321         * modules/unistr/u32-strtok: Likewise.
7322         * modules/unistr/u32-to-u16: Likewise.
7323         * modules/unistr/u32-to-u8: Likewise.
7324         * modules/unistr/u32-uctomb: Likewise.
7325         * modules/uniwbrk/u8-wordbreaks: Likewise.
7326         * modules/uniwbrk/u16-wordbreaks: Likewise.
7327         * modules/uniwbrk/u32-wordbreaks: Likewise.
7328         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7329         * modules/uniwbrk/wordbreak-property: Likewise.
7330         * modules/uniwidth/u8-strwidth: Likewise.
7331         * modules/uniwidth/u8-width: Likewise.
7332         * modules/uniwidth/u16-strwidth: Likewise.
7333         * modules/uniwidth/u16-width: Likewise.
7334         * modules/uniwidth/u32-strwidth: Likewise.
7335         * modules/uniwidth/u32-width: Likewise.
7336         * modules/uniwidth/width: Likewise.
7337         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7338         with $(LIBUNISTRING).
7339         * modules/unicase/ignorable-tests: Likewise.
7340         * modules/unicase/locale-language-tests: Likewise.
7341         * modules/unicase/tolower-tests: Likewise.
7342         * modules/unicase/totitle-tests: Likewise.
7343         * modules/unicase/toupper-tests: Likewise.
7344         * modules/unicase/u8-casecmp-tests: Likewise.
7345         * modules/unicase/u8-casecoll-tests: Likewise.
7346         * modules/unicase/u8-casefold-tests: Likewise.
7347         * modules/unicase/u8-is-cased-tests: Likewise.
7348         * modules/unicase/u8-is-casefolded-tests: Likewise.
7349         * modules/unicase/u8-is-lowercase-tests: Likewise.
7350         * modules/unicase/u8-is-titlecase-tests: Likewise.
7351         * modules/unicase/u8-is-uppercase-tests: Likewise.
7352         * modules/unicase/u8-tolower-tests: Likewise.
7353         * modules/unicase/u8-totitle-tests: Likewise.
7354         * modules/unicase/u8-toupper-tests: Likewise.
7355         * modules/unicase/u16-casecmp-tests: Likewise.
7356         * modules/unicase/u16-casecoll-tests: Likewise.
7357         * modules/unicase/u16-casefold-tests: Likewise.
7358         * modules/unicase/u16-is-cased-tests: Likewise.
7359         * modules/unicase/u16-is-casefolded-tests: Likewise.
7360         * modules/unicase/u16-is-lowercase-tests: Likewise.
7361         * modules/unicase/u16-is-titlecase-tests: Likewise.
7362         * modules/unicase/u16-is-uppercase-tests: Likewise.
7363         * modules/unicase/u16-tolower-tests: Likewise.
7364         * modules/unicase/u16-totitle-tests: Likewise.
7365         * modules/unicase/u16-toupper-tests: Likewise.
7366         * modules/unicase/u32-casecmp-tests: Likewise.
7367         * modules/unicase/u32-casecoll-tests: Likewise.
7368         * modules/unicase/u32-casefold-tests: Likewise.
7369         * modules/unicase/u32-is-cased-tests: Likewise.
7370         * modules/unicase/u32-is-casefolded-tests: Likewise.
7371         * modules/unicase/u32-is-lowercase-tests: Likewise.
7372         * modules/unicase/u32-is-titlecase-tests: Likewise.
7373         * modules/unicase/u32-is-uppercase-tests: Likewise.
7374         * modules/unicase/u32-tolower-tests: Likewise.
7375         * modules/unicase/u32-totitle-tests: Likewise.
7376         * modules/unicase/u32-toupper-tests: Likewise.
7377         * modules/unicase/ulc-casecmp-tests: Likewise.
7378         * modules/unicase/ulc-casecoll-tests: Likewise.
7379         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7380         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
7381         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
7382         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
7383         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
7384         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
7385         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
7386         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
7387         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
7388         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
7389         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
7390         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
7391         * modules/unictype/bidicategory-byname-tests: Likewise.
7392         * modules/unictype/bidicategory-name-tests: Likewise.
7393         * modules/unictype/bidicategory-of-tests: Likewise.
7394         * modules/unictype/bidicategory-test-tests: Likewise.
7395         * modules/unictype/block-list-tests: Likewise.
7396         * modules/unictype/block-of-tests: Likewise.
7397         * modules/unictype/block-test-tests: Likewise.
7398         * modules/unictype/category-C-tests: Likewise.
7399         * modules/unictype/category-Cc-tests: Likewise.
7400         * modules/unictype/category-Cf-tests: Likewise.
7401         * modules/unictype/category-Cn-tests: Likewise.
7402         * modules/unictype/category-Co-tests: Likewise.
7403         * modules/unictype/category-Cs-tests: Likewise.
7404         * modules/unictype/category-L-tests: Likewise.
7405         * modules/unictype/category-Ll-tests: Likewise.
7406         * modules/unictype/category-Lm-tests: Likewise.
7407         * modules/unictype/category-Lo-tests: Likewise.
7408         * modules/unictype/category-Lt-tests: Likewise.
7409         * modules/unictype/category-Lu-tests: Likewise.
7410         * modules/unictype/category-M-tests: Likewise.
7411         * modules/unictype/category-Mc-tests: Likewise.
7412         * modules/unictype/category-Me-tests: Likewise.
7413         * modules/unictype/category-Mn-tests: Likewise.
7414         * modules/unictype/category-N-tests: Likewise.
7415         * modules/unictype/category-Nd-tests: Likewise.
7416         * modules/unictype/category-Nl-tests: Likewise.
7417         * modules/unictype/category-No-tests: Likewise.
7418         * modules/unictype/category-P-tests: Likewise.
7419         * modules/unictype/category-Pc-tests: Likewise.
7420         * modules/unictype/category-Pd-tests: Likewise.
7421         * modules/unictype/category-Pe-tests: Likewise.
7422         * modules/unictype/category-Pf-tests: Likewise.
7423         * modules/unictype/category-Pi-tests: Likewise.
7424         * modules/unictype/category-Po-tests: Likewise.
7425         * modules/unictype/category-Ps-tests: Likewise.
7426         * modules/unictype/category-S-tests: Likewise.
7427         * modules/unictype/category-Sc-tests: Likewise.
7428         * modules/unictype/category-Sk-tests: Likewise.
7429         * modules/unictype/category-Sm-tests: Likewise.
7430         * modules/unictype/category-So-tests: Likewise.
7431         * modules/unictype/category-Z-tests: Likewise.
7432         * modules/unictype/category-Zl-tests: Likewise.
7433         * modules/unictype/category-Zp-tests: Likewise.
7434         * modules/unictype/category-Zs-tests: Likewise.
7435         * modules/unictype/category-and-not-tests: Likewise.
7436         * modules/unictype/category-and-tests: Likewise.
7437         * modules/unictype/category-byname-tests: Likewise.
7438         * modules/unictype/category-name-tests: Likewise.
7439         * modules/unictype/category-none-tests: Likewise.
7440         * modules/unictype/category-of-tests: Likewise.
7441         * modules/unictype/category-or-tests: Likewise.
7442         * modules/unictype/category-test-withtable-tests: Likewise.
7443         * modules/unictype/combining-class-tests: Likewise.
7444         * modules/unictype/ctype-alnum-tests: Likewise.
7445         * modules/unictype/ctype-alpha-tests: Likewise.
7446         * modules/unictype/ctype-blank-tests: Likewise.
7447         * modules/unictype/ctype-cntrl-tests: Likewise.
7448         * modules/unictype/ctype-digit-tests: Likewise.
7449         * modules/unictype/ctype-graph-tests: Likewise.
7450         * modules/unictype/ctype-lower-tests: Likewise.
7451         * modules/unictype/ctype-print-tests: Likewise.
7452         * modules/unictype/ctype-punct-tests: Likewise.
7453         * modules/unictype/ctype-space-tests: Likewise.
7454         * modules/unictype/ctype-upper-tests: Likewise.
7455         * modules/unictype/ctype-xdigit-tests: Likewise.
7456         * modules/unictype/decimal-digit-tests: Likewise.
7457         * modules/unictype/digit-tests: Likewise.
7458         * modules/unictype/mirror-tests: Likewise.
7459         * modules/unictype/numeric-tests: Likewise.
7460         * modules/unictype/property-alphabetic-tests: Likewise.
7461         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
7462         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
7463         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
7464         * modules/unictype/property-bidi-block-separator-tests: Likewise.
7465         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
7466         * modules/unictype/property-bidi-common-separator-tests: Likewise.
7467         * modules/unictype/property-bidi-control-tests: Likewise.
7468         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
7469         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
7470         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
7471         * modules/unictype/property-bidi-european-digit-tests: Likewise.
7472         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
7473         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
7474         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
7475         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
7476         * modules/unictype/property-bidi-pdf-tests: Likewise.
7477         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
7478         * modules/unictype/property-bidi-whitespace-tests: Likewise.
7479         * modules/unictype/property-byname-tests: Likewise.
7480         * modules/unictype/property-combining-tests: Likewise.
7481         * modules/unictype/property-composite-tests: Likewise.
7482         * modules/unictype/property-currency-symbol-tests: Likewise.
7483         * modules/unictype/property-dash-tests: Likewise.
7484         * modules/unictype/property-decimal-digit-tests: Likewise.
7485         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
7486         * modules/unictype/property-deprecated-tests: Likewise.
7487         * modules/unictype/property-diacritic-tests: Likewise.
7488         * modules/unictype/property-extender-tests: Likewise.
7489         * modules/unictype/property-format-control-tests: Likewise.
7490         * modules/unictype/property-grapheme-base-tests: Likewise.
7491         * modules/unictype/property-grapheme-extend-tests: Likewise.
7492         * modules/unictype/property-grapheme-link-tests: Likewise.
7493         * modules/unictype/property-hex-digit-tests: Likewise.
7494         * modules/unictype/property-hyphen-tests: Likewise.
7495         * modules/unictype/property-id-continue-tests: Likewise.
7496         * modules/unictype/property-id-start-tests: Likewise.
7497         * modules/unictype/property-ideographic-tests: Likewise.
7498         * modules/unictype/property-ids-binary-operator-tests: Likewise.
7499         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
7500         * modules/unictype/property-ignorable-control-tests: Likewise.
7501         * modules/unictype/property-iso-control-tests: Likewise.
7502         * modules/unictype/property-join-control-tests: Likewise.
7503         * modules/unictype/property-left-of-pair-tests: Likewise.
7504         * modules/unictype/property-line-separator-tests: Likewise.
7505         * modules/unictype/property-logical-order-exception-tests: Likewise.
7506         * modules/unictype/property-lowercase-tests: Likewise.
7507         * modules/unictype/property-math-tests: Likewise.
7508         * modules/unictype/property-non-break-tests: Likewise.
7509         * modules/unictype/property-not-a-character-tests: Likewise.
7510         * modules/unictype/property-numeric-tests: Likewise.
7511         * modules/unictype/property-other-alphabetic-tests: Likewise.
7512         * modules/unictype/property-other-default-ignorable-code-point-tests:
7513         Likewise.
7514         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
7515         * modules/unictype/property-other-id-continue-tests: Likewise.
7516         * modules/unictype/property-other-id-start-tests: Likewise.
7517         * modules/unictype/property-other-lowercase-tests: Likewise.
7518         * modules/unictype/property-other-math-tests: Likewise.
7519         * modules/unictype/property-other-uppercase-tests: Likewise.
7520         * modules/unictype/property-paired-punctuation-tests: Likewise.
7521         * modules/unictype/property-paragraph-separator-tests: Likewise.
7522         * modules/unictype/property-pattern-syntax-tests: Likewise.
7523         * modules/unictype/property-pattern-white-space-tests: Likewise.
7524         * modules/unictype/property-private-use-tests: Likewise.
7525         * modules/unictype/property-punctuation-tests: Likewise.
7526         * modules/unictype/property-quotation-mark-tests: Likewise.
7527         * modules/unictype/property-radical-tests: Likewise.
7528         * modules/unictype/property-sentence-terminal-tests: Likewise.
7529         * modules/unictype/property-soft-dotted-tests: Likewise.
7530         * modules/unictype/property-space-tests: Likewise.
7531         * modules/unictype/property-terminal-punctuation-tests: Likewise.
7532         * modules/unictype/property-test-tests: Likewise.
7533         * modules/unictype/property-titlecase-tests: Likewise.
7534         * modules/unictype/property-unassigned-code-value-tests: Likewise.
7535         * modules/unictype/property-unified-ideograph-tests: Likewise.
7536         * modules/unictype/property-uppercase-tests: Likewise.
7537         * modules/unictype/property-variation-selector-tests: Likewise.
7538         * modules/unictype/property-white-space-tests: Likewise.
7539         * modules/unictype/property-xid-continue-tests: Likewise.
7540         * modules/unictype/property-xid-start-tests: Likewise.
7541         * modules/unictype/property-zero-width-tests: Likewise.
7542         * modules/unictype/scripts-tests: Likewise.
7543         * modules/unictype/syntax-c-ident-tests: Likewise.
7544         * modules/unictype/syntax-c-whitespace-tests: Likewise.
7545         * modules/unictype/syntax-java-ident-tests: Likewise.
7546         * modules/unictype/syntax-java-whitespace-tests: Likewise.
7547         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
7548         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
7549         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
7550         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
7551         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
7552         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
7553         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
7554         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
7555         * modules/uniname/uniname-tests: Likewise.
7556         * modules/uninorm/canonical-decomposition-tests: Likewise.
7557         * modules/uninorm/compat-decomposition-tests: Likewise.
7558         * modules/uninorm/composition-tests: Likewise.
7559         * modules/uninorm/decomposing-form-tests: Likewise.
7560         * modules/uninorm/decomposition-tests: Likewise.
7561         * modules/uninorm/filter-tests: Likewise.
7562         * modules/uninorm/nfc-tests: Likewise.
7563         * modules/uninorm/nfd-tests: Likewise.
7564         * modules/uninorm/nfkc-tests: Likewise.
7565         * modules/uninorm/nfkd-tests: Likewise.
7566         * modules/uninorm/u8-normcmp-tests: Likewise.
7567         * modules/uninorm/u8-normcoll-tests: Likewise.
7568         * modules/uninorm/u16-normcmp-tests: Likewise.
7569         * modules/uninorm/u16-normcoll-tests: Likewise.
7570         * modules/uninorm/u32-normcmp-tests: Likewise.
7571         * modules/uninorm/u32-normcoll-tests: Likewise.
7572         * modules/unistdio/u8-asnprintf-tests: Likewise.
7573         * modules/unistdio/u8-vasnprintf-tests: Likewise.
7574         * modules/unistdio/u8-vasprintf-tests: Likewise.
7575         * modules/unistdio/u8-vsnprintf-tests: Likewise.
7576         * modules/unistdio/u8-vsprintf-tests: Likewise.
7577         * modules/unistdio/u16-asnprintf-tests: Likewise.
7578         * modules/unistdio/u16-vasnprintf-tests: Likewise.
7579         * modules/unistdio/u16-vasprintf-tests: Likewise.
7580         * modules/unistdio/u16-vsnprintf-tests: Likewise.
7581         * modules/unistdio/u16-vsprintf-tests: Likewise.
7582         * modules/unistdio/u32-asnprintf-tests: Likewise.
7583         * modules/unistdio/u32-vasnprintf-tests: Likewise.
7584         * modules/unistdio/u32-vasprintf-tests: Likewise.
7585         * modules/unistdio/u32-vsnprintf-tests: Likewise.
7586         * modules/unistdio/u32-vsprintf-tests: Likewise.
7587         * modules/unistdio/ulc-asnprintf-tests: Likewise.
7588         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
7589         * modules/unistdio/ulc-vasprintf-tests: Likewise.
7590         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
7591         * modules/unistdio/ulc-vsprintf-tests: Likewise.
7592         * modules/unistr/u8-check-tests: Likewise.
7593         * modules/unistr/u8-chr-tests: Likewise.
7594         * modules/unistr/u8-cmp-tests: Likewise.
7595         * modules/unistr/u8-cmp2-tests: Likewise.
7596         * modules/unistr/u8-cpy-alloc-tests: Likewise.
7597         * modules/unistr/u8-cpy-tests: Likewise.
7598         * modules/unistr/u8-mblen-tests: Likewise.
7599         * modules/unistr/u8-mbsnlen-tests: Likewise.
7600         * modules/unistr/u8-mbtouc-tests: Likewise.
7601         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
7602         * modules/unistr/u8-mbtoucr-tests: Likewise.
7603         * modules/unistr/u8-move-tests: Likewise.
7604         * modules/unistr/u8-next-tests: Likewise.
7605         * modules/unistr/u8-prev-tests: Likewise.
7606         * modules/unistr/u8-set-tests: Likewise.
7607         * modules/unistr/u8-stpcpy-tests: Likewise.
7608         * modules/unistr/u8-stpncpy-tests: Likewise.
7609         * modules/unistr/u8-strcat-tests: Likewise.
7610         * modules/unistr/u8-strcmp-tests: Likewise.
7611         * modules/unistr/u8-strcoll-tests: Likewise.
7612         * modules/unistr/u8-strcpy-tests: Likewise.
7613         * modules/unistr/u8-strdup-tests: Likewise.
7614         * modules/unistr/u8-strlen-tests: Likewise.
7615         * modules/unistr/u8-strmblen-tests: Likewise.
7616         * modules/unistr/u8-strmbtouc-tests: Likewise.
7617         * modules/unistr/u8-strncat-tests: Likewise.
7618         * modules/unistr/u8-strncmp-tests: Likewise.
7619         * modules/unistr/u8-strncpy-tests: Likewise.
7620         * modules/unistr/u8-strnlen-tests: Likewise.
7621         * modules/unistr/u8-to-u16-tests: Likewise.
7622         * modules/unistr/u8-to-u32-tests: Likewise.
7623         * modules/unistr/u8-uctomb-tests: Likewise.
7624         * modules/unistr/u16-check-tests: Likewise.
7625         * modules/unistr/u16-chr-tests: Likewise.
7626         * modules/unistr/u16-cmp-tests: Likewise.
7627         * modules/unistr/u16-cmp2-tests: Likewise.
7628         * modules/unistr/u16-cpy-alloc-tests: Likewise.
7629         * modules/unistr/u16-cpy-tests: Likewise.
7630         * modules/unistr/u16-mblen-tests: Likewise.
7631         * modules/unistr/u16-mbsnlen-tests: Likewise.
7632         * modules/unistr/u16-mbtouc-tests: Likewise.
7633         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
7634         * modules/unistr/u16-mbtoucr-tests: Likewise.
7635         * modules/unistr/u16-move-tests: Likewise.
7636         * modules/unistr/u16-next-tests: Likewise.
7637         * modules/unistr/u16-prev-tests: Likewise.
7638         * modules/unistr/u16-set-tests: Likewise.
7639         * modules/unistr/u16-stpcpy-tests: Likewise.
7640         * modules/unistr/u16-stpncpy-tests: Likewise.
7641         * modules/unistr/u16-strcat-tests: Likewise.
7642         * modules/unistr/u16-strcmp-tests: Likewise.
7643         * modules/unistr/u16-strcoll-tests: Likewise.
7644         * modules/unistr/u16-strcpy-tests: Likewise.
7645         * modules/unistr/u16-strdup-tests: Likewise.
7646         * modules/unistr/u16-strlen-tests: Likewise.
7647         * modules/unistr/u16-strmblen-tests: Likewise.
7648         * modules/unistr/u16-strmbtouc-tests: Likewise.
7649         * modules/unistr/u16-strncat-tests: Likewise.
7650         * modules/unistr/u16-strncmp-tests: Likewise.
7651         * modules/unistr/u16-strncpy-tests: Likewise.
7652         * modules/unistr/u16-strnlen-tests: Likewise.
7653         * modules/unistr/u16-to-u32-tests: Likewise.
7654         * modules/unistr/u16-to-u8-tests: Likewise.
7655         * modules/unistr/u16-uctomb-tests: Likewise.
7656         * modules/unistr/u32-check-tests: Likewise.
7657         * modules/unistr/u32-chr-tests: Likewise.
7658         * modules/unistr/u32-cmp-tests: Likewise.
7659         * modules/unistr/u32-cmp2-tests: Likewise.
7660         * modules/unistr/u32-cpy-alloc-tests: Likewise.
7661         * modules/unistr/u32-cpy-tests: Likewise.
7662         * modules/unistr/u32-mblen-tests: Likewise.
7663         * modules/unistr/u32-mbsnlen-tests: Likewise.
7664         * modules/unistr/u32-mbtouc-tests: Likewise.
7665         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
7666         * modules/unistr/u32-mbtoucr-tests: Likewise.
7667         * modules/unistr/u32-move-tests: Likewise.
7668         * modules/unistr/u32-next-tests: Likewise.
7669         * modules/unistr/u32-prev-tests: Likewise.
7670         * modules/unistr/u32-set-tests: Likewise.
7671         * modules/unistr/u32-stpcpy-tests: Likewise.
7672         * modules/unistr/u32-stpncpy-tests: Likewise.
7673         * modules/unistr/u32-strcat-tests: Likewise.
7674         * modules/unistr/u32-strcmp-tests: Likewise.
7675         * modules/unistr/u32-strcoll-tests: Likewise.
7676         * modules/unistr/u32-strcpy-tests: Likewise.
7677         * modules/unistr/u32-strdup-tests: Likewise.
7678         * modules/unistr/u32-strlen-tests: Likewise.
7679         * modules/unistr/u32-strmblen-tests: Likewise.
7680         * modules/unistr/u32-strmbtouc-tests: Likewise.
7681         * modules/unistr/u32-strncat-tests: Likewise.
7682         * modules/unistr/u32-strncmp-tests: Likewise.
7683         * modules/unistr/u32-strncpy-tests: Likewise.
7684         * modules/unistr/u32-strnlen-tests: Likewise.
7685         * modules/unistr/u32-to-u16-tests: Likewise.
7686         * modules/unistr/u32-to-u8-tests: Likewise.
7687         * modules/unistr/u32-uctomb-tests: Likewise.
7688         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
7689         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
7690         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
7691         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
7692         * modules/uniwidth/u8-strwidth-tests: Likewise.
7693         * modules/uniwidth/u8-width-tests: Likewise.
7694         * modules/uniwidth/u16-strwidth-tests: Likewise.
7695         * modules/uniwidth/u16-width-tests: Likewise.
7696         * modules/uniwidth/u32-strwidth-tests: Likewise.
7697         * modules/uniwidth/u32-width-tests: Likewise.
7698         * modules/uniwidth/width-tests: Likewise.
7699
7700 2010-05-18  Richard Jones  <rjones@redhat.com>
7701
7702         doc: users.txt: list hivex
7703         * users.txt: Add hivex.
7704
7705 2010-05-18  Richard Jones  <rjones@redhat.com>
7706
7707         doc: users.txt: list febootstrap
7708         * users.txt: Add febootstrap.
7709
7710 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
7711
7712         bootstrap: fix an error when gnulib is not used as a git submodule
7713         * build-aux/bootstrap (gnulib_path): If its length is zero then
7714         assign "gnulib" to it.
7715         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
7716
7717 2010-05-16  Bruno Haible  <bruno@clisp.org>
7718
7719         Avoid autoconf warnings about AM_ICONV.
7720         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
7721         2.64.
7722
7723 2010-05-16  Bruno Haible  <bruno@clisp.org>
7724
7725         absolute-header: Make the macro usable in more situations.
7726         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
7727         from gl_ABSOLUTE_HEADER.
7728         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
7729
7730 2010-05-16  James Youngman  <jay@gnu.org>
7731
7732         doc: update users.txt
7733         * users.txt: Add CSSC.
7734
7735 2010-05-16  Jim Meyering  <meyering@redhat.com>
7736
7737         init.sh: fix an error in the previous change; add more comments
7738         * tests/init.sh: Compare exit code in loop against 9, not 2.
7739         Patch by Bruno Haible.
7740         Make the two tests more similar by adding an empty "then" clause.
7741         Add comments.
7742
7743         init.sh: avoid unnecessary shell re-exec
7744         * tests/init.sh: Improve the re-exec-required check to first test the
7745         current shell.  If it passes the test, do not search for a shell that
7746         does pass, and do not re-exec.  This test is particularly contorted to
7747         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
7748         of $(...) evokes a syntax error and causes immediate shell exit with
7749         status 2.  Bruno Haible reported that the re-exec made it impossible
7750         to single-step through any init.sh-using script.
7751
7752 2010-05-16  Bruno Haible  <bruno@clisp.org>
7753
7754         Fix collision between gnulib's and libintl's printf replacements.
7755         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
7756         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
7757         (printf): When using GNU C, map the __printf__ function to rpl_printf
7758         via __asm__. When not using GNU C, define rpl_printf instead of
7759         __printf__.
7760         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
7761         commit.
7762         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
7763         commit.
7764         * m4/asm-underscore.m4: New file.
7765         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
7766         * modules/stdio (Files): Add m4/asm-underscore.m4.
7767         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
7768         Reported by Ben Pfaff.
7769
7770 2010-05-16  Bruno Haible  <bruno@clisp.org>
7771
7772         verify: Avoid skipping the test on openSUSE 11.0.
7773         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
7774
7775 2010-05-13  Bruno Haible  <bruno@clisp.org>
7776
7777         Avoid useless warnings from G++.
7778         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
7779         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
7780         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7781
7782 2010-05-11  Jim Meyering  <meyering@redhat.com>
7783
7784         maint.mk: tweak preceding change
7785         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
7786         regexps tighter by anchoring at EOL, and make the new group "shy"
7787         for slightly decreased overhead.
7788
7789 2010-05-11  Eric Blake  <eblake@redhat.com>
7790
7791         maint.mk: gnulib doesn't guarantee NSIG
7792         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
7793
7794 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7795
7796         test-pwrite.c: Remove unused variable declaration.
7797         * tests/test-pwrite.c (main): Remove read_buf declaration.
7798
7799         Remove useless test-pwrite.sh file.
7800         * tests/test-pwrite.sh: Delete file.
7801         * modules/pwrite-tests: Remove references.
7802         Reported by Bruno Haible.
7803
7804 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7805
7806         init.sh: fix a typo
7807         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
7808
7809 2010-05-10  Jim Meyering  <meyering@redhat.com>
7810
7811         maint.mk: avoid using a temporary file in the always-defined-macros check
7812         * top/maint.mk (.re-defmac): Remove rule.
7813         (gl_trap_): Remove definition.
7814         (sc_prohibit_always-defined_macros): Rewrite not to create and
7815         depend on a temporary file.  Instead, depend on GNU grep's ability
7816         to read a list of regular expressions from stdin when given "-f -".
7817
7818 2010-05-09  Bruno Haible  <bruno@clisp.org>
7819
7820         Update to GNU gettext 0.18, part 1.
7821         * m4/gettext.m4: Update to GNU gettext 0.18.
7822         * m4/intl.m4: Likewise.
7823         * m4/po.m4: Likewise.
7824         * modules/gettext (Files): Add m4/fcntl-o.m4.
7825         (configure.ac): Require gettext infrastructure from version 0.18.
7826
7827 2010-05-09  Jim Meyering  <meyering@redhat.com>
7828
7829         init.sh: enable MALLOC_PERTURB_
7830         * tests/init.sh: Enable glibc's malloc-perturbing option.
7831
7832         maint.mk: improve sc_cross_check_PATH_usage_in_tests
7833         With my recent change in init.sh from the two-line form:
7834             -#   : ${srcdir=.}
7835             -#   . "$srcdir/init.sh"; path_prepend_ .
7836             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
7837         I noticed that using the one-line form would cause this test
7838         to fail with a false-positive, or to stop working altogether,
7839         depending on whether help-version changed or all the tests did.
7840         * top/maint.mk (_hv_regex): Remove this definition.
7841         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
7842         (_hv_regex_strong): Use a stronger regex to check for conformance.
7843         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
7844         Give a separate diagnostic for lack of conforming use.
7845
7846         maint.mk: prohibit definition of symbols defined by gnulib
7847         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
7848         definition of symbols defined by gnulib.
7849
7850 2010-05-09  Bruno Haible  <bruno@clisp.org>
7851
7852         acl: Avoid test failure on Cygwin-hosted mingw.
7853         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
7854
7855 2010-05-09  Bruno Haible  <bruno@clisp.org>
7856
7857         error: Use system's fcntl function.
7858         * lib/error.c (fcntl): Undefine.
7859
7860 2010-05-09  Jim Meyering  <meyering@redhat.com>
7861
7862         verify: adjust formatting to be more consistent
7863         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
7864         argument-list '('s, and after one comma.
7865
7866 2010-05-09  Bruno Haible  <bruno@clisp.org>
7867
7868         error: More reliable output on mingw.
7869         * lib/error.c: Include <windows.h>.
7870         (is_open): New function.
7871         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
7872         defined.
7873
7874 2010-05-09  Bruno Haible  <bruno@clisp.org>
7875
7876         vasnprintf: Fix syntax errors in libintl build on mingw.
7877         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
7878         pad_ourselves and prec_ourselves after use.
7879
7880 2010-05-08  Bruno Haible  <bruno@clisp.org>
7881
7882         * lib/config.charset: Update comments for Cygwin 1.7.
7883         * lib/localcharset.c: Likewise.
7884
7885 2010-05-07  Jim Meyering  <meyering@redhat.com>
7886
7887         init.sh: improve comments
7888         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
7889         . "${srcdir=.}/init.sh"; path_prepend_ .
7890         Add a note about path_prepend_ and the alternative of using
7891         TESTS_ENVIRONMENT.
7892
7893 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7894
7895         exclude: Unescape hashed patterns in wildcard mode.
7896         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
7897         to the hash list.
7898         * tests/test-exclude8.sh: New test case.
7899         * modules/exclude-tests: Add new test.
7900
7901 2010-05-05  Eric Blake  <eblake@redhat.com>
7902
7903         verify: automate tests
7904         * modules/verify-tests: New module.
7905         * tests/test-verify.sh: New file.
7906         * tests/test-verify.c: Guard each negative test with a unique id.
7907         Also avoid warning about unused left hand of comma expressions.
7908
7909 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7910
7911         Further improvements to verify.h, suggested by Eric Blake.
7912         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
7913         the GL_* versions, to avoid collision with OpenGL.
7914         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
7915         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
7916         than testing merely whether it's defined.
7917
7918         Modify verify.h to pacify gcc -Wredundant_decls.
7919         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
7920         These use the prefix "GL_" since they're likely to be useful elsewhere.
7921         We may need to break them out into a different .h file.
7922         (__COUNTER__): Define to 0 if the compiler doesn't support it.
7923         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
7924         of verify_function__.
7925
7926 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
7927
7928         Tests for module pwrite.
7929         * modules/pwrite-tests: New file.
7930         * tests/test-pwrite.sh: New file.
7931         * tests/test-pwrite.c: New file.
7932
7933         New module pwrite.
7934         * lib/unistd.in.h (pwrite): New declaration.
7935         * lib/pwrite.c: New file, from glibc with modifications.
7936         * m4/pwrite.m4: New file.
7937         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
7938         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
7939         REPLACE_PWRITE.
7940         * modules/pwrite: New file.
7941         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
7942         REPLACE_PWRITE.
7943         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
7944         * doc/posix-functions/pwrite.texi: Mention the new module.
7945
7946 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
7947
7948         pread: Update documentation.
7949         * doc/posix-functions/pread.texi: Mention the 'pread' module.
7950
7951 2010-05-04  Eric Blake  <eblake@redhat.com>
7952
7953         docs: update cygwin progress
7954         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
7955         this bug.
7956         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
7957         Added in cygwin 1.7.2.
7958         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
7959         Likewise.
7960         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
7961         Likewise.
7962         * doc/glibc-functions/dup3.texi (dup3): Likewise.
7963         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7964         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7965         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
7966         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
7967         Mention nproc module.
7968         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
7969         bug in cygwin 1.7.5 addition.
7970         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
7971         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
7972         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
7973         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
7974         1.7.5.
7975         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
7976         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
7977         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
7978         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
7979         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
7980         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
7981         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
7982         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
7983         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
7984         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
7985         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
7986         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
7987         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
7988         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
7989         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
7990         Likewise.
7991         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
7992         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
7993         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
7994         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
7995         Likewise.
7996         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
7997         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
7998         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
7999         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8000         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8001         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8002         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8003         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8004         Likewise.
8005         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8006         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8007         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8008         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8009         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8010         Likewise.
8011         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8012         Likewise.
8013         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8014         Likewise.
8015         * doc/glibc-functions/xdrrec_endofrecord.texi
8016         (xdrrec_endofrecord): Likewise.
8017         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8018         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8019         Likewise.
8020         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8021         Likewise.
8022
8023 2010-05-04  Jim Meyering  <meyering@redhat.com>
8024
8025         gendocs.sh: make its "-s FILE" option more useful
8026         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8027         $PACKAGE to reflect the probably-different basename of "FILE".
8028
8029 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8030
8031         bootstrap: don't ignore download_po_files failure
8032         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8033         failure.
8034
8035 2010-05-03  Jim Meyering  <meyering@redhat.com>
8036
8037         maint.mk: allow to pass options to gendocs.sh
8038         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8039         (gendocs_options_): New overridable variable.
8040
8041         gnu-web-doc-update: don't ignore configure or build failure
8042         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8043
8044         announce-gen: backslash-escape '@'s in --help output
8045         * build-aux/announce-gen: Fix syntax errors.
8046
8047         maint.mk, announce-gen: allow project-specific announcement mail headers
8048         * top/maint.mk (translation_project_): Define default.
8049         (announcement_Cc_, announcement_mail_headers_): Likewise.
8050         (announcement): Invoke announce-gen with new --mail-headers option.
8051         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
8052
8053         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
8054         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
8055         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
8056         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
8057         line in the "err2" output file when running "make check" in verbose
8058         mode (i.e., with set -x enabled).
8059
8060 2010-05-03  Bruno Haible  <bruno@clisp.org>
8061
8062         wctob: Fix for weird platforms.
8063         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
8064         argument value.
8065
8066 2010-05-03  Jim Meyering  <meyering@redhat.com>
8067
8068         maint.mk: prohibit unwarranted use of <strings.h>
8069         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8070         strings.h in a file that does not also use strcasecmp, strncasecmp,
8071         ffs or ffsll.
8072
8073         maint.mk: remove obsolete comments
8074         * top/maint.mk: Remove stale, commented-out rules.
8075
8076 2010-05-02  Bruno Haible  <bruno@clisp.org>
8077
8078         wcwidth: Declare also when it's aliased.
8079         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8080         macro.
8081
8082 2010-05-02  Bruno Haible  <bruno@clisp.org>
8083
8084         Fix regression from 2010-04-25.
8085         * gnulib-tool (func_modules_transitive_closure): Check the status of
8086         all modules, not only of the tests that are of the form foo-tests where
8087         foo is a module.
8088
8089 2010-05-02  Bruno Haible  <bruno@clisp.org>
8090
8091         wctob: Work around nasty Cygwin 1.7.2 bug.
8092         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8093         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8094
8095 2010-05-01  Bruno Haible  <bruno@clisp.org>
8096
8097         fpurge: Sharper test.
8098         * tests/test-fpurge.c (main): Add one more ftell check.
8099         * modules/fpurge-tests (Depends-on): Add ftell.
8100         Suggested by Eric Blake.
8101
8102 2010-05-01  Bruno Haible  <bruno@clisp.org>
8103
8104         ftello: Another test.
8105         * tests/test-ftello3.c: New file.
8106         * modules/ftello-tests (Files): Add it.
8107         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8108         MOSTLYCLEANFILES.
8109
8110         ftell: Another test.
8111         * tests/test-ftell3.c: New file.
8112         * modules/ftell-tests (Files): Add it.
8113         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8114         MOSTLYCLEANFILES.
8115
8116 2010-05-01  Bruno Haible  <bruno@clisp.org>
8117
8118         ftell, ftello: Work around Solaris bug.
8119         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8120         * lib/ftello.c: Include stdio-impl.h.
8121         (ftello): On Solaris, when _IOWRT is set, compute the result without
8122         looking at _IOREAD.
8123         * modules/ftello (Files): Add lib/stdio-impl.h.
8124         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8125         * doc/posix-functions/ftello.texi: Likewise.
8126         Reported by Eric Blake.
8127
8128 2010-05-01  Bruno Haible  <bruno@clisp.org>
8129
8130         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8131         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8132         the _IOWRT flag is also set.
8133
8134 2010-05-01  Bruno Haible  <bruno@clisp.org>
8135
8136         Fix doc about a HP-UX stdio bug.
8137         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8138         * doc/posix-functions/ftello.texi: Likewise.
8139
8140 2010-05-01  Bruno Haible  <bruno@clisp.org>
8141
8142         lseek test: Fix failure on Solaris.
8143         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8144         output.
8145
8146 2010-04-30  Jim Meyering  <meyering@redhat.com>
8147
8148         bootstrap: don't ignore failure to generate po*/Makevars
8149         * build-aux/bootstrap (with_gettext): Don't ignore failure
8150         to create po/Makevars or runtime-po/Makevars.
8151
8152 2010-04-29  Eric Blake  <eblake@redhat.com>
8153
8154         headers: relax license to LGPLv2+
8155         * modules/fcntl-h (License): Relax license.
8156         * modules/getopt-posix (License): Likewise.
8157         * modules/locale (License): Likewise.
8158         * modules/math (License): Likewise.
8159         * modules/pty (License): Likewise.
8160         * modules/sched (License): Likewise.
8161         * modules/search (License): Likewise.
8162         * modules/spawn (License): Likewise.
8163         * modules/stdarg (License): Likewise.
8164         * modules/sysexits (License): Likewise.
8165
8166 2010-04-29  Jim Meyering  <meyering@redhat.com>
8167
8168         inttypes: relax license to LGPLv2+
8169         * modules/inttypes (License): Relax license.
8170
8171 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8172
8173         * top/maint.mk (indent): Run twice to produce idempotent results.
8174
8175 2010-04-28  Bruno Haible  <bruno@clisp.org>
8176
8177         getdate: Generate getdate.c in the source directory.
8178         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8179         MOSTLYCLEANFILES.
8180         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8181
8182 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8183
8184         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8185         is not declared as a const *; avoid warnings in that case.
8186
8187 2010-04-28  Eric Blake  <eblake@redhat.com>
8188
8189         canonicalize-lgpl: avoid compiler warning
8190         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8191         declaration' / 'extraneous semicolon' warning with some compilers.
8192         Reported by Andreas Gruenbacher.
8193
8194 2010-04-28  Jim Meyering  <meyering@redhat.com>
8195
8196         init.sh: ensure a more reliable exit status when exiting via trap
8197         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8198         Inspired by patches from Dmitry V. Levin.
8199         Also trap on signal 3 (SIGQUIT).
8200
8201 2010-04-27  Bruno Haible  <bruno@clisp.org>
8202
8203         Update doc about utimes().
8204         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8205         'utimens' module.
8206         Reported by Andreas Gruenbacher <agruen@suse.de>.
8207
8208 2010-04-27  Eric Blake  <eblake@redhat.com>
8209
8210         full-read, full-write: relax license
8211         * modules/full-read (License): Drop to LGPLv2+.
8212         * modules/full-write (License): Likewise.
8213         * modules/safe-read (License): Likewise.
8214         * modules/safe-write (License): Likewise.
8215
8216         pthread: mention library for linking
8217         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8218
8219 2010-04-27  Jim Meyering  <meyering@redhat.com>
8220
8221         maint.mk: fix a bug introduced in last change
8222         * top/maint.mk (gl_assured_headers_): Now that all names are on
8223         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8224         is not anchored to end of word, it should be adequate.
8225
8226         maint.mk: avoid side-effect in latest syntax-check
8227         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8228         to run commands via $(shell...), and hence to incur cost only when
8229         the new rule is actually run.
8230
8231         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8232         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8233         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8234         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8235         (gl_assured_headers_, az_, AZ_): Define.
8236         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8237
8238 2010-04-26  Jim Meyering  <jim@meyering.net>
8239             Bruno Haible  <bruno@clisp.org>
8240
8241         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8242         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8243         Prompted by an exchange with Gilles Espinasse.
8244
8245 2010-04-26  Jim Meyering  <meyering@redhat.com>
8246
8247         git-version-gen: aesthetic tweak
8248         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8249         so that the command remains on a single line.
8250
8251 2010-04-26  Eric Blake  <eblake@redhat.com>
8252
8253         git-version-gen: allow use on EBCDIC hosts
8254         * build-aux/git-version-gen (dirty): Use literal rather than tying
8255         ourselves to ascii.
8256         Reported by Steve Goetze.
8257
8258 2010-04-25  Bruno Haible  <bruno@clisp.org>
8259
8260         netdb: Add support for GNULIB_POSIXCHECK.
8261         * lib/netdb.in.h: Include warn-on-use.h.
8262         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8263         functions are used when GNULIB_POSIXCHECK is defined and the
8264         getaddrinfo module is not in use.
8265         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8266         freeaddrinfo, gai_strerror, getnameinfo are declared.
8267         * modules/netdb (Depends-on): Add warn-on-use.
8268         (Makefile.am): Include warn-on-use.h in netdb.h.
8269
8270 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8271
8272         build: avoid "make check" failure without .git/ directory
8273         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8274         there is no .git/ directory.
8275
8276 2010-04-25  Bruno Haible  <bruno@clisp.org>
8277
8278         ptsname: Fix misuse of ttyname_r.
8279         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8280         of errno.
8281
8282 2010-04-25  Bruno Haible  <bruno@clisp.org>
8283
8284         ttyname_r: Make it work on Solaris 10.
8285         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8286         if the system function has the POSIX declaration. Test whether the
8287         function fails if the buffer is less than 128 bytes large.
8288         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8289         system's ttyname_r function. Provide a reasonably large buffer.
8290         * modules/ttyname_r (Depends-on): Add extensions.
8291         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8292
8293 2010-04-25  Bruno Haible  <bruno@clisp.org>
8294
8295         Use the 'extensions' module for some more functions on Solaris.
8296         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8297         module.
8298         * doc/posix-functions/ctime_r.texi: Likewise.
8299         * doc/posix-functions/getgrgid_r.texi: Likewise.
8300         * doc/posix-functions/getgrnam_r.texi: Likewise.
8301         * doc/posix-functions/getpwnam_r.texi: Likewise.
8302         * doc/posix-functions/getpwuid_r.texi: Likewise.
8303         * doc/posix-functions/readdir_r.texi: Likewise.
8304         * doc/posix-functions/sigwait.texi: Likewise.
8305         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8306         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8307
8308 2010-04-25  Bruno Haible  <bruno@clisp.org>
8309
8310         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8311         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8312         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8313         * lib/ttyname_r.c: Include <limits.h>.
8314         (ttyname_r): Define using the system's ttyname_r function, if it exists
8315         and not on Solaris.
8316         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8317         set.
8318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8319         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8320         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8321         Reported by Simon Josefsson.
8322
8323 2010-04-25  Bruno Haible  <bruno@clisp.org>
8324
8325         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8326         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8327         * doc/posix-functions/ctime_r.texi: Likewise.
8328         * doc/posix-functions/getgrgid_r.texi: Likewise.
8329         * doc/posix-functions/getgrnam_r.texi: Likewise.
8330         * doc/posix-functions/getlogin_r.texi: Likewise.
8331         * doc/posix-functions/getpwnam_r.texi: Likewise.
8332         * doc/posix-functions/getpwuid_r.texi: Likewise.
8333         * doc/posix-functions/readdir_r.texi: Likewise.
8334         * doc/posix-functions/sigwait.texi: Likewise.
8335         * doc/posix-functions/ttyname_r.texi: Likewise.
8336         Reported by Simon Josefsson.
8337
8338 2010-04-25  Bruno Haible  <bruno@clisp.org>
8339
8340         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8341         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8342         also to --create-testdir.
8343         (func_acceptable): Don't consider the status of *-tests modules here.
8344         (func_modules_transitive_closure): Consider it here, before including a
8345         test module.
8346         (func_import, func_create_testdir): Set inc_all_direct_tests,
8347         inc_all_indirect_tests.
8348         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8349         --create-testdir and --create-megatestdir.
8350
8351 2010-04-25  Bruno Haible  <bruno@clisp.org>
8352
8353         gnulib-tool: Add --without-*-tests options.
8354         * gnulib-tool (func_usage): Document the --without-*-tests options.
8355         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8356         excl_unportable_tests): New variables.
8357         Fail if they are specified with --import or --update.
8358         (func_acceptable): Respect the excl_*_tests variables.
8359         (func_import): Set the excl_*_tests variables to empty.
8360
8361 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8362             Bruno Haible  <bruno@clisp.org>
8363
8364         Work around a MacOS X 10.4 bug with openpty.
8365         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8366         * tests/test-openpty.c (main): Close the master side explicitly.
8367
8368 2010-04-25  Bruno Haible  <bruno@clisp.org>
8369
8370         strnlen: Fix a C++ test error on MacOS X and Solaris.
8371         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8372         the function is not declared.
8373         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8374         Simon Josefsson.
8375
8376 2010-04-24  Bruno Haible  <bruno@clisp.org>
8377
8378         Avoid a gcc warning.
8379         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8380         of correct type for %08lx directive.
8381         Reported by Eric Blake.
8382
8383 2010-04-24  Bruno Haible  <bruno@clisp.org>
8384
8385         vasnprintf: Correct errno value in case of out-of-memory.
8386         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
8387         or sprintf. Use the errno value from SNPRINTF or sprintf.
8388         Reported by Ian Beckwith <ianb@erislabs.net>.
8389
8390 2010-04-24  Bruno Haible  <bruno@clisp.org>
8391
8392         ansi-c++-opt: Find correct compiler when cross-compiling.
8393         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
8394         AC_CHECK_PROGS.
8395         Reported by Simon Josefsson.
8396
8397 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
8398
8399         vc-list-files: Add support for subversion
8400         * build-aux/vc-list-files: Use "svn list" to generate the list of
8401         files controlled by subversion.
8402
8403 2010-04-23  Jim Meyering  <meyering@redhat.com>
8404
8405         vc-list-files tests: convert to use init.sh
8406         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
8407         path_prepend_.
8408         Use Exit, not exit.
8409         Use skip_ rather than open coding it.
8410         Remove trap set-up and compare definitions.
8411         * tests/test-vc-list-files-git.sh: Likewise.
8412         * modules/vc-list-files-tests (Files): Add tests/init.sh.
8413
8414 2010-04-22  Simon Josefsson  <simon@josefsson.org>
8415
8416         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
8417         backup files.
8418
8419 2010-04-21  Simon Josefsson  <simon@josefsson.org>
8420
8421         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
8422
8423 2010-04-20  Eric Blake  <eblake@redhat.com>
8424
8425         tests: be robust to ignored SIGPIPE
8426         * tests/test-select-in.sh: Consume all output.
8427         * tests/test-lseek.sh: Check correct exit status, while avoiding
8428         EPIPE.
8429
8430 2010-04-20  Simon Josefsson  <simon@josefsson.org>
8431             Bruno Haible  <bruno@clisp.org>
8432
8433         visibility: Don't use -fvisibility if it leads to a warning.
8434         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
8435         yes, don't pretend that visibility works if it leads to a warning.
8436         Reported by Mike Gran <spk121@yahoo.com>.
8437
8438 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
8439
8440         * build-aux/bootstrap: Use "git -h" for testing for supported options
8441         instead of "git --help".  The short-form option only shows a summary,
8442         and doesn't layout the full man page.  Grep for the full option name
8443         in the summary, too.
8444
8445 2010-04-19  Bruno Haible  <bruno@clisp.org>
8446
8447         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
8448         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
8449         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
8450         mention of RELOCATABLE_STRIP.
8451         Reported by Sylvain Beucler <beuc@beuc.net>.
8452
8453 2010-04-19  Bruno Haible  <bruno@clisp.org>
8454
8455         * lib/diffseq.h: Fix typo in comment.
8456         Reported by Eric Blake.
8457
8458 2010-04-19  Bruno Haible  <bruno@clisp.org>
8459
8460         ioctl: Move autoconf macro to a .m4 file.
8461         * m4/ioctl.m4: New file, extracted from modules/ioctl.
8462         * modules/ioctl (Files): Add it.
8463         (configure.ac): Simply invoke gl_FUNC_IOCTL.
8464         Reported by Ian Beckwith <ianb@erislabs.net>.
8465
8466 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
8467             Bruno Haible  <bruno@clisp.org>
8468
8469         diffseq: Accommodate use-case with abstract arrays.
8470         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
8471         is not defined.
8472         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
8473         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
8474
8475 2010-04-18  Bruno Haible  <bruno@clisp.org>
8476
8477         * doc/posix-headers/stdbool.texi: More precise wording.
8478
8479 2010-04-17  Jim Meyering  <meyering@redhat.com>
8480
8481         maint.mk: use gnu-style indentation in an embedded perl script
8482         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
8483         Rename variable: s/two/last_two_bytes/
8484
8485 2010-04-16  Eric Blake  <eblake@redhat.com>
8486
8487         test-stdbool: skip test that fails with Solaris CC
8488         * tests/test-stdbool.c (f): Skip test that causes compilation
8489         error under buggy C++ compiler.
8490         * lib/stdbool.in.h: Document the limitation.
8491         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
8492
8493         setenv: allow compilation with C++
8494         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
8495         register keyword.
8496
8497         stdint: allow test to pass with C++
8498         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
8499
8500         getopt: allow compilation with C++
8501         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
8502         struct.
8503         * lib/getopt.c (_getopt_internal_r): Use correct type.
8504         Reported by Dagobert Michelson, via Joel E. Denny.
8505
8506 2010-04-16  Bruno Haible  <bruno@clisp.org>
8507
8508         Override netdb.h always.
8509         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
8510         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
8511         Reported by Ludovic Courtès <ludo@gnu.org>.
8512
8513 2010-04-15  Bruno Haible  <bruno@clisp.org>
8514
8515         openpty: Fix mistake from 2010-03-21.
8516         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
8517         Reported by Simon Josefsson.
8518
8519 2010-04-15  Eric Blake  <eblake@redhat.com>
8520
8521         test-forkpty: fix expected signature
8522         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
8523         Reported by Simon Josefsson.
8524
8525 2010-04-15  Jim Meyering  <meyering@redhat.com>
8526
8527         maint.mk: texinfo_suffix_re_: correct the default regexp
8528         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
8529
8530         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
8531         make it configurable via texinfo_suffix_re_.
8532
8533 2010-04-14  Eric Blake  <eblake@redhat.com>
8534
8535         strtok_r: relax license to LGPLv2+
8536         * modules/strtok_r (License): Relax license.
8537         Reported by Matthias Bolte.
8538
8539 2010-04-14  Simon Josefsson  <simon@josefsson.org>
8540
8541         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
8542         version 1.4.4 by default instead of requiring the libgcrypt
8543         version used during build.  This makes it possible to use the
8544         application with older but still binary compatible libgcrypt
8545         versions.
8546
8547 2010-04-13  Eric Blake  <eblake@redhat.com>
8548
8549         getopt-gnu: match recent glibc fixes and posix ruling
8550         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
8551         '+' handling, when requesting extensions.
8552         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
8553         'W;' handling.
8554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
8555         * doc/posix-functions/getopt.texi (getopt): Document this.
8556         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8557         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8558         Likewise.
8559
8560         getopt: merge bug fixes from glibc
8561         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
8562         diagnostics.  Honor '+:' correctly.  Reject ';'.
8563
8564         getopt-posix: detect MacOS bug
8565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
8566         optind when missing a required argument.
8567         * doc/posix-functions/getopt.texi (getopt): Document the bug.
8568         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8569         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8570         Likewise.
8571
8572         getopt-posix: avoid spurious failure on Solaris
8573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
8574         an indicator that setting optind=1 is sufficient for reset.
8575
8576         getopt-posix: avoid spurious failure on FreeBSD
8577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
8578         in POSIX mode, since the m4 test uses it.
8579
8580         gnulib-tool: silence warning on BSD sh
8581         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
8582
8583 2010-04-13  Jim Meyering  <meyering@redhat.com>
8584
8585         doc: users.txt: GNU patch now uses gnulib
8586         * users.txt: Add patch.
8587
8588 2010-04-12  Jim Meyering  <meyering@redhat.com>
8589
8590         maint.mk: generate more concise timing data for syntax-check rules
8591         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
8592         " done" from each line that reports a syntax-check test duration.
8593
8594 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
8595
8596         git-version-gen: use "git update-index..." rather than "git status"
8597         * build-aux/git-version-gen: Use git update-index --refresh, not
8598         "git status".  With some versions of git, "git status" would fail
8599         to update the index and result in an unwarranted "-dirty" suffix.
8600
8601 2010-04-11  Jim Meyering  <meyering@redhat.com>
8602
8603         openat: correct formatting (no semantic change)
8604         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
8605         Suggested by Bruno Haible.
8606
8607 2010-04-11  Bruno Haible  <bruno@clisp.org>
8608
8609         Stricter declaration checking in testdirs.
8610         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8611         If for_tests is true, augment AM_CPPFLAGS to define
8612         GNULIB_STRICT_CHECKING.
8613         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
8614         GNULIB_STRICT_CHECKING is defined, verify that the function is
8615         declared.
8616
8617 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
8618             Bruno Haible  <bruno@clisp.org>
8619
8620         libunistring: Improve configure output.
8621         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
8622         Don't say "consider installing GNU libunistring" when checking again
8623         with libiconv.
8624
8625 2010-04-11  Bruno Haible  <bruno@clisp.org>
8626
8627         libunistring: Correct value of $LTLIBUNISTRING.
8628         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
8629         correct the value of $LTLIBUNISTRING.
8630
8631 2010-04-11  Bruno Haible  <bruno@clisp.org>
8632
8633         havelib: Add static libraries to LIBS in the right order.
8634         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
8635         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
8636
8637 2010-04-11  Bruno Haible  <bruno@clisp.org>
8638
8639         libunistring: Detect libunistring also when it depends on libiconv.
8640         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
8641         the second AC_LIB_HAVE_LINKFLAGS invocation.
8642
8643 2010-04-11  James Youngman  <jay@gnu.org>
8644
8645         close-stream: declare local scalars to be "const"
8646         * lib/close-stream.c (close_stream): Make boolean variables const
8647         to document the fact that we set but do not change them.
8648
8649 2010-04-11  Bruno Haible  <bruno@clisp.org>
8650
8651         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
8652
8653 2010-04-11  Jim Meyering  <meyering@redhat.com>
8654
8655         maint.mk: don't include dist-check.mk
8656         * top/maint.mk: Remove bogus include directive.
8657
8658         maint.mk: improve empty-line-at-EOF check
8659         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
8660         solution, rather than tail+Perl-based one.  The latter would read
8661         a few kilobytes from the end of each file, and did not handle empty
8662         files properly.
8663
8664         maint.mk: print the elapsed time for each syntax-check rule
8665         * top/maint.mk (sc_m_rules_): Save start time in a file.
8666         (sc_z_rules_): New rules: remove temp file and print elapsed time.
8667         (local-check): Interpose the .z rules
8668
8669 2010-04-11  Jim Meyering  <meyering@redhat.com>
8670
8671         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
8672         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
8673         empty file with one that ends in an empty line.
8674
8675 2010-04-10  Bruno Haible  <bruno@clisp.org>
8676
8677         mkdir: Make it work on mingw64.
8678         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
8679         * lib/mkdir.c: Update comment.
8680         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
8681
8682 2010-04-10  Bruno Haible  <bruno@clisp.org>
8683
8684         Don't override improved macro from newer autoconf.
8685         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
8686         autoconf >= 2.62.
8687         Reported by Joel E. Denny <jdenny@clemson.edu>.
8688
8689 2010-04-10  Jim Meyering  <meyering@redhat.com>
8690
8691         maint.mk: new syntax-check rule: prohibit empty lines at end of file
8692         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
8693
8694         maint.mk: correct a diagnostic
8695         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
8696         in diagnostic; now use $prohibit.
8697
8698 2010-04-10  Bruno Haible  <address@hidden>
8699
8700         fchownat: Fix a C++ test error on Solaris 8.
8701         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
8702         the function does not exist.
8703
8704 2010-04-10  Bruno Haible  <bruno@clisp.org>
8705
8706         vasnprintf: Add more tests.
8707         * tests/test-vasnprintf-posix.c: Include <errno.h>.
8708         (test_function): Test converting an invalid wide string.
8709
8710         vasnprintf: Correct handling of unconvertible wide string arguments.
8711         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
8712         VASNPRINTF.
8713         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
8714         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
8715         smaller than the expected maximum need for the directive. Set errno to
8716         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
8717         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
8718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
8719         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
8720         * modules/vasnprintf (Files): Add m4/printf.m4.
8721         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8722
8723 2010-04-10  Bruno Haible  <bruno@clisp.org>
8724
8725         vasnprintf: Fix crash in %ls directive.
8726         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
8727         string is passed as argument to %ls, with no precision and no width.
8728         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8729
8730 2010-04-10  Bruno Haible  <bruno@clisp.org>
8731
8732         vasnprintf: Fix multiple test failures on mingw.
8733         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
8734         _snprintf, or snwprintf, not _snwprintf.
8735
8736 2010-04-10  Bruno Haible  <bruno@clisp.org>
8737
8738         write: Fix a C++ test error on mingw.
8739         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
8740
8741 2010-04-10  Bruno Haible  <bruno@clisp.org>
8742
8743         vasnprintf test: Reduce code duplication.
8744         * tests/test-vasnprintf.c (test_function): New function, extracted from
8745         test_vasnprintf.
8746         (test_vasnprintf, test_asnprintf): Invoke it.
8747
8748 2010-04-10  Bruno Haible  <bruno@clisp.org>
8749
8750         strnlen: Fix warning in C++ mode on MacOS X.
8751         * lib/string.in.h (strnlen): Use the modern idiom.
8752         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
8753         defining strnlen as a macro already in <config.h>.
8754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8755         REPLACE_STRNLEN.
8756         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
8757         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8758
8759 2010-04-08  James Youngman  <jay@gnu.org>
8760
8761         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
8762         the example.
8763
8764 2010-04-09  Jim Meyering  <meyering@redhat.com>
8765
8766         maint.mk: print better diagnostic when there is no $(_hv_file)
8767         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
8768         announce that when $(_hv_file) (aka help-version) does not exist.
8769
8770         init.sh: run tr in the "C" locale to avoid multibyte interpretation
8771         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
8772         not try to interpret its random input bytes.  Jarno Rajahalme reported
8773         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
8774         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
8775         (mktempd_): Likewise, just in case.
8776
8777         ftruncate: add two years to projected module removal date: 2012
8778         * m4/ftruncate.m4: Adjust comments.
8779
8780         ftruncate: mark module as obsolete; even MinGW provides it, now
8781         * modules/ftruncate (Status): Obsolete.
8782         (Notice): Say that.
8783         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
8784         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
8785
8786 2010-04-08  Bruno Haible  <bruno@clisp.org>
8787
8788         Fix side effects from tests-related modules.
8789         * modules/dprintf-posix (Comment): New section.
8790         * modules/fprintf-posix (Comment): Likewise.
8791         * modules/obstack-printf-posix (Comment): Likewise.
8792         * modules/printf-posix (Comment): Likewise.
8793         * modules/snprintf-posix (Comment): Likewise.
8794         * modules/sprintf-posix (Comment): Likewise.
8795         * modules/vasnprintf-posix (Comment): Likewise.
8796         * modules/vasprintf-posix (Comment): Likewise.
8797         * modules/vdprintf-posix (Comment): Likewise.
8798         * modules/vfprintf-posix (Comment): Likewise.
8799         * modules/vprintf-posix (Comment): Likewise.
8800         * modules/vsnprintf-posix (Comment): Likewise.
8801         * modules/vsprintf-posix (Comment): Likewise.
8802         * modules/xprintf-posix (Comment): Likewise.
8803         * modules/xvasprintf-posix (Comment): Likewise.
8804         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
8805         * modules/floorf-tests (Depends-on): Likewise.
8806         * modules/round-tests (Depends-on): Likewise.
8807         * modules/roundf-tests (Depends-on): Likewise.
8808         * modules/trunc-tests (Depends-on): Likewise.
8809         * modules/truncf-tests (Depends-on): Likewise.
8810         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
8811         'fprintf-posix' module is not present.
8812         * tests/test-floorf2.c (check): Likewise.
8813         * tests/test-trunc2.c (check): Likewise.
8814         * tests/test-truncf2.c (check): Likewise.
8815         * tests/test-round2.c (equal): Likewise.
8816         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8817
8818 2010-04-07  Karl Berry  <karl@gnu.org>
8819
8820         * config/srclist.txt,
8821         * config/srclistvars.sh,
8822         * config/srclist-update: doc fixes.
8823
8824 2010-04-07  Jim Meyering  <meyering@redhat.com>
8825
8826         maint.mk: add a PATH crosschecking syntax-check rule
8827         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
8828         Useful if you use a test like the one in help-version (coreutils,
8829         diffutils, grep, gzip) that ensures $(VERSION) matches what is
8830         printed by prog --version.
8831
8832 2010-04-06  Bruno Haible  <bruno@clisp.org>
8833
8834         Fix link error on mingw.
8835         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
8836         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
8837
8838 2010-04-06  Bruno Haible  <bruno@clisp.org>
8839
8840         Assume rmdir exists.
8841         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
8842
8843 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
8844
8845         doc: update users.txt
8846         * users.txt: Add gcal.
8847
8848 2010-04-06  Jim Meyering  <meyering@redhat.com>
8849
8850         init.sh: simply unset TMPDIR rather than risking env -i
8851         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
8852         although it probably works fine on all Unix-based systems, some
8853         systems (Cygwin?) cannot tolerate a totally cleared environment.
8854         Suggestion from Eric Blake.
8855
8856 2010-04-06  Jim Meyering  <meyering@redhat.com>
8857
8858         init.sh: portability fix: use env's POSIX-specified -i option not -u
8859         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
8860         than unportable env -u.  Solaris 5.11's env lacks support for -u.
8861
8862 2010-04-05  Bruno Haible  <bruno@clisp.org>
8863
8864         btowc: Work around Cygwin 1.7.2 bug.
8865         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
8866         does not map NUL to 0.
8867         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
8868
8869 2010-04-05  Bruno Haible  <bruno@clisp.org>
8870
8871         Make the multithread modules work on Cygwin 1.7.2.
8872         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
8873         imported symbols can be declared weak, so that it returns "no" on
8874         Cygwin 1.7.2.
8875
8876 2010-04-05  Bruno Haible  <bruno@clisp.org>
8877
8878         Use the module 'strncat'.
8879         * modules/unistr/u8-strncat (Depends-on): Add strncat.
8880
8881         Tests for module 'strncat'.
8882         * modules/strncat-tests: New file.
8883         * tests/test-strncat.c: New file.
8884
8885         New module 'strncat'.
8886         * lib/string.in.h (strncat): New declaration.
8887         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
8888         * m4/strncat.m4: New file, based on m4/memchr.m4.
8889         * modules/strncat: New file.
8890         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
8891         is declared.
8892         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
8893         REPLACE_STRNCAT.
8894         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
8895         REPLACE_STRNCAT.
8896         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
8897         module.
8898         * tests/test-string-c++.cc: Check signature of strncat.
8899
8900 2010-04-05  Jim Meyering  <meyering@redhat.com>
8901
8902         xstrtoumax-tests: convert to use init.sh
8903         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
8904         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8905         Use Exit, not exit.
8906         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8907
8908         xstrtoimax-tests: convert to use init.sh
8909         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
8910         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8911         Use Exit, not exit.
8912         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8913
8914 2010-04-05  Bruno Haible  <bruno@clisp.org>
8915
8916         sys_socket: Avoid #define replacements in C++ mode.
8917         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
8918         warning to the function if possible, rather than #defining the symbol
8919         to a dysfunctional alias.
8920
8921 2010-04-05  Bruno Haible  <bruno@clisp.org>
8922
8923         fseeko: Fix C++ test error on mingw.
8924         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
8925         gl_FUNC_FSEEKO.
8926         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
8927         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
8928         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
8929         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
8930
8931 2010-04-05  Bruno Haible  <bruno@clisp.org>
8932
8933         duplocale: Improve test output.
8934         * tests/test-duplocale.c (main): Print reason for skipped test.
8935
8936 2010-04-05  Bruno Haible  <bruno@clisp.org>
8937
8938         Assume rmdir exists.
8939         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
8940         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
8941
8942 2010-04-05  Bruno Haible  <bruno@clisp.org>
8943
8944         Fix link error on Solaris 8 with cc.
8945         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
8946
8947 2010-04-05  Bruno Haible  <bruno@clisp.org>
8948
8949         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
8950         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
8951
8952 2010-04-05  Bruno Haible  <bruno@clisp.org>
8953
8954         vasprintf: Update documentation.
8955         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
8956
8957 2010-04-05  Bruno Haible  <bruno@clisp.org>
8958
8959         ptsname: Improve test.
8960         * tests/test-ptsname.c (main): Also try the various master names of BSD
8961         systems.
8962
8963 2010-04-05  Bruno Haible  <bruno@clisp.org>
8964
8965         memchr: Avoid a possible C++ test error.
8966         * lib/string.in.h (memchr): Provide declaration if function is missing.
8967         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
8968         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
8969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
8970         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
8971
8972 2010-04-05  Bruno Haible  <bruno@clisp.org>
8973
8974         strtok_r: Improve idiom.
8975         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
8976         AC_LIBOBJ is used.
8977
8978 2010-04-05  Bruno Haible  <bruno@clisp.org>
8979
8980         strdup: Improve idiom.
8981         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
8982         AC_LIBOBJ is used.
8983         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
8984         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
8985         when AC_LIBOBJ is used.
8986
8987 2010-04-05  Bruno Haible  <bruno@clisp.org>
8988
8989         mbsinit, mbrtowc, wcrtomb: Improve idioms.
8990         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
8991         don't set REPLACE_MBSINIT to 1.
8992         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
8993         don't set REPLACE_MBRTOWC to 1.
8994         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
8995         exist, don't set REPLACE_MBSRTOWCS to 1.
8996         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
8997         exist, don't set REPLACE_MBSNRTOWCS to 1.
8998         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
8999         don't set REPLACE_WCRTOMB to 1.
9000         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9001         exist, don't set REPLACE_WCSRTOMBS to 1.
9002         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9003         exist, don't set REPLACE_WCSNRTOMBS to 1.
9004
9005 2010-04-05  Bruno Haible  <bruno@clisp.org>
9006
9007         ldexpl: Improve idiom.
9008         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9009         make sure to set HAVE_DECL_LDEXPL to 0.
9010
9011 2010-04-05  Jim Meyering  <meyering@redhat.com>
9012
9013         xstrtol-tests: convert to use init.sh
9014         * modules/xstrtol-tests (Files): Add tests/init.sh.
9015         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9016         Use Exit, not exit.
9017         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9018
9019         atexit-tests: convert to use init.sh
9020         * modules/atexit-tests (Files): Add tests/init.sh.
9021         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9022         Use Exit, not exit.
9023         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9024
9025         init.sh: fix typo
9026         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9027
9028         init.sh: make it easier for a test script to write to the tty, ...
9029         when using automake's parallel-tests mode.
9030         * tests/init.sh (stderr_fileno_): Define overridable variable.
9031         (warn_): New function, to use it.
9032         (fail_, skip_, framework_failure_): Use warn_.
9033
9034 2010-04-04  Bruno Haible  <bruno@clisp.org>
9035
9036         btowc: Avoid warning.
9037         * lib/btowc.c: Include <stdlib.h>.
9038         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9039
9040 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9041             Bruno Haible  <bruno@clisp.org>
9042
9043         wchar: Port to NetBSD 1.5.
9044         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9045         * lib/wctype.in.h (WEOF): Likewise.
9046
9047 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9048             Bruno Haible  <bruno@clisp.org>
9049
9050         Port extended stdio to NetBSD 1.5.
9051         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
9052         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
9053         older.
9054
9055 2010-04-04  Bruno Haible  <bruno@clisp.org>
9056
9057         string: Remove unused substitution.
9058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9059         HAVE_DECL_STRERROR.
9060         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
9061
9062 2010-04-04  Bruno Haible  <bruno@clisp.org>
9063
9064         strtod: Avoid a possible C++ test error.
9065         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9066         set REPLACE_STRTOD.
9067
9068 2010-04-04  Bruno Haible  <bruno@clisp.org>
9069
9070         strerror: Update documentation.
9071         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9072
9073 2010-04-04  Bruno Haible  <bruno@clisp.org>
9074
9075         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9076         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9077         _GL_CXXALIAS_SYS_CAST.
9078
9079 2010-04-04  Bruno Haible  <bruno@clisp.org>
9080
9081         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9082         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9083         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9084         REPLACE_FREXPL to 1.
9085         * doc/posix-functions/frexpl.texi: Update documentation.
9086
9087 2010-04-04  Bruno Haible  <bruno@clisp.org>
9088
9089         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9090         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9091
9092 2010-04-04  Bruno Haible  <bruno@clisp.org>
9093
9094         Implement nanosleep for native Windows.
9095         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9096
9097 2010-04-04  Bruno Haible  <bruno@clisp.org>
9098
9099         math: Fix some C++ test errors on Solaris 8.
9100         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9101
9102 2010-04-04  Bruno Haible  <bruno@clisp.org>
9103
9104         math: Fix some C++ test errors on Cygwin.
9105         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9106         truncl): Provide declaration if the system does not have it.
9107         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9108         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9109         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9110         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9111         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9112         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9113         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9114         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9115         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9116         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9117         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9118         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9119         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9120         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9121         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9122         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9124         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9125         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9126         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9127         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9128         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9129
9130 2010-04-04  Bruno Haible  <bruno@clisp.org>
9131
9132         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9133         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9134         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9135         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9136         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9137         * m4/isinf.m4 (gl_ISINF): Likewise.
9138         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9139
9140 2010-04-04  Bruno Haible  <bruno@clisp.org>
9141
9142         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9143         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9144
9145 2010-04-04  Bruno Haible  <bruno@clisp.org>
9146
9147         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9148         * modules/tmpfile (configure.ac): Update.
9149
9150         tmpfile: Fix C++ test error on mingw.
9151         * lib/stdio.in.h (tmpfile): New declaration.
9152         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9153         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9154         * modules/tmpfile (Depends-on): Add stdio.
9155         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9156         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9157         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9158         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9159         REPLACE_TMPFILE.
9160         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9161
9162 2010-04-04  Bruno Haible  <bruno@clisp.org>
9163
9164         ioctl: Fix C++ test error on mingw.
9165         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9166         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9167         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9168
9169 2010-04-03  Bruno Haible  <bruno@clisp.org>
9170
9171         wcwidth: Fix C++ test error on mingw.
9172         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9174         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9175
9176 2010-04-03  Bruno Haible  <bruno@clisp.org>
9177
9178         nanosleep: Fix C++ test error on mingw.
9179         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9180         * lib/time.in.h (nanosleep): Use modern idiom.
9181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9182         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9183         REPLACE_NANOSLEEP to 1.
9184         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9185         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9186
9187 2010-04-03  Bruno Haible  <bruno@clisp.org>
9188
9189         strptime: Fix C++ test error on mingw.
9190         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9191         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9192         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9193         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9194         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9195         not REPLACE_STRPTIME.
9196         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9197         REPLACE_STRPTIME.
9198
9199 2010-04-03  Bruno Haible  <bruno@clisp.org>
9200
9201         timegm: Fix C++ test error on mingw.
9202         * lib/time.in.h (timegm): Use modern idiom.
9203         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9204         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9205         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9206         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9207
9208 2010-04-03  Bruno Haible  <bruno@clisp.org>
9209
9210         timegm: Assume declaration if function exists.
9211         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9212         if it exists. Don't clobber ac_cv_func_timegm.
9213
9214 2010-04-03  Bruno Haible  <bruno@clisp.org>
9215
9216         time_r: Fix C++ test error on mingw.
9217         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9218         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9219         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9220         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9221         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9222
9223 2010-04-03  Bruno Haible  <bruno@clisp.org>
9224
9225         time_r: Minor updates.
9226         * modules/time_r (Description): Mention the provided functions.
9227         * lib/time_r.c: Don't include <string.h>.
9228         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9229         * doc/posix-functions/localtime_r.texi: Likewise.
9230
9231 2010-04-03  Bruno Haible  <bruno@clisp.org>
9232
9233         time: Fix regression introduced on 2010-03-08.
9234         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9235         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9236
9237 2010-04-03  Jim Meyering  <meyering@redhat.com>
9238
9239         maint.mk: don't silently disable project-specific syntax-check rules
9240         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9241         that they need to convert their project-specific syntax-check rules
9242         to use the new _sc_search_regexp.
9243
9244 2010-04-03  Bruno Haible  <bruno@clisp.org>
9245
9246         fchdir: Fix regression introduced on 2010-03-08.
9247         * lib/unistd.in.h (fchdir): Fix declaration.
9248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9250         REPLACE_FCHDIR.
9251         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9252         REPLACE_FCHDIR.
9253
9254 2010-04-03  Bruno Haible  <bruno@clisp.org>
9255
9256         getpagesize: Fix C++ test error on mingw.
9257         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9258         system does not declare the function.
9259         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9260         declared.
9261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9262         HAVE_DECL_GETPAGESIZE.
9263         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9264
9265 2010-04-03  Bruno Haible  <bruno@clisp.org>
9266
9267         stdio: Make C++ tests work on mingw.
9268         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9269         does not declare the function.
9270
9271 2010-04-03  Bruno Haible  <bruno@clisp.org>
9272
9273         ftello: Fix C++ test error on mingw.
9274         * lib/stdio.in.h (ftello): Use modern idiom.
9275         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9276         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9277         is missing and that it needs to be replaced.
9278         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9280         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9281
9282 2010-04-03  Bruno Haible  <bruno@clisp.org>
9283
9284         fseeko: Fix C++ test error on mingw.
9285         * lib/stdio.in.h (fseeko): Use modern idiom.
9286         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9287         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9288         is missing and that it needs to be replaced.
9289         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9291         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9292
9293 2010-04-03  Bruno Haible  <bruno@clisp.org>
9294
9295         mkstemp: Fix C++ test error on mingw.
9296         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9297         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9298         function is missing and that it needs to be replaced.
9299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9300         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9301
9302 2010-04-03  Bruno Haible  <bruno@clisp.org>
9303
9304         stpncpy: Fix C++ test error on mingw.
9305         * lib/string.in.h (stpncpy): Use modern idiom.
9306         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9307         function is missing and that it needs to be replaced.
9308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9309         REPLACE_STPNCPY.
9310         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9311
9312 2010-04-03  Bruno Haible  <bruno@clisp.org>
9313
9314         sys_stat: Fix C++ test error on mingw.
9315         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9316         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9317
9318 2010-04-03  Bruno Haible  <bruno@clisp.org>
9319
9320         pty: Update doc.
9321         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9322
9323 2010-04-03  Bruno Haible  <bruno@clisp.org>
9324
9325         unistd: Fix C++ test error on mingw.
9326         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9327
9328 2010-04-03  Bruno Haible  <bruno@clisp.org>
9329
9330         Update doc regarding mingw.
9331         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9332         * doc/glibc-functions/login_tty.texi: Likewise.
9333         * doc/glibc-functions/forkpty.texi: Likewise.
9334
9335 2010-04-03  Bruno Haible  <bruno@clisp.org>
9336
9337         stdlib: Avoid compilation failure of c-strtold on mingw.
9338         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9339
9340 2010-04-03  Bruno Haible  <bruno@clisp.org>
9341
9342         locale: Make C++ tests work on Cygwin and mingw.
9343         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9344         cannot provide the function.
9345         Reported by Simon Josefsson.
9346
9347 2010-04-03  Bruno Haible  <bruno@clisp.org>
9348
9349         localename: Port to MacOS X 10.6.
9350         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9351         memory layout of the locales in MacOS X 10.6 as well.
9352         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9353
9354 2010-04-02  Bruno Haible  <bruno@clisp.org>
9355
9356         gnulib-tool: Ensure that long-running tests are executed last.
9357         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9358         running tests after the one for the other tests.
9359
9360 2010-04-02  Bruno Haible  <bruno@clisp.org>
9361
9362         gnulib-tool: Ensure the tests in the main directory are executed first.
9363         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9364         start with the current directory.
9365
9366 2010-04-02  Bruno Haible  <bruno@clisp.org>
9367
9368         Tests for module 'havelib', moved here from GNU gettext.
9369         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9370         modifications.
9371         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9372         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9373         with modifications.
9374         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9375         modifications.
9376         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9377         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9378         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9379         with modifications.
9380         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
9381         with modifications.
9382         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
9383         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
9384         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
9385         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
9386         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
9387         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
9388         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
9389         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
9390         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
9391         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
9392         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
9393         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
9394         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
9395         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
9396         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
9397         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
9398         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
9399         with modifications.
9400         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
9401         with modifications.
9402         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
9403         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
9404         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
9405         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
9406         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
9407         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
9408         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
9409         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
9410         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
9411         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
9412         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
9413         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
9414         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
9415         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
9416         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
9417         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
9418         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
9419         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
9420         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
9421         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
9422         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
9423         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
9424         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
9425         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
9426         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
9427         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
9428         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
9429         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
9430         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
9431         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
9432         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
9433         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
9434         * tests/havelib/rpathx/rpathx.c: New file, from
9435         gettext/autoconf-lib-link.
9436         * tests/havelib/rpathx/Makefile.am: New file, from
9437         gettext/autoconf-lib-link.
9438         * tests/havelib/rpathx/configure.ac: New file, from
9439         gettext/autoconf-lib-link with modifications.
9440         * tests/havelib/rpathy/rpathy.c: New file, from
9441         gettext/autoconf-lib-link.
9442         * tests/havelib/rpathy/Makefile.am: New file, from
9443         gettext/autoconf-lib-link.
9444         * tests/havelib/rpathy/configure.ac: New file, from
9445         gettext/autoconf-lib-link with modifications.
9446         * tests/havelib/rpathz/rpathz.c: New file, from
9447         gettext/autoconf-lib-link.
9448         * tests/havelib/rpathz/Makefile.am: New file, from
9449         gettext/autoconf-lib-link.
9450         * tests/havelib/rpathz/configure.ac: New file, from
9451         gettext/autoconf-lib-link with modifications.
9452         * tests/havelib/rpathlx/usex.c: New file, from
9453         gettext/autoconf-lib-link.
9454         * tests/havelib/rpathlx/Makefile.am: New file, from
9455         gettext/autoconf-lib-link.
9456         * tests/havelib/rpathlx/configure.ac: New file, from
9457         gettext/autoconf-lib-link with modifications.
9458         * tests/havelib/rpathly/usey.c: New file, from
9459         gettext/autoconf-lib-link.
9460         * tests/havelib/rpathly/Makefile.am: New file, from
9461         gettext/autoconf-lib-link.
9462         * tests/havelib/rpathly/configure.ac: New file, from
9463         gettext/autoconf-lib-link with modifications.
9464         * tests/havelib/rpathlz/usez.c: New file, from
9465         gettext/autoconf-lib-link.
9466         * tests/havelib/rpathlz/Makefile.am: New file, from
9467         gettext/autoconf-lib-link.
9468         * tests/havelib/rpathlz/configure.ac: New file, from
9469         gettext/autoconf-lib-link with modifications.
9470         * tests/havelib/rpathlyx/usey.c: New file, from
9471         gettext/autoconf-lib-link.
9472         * tests/havelib/rpathlyx/Makefile.am: New file, from
9473         gettext/autoconf-lib-link.
9474         * tests/havelib/rpathlyx/configure.ac: New file, from
9475         gettext/autoconf-lib-link with modifications.
9476         * tests/havelib/rpathlzyx/usez.c: New file, from
9477         gettext/autoconf-lib-link.
9478         * tests/havelib/rpathlzyx/Makefile.am: New file, from
9479         gettext/autoconf-lib-link.
9480         * tests/havelib/rpathlzyx/configure.ac: New file, from
9481         gettext/autoconf-lib-link with modifications.
9482         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
9483         with modifications.
9484
9485 2010-04-02  Bruno Haible  <bruno@clisp.org>
9486
9487         gnulib-tool: Create distributed built sources also for the tests.
9488         * gnulib-tool (func_create_testdir): Also generate distributed built
9489         sources in the tests directory.
9490
9491 2010-04-02  Bruno Haible  <bruno@clisp.org>
9492
9493         gnulib-tool: Obey user's environment variables.
9494         * gnulib-tool (func_create_testdir): When creating built sources,
9495         respect the environment variables for autoconf, automake, etc. given by
9496         the user.
9497
9498 2010-04-02  Bruno Haible  <bruno@clisp.org>
9499
9500         gnulib-tool: Provide the value of --m4-base to modules.
9501         * gnulib-tool (func_import, func_create_testdir): Emit a definition
9502         of gl_m4_base.
9503
9504 2010-04-02  Eric Blake  <eblake@redhat.com>
9505
9506         maint.mk: fix some fallout
9507         * NEWS: Document the incompatible change, and its effect on cfg.mk.
9508         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
9509
9510 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9511
9512         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
9513         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
9514         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
9515         (sc_cast_of_x_alloc_return_value): Likewise.
9516         (sc_cast_of_alloca_return_value): Likewise.
9517         (sc_space_tab): Likewise.
9518         (sc_prohibit_atoi_atof): Likewise.
9519         (sc_prohibit_magic_number_exit): Likewise.
9520         (sc_error_exit_success): Likewise.
9521         (sc_file_system): Likewise.
9522         (sc_prohibit_have_config_h): Likewise.
9523         (sc_require_config_h): Likewise.
9524         (sc_prohibit_HAVE_MBRTOWC): Likewise.
9525         (sc_obsolete_symbols): Likewise.
9526         (sc_changelog): Likewise.
9527         (sc_program_name): Likewise.
9528         (sc_the_the): Likewise.
9529         (sc_trailing_blank): Likewise.
9530         (sc_two_space_separator_in_usage): Likewise.
9531         (sc_useless_cpp_parens): Likewise.
9532         (sc_GPL_version): Likewise.
9533         (sc_GFDL_version): Likewise.
9534         (sc_texinfo_acronym): Likewise.
9535         (sc_prohibit_cvs_keyword): Likewise.
9536         (sc_prohibit_stat_st_blocks): Likewise.
9537         (sc_prohibit_S_IS_definition): Likewise.
9538         (sc_redundant_const): Likewise.
9539         (sc_makefile_TAB_only_indentation): Likewise.
9540         (sc_m4_quote_check): Likewise.
9541         (sc_makefile_path_separator_check): Likewise.
9542         (sc_copyright_check): Likewise.
9543         (sc_Wundef_boolean): Likewise.
9544         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9545
9546         maint.mk: match 0 or more whitespace-before-function-call '('
9547         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
9548         that have zero or two-and-more spaces between the function name
9549         and the open parenthesis.
9550         (sc_error_message_warn_fatal): Likewise.
9551         (sc_error_message_uppercase): Likewise.
9552         (sc_error_message_period): Likewise.
9553
9554 2010-03-31  Eric Blake  <eblake@redhat.com>
9555
9556         maint.mk: check for [ as well as test
9557         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
9558         Based on a libvirt report by Matthias Bolte.
9559
9560         gnumakefile: don't squelch _version output
9561         * top/GNUmakefile (_version): Create one-shot dependency rather
9562         than using $(shell) when version must be regenerated.
9563         (_autoreconf): Run verbosely, by default.
9564
9565         sys_time: avoid compiler warnings
9566         * lib/sys_time.in.h (includes): Ensure gcc pragma is
9567         unconditional, fixing regression from 2010-03-29.
9568         Reported by Simon Josefsson.
9569
9570 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9571
9572         maint.mk: s/_header_without_use/_sc_header_without_use/
9573         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
9574         (sc_prohibit_assert_without_use): Use the new name.
9575         (sc_prohibit_close_stream_without_use): Likewise.
9576         (sc_prohibit_getopt_without_use): Likewise.
9577         (sc_prohibit_quotearg_without_use): Likewise.
9578         (sc_prohibit_quote_without_use): Likewise.
9579         (sc_prohibit_long_options_without_use): Likewise.
9580         (sc_prohibit_inttostr_without_use): Likewise.
9581         (sc_prohibit_ignore_value_without_use): Likewise.
9582         (sc_prohibit_error_without_use): Likewise.
9583         (sc_prohibit_xalloc_without_use): Likewise.
9584         (sc_prohibit_hash_without_use): Likewise.
9585         (sc_prohibit_hash_pjw_without_use): Likewise.
9586         (sc_prohibit_safe_read_without_use): Likewise.
9587         (sc_prohibit_argmatch_without_use): Likewise.
9588         (sc_prohibit_canonicalize_without_use): Likewise.
9589         (sc_prohibit_root_dev_ino_without_use): Likewise.
9590         (sc_prohibit_openat_without_use): Likewise.
9591         (sc_prohibit_c_ctype_without_use): Likewise.
9592         (sc_prohibit_signal_without_use): Likewise.
9593         (sc_prohibit_intprops_without_use): Likewise.
9594
9595 2010-03-30  Eric Blake  <eblake@redhat.com>
9596
9597         maint: improve module indicators
9598         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
9599         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
9600         columns, and avoid extra macro expansion.
9601
9602         fdopendir: work around FreeBSD bug
9603         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9604         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
9605         * modules/dirent (Makefile.am): Substitute it.
9606         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
9607         declaration.
9608         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
9609         fix.
9610         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9611
9612 2010-03-29  Bruno Haible  <bruno@clisp.org>
9613
9614         Emit #pragma system_header after the inclusion guard, not before.
9615         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
9616         guard that spans the entire file, not before. This enables an
9617         optimization in GCC's preprocessor.
9618         * lib/ctype.in.h: Likewise.
9619         * lib/dirent.in.h: Likewise.
9620         * lib/errno.in.h: Likewise.
9621         * lib/float.in.h: Likewise.
9622         * lib/getopt.in.h: Likewise.
9623         * lib/iconv.in.h: Likewise.
9624         * lib/langinfo.in.h: Likewise.
9625         * lib/locale.in.h: Likewise.
9626         * lib/math.in.h: Likewise.
9627         * lib/netdb.in.h: Likewise.
9628         * lib/netinet_in.in.h: Likewise.
9629         * lib/pty.in.h: Likewise.
9630         * lib/sched.in.h: Likewise.
9631         * lib/se-selinux.in.h: Likewise.
9632         * lib/search.in.h: Likewise.
9633         * lib/spawn.in.h: Likewise.
9634         * lib/stdarg.in.h: Likewise.
9635         * lib/stdint.in.h: Likewise.
9636         * lib/string.in.h: Likewise.
9637         * lib/strings.in.h: Likewise.
9638         * lib/sys_file.in.h: Likewise.
9639         * lib/sys_ioctl.in.h: Likewise.
9640         * lib/sys_time.in.h: Likewise.
9641         * lib/sys_times.in.h: Likewise.
9642         * lib/sys_utsname.in.h: Likewise.
9643         * lib/sys_wait.in.h: Likewise.
9644         * lib/sysexits.in.h: Likewise.
9645         * lib/wctype.in.h: Likewise.
9646
9647 2010-03-28  James Youngman  <jay@gnu.org>
9648
9649         save-cwd: don't leak a file descriptor when the caller execs.
9650         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
9651         saved file descriptor.
9652         * modules/save-cwd (Depends-on): Depend on cloexec.
9653
9654 2010-03-29  Bruno Haible  <bruno@clisp.org>
9655
9656         Remove vestiges of fts-lgpl module.
9657         * lib/fts_.h: Assume GNULIB_FTS is 1.
9658         * lib/fts.c: Likewise.
9659         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9660
9661 2010-03-28  Bruno Haible  <bruno@clisp.org>
9662
9663         Fix definition of tests witness macro.
9664         * gnulib-tool (func_import): Fix definition of witness macro.
9665
9666 2010-03-28  Bruno Haible  <bruno@clisp.org>
9667
9668         Fix ioctl's protoype on glibc systems.
9669         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
9670         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
9671         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
9672         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
9673         signature. If not, arrange to replace the ioctl function.
9674         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9675         REPLACE_IOCTL.
9676         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
9677         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
9678         Reported by Ludovic Courtès <ludo@gnu.org>.
9679
9680 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
9681
9682         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
9683         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
9684         made it so grep -r --include=GLOB* ... did not work.
9685
9686 2010-03-26  Jim Meyering  <meyering@redhat.com>
9687             Eric Blake  <eblake@redhat.com>
9688
9689         maint.mk: prohibit use of test's -o and -a operators
9690         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
9691
9692 2010-03-28  Bruno Haible  <bruno@clisp.org>
9693
9694         Remove unused GNULIB_XYZ macro definitions.
9695         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
9696         invocation.
9697
9698 2010-03-28  Bruno Haible  <bruno@clisp.org>
9699
9700         Mark privileged tests modules.
9701         * modules/idpriv-drop-tests (Status): New section.
9702         * modules/idpriv-droptemp-tests (Status): New section.
9703
9704 2010-03-28  Bruno Haible  <bruno@clisp.org>
9705
9706         Split C++ tests into separate tests modules.
9707         * modules/dirent-c++-tests: New file, extracted from
9708         modules/dirent-tests.
9709         * modules/dirent-tests: Depend on it.
9710         * modules/fcntl-h-c++-tests: New file, extracted from
9711         modules/fcntl-h-tests.
9712         * modules/fcntl-h-tests: Depend on it.
9713         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
9714         * modules/glob-tests: Depend on it.
9715         * modules/iconv-h-c++-tests: New file, extracted from
9716         modules/iconv-h-tests.
9717         * modules/iconv-h-tests: Depend on it.
9718         * modules/langinfo-c++-tests: New file, extracted from
9719         modules/langinfo-tests.
9720         * modules/langinfo-tests: Depend on it.
9721         * modules/locale-c++-tests: New file, extracted from
9722         modules/locale-tests.
9723         * modules/locale-tests: Depend on it.
9724         * modules/math-c++-tests: New file, extracted from modules/math-tests.
9725         * modules/math-tests: Depend on it.
9726         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
9727         * modules/pty-tests: Depend on it.
9728         * modules/search-c++-tests: New file, extracted from
9729         modules/search-tests.
9730         * modules/search-tests: Depend on it.
9731         * modules/signal-c++-tests: New file, extracted from
9732         modules/signal-tests.
9733         * modules/signal-tests: Depend on it.
9734         * modules/spawn-c++-tests: New file, extracted from
9735         modules/spawn-tests.
9736         * modules/spawn-tests: Depend on it.
9737         * modules/stdio-c++-tests: New file, extracted from
9738         modules/stdio-tests.
9739         * modules/stdio-tests: Depend on it.
9740         * modules/stdlib-c++-tests: New file, extracted from
9741         modules/stdlib-tests.
9742         * modules/stdlib-tests: Depend on it.
9743         * modules/string-c++-tests: New file, extracted from
9744         modules/string-tests.
9745         * modules/string-tests: Depend on it.
9746         * modules/sys_ioctl-c++-tests: New file, extracted from
9747         modules/sys_ioctl-tests.
9748         * modules/sys_ioctl-tests: Depend on it.
9749         * modules/sys_select-c++-tests: New file, extracted from
9750         modules/sys_select-tests.
9751         * modules/sys_select-tests: Depend on it.
9752         * modules/sys_socket-c++-tests: New file, extracted from
9753         modules/sys_socket-tests.
9754         * modules/sys_socket-tests: Depend on it.
9755         * modules/sys_stat-c++-tests: New file, extracted from
9756         modules/sys_stat-tests.
9757         * modules/sys_stat-tests: Depend on it.
9758         * modules/sys_time-c++-tests: New file, extracted from
9759         modules/sys_time-tests.
9760         * modules/sys_time-tests: Depend on it.
9761         * modules/time-c++-tests: New file, extracted from modules/time-tests.
9762         * modules/time-tests: Depend on it.
9763         * modules/unistd-c++-tests: New file, extracted from
9764         modules/unistd-tests.
9765         * modules/unistd-tests: Depend on it.
9766         * modules/wchar-c++-tests: New file, extracted from
9767         modules/wchar-tests.
9768         * modules/wchar-tests: Depend on it.
9769         * modules/wctype-c++-tests: New file, extracted from
9770         modules/wctype-tests.
9771         * modules/wctype-tests: Depend on it.
9772         Reported by Simon Josefsson.
9773
9774 2010-03-28  Bruno Haible  <bruno@clisp.org>
9775
9776         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
9777         * gnulib-tool (func_exists_module): New function, extracted from
9778         func_verify_module.
9779         (func_verify_module): Use it.
9780         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
9781         'foo' only if 'foo' exists.
9782         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
9783         module.
9784
9785 2010-03-28  Bruno Haible  <bruno@clisp.org>
9786
9787         gnulib-tool: Add support for special categories of tests.
9788         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
9789         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
9790         (func_usage): Document them.
9791         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
9792         inc_unportable_tests, inc_all_tests): New variables.
9793         (func_acceptable): Consider these variables.
9794         (func_modules_transitive_closure): Make it work when the 'Status' field
9795         consists of multiple words.
9796         (func_import): Store and restore the values of inc_cxx_tests,
9797         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
9798         inc_all_tests in gnulib-comp.m4.
9799         (func_create_testdir): Set inc_all_tests to true.
9800         * doc/gnulib.texi (Extra tests modules): New section.
9801         Suggested by Jim Meyering.
9802
9803 2010-03-28  Bruno Haible  <bruno@clisp.org>
9804
9805         ansi-c++-opt: Allow turning off the C++ build by default.
9806         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
9807         gl_CXX_CHOICE_DEFAULT_NO is defined.
9808         Requested by Eric Blake.
9809
9810 2010-03-28  Bruno Haible  <bruno@clisp.org>
9811
9812         unistd: Avoid #define replacements in C++ mode.
9813         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9814         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9815         setsockopt, shutdown, select): In C++, attach a warning to the function
9816         if possible, rather than #defining the symbol to a dysfunctional alias.
9817         Reported by John W. Eaton <jwe@gnu.org>.
9818
9819 2010-03-28  Bruno Haible  <bruno@clisp.org>
9820
9821         Fix link errors on mingw.
9822         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
9823         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
9824         $(LIBSOCKET).
9825         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
9826         $(LIBSOCKET).
9827
9828 2010-03-28  Bruno Haible  <bruno@clisp.org>
9829             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9830
9831         lib-ignore: Determine different options for different compilers.
9832         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
9833         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
9834         Add comments.
9835         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
9836         * NEWS: Mention the change.
9837
9838 2010-03-27  Bruno Haible  <bruno@clisp.org>
9839
9840         Remove unused GNULIB_XYZ macro definitions.
9841         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9842         * modules/fseek (configure.ac): Likewise.
9843         * modules/ioctl (configure.ac): Likewise.
9844         * modules/open (configure.ac): Likewise.
9845         * modules/stdlib-safer (configure.ac): Likewise.
9846
9847 2010-03-27  Bruno Haible  <bruno@clisp.org>
9848
9849         Add a remark about certain modules.
9850         * modules/malloc (Comment): New section.
9851         * modules/realloc (Comment): Likewise.
9852         * modules/sigpipe (Comment): Likewise.
9853
9854 2010-03-27  Bruno Haible  <bruno@clisp.org>
9855
9856         Resolve conflict between the two kinds of module indicators.
9857         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
9858         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
9859         * modules/canonicalize (configure.ac): Invoke
9860         gl_MODULE_INDICATOR_FOR_TESTS.
9861         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
9862         GNULIB_XYZ.
9863         * tests/test-dirent-c++.cc: Likewise.
9864         * tests/test-dirent-safer.c: Likewise.
9865         * tests/test-dup2.c: Likewise.
9866         * tests/test-fchdir.c: Likewise.
9867         * tests/test-fcntl-h-c++.cc: Likewise.
9868         * tests/test-getopt.c: Likewise.
9869         * tests/test-getopt.h: Likewise.
9870         * tests/test-langinfo-c++.cc: Likewise.
9871         * tests/test-locale-c++.cc: Likewise.
9872         * tests/test-math-c++.cc: Likewise.
9873         * tests/test-pty-c++.cc: Likewise.
9874         * tests/test-search-c++.cc: Likewise.
9875         * tests/test-signal-c++.cc: Likewise.
9876         * tests/test-spawn-c++.cc: Likewise.
9877         * tests/test-stdio-c++.cc: Likewise.
9878         * tests/test-stdlib-c++.cc: Likewise.
9879         * tests/test-string-c++.cc: Likewise.
9880         * tests/test-sys_ioctl-c++.cc: Likewise.
9881         * tests/test-sys_select-c++.cc: Likewise.
9882         * tests/test-sys_socket-c++.cc: Likewise.
9883         * tests/test-sys_stat-c++.cc: Likewise.
9884         * tests/test-sys_time-c++.cc: Likewise.
9885         * tests/test-time-c++.cc: Likewise.
9886         * tests/test-unistd-c++.cc: Likewise.
9887         * tests/test-wchar-c++.cc: Likewise.
9888         * tests/uninorm/test-u8-nfc.c: Likewise.
9889         * tests/uninorm/test-u8-nfd.c: Likewise.
9890         * tests/uninorm/test-u8-nfkc.c: Likewise.
9891         * tests/uninorm/test-u8-nfkd.c: Likewise.
9892         * tests/uninorm/test-u16-nfc.c: Likewise.
9893         * tests/uninorm/test-u16-nfd.c: Likewise.
9894         * tests/uninorm/test-u16-nfkc.c: Likewise.
9895         * tests/uninorm/test-u16-nfkd.c: Likewise.
9896         * tests/uninorm/test-u32-nfc.c: Likewise.
9897         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9898         * tests/uninorm/test-u32-nfd.c: Likewise.
9899         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9900         * tests/uninorm/test-u32-nfkc.c: Likewise.
9901         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9902         * tests/uninorm/test-u32-nfkd.c: Likewise.
9903         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9904         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9905
9906 2010-03-27  Bruno Haible  <bruno@clisp.org>
9907
9908         Distinguish two kinds of module indicators.
9909         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
9910         gl_MODULE_INDICATOR.
9911         (gl_MODULE_INDICATOR): New macro.
9912         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9913         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
9914         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9915         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
9916         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
9917         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
9918         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
9919         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
9920         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
9921         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
9922         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
9923         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
9924         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
9925         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
9926         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
9927         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
9928         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
9929         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
9930         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
9931         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
9932         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
9933         * modules/cloexec (configure.ac): Likewise.
9934         * modules/getopt-gnu (configure.ac): Likewise.
9935         * modules/uninorm/u8-normalize (configure.ac): Likewise.
9936         * modules/uninorm/u16-normalize (configure.ac): Likewise.
9937         * modules/uninorm/u32-normalize (configure.ac): Likewise.
9938         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
9939
9940 2010-03-27  Bruno Haible  <bruno@clisp.org>
9941
9942         New module description field 'Comment'.
9943         * gnulib-tool: New option --extract-comment.
9944         (func_usage): Document it.
9945         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
9946         (func_get_comment): New function.
9947         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
9948
9949 2010-03-27  Bruno Haible  <bruno@clisp.org>
9950
9951         Addendum to 2010-02-07 commit.
9952         * gnulib-tool (func_usage): Document --extract-applicability option.
9953
9954 2010-03-27  Bruno Haible  <bruno@clisp.org>
9955
9956         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
9957         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
9958         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
9959         rather than link errors.
9960
9961 2010-03-27  Bruno Haible  <bruno@clisp.org>
9962
9963         Avoid side effects from tests-related modules on the compilation of lib.
9964         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
9965         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
9966         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
9967         parameter. Emit into AM_CPPFLAGS a definition of the designated C
9968         macro.
9969         (func_import): Define a witness macro. Assign it a value that depends
9970         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
9971         tests-related modules.
9972         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
9973         Reported by Jim Meyering.
9974
9975 2010-03-27  Bruno Haible  <bruno@clisp.org>
9976
9977         Factorize common .m4 code.
9978         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
9979         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
9980         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
9981         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
9982         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9983         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
9984         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
9985         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
9986         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
9987         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
9988         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
9989         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
9990         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
9991         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
9992         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
9993         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
9994         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
9995         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
9996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
9997         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
9998         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
9999         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10000         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10001         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10002         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10003         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10004         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10005         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10006         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10007         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10008         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10009         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10010
10011 2010-03-27  Bruno Haible  <bruno@clisp.org>
10012
10013         Fix a compilation error on Cygwin with g++ >= 4.3.
10014         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10015         if it is undefined or if we alias it to chmod.
10016         (lstat): Don't warn about the use of this function if it is undefined
10017         or if we alias it to stat.
10018         Reported by Simon Josefsson.
10019
10020 2010-03-27  Bruno Haible  <bruno@clisp.org>
10021
10022         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10023         * modules/getlogin (configure.ac): Update.
10024
10025         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10026         * modules/getlogin_r (configure.ac): Update.
10027
10028         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10029         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10030         * modules/inet_ntop (configure.ac): Update.
10031
10032         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10033         * modules/inet_pton (configure.ac): Update.
10034
10035         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10036         * modules/mbslen (configure.ac): Update.
10037
10038         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10039         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10040         * modules/forkpty (configure.ac): Update.
10041         * modules/openpty (configure.ac): Update.
10042
10043 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10044
10045         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
10046         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
10047
10048 2010-03-25  Eric Blake  <eblake@redhat.com>
10049
10050         maint: use pragma consistently across replacement headers
10051         * lib/ctype.in.h (system_header): Hoist for consistent placement.
10052         * lib/dirent.in.h (system_header): Likewise.
10053         * lib/errno.in.h (system_header): Likewise.
10054         * lib/float.in.h (system_header): Likewise.
10055         * lib/getopt.in.h (system_header): Likewise.
10056         * lib/iconv.in.h (system_header): Likewise.
10057         * lib/inttypes.in.h (system_header): Likewise.
10058         * lib/langinfo.in.h (system_header): Likewise.
10059         * lib/locale.in.h (system_header): Likewise.
10060         * lib/math.in.h (system_header): Likewise.
10061         * lib/netdb.in.h (system_header): Likewise.
10062         * lib/netinet_in.in.h (system_header): Likewise.
10063         * lib/pty.in.h (system_header): Likewise.
10064         * lib/sched.in.h (system_header): Likewise.
10065         * lib/se-selinux.in.h (system_header): Likewise.
10066         * lib/search.in.h (system_header): Likewise.
10067         * lib/spawn.in.h (system_header): Likewise.
10068         * lib/stdarg.in.h (system_header): Likewise.
10069         * lib/stdint.in.h (system_header): Likewise.
10070         * lib/string.in.h (system_header): Likewise.
10071         * lib/strings.in.h (system_header): Likewise.
10072         * lib/sys_file.in.h (system_header): Likewise.
10073         * lib/sys_ioctl.in.h (system_header): Likewise.
10074         * lib/sys_socket.in.h (system_header): Likewise.
10075         * lib/sys_times.in.h (system_header): Likewise.
10076         * lib/sys_utsname.in.h (system_header): Likewise.
10077         * lib/sys_wait.in.h (system_header): Likewise.
10078         * lib/sysexits.in.h (system_header): Likewise.
10079         * lib/unistd.in.h (system_header): Likewise.
10080         * lib/wctype.in.h (system_header): Likewise.
10081
10082         arpa/inet: fix mingw compilation warning
10083         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10084         Reported by Matthew Bolte.
10085
10086 2010-03-25  Bruno Haible  <bruno@clisp.org>
10087
10088         Avoid collision between gnulib wrapper and libintl wrapper.
10089         * lib/printf.c (printf): Don't define if a printf wrapper is already
10090         defined in intl/printf.c.
10091         Reported by Michel Boaventura <michel@michelboaventura.com>.
10092
10093 2010-03-25  Bruno Haible  <bruno@clisp.org>
10094
10095         Use ANSI C.
10096         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10097
10098 2010-03-25  Bruno Haible  <bruno@clisp.org>
10099
10100         Minor formatting changes.
10101         * lib/acosl.c: Insert space before function argument list.
10102         * lib/argz.c: Likewise.
10103         * lib/asinl.c: Likewise.
10104         * lib/expl.c: Likewise.
10105         * lib/gen-uni-tables.c: Likewise.
10106         * lib/gettext.h: Likewise.
10107         * lib/glthread/lock.h: Likewise.
10108         * lib/tanl.c: Likewise.
10109         * lib/uniname/uniname.c: Likewise.
10110         * tests/test-idpriv-drop.c: Likewise.
10111         * tests/test-idpriv-droptemp.c: Likewise.
10112         * tests/test-lock.c: Likewise.
10113         * tests/test-tls.c: Likewise.
10114         * lib/argp-help.c: Insert space before function-like macro argument
10115         list.
10116         * lib/memcmp.c: Likewise.
10117         * tests/test-base64.c: Likewise.
10118         * lib/localename.c: Insert space before sizeof's argument list.
10119         * lib/safe-alloc.h: Likewise.
10120         * lib/file-set.h: Insert space before macro argument list.
10121         * tests/test-argp.c: Likewise.
10122         * lib/argp-namefrob.h: Insert space before function parameter list.
10123         * lib/getaddrinfo.c: Likewise.
10124         * lib/netdb.in.h: Likewise.
10125         * lib/parse-duration.h: Likewise.
10126         * lib/parse-duration.c: Likewise.
10127         * lib/poll.c: Likewise.
10128         * lib/select.c: Likewise.
10129         * lib/trim.h: Likewise.
10130         * tests/test-usleep.c: Likewise.
10131         * lib/ldexpl.c: Insert space before function parameter list and before
10132         function argument list.
10133         * lib/logl.c: Likewise.
10134         * lib/sqrtl.c: Likewise.
10135         * lib/trim.c: Likewise.
10136         * lib/cosl.c: Use GNU style indentation. Insert space before function
10137         argument list.
10138         * lib/sinl.c: Likewise.
10139         * lib/tsearch.c: Insert space after 'for'.
10140         Reported by Jim Meyering.
10141
10142 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10143
10144         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10145         config header before grepping, as it's not present before
10146         autoreconf/configure are run.  Reported by Simon Josefsson.
10147
10148 2010-03-23  Bruno Haible  <bruno@clisp.org>
10149
10150         pt_chown: Make it work with automake < 1.11.
10151         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10152         Reported by Simon Josefsson.
10153
10154 2010-03-23  Bruno Haible  <bruno@clisp.org>
10155
10156         pt_chown: Don't depend on GPLed modules.
10157         * lib/pt_chown.c: Don't include idpriv.h.
10158         (main): Don't drop privileges.
10159         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10160         Reported by Simon Josefsson.
10161
10162 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10163
10164         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10165         suggestions from karl@freefriends.org (Karl Berry).
10166
10167 2010-03-22  Eric Blake  <eblake@redhat.com>
10168
10169         gethostname: further tweaks
10170         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10171         are overriding gethostname.
10172         Suggested by Bruno Haible.
10173
10174 2010-03-21  Bruno Haible  <bruno@clisp.org>
10175
10176         Fix comments.
10177         * lib/forkpty.c (rpl_forkpty): Fix comment.
10178         * lib/openpty.c (rpl_openpty): Likewise.
10179         Reported by Eric Blake.
10180
10181 2010-03-22  Eric Blake  <eblake@redhat.com>
10182
10183         gethostname: fix build on mingw
10184         * lib/unistd.in.h (includes): Work around fact that mingw
10185         <winsock2.h> re-includes <unistd.h>, by avoiding any
10186         redeclarations if we are being included by <winsock2.h>.
10187         Reported by Matthias Bolte.
10188
10189 2010-03-21  Bruno Haible  <bruno@clisp.org>
10190
10191         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10192         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10193         modifications.
10194         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10195         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10196         provide the replacement.
10197         * modules/forkpty (Depends-on): Add openpty, login_tty.
10198         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10199         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10200         * doc/glibc-functions/forkpty.texi: More supported platforms.
10201         * config/srclist.txt: Add forkpty.c (commented).
10202
10203 2010-03-21  Bruno Haible  <bruno@clisp.org>
10204
10205         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10206         (Makefile.am): Verify that PTY_LIB is defined.
10207
10208         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10209
10210 2010-03-21  Bruno Haible  <bruno@clisp.org>
10211
10212         Tests for module 'login_tty'.
10213         * modules/login_tty-tests: New file.
10214         * tests/test-login_tty.c: New file.
10215
10216         New module 'login_tty'.
10217         * lib/login_tty.c: New file.
10218         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10219         * modules/login_tty: New file.
10220         * doc/glibc-functions/login_tty.texi: Mention the new module.
10221
10222 2010-03-21  Bruno Haible  <bruno@clisp.org>
10223
10224         login_tty: Documentation.
10225         * doc/glibc-functions/login_tty.texi: New file.
10226         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10227
10228 2010-03-21  Bruno Haible  <bruno@clisp.org>
10229
10230         pty: Consistent macro naming.
10231         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10232         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10233         * modules/pty (configure.ac): Update.
10234
10235 2010-03-21  Bruno Haible  <bruno@clisp.org>
10236
10237         Tests for openpty: Make stricter.
10238         * tests/test-openpty.c (main): Add test of canonical processing and
10239         erase.
10240         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10241
10242         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10243         * lib/openpty.c (openpty): New replacement function.
10244         * lib/pty.in.h: Include <termios.h>.
10245         (openpty): Update declaration. Add comments.
10246         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10247         is not declared, arrange to provide the replacement. Check for _getpty
10248         and posix_openpt.
10249         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10250         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10251         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10252         * modules/pty-tests (test_pty_c___LDADD): New variable.
10253         * doc/glibc-functions/openpty.texi: More supported platforms.
10254
10255 2010-03-21  Bruno Haible  <bruno@clisp.org>
10256
10257         setenv: Tweaks.
10258         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10259         the test program.
10260         * doc/posix-functions/setenv.texi: Update platforms list.
10261
10262 2010-03-21  Bruno Haible  <bruno@clisp.org>
10263
10264         New module 'unlockpt'.
10265         * lib/unlockpt.c: New file, from glibc with modifications.
10266         * m4/unlockpt.m4: New file.
10267         * modules/unlockpt: New file.
10268         * lib/stdlib.in.h (unlockpt): New declaration.
10269         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10270         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10271         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10272         HAVE_UNLOCKPT.
10273         * doc/posix-functions/unlockpt.texi: Mention the new module.
10274         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10275         * config/srclist.txt: Add unlockpt.c (commented).
10276
10277 2010-03-21  Jim Meyering  <meyering@redhat.com>
10278
10279         maint.mk: prohibit inclusion of "intprops.h" without use
10280         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10281
10282 2010-03-21  Bruno Haible  <bruno@clisp.org>
10283
10284         New module 'grantpt'.
10285         * lib/grantpt.c: New file, from glibc with modifications.
10286         * m4/grantpt.m4: New file.
10287         * modules/grantpt: New file.
10288         * lib/stdlib.in.h (grantpt): New declaration.
10289         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10290         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10291         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10292         HAVE_GRANTPT.
10293         * doc/posix-functions/grantpt.texi: Mention the new module.
10294         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10295         * config/srclist.txt: Add grantpt.c (commented).
10296
10297 2010-03-21  Bruno Haible  <bruno@clisp.org>
10298
10299         New module 'pt_chown'.
10300         * lib/pt_chown.c: New file, from glibc with modifications.
10301         * lib/pty-private.h: New file, from glibc with modifications.
10302         * modules/pt_chown: New file.
10303         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10304
10305 2010-03-21  Bruno Haible  <bruno@clisp.org>
10306
10307         Tests for module 'ptsname'.
10308         * modules/ptsname-tests: New file.
10309         * tests/test-ptsname.c: New file.
10310
10311         New module 'ptsname'.
10312         * lib/ptsname.c: New file, from glibc with modifications.
10313         * m4/ptsname.m4: New file.
10314         * modules/ptsname: New file.
10315         * lib/stdlib.in.h (ptsname): New declaration.
10316         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10317         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10318         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10319         HAVE_PTSNAME.
10320         * doc/posix-functions/ptsname.texi: Mention the new module.
10321         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10322         * config/srclist.txt: Add ptsname.c (commented).
10323
10324 2010-03-21  Bruno Haible  <bruno@clisp.org>
10325
10326         Tests for module 'ttyname_r'.
10327         * modules/ttyname_r-tests: New file.
10328         * tests/test-ttyname_r.c: New file.
10329
10330         New module 'ttyname_r'.
10331         * lib/ttyname_r.c: New file.
10332         * m4/ttyname_r.m4: New file.
10333         * modules/ttyname_r: New file.
10334         * lib/unistd.in.h (ttyname_r): New declaration.
10335         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10336         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10337         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10338         HAVE_TTYNAME_R.
10339         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10340         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10341
10342 2010-03-20  Bruno Haible  <bruno@clisp.org>
10343
10344         signal: Undefine macro definitions in C++ mode.
10345         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10346         sigfillset): Undefine macro definitions from the system header in C++
10347         mode.
10348         Reported by John W. Eaton <jwe@gnu.org>.
10349
10350 2010-03-20  Bruno Haible  <bruno@clisp.org>
10351
10352         Ensure no #include statements inside extern "C" { ... }.
10353         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10354         contain #include statements.
10355         * lib/time.in.h: Likewise.
10356
10357 2010-03-20  Bruno Haible  <bruno@clisp.org>
10358
10359         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10360         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10361         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10362         Reported by John W. Eaton <jwe@gnu.org>.
10363
10364 2010-03-20  Bruno Haible  <bruno@clisp.org>
10365
10366         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10367         Reported by Jim Meyering.
10368
10369 2010-03-20  Bruno Haible  <bruno@clisp.org>
10370
10371         pipe: Set errno upon failure.
10372         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10373         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10374         errno value in error message.
10375
10376 2010-03-20  Bruno Haible  <bruno@clisp.org>
10377             Jim Meyering  <meyering@redhat.com>
10378
10379         lchown: Avoid "unused variable" warning.
10380         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
10381
10382 2010-03-20  Bruno Haible  <bruno@clisp.org>
10383
10384         Work around unlink() bug on MacOS X 10.5.6.
10385         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
10386         attempting to unlink a parent directory.
10387         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
10388         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
10389         activate for the replacement function.
10390         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
10391
10392 2010-03-20  Bruno Haible  <bruno@clisp.org>
10393
10394         Fix link errors on Solaris 8.
10395         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
10396         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
10397
10398 2010-03-19  Jim Meyering  <meyering@redhat.com>
10399
10400         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
10401         The _LIBC implementation of build_range_exp correctly honors the
10402         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
10403         However, the non-_LIBC implementation would ignore that syntax-bit
10404         flag and return REG_ERANGE unconditionally.
10405         This change makes it honor that flag.
10406         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
10407         Make two pointer parameters "const".
10408         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
10409         (parse_bracket_exp): Update caller.
10410
10411         regex.m4: correct the reversed range endpoint ([b-a]) test
10412         * m4/regex.m4: When requiring that [b-a] evoke failure,
10413         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
10414         test pass once again for x86-based systems.
10415
10416 2010-03-19  Bruno Haible  <bruno@clisp.org>
10417
10418         scandir: Fix link error on Solaris 8.
10419         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
10420         macros.
10421
10422 2010-03-19  Bruno Haible  <bruno@clisp.org>
10423
10424         getusershell: Fix documentation.
10425         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
10426         module.
10427         * doc/glibc-functions/setusershell.texi: Likewise.
10428
10429         getusershell: Provide declaration, missing on Solaris 9.
10430         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
10431         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
10432         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
10433         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
10434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10435         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
10436         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
10437         HAVE_GETUSERSHELL.
10438         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
10439
10440 2010-03-19  Bruno Haible  <bruno@clisp.org>
10441
10442         wctype: Provide iswblank function.
10443         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
10444         exists and is fine.
10445         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
10446         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
10447         * tests/test-wctype.c (main): Re-enable the iswblank tests.
10448         * doc/posix-functions/iswblank.texi: Update.
10449
10450 2010-03-19  Bruno Haible  <bruno@clisp.org>
10451
10452         Tests of module 'pty' in C++ mode.
10453         * modules/pty-tests: New file.
10454         * tests/test-pty-c++.cc: New file.
10455         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10456
10457 2010-03-19  Eric Blake  <eblake@redhat.com>
10458
10459         logb: fix documentation
10460         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
10461         1.5 declaration bug.
10462
10463         forkpty, openpty: prefer glibc's const-safe prototype
10464         * lib/forkpty.c (rpl_forkpty): New file.
10465         * lib/openpty.c (rpl_openpty): Likewise.
10466         * modules/forkpty (Files): Distribute it.
10467         * modules/openpty (Files): Likewise.
10468         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
10469         check...
10470         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
10471         replacement for for non-const BSD signature.
10472         * modules/pty (Makefile.am): Substitute witnesses.
10473         * lib/pty.in.h (forkpty, openpty): Declare replacements.
10474         * tests/test-forkpty.c: Update signature check.
10475         * tests/test-openpty.c: Likewise.
10476         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
10477         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10478
10479         forkpty, openpty: split functions into new modules
10480         * modules/pty (Makefile.am): Substitute new witnesses.
10481         (Libraries): Move library detection...
10482         * modules/forkpty: ...into new module.
10483         * modules/openpty: Another new module.
10484         * modules/pty-tests: Rename and split...
10485         * modules/forkpty-tests: ...to this...
10486         * modules/openpty-tests: ...and this.
10487         * tests/test-pty.c: Rename and split...
10488         * tests/test-forkpty.c: ...to this...
10489         * tests/test-openpty.c: ...and this.
10490         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
10491         (gl_PTY): Split library searching...
10492         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
10493         (gl_FORKPTY, gl_OPENPTY): New macros.
10494         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
10495         * NEWS: Mention the split.
10496         * MODULES.html.sh (Misc): Document the modules.
10497         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
10498         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10499
10500         pty: improve replacement header
10501         * lib/pty.in.h: New file.
10502         * modules/pty (Files): Ship it.
10503         (Makefile.am): Always build replacement.
10504         * m4/pty.m4: Rename...
10505         * m4/pty_h.m4: ...to this.
10506         (gl_PTY): Modernize setting of witness macros; update check of
10507         forkpty to take proper advantage of cache.
10508         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
10509
10510         getopt: avoid compiler warning
10511         * lib/getopt.c (attribute_hidden): Remove unused macro.
10512
10513 2010-03-18  Bruno Haible  <bruno@clisp.org>
10514
10515         Fix link errors on Solaris 8.
10516         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
10517         * modules/search-tests (test_search_c___LDADD): Likewise.
10518         * modules/signal-tests (test_signal_c___LDADD): Likewise.
10519         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
10520         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
10521         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
10522         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
10523         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
10524         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
10525
10526 2010-03-18  Bruno Haible  <bruno@clisp.org>
10527
10528         Fix bug introduced on 2010-03-14.
10529         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
10530         (gl_SPAWN_H): Require it.
10531         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
10532         Reported by Simon Josefsson.
10533
10534 2010-03-18  Bruno Haible  <bruno@clisp.org>
10535
10536         Fix typo introduced on 2009-12-31.
10537         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
10538         posix_spawn_file_actions_adddup2.
10539
10540 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
10541         and Eric Blake  <eblake@redhat.com>
10542
10543         test-vc-list-files-git: make more robust
10544         * tests/test-vc-list-files-git.sh: Unset problematic environment
10545         variables.  Chain commands together.
10546
10547 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
10548
10549         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
10550         `AC_CHECK_DECL' invocation.
10551
10552 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
10553
10554         * lib/inttostr.c (inttostr): Make sure the invocation of verify
10555         appears before executable statements. Suggested by Petr Sumbera
10556         <Petr.Sumbera@Sun.COM>.
10557
10558 2010-03-14  Bruno Haible  <bruno@clisp.org>
10559
10560         * tests/test-flock.c (test_exclusive): Comment out a test that causes
10561         portability problems. Instead use a simpler test.
10562         (main): Check that invalid arguments are rejected only on Linux.
10563
10564 2010-03-14  Bruno Haible  <bruno@clisp.org>
10565
10566         Fix bug introduced on 2009-12-31.
10567         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10568         gl_PREREQ_SYS_H_WINSOCK2 always.
10569         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
10570         SYS_SOCKET_H variable.
10571         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
10572         Update comments.
10573         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
10574         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10575         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10576         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10577         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10578
10579 2010-03-14  Bruno Haible  <bruno@clisp.org>
10580
10581         Fix values returned by sinl, cosl.
10582         * lib/trigl.h: Add specification comments.
10583         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
10584         that combines the values from the precomputed table with the values of
10585         the Chebyshev polynomials.
10586
10587 2010-03-14  Bruno Haible  <bruno@clisp.org>
10588
10589         Fix compilation error when modules 'posix_spawn[p]' are not used.
10590         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
10591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
10592
10593 2010-03-14  Bruno Haible  <bruno@clisp.org>
10594
10595         Fix compilation error on mingw when module 'time_r' is not used.
10596         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
10597         is 1.
10598         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
10599         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10600         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
10601         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
10602
10603 2010-03-14  Bruno Haible  <bruno@clisp.org>
10604
10605         Fix compilation error with Sun C.
10606         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
10607         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
10608         instead of GCC specific ULONG_LONG_MAX.
10609         * lib/xstrtoll.c: Likewise.
10610         * lib/xstrtoull.c: Likewise.
10611
10612 2010-03-13  Bruno Haible  <bruno@clisp.org>
10613
10614         Allow the user to disable C++ code and tests.
10615         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
10616         (gl_PROG_ANSI_CXX): Require it.
10617
10618 2010-03-13  Bruno Haible  <bruno@clisp.org>
10619
10620         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
10621         cases.
10622
10623 2010-03-13  Bruno Haible  <bruno@clisp.org>
10624
10625         Test that gnulib does not break the standard C++ headers.
10626         * tests/test-locale-c++2.cc: New file.
10627         * modules/locale-tests (Files): Add it.
10628         (Makefile.am): Compile it for test-locale-c++.
10629         * tests/test-math-c++2.cc: New file.
10630         * modules/math-tests (Files): Add it.
10631         (Makefile.am): Compile it for test-math-c++.
10632         * tests/test-signal-c++2.cc: New file.
10633         * modules/signal-tests (Files): Add it.
10634         (Makefile.am): Compile it for test-signal-c++.
10635         * tests/test-stdio-c++2.cc: New file.
10636         * modules/stdio-tests (Files): Add it.
10637         (Makefile.am): Compile it for test-stdio-c++.
10638         * tests/test-stdlib-c++2.cc: New file.
10639         * modules/stdlib-tests (Files): Add it.
10640         (Makefile.am): Compile it for test-stdlib-c++.
10641         * tests/test-string-c++2.cc: New file.
10642         * modules/string-tests (Files): Add it.
10643         (Makefile.am): Compile it for test-string-c++.
10644         * tests/test-time-c++2.cc: New file.
10645         * modules/time-tests (Files): Add it.
10646         (Makefile.am): Compile it for test-time-c++.
10647         Reported by John W. Eaton <jwe@gnu.org>.
10648
10649 2010-03-13  Bruno Haible  <bruno@clisp.org>
10650
10651         * gnulib-tool (func_usage): Clarify which options are available for
10652         --create-testdir and --create-megatestdir.
10653
10654 2010-03-13  Bruno Haible  <bruno@clisp.org>
10655
10656         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
10657         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
10658         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
10659         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10660         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
10661         when appropriate.
10662         Reported by Jim Meyering.
10663
10664 2010-03-12  Simon Josefsson  <simon@josefsson.org>
10665
10666         * gnulib-tool (func_import): Explain origin of code.
10667
10668 2010-03-12  Bruno Haible  <bruno@clisp.org>
10669
10670         Fix problem with automake's definition of CXXLINK.
10671         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
10672         Reported by Simon Josefsson and Ludovic Courtès.
10673
10674 2010-03-12  Bruno Haible  <bruno@clisp.org>
10675
10676         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
10677         stable releases.
10678
10679 2010-03-11  Bruno Haible  <bruno@clisp.org>
10680
10681         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
10682         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
10683         whether the system provides one variant or multiple variants of the
10684         function.
10685         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
10686         C++ compilers.
10687         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
10688         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
10689         Reported by Jim Meyering.
10690
10691 2010-03-09  Simon Josefsson  <simon@josefsson.org>
10692
10693         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
10694
10695 2010-03-08  Bruno Haible  <bruno@clisp.org>
10696
10697         gnulib-tool: Add support for --libtool in --create-testdir.
10698         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
10699         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
10700
10701 2010-03-08  Eric Blake  <eblake@redhat.com>
10702
10703         gnulib-tool.texi: mention possibility of git submodule
10704         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
10705         submodules.
10706         * doc/.gitignore: Ignore another generated file.
10707
10708 2010-03-08  Karl Berry  <karl@gnu.org>
10709
10710         * doc/gnulib-tool.texi (VCS Issues): Mention third option
10711         of committing gnulib files while skipping others.
10712
10713 2010-03-07  Bruno Haible  <bruno@clisp.org>
10714
10715         Tests of module 'wctype' in C++ mode.
10716         * tests/test-wctype-c++.cc: New file.
10717         * modules/wctype-tests (Files): Add it and tests/signature.h.
10718         (Depends-on): Add ansi-c++-opt.
10719         (Makefile.am): Arrange to compile and run test-wctype-c++.
10720
10721         Tests of module 'wchar' in C++ mode.
10722         * tests/test-wchar-c++.cc: New file.
10723         * modules/wchar-tests (Files): Add it and tests/signature.h.
10724         (Depends-on): Add ansi-c++-opt.
10725         (Makefile.am): Arrange to compile and run test-wchar-c++.
10726         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
10727         gl_MODULE_INDICATOR.
10728
10729         Tests of module 'unistd' in C++ mode.
10730         * tests/test-unistd-c++.cc: New file.
10731         * modules/unistd-tests (Files): Add it and tests/signature.h.
10732         (Depends-on): Add ansi-c++-opt.
10733         (Makefile.am): Arrange to compile and run test-unistd-c++.
10734         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
10735         gl_MODULE_INDICATOR.
10736
10737         Tests of module 'time' in C++ mode.
10738         * tests/test-time-c++.cc: New file.
10739         * modules/time-tests (Files): Add it and tests/signature.h.
10740         (Depends-on): Add ansi-c++-opt.
10741         (Makefile.am): Arrange to compile and run test-time-c++.
10742         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10743
10744         Tests of module 'sys_time' in C++ mode.
10745         * tests/test-sys_time-c++.cc: New file.
10746         * modules/sys_time-tests (Files): Add it and tests/signature.h.
10747         (Depends-on): Add ansi-c++-opt.
10748         (Makefile.am): Arrange to compile and run test-sys_time-c++.
10749         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
10750         gl_MODULE_INDICATOR.
10751
10752         Tests of module 'sys_stat' in C++ mode.
10753         * tests/test-sys_stat-c++.cc: New file.
10754         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
10755         (Depends-on): Add ansi-c++-opt.
10756         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
10757         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
10758         gl_MODULE_INDICATOR.
10759
10760         Tests of module 'sys_socket' in C++ mode.
10761         * tests/test-sys_socket-c++.cc: New file.
10762         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
10763         (Depends-on): Add ansi-c++-opt.
10764         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
10765         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
10766         gl_MODULE_INDICATOR.
10767
10768         Tests of module 'sys_select' in C++ mode.
10769         * tests/test-sys_select-c++.cc: New file.
10770         * modules/sys_select-tests (Files): Add it and tests/signature.h.
10771         (Depends-on): Add ansi-c++-opt.
10772         (Makefile.am): Arrange to compile and run test-sys_select-c++.
10773         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
10774         gl_MODULE_INDICATOR.
10775
10776         Tests of module 'sys_ioctl' in C++ mode.
10777         * tests/test-sys_ioctl-c++.cc: New file.
10778         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
10779         (Depends-on): Add ansi-c++-opt.
10780         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
10781         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
10782         gl_MODULE_INDICATOR.
10783
10784         Tests of module 'string' in C++ mode.
10785         * tests/test-string-c++.cc: New file.
10786         * modules/string-tests (Files): Add it and tests/signature.h.
10787         (Depends-on): Add ansi-c++-opt.
10788         (Makefile.am): Arrange to compile and run test-string-c++.
10789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
10790         gl_MODULE_INDICATOR.
10791
10792         Tests of module 'stdlib' in C++ mode.
10793         * tests/test-stdlib-c++.cc: New file.
10794         * modules/stdlib-tests (Files): Add it and tests/signature.h.
10795         (Depends-on): Add ansi-c++-opt.
10796         (Makefile.am): Arrange to compile and run test-stdlib-c++.
10797         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
10798         gl_MODULE_INDICATOR.
10799
10800         Tests of module 'stdio' in C++ mode.
10801         * tests/test-stdio-c++.cc: New file.
10802         * modules/stdio-tests (Files): Add it and tests/signature.h.
10803         (Depends-on): Add ansi-c++-opt.
10804         (Makefile.am): Arrange to compile and run test-stdio-c++.
10805         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
10806         gl_MODULE_INDICATOR.
10807
10808         Tests of module 'spawn' in C++ mode.
10809         * tests/test-spawn-c++.cc: New file.
10810         * modules/spawn-tests (Files): Add it and tests/signature.h.
10811         (Depends-on): Add ansi-c++-opt.
10812         (Makefile.am): Arrange to compile and run test-spawn-c++.
10813         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
10814         gl_MODULE_INDICATOR.
10815
10816         Tests of module 'signal' in C++ mode.
10817         * tests/test-signal-c++.cc: New file.
10818         * modules/signal-tests (Files): Add it and tests/signature.h.
10819         (Depends-on): Add ansi-c++-opt.
10820         (Makefile.am): Arrange to compile and run test-signal-c++.
10821         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
10822         gl_MODULE_INDICATOR.
10823
10824         Tests of module 'search' in C++ mode.
10825         * tests/test-search-c++.cc: New file.
10826         * modules/search-tests (Files): Add it and tests/signature.h.
10827         (Depends-on): Add ansi-c++-opt.
10828         (Makefile.am): Arrange to compile and run test-search-c++.
10829         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
10830         gl_MODULE_INDICATOR.
10831
10832         Tests of module 'math' in C++ mode.
10833         * tests/test-math-c++.cc: New file.
10834         * modules/math-tests (Files): Add it and tests/signature.h.
10835         (Depends-on): Add ansi-c++-opt.
10836         (Makefile.am): Arrange to compile and run test-math-c++.
10837         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10838
10839         Tests of module 'locale' in C++ mode.
10840         * tests/test-locale-c++.cc: New file.
10841         * modules/locale-tests (Files): Add it and tests/signature.h.
10842         (Depends-on): Add ansi-c++-opt.
10843         (Makefile.am): Arrange to compile and run test-locale-c++.
10844         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
10845         gl_MODULE_INDICATOR.
10846
10847         Tests of module 'langinfo' in C++ mode.
10848         * tests/test-langinfo-c++.cc: New file.
10849         * modules/langinfo-tests (Files): Add it and tests/signature.h.
10850         (Depends-on): Add ansi-c++-opt.
10851         (Makefile.am): Arrange to compile and run test-langinfo-c++.
10852         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
10853         gl_MODULE_INDICATOR.
10854
10855         Tests of module 'iconv-h' in C++ mode.
10856         * tests/test-iconv-h-c++.cc: New file.
10857         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
10858         (Depends-on): Add ansi-c++-opt.
10859         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
10860
10861         Tests of module 'glob' in C++ mode.
10862         * tests/test-glob-c++.cc: New file.
10863         * modules/glob-tests (Files): Add it.
10864         (Depends-on): Add ansi-c++-opt.
10865         (Makefile.am): Arrange to compile and run test-glob-c++.
10866
10867         Tests of module 'fcntl-h' in C++ mode.
10868         * tests/test-fcntl-h-c++.cc: New file.
10869         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
10870         (Depends-on): Add ansi-c++-opt.
10871         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
10872         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
10873         gl_MODULE_INDICATOR.
10874
10875         Tests of module 'dirent' in C++ mode.
10876         * tests/test-dirent-c++.cc: New file.
10877         * modules/dirent-tests (Files): Add it and tests/signature.h.
10878         (Depends-on): Add ansi-c++-opt.
10879         (Makefile.am): Arrange to compile and run test-dirent-c++.
10880         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10881         gl_MODULE_INDICATOR.
10882
10883         New module 'ansi-c++-opt'.
10884         * modules/ansi-c++-opt: New file.
10885         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
10886
10887         Document C++ namespace mode.
10888         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
10889
10890         wctype: Avoid #define replacements in C++ mode.
10891         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
10892         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
10893         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
10894         In C++, define a namespaced alias symbol.
10895         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
10896         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
10897         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
10898         rule.
10899
10900         wchar: Avoid #define replacements in C++ mode.
10901         * lib/wchar.in.h: Include c++defs.h.
10902         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
10903         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
10904         symbol.
10905         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
10906         * modules/wchar (Depends-on): Add c++defs.
10907         (Makefile.am): Update wchar.h rule.
10908
10909         unistd: Avoid #define replacements in C++ mode.
10910         * lib/unistd.in.h: Include c++defs.h.
10911         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
10912         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
10913         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
10914         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
10915         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
10916         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
10917         symbol.
10918         (environ): Update.
10919         * modules/unistd (Depends-on): Add c++defs.
10920         (Makefile.am): Update unistd.h rule.
10921
10922         time: Avoid #define replacements in C++ mode.
10923         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
10924         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
10925         define a namespaced alias symbol.
10926         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
10927         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
10928         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
10929         * modules/time (Depends-on): Add c++defs, warn-on-use.
10930         (Makefile.am): Update time.h rule.
10931         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10932         * modules/nanosleep (configure.ac): Likewise.
10933         * modules/strptime (configure.ac): Likewise.
10934         * modules/timegm (configure.ac): Likewise.
10935
10936         sys_time: Avoid #define replacements in C++ mode.
10937         * lib/sys_time.in.h: Include c++defs.h.
10938         (gettimeofday): In C++, define a namespaced alias symbol.
10939         * modules/sys_time (Depends-on): Add c++defs.
10940         (Makefile.am): Update sys/time.h rule.
10941
10942         sys_stat: Avoid #define replacements in C++ mode.
10943         * lib/sys_stat.in.h: Include c++defs.h.
10944         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
10945         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
10946         namespaced alias symbol.
10947         In C++, define a namespaced alias symbol.
10948         * modules/sys_stat (Depends-on): Add c++defs.
10949         (Makefile.am): Update sys/stat.h rule.
10950
10951         sys_socket: Avoid #define replacements in C++ mode.
10952         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
10953         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
10954         definitions also when the system has a <sys/socket.h>.
10955         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10956         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
10957         In C++, define a namespaced alias symbol.
10958         * modules/sys_socket (Depends-on): Add c++defs.
10959         (Makefile.am): Update sys/socket.h rule.
10960
10961         sys_select: Avoid #define replacements in C++ mode.
10962         * lib/sys_select.in.h: Include c++defs.h. Enable the function
10963         definitions also when the system has a <sys/select.h>.
10964         (select): In C++, define a namespaced alias symbol.
10965         * modules/sys_select (Depends-on): Add c++defs.
10966         (Makefile.am): Update sys/select.h rule.
10967
10968         sys_ioctl: Avoid #define replacements in C++ mode.
10969         * lib/sys_ioctl.in.h: Include c++defs.h.
10970         (ioctl): In C++, define a namespaced alias symbol.
10971         * modules/sys_ioctl (Depends-on): Add c++defs.
10972         (Makefile.am): Update sys/ioctl.h rule.
10973
10974         string: Avoid #define replacements in C++ mode.
10975         * lib/string.in.h: Include c++defs.h.
10976         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
10977         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10978         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10979         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
10980         strsignal, strverscmp): In C++, define a namespaced alias symbol.
10981         * modules/string (Depends-on): Add c++defs.
10982         (Makefile.am): Update string.h rule.
10983
10984         stdlib: Avoid #define replacements in C++ mode.
10985         * lib/stdlib.in.h: Include c++defs.h.
10986         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
10987         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
10988         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
10989         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
10990         symbol.
10991         * modules/stdlib (Depends-on): Add c++defs.
10992         (Makefile.am): Update stdlib.h rule.
10993
10994         stdio: Avoid #define replacements in C++ mode.
10995         * lib/stdio.in.h: Include c++defs.h.
10996         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
10997         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
10998         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
10999         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11000         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11001         namespaced alias symbol.
11002         * modules/stdio (Depends-on): Add c++defs.
11003         (Makefile.am): Update stdio.h rule.
11004
11005         spawn: Avoid #define replacements in C++ mode.
11006         * lib/spawn.in.h: Include c++defs.h.
11007         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11008         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11009         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11010         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11011         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11012         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11013         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11014         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11015         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11016         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11017         In C++, define a namespaced alias symbol.
11018         * modules/spawn (Depends-on): Add c++defs.
11019         (Makefile.am): Update spawn.h rule.
11020
11021         signal: Avoid #define replacements in C++ mode.
11022         * lib/signal.in.h: Include c++defs.h.
11023         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11024         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11025         namespaced alias symbol.
11026         * modules/signal (Depends-on): Add c++defs.
11027         (Makefile.am): Update signal.h rule.
11028
11029         search: Avoid #define replacements in C++ mode.
11030         * lib/search.in.h: Include c++defs.h.
11031         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11032         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11033         symbol.
11034         * modules/search (Depends-on): Add c++defs.
11035         (Makefile.am): Update search.h rule.
11036
11037         math: Avoid #define replacements in C++ mode.
11038         * lib/math.in.h: Include c++defs.h.
11039         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11040         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11041         trunc, truncl): In C++, define a namespaced alias symbol.
11042         * modules/math (Depends-on): Add c++defs.
11043         (Makefile.am): Update math.h rule.
11044
11045         locale: Avoid #define replacements in C++ mode.
11046         * lib/locale.in.h: Include c++defs.h.
11047         (duplocale): In C++, define a namespaced alias symbol.
11048         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
11049         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
11050         * modules/locale (Depends-on): Add c++defs.
11051         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
11052
11053         langinfo: Avoid #define replacements in C++ mode.
11054         * lib/langinfo.in.h: Include c++defs.h.
11055         (nl_langinfo): In C++, define a namespaced alias symbol.
11056         * modules/langinfo (Depends-on): Add c++defs.
11057         (Makefile.am): Update langinfo.h rule.
11058
11059         iconv-h: Avoid #define replacements in C++ mode.
11060         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
11061         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
11062         symbol.
11063         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11064         whenever iconv is present.
11065         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11066         (Makefile.am): Update iconv.h rule.
11067
11068         glob: Avoid #define replacements in C++ mode.
11069         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11070         (_gl_glob_errfunc_fn): New type.
11071         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11072         symbol.
11073         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11074         (Makefile.am): Update glob.h rule.
11075
11076         fcntl-h: Avoid #define replacements in C++ mode.
11077         * lib/fcntl.in.h: Include c++defs.h.
11078         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11079         * modules/fcntl-h (Depends-on): Add c++defs.
11080         (Makefile.am): Update fcntl.h rule.
11081
11082         dirent: Avoid #define replacements in C++ mode.
11083         * lib/dirent.in.h: Include c++defs.h.
11084         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11085         namespaced alias symbol.
11086         (dirfd): Update declaration.
11087         * modules/dirent (Depends-on): Add c++defs.
11088         (Makefile.am): Update dirent.h rule.
11089
11090         ctype: Make it usable in C++ code.
11091         * lib/ctype.in.h: Include c++defs.h.
11092         (isblank): Declare as extern "C".
11093         * modules/ctype (Depends-on): Add c++defs.
11094         (Makefile.am): Update ctype.h rule.
11095
11096         New module 'c++defs'.
11097         * modules/c++defs: New file.
11098         * build-aux/c++defs.h: New file.
11099         Reported by John W. Eaton <jwe@gnu.org>.
11100
11101 2010-03-07  Bruno Haible  <bruno@clisp.org>
11102
11103         logb: Provide missing declaration for Cygwin.
11104         * lib/math.in.h (logb): New declaration.
11105         * m4/logb.m4: New file.
11106         * modules/logb (Files): Add m4/logb.m4.
11107         (Depends-on): Add math.
11108         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11109         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11111         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11112         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11113
11114 2010-03-07  Bruno Haible  <bruno@clisp.org>
11115
11116         Fix test-cond link error.
11117         * tests/test-cond.c: Include <stdio.h>.
11118
11119 2010-03-07  Bruno Haible  <bruno@clisp.org>
11120
11121         Fix test-dirent-safer link error.
11122         * modules/dirent-safer-tests (Makefile.am): Define
11123         test_dirent_safer_LDADD.
11124
11125 2010-03-07  Bruno Haible  <bruno@clisp.org>
11126
11127         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11128         among default module list.
11129
11130 2010-03-07  Bruno Haible  <bruno@clisp.org>
11131
11132         Fix link error on platforms with GNU libiconv.
11133         * modules/unistr/u8-strcoll-tests (Makefile): Define
11134         test_u8_strcoll_LDADD.
11135         * modules/unistr/u16-strcoll-tests (Makefile): Define
11136         test_u16_strcoll_LDADD.
11137         * modules/unistr/u32-strcoll-tests (Makefile): Define
11138         test_u32_strcoll_LDADD.
11139
11140 2010-03-07  Bruno Haible  <bruno@clisp.org>
11141
11142         Use POSIX declarations for socket functions.
11143         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11144         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11145         rpl_sendto): Change declaration to match POSIX.
11146         * lib/connect.c (rpl_connect): Likewise.
11147         * lib/accept.c (rpl_accept): Likewise.
11148         * lib/bind.c (rpl_bind): Likewise.
11149         * lib/getpeername.c (rpl_getpeername): Likewise.
11150         * lib/getsockname.c (rpl_getsockname): Likewise.
11151         * lib/recv.c (rpl_recv): Likewise.
11152         * lib/send.c (rpl_send): Likewise.
11153         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11154         * lib/sendto.c (rpl_sendto): Likewise.
11155
11156 2010-03-06  Bruno Haible  <bruno@clisp.org>
11157
11158         Clarify access, euidaccess, faccessat.
11159         * doc/posix-functions/faccessat.texi: Mention security problem under
11160         "Other problems", not "Portability problems".
11161         * doc/posix-functions/access.texi: Likewise. Mention a related security
11162         problem.
11163         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11164         * lib/euidaccess.c: Add comments about platforms.
11165         * lib/unistd.in.h (access, euidaccess): Add warnings.
11166
11167 2010-03-07  Bruno Haible  <bruno@clisp.org>
11168
11169         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11170         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11171         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11172         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11173         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11174         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11175         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11176         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11177         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11178         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11179         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11180         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11181         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11182         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11183         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11184         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11185         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11186         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11187         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11188         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11189         Likewise.
11190         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11191         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11192         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11193         Likewise.
11194         * tests/test-spawn.c (main): Make it work when
11195         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11196
11197 2010-03-07  Bruno Haible  <bruno@clisp.org>
11198
11199         Fix incorrect Makefile.am generation in German locale.
11200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11201         Execute sed command with character range in C locale.
11202
11203 2010-03-06  Bruno Haible  <bruno@clisp.org>
11204
11205         Tests for module 'iconv-h'.
11206         * modules/iconv-h-tests: New file.
11207         * tests/test-iconv-h.c: New file.
11208
11209         New module 'iconv-h'.
11210         * modules/iconv-h: New file.
11211         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11212         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11213         (configure.ac): Remove gl_ICONV_H.
11214         (Makefile.am): Remove rule for iconv.h.
11215
11216 2010-03-06  Bruno Haible  <bruno@clisp.org>
11217
11218         More consistent naming of *.m4 files.
11219         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11220         * modules/wctype (Files): Update.
11221
11222         More consistent naming of *.m4 files.
11223         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11224         * modules/wchar (Files): Update.
11225
11226 2010-03-06  Jim Meyering  <meyering@redhat.com>
11227
11228         euidaccess: relax license to LGPLv2+
11229         * modules/euidaccess (License): Relax to LGPLv2+.
11230
11231 2010-03-06  Bruno Haible  <bruno@clisp.org>
11232
11233         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11234         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11235         (Makefile.am): Augment lib_SOURCES instead.
11236
11237 2010-03-04  Jim Meyering  <meyering@redhat.com>
11238
11239         utime: remove obsolete module
11240         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11241         unnecessary for years, and has been marked as obsolete for 10 months.
11242         * modules/utime: Remove file.
11243         * lib/utime.c: Remove file.
11244         * m4/utime.m4: Remove file.
11245         * m4/utimes-null.m4: Remove file.
11246         * doc/posix-functions/utime.texi (utime): Remove reference to
11247         the module.  Move the sole "fixed by gnulib" item into the
11248         "problems not fixed by Gnulib" list.
11249         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11250
11251 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11252
11253         * modules/exit (License): Relax license to LGPLv2+.
11254         (Status): Mark as obsolete.
11255         * NEWS: Mention deprecated 'exit' module.
11256         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11257         of now obsolete 'exit'.
11258
11259 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11260
11261         fts-lgpl: remove unused module
11262         * modules/fts-lgpl: Remove.
11263         * MODULES.html.sh (func_all_modules): Adjust.
11264         * check-module (find_included_lib_files): Adjust.
11265         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11266
11267 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11268
11269         copy-acl: enhance Solaris ACL error handling
11270         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11271         * lib/set-mode-acl.c (qset_acl): Likewise.
11272
11273 2010-03-02  Bruno Haible  <bruno@clisp.org>
11274
11275         spawn: Don't override the system defined values on FreeBSD 8.
11276         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11277         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11278         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11279         if HAVE_POSIX_SPAWN is 1.
11280         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11281
11282 2010-03-01  Bruno Haible  <bruno@clisp.org>
11283
11284         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11285         regarding Automake.
11286
11287 2010-02-25  Bruno Haible  <bruno@clisp.org>
11288
11289         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11290         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11291         setting, not afterwards.
11292         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11293
11294 2010-02-24  Eric Blake  <eblake@redhat.com>
11295
11296         bootstrap, git-version-gen: use timestamp
11297         * build-aux/git-version-gen (scriptversion): Force UTC.
11298         * build-aux/bootstrap (scriptversion): New variable.
11299
11300         bootstrap: allow older git
11301         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11302         older than 1.6.4.  Requested by the libvirt project.
11303
11304 2010-02-23  Eric Blake  <eblake@redhat.com>
11305
11306         warn-on-use: work with old autoconf
11307         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11308         AS_VAR semantics of autoconf 2.60.
11309         Reported by Bruno Haible.
11310
11311         bootstrap: improve some comments
11312         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11313         clarification comments.
11314
11315         gettimeofday: provide correct function
11316         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11317         when replacement is declared, otherwise provide gettimeofday.
11318         Reported by Michael Goffioul.
11319
11320 2010-02-23  Jim Meyering  <meyering@redhat.com>
11321
11322         lib-ignore: relax license to "unlimited", not LGPLv2+
11323         * modules/lib-ignore (License): Relax to "unlimited".
11324
11325 2010-02-23  Jim Meyering  <meyering@redhat.com>
11326
11327         lib-ignore: relax license to LGPLv2+
11328         * modules/lib-ignore (License): Relax to LGPLv2+.
11329
11330 2010-02-22  Eric Blake  <eblake@redhat.com>
11331
11332         lseek: avoid bash 3.2 broken pipe bug
11333         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11334         warning from bash 3.2.
11335         Reported by Ben Pfaff, with analysis from Bruno Haible.
11336
11337         bootstrap: support non-FSF copyright holder
11338         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11339         bootstrap.conf override of COPYRIGHT_HOLDER.
11340         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11341
11342         bootstrap: interoperate with gettext 0.14.1
11343         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11344
11345         bootstrap: allow for alternate submodule location
11346         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11347         hardcoding submodule location.
11348         (gnulib_mk): Allow direct use of Makefile.am.
11349
11350         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11351         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11352         rather than reconfiguring where the submodule points.
11353
11354         gettimeofday: restore support for platforms that lack function
11355         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11356         replacement if function is missing.
11357         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11358         * modules/sys_time (Makefile.am): Substitute it.
11359         * lib/sys_time.in.h (gettimeofday): Check it.
11360         Reported by Michael Goffioul.
11361
11362 2010-02-21  Bruno Haible  <bruno@clisp.org>
11363
11364         * lib/stdio.in.h (obstack_printf): Fix typo.
11365
11366 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11367
11368         vc-list-files: use bzr ls's -R option
11369         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11370         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11371
11372 2010-02-21  Jim Meyering  <meyering@redhat.com>
11373
11374         init.sh: fix EXEEXT shims to work also for names like test-prog
11375         * tests/init.sh: Re-exec a better shell, when needed.
11376         If the current shell lacks support for posix $(...), an init.sh-using
11377         test will now try to find a shell that supports that.  If EXEEXT is
11378         nonempty, we also require support for hyphen-in-alias-name and shell
11379         substitutions like ${var#glob}.  Failure to find such a shell results
11380         in a skipped test.
11381
11382 2010-02-21  Bruno Haible  <bruno@clisp.org>
11383
11384         Really work around around "broken pipe" error message from bash 3.2.
11385         * gnulib-tool (func_reset_sigpipe): Remove function.
11386         (echo): In bash 3.2, define to a function that uses printf.
11387         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
11388
11389 2010-02-20  Bruno Haible  <bruno@clisp.org>
11390
11391         Restore support for automake 1.9.6 with autoconf 2.61.
11392         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
11393         Reported by James Youngman <jay@gnu.org>.
11394
11395 2010-02-20  Bruno Haible  <bruno@clisp.org>
11396
11397         Improve *printf warning condition.
11398         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
11399         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
11400         and the function is overridden due to SIGPIPE emulation.
11401
11402 2010-02-20  Bruno Haible  <bruno@clisp.org>
11403
11404         * lib/stdio.in.h: Tweak comments.
11405
11406 2010-02-19  Bruno Haible  <bruno@clisp.org>
11407
11408         Make it easier to find modules. New gnulib-tool option '--find'.
11409         * gnulib-tool: New option --find.
11410         (func_usage): Document it.
11411         (func_sanitize_modulelist): New function, extracted from
11412         func_all_modules.
11413         (func_all_modules): Invoke it.
11414         * doc/gnulib-tool.texi (Which modules?): New node.
11415
11416 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
11417
11418         * lib/sys_select.in.h: Provide select replacement even if
11419         sys/select.h exists on a system, for Interix.
11420
11421 2010-02-18  Jim Meyering  <meyering@redhat.com>
11422
11423         init.sh: don't use $(...) just yet
11424         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
11425         to accommodate e.g., Solaris' /bin/sh.
11426
11427 2010-02-17  Bruno Haible  <bruno@clisp.org>
11428
11429         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
11430         Reported by Ludovic Courtès <ludo@gnu.org>.
11431
11432 2010-02-16  Simon Josefsson  <simon@josefsson.org>
11433
11434         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
11435         linking with -lintl.
11436
11437 2010-02-17  Simon Josefsson  <simon@josefsson.org>
11438
11439         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
11440         if not provided by the system's netdb.h.  Reported by
11441         ludo@gnu.org (Ludovic Courtès).
11442
11443 2010-02-15  Jim Meyering  <meyering@redhat.com>
11444
11445         init.sh: improve portability and efficiency
11446         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
11447         "dummy" in a for loop.
11448         Use '!', not '^' to select the complement of a character set used
11449         in a "case" statement.
11450         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11451         Suggestions from Eric Blake.
11452
11453         init.sh: automatically accommodate programs with the .exe suffix
11454         Automatically arrange for an invocation of "prog" to execute the
11455         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
11456         may use the simpler "prog", yet still work when built on a system
11457         that requires specifying the added suffix.
11458         Do this by constructing a function named "prog" that invokes
11459         "prog.exe" for each .exe file in selected directories.
11460         * tests/init.sh (find_exe_basenames_): New function.
11461         (create_exe_shim_functions_): New function.
11462         (path_prepend_): Use it.
11463
11464         maint.mk: mark syntax-check sc_*.m rules as .PHONY
11465         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
11466         "make -t syntax-check" doesn't create a ton of sc_*.m files.
11467
11468 2010-02-14  Jim Meyering  <meyering@redhat.com>
11469
11470         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
11471         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
11472         (sc_prohibit_hash_pjw_without_use): New rule.
11473
11474         maint.mk: allow the default upload destination dir to be overridden
11475         * top/maint.mk (upload_dest_dir_): Define with a default that
11476         preserves the status quo.
11477         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
11478         Reported by Peter Simons.
11479
11480         maint.mk: prohibit inclusion of "hash.h" without_use
11481         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
11482
11483 2010-02-10  Jim Meyering  <meyering@redhat.com>
11484
11485         maint.mk: prohibit inclusion of "ignore-value.h" without_use
11486         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
11487
11488 2010-02-09  Eric Blake  <ebb9@byu.net>
11489         and Bruno Haible  <bruno@clisp.org>
11490
11491         obstack-printf-posix: ensure declaration
11492         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
11493         extracted from gl_FUNC_OBSTACK_PRINTF.
11494         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
11495         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11496         Likewise.
11497         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
11498         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
11499         0.
11500
11501 2010-02-08  Bruno Haible  <bruno@clisp.org>
11502
11503         gnulib-tool: Fix typo in 2010-02-07 commit.
11504         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
11505         Reported by Eric Blake.
11506
11507 2010-02-07  Bruno Haible  <bruno@clisp.org>
11508
11509         gnulib-tool: Fix up caching patches.
11510         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
11511         option --no-cache. Use associative arrays when supported by the shell.
11512         (sed_comments): New variable.
11513         (modcache): Renamed from do_cache.
11514         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
11515         abbreviate unnecessarily.
11516         (have_associative): New variable.
11517         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
11518         way also for ksh and zsh.
11519         (func_init_sed_convert_to_cache_statements): New function, extracted
11520         from func_cache_lookup_module. Add support for associative arrays.
11521         Don't set the c_MODULE_cached variable here. Ignore all lines before
11522         the first field header. Remove only the final newline, not all trailing
11523         newlines. Support empty fields correctly. Limit the use of 'eval' to
11524         assignments.
11525         (func_get_description, func_get_status, func_get_notice,
11526         func_get_applicability, func_get_filelist, func_get_dependencies,
11527         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
11528         func_get_automake_snippet, func_get_include_directive,
11529         func_get_link_directive, func_get_license, func_get_maintainer):
11530         Update documentation. List the unoptimized code first. Add support for
11531         associative arrays. Limit the use of 'eval' to assignments.
11532         (func_get_applicability): Undo stylistic pessimisations.
11533         (func_get_automake_snippet, func_get_include_directive): Reduce code
11534         duplication.
11535         (func_modules_transitive_closure, func_modules_add_dummy,
11536         func_modules_notice, func_modules_to_filelist, func_add_file,
11537         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
11538         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
11539         func_create_testdir, func_create_megatestdir): Update documentation.
11540
11541 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11542
11543         * gnulib-tool (func_cache_lookup_module): Store the module name
11544         belonging to the cache variable; error out if two different
11545         module names map to the same cache variable name.
11546
11547 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11548
11549         gnulib-tool: Make caching optional.
11550         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
11551         Update matching short versions of --no-changelog.
11552         (func_usage): Update.
11553         (sed_extract_cache_prog): Renamed from ...
11554         (sed_extract_prog): ... this; revert to old extraction script.
11555         (func_get_description, func_get_status)
11556         (func_get_notice, func_get_applicability, func_get_filelist)
11557         (func_get_dependencies, func_get_autoconf_early_snippet)
11558         (func_get_autoconf_snippet, func_get_automake_snippet)
11559         (func_get_include_directive, func_get_link_directive)
11560         (func_get_license, func_get_maintainer): If $do_cache is false,
11561         use old, non-caching extraction scripts.
11562         Suggestion by Bruno Haible.
11563
11564 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11565
11566         gnulib-tool: cache module metainformation.
11567         * gnulib-tool (sed_extract_prog): Match newline before each
11568         header, and rewrite header to a shell variable suffix.
11569         (func_cache_var, func_cache_lookup_module): New functions,
11570         to turn a module name into a cache variable prefix, and to
11571         look up and cache module metainformation.
11572         (func_get_description, func_get_status)
11573         (func_get_notice, func_get_applicability, func_get_filelist)
11574         (func_get_dependencies, func_get_autoconf_early_snippet)
11575         (func_get_autoconf_snippet, func_get_automake_snippet)
11576         (func_get_include_directive, func_get_link_directive)
11577         (func_get_license, func_get_maintainer): Use
11578         func_cache_lookup_module.
11579
11580 2010-02-07  Bruno Haible  <bruno@clisp.org>
11581
11582         fnctl: Fix missing dependency.
11583         * modules/fcntl (Depends-on): Add getdtablesize.
11584         Reported by John W. Eaton <jwe@gnu.org>.
11585
11586 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11587
11588         Argp: fix recognition of short alias options.
11589
11590         * lib/argp-parse.c (convert_options): Fix improper use of
11591         `|' between character values.
11592         * tests/test-argp.c (group1_option): New alias option
11593         --read (-r).
11594         (group1_parser): Special handling for 'r'.
11595         (test15): New test case.
11596         (test_fun): Add test15.
11597         * tests/test-argp-2.sh: Update expected --help and --usage
11598         outputs.
11599
11600 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11601
11602         * tests/test-argp.c: Fix indentation.
11603
11604 2010-02-04  Eric Blake  <ebb9@byu.net>
11605
11606         gettimeofday: expose type of second argument
11607         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
11608         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
11609         * tests/test-gettimeofday.c: Use it to silence warning.
11610         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
11611         the issue.
11612
11613 2010-02-03  Jim Meyering  <meyering@redhat.com>
11614
11615         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
11616         * lib/regcomp.c (TYPE_SIGNED): Define.
11617         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
11618
11619         regcomp.c: avoid a new -Wshadow warning
11620         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
11621
11622 2010-02-01  Jim Meyering  <meyering@redhat.com>
11623
11624         removing useless parentheses in cpp #define directives
11625         For motivation, see commit c0221df4, "define STREQ(a,b)
11626         consistently, removing useless parentheses"
11627         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
11628         * lib/mountlist.c (MNT_IGNORE): Likewise.
11629         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
11630
11631 2010-02-01  Eric Blake  <ebb9@byu.net>
11632
11633         sys_time: use link-warning
11634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
11635         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
11636         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
11637         * modules/sys_time (Depends-on): Add warn-on-use.
11638         (Makefile.am): Always build replacement.
11639         (configure.ac): Update substitutions.
11640         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
11641         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
11642         bother with SYS_TIME_H.
11643         * modules/gettimeofday (configure.ac): Declare indicator.
11644         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
11645         in use.
11646
11647         closein-tests: silence compiler warning
11648         * tests/test-closein.c (main): Ignore fread result.
11649         * modules/closein-tests (Depends-on): Add ignore-value.
11650
11651         tests: silence warning about system return
11652         * tests/test-areadlink-with-size.c (main): Ignore system result.
11653         * tests/test-areadlink.c (main): Likewise.
11654         * tests/test-areadlinkat-with-size.c (main): Likewise.
11655         * tests/test-areadlinkat.c (main): Likewise.
11656         * tests/test-canonicalize-lgpl.c (main): Likewise.
11657         * tests/test-canonicalize.c (main): Likewise.
11658         * tests/test-chown.c (main): Likewise.
11659         * tests/test-fchownat.c (main): Likewise.
11660         * tests/test-fdutimensat.c (main): Likewise.
11661         * tests/test-fstatat.c (main): Likewise.
11662         * tests/test-futimens.c (main): Likewise.
11663         * tests/test-lchown.c (main): Likewise.
11664         * tests/test-link.c (main): Likewise.
11665         * tests/test-linkat.c (main): Likewise.
11666         * tests/test-lstat.c (main): Likewise.
11667         * tests/test-mkdir.c (main): Likewise.
11668         * tests/test-mkdirat.c (main): Likewise.
11669         * tests/test-mkfifo.c (main): Likewise.
11670         * tests/test-mkfifoat.c (main): Likewise.
11671         * tests/test-mknod.c (main): Likewise.
11672         * tests/test-readlink.c (main): Likewise.
11673         * tests/test-remove.c (main): Likewise.
11674         * tests/test-rename.c (main): Likewise.
11675         * tests/test-renameat.c (main): Likewise.
11676         * tests/test-rmdir.c (main): Likewise.
11677         * tests/test-symlink.c (main): Likewise.
11678         * tests/test-symlinkat.c (main): Likewise.
11679         * tests/test-unlink.c (main): Likewise.
11680         * tests/test-unlinkat.c (main): Likewise.
11681         * tests/test-utimens.c (main): Likewise.
11682         * tests/test-utimensat.c (main): Likewise.
11683         * modules/areadlink-tests (Depends-on): Add ignore-value.
11684         * modules/areadlink-with-size-tests (Depends-on): Likewise.
11685         * modules/areadlinkat-tests (Depends-on): Likewise.
11686         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
11687         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11688         * modules/canonicalize-tests (Depends-on): Likewise.
11689         * modules/chown-tests (Depends-on): Likewise.
11690         * modules/fdutimensat-tests (Depends-on): Likewise.
11691         * modules/futimens-tests (Depends-on): Likewise.
11692         * modules/lchown-tests (Depends-on): Likewise.
11693         * modules/link-tests (Depends-on): Likewise.
11694         * modules/linkat-tests (Depends-on): Likewise.
11695         * modules/lstat-tests (Depends-on): Likewise.
11696         * modules/mkdir-tests (Depends-on): Likewise.
11697         * modules/mkfifo-tests (Depends-on): Likewise.
11698         * modules/mkfifoat-tests (Depends-on): Likewise.
11699         * modules/mknod-tests (Depends-on): Likewise.
11700         * modules/openat-tests (Depends-on): Likewise.
11701         * modules/readlink-tests (Depends-on): Likewise.
11702         * modules/remove-tests (Depends-on): Likewise.
11703         * modules/rename-tests (Depends-on): Likewise.
11704         * modules/renameat-tests (Depends-on): Likewise.
11705         * modules/rmdir-tests (Depends-on): Likewise.
11706         * modules/symlink-tests (Depends-on): Likewise.
11707         * modules/symlinkat-tests (Depends-on): Likewise.
11708         * modules/unlink-tests (Depends-on): Likewise.
11709         * modules/utimens-tests (Depends-on): Likewise.
11710         * modules/utimensat-tests (Depends-on): Likewise.
11711
11712 2010-01-31  Bruno Haible  <bruno@clisp.org>
11713
11714         Perform the same test for many <math.h> functions.
11715         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
11716         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
11717         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
11718         of gl_MATHFUNC.
11719         * modules/acos (configure.ac): Likewise.
11720         * modules/asin (configure.ac): Likewise.
11721         * modules/atan (configure.ac): Likewise.
11722         * modules/atan2 (configure.ac): Likewise.
11723         * modules/cbrt (configure.ac): Likewise.
11724         * modules/copysign (configure.ac): Likewise.
11725         * modules/cos (configure.ac): Likewise.
11726         * modules/cosh (configure.ac): Likewise.
11727         * modules/erf (configure.ac): Likewise.
11728         * modules/erfc (configure.ac): Likewise.
11729         * modules/exp (configure.ac): Likewise.
11730         * modules/fmod (configure.ac): Likewise.
11731         * modules/hypot (configure.ac): Likewise.
11732         * modules/j0 (configure.ac): Likewise.
11733         * modules/j1 (configure.ac): Likewise.
11734         * modules/jn (configure.ac): Likewise.
11735         * modules/lgamma (configure.ac): Likewise.
11736         * modules/log (configure.ac): Likewise.
11737         * modules/log10 (configure.ac): Likewise.
11738         * modules/log1p (configure.ac): Likewise.
11739         * modules/pow (configure.ac): Likewise.
11740         * modules/remainder (configure.ac): Likewise.
11741         * modules/sin (configure.ac): Likewise.
11742         * modules/sinh (configure.ac): Likewise.
11743         * modules/tan (configure.ac): Likewise.
11744         * modules/tanh (configure.ac): Likewise.
11745         * modules/y0 (configure.ac): Likewise.
11746         * modules/y1 (configure.ac): Likewise.
11747         * modules/yn (configure.ac): Likewise.
11748         Suggested by Paolo Bonzini.
11749
11750 2010-01-31  Bruno Haible  <bruno@clisp.org>
11751
11752         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
11753
11754 2010-01-31  Bruno Haible  <bruno@clisp.org>
11755
11756         Work around getdelim() bug on FreeBSD 8.0.
11757         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
11758         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
11759         not work.
11760         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
11761         is 1.
11762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
11763         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
11764         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
11765         a non-zero size.
11766         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
11767
11768 2010-01-31  Bruno Haible  <bruno@clisp.org>
11769
11770         Work around getline() bug on FreeBSD 8.0.
11771         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
11772         and a non-zero size.
11773         * tests/test-getline.c (main): Likewise.
11774         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
11775         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
11776
11777 2010-01-28  Eric Blake  <ebb9@byu.net>
11778
11779         regex: fix build failure
11780         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
11781         platforms.
11782
11783 2010-01-28  Jim Meyering  <meyering@redhat.com>
11784
11785         regex: do not ignore memory allocation failure
11786         * lib/regex_internal.c (create_cd_newstate): Detect
11787         re_node_set_init_copy failure.   Extracted from glibc commit
11788         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11789
11790         regex: sync more white-space changes from libc
11791         * lib/regex_internal.c: White-space only changes.
11792         * lib/regexec.c: Likewise.
11793
11794         regex: add many uses of __attribute_warn_unused_result__
11795         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
11796         * lib/regexec.c: Likewise.
11797         Extracted from a messy glibc commit.
11798
11799         regcomp.c: spelling and merge-artifact from glibc
11800         * lib/regcomp.c: Merge remainder of glibc's
11801         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11802
11803         regcomp.c: sync white-space changes from glibc
11804         * lib/regcomp.c: Merge to accommodate white space
11805         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11806
11807         regcomp.c: do not ignore internal return values
11808         * lib/regcomp.c: Do not ignore internal return values.
11809         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
11810         but without its white-space changes and spelling fixes.
11811
11812         regex_internal.h: define __attribute_warn_unused_result__
11813         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
11814
11815         maint: add a syntax-check rule to check for vulnerable Makefile.in
11816         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
11817
11818 2010-01-27  Jim Meyering  <meyering@redhat.com>
11819
11820         ncftpput-ftp: clean up spaces
11821         * build-aux/ncftpput-ftp: Make Copyright line consistent.
11822         Remove trailing blanks.
11823
11824 2010-01-27  Simon Josefsson  <simon@josefsson.org>
11825
11826         * build-aux/git-version-gen: Fix copyright statement.
11827         * build-aux/gnupload: Likewise.
11828         * tests/test-arcfour.c: Likewise.
11829         * tests/test-arctwo.c: Likewise.
11830         * tests/test-count-one-bits.c: Likewise.
11831         * tests/test-crc.c: Likewise.
11832         * tests/test-des.c: Likewise.
11833         * tests/test-gc-arcfour.c: Likewise.
11834         * tests/test-gc-arctwo.c: Likewise.
11835         * tests/test-gc-des.c: Likewise.
11836         * tests/test-gc-hmac-md5.c: Likewise.
11837         * tests/test-gc-hmac-sha1.c: Likewise.
11838         * tests/test-gc-md2.c: Likewise.
11839         * tests/test-gc-md4.c: Likewise.
11840         * tests/test-gc-md5.c: Likewise.
11841         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11842         * tests/test-gc-rijndael.c: Likewise.
11843         * tests/test-gc-sha1.c: Likewise.
11844         * tests/test-gc.c: Likewise.
11845         * tests/test-gethostname.c: Likewise.
11846         * tests/test-gettimeofday.c: Likewise.
11847         * tests/test-hash.c: Likewise.
11848         * tests/test-hmac-md5.c: Likewise.
11849         * tests/test-hmac-sha1.c: Likewise.
11850         * tests/test-md2.c: Likewise.
11851         * tests/test-md4.c: Likewise.
11852         * tests/test-md5.c: Likewise.
11853         * tests/test-memchr.c: Likewise.
11854         * tests/test-memchr2.c: Likewise.
11855         * tests/test-memcmp.c: Likewise.
11856         * tests/test-memmem.c: Likewise.
11857         * tests/test-memrchr.c: Likewise.
11858         * tests/test-rawmemchr.c: Likewise.
11859         * tests/test-read-file.c: Likewise.
11860         * tests/test-rijndael.c: Likewise.
11861         * tests/test-sockets.c: Likewise.
11862         * tests/test-strchrnul.c: Likewise.
11863         * tests/test-strstr.c: Likewise.
11864         * tests/test-strtod.c: Likewise.
11865         * build-aux/ncftpput-ftp: Likewise.
11866
11867 2010-01-26  Eric Blake  <ebb9@byu.net>
11868
11869         ignore-value: update recommended header name
11870         * modules/ignore-value (Include): Only use <> for headers that
11871         exist in glibc.
11872
11873 2010-01-26  Jim Meyering  <meyering@redhat.com>
11874
11875         test-userspec.c: avoid compiler warnings
11876         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
11877         and "initialization discards qualifiers..." warnings.
11878         Put the first "uid" in its own scope, and make char* members "const".
11879
11880 2010-01-25  Bruno Haible  <bruno@clisp.org>
11881
11882         gnulib-tool: Make warning diagnostics consistent.
11883         * gnulib-tool (func_warning): New function.
11884         Use it everywhere where gnulib-tool produces output to stderr and it is
11885         not a fatal error.
11886
11887 2010-01-25  Bruno Haible  <bruno@clisp.org>
11888
11889         Fix test dependencies.
11890         * modules/xstrtol-tests (Depends-on): Add inttypes.
11891         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
11892
11893 2010-01-25 Pádraig Brady <P@draigBrady.com>
11894
11895         syntax-check: detect incorrect boolean macro values in config.h
11896         * modules/maintainer-makefile (configure.ac): Parameterize the location
11897         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
11898         The logic is from Eric Blake and the location indicated by Jim Meyering.
11899         Note the more natural CONFIG_HEADER name is prohibited by automake
11900         for backwards compatibility reasons.
11901         * top/maint.mk (sc_Wundef_boolean): New rule.
11902
11903 2010-01-25  Jim Meyering  <meyering@redhat.com>
11904
11905         bootstrap: detect MacOS 10.6's shasum, too
11906         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
11907         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
11908
11909 2010-01-23  Jim Meyering  <meyering@redhat.com>
11910
11911         xstrtoll: new module
11912         * modules/xstrtoll: New file.
11913         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
11914         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
11915         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
11916         ./configure fails if you use this module and lack "long long".
11917         * modules/xstrtoll-tests: New module.
11918         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
11919         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
11920         new init.sh-based test framework.
11921
11922 2010-01-24  Bruno Haible  <bruno@clisp.org>
11923
11924         Tests for module 'yn'.
11925         * modules/yn-tests: New file.
11926         * tests/test-yn.c: New file.
11927
11928         Tests for module 'y1'.
11929         * modules/y1-tests: New file.
11930         * tests/test-y1.c: New file.
11931
11932         Tests for module 'y0'.
11933         * modules/y0-tests: New file.
11934         * tests/test-y0.c: New file.
11935
11936         Tests for module 'tanh'.
11937         * modules/tanh-tests: New file.
11938         * tests/test-tanh.c: New file.
11939
11940         Tests for module 'tan'.
11941         * modules/tan-tests: New file.
11942         * tests/test-tan.c: New file.
11943
11944         Tests for module 'sqrt'.
11945         * modules/sqrt-tests: New file.
11946         * tests/test-sqrt.c: New file.
11947
11948         Tests for module 'sinh'.
11949         * modules/sinh-tests: New file.
11950         * tests/test-sinh.c: New file.
11951
11952         Tests for module 'sin'.
11953         * modules/sin-tests: New file.
11954         * tests/test-sin.c: New file.
11955
11956         Tests for module 'rint'.
11957         * modules/rint-tests: New file.
11958         * tests/test-rint.c: New file.
11959
11960         Tests for module 'remainder'.
11961         * modules/remainder-tests: New file.
11962         * tests/test-remainder.c: New file.
11963
11964         Tests for module 'pow'.
11965         * modules/pow-tests: New file.
11966         * tests/test-pow.c: New file.
11967
11968         Tests for module 'nextafter'.
11969         * modules/nextafter-tests: New file.
11970         * tests/test-nextafter.c: New file.
11971
11972         Tests for module 'modf'.
11973         * modules/modf-tests: New file.
11974         * tests/test-modf.c: New file.
11975
11976         Tests for module 'logb'.
11977         * modules/logb-tests: New file.
11978         * tests/test-logb.c: New file.
11979
11980         Tests for module 'log1p'.
11981         * modules/log1p-tests: New file.
11982         * tests/test-log1p.c: New file.
11983
11984         Tests for module 'log10'.
11985         * modules/log10-tests: New file.
11986         * tests/test-log10.c: New file.
11987
11988         Tests for module 'log'.
11989         * modules/log-tests: New file.
11990         * tests/test-log.c: New file.
11991
11992         Tests for module 'lgamma'.
11993         * modules/lgamma-tests: New file.
11994         * tests/test-lgamma.c: New file.
11995
11996         Tests for module 'ldexp'.
11997         * modules/ldexp-tests: New file.
11998         * tests/test-ldexp.c: New file.
11999
12000         Tests for module 'jn'.
12001         * modules/jn-tests: New file.
12002         * tests/test-jn.c: New file.
12003
12004         Tests for module 'j1'.
12005         * modules/j1-tests: New file.
12006         * tests/test-j1.c: New file.
12007
12008         Tests for module 'j0'.
12009         * modules/j0-tests: New file.
12010         * tests/test-j0.c: New file.
12011
12012         Tests for module 'hypot'.
12013         * modules/hypot-tests: New file.
12014         * tests/test-hypot.c: New file.
12015
12016         Tests for module 'fmod'.
12017         * modules/fmod-tests: New file.
12018         * tests/test-fmod.c: New file.
12019
12020         Tests for module 'fabs'.
12021         * modules/fabs-tests: New file.
12022         * tests/test-fabs.c: New file.
12023
12024         Tests for module 'exp'.
12025         * modules/exp-tests: New file.
12026         * tests/test-exp.c: New file.
12027
12028         Tests for module 'erfc'.
12029         * modules/erfc-tests: New file.
12030         * tests/test-erfc.c: New file.
12031
12032         Tests for module 'erf'.
12033         * modules/erf-tests: New file.
12034         * tests/test-erf.c: New file.
12035
12036         Tests for module 'cosh'.
12037         * modules/cosh-tests: New file.
12038         * tests/test-cosh.c: New file.
12039
12040         Tests for module 'cos'.
12041         * modules/cos-tests: New file.
12042         * tests/test-cos.c: New file.
12043
12044         Tests for module 'copysign'.
12045         * modules/copysign-tests: New file.
12046         * tests/test-copysign.c: New file.
12047
12048         Tests for module 'cbrt'.
12049         * modules/cbrt-tests: New file.
12050         * tests/test-cbrt.c: New file.
12051
12052         Tests for module 'atan2'.
12053         * modules/atan2-tests: New file.
12054         * tests/test-atan2.c: New file.
12055
12056         Tests for module 'atan'.
12057         * modules/atan-tests: New file.
12058         * tests/test-atan.c: New file.
12059
12060         Tests for module 'asin'.
12061         * modules/asin-tests: New file.
12062         * tests/test-asin.c: New file.
12063
12064         Tests for module 'acos'.
12065         * modules/acos-tests: New file.
12066         * tests/test-acos.c: New file.
12067
12068 2010-01-24  Bruno Haible  <bruno@clisp.org>
12069
12070         Fix tests for common <math.h> functions.
12071         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12072         code snippet that references the function pointer, rather than merely
12073         calling the function. Substitute the FUNC_LIBM variable.
12074         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12075         * modules/acos (configure.ac): Likewise.
12076         * modules/asin (configure.ac): Likewise.
12077         * modules/atan (configure.ac): Likewise.
12078         * modules/atan2 (configure.ac): Likewise.
12079         * modules/cbrt (configure.ac): Likewise.
12080         * modules/copysign (configure.ac): Likewise.
12081         * modules/cos (configure.ac): Likewise.
12082         * modules/cosh (configure.ac): Likewise.
12083         * modules/erf (configure.ac): Likewise.
12084         * modules/erfc (configure.ac): Likewise.
12085         * modules/exp (configure.ac): Likewise.
12086         * modules/fabs (configure.ac): Likewise.
12087         * modules/fmod (configure.ac): Likewise.
12088         * modules/hypot (configure.ac): Likewise.
12089         * modules/j0 (configure.ac): Likewise.
12090         * modules/j1 (configure.ac): Likewise.
12091         * modules/jn (configure.ac): Likewise.
12092         * modules/ldexp (configure.ac): Likewise.
12093         * modules/lgamma (configure.ac): Likewise.
12094         * modules/log (configure.ac): Likewise.
12095         * modules/log10 (configure.ac): Likewise.
12096         * modules/log1p (configure.ac): Likewise.
12097         * modules/logb (configure.ac): Likewise.
12098         * modules/modf (configure.ac): Likewise.
12099         * modules/nextafter (configure.ac): Likewise.
12100         * modules/pow (configure.ac): Likewise.
12101         * modules/remainder (configure.ac): Likewise.
12102         * modules/rint (configure.ac): Likewise.
12103         * modules/sin (configure.ac): Likewise.
12104         * modules/sinh (configure.ac): Likewise.
12105         * modules/tan (configure.ac): Likewise.
12106         * modules/tanh (configure.ac): Likewise.
12107         * modules/y0 (configure.ac): Likewise.
12108         * modules/y1 (configure.ac): Likewise.
12109         * modules/yn (configure.ac): Likewise.
12110
12111 2010-01-24  Bruno Haible  <bruno@clisp.org>
12112
12113         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12114         * tests/test-acosl.c (x): New variable.
12115         (main): Store argument in x and fetch it from x.
12116         * tests/test-asinl.c (x): New variable.
12117         (main): Store argument in x and fetch it from x.
12118         * tests/test-atanl.c (x): New variable.
12119         (main): Store argument in x and fetch it from x.
12120         * tests/test-cosl.c (x): New variable.
12121         (main): Store argument in x and fetch it from x.
12122         * tests/test-expl.c (x): New variable.
12123         (main): Store argument in x and fetch it from x.
12124         * tests/test-logl.c (x): New variable.
12125         (main): Store argument in x and fetch it from x.
12126         * tests/test-sinl.c (x): New variable.
12127         (main): Store argument in x and fetch it from x.
12128         * tests/test-sqrtl.c (x): New variable.
12129         (main): Store argument in x and fetch it from x.
12130         * tests/test-tanl.c (x): New variable.
12131         (main): Store argument in x and fetch it from x.
12132
12133 2010-01-24  Bruno Haible  <bruno@clisp.org>
12134
12135         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12136         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12137         assignments to the initial TESTS_ENVIRONMENT.
12138         * doc/gnulib.texi (Unit test modules): Document it.
12139         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12140         TESTS_ENVIRONMENT.
12141         * modules/btowc-tests (Makefile.am): Likewise.
12142         * modules/c-stack-tests (Makefile.am): Likewise.
12143         * modules/c-strcase-tests (Makefile.am): Likewise.
12144         * modules/copy-file-tests (Makefile.am): Likewise.
12145         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12146         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12147         * modules/mbrtowc-tests (Makefile.am): Likewise.
12148         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12149         * modules/mbscasestr-tests (Makefile.am): Likewise.
12150         * modules/mbschr-tests (Makefile.am): Likewise.
12151         * modules/mbscspn-tests (Makefile.am): Likewise.
12152         * modules/mbsinit-tests (Makefile.am): Likewise.
12153         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12154         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12155         * modules/mbspbrk-tests (Makefile.am): Likewise.
12156         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12157         * modules/mbsrchr-tests (Makefile.am): Likewise.
12158         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12159         * modules/mbsspn-tests (Makefile.am): Likewise.
12160         * modules/mbsstr-tests (Makefile.am): Likewise.
12161         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12162         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12163         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12164         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12165         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12166         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12167         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12168         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12169         * modules/wcrtomb-tests (Makefile.am): Likewise.
12170         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12171         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12172         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12173         assignments from TESTS_ENVIRONMENT.
12174         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12175         augmentation.
12176         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12177         * modules/atexit-tests (Makefile.am): Likewise.
12178         * modules/binary-io-tests (Makefile.am): Likewise.
12179         * modules/closein-tests (Makefile.am): Likewise.
12180         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12181         * modules/exclude-tests (Makefile.am): Likewise.
12182         * modules/fflush-tests (Makefile.am): Likewise.
12183         * modules/fpending-tests (Makefile.am): Likewise.
12184         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12185         * modules/freadahead-tests (Makefile.am): Likewise.
12186         * modules/freadptr-tests (Makefile.am): Likewise.
12187         * modules/freadseek-tests (Makefile.am): Likewise.
12188         * modules/fseek-tests (Makefile.am): Likewise.
12189         * modules/fseeko-tests (Makefile.am): Likewise.
12190         * modules/ftell-tests (Makefile.am): Likewise.
12191         * modules/ftello-tests (Makefile.am): Likewise.
12192         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12193         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12194         * modules/lseek-tests (Makefile.am): Likewise.
12195         * modules/parse-duration-tests (Makefile.am): Likewise.
12196         * modules/perror-tests (Makefile.am): Likewise.
12197         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12198         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12199         * modules/pipe-tests (Makefile.am): Likewise.
12200         * modules/pread-tests (Makefile.am): Likewise.
12201         * modules/printf-posix-tests (Makefile.am): Likewise.
12202         * modules/select-tests (Makefile.am): Likewise.
12203         * modules/sigpipe-tests (Makefile.am): Likewise.
12204         * modules/tsearch-tests (Makefile.am): Likewise.
12205         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12206         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12207         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12208         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12209         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12210         * modules/version-etc-tests (Makefile.am): Likewise.
12211         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12212         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12213         * modules/xalloc-die-tests (Makefile.am): Likewise.
12214         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12215         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12216         * modules/xstrtol-tests (Makefile.am): Likewise.
12217         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12218         * modules/yesno-tests (Makefile.am): Likewise.
12219         Suggested by Jim Meyering.
12220
12221 2010-01-24  Bruno Haible  <bruno@clisp.org>
12222
12223         More documentation.
12224         * doc/gnulib.texi (Writing modules): New chapter.
12225         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12226         the new chapter.
12227
12228 2010-01-24  Jim Meyering  <meyering@redhat.com>
12229
12230         maint.mk: do not prepend "./" after filtering
12231         * top/maint.mk (_prepend_srcdir_prefix): New variable
12232         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12233         "./" when $(srcdir) is ".".
12234
12235         define STREQ(a,b) consistently, removing useless parentheses
12236         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12237         since the only risk is that "a" or "b" contains an unparenthesized
12238         comma, but if either did that, STREQ would have 3 or more arguments.
12239         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12240         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12241         * lib/hash-triple.c (STREQ): Likewise.
12242         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12243         * lib/getugroups.c (STREQ): Likewise.
12244
12245 2010-01-23  Jim Meyering  <meyering@redhat.com>
12246
12247         maint.mk: fix syntax-check in a non-srcdir build directory
12248         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12249         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12250
12251 2010-01-22  Jim Meyering  <meyering@redhat.com>
12252
12253         userspec: add unit tests
12254         * tests/test-userspec.c: New file.
12255         * modules/userspec-tests: Likewise.
12256
12257 2010-01-21  Jim Meyering  <meyering@redhat.com>
12258
12259         maint.mk: handle source file names containing "." robustly
12260         * top/maint.mk (_dot_escaped_srcdir): Define.
12261         (VC_LIST): Use it in LHS of sed substitution.
12262
12263 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12264
12265         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12266         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12267         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12268         from a non-srcdir build.
12269
12270 2010-01-20  Eric Blake  <ebb9@byu.net>
12271
12272         warn-on-use: use instead of link-warning
12273         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12274         * modules/unistd (Depends-on, Makefile.am): Likewise.
12275         * modules/arpa_inet (Depends-on): Replace link-warning with
12276         warn-on-use.
12277         (Makefile.am): Update rules accordingly.
12278         * modules/ctype (Depends-on, Makefile.am): Likewise.
12279         * modules/dirent (Depends-on, Makefile.am): Likewise.
12280         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12281         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12282         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12283         * modules/locale (Depends-on, Makefile.am): Likewise.
12284         * modules/math (Depends-on, Makefile.am): Likewise.
12285         * modules/search (Depends-on, Makefile.am): Likewise.
12286         * modules/signal (Depends-on, Makefile.am): Likewise.
12287         * modules/spawn (Depends-on, Makefile.am): Likewise.
12288         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12289         * modules/string (Depends-on, Makefile.am): Likewise.
12290         * modules/strings (Depends-on, Makefile.am): Likewise.
12291         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12292         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12293         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12294         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12295         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12296         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12297         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12298         * modules/wchar (Depends-on, Makefile.am): Likewise.
12299         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12300         should be poisoned.
12301         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12302         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12303         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12304         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12305         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12306         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12307         * m4/math_h.m4 (gl_MATH_H): Likewise.
12308         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12309         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12310         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12311         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12312         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12313         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12314         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12315         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12316         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12318         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12320         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12321         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12322         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12323         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12324         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12325         GL_LINK_WARNING.
12326         * lib/ctype.in.h: Likewise.
12327         * lib/dirent.in.h: Likewise.
12328         * lib/fcntl.in.h: Likewise.
12329         * lib/inttypes.in.h: Likewise.
12330         * lib/langinfo.in.h: Likewise.
12331         * lib/locale.in.h: Likewise.
12332         * lib/math.in.h: Likewise.
12333         * lib/search.in.h: Likewise.
12334         * lib/signal.in.h: Likewise.
12335         * lib/spawn.in.h: Likewise.
12336         * lib/stdio.in.h: Likewise.
12337         * lib/stdlib.in.h: Likewise.
12338         * lib/string.in.h: Likewise.
12339         * lib/strings.in.h: Likewise.
12340         * lib/sys_file.in.h: Likewise.
12341         * lib/sys_ioctl.in.h: Likewise.
12342         * lib/sys_select.in.h: Likewise.
12343         * lib/sys_socket.in.h: Likewise.
12344         * lib/sys_stat.in.h: Likewise.
12345         * lib/sys_times.in.h: Likewise.
12346         * lib/sys_utsname.in.h: Likewise.
12347         * lib/unistd.in.h: Likewise.
12348         * lib/wchar.in.h: Likewise.
12349
12350 2010-01-20  Bruno Haible  <bruno@clisp.org>
12351
12352         Avoid duplicate -lm.
12353         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12354         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12355         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12356         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12357         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12358         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12359         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12360         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12361         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12362         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12363         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12364         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12365         Reported by Paolo Bonzini.
12366
12367 2010-01-19  Bruno Haible  <bruno@clisp.org>
12368
12369         langinfo, nl_langinfo: Relicense under LGPLv2+.
12370         * modules/langinfo (License): Change to LGPLv2+.
12371         * modules/nl_langinfo (License): Likewise.
12372         Patch by David Lutterkort <lutter@redhat.com>.
12373
12374 2010-01-19  Bruno Haible  <bruno@clisp.org>
12375
12376         Avoid compilation error with cc on OSF/1 5.1.
12377         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12378         statement, not before.
12379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12380
12381 2010-01-18  Bruno Haible  <bruno@clisp.org>
12382
12383         Avoid a link error due to the __printf__ symbol.
12384         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
12385         and 2.6.x.
12386         (__format__, __printf__): Remove definitions.
12387         * lib/argp-fmtstream.h: Likewise.
12388         * lib/argp.h: Likewise.
12389         * lib/error.h: Likewise.
12390         * lib/vasnprintf.h: Likewise.
12391         * lib/xprintf.h: Likewise.
12392         * lib/xvasprintf.h: Likewise.
12393         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12394
12395 2010-01-18  Bruno Haible  <bruno@clisp.org>
12396
12397         Tests for module 'tanl'.
12398         * modules/tanl-tests: New file.
12399         * tests/test-tanl.c: New file.
12400
12401         Tests for module 'sqrtl'.
12402         * modules/sqrtl-tests: New file.
12403         * tests/test-sqrtl.c: New file.
12404
12405         Tests for module 'sinl'.
12406         * modules/sinl-tests: New file.
12407         * tests/test-sinl.c: New file.
12408
12409         Tests for module 'logl'.
12410         * modules/logl-tests: New file.
12411         * tests/test-logl.c: New file.
12412
12413         Tests for module 'expl'.
12414         * modules/expl-tests: New file.
12415         * tests/test-expl.c: New file.
12416
12417         Tests for module 'cosl'.
12418         * modules/cosl-tests: New file.
12419         * tests/test-cosl.c: New file.
12420
12421         Tests for module 'atanl'.
12422         * modules/atanl-tests: New file.
12423         * tests/test-atanl.c: New file.
12424
12425         Tests for module 'asinl'.
12426         * modules/asinl-tests: New file.
12427         * tests/test-asinl.c: New file.
12428
12429         Tests for module 'acosl'.
12430         * modules/acosl-tests: New file.
12431         * tests/test-acosl.c: New file.
12432
12433         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12434         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
12435         tanl): Use the standard gnulib idiom.
12436         * lib/cosl.c: Don't include trigl.c and sincosl.c.
12437         * lib/sinl.c: Likewise.
12438         * lib/tanl.c: Don't include trigl.c.
12439         (kernel_tanl): Make static.
12440         * lib/sincosl.c: Include trigl.h first.
12441         * lib/trigl.c: Likewise.
12442         * m4/acosl.m4: New file.
12443         * m4/asinl.m4: New file.
12444         * m4/atanl.m4: New file.
12445         * m4/cosl.m4: New file.
12446         * m4/expl.m4: New file.
12447         * m4/logl.m4: New file.
12448         * m4/sinl.m4: New file.
12449         * m4/sqrtl.m4: New file.
12450         * m4/tanl.m4: New file.
12451         * m4/mathl.m4: Remove file.
12452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12453         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12454         Don't initialize GNULIB_MATHL.
12455         * modules/acosl: New file.
12456         * modules/asinl: New file.
12457         * modules/atanl: New file.
12458         * modules/cosl: New file.
12459         * modules/expl: New file.
12460         * modules/logl: New file.
12461         * modules/sinl: New file.
12462         * modules/sqrtl: New file.
12463         * modules/tanl: New file.
12464         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
12465         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
12466         substitute GNULIB_MATHL.
12467         * modules/mathl: Rewritten.
12468         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
12469         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
12470         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
12471         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
12472         * doc/posix-functions/expl.texi: Mention the 'expl' module.
12473         * doc/posix-functions/logl.texi: Mention the 'logl' module.
12474         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
12475         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
12476         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
12477
12478 2010-01-18  Bruno Haible  <bruno@clisp.org>
12479
12480         sqrt: Make gl_FUNC_SQRT requirable.
12481         * m4/sqrt.m4: New file.
12482         * modules/sqrt (Files): Add it.
12483         (configure.ac): Invoke gl_FUNC_SQRT.
12484
12485 2010-01-18  Bruno Haible  <bruno@clisp.org>
12486
12487         New modules for common <math.h> functions.
12488         * m4/mathfunc.m4: New file.
12489         * modules/acos: New file.
12490         * modules/asin: New file.
12491         * modules/atan: New file.
12492         * modules/atan2: New file.
12493         * modules/cbrt: New file.
12494         * modules/copysign: New file.
12495         * modules/cos: New file.
12496         * modules/cosh: New file.
12497         * modules/erf: New file.
12498         * modules/erfc: New file.
12499         * modules/exp: New file.
12500         * modules/fabs: New file.
12501         * modules/fmod: New file.
12502         * modules/hypot: New file.
12503         * modules/j0: New file.
12504         * modules/j1: New file.
12505         * modules/jn: New file.
12506         * modules/ldexp: New file.
12507         * modules/lgamma: New file.
12508         * modules/log: New file.
12509         * modules/log10: New file.
12510         * modules/log1p: New file.
12511         * modules/logb: New file.
12512         * modules/modf: New file.
12513         * modules/nextafter: New file.
12514         * modules/pow: New file.
12515         * modules/remainder: New file.
12516         * modules/rint: New file.
12517         * modules/sin: New file.
12518         * modules/sinh: New file.
12519         * modules/sqrt: New file.
12520         * modules/tan: New file.
12521         * modules/tanh: New file.
12522         * modules/y0: New file.
12523         * modules/y1: New file.
12524         * modules/yn: New file.
12525         * doc/posix-functions/acos.texi: Mention the 'acos' module.
12526         * doc/posix-functions/asin.texi: Mention the 'asin' module.
12527         * doc/posix-functions/atan.texi: Mention the 'atan' module.
12528         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
12529         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
12530         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
12531         * doc/posix-functions/cos.texi: Mention the 'cos' module.
12532         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
12533         * doc/posix-functions/erf.texi: Mention the 'erf' module.
12534         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
12535         * doc/posix-functions/exp.texi: Mention the 'exp' module.
12536         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
12537         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
12538         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
12539         * doc/posix-functions/j0.texi: Mention the 'j0' module.
12540         * doc/posix-functions/j1.texi: Mention the 'j1' module.
12541         * doc/posix-functions/jn.texi: Mention the 'jn' module.
12542         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
12543         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
12544         * doc/posix-functions/log.texi: Mention the 'log' module.
12545         * doc/posix-functions/log10.texi: Mention the 'log10' module.
12546         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
12547         * doc/posix-functions/logb.texi: Mention the 'logb' module.
12548         * doc/posix-functions/modf.texi: Mention the 'modf' module.
12549         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
12550         * doc/posix-functions/pow.texi: Mention the 'pow' module.
12551         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
12552         * doc/posix-functions/rint.texi: Mention the 'rint' module.
12553         * doc/posix-functions/sin.texi: Mention the 'sin' module.
12554         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
12555         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
12556         * doc/posix-functions/tan.texi: Mention the 'tan' module.
12557         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
12558         * doc/posix-functions/y0.texi: Mention the 'y0' module.
12559         * doc/posix-functions/y1.texi: Mention the 'y1' module.
12560         * doc/posix-functions/yn.texi: Mention the 'yn' module.
12561
12562 2010-01-18  Jim Meyering  <meyering@redhat.com>
12563
12564         ignore-value: relax license to LGPLv2+
12565         * modules/ignore-value (License): Relax to LGPLv2+.
12566
12567         getdate: don't leak when TZ contains two or more '"'s
12568         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
12569         double quote in TZ after the first one.
12570
12571         readtokens: do not leak internal token_lengths buffer
12572         * lib/readtokens.c (readtokens): Free the local, lengths,
12573         when the supplied "token_lengths" parameter is NULL.
12574
12575 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12576
12577         Fix a couple of missing LIBTHREAD link failures on AIX.
12578         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
12579         $(LIBTHREAD).
12580         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
12581
12582         Link test-poll against INET_PTON_LIB.
12583         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
12584         for inet_pton on Solaris 10.
12585
12586 2010-01-17  Bruno Haible  <bruno@clisp.org>
12587
12588         unistdio/*-sprintf: Fix typo in module description.
12589         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
12590         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
12591         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
12592         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
12593         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
12594         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
12595         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
12596         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12597
12598 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12599
12600         gnulib-tool: fix filelist for AIX, HP-UX ksh.
12601         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
12602         variables in shell case patterns, for AIX and HP-UX ksh.
12603
12604         Split large sed scripts, for HP-UX sed.
12605         * modules/stdio: Split sed scripts around 50 sed commands,
12606         to avoid HP-UX limit of 99 commands, in the near future.
12607         * modules/string: Likewise.
12608         * modules/unistd: Likewise.
12609
12610         gnulib-tool: avoid writing in the current directory.
12611         * gnulib-tool (func_emit_lib_Makefile_am)
12612         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
12613         not in the current directory, so concurrent gnulib-tool
12614         instances do not interfere.
12615
12616 2010-01-16  Jim Meyering  <meyering@redhat.com>
12617
12618         doc: update users.txt
12619         * users.txt: Add grep.
12620         (diffutils, gzip): Update URLs.
12621
12622 2010-01-12  Bruno Haible  <bruno@clisp.org>
12623
12624         posix_spawn: Avoid test failure on Cygwin.
12625         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
12626         characters.
12627         Reported by Simon Josefsson.
12628
12629 2010-01-12  Bruno Haible  <bruno@clisp.org>
12630
12631         * tests/test-cond.c (main): When skipping the test, show the reason.
12632
12633 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12634
12635         * lib/striconv.c (str_cd_iconv): Avoid if before free.
12636
12637 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12638
12639         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
12640         VC_LIST_ALWAYS_EXCLUDE_REGEX.
12641
12642 2010-01-12  Eric Blake  <ebb9@byu.net>
12643
12644         build: guarantee AS_VAR_IF
12645         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
12646         (gl_AS_VAR_IF): Move...
12647         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
12648         Reported by Simon Josefsson.
12649
12650 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12651
12652         * lib/stdio.in.h: Fix typo.
12653
12654 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12655
12656         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
12657         libgpg-error.
12658
12659 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12660
12661         * tests/test-xalloc-die.sh: Use $EXEEXT.
12662
12663 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12664             Bruno Haible  <bruno@clisp.org>
12665
12666         getlogin, getlogin_r: Avoid test failure.
12667         * tests/test-getlogin.c: Include <stdio.h>.
12668         (main): Skip the test when the function fails because stdin is not a
12669         tty.
12670         * tests/test-getlogin_r.c: Include <stdio.h>.
12671         (main): Skip the test when the function fails because stdin is not a
12672         tty.
12673
12674 2010-01-11  Eric Blake  <ebb9@byu.net>
12675
12676         tests: avoid more large file warnings
12677         * tests/test-fflush.c: Avoid warning about ftell use.
12678         * tests/test-fseek.c: Avoid warning about fseek use.
12679
12680 2010-01-10  Bruno Haible  <bruno@clisp.org>
12681
12682         nproc: Work better on Linux when /proc and /sys are not mounted.
12683         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
12684         as lower bound when, on glibc/Linux systems,
12685         sysconf (_SC_NPROCESSORS_CONF) returns 1.
12686         Suggested by Pádraig Brady <P@draigbrady.com>.
12687         Reported by Dmitry V. Levin <ldv@altlinux.org>.
12688
12689         nproc: Refactor.
12690         * lib/nproc.c (num_processors_via_affinity_mask): New function,
12691         extracted from num_processors.
12692         (num_processors): Call it.
12693
12694 2010-01-11  Jim Meyering  <meyering@redhat.com>
12695
12696         utimecmp: avoid new warning from upcoming gcc-4.5.0
12697         * lib/utimecmp.c (BILLION): Define using #define rather than an
12698         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
12699
12700 2010-01-11  Eric Blake  <ebb9@byu.net>
12701
12702         math: add portability warnings for classification macros
12703         * modules/math (Depends-on): Add warn-on-use.
12704         (Makefile.am): Provide new substitutions.
12705         * m4/math_h.m4 (gl_MATH_H): Require inline.
12706         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
12707         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
12708         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
12709         implement warnings.
12710
12711         unistd: warn on use of environ without module
12712         * modules/unistd (Depends-on): Add warn-on-use.
12713         (Makefile.am): Provide new substitutions.
12714         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
12715         * lib/unistd.in.h (environ): Wrap with a warning helper function.
12716
12717         stdio: warn on suspicious uses
12718         * modules/stdio (Depends-on): Add warn-on-use.
12719         (Makefile.am): Provide new substitutions.
12720         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
12721         fseeko.
12722         * lib/stdio.in.h (gets): Always warn on use.
12723         (fseek, ftell): Adjust when warnings are issued, and honor
12724         _GL_NO_LARGE_FILES as a way to silence the warning.
12725         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
12726         any warning about large file offsets.
12727         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
12728         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
12729         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
12730         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
12731         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
12732         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
12733         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
12734         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
12735
12736         warn-on-use: new module
12737         * modules/warn-on-use: New file.
12738         * build-aux/warn-on-use.h: Likewise.
12739         * m4/warn-on-use.m4: Likewise.
12740         * MODULES.html.sh (Support for building): Mention it.
12741
12742 2010-01-10  Bruno Haible  <bruno@clisp.org>
12743
12744         Tests for module 'unistr/u32-strdup'.
12745         * modules/unistr/u32-strdup-tests: New file.
12746         * tests/unistr/test-u32-strdup.c: New file.
12747
12748         Tests for module 'unistr/u16-strdup'.
12749         * modules/unistr/u16-strdup-tests: New file.
12750         * tests/unistr/test-u16-strdup.c: New file.
12751
12752         Tests for module 'unistr/u8-strdup'.
12753         * modules/unistr/u8-strdup-tests: New file.
12754         * tests/unistr/test-u8-strdup.c: New file.
12755         * tests/unistr/test-strdup.h: New file.
12756
12757         Tests for module 'unistr/u32-strncmp'.
12758         * modules/unistr/u32-strncmp-tests: New file.
12759         * tests/unistr/test-u32-strncmp.c: New file.
12760
12761         Tests for module 'unistr/u16-strncmp'.
12762         * modules/unistr/u16-strncmp-tests: New file.
12763         * tests/unistr/test-u16-strncmp.c: New file.
12764
12765         Tests for module 'unistr/u8-strncmp'.
12766         * modules/unistr/u8-strncmp-tests: New file.
12767         * tests/unistr/test-u8-strncmp.c: New file.
12768         * tests/unistr/test-strncmp.h: New file.
12769
12770         Tests for module 'unistr/u32-strcoll'.
12771         * modules/unistr/u32-strcoll-tests: New file.
12772         * tests/unistr/test-u32-strcoll.c: New file.
12773
12774         Tests for module 'unistr/u16-strcoll'.
12775         * modules/unistr/u16-strcoll-tests: New file.
12776         * tests/unistr/test-u16-strcoll.c: New file.
12777
12778         Tests for module 'unistr/u8-strcoll'.
12779         * modules/unistr/u8-strcoll-tests: New file.
12780         * tests/unistr/test-u8-strcoll.c: New file.
12781
12782         Tests for module 'unistr/u32-strcmp'.
12783         * modules/unistr/u32-strcmp-tests: New file.
12784         * tests/unistr/test-u32-strcmp.c: New file.
12785         * tests/unistr/test-u32-strcmp.h: New file.
12786
12787         Tests for module 'unistr/u16-strcmp'.
12788         * modules/unistr/u16-strcmp-tests: New file.
12789         * tests/unistr/test-u16-strcmp.c: New file.
12790         * tests/unistr/test-u16-strcmp.h: New file.
12791
12792         Tests for module 'unistr/u8-strcmp'.
12793         * modules/unistr/u8-strcmp-tests: New file.
12794         * tests/unistr/test-u8-strcmp.c: New file.
12795         * tests/unistr/test-u8-strcmp.h: New file.
12796         * tests/unistr/test-strcmp.h: New file.
12797
12798         Tests for module 'unistr/u32-strncat'.
12799         * modules/unistr/u32-strncat-tests: New file.
12800         * tests/unistr/test-u32-strncat.c: New file.
12801
12802         Tests for module 'unistr/u16-strncat'.
12803         * modules/unistr/u16-strncat-tests: New file.
12804         * tests/unistr/test-u16-strncat.c: New file.
12805
12806         Tests for module 'unistr/u8-strncat'.
12807         * modules/unistr/u8-strncat-tests: New file.
12808         * tests/unistr/test-u8-strncat.c: New file.
12809         * tests/unistr/test-strncat.h: New file.
12810
12811         Tests for module 'unistr/u32-strcat'.
12812         * modules/unistr/u32-strcat-tests: New file.
12813         * tests/unistr/test-u32-strcat.c: New file.
12814
12815         Tests for module 'unistr/u16-strcat'.
12816         * modules/unistr/u16-strcat-tests: New file.
12817         * tests/unistr/test-u16-strcat.c: New file.
12818
12819         Tests for module 'unistr/u8-strcat'.
12820         * modules/unistr/u8-strcat-tests: New file.
12821         * tests/unistr/test-u8-strcat.c: New file.
12822         * tests/unistr/test-strcat.h: New file.
12823
12824         Tests for module 'unistr/u32-stpncpy'.
12825         * modules/unistr/u32-stpncpy-tests: New file.
12826         * tests/unistr/test-u32-stpncpy.c: New file.
12827
12828         Tests for module 'unistr/u16-stpncpy'.
12829         * modules/unistr/u16-stpncpy-tests: New file.
12830         * tests/unistr/test-u16-stpncpy.c: New file.
12831
12832         Tests for module 'unistr/u8-stpncpy'.
12833         * modules/unistr/u8-stpncpy-tests: New file.
12834         * tests/unistr/test-u8-stpncpy.c: New file.
12835         * tests/unistr/test-stpncpy.h: New file.
12836
12837         Tests for module 'unistr/u32-strncpy'.
12838         * modules/unistr/u32-strncpy-tests: New file.
12839         * tests/unistr/test-u32-strncpy.c: New file.
12840
12841         Tests for module 'unistr/u16-strncpy'.
12842         * modules/unistr/u16-strncpy-tests: New file.
12843         * tests/unistr/test-u16-strncpy.c: New file.
12844
12845         Tests for module 'unistr/u8-strncpy'.
12846         * modules/unistr/u8-strncpy-tests: New file.
12847         * tests/unistr/test-u8-strncpy.c: New file.
12848         * tests/unistr/test-strncpy.h: New file.
12849
12850         Tests for module 'unistr/u32-stpcpy'.
12851         * modules/unistr/u32-stpcpy-tests: New file.
12852         * tests/unistr/test-u32-stpcpy.c: New file.
12853
12854         Tests for module 'unistr/u16-stpcpy'.
12855         * modules/unistr/u16-stpcpy-tests: New file.
12856         * tests/unistr/test-u16-stpcpy.c: New file.
12857
12858         Tests for module 'unistr/u8-stpcpy'.
12859         * modules/unistr/u8-stpcpy-tests: New file.
12860         * tests/unistr/test-u8-stpcpy.c: New file.
12861         * tests/unistr/test-stpcpy.h: New file.
12862
12863         Tests for module 'unistr/u32-strcpy'.
12864         * modules/unistr/u32-strcpy-tests: New file.
12865         * tests/unistr/test-u32-strcpy.c: New file.
12866
12867         Tests for module 'unistr/u16-strcpy'.
12868         * modules/unistr/u16-strcpy-tests: New file.
12869         * tests/unistr/test-u16-strcpy.c: New file.
12870
12871         Tests for module 'unistr/u8-strcpy'.
12872         * modules/unistr/u8-strcpy-tests: New file.
12873         * tests/unistr/test-u8-strcpy.c: New file.
12874         * tests/unistr/test-strcpy.h: New file.
12875
12876         Tests for module 'unistr/u32-strnlen'.
12877         * modules/unistr/u32-strnlen-tests: New file.
12878         * tests/unistr/test-u32-strnlen.c: New file.
12879
12880         Tests for module 'unistr/u16-strnlen'.
12881         * modules/unistr/u16-strnlen-tests: New file.
12882         * tests/unistr/test-u16-strnlen.c: New file.
12883
12884         Tests for module 'unistr/u8-strnlen'.
12885         * modules/unistr/u8-strnlen-tests: New file.
12886         * tests/unistr/test-u8-strnlen.c: New file.
12887         * tests/unistr/test-strnlen.h: New file.
12888
12889         Tests for module 'unistr/u32-strlen'.
12890         * modules/unistr/u32-strlen-tests: New file.
12891         * tests/unistr/test-u32-strlen.c: New file.
12892
12893         Tests for module 'unistr/u16-strlen'.
12894         * modules/unistr/u16-strlen-tests: New file.
12895         * tests/unistr/test-u16-strlen.c: New file.
12896
12897         Tests for module 'unistr/u8-strlen'.
12898         * modules/unistr/u8-strlen-tests: New file.
12899         * tests/unistr/test-u8-strlen.c: New file.
12900
12901         Tests for module 'unistr/u32-prev'.
12902         * modules/unistr/u32-prev-tests: New file.
12903         * tests/unistr/test-u32-prev.c: New file.
12904
12905         Tests for module 'unistr/u16-prev'.
12906         * modules/unistr/u16-prev-tests: New file.
12907         * tests/unistr/test-u16-prev.c: New file.
12908
12909         Tests for module 'unistr/u8-prev'.
12910         * modules/unistr/u8-prev-tests: New file.
12911         * tests/unistr/test-u8-prev.c: New file.
12912
12913         Tests for module 'unistr/u32-next'.
12914         * modules/unistr/u32-next-tests: New file.
12915         * tests/unistr/test-u32-next.c: New file.
12916
12917         Tests for module 'unistr/u16-next'.
12918         * modules/unistr/u16-next-tests: New file.
12919         * tests/unistr/test-u16-next.c: New file.
12920
12921         Tests for module 'unistr/u8-next'.
12922         * modules/unistr/u8-next-tests: New file.
12923         * tests/unistr/test-u8-next.c: New file.
12924
12925         Tests for module 'unistr/u32-strmbtouc'.
12926         * modules/unistr/u32-strmbtouc-tests: New file.
12927         * tests/unistr/test-u32-strmbtouc.c: New file.
12928
12929         Tests for module 'unistr/u16-strmbtouc'.
12930         * modules/unistr/u16-strmbtouc-tests: New file.
12931         * tests/unistr/test-u16-strmbtouc.c: New file.
12932
12933         Tests for module 'unistr/u8-strmbtouc'.
12934         * modules/unistr/u8-strmbtouc-tests: New file.
12935         * tests/unistr/test-u8-strmbtouc.c: New file.
12936
12937         Tests for module 'unistr/u32-strmblen'.
12938         * modules/unistr/u32-strmblen-tests: New file.
12939         * tests/unistr/test-u32-strmblen.c: New file.
12940
12941         Tests for module 'unistr/u16-strmblen'.
12942         * modules/unistr/u16-strmblen-tests: New file.
12943         * tests/unistr/test-u16-strmblen.c: New file.
12944
12945         Tests for module 'unistr/u8-strmblen'.
12946         * modules/unistr/u8-strmblen-tests: New file.
12947         * tests/unistr/test-u8-strmblen.c: New file.
12948
12949         Tests for module 'unistr/u32-cpy-alloc'.
12950         * modules/unistr/u32-cpy-alloc-tests: New file.
12951         * tests/unistr/test-u32-cpy-alloc.c: New file.
12952
12953         Tests for module 'unistr/u16-cpy-alloc'.
12954         * modules/unistr/u16-cpy-alloc-tests: New file.
12955         * tests/unistr/test-u16-cpy-alloc.c: New file.
12956
12957         Tests for module 'unistr/u8-cpy-alloc'.
12958         * modules/unistr/u8-cpy-alloc-tests: New file.
12959         * tests/unistr/test-u8-cpy-alloc.c: New file.
12960         * tests/unistr/test-cpy-alloc.h: New file.
12961
12962         Tests for module 'unistr/u32-mbsnlen'.
12963         * modules/unistr/u32-mbsnlen-tests: New file.
12964         * tests/unistr/test-u32-mbsnlen.c: New file.
12965
12966         Tests for module 'unistr/u16-mbsnlen'.
12967         * modules/unistr/u16-mbsnlen-tests: New file.
12968         * tests/unistr/test-u16-mbsnlen.c: New file.
12969
12970         Tests for module 'unistr/u8-mbsnlen'.
12971         * modules/unistr/u8-mbsnlen-tests: New file.
12972         * tests/unistr/test-u8-mbsnlen.c: New file.
12973
12974         Tests for module 'unistr/u32-chr'.
12975         * modules/unistr/u32-chr-tests: New file.
12976         * tests/unistr/test-u32-chr.c: New file.
12977
12978         Tests for module 'unistr/u16-chr'.
12979         * modules/unistr/u16-chr-tests: New file.
12980         * tests/unistr/test-u16-chr.c: New file.
12981
12982         Tests for module 'unistr/u8-chr'.
12983         * modules/unistr/u8-chr-tests: New file.
12984         * tests/unistr/test-u8-chr.c: New file.
12985         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
12986
12987         Tests for module 'unistr/u32-cmp2'.
12988         * modules/unistr/u32-cmp2-tests: New file.
12989         * tests/unistr/test-u32-cmp2.c: New file.
12990
12991         Tests for module 'unistr/u16-cmp2'.
12992         * modules/unistr/u16-cmp2-tests: New file.
12993         * tests/unistr/test-u16-cmp2.c: New file.
12994
12995         Tests for module 'unistr/u8-cmp2'.
12996         * modules/unistr/u8-cmp2-tests: New file.
12997         * tests/unistr/test-u8-cmp2.c: New file.
12998         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
12999
13000         Tests for module 'unistr/u32-cmp'.
13001         * modules/unistr/u32-cmp-tests: New file.
13002         * tests/unistr/test-u32-cmp.c: New file.
13003
13004         Tests for module 'unistr/u16-cmp'.
13005         * modules/unistr/u16-cmp-tests: New file.
13006         * tests/unistr/test-u16-cmp.c: New file.
13007
13008         Tests for module 'unistr/u8-cmp'.
13009         * modules/unistr/u8-cmp-tests: New file.
13010         * tests/unistr/test-u8-cmp.c: New file.
13011         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13012
13013         Tests for module 'unistr/u32-set'.
13014         * modules/unistr/u32-set-tests: New file.
13015         * tests/unistr/test-u32-set.c: New file.
13016
13017         Tests for module 'unistr/u16-set'.
13018         * modules/unistr/u16-set-tests: New file.
13019         * tests/unistr/test-u16-set.c: New file.
13020
13021         Tests for module 'unistr/u8-set'.
13022         * modules/unistr/u8-set-tests: New file.
13023         * tests/unistr/test-u8-set.c: New file.
13024         * tests/unistr/test-set.h: New file.
13025
13026         Tests for module 'unistr/u32-move'.
13027         * modules/unistr/u32-move-tests: New file.
13028         * tests/unistr/test-u32-move.c: New file.
13029
13030         Tests for module 'unistr/u16-move'.
13031         * modules/unistr/u16-move-tests: New file.
13032         * tests/unistr/test-u16-move.c: New file.
13033
13034         Tests for module 'unistr/u8-move'.
13035         * modules/unistr/u8-move-tests: New file.
13036         * tests/unistr/test-u8-move.c: New file.
13037         * tests/unistr/test-move.h: New file.
13038
13039         Tests for module 'unistr/u32-cpy'.
13040         * modules/unistr/u32-cpy-tests: New file.
13041         * tests/unistr/test-u32-cpy.c: New file.
13042
13043         Tests for module 'unistr/u16-cpy'.
13044         * modules/unistr/u16-cpy-tests: New file.
13045         * tests/unistr/test-u16-cpy.c: New file.
13046
13047         Tests for module 'unistr/u8-cpy'.
13048         * modules/unistr/u8-cpy-tests: New file.
13049         * tests/unistr/test-u8-cpy.c: New file.
13050         * tests/unistr/test-cpy.h: New file.
13051
13052 2010-01-09  Bruno Haible  <bruno@clisp.org>
13053
13054         Tests for module 'unistr/u32-uctomb'.
13055         * modules/unistr/u32-uctomb-tests: New file.
13056         * tests/unistr/test-u32-uctomb.c: New file.
13057
13058         Tests for module 'unistr/u16-uctomb'.
13059         * modules/unistr/u16-uctomb-tests: New file.
13060         * tests/unistr/test-u16-uctomb.c: New file.
13061
13062         Tests for module 'unistr/u8-uctomb'.
13063         * modules/unistr/u8-uctomb-tests: New file.
13064         * tests/unistr/test-u8-uctomb.c: New file.
13065
13066         Tests for module 'unistr/u32-mbtoucr'.
13067         * modules/unistr/u32-mbtoucr-tests: New file.
13068         * tests/unistr/test-u32-mbtoucr.c: New file.
13069
13070         Tests for module 'unistr/u16-mbtoucr'.
13071         * modules/unistr/u16-mbtoucr-tests: New file.
13072         * tests/unistr/test-u16-mbtoucr.c: New file.
13073
13074         Tests for module 'unistr/u8-mbtoucr'.
13075         * modules/unistr/u8-mbtoucr-tests: New file.
13076         * tests/unistr/test-u8-mbtoucr.c: New file.
13077
13078         Tests for module 'unistr/u32-mbtouc'.
13079         * modules/unistr/u32-mbtouc-tests: New file.
13080         * tests/unistr/test-u32-mbtouc.c: New file.
13081
13082         Tests for module 'unistr/u16-mbtouc'.
13083         * modules/unistr/u16-mbtouc-tests: New file.
13084         * tests/unistr/test-u16-mbtouc.c: New file.
13085
13086         Tests for module 'unistr/u8-mbtouc'.
13087         * modules/unistr/u8-mbtouc-tests: New file.
13088         * tests/unistr/test-u8-mbtouc.c: New file.
13089
13090         Tests for module 'unistr/u32-mbtouc-unsafe'.
13091         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13092         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13093         * tests/unistr/test-u32-mbtouc.h: New file.
13094
13095         Tests for module 'unistr/u16-mbtouc-unsafe'.
13096         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13097         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13098         * tests/unistr/test-u16-mbtouc.h: New file.
13099
13100         Tests for module 'unistr/u8-mbtouc-unsafe'.
13101         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13102         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13103         * tests/unistr/test-u8-mbtouc.h: New file.
13104
13105         Tests for module 'unistr/u32-mblen'.
13106         * modules/unistr/u32-mblen-tests: New file.
13107         * tests/unistr/test-u32-mblen.c: New file.
13108
13109         Tests for module 'unistr/u16-mblen'.
13110         * modules/unistr/u16-mblen-tests: New file.
13111         * tests/unistr/test-u16-mblen.c: New file.
13112
13113         Tests for module 'unistr/u8-mblen'.
13114         * modules/unistr/u8-mblen-tests: New file.
13115         * tests/unistr/test-u8-mblen.c: New file.
13116
13117         Tests for module 'unistr/u32-to-u16'.
13118         * modules/unistr/u32-to-u16-tests: New file.
13119         * tests/unistr/test-u32-to-u16.c: New file.
13120
13121         Tests for module 'unistr/u32-to-u8'.
13122         * modules/unistr/u32-to-u8-tests: New file.
13123         * tests/unistr/test-u32-to-u8.c: New file.
13124
13125         Tests for module 'unistr/u16-to-u32'.
13126         * modules/unistr/u16-to-u32-tests: New file.
13127         * tests/unistr/test-u16-to-u32.c: New file.
13128
13129         Tests for module 'unistr/u16-to-u8'.
13130         * modules/unistr/u16-to-u8-tests: New file.
13131         * tests/unistr/test-u16-to-u8.c: New file.
13132
13133         Tests for module 'unistr/u8-to-u32'.
13134         * modules/unistr/u8-to-u32-tests: New file.
13135         * tests/unistr/test-u8-to-u32.c: New file.
13136
13137         Tests for module 'unistr/u8-to-u16'.
13138         * modules/unistr/u8-to-u16-tests: New file.
13139         * tests/unistr/test-u8-to-u16.c: New file.
13140
13141         Tests for module 'unistr/u32-check'.
13142         * modules/unistr/u32-check-tests: New file.
13143         * tests/unistr/test-u32-check.c: New file.
13144
13145         Tests for module 'unistr/u16-check'.
13146         * modules/unistr/u16-check-tests: New file.
13147         * tests/unistr/test-u16-check.c: New file.
13148
13149         Tests for module 'unistr/u8-check'.
13150         * modules/unistr/u8-check-tests: New file.
13151         * tests/unistr/test-u8-check.c: New file.
13152
13153         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13154         (category_equals): New function.
13155         (main): Add more tests.
13156         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13157
13158         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13159
13160 2010-01-10  Bruno Haible  <bruno@clisp.org>
13161
13162         unistr/u*-strcoll: Try harder to distinguish different strings.
13163         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13164         compare s1 and s2 to see if they are different.
13165
13166 2010-01-10  Bruno Haible  <bruno@clisp.org>
13167
13168         unistr/u*-stpncpy: Fix the return value.
13169         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13170         description of the return value consistent with stpncpy in glibc.
13171         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13172         written non-NUL unit.
13173
13174 2010-01-10  Bruno Haible  <bruno@clisp.org>
13175
13176         unistr/u*-next: Add missing dependencies.
13177         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13178         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13179         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13180
13181 2010-01-10  Bruno Haible  <bruno@clisp.org>
13182
13183         unistr/u8-mbsnlen: Fix return value for incomplete character.
13184         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13185         u8_mblen.
13186         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13187         Remove unistr/u8-mblen.
13188         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13189         u16_mblen.
13190         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13191         Remove unistr/u16-mblen.
13192
13193 2010-01-10  Bruno Haible  <bruno@clisp.org>
13194
13195         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13196         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13197         Reported by Brian Gough <bjg@gnu.org> and
13198         Chris Clayton <chris2553@googlemail.com> via
13199         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13200
13201 2010-01-09  Bruno Haible  <bruno@clisp.org>
13202
13203         unistr/u16-to-u32: Reject invalid input.
13204         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13205         u16_mbtouc.
13206         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13207         Remove unistr/u16-mbtouc.
13208
13209         unistr/u16-to-u8: Reject invalid input.
13210         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13211         u16_mbtouc.
13212         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13213         Remove unistr/u16-mbtouc.
13214
13215         unistr/u8-to-u32: Reject invalid input.
13216         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13217         u8_mbtouc.
13218         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13219         Remove unistr/u8-mbtouc.
13220
13221         unistr/u8-to-u16: Reject invalid input.
13222         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13223         u8_mbtouc.
13224         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13225         Remove unistr/u8-mbtouc.
13226
13227 2010-01-09  Bruno Haible  <bruno@clisp.org>
13228
13229         Tests for module 'getlogin'.
13230         * modules/getlogin-tests: New file.
13231         * tests/test-getlogin.c: New file.
13232
13233         New module 'getlogin'.
13234         * lib/unistd.in.h (getlogin): New declaration.
13235         * lib/getlogin.c: New file.
13236         * m4/getlogin.m4: New file.
13237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13238         HAVE_GETLOGIN.
13239         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13240         HAVE_GETLOGIN.
13241         * modules/getlogin: New file.
13242         * doc/posix-functions/getlogin.texi: Mention the new module.
13243         Reported by John W. Eaton <jwe@gnu.org>.
13244
13245 2010-01-09  Bruno Haible  <bruno@clisp.org>
13246
13247         getlogin_r: Support for native Windows.
13248         * lib/getlogin_r.c: Include <windows.h>
13249         (getlogin_r): Implement for native Windows.
13250         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13251         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13252         via John W. Eaton <jwe@gnu.org>.
13253
13254 2010-01-09  Bruno Haible  <bruno@clisp.org>
13255
13256         getlogin_r: Small fixes.
13257         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13258         succeeds.
13259         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13260         before testing whether getlogin_r is declared. No need to set
13261         HAVE_DECL_GETLOGIN_R to 1.
13262         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13263
13264 2010-01-09  Bruno Haible  <bruno@clisp.org>
13265
13266         * lib/unistd.in.h (getlogin_r): Add comment.
13267
13268 2010-01-09  Bruno Haible  <bruno@clisp.org>
13269
13270         Tests for module 'getlogin_r'.
13271         * modules/getlogin_r-tests: New file.
13272         * tests/test-getlogin_r.c: New file.
13273
13274 2010-01-09  Jim Meyering  <meyering@redhat.com>
13275
13276         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13277         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13278         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13279
13280 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13281
13282         * lib/dup2.c (rpl_dup2): Improve comment.
13283
13284 2010-01-08  Eric Blake  <ebb9@byu.net>
13285
13286         maint.mk: allow packages to add makefile @@ exceptions
13287         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13288         (sc_makefile_check): Rename...
13289         (sc_makefile_at_at_check): ...to this, and use hook.
13290
13291         dup2: work around mingw bug
13292         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13293         Reported by Simon Josefsson.
13294
13295 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13296
13297         glob: Fix C++ compilation.
13298         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13299         C++.
13300
13301 2010-01-07  Bruno Haible  <bruno@clisp.org>
13302
13303         Fix indentation of wctype.in.h, broken since 2007-01-06.
13304         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13305
13306 2010-01-07  Bruno Haible  <bruno@clisp.org>
13307
13308         mbslen: Avoid collision with system function.
13309         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13310         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13311         * m4/mbslen.m4: New file.
13312         * modules/mbslen (Files): Add it.
13313         (configure.ac): Invoke gl_MBSLEN.
13314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13315         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13316         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13317         via Ian Beckwith <ianb@erislabs.net>.
13318
13319 2010-01-07  Bruno Haible  <bruno@clisp.org>
13320
13321         dirent: Document the last fix.
13322         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13323
13324 2010-01-07  Bruno Haible  <bruno@clisp.org>
13325
13326         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13327         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13328         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13329         va_list are defined.
13330         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13331         Reported by Eric Blake.
13332
13333 2010-01-07  Bruno Haible  <bruno@clisp.org>
13334
13335         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13336         * modules/xlist (Depends-on): Add 'list',
13337         * modules/xoset (Depends-on): Add 'oset'.
13338         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13339
13340 2010-01-07  Bruno Haible  <bruno@clisp.org>
13341
13342         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13343         * doc/posix-functions/strncasecmp.texi: Likewise.
13344
13345 2010-01-07  Bruno Haible  <bruno@clisp.org>
13346
13347         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13348
13349 2010-01-07  John W. Eaton  <jwe@octave.org>
13350
13351         wctype: allow C++ use
13352         * lib/wctype.in.h: Add extern "C" block for C++.
13353
13354 2010-01-06  Eric Blake  <ebb9@byu.net>
13355
13356         maint.mk: detect incorrect GFDL usage
13357         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13358
13359 2010-01-06  Jim Meyering  <meyering@redhat.com>
13360         and Eric Blake  <ebb9@byu.net>
13361
13362         maint.mk: ignore multi-line copyright in NEWS
13363         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13364
13365 2010-01-06  Eric Blake  <ebb9@byu.net>
13366
13367         select: add missing dependency
13368         * modules/select-tests (Depends-on): Move sockets dependency...
13369         * modules/select (Depends-on): ...here.
13370         Reported by Ian Beckwith.
13371
13372         doc: regenerate INSTALL
13373         * doc/INSTALL: Reflect recent autoconf update.
13374         * doc/INSTALL.ISO: Likewise.
13375         * doc/INSTALL.UTF-8: Likewise.
13376
13377         pread: fix compilation on glibc
13378         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13379         Reported by Ralf Wildenhues.
13380
13381         dirent: fix test failure
13382         * lib/dirent.in.h (includes): Guarantee ino_t.
13383         Reported by Ralf Wildenhues.
13384
13385 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
13386
13387         linkat, renameat: avoid bad free
13388         * lib/at-func2.c (at_func2): Fix typo.
13389         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
13390
13391 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13392
13393         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
13394         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
13395         to avoid failure of symlink test later.
13396
13397 2010-01-06  Eric Blake  <ebb9@byu.net>
13398
13399         stdio, unistd: guarantee ssize_t
13400         * lib/unistd.in.h (includes): Ensure that types required by POSIX
13401         2008 are exposed when needed.
13402         * lib/stdio.in.h (includes): Likewise.
13403         Reported by Ralf Wildenhues.
13404
13405 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
13406
13407         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
13408         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
13409         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
13410
13411 2010-01-06  Jim Meyering  <meyering@redhat.com>
13412
13413         readtokens: this module *does* require xalloc.h
13414         It uses only functions that were omitted by the old syntax-check rule.
13415         * lib/readtokens.c: Include "xalloc.h" once again.
13416         * modules/readtokens (Depends-on): Add xalloc.
13417         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
13418
13419 2010-01-05  Eric Blake  <ebb9@byu.net>
13420
13421         maint: support 'make announcement' from a VPATH build
13422         * top/maint.mk (announcement): Look for correct NEWS file.
13423
13424 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
13425
13426         utimens (fdutimens): ignore a negative FD, per contract
13427         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
13428         when we have a valid file descriptor.  Otherwise, using a brand
13429         new glibc (with just-patched futimens that now fails with EBADF)
13430         would cause this function to fail with ENOSYS.
13431         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
13432         See also http://bugzilla.redhat.com/552320.
13433
13434 2010-01-05  Eric Blake  <ebb9@byu.net>
13435
13436         strcase: document what it provides
13437         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
13438         gnulib module.
13439         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
13440         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
13441
13442 2010-01-05  Jim Meyering  <meyering@redhat.com>
13443
13444         maint: remove useless inclusions of "xalloc.h"
13445         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
13446         * lib/readtokens.c: Likewise.
13447         * lib/same.c: Likewise.
13448         * modules/getloadavg (Depends-on): Remove xalloc.
13449         * modules/readtokens: Likewise.
13450         * modules/same: Likewise.
13451
13452         maint.mk: include 4 more function names in alloca.h-checking regexp
13453         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13454         regexp.  Before, we would give a false-positive (saying alloca.h
13455         is included unnecessarily) when the only uses involved omitted symbols.
13456
13457         xalloc.h: use consistent formatting
13458         * lib/xalloc.h: Move declarations to start in the first column.
13459
13460 2010-01-05  Eric Blake  <ebb9@byu.net>
13461
13462         mkdir: avoid xalloc
13463         * lib/mkdir.c (includes): Drop unused header.
13464         Reported by John W. Eaton.
13465
13466 2010-01-04  Jim Meyering  <meyering@redhat.com>
13467
13468         nl_langinfo: avoid configure-time syntax error
13469         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
13470         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
13471         the empty string.  Don't let that provoke a shell syntax error.
13472
13473         regcomp, regexec, fnmatch: avoid array bounds read error
13474         * lib/regcomp.c (build_equiv_class): From glibc:
13475         Use only the low 24 bits of a findidx return value as an index
13476         into the weights array.  Patch by Ulrich Drepper:
13477         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
13478         * lib/regexec.c (check_node_accept_bytes): Likewise.
13479         * lib/fnmatch_loop.c (FCT): Likewise.
13480
13481         regcomp: skip collseq lookup when there are no rules
13482         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
13483         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
13484
13485         regcomp: recognize ill-formed { } expressions
13486         * lib/regcomp.c (parse_dup_op): From glibc:
13487         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
13488
13489         regcomp: fix typo in comment
13490         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
13491         s/satisfy/satisfies/.
13492
13493         regcomp: sync from glibc: remove dead store
13494         * lib/regcomp.c (duplicate_node_closure): Remove useless
13495         search_duplicated_node call and dead store.
13496
13497         regcomp: sync from glibc; always use nl_langinfo
13498         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
13499         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
13500         * modules/regex (Depends-on): Add nl_langinfo.
13501
13502 2010-01-04  Eric Blake  <ebb9@byu.net>
13503
13504         fdopendir: fix configure test
13505         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
13506
13507 2010-01-01  Bruno Haible  <bruno@clisp.org>
13508
13509         wchar: Remove unused configure check.
13510         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
13511
13512 2010-01-01  Eric Blake  <ebb9@byu.net>
13513
13514         headers: make check of system header explicit
13515         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
13516         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
13517         ourselves.
13518         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13519         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13520         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13521         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
13522         internals.
13523         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
13524         missing.
13525         Suggested by Bruno Haible.
13526
13527 2010-01-01  Jim Meyering  <meyering@redhat.com>
13528
13529         ChangeLog: tweak to eliminate unnecessary copyright line
13530         * ChangeLog: Remove a copyright line that was mistakenly updated
13531         by today's update-copyright run.  Reported by Eric Blake.
13532
13533         test-update-copyright: don't let envvar setting cause test failure
13534         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13535
13536 2010-01-01  Bruno Haible  <bruno@clisp.org>
13537
13538         localename: Avoid gcc warning.
13539         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
13540         function if it is not used.
13541
13542 2010-01-01  Jim Meyering  <meyering@redhat.com>
13543
13544         update nearly all FSF copyright year lists to include 2010
13545         Use the same procedure as for 2009, outlined in
13546         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
13547
13548         version-etc: set COPYRIGHT_YEAR to 2010
13549         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
13550
13551 2009-12-31  Eric Blake  <ebb9@byu.net>
13552
13553         doc: correct availability of cygwin 1.5.x getopt
13554         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
13555         variables.
13556         * doc/posix-functions/opterr.texi (opterr): Likewise.
13557         * doc/posix-functions/optind.texi (optind): Likewise.
13558         * doc/posix-functions/optopt.texi (optopt): Likewise.
13559         * doc/posix-functions/tzname.texi (tzname): Likewise.
13560
13561         openat: update maintainer
13562         * modules/openat (Maintainer): Add myself.
13563
13564         utimens: avoid shadowing warning
13565         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
13566         buffers into one, to avoid shadowing, as well as avoiding a
13567         redundant stat.
13568         Reported by Jim Meyering.
13569
13570         test-dup2: avoid compiler warning
13571         * tests/test-dup2.c (is_inheritable): Only define if used.
13572
13573 2010-01-01  Bruno Haible  <bruno@clisp.org>
13574
13575         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
13576         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
13577         defined, use wctomb instead of wcrtomb.
13578
13579 2010-01-01  Bruno Haible  <bruno@clisp.org>
13580
13581         iconv: Reject native Solaris iconv.
13582         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
13583         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
13584
13585 2009-12-31  Bruno Haible  <bruno@clisp.org>
13586
13587         * tests/test-signal.c (main): Remove test of 'SIG'.
13588
13589 2009-12-31  Bruno Haible  <bruno@clisp.org>
13590
13591         spawn: Fix incomplete fix.
13592         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13593         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13594         warnings for GNULIB_POSIXCHECK again.
13595         Reported by Eric Blake.
13596
13597 2009-12-31  Bruno Haible  <bruno@clisp.org>
13598
13599         Avoid namespace pollution on glibc systems.
13600         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
13601         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
13602         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
13603         glibc systems.
13604
13605 2009-12-31  Bruno Haible  <bruno@clisp.org>
13606
13607         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
13608         (gl_REPLACE_WCHAR_H): Turn into a no-op.
13609         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
13610         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13611         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13612         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13613         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13614
13615 2009-12-31  Bruno Haible  <bruno@clisp.org>
13616
13617         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13618         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
13619         afterwards.
13620
13621 2009-12-31  Bruno Haible  <bruno@clisp.org>
13622
13623         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
13624         SYS_UTSNAME_H.
13625
13626 2009-12-31  Bruno Haible  <bruno@clisp.org>
13627
13628         spawn: Fix misapplied patch.
13629         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13630         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13631         warnings for GNULIB_POSIXCHECK.
13632
13633 2009-12-31  Bruno Haible  <bruno@clisp.org>
13634
13635         times: Update after sys_times changed.
13636         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
13637         * modules/times (Files): Add it.
13638         (configure.ac): Invoke gl_FUNC_TIMES.
13639
13640 2009-12-31  Bruno Haible  <bruno@clisp.org>
13641
13642         Use AC_C_INLINE where necessary.
13643         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
13644         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13645         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13646         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
13647         * m4/mbfile.m4 (gl_MBFILE): Likewise.
13648         * m4/mbiter.m4 (gl_MBITER): Likewise.
13649         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13650         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13651         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
13652         * modules/u64 (configure.ac): Likewise.
13653
13654 2009-12-31  Bruno Haible  <bruno@clisp.org>
13655
13656         Use AC_C_INLINE instead of module 'inline' where possible.
13657         * modules/inline (Description): Clarify purpose.
13658         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
13659         * modules/count-one-bits (Depends-on): Remove inline.
13660         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
13661         * modules/openat (Depends-on): Remove inline.
13662         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
13663         instead of depending on module 'inline'.
13664         * modules/filevercmp (Depends-on, configure.ac): Likewise.
13665         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
13666         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
13667         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
13668         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
13669         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
13670         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
13671         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
13672         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
13673         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
13674         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
13675         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
13676         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
13677         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
13678         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
13679         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
13680         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
13681         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
13682         Likewise.
13683         * modules/unictype/property-ascii-hex-digit (Depends-on,
13684         configure.ac): Likewise.
13685         * modules/unictype/property-bidi-arabic-digit (Depends-on,
13686         configure.ac): Likewise.
13687         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
13688         configure.ac): Likewise.
13689         * modules/unictype/property-bidi-block-separator (Depends-on,
13690         configure.ac): Likewise.
13691         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
13692         configure.ac): Likewise.
13693         * modules/unictype/property-bidi-common-separator (Depends-on,
13694         configure.ac): Likewise.
13695         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
13696         Likewise.
13697         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
13698         configure.ac): Likewise.
13699         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
13700         configure.ac): Likewise.
13701         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
13702         configure.ac): Likewise.
13703         * modules/unictype/property-bidi-european-digit (Depends-on,
13704         configure.ac): Likewise.
13705         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
13706         configure.ac): Likewise.
13707         * modules/unictype/property-bidi-left-to-right (Depends-on,
13708         configure.ac): Likewise.
13709         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
13710         configure.ac): Likewise.
13711         * modules/unictype/property-bidi-other-neutral (Depends-on,
13712         configure.ac): Likewise.
13713         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
13714         Likewise.
13715         * modules/unictype/property-bidi-segment-separator (Depends-on,
13716         configure.ac): Likewise.
13717         * modules/unictype/property-bidi-whitespace (Depends-on,
13718         configure.ac): Likewise.
13719         * modules/unictype/property-combining (Depends-on, configure.ac):
13720         Likewise.
13721         * modules/unictype/property-composite (Depends-on, configure.ac):
13722         Likewise.
13723         * modules/unictype/property-currency-symbol (Depends-on,
13724         configure.ac): Likewise.
13725         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
13726         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
13727         Likewise.
13728         * modules/unictype/property-default-ignorable-code-point (Depends-on,
13729         configure.ac): Likewise.
13730         * modules/unictype/property-deprecated (Depends-on, configure.ac):
13731         Likewise.
13732         * modules/unictype/property-diacritic (Depends-on, configure.ac):
13733         Likewise.
13734         * modules/unictype/property-extender (Depends-on, configure.ac):
13735         Likewise.
13736         * modules/unictype/property-format-control (Depends-on, configure.ac):
13737         Likewise.
13738         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
13739         Likewise.
13740         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
13741         Likewise.
13742         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
13743         Likewise.
13744         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
13745         Likewise.
13746         * modules/unictype/property-hyphen (Depends-on, configure.ac):
13747         Likewise.
13748         * modules/unictype/property-id-continue (Depends-on, configure.ac):
13749         Likewise.
13750         * modules/unictype/property-id-start (Depends-on, configure.ac):
13751         Likewise.
13752         * modules/unictype/property-ideographic (Depends-on, configure.ac):
13753         Likewise.
13754         * modules/unictype/property-ids-binary-operator (Depends-on,
13755         configure.ac): Likewise.
13756         * modules/unictype/property-ids-trinary-operator (Depends-on,
13757         configure.ac): Likewise.
13758         * modules/unictype/property-ignorable-control (Depends-on,
13759         configure.ac): Likewise.
13760         * modules/unictype/property-iso-control (Depends-on, configure.ac):
13761         Likewise.
13762         * modules/unictype/property-join-control (Depends-on, configure.ac):
13763         Likewise.
13764         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
13765         Likewise.
13766         * modules/unictype/property-line-separator (Depends-on, configure.ac):
13767         Likewise.
13768         * modules/unictype/property-logical-order-exception (Depends-on,
13769         configure.ac): Likewise.
13770         * modules/unictype/property-lowercase (Depends-on, configure.ac):
13771         Likewise.
13772         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
13773         * modules/unictype/property-non-break (Depends-on, configure.ac):
13774         Likewise.
13775         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
13776         Likewise.
13777         * modules/unictype/property-numeric (Depends-on, configure.ac):
13778         Likewise.
13779         * modules/unictype/property-other-alphabetic (Depends-on,
13780         configure.ac): Likewise.
13781         * modules/unictype/property-other-default-ignorable-code-point
13782         (Depends-on, configure.ac): Likewise.
13783         * modules/unictype/property-other-grapheme-extend (Depends-on,
13784         configure.ac): Likewise.
13785         * modules/unictype/property-other-id-continue (Depends-on,
13786         configure.ac): Likewise.
13787         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
13788         Likewise.
13789         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
13790         Likewise.
13791         * modules/unictype/property-other-math (Depends-on, configure.ac):
13792         Likewise.
13793         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
13794         Likewise.
13795         * modules/unictype/property-paired-punctuation (Depends-on,
13796         configure.ac): Likewise.
13797         * modules/unictype/property-paragraph-separator (Depends-on,
13798         configure.ac): Likewise.
13799         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
13800         Likewise.
13801         * modules/unictype/property-pattern-white-space (Depends-on,
13802         configure.ac): Likewise.
13803         * modules/unictype/property-private-use (Depends-on, configure.ac):
13804         Likewise.
13805         * modules/unictype/property-punctuation (Depends-on, configure.ac):
13806         Likewise.
13807         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
13808         Likewise.
13809         * modules/unictype/property-radical (Depends-on, configure.ac):
13810         Likewise.
13811         * modules/unictype/property-sentence-terminal (Depends-on,
13812         configure.ac): Likewise.
13813         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
13814         Likewise.
13815         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
13816         * modules/unictype/property-terminal-punctuation (Depends-on,
13817         configure.ac): Likewise.
13818         * modules/unictype/property-titlecase (Depends-on, configure.ac):
13819         Likewise.
13820         * modules/unictype/property-unassigned-code-value (Depends-on,
13821         configure.ac): Likewise.
13822         * modules/unictype/property-unified-ideograph (Depends-on,
13823         configure.ac): Likewise.
13824         * modules/unictype/property-uppercase (Depends-on, configure.ac):
13825         Likewise.
13826         * modules/unictype/property-variation-selector (Depends-on,
13827         configure.ac): Likewise.
13828         * modules/unictype/property-white-space (Depends-on, configure.ac):
13829         Likewise.
13830         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
13831         Likewise.
13832         * modules/unictype/property-xid-start (Depends-on, configure.ac):
13833         Likewise.
13834         * modules/unictype/property-zero-width (Depends-on, configure.ac):
13835         Likewise.
13836         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
13837         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
13838         Likewise.
13839
13840 2009-12-31  Bruno Haible  <bruno@clisp.org>
13841
13842         Remove unnecessary AC_C_INLINE invocation.
13843         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
13844         since 2009-08-21.
13845
13846 2009-12-31  Jim Meyering  <meyering@redhat.com>
13847
13848         maint.mk: don't require explicit gpg_key_ID in cfg.mk
13849         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
13850         With this change, we can all remove the gpg_key_ID = ... definition
13851         from our respective cfg.mk files.
13852
13853         maint.mk: create announcement template in ~/, not in /tmp
13854         * top/maint.mk (emit_upload_commands): Adjust.
13855         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
13856         Remove temporary file, .ci-msg.
13857
13858 2009-12-31  Eric Blake  <ebb9@byu.net>
13859
13860         link-warning: always build headers with link warnings
13861         * modules/arpa_inet (Makefile.am): Always build replacement
13862         header.
13863         * modules/ctype (Makefile.am): Likewise.
13864         * modules/dirent (Makefile.am): Likewise.
13865         * modules/inttypes (Makefile.am): Likewise.
13866         * modules/langinfo (Makefile.am): Likewise.
13867         * modules/locale (Makefile.am): Likewise.
13868         * modules/spawn (Makefile.am): Likewise.
13869         * modules/sys_file (Makefile.am): Likewise.
13870         * modules/sys_ioctl (Makefile.am): Likewise.
13871         * modules/sys_select (Makefile.am): Likewise.
13872         * modules/sys_socket (Makefile.am): Likewise.
13873         * modules/sys_times (Makefile.am): Likewise.
13874         * modules/sys_utsname (Makefile.am): Likewise.
13875         * modules/sys_wait (Makefile.am): Likewise.
13876         * modules/wchar (Makefile.am): Likewise.
13877         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
13878         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
13879         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
13880         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
13881         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
13882         Likewise.
13883         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13884         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13885         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
13886         Likewise.
13887         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
13888         Likewise.
13889         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13890         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
13891         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
13892         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13893         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13894         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
13895         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
13896         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
13897         (gl_WCHAR_H_DEFAULTS): Likewise.
13898
13899 2009-12-31  Eric Blake  <ebb9@byu.net>
13900
13901         signal, spawn: use link warnings
13902         * lib/signal.in.h (sigset_t): Make unconditional.
13903         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
13904         (sigpending, sigprocmask, sigaction): Add link warnings.
13905         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
13906         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
13907         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
13908         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
13909         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
13910         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
13911         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
13912         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
13913         (posix_spawn_file_actions_destroy)
13914         (posix_spawn_file_actions_addopen)
13915         (posix_spawn_file_actions_addclose)
13916         (posix_spawn_file_actions_adddup2): Likewise.
13917         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
13918         * tests/test-signal.c (main): Enhance test.
13919
13920         spawn: improve wrapper support
13921         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
13922         (gl_SPAWN_H_DEFAULTS): New defaults.
13923         * modules/spawn (Makefile.am): Substitute them.
13924         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
13925         Only declare if missing or broken.
13926
13927         sys_times, sys_utsname: use include_next
13928         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
13929         header.
13930         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
13931         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
13932         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
13933         * modules/sys_times (Depends-on): Add include_next.
13934         (Makefile.am): Substitute additional values.
13935         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13936         * lib/sys_times.in.h (includes): Include native header, if
13937         available.
13938         * lib/sys_utsname.in.h (includes): Likewise.
13939         * tests/test-sys_times.c (main): Enhance test.
13940
13941         fdutimensat: revert prior patch
13942         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
13943         utimens.h.
13944         Reported by Bruno Haible.
13945
13946 2009-12-30  Eric Blake  <ebb9@byu.net>
13947
13948         sys_wait: drop link-warning dependency
13949         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
13950         link-warning efforts.
13951         * lib/sys_wait.in.h: Likewise.
13952
13953         fdutimensat: remove bogus dependency
13954         * modules/fdutimensat (Depends-on): Drop inline.
13955
13956         unistd: fix typo
13957         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
13958
13959 2009-12-30  Bruno Haible  <bruno@clisp.org>
13960
13961         Fix compilation error with Solaris cc.
13962         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
13963         * lib/unicase/u16-is-invariant.c: Likewise.
13964         * lib/unicase/u32-is-invariant.c: Likewise.
13965         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13966
13967 2009-12-30  Bruno Haible  <bruno@clisp.org>
13968
13969         Fix test crash.
13970         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
13971         locales.
13972         Reported by Simon Josefsson <simon@josefsson.org>.
13973
13974 2009-12-30  Bruno Haible  <bruno@clisp.org>
13975
13976         Fix compilation error on most platforms.
13977         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
13978         Reported by Simon Josefsson <simon@josefsson.org>
13979         and Nelson H. F. Beebe <beebe@math.utah.edu>.
13980
13981 2009-12-30  Eric Blake  <ebb9@byu.net>
13982
13983         futimens, utimensat: work around ntfs-3g bug
13984         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
13985         a ctime bug is present, and expand workaround to cover ntfs-3g.
13986         * lib/utimens.c (fdutimens, lutimens): Likewise.
13987         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
13988         (validate_timespec): Adjust return value.
13989         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
13990         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13991         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
13992
13993 2009-12-29  Eric Blake  <ebb9@byu.net>
13994
13995         link-warning: make usage consistent
13996         * modules/ctype (Depends-on): Add link-warning.
13997         (Makefile.am): Update rules accordingly.
13998         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13999         * modules/locale (Depends-on, Makefile.am): Likewise.
14000         * modules/sys_file (Makefile.am): Likewise.
14001         * modules/getopt-posix (Makefile.am): Delete unused link warning
14002         efforts.
14003         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14004         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14005         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14006         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14007
14008         stdio: remove unused variables
14009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14010         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14011         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14012
14013         tests: test more substitute headers
14014         * modules/ctype-tests: New file.
14015         * modules/dirent-tests: Likewise.
14016         * modules/spawn-tests: Likewise.
14017         * modules/sys_file-tests: Likewise.
14018         * modules/sys_ioctl-tests: Likewise.
14019         * modules/sys_wait-tests: Likewise.
14020         * tests/test-ctype.c: Likewise.
14021         * tests/test-dirent.c: Likewise.
14022         * tests/test-spawn.c: Likewise.
14023         * tests/test-sys_file.c: Likewise.
14024         * tests/test-sys_ioctl.c: Likewise.
14025         * tests/test-sys_wait.c: Likewise.
14026         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14027         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14028         whether or not flock is in use.
14029
14030         tests: remove License section from module
14031         * modules/arpa_inet-tests: Remove unneeded section.
14032         * modules/byteswap-tests: Likewise.
14033         * modules/ceilf-tests: Likewise.
14034         * modules/ceill-tests: Likewise.
14035         * modules/crypto/des-tests: Likewise.
14036         * modules/crypto/gc-arcfour-tests: Likewise.
14037         * modules/crypto/gc-arctwo-tests: Likewise.
14038         * modules/crypto/gc-des-tests: Likewise.
14039         * modules/crypto/gc-hmac-md5-tests: Likewise.
14040         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14041         * modules/crypto/gc-md2-tests: Likewise.
14042         * modules/crypto/gc-md4-tests: Likewise.
14043         * modules/crypto/gc-md5-tests: Likewise.
14044         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14045         * modules/crypto/gc-rijndael-tests: Likewise.
14046         * modules/crypto/gc-sha1-tests: Likewise.
14047         * modules/crypto/gc-tests: Likewise.
14048         * modules/crypto/md2-tests: Likewise.
14049         * modules/crypto/md4-tests: Likewise.
14050         * modules/fcntl-h-tests: Likewise.
14051         * modules/floorf-tests: Likewise.
14052         * modules/floorl-tests: Likewise.
14053         * modules/frexp-nolibm-tests: Likewise.
14054         * modules/frexp-tests: Likewise.
14055         * modules/frexpl-nolibm-tests: Likewise.
14056         * modules/frexpl-tests: Likewise.
14057         * modules/getaddrinfo-tests: Likewise.
14058         * modules/inttypes-tests: Likewise.
14059         * modules/isfinite-tests: Likewise.
14060         * modules/isinf-tests: Likewise.
14061         * modules/ldexpl-tests: Likewise.
14062         * modules/locale-tests: Likewise.
14063         * modules/math-tests: Likewise.
14064         * modules/netdb-tests: Likewise.
14065         * modules/netinet_in-tests: Likewise.
14066         * modules/printf-frexp-tests: Likewise.
14067         * modules/printf-frexpl-tests: Likewise.
14068         * modules/priv-set-tests: Likewise.
14069         * modules/random_r-tests: Likewise.
14070         * modules/round-tests: Likewise.
14071         * modules/roundf-tests: Likewise.
14072         * modules/roundl-tests: Likewise.
14073         * modules/search-tests: Likewise.
14074         * modules/select-tests: Likewise.
14075         * modules/signal-tests: Likewise.
14076         * modules/stdbool-tests: Likewise.
14077         * modules/stddef-tests: Likewise.
14078         * modules/stdint-tests: Likewise.
14079         * modules/stdio-tests: Likewise.
14080         * modules/stdlib-tests: Likewise.
14081         * modules/string-tests: Likewise.
14082         * modules/strings-tests: Likewise.
14083         * modules/sys_select-tests: Likewise.
14084         * modules/sys_socket-tests: Likewise.
14085         * modules/sys_stat-tests: Likewise.
14086         * modules/sys_time-tests: Likewise.
14087         * modules/sys_utsname-tests: Likewise.
14088         * modules/sysexits-tests: Likewise.
14089         * modules/time-tests: Likewise.
14090         * modules/trunc-tests: Likewise.
14091         * modules/truncf-tests: Likewise.
14092         * modules/truncl-tests: Likewise.
14093         * modules/tsearch-tests: Likewise.
14094         * modules/unistd-tests: Likewise.
14095         * modules/wchar-tests: Likewise.
14096         * modules/wctype-tests: Likewise.
14097
14098         tests: fix license on several tests
14099         * tests/test-des.c: Update to GPLv3+.
14100         * tests/test-flock.c: Likewise.
14101         * tests/test-fsync.c: Likewise.
14102         * tests/test-futimens.h: Likewise.
14103         * tests/test-gc-arcfour.c: Likewise.
14104         * tests/test-gc-arctwo.c: Likewise.
14105         * tests/test-gc-des.c: Likewise.
14106         * tests/test-gc-hmac-md5.c: Likewise.
14107         * tests/test-gc-hmac-sha1.c: Likewise.
14108         * tests/test-gc-md2.c: Likewise.
14109         * tests/test-gc-md4.c: Likewise.
14110         * tests/test-gc-md5.c: Likewise.
14111         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14112         * tests/test-gc-rijndael.c: Likewise.
14113         * tests/test-gc-sha1.c: Likewise.
14114         * tests/test-gc.c: Likewise.
14115         * tests/test-getcwd.c: Likewise.
14116         * tests/test-link.c: Likewise.
14117         * tests/test-link.h: Likewise.
14118         * tests/test-lutimens.h: Likewise.
14119         * tests/test-md2.c: Likewise.
14120         * tests/test-md4.c: Likewise.
14121         * tests/test-mkdir.h: Likewise.
14122         * tests/test-rename.c: Likewise.
14123         * tests/test-rename.h: Likewise.
14124         * tests/test-safe-alloc.c: Likewise.
14125         * tests/test-utimens-common.h: Likewise.
14126         * tests/test-utimens.h: Likewise.
14127
14128         maint: sync license texts
14129         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14130         * doc/gpl-3.0.texi: Revert copyright year update.
14131         * doc/lgpl-3.0.texi: Likewise.
14132
14133 2009-12-29  Jim Meyering  <meyering@redhat.com>
14134
14135         update nearly all FSF copyright year lists to include 2009
14136         The files named by the following are exempted:
14137             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14138               test -f "$dst" && { echo "$dst"; continue; }
14139               test -d "$dst" || continue
14140               echo "$dst"/$(basename "$src")
14141             done > exempt
14142             git ls-files tests/unictype >> exempt
14143         In the remaining files, convert to all-interval notation if
14144         - there is already at least one year interval like 2000-2003
14145         - the file is maintained by me
14146         - the file is in lib/uni*/, where that style already prevails
14147         Otherwise, use update-copyright's default.
14148
14149 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14150         and Eric Blake  <ebb9@byu.net>
14151
14152         tests: don't require debug system() to pass
14153         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14154         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14155         * tests/test-unlink.h (test_unlink_func): Likewise.
14156         * tests/test-fstatat.c (main): ...into callers.
14157         * tests/test-lstat.c (main): Likewise.
14158         * tests/test-rmdir.c (main): Likewise.
14159         * tests/test-unlink.c (main): Likewise.
14160         * tests/test-unlinkat.c (main): Likewise.
14161         * tests/test-areadlink-with-size.c (main): Don't require a
14162         debug-only system call to pass, aiding cross-testing to mingw.
14163         * tests/test-areadlink.c (main): Likewise.
14164         * tests/test-areadlinkat-with-size.c (main): Likewise.
14165         * tests/test-areadlinkat.c (main): Likewise.
14166         * tests/test-canonicalize-lgpl.c (main): Likewise.
14167         * tests/test-canonicalize.c (main): Likewise.
14168         * tests/test-chown.c (main): Likewise.
14169         * tests/test-fchownat.c (main): Likewise.
14170         * tests/test-lchown.c (main): Likewise.
14171         * tests/test-fdutimensat.c (main): Likewise.
14172         * tests/test-futimens.c (main): Likewise.
14173         * tests/test-link.c (main): Likewise.
14174         * tests/test-linkat.c (main): Likewise.
14175         * tests/test-mkdir.c (main): Likewise.
14176         * tests/test-mkdirat.c (main): Likewise.
14177         * tests/test-mkfifo.c (main): Likewise.
14178         * tests/test-mkfifoat.c (main): Likewise.
14179         * tests/test-mknod.c (main): Likewise.
14180         * tests/test-readlink.c (main): Likewise.
14181         * tests/test-remove.c (main): Likewise.
14182         * tests/test-rename.c (main): Likewise.
14183         * tests/test-renameat.c (main): Likewise.
14184         * tests/test-symlink.c (main): Likewise.
14185         * tests/test-symlinkat.c (main): Likewise.
14186         * tests/test-utimens.c (main): Likewise.
14187         * tests/test-utimensat.c (main): Likewise.
14188
14189 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14190
14191         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14192         on $(UNUSED_PARAMETER_H) to avoid build failure.
14193
14194 2009-12-28  Jim Meyering  <meyering@redhat.com>
14195
14196         update-copyright: you may specify a max. line length other than 72
14197         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14198
14199         maint: use consistent FSF copyright line syntax
14200         * lib/posixtm.c: Add missing comma in FSF copyright line.
14201         * lib/posixtm.h: Likewise.
14202         * lib/getugroups.c: Add missing ", Inc.".
14203
14204         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14205         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14206         FSF copyright line.  Remove trailing blanks.
14207
14208 2009-12-28  Eric Blake  <ebb9@byu.net>
14209
14210         test-dup2: reduce dependencies
14211         * modules/cloexec (Configure.ac): Set witness.
14212         * modules/dup2-tests (Depends-on): Drop cloexec.
14213         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14214         not present.
14215         Suggested by Bruno Haible.
14216
14217 2009-12-26  Bruno Haible  <bruno@clisp.org>
14218
14219         Remove an unneeded dependency.
14220         * modules/fseterr (Depends-on): Remove dup2.
14221
14222 2009-12-26  Eric Blake  <ebb9@byu.net>
14223
14224         tests: use macros.h in more places
14225         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14226         (ASSERT_STREAM): Provide default of stderr.
14227         * tests/test-dirent-safer.c: Include macros.h, using alternate
14228         stream for assertions.
14229         * tests/test-dup-safer.c: Likewise.
14230         * tests/test-freopen-safer.c: Likewise.
14231         * tests/test-getopt.c: Likewise.
14232         * tests/test-openat-safer.c: Likewise.
14233         * tests/test-pipe.c: Likewise.
14234         * tests/test-popen-safer.c: Likewise.
14235         * modules/dirent-safer-tests (Files): Include macros.h.
14236         * modules/unistd-safer-tests (Files): Likewise.
14237         * modules/freopen-safer-tests (Files): Likewise.
14238         * modules/getopt-posix-tests (Files): Likewise.
14239         * modules/openat-safer-tests (Files): Likewise.
14240         * modules/pipe-tests (Files): Likewise.
14241
14242 2009-12-26  Bruno Haible  <bruno@clisp.org>
14243
14244         javacomp: Portability fix.
14245         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14246         that it also works on Solaris.
14247
14248 2009-12-26  Bruno Haible  <bruno@clisp.org>
14249
14250         localename: Fix storage allocation of gl_locale_name_thread's result.
14251         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14252         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14253         all platforms that have 'uselocale'.
14254         (gl_locale_name_thread_unsafe): New function, extracted from
14255         gl_locale_name_thread.
14256         (gl_locale_name_thread): Call struniq on all platforms that have
14257         'uselocale'.
14258         * tests/test-localename.c (test_locale_name_thread): Check that the
14259         resulting strings are permanently allocated.
14260         * modules/localename-tests (Depends-on): Add strdup.
14261
14262 2009-12-26  Bruno Haible  <bruno@clisp.org>
14263
14264         * tests/test-localename.c (categories): Fill in the strings.
14265
14266 2009-12-26  Jim Meyering  <meyering@redhat.com>
14267
14268         isdir: complete the removal of m4/isdir.m4
14269         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14270
14271         isdir: clean up, since at least grep still uses it
14272         * lib/isdir.c: Include "isdir.h".
14273         (S_ISDIR): Remove now-unneeded definition.
14274         * modules/isdir (Files): Add lib/isdir.h.
14275         * lib/isdir.h: New file, with declaration.
14276         * m4/isdir.m4: Remove file -- unneeded.
14277
14278 2009-12-25  Bruno Haible  <bruno@clisp.org>
14279
14280         selinux-h: Make generated .h files standalone.
14281         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14282         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14283         * lib/se-selinux.in.h: Likewise.
14284         * modules/selinux-h (Depends-on): Add unused-parameter.
14285         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14286         selinux/selinux.h and selinux/context.h.
14287         Suggested by Eric Blake.
14288
14289 2009-12-25  Bruno Haible  <bruno@clisp.org>
14290
14291         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14292         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14293         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14294         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14295         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14296
14297 2009-12-24  Bruno Haible  <bruno@clisp.org>
14298
14299         openat: Fix warning.
14300         * lib/openat-proc.c: Include <unistd.h>.
14301
14302 2009-12-24  Bruno Haible  <bruno@clisp.org>
14303
14304         New module 'unused-parameter'.
14305         * build-aux/unused-parameter.h: New file, extracted from earlier
14306         gnulib-common.m4.
14307         * modules/unused-parameter: New file.
14308         * lib/unistr.h: Include unused-parameter.h.
14309         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14310         _GL_UNUSED.
14311         * modules/unistr/base (Depends-on): Add unused-parameter.
14312
14313 2009-12-24  Bruno Haible  <bruno@clisp.org>
14314
14315         Add missing dependencies to 'extensions' module.
14316         * m4/extensions.m4: Add comment.
14317         * modules/accept4 (Depends-on): Add extensions.
14318         * modules/dup3 (Depends-on): Likewise.
14319         * modules/fcntl (Depends-on): Likewise.
14320         * modules/futimens (Depends-on): Likewise.
14321         * modules/mknod (Depends-on): Likewise.
14322         * modules/pipe2 (Depends-on): Likewise.
14323         * modules/stat-time (Depends-on): Likewise.
14324         * modules/strcasestr-simple (Depends-on): Likewise.
14325         * modules/strsignal (Depends-on): Likewise.
14326         * modules/utimensat (Depends-on): Likewise.
14327         * modules/localcharset (Depends-on): Likewise. Needed because of
14328         gl_FCNTL_O_FLAGS.
14329         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14330         AC_TYPE_MBSTATE_T.
14331         * modules/wcsnrtombs (Depends-on): Likewise.
14332         * modules/wcsrtombs (Depends-on): Likewise.
14333
14334 2009-12-24  Bruno Haible  <bruno@clisp.org>
14335
14336         binary-io: Avoid gcc warning due to SET_BINARY.
14337         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14338         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14339
14340 2009-12-24  Bruno Haible  <bruno@clisp.org>
14341
14342         Avoid future namespace pollution on glibc systems.
14343         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14344         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14345         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14346         glibc systems.
14347
14348 2009-12-24  Bruno Haible  <bruno@clisp.org>
14349
14350         Refactor common macros used in tests.
14351         * tests/macros.h: New file.
14352         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14353         and/or <stdlib.h>, if appropriate.
14354         (ASSERT, SIZEOF): Remove macros.
14355         * tests/test-areadlink-with-size.c: Likewise.
14356         * tests/test-areadlinkat.c: Likewise.
14357         * tests/test-areadlinkat-with-size.c: Likewise.
14358         * tests/test-argmatch.c: Likewise.
14359         * tests/test-argv-iter.c: Likewise.
14360         * tests/test-array-mergesort.c: Likewise.
14361         * tests/test-array_list.c: Likewise.
14362         * tests/test-array_oset.c: Likewise.
14363         * tests/test-avltree_list.c: Likewise.
14364         * tests/test-avltree_oset.c: Likewise.
14365         * tests/test-avltreehash_list.c: Likewise.
14366         * tests/test-base64.c: Likewise.
14367         * tests/test-binary-io.c: Likewise.
14368         * tests/test-bitrotate.c: Likewise.
14369         * tests/test-btowc.c: Likewise.
14370         * tests/test-byteswap.c: Likewise.
14371         * tests/test-c-ctype.c: Likewise.
14372         * tests/test-c-stack.c: Likewise.
14373         * tests/test-c-strcasecmp.c: Likewise.
14374         * tests/test-c-strcasestr.c: Likewise.
14375         * tests/test-c-strncasecmp.c: Likewise.
14376         * tests/test-c-strstr.c: Likewise.
14377         * tests/test-canonicalize-lgpl.c: Likewise.
14378         * tests/test-canonicalize.c: Likewise.
14379         * tests/test-carray_list.c: Likewise.
14380         * tests/test-ceilf1.c: Likewise.
14381         * tests/test-ceilf2.c: Likewise.
14382         * tests/test-ceill.c: Likewise.
14383         * tests/test-chown.c: Likewise.
14384         * tests/test-cloexec.c: Likewise.
14385         * tests/test-copy-acl.c: Likewise.
14386         * tests/test-copy-file.c: Likewise.
14387         * tests/test-count-one-bits.c: Likewise.
14388         * tests/test-dprintf-posix.c: Likewise.
14389         * tests/test-dup2.c: Likewise.
14390         * tests/test-dup3.c: Likewise.
14391         * tests/test-duplocale.c: Likewise.
14392         * tests/test-fbufmode.c: Likewise.
14393         * tests/test-fchdir.c: Likewise.
14394         * tests/test-fchownat.c: Likewise.
14395         * tests/test-fcntl-safer.c: Likewise.
14396         * tests/test-fcntl.c: Likewise.
14397         * tests/test-fdopendir.c: Likewise.
14398         * tests/test-fdutimensat.c: Likewise.
14399         * tests/test-fflush2.c: Likewise.
14400         * tests/test-file-has-acl.c: Likewise.
14401         * tests/test-filevercmp.c: Likewise.
14402         * tests/test-flock.c: Likewise.
14403         * tests/test-floorf1.c: Likewise.
14404         * tests/test-floorf2.c: Likewise.
14405         * tests/test-floorl.c: Likewise.
14406         * tests/test-fnmatch.c: Likewise.
14407         * tests/test-fopen.h: Likewise.
14408         * tests/test-fpending.c: Likewise.
14409         * tests/test-fprintf-posix.c: Likewise.
14410         * tests/test-fpurge.c: Likewise.
14411         * tests/test-freadable.c: Likewise.
14412         * tests/test-freadahead.c: Likewise.
14413         * tests/test-freading.c: Likewise.
14414         * tests/test-freadptr.c: Likewise.
14415         * tests/test-freadptr2.c: Likewise.
14416         * tests/test-freadseek.c: Likewise.
14417         * tests/test-freopen.c: Likewise.
14418         * tests/test-frexp.c: Likewise.
14419         * tests/test-frexpl.c: Likewise.
14420         * tests/test-fseek.c: Likewise.
14421         * tests/test-fseeko.c: Likewise.
14422         * tests/test-fstatat.c: Likewise.
14423         * tests/test-fstrcmp.c: Likewise.
14424         * tests/test-fsync.c: Likewise.
14425         * tests/test-ftell.c: Likewise.
14426         * tests/test-ftello.c: Likewise.
14427         * tests/test-func.c: Likewise.
14428         * tests/test-futimens.c: Likewise.
14429         * tests/test-fwritable.c: Likewise.
14430         * tests/test-fwriting.c: Likewise.
14431         * tests/test-getcwd.c: Likewise.
14432         * tests/test-getdate.c: Likewise.
14433         * tests/test-getdelim.c: Likewise.
14434         * tests/test-getdtablesize.c: Likewise.
14435         * tests/test-getgroups.c: Likewise.
14436         * tests/test-getline.c: Likewise.
14437         * tests/test-getndelim2.c: Likewise.
14438         * tests/test-glob.c: Likewise.
14439         * tests/test-hash.c: Likewise.
14440         * tests/test-i-ring.c: Likewise.
14441         * tests/test-iconv-utf.c: Likewise.
14442         * tests/test-iconv.c: Likewise.
14443         * tests/test-idpriv-drop.c: Likewise.
14444         * tests/test-idpriv-droptemp.c: Likewise.
14445         * tests/test-inet_ntop.c: Likewise.
14446         * tests/test-inet_pton.c: Likewise.
14447         * tests/test-isblank.c: Likewise.
14448         * tests/test-isfinite.c: Likewise.
14449         * tests/test-isinf.c: Likewise.
14450         * tests/test-isnan.c: Likewise.
14451         * tests/test-isnand.h: Likewise.
14452         * tests/test-isnanf.h: Likewise.
14453         * tests/test-isnanl.h: Likewise.
14454         * tests/test-lchown.c: Likewise.
14455         * tests/test-ldexpl.c: Likewise.
14456         * tests/test-link.c: Likewise.
14457         * tests/test-linkat.c: Likewise.
14458         * tests/test-linked_list.c: Likewise.
14459         * tests/test-linkedhash_list.c: Likewise.
14460         * tests/test-localename.c: Likewise.
14461         * tests/test-lseek.c: Likewise.
14462         * tests/test-lstat.c: Likewise.
14463         * tests/test-mbmemcasecmp.c: Likewise.
14464         * tests/test-mbmemcasecoll.c: Likewise.
14465         * tests/test-mbrtowc.c: Likewise.
14466         * tests/test-mbscasecmp.c: Likewise.
14467         * tests/test-mbscasestr1.c: Likewise.
14468         * tests/test-mbscasestr2.c: Likewise.
14469         * tests/test-mbscasestr3.c: Likewise.
14470         * tests/test-mbscasestr4.c: Likewise.
14471         * tests/test-mbschr.c: Likewise.
14472         * tests/test-mbscspn.c: Likewise.
14473         * tests/test-mbsinit.c: Likewise.
14474         * tests/test-mbsncasecmp.c: Likewise.
14475         * tests/test-mbsnrtowcs.c: Likewise.
14476         * tests/test-mbspbrk.c: Likewise.
14477         * tests/test-mbspcasecmp.c: Likewise.
14478         * tests/test-mbsrchr.c: Likewise.
14479         * tests/test-mbsrtowcs.c: Likewise.
14480         * tests/test-mbsspn.c: Likewise.
14481         * tests/test-mbsstr1.c: Likewise.
14482         * tests/test-mbsstr2.c: Likewise.
14483         * tests/test-mbsstr3.c: Likewise.
14484         * tests/test-memchr.c: Likewise.
14485         * tests/test-memchr2.c: Likewise.
14486         * tests/test-memcmp.c: Likewise.
14487         * tests/test-memmem.c: Likewise.
14488         * tests/test-memrchr.c: Likewise.
14489         * tests/test-mkdir.c: Likewise.
14490         * tests/test-mkdirat.c: Likewise.
14491         * tests/test-mkfifo.c: Likewise.
14492         * tests/test-mkfifoat.c: Likewise.
14493         * tests/test-mknod.c: Likewise.
14494         * tests/test-nanosleep.c: Likewise.
14495         * tests/test-nl_langinfo.c: Likewise.
14496         * tests/test-obstack-printf.c: Likewise.
14497         * tests/test-open.c: Likewise.
14498         * tests/test-openat.c: Likewise.
14499         * tests/test-pipe-filter-gi1.c: Likewise.
14500         * tests/test-pipe-filter-gi2-main.c: Likewise.
14501         * tests/test-pipe-filter-ii1.c: Likewise.
14502         * tests/test-pipe-filter-ii2-main.c: Likewise.
14503         * tests/test-pipe2.c: Likewise.
14504         * tests/test-popen.h: Likewise.
14505         * tests/test-posixtm.c: Likewise.
14506         * tests/test-pread.c: Likewise.
14507         * tests/test-printf-frexp.c: Likewise.
14508         * tests/test-printf-frexpl.c: Likewise.
14509         * tests/test-printf-posix.c: Likewise.
14510         * tests/test-priv-set.c: Likewise.
14511         * tests/test-quotearg.c: Likewise.
14512         * tests/test-random_r.c: Likewise.
14513         * tests/test-rawmemchr.c: Likewise.
14514         * tests/test-rbtree_list.c: Likewise.
14515         * tests/test-rbtree_oset.c: Likewise.
14516         * tests/test-rbtreehash_list.c: Likewise.
14517         * tests/test-readlink.c: Likewise.
14518         * tests/test-remove.c: Likewise.
14519         * tests/test-rename.c: Likewise.
14520         * tests/test-renameat.c: Likewise.
14521         * tests/test-rmdir.c: Likewise.
14522         * tests/test-round1.c: Likewise.
14523         * tests/test-roundf1.c: Likewise.
14524         * tests/test-roundl.c: Likewise.
14525         * tests/test-safe-alloc.c: Likewise.
14526         * tests/test-sameacls.c: Likewise.
14527         * tests/test-set-mode-acl.c: Likewise.
14528         * tests/test-setenv.c: Likewise.
14529         * tests/test-sigaction.c: Likewise.
14530         * tests/test-signbit.c: Likewise.
14531         * tests/test-sleep.c: Likewise.
14532         * tests/test-snprintf-posix.c: Likewise.
14533         * tests/test-snprintf.c: Likewise.
14534         * tests/test-sprintf-posix.c: Likewise.
14535         * tests/test-stat-time.c: Likewise.
14536         * tests/test-stat.c: Likewise.
14537         * tests/test-strcasestr.c: Likewise.
14538         * tests/test-strchrnul.c: Likewise.
14539         * tests/test-strerror.c: Likewise.
14540         * tests/test-striconv.c: Likewise.
14541         * tests/test-striconveh.c: Likewise.
14542         * tests/test-striconveha.c: Likewise.
14543         * tests/test-strsignal.c: Likewise.
14544         * tests/test-strstr.c: Likewise.
14545         * tests/test-strtod.c: Likewise.
14546         * tests/test-strverscmp.c: Likewise.
14547         * tests/test-symlink.c: Likewise.
14548         * tests/test-symlinkat.c: Likewise.
14549         * tests/test-trunc1.c: Likewise.
14550         * tests/test-trunc2.c: Likewise.
14551         * tests/test-truncf1.c: Likewise.
14552         * tests/test-truncf2.c: Likewise.
14553         * tests/test-truncl.c: Likewise.
14554         * tests/test-uname.c: Likewise.
14555         * tests/test-unlink.c: Likewise.
14556         * tests/test-unlinkat.c: Likewise.
14557         * tests/test-unsetenv.c: Likewise.
14558         * tests/test-usleep.c: Likewise.
14559         * tests/test-utimens.c: Likewise.
14560         * tests/test-utimensat.c: Likewise.
14561         * tests/test-vasnprintf-posix.c: Likewise.
14562         * tests/test-vasnprintf-posix2.c: Likewise.
14563         * tests/test-vasnprintf.c: Likewise.
14564         * tests/test-vasprintf-posix.c: Likewise.
14565         * tests/test-vasprintf.c: Likewise.
14566         * tests/test-vdprintf-posix.c: Likewise.
14567         * tests/test-vfprintf-posix.c: Likewise.
14568         * tests/test-vprintf-posix.c: Likewise.
14569         * tests/test-vsnprintf-posix.c: Likewise.
14570         * tests/test-vsnprintf.c: Likewise.
14571         * tests/test-vsprintf-posix.c: Likewise.
14572         * tests/test-wcrtomb.c: Likewise.
14573         * tests/test-wcsnrtombs.c: Likewise.
14574         * tests/test-wcsrtombs.c: Likewise.
14575         * tests/test-wctype.c: Likewise.
14576         * tests/test-wcwidth.c: Likewise.
14577         * tests/test-xfprintf-posix.c: Likewise.
14578         * tests/test-xmemdup0.c: Likewise.
14579         * tests/test-xprintf-posix.c: Likewise.
14580         * tests/test-xvasprintf.c: Likewise.
14581         * tests/unicase/test-locale-language.c: Likewise.
14582         * tests/unicase/test-mapping-part1.h: Likewise.
14583         * tests/unicase/test-predicate-part1.h: Likewise.
14584         * tests/unicase/test-u8-casecmp.c: Likewise.
14585         * tests/unicase/test-u8-casecoll.c: Likewise.
14586         * tests/unicase/test-u8-casefold.c: Likewise.
14587         * tests/unicase/test-u8-is-cased.c: Likewise.
14588         * tests/unicase/test-u8-is-casefolded.c: Likewise.
14589         * tests/unicase/test-u8-is-lowercase.c: Likewise.
14590         * tests/unicase/test-u8-is-titlecase.c: Likewise.
14591         * tests/unicase/test-u8-is-uppercase.c: Likewise.
14592         * tests/unicase/test-u8-tolower.c: Likewise.
14593         * tests/unicase/test-u8-totitle.c: Likewise.
14594         * tests/unicase/test-u8-toupper.c: Likewise.
14595         * tests/unicase/test-u16-casecmp.c: Likewise.
14596         * tests/unicase/test-u16-casecoll.c: Likewise.
14597         * tests/unicase/test-u16-casefold.c: Likewise.
14598         * tests/unicase/test-u16-is-cased.c: Likewise.
14599         * tests/unicase/test-u16-is-casefolded.c: Likewise.
14600         * tests/unicase/test-u16-is-lowercase.c: Likewise.
14601         * tests/unicase/test-u16-is-titlecase.c: Likewise.
14602         * tests/unicase/test-u16-is-uppercase.c: Likewise.
14603         * tests/unicase/test-u16-tolower.c: Likewise.
14604         * tests/unicase/test-u16-totitle.c: Likewise.
14605         * tests/unicase/test-u16-toupper.c: Likewise.
14606         * tests/unicase/test-u32-casecmp.c: Likewise.
14607         * tests/unicase/test-u32-casecoll.c: Likewise.
14608         * tests/unicase/test-u32-casefold.c: Likewise.
14609         * tests/unicase/test-u32-is-cased.c: Likewise.
14610         * tests/unicase/test-u32-is-casefolded.c: Likewise.
14611         * tests/unicase/test-u32-is-lowercase.c: Likewise.
14612         * tests/unicase/test-u32-is-titlecase.c: Likewise.
14613         * tests/unicase/test-u32-is-uppercase.c: Likewise.
14614         * tests/unicase/test-u32-tolower.c: Likewise.
14615         * tests/unicase/test-u32-totitle.c: Likewise.
14616         * tests/unicase/test-u32-toupper.c: Likewise.
14617         * tests/unicase/test-ulc-casecmp.c: Likewise.
14618         * tests/unicase/test-ulc-casecoll.c: Likewise.
14619         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14620         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
14621         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14622         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14623         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
14624         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
14625         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14626         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14627         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14628         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
14629         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14630         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14631         * tests/unictype/test-bidi_byname.c: Likewise.
14632         * tests/unictype/test-bidi_name.c: Likewise.
14633         * tests/unictype/test-bidi_of.c: Likewise.
14634         * tests/unictype/test-bidi_test.c: Likewise.
14635         * tests/unictype/test-block_list.c: Likewise.
14636         * tests/unictype/test-block_of.c: Likewise.
14637         * tests/unictype/test-block_test.c: Likewise.
14638         * tests/unictype/test-categ_and.c: Likewise.
14639         * tests/unictype/test-categ_and_not.c: Likewise.
14640         * tests/unictype/test-categ_byname.c: Likewise.
14641         * tests/unictype/test-categ_name.c: Likewise.
14642         * tests/unictype/test-categ_none.c: Likewise.
14643         * tests/unictype/test-categ_of.c: Likewise.
14644         * tests/unictype/test-categ_or.c: Likewise.
14645         * tests/unictype/test-categ_test_withtable.c: Likewise.
14646         * tests/unictype/test-combining.c: Likewise.
14647         * tests/unictype/test-decdigit.c: Likewise.
14648         * tests/unictype/test-digit.c: Likewise.
14649         * tests/unictype/test-mirror.c: Likewise.
14650         * tests/unictype/test-numeric.c: Likewise.
14651         * tests/unictype/test-pr_byname.c: Likewise.
14652         * tests/unictype/test-pr_test.c: Likewise.
14653         * tests/unictype/test-predicate-part1.h: Likewise.
14654         * tests/unictype/test-scripts.c: Likewise.
14655         * tests/unictype/test-sy_c_ident.c: Likewise.
14656         * tests/unictype/test-sy_java_ident.c: Likewise.
14657         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
14658         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
14659         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
14660         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
14661         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
14662         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
14663         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
14664         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
14665         * tests/uninorm/test-canonical-decomposition.c: Likewise.
14666         * tests/uninorm/test-compat-decomposition.c: Likewise.
14667         * tests/uninorm/test-composition.c: Likewise.
14668         * tests/uninorm/test-decomposing-form.c: Likewise.
14669         * tests/uninorm/test-decomposition.c: Likewise.
14670         * tests/uninorm/test-u8-nfc.c: Likewise.
14671         * tests/uninorm/test-u8-nfd.c: Likewise.
14672         * tests/uninorm/test-u8-nfkc.c: Likewise.
14673         * tests/uninorm/test-u8-nfkd.c: Likewise.
14674         * tests/uninorm/test-u8-normcmp.c: Likewise.
14675         * tests/uninorm/test-u8-normcoll.c: Likewise.
14676         * tests/uninorm/test-u16-nfc.c: Likewise.
14677         * tests/uninorm/test-u16-nfd.c: Likewise.
14678         * tests/uninorm/test-u16-nfkc.c: Likewise.
14679         * tests/uninorm/test-u16-nfkd.c: Likewise.
14680         * tests/uninorm/test-u16-normcmp.c: Likewise.
14681         * tests/uninorm/test-u16-normcoll.c: Likewise.
14682         * tests/uninorm/test-u32-nfc.c: Likewise.
14683         * tests/uninorm/test-u32-nfd.c: Likewise.
14684         * tests/uninorm/test-u32-nfkc.c: Likewise.
14685         * tests/uninorm/test-u32-nfkd.c: Likewise.
14686         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14687         * tests/uninorm/test-u32-normcmp.c: Likewise.
14688         * tests/uninorm/test-u32-normcoll.c: Likewise.
14689         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
14690         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
14691         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
14692         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
14693         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
14694         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
14695         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
14696         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
14697         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
14698         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
14699         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
14700         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
14701         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
14702         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
14703         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
14704         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
14705         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
14706         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
14707         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
14708         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
14709         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
14710         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
14711         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
14712         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
14713         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
14714         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
14715         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
14716         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
14717         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
14718         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
14719         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
14720         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
14721         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
14722         * tests/uniwidth/test-u8-strwidth.c: Likewise.
14723         * tests/uniwidth/test-u8-width.c: Likewise.
14724         * tests/uniwidth/test-u16-strwidth.c: Likewise.
14725         * tests/uniwidth/test-u16-width.c: Likewise.
14726         * tests/uniwidth/test-u32-strwidth.c: Likewise.
14727         * tests/uniwidth/test-u32-width.c: Likewise.
14728         * tests/uniwidth/test-uc_width.c: Likewise.
14729         * tests/uniwidth/test-uc_width2.c: Likewise.
14730         * modules/acl-tests (Files): Add tests/macros.h.
14731         * modules/areadlink-tests (Files): Likewise.
14732         * modules/areadlink-with-size-tests (Files): Likewise.
14733         * modules/areadlinkat-tests (Files): Likewise.
14734         * modules/areadlinkat-with-size-tests (Files): Likewise.
14735         * modules/argmatch-tests (Files): Likewise.
14736         * modules/argv-iter-tests (Files): Likewise.
14737         * modules/array-list-tests (Files): Likewise.
14738         * modules/array-mergesort-tests (Files): Likewise.
14739         * modules/array-oset-tests (Files): Likewise.
14740         * modules/avltree-list-tests (Files): Likewise.
14741         * modules/avltree-oset-tests (Files): Likewise.
14742         * modules/avltreehash-list-tests (Files): Likewise.
14743         * modules/base64-tests (Files): Likewise.
14744         * modules/binary-io-tests (Files): Likewise.
14745         * modules/bitrotate-tests (Files): Likewise.
14746         * modules/btowc-tests (Files): Likewise.
14747         * modules/byteswap-tests (Files): Likewise.
14748         * modules/c-ctype-tests (Files): Likewise.
14749         * modules/c-stack-tests (Files): Likewise.
14750         * modules/c-strcase-tests (Files): Likewise.
14751         * modules/c-strcasestr-tests (Files): Likewise.
14752         * modules/c-strstr-tests (Files): Likewise.
14753         * modules/canonicalize-lgpl-tests (Files): Likewise.
14754         * modules/canonicalize-tests (Files): Likewise.
14755         * modules/carray-list-tests (Files): Likewise.
14756         * modules/ceilf-tests (Files): Likewise.
14757         * modules/ceill-tests (Files): Likewise.
14758         * modules/chown-tests (Files): Likewise.
14759         * modules/cloexec-tests (Files): Likewise.
14760         * modules/copy-file-tests (Files): Likewise.
14761         * modules/count-one-bits-tests (Files): Likewise.
14762         * modules/dprintf-posix-tests (Files): Likewise.
14763         * modules/dup2-tests (Files): Likewise.
14764         * modules/dup3-tests (Files): Likewise.
14765         * modules/duplocale-tests (Files): Likewise.
14766         * modules/fbufmode-tests (Files): Likewise.
14767         * modules/fchdir-tests (Files): Likewise.
14768         * modules/fcntl-safer-tests (Files): Likewise.
14769         * modules/fcntl-tests (Files): Likewise.
14770         * modules/fdopendir-tests (Files): Likewise.
14771         * modules/fdutimensat-tests (Files): Likewise.
14772         * modules/fflush-tests (Files): Likewise.
14773         * modules/filevercmp-tests (Files): Likewise.
14774         * modules/flock-tests (Files): Likewise.
14775         * modules/floorf-tests (Files): Likewise.
14776         * modules/floorl-tests (Files): Likewise.
14777         * modules/fnmatch-tests (Files): Likewise.
14778         * modules/fopen-safer-tests (Files): Likewise.
14779         * modules/fopen-tests (Files): Likewise.
14780         * modules/fpending-tests (Files): Likewise.
14781         * modules/fprintf-posix-tests (Files): Likewise.
14782         * modules/fpurge-tests (Files): Likewise.
14783         * modules/freadable-tests (Files): Likewise.
14784         * modules/freadahead-tests (Files): Likewise.
14785         * modules/freading-tests (Files): Likewise.
14786         * modules/freadptr-tests (Files): Likewise.
14787         * modules/freadseek-tests (Files): Likewise.
14788         * modules/freopen-tests (Files): Likewise.
14789         * modules/frexp-nolibm-tests (Files): Likewise.
14790         * modules/frexp-tests (Files): Likewise.
14791         * modules/frexpl-nolibm-tests (Files): Likewise.
14792         * modules/frexpl-tests (Files): Likewise.
14793         * modules/fseek-tests (Files): Likewise.
14794         * modules/fseeko-tests (Files): Likewise.
14795         * modules/fstrcmp-tests (Files): Likewise.
14796         * modules/fsync-tests (Files): Likewise.
14797         * modules/ftell-tests (Files): Likewise.
14798         * modules/ftello-tests (Files): Likewise.
14799         * modules/func-tests (Files): Likewise.
14800         * modules/futimens-tests (Files): Likewise.
14801         * modules/fwritable-tests (Files): Likewise.
14802         * modules/fwriting-tests (Files): Likewise.
14803         * modules/getcwd-tests (Files): Likewise.
14804         * modules/getdate-tests (Files): Likewise.
14805         * modules/getdelim-tests (Files): Likewise.
14806         * modules/getdtablesize-tests (Files): Likewise.
14807         * modules/getgroups-tests (Files): Likewise.
14808         * modules/getline-tests (Files): Likewise.
14809         * modules/getndelim2-tests (Files): Likewise.
14810         * modules/glob-tests (Files): Likewise.
14811         * modules/hash-tests (Files): Likewise.
14812         * modules/i-ring-tests (Files): Likewise.
14813         * modules/iconv-tests (Files): Likewise.
14814         * modules/iconv_open-utf-tests (Files): Likewise.
14815         * modules/idpriv-drop-tests (Files): Likewise.
14816         * modules/idpriv-droptemp-tests (Files): Likewise.
14817         * modules/inet_ntop-tests (Files): Likewise.
14818         * modules/inet_pton-tests (Files): Likewise.
14819         * modules/isblank-tests (Files): Likewise.
14820         * modules/isfinite-tests (Files): Likewise.
14821         * modules/isinf-tests (Files): Likewise.
14822         * modules/isnan-tests (Files): Likewise.
14823         * modules/isnand-nolibm-tests (Files): Likewise.
14824         * modules/isnand-tests (Files): Likewise.
14825         * modules/isnanf-nolibm-tests (Files): Likewise.
14826         * modules/isnanf-tests (Files): Likewise.
14827         * modules/isnanl-nolibm-tests (Files): Likewise.
14828         * modules/isnanl-tests (Files): Likewise.
14829         * modules/lchown-tests (Files): Likewise.
14830         * modules/ldexpl-tests (Files): Likewise.
14831         * modules/link-tests (Files): Likewise.
14832         * modules/linkat-tests (Files): Likewise.
14833         * modules/linked-list-tests (Files): Likewise.
14834         * modules/linkedhash-list-tests (Files): Likewise.
14835         * modules/localename-tests (Files): Likewise.
14836         * modules/lseek-tests (Files): Likewise.
14837         * modules/lstat-tests (Files): Likewise.
14838         * modules/mbmemcasecmp-tests (Files): Likewise.
14839         * modules/mbmemcasecoll-tests (Files): Likewise.
14840         * modules/mbrtowc-tests (Files): Likewise.
14841         * modules/mbscasecmp-tests (Files): Likewise.
14842         * modules/mbscasestr-tests (Files): Likewise.
14843         * modules/mbschr-tests (Files): Likewise.
14844         * modules/mbscspn-tests (Files): Likewise.
14845         * modules/mbsinit-tests (Files): Likewise.
14846         * modules/mbsncasecmp-tests (Files): Likewise.
14847         * modules/mbsnrtowcs-tests (Files): Likewise.
14848         * modules/mbspbrk-tests (Files): Likewise.
14849         * modules/mbspcasecmp-tests (Files): Likewise.
14850         * modules/mbsrchr-tests (Files): Likewise.
14851         * modules/mbsrtowcs-tests (Files): Likewise.
14852         * modules/mbsspn-tests (Files): Likewise.
14853         * modules/mbsstr-tests (Files): Likewise.
14854         * modules/memchr-tests (Files): Likewise.
14855         * modules/memchr2-tests (Files): Likewise.
14856         * modules/memcmp-tests (Files): Likewise.
14857         * modules/memmem-tests (Files): Likewise.
14858         * modules/memrchr-tests (Files): Likewise.
14859         * modules/mkdir-tests (Files): Likewise.
14860         * modules/mkfifo-tests (Files): Likewise.
14861         * modules/mkfifoat-tests (Files): Likewise.
14862         * modules/mknod-tests (Files): Likewise.
14863         * modules/nanosleep-tests (Files): Likewise.
14864         * modules/nl_langinfo-tests (Files): Likewise.
14865         * modules/obstack-printf-tests (Files): Likewise.
14866         * modules/open-tests (Files): Likewise.
14867         * modules/openat-tests (Files): Likewise.
14868         * modules/pipe-filter-gi-tests (Files): Likewise.
14869         * modules/pipe-filter-ii-tests (Files): Likewise.
14870         * modules/pipe2-tests (Files): Likewise.
14871         * modules/popen-safer-tests (Files): Likewise.
14872         * modules/popen-tests (Files): Likewise.
14873         * modules/posixtm-tests (Files): Likewise.
14874         * modules/pread-tests (Files): Likewise.
14875         * modules/printf-frexp-tests (Files): Likewise.
14876         * modules/printf-frexpl-tests (Files): Likewise.
14877         * modules/printf-posix-tests (Files): Likewise.
14878         * modules/priv-set-tests (Files): Likewise.
14879         * modules/quotearg-tests (Files): Likewise.
14880         * modules/random_r-tests (Files): Likewise.
14881         * modules/rawmemchr-tests (Files): Likewise.
14882         * modules/rbtree-list-tests (Files): Likewise.
14883         * modules/rbtree-oset-tests (Files): Likewise.
14884         * modules/rbtreehash-list-tests (Files): Likewise.
14885         * modules/readlink-tests (Files): Likewise.
14886         * modules/remove-tests (Files): Likewise.
14887         * modules/rename-tests (Files): Likewise.
14888         * modules/renameat-tests (Files): Likewise.
14889         * modules/rmdir-tests (Files): Likewise.
14890         * modules/round-tests (Files): Likewise.
14891         * modules/roundf-tests (Files): Likewise.
14892         * modules/roundl-tests (Files): Likewise.
14893         * modules/safe-alloc-tests (Files): Likewise.
14894         * modules/setenv-tests (Files): Likewise.
14895         * modules/sigaction-tests (Files): Likewise.
14896         * modules/signbit-tests (Files): Likewise.
14897         * modules/sleep-tests (Files): Likewise.
14898         * modules/snprintf-posix-tests (Files): Likewise.
14899         * modules/snprintf-tests (Files): Likewise.
14900         * modules/sprintf-posix-tests (Files): Likewise.
14901         * modules/stat-tests (Files): Likewise.
14902         * modules/stat-time-tests (Files): Likewise.
14903         * modules/strcasestr-tests (Files): Likewise.
14904         * modules/strchrnul-tests (Files): Likewise.
14905         * modules/strerror-tests (Files): Likewise.
14906         * modules/striconv-tests (Files): Likewise.
14907         * modules/striconveh-tests (Files): Likewise.
14908         * modules/striconveha-tests (Files): Likewise.
14909         * modules/strsignal-tests (Files): Likewise.
14910         * modules/strstr-tests (Files): Likewise.
14911         * modules/strtod-tests (Files): Likewise.
14912         * modules/strverscmp-tests (Files): Likewise.
14913         * modules/symlink-tests (Files): Likewise.
14914         * modules/symlinkat-tests (Files): Likewise.
14915         * modules/trunc-tests (Files): Likewise.
14916         * modules/truncf-tests (Files): Likewise.
14917         * modules/truncl-tests (Files): Likewise.
14918         * modules/uname-tests (Files): Likewise.
14919         * modules/unicase/cased-tests (Files): Likewise.
14920         * modules/unicase/ignorable-tests (Files): Likewise.
14921         * modules/unicase/locale-language-tests (Files): Likewise.
14922         * modules/unicase/tolower-tests (Files): Likewise.
14923         * modules/unicase/totitle-tests (Files): Likewise.
14924         * modules/unicase/toupper-tests (Files): Likewise.
14925         * modules/unicase/u8-casecmp-tests (Files): Likewise.
14926         * modules/unicase/u8-casecoll-tests (Files): Likewise.
14927         * modules/unicase/u8-casefold-tests (Files): Likewise.
14928         * modules/unicase/u8-is-cased-tests (Files): Likewise.
14929         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
14930         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
14931         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
14932         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
14933         * modules/unicase/u8-tolower-tests (Files): Likewise.
14934         * modules/unicase/u8-totitle-tests (Files): Likewise.
14935         * modules/unicase/u8-toupper-tests (Files): Likewise.
14936         * modules/unicase/u16-casecmp-tests (Files): Likewise.
14937         * modules/unicase/u16-casecoll-tests (Files): Likewise.
14938         * modules/unicase/u16-casefold-tests (Files): Likewise.
14939         * modules/unicase/u16-is-cased-tests (Files): Likewise.
14940         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
14941         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
14942         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
14943         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
14944         * modules/unicase/u16-tolower-tests (Files): Likewise.
14945         * modules/unicase/u16-totitle-tests (Files): Likewise.
14946         * modules/unicase/u16-toupper-tests (Files): Likewise.
14947         * modules/unicase/u32-casecmp-tests (Files): Likewise.
14948         * modules/unicase/u32-casecoll-tests (Files): Likewise.
14949         * modules/unicase/u32-casefold-tests (Files): Likewise.
14950         * modules/unicase/u32-is-cased-tests (Files): Likewise.
14951         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
14952         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
14953         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
14954         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
14955         * modules/unicase/u32-tolower-tests (Files): Likewise.
14956         * modules/unicase/u32-totitle-tests (Files): Likewise.
14957         * modules/unicase/u32-toupper-tests (Files): Likewise.
14958         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
14959         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
14960         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
14961         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
14962         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
14963         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
14964         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
14965         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
14966         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
14967         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
14968         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
14969         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
14970         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
14971         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
14972         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
14973         * modules/unictype/bidicategory-name-tests (Files): Likewise.
14974         * modules/unictype/bidicategory-of-tests (Files): Likewise.
14975         * modules/unictype/bidicategory-test-tests (Files): Likewise.
14976         * modules/unictype/block-list-tests (Files): Likewise.
14977         * modules/unictype/block-of-tests (Files): Likewise.
14978         * modules/unictype/block-test-tests (Files): Likewise.
14979         * modules/unictype/category-C-tests (Files): Likewise.
14980         * modules/unictype/category-Cc-tests (Files): Likewise.
14981         * modules/unictype/category-Cf-tests (Files): Likewise.
14982         * modules/unictype/category-Cn-tests (Files): Likewise.
14983         * modules/unictype/category-Co-tests (Files): Likewise.
14984         * modules/unictype/category-Cs-tests (Files): Likewise.
14985         * modules/unictype/category-L-tests (Files): Likewise.
14986         * modules/unictype/category-Ll-tests (Files): Likewise.
14987         * modules/unictype/category-Lm-tests (Files): Likewise.
14988         * modules/unictype/category-Lo-tests (Files): Likewise.
14989         * modules/unictype/category-Lt-tests (Files): Likewise.
14990         * modules/unictype/category-Lu-tests (Files): Likewise.
14991         * modules/unictype/category-M-tests (Files): Likewise.
14992         * modules/unictype/category-Mc-tests (Files): Likewise.
14993         * modules/unictype/category-Me-tests (Files): Likewise.
14994         * modules/unictype/category-Mn-tests (Files): Likewise.
14995         * modules/unictype/category-N-tests (Files): Likewise.
14996         * modules/unictype/category-Nd-tests (Files): Likewise.
14997         * modules/unictype/category-Nl-tests (Files): Likewise.
14998         * modules/unictype/category-No-tests (Files): Likewise.
14999         * modules/unictype/category-P-tests (Files): Likewise.
15000         * modules/unictype/category-Pc-tests (Files): Likewise.
15001         * modules/unictype/category-Pd-tests (Files): Likewise.
15002         * modules/unictype/category-Pe-tests (Files): Likewise.
15003         * modules/unictype/category-Pf-tests (Files): Likewise.
15004         * modules/unictype/category-Pi-tests (Files): Likewise.
15005         * modules/unictype/category-Po-tests (Files): Likewise.
15006         * modules/unictype/category-Ps-tests (Files): Likewise.
15007         * modules/unictype/category-S-tests (Files): Likewise.
15008         * modules/unictype/category-Sc-tests (Files): Likewise.
15009         * modules/unictype/category-Sk-tests (Files): Likewise.
15010         * modules/unictype/category-Sm-tests (Files): Likewise.
15011         * modules/unictype/category-So-tests (Files): Likewise.
15012         * modules/unictype/category-Z-tests (Files): Likewise.
15013         * modules/unictype/category-Zl-tests (Files): Likewise.
15014         * modules/unictype/category-Zp-tests (Files): Likewise.
15015         * modules/unictype/category-Zs-tests (Files): Likewise.
15016         * modules/unictype/category-and-not-tests (Files): Likewise.
15017         * modules/unictype/category-and-tests (Files): Likewise.
15018         * modules/unictype/category-byname-tests (Files): Likewise.
15019         * modules/unictype/category-name-tests (Files): Likewise.
15020         * modules/unictype/category-none-tests (Files): Likewise.
15021         * modules/unictype/category-of-tests (Files): Likewise.
15022         * modules/unictype/category-or-tests (Files): Likewise.
15023         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15024         * modules/unictype/combining-class-tests (Files): Likewise.
15025         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15026         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15027         * modules/unictype/ctype-blank-tests (Files): Likewise.
15028         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15029         * modules/unictype/ctype-digit-tests (Files): Likewise.
15030         * modules/unictype/ctype-graph-tests (Files): Likewise.
15031         * modules/unictype/ctype-lower-tests (Files): Likewise.
15032         * modules/unictype/ctype-print-tests (Files): Likewise.
15033         * modules/unictype/ctype-punct-tests (Files): Likewise.
15034         * modules/unictype/ctype-space-tests (Files): Likewise.
15035         * modules/unictype/ctype-upper-tests (Files): Likewise.
15036         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15037         * modules/unictype/decimal-digit-tests (Files): Likewise.
15038         * modules/unictype/digit-tests (Files): Likewise.
15039         * modules/unictype/mirror-tests (Files): Likewise.
15040         * modules/unictype/numeric-tests (Files): Likewise.
15041         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15042         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15043         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15044         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15045         Likewise.
15046         * modules/unictype/property-bidi-block-separator-tests (Files):
15047         Likewise.
15048         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
15049         Likewise.
15050         * modules/unictype/property-bidi-common-separator-tests (Files):
15051         Likewise.
15052         * modules/unictype/property-bidi-control-tests (Files): Likewise.
15053         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
15054         Likewise.
15055         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
15056         Likewise.
15057         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
15058         Likewise.
15059         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
15060         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
15061         Likewise.
15062         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
15063         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
15064         Likewise.
15065         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15066         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15067         * modules/unictype/property-bidi-segment-separator-tests (Files):
15068         Likewise.
15069         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15070         * modules/unictype/property-byname-tests (Files): Likewise.
15071         * modules/unictype/property-combining-tests (Files): Likewise.
15072         * modules/unictype/property-composite-tests (Files): Likewise.
15073         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15074         * modules/unictype/property-dash-tests (Files): Likewise.
15075         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15076         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15077         Likewise.
15078         * modules/unictype/property-deprecated-tests (Files): Likewise.
15079         * modules/unictype/property-diacritic-tests (Files): Likewise.
15080         * modules/unictype/property-extender-tests (Files): Likewise.
15081         * modules/unictype/property-format-control-tests (Files): Likewise.
15082         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15083         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15084         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15085         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15086         * modules/unictype/property-hyphen-tests (Files): Likewise.
15087         * modules/unictype/property-id-continue-tests (Files): Likewise.
15088         * modules/unictype/property-id-start-tests (Files): Likewise.
15089         * modules/unictype/property-ideographic-tests (Files): Likewise.
15090         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15091         * modules/unictype/property-ids-trinary-operator-tests (Files):
15092         Likewise.
15093         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15094         * modules/unictype/property-iso-control-tests (Files): Likewise.
15095         * modules/unictype/property-join-control-tests (Files): Likewise.
15096         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15097         * modules/unictype/property-line-separator-tests (Files): Likewise.
15098         * modules/unictype/property-logical-order-exception-tests (Files):
15099         Likewise.
15100         * modules/unictype/property-lowercase-tests (Files): Likewise.
15101         * modules/unictype/property-math-tests (Files): Likewise.
15102         * modules/unictype/property-non-break-tests (Files): Likewise.
15103         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15104         * modules/unictype/property-numeric-tests (Files): Likewise.
15105         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15106         * modules/unictype/property-other-default-ignorable-code-point-tests
15107         (Files): Likewise.
15108         * modules/unictype/property-other-grapheme-extend-tests (Files):
15109         Likewise.
15110         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15111         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15112         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15113         * modules/unictype/property-other-math-tests (Files): Likewise.
15114         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15115         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15116         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15117         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15118         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15119         * modules/unictype/property-private-use-tests (Files): Likewise.
15120         * modules/unictype/property-punctuation-tests (Files): Likewise.
15121         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15122         * modules/unictype/property-radical-tests (Files): Likewise.
15123         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15124         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15125         * modules/unictype/property-space-tests (Files): Likewise.
15126         * modules/unictype/property-terminal-punctuation-tests (Files):
15127         Likewise.
15128         * modules/unictype/property-test-tests (Files): Likewise.
15129         * modules/unictype/property-titlecase-tests (Files): Likewise.
15130         * modules/unictype/property-unassigned-code-value-tests (Files):
15131         Likewise.
15132         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15133         * modules/unictype/property-uppercase-tests (Files): Likewise.
15134         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15135         * modules/unictype/property-white-space-tests (Files): Likewise.
15136         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15137         * modules/unictype/property-xid-start-tests (Files): Likewise.
15138         * modules/unictype/property-zero-width-tests (Files): Likewise.
15139         * modules/unictype/scripts-tests (Files): Likewise.
15140         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15141         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15142         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15143         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15144         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15145         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15146         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15147         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15148         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15149         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15150         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15151         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15152         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15153         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15154         * modules/uninorm/composition-tests (Files): Likewise.
15155         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15156         * modules/uninorm/decomposition-tests (Files): Likewise.
15157         * modules/uninorm/filter-tests (Files): Likewise.
15158         * modules/uninorm/nfc-tests (Files): Likewise.
15159         * modules/uninorm/nfd-tests (Files): Likewise.
15160         * modules/uninorm/nfkc-tests (Files): Likewise.
15161         * modules/uninorm/nfkd-tests (Files): Likewise.
15162         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15163         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15164         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15165         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15166         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15167         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15168         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15169         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15170         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15171         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15172         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15173         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15174         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15175         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15176         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15177         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15178         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15179         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15180         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15181         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15182         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15183         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15184         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15185         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15186         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15187         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15188         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15189         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15190         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15191         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15192         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15193         * modules/uniwidth/u8-width-tests (Files): Likewise.
15194         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15195         * modules/uniwidth/u16-width-tests (Files): Likewise.
15196         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15197         * modules/uniwidth/u32-width-tests (Files): Likewise.
15198         * modules/uniwidth/width-tests (Files): Likewise.
15199         * modules/unlink-tests (Files): Likewise.
15200         * modules/unsetenv-tests (Files): Likewise.
15201         * modules/usleep-tests (Files): Likewise.
15202         * modules/utimens-tests (Files): Likewise.
15203         * modules/utimensat-tests (Files): Likewise.
15204         * modules/vasnprintf-posix-tests (Files): Likewise.
15205         * modules/vasnprintf-tests (Files): Likewise.
15206         * modules/vasprintf-posix-tests (Files): Likewise.
15207         * modules/vasprintf-tests (Files): Likewise.
15208         * modules/vdprintf-posix-tests (Files): Likewise.
15209         * modules/vfprintf-posix-tests (Files): Likewise.
15210         * modules/vprintf-posix-tests (Files): Likewise.
15211         * modules/vsnprintf-posix-tests (Files): Likewise.
15212         * modules/vsnprintf-tests (Files): Likewise.
15213         * modules/vsprintf-posix-tests (Files): Likewise.
15214         * modules/wcrtomb-tests (Files): Likewise.
15215         * modules/wcsnrtombs-tests (Files): Likewise.
15216         * modules/wcsrtombs-tests (Files): Likewise.
15217         * modules/wctype-tests (Files): Likewise.
15218         * modules/wcwidth-tests (Files): Likewise.
15219         * modules/xmemdup0-tests (Files): Likewise.
15220         * modules/xprintf-posix-tests (Files): Likewise.
15221         * modules/xvasprintf-tests (Files): Likewise.
15222
15223 2009-12-24  Eric Blake  <ebb9@byu.net>
15224
15225         test-nanosleep: fix typo
15226         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15227         patch.
15228         Reported by Bruno Haible.
15229
15230 2009-12-24  Bruno Haible  <bruno@clisp.org>
15231
15232         Reduce namespace pollution on glibc systems.
15233         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15234         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15235         systems.
15236         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15237         <getopt.h> on glibc systems.
15238         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15239         systems.
15240         * lib/fcntl.c: Include <unistd.h> here instead.
15241
15242 2009-12-24  Bruno Haible  <bruno@clisp.org>
15243
15244         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15245
15246 2009-12-24  Eric Blake  <ebb9@byu.net>
15247
15248         tests: add signature checks
15249         * tests/signature.h (SIGNATURE_CHECK): New file.
15250         * modules/atexit-tests (Files): Use it.
15251         * modules/btowc-tests (Files): Likewise.
15252         * modules/canonicalize-lgpl-tests (Files): Likewise.
15253         * modules/ceilf-tests (Files): Likewise.
15254         * modules/ceill-tests (Files): Likewise.
15255         * modules/chown-tests (Files): Likewise.
15256         * modules/dprintf-posix-tests (Files): Likewise.
15257         * modules/dup2-tests (Files): Likewise.
15258         * modules/dup3-tests (Files): Likewise.
15259         * modules/duplocale-tests (Files): Likewise.
15260         * modules/fchdir-tests (Files): Likewise.
15261         * modules/fcntl-tests (Files): Likewise.
15262         * modules/fdopendir-tests (Files): Likewise.
15263         * modules/fflush-tests (Files): Likewise.
15264         * modules/flock-tests (Files): Likewise.
15265         * modules/floorf-tests (Files): Likewise.
15266         * modules/floorl-tests (Files): Likewise.
15267         * modules/fnmatch-tests (Files): Likewise.
15268         * modules/fopen-tests (Files): Likewise.
15269         * modules/fprintf-posix-tests (Files): Likewise.
15270         * modules/freopen-tests (Files): Likewise.
15271         * modules/frexp-nolibm-tests (Files): Likewise.
15272         * modules/frexp-tests (Files): Likewise.
15273         * modules/frexpl-nolibm-tests (Files): Likewise.
15274         * modules/frexpl-tests (Files): Likewise.
15275         * modules/fseek-tests (Files): Likewise.
15276         * modules/fseeko-tests (Files): Likewise.
15277         * modules/fsync-tests (Files): Likewise.
15278         * modules/ftell-tests (Files): Likewise.
15279         * modules/ftello-tests (Files): Likewise.
15280         * modules/futimens-tests (Files): Likewise.
15281         * modules/getaddrinfo-tests (Files): Likewise.
15282         * modules/getcwd-tests (Files): Likewise.
15283         * modules/getdelim-tests (Files): Likewise.
15284         * modules/getdtablesize-tests (Files): Likewise.
15285         * modules/getgroups-tests (Files): Likewise.
15286         * modules/gethostname-tests (Files): Likewise.
15287         * modules/getline-tests (Files): Likewise.
15288         * modules/getopt-posix-tests (Files): Likewise.
15289         * modules/gettimeofday-tests (Files): Likewise.
15290         * modules/glob-tests (Files): Likewise.
15291         * modules/iconv-tests (Files): Likewise.
15292         * modules/inet_ntop-tests (Files): Likewise.
15293         * modules/inet_pton-tests (Files): Likewise.
15294         * modules/isblank-tests (Files): Likewise.
15295         * modules/lchown-tests (Files): Likewise.
15296         * modules/ldexpl-tests (Files): Likewise.
15297         * modules/link-tests (Files): Likewise.
15298         * modules/linkat-tests (Files): Likewise.
15299         * modules/lseek-tests (Files): Likewise.
15300         * modules/lstat-tests (Files): Likewise.
15301         * modules/mbrtowc-tests (Files): Likewise.
15302         * modules/mbsinit-tests (Files): Likewise.
15303         * modules/mbsnrtowcs-tests (Files): Likewise.
15304         * modules/mbsrtowcs-tests (Files): Likewise.
15305         * modules/memchr-tests (Files): Likewise.
15306         * modules/memcmp-tests (Files): Likewise.
15307         * modules/memmem-tests (Files): Likewise.
15308         * modules/memrchr-tests (Files): Likewise.
15309         * modules/mkdir-tests (Files): Likewise.
15310         * modules/mkfifo-tests (Files): Likewise.
15311         * modules/mkfifoat-tests (Files): Likewise.
15312         * modules/mknod-tests (Files): Likewise.
15313         * modules/nanosleep-tests (Files): Likewise.
15314         * modules/nl_langinfo-tests (Files): Likewise.
15315         * modules/obstack-printf-tests (Files): Likewise.
15316         * modules/open-tests (Files): Likewise.
15317         * modules/openat-tests (Files): Likewise.
15318         * modules/perror-tests (Files): Likewise.
15319         * modules/pipe2-tests (Files): Likewise.
15320         * modules/poll-tests (Files): Likewise.
15321         * modules/popen-tests (Files): Likewise.
15322         * modules/posix_spawn-tests (Files): Likewise.
15323         * modules/posix_spawnp-tests (Files): Likewise.
15324         * modules/pread-tests (Files): Likewise.
15325         * modules/printf-posix-tests (Files): Likewise.
15326         * modules/pty-tests (Files): Likewise.
15327         * modules/random_r-tests (Files): Likewise.
15328         * modules/rawmemchr-tests (Files): Likewise.
15329         * modules/readlink-tests (Files): Likewise.
15330         * modules/remove-tests (Files): Likewise.
15331         * modules/rename-tests (Files): Likewise.
15332         * modules/renameat-tests (Files): Likewise.
15333         * modules/rmdir-tests (Files): Likewise.
15334         * modules/round-tests (Files): Likewise.
15335         * modules/roundf-tests (Files): Likewise.
15336         * modules/roundl-tests (Files): Likewise.
15337         * modules/select-tests (Files): Likewise.
15338         * modules/setenv-tests (Files): Likewise.
15339         * modules/sigaction-tests (Files): Likewise.
15340         * modules/sleep-tests (Files): Likewise.
15341         * modules/snprintf-posix-tests (Files): Likewise.
15342         * modules/snprintf-tests (Files): Likewise.
15343         * modules/sprintf-posix-tests (Files): Likewise.
15344         * modules/stat-tests (Files): Likewise.
15345         * modules/strcasestr-tests (Files): Likewise.
15346         * modules/strchrnul-tests (Files): Likewise.
15347         * modules/strerror-tests (Files): Likewise.
15348         * modules/strsignal-tests (Files): Likewise.
15349         * modules/strstr-tests (Files): Likewise.
15350         * modules/strtod-tests (Files): Likewise.
15351         * modules/strverscmp-tests (Files): Likewise.
15352         * modules/symlink-tests (Files): Likewise.
15353         * modules/symlinkat-tests (Files): Likewise.
15354         * modules/times-tests (Files): Likewise.
15355         * modules/trunc-tests (Files): Likewise.
15356         * modules/truncf-tests (Files): Likewise.
15357         * modules/truncl-tests (Files): Likewise.
15358         * modules/tsearch-tests (Files): Likewise.
15359         * modules/uname-tests (Files): Likewise.
15360         * modules/unlink-tests (Files): Likewise.
15361         * modules/unsetenv-tests (Files): Likewise.
15362         * modules/usleep-tests (Files): Likewise.
15363         * modules/utimensat-tests (Files): Likewise.
15364         * modules/vasprintf-tests (Files): Likewise.
15365         * modules/vdprintf-posix-tests (Files): Likewise.
15366         * modules/vfprintf-posix-tests (Files): Likewise.
15367         * modules/vprintf-posix-tests (Files): Likewise.
15368         * modules/vsnprintf-posix-tests (Files): Likewise.
15369         * modules/vsnprintf-tests (Files): Likewise.
15370         * modules/vsprintf-posix-tests (Files): Likewise.
15371         * modules/wcrtomb-tests (Files): Likewise.
15372         * modules/wcsnrtombs-tests (Files): Likewise.
15373         * modules/wcsrtombs-tests (Files): Likewise.
15374         * modules/wcwidth-tests (Files): Likewise.
15375         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15376         * tests/test-isinf.c (isinf): Likewise.
15377         * tests/test-isnan.c (isnan): Likewise.
15378         * tests/test-signbit.c (signbit): Likewise.
15379         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15380         declaration, either as macro or with correct signature.
15381         (select): Ensure function under test is declared with correct
15382         signature in correct header.
15383         * tests/test-atexit.c (atexit): Likewise.
15384         * tests/test-btowc.c (btowc): Likewise.
15385         * tests/test-canonicalize-lgpl.c (realpath)
15386         (canonicalize_file_name): Likewise.
15387         * tests/test-ceilf1.c (ceilf): Likewise.
15388         * tests/test-ceill.c (ceill): Likewise.
15389         * tests/test-chown.c (chown): Likewise.
15390         * tests/test-dprintf-posix.c (dprintf): Likewise.
15391         * tests/test-dup2.c (dup2): Likewise.
15392         * tests/test-dup3.c (dup3): Likewise.
15393         * tests/test-duplocale.c (duplocale): Likewise.
15394         * tests/test-fchdir.c (fchdir): Likewise.
15395         * tests/test-fchownat.c (fchownat): Likewise.
15396         * tests/test-fcntl.c (fcntl): Likewise.
15397         * tests/test-fdopendir.c (fdopendir): Likewise.
15398         * tests/test-fflush.c (fflush): Likewise.
15399         * tests/test-flock.c (flock): Likewise.
15400         * tests/test-floorf1.c (floorf): Likewise.
15401         * tests/test-floorl.c (floorl): Likewise.
15402         * tests/test-fnmatch.c (fnmatch): Likewise.
15403         * tests/test-fopen.c (fopen): Likewise.
15404         * tests/test-fprintf-posix.c (fprintf): Likewise.
15405         * tests/test-freopen.c (freopen): Likewise.
15406         * tests/test-frexp.c (frexp): Likewise.
15407         * tests/test-frexpl.c (frexpl): Likewise.
15408         * tests/test-fseek.c (fseek): Likewise.
15409         * tests/test-fseeko.c (fseeko): Likewise.
15410         * tests/test-fstatat.c (fstatat): Likewise.
15411         * tests/test-fsync.c (fsync): Likewise.
15412         * tests/test-ftell.c (ftell): Likewise.
15413         * tests/test-ftello.c (ftello): Likewise.
15414         * tests/test-futimens.c (futimens): Likewise.
15415         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
15416         (gai_strerror): Likewise.
15417         * tests/test-getcwd.c (getcwd): Likewise.
15418         * tests/test-getdelim.c (getdelim): Likewise.
15419         * tests/test-getdtablesize.c (getdtablesize): Likewise.
15420         * tests/test-getgroups.c (getgroups): Likewise.
15421         * tests/test-gethostname.c (gethostname): Likewise.
15422         * tests/test-getline.c (getline): Likewise.
15423         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
15424         Likewise.
15425         * tests/test-gettimeofday.c (gettimeofday): Likewise.
15426         * tests/test-glob.c (glob, globfree): Likewise.
15427         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
15428         * tests/test-inet_ntop.c (inet_ntop): Likewise.
15429         * tests/test-inet_pton.c (inet_pton): Likewise.
15430         * tests/test-isblank.c (isblank): Likewise.
15431         * tests/test-lchown.c (lchown): Likewise.
15432         * tests/test-ldexpl.c (ldexpl): Likewise.
15433         * tests/test-link.c (link): Likewise.
15434         * tests/test-linkat.c (linkat): Likewise.
15435         * tests/test-lseek.c (lseek): Likewise.
15436         * tests/test-lstat.c (lstat): Likewise.
15437         * tests/test-mbrtowc.c (mbrtowc): Likewise.
15438         * tests/test-mbsinit.c (mbsinit): Likewise.
15439         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
15440         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
15441         * tests/test-memchr.c (memchr): Likewise.
15442         * tests/test-memcmp.c (memcmp): Likewise.
15443         * tests/test-memmem.c (memmem): Likewise.
15444         * tests/test-memrchr.c (memrchr): Likewise.
15445         * tests/test-mkdir.c (mkdir): Likewise.
15446         * tests/test-mkdirat.c (mkdirat): Likewise.
15447         * tests/test-mkfifo.c (mkfifo): Likewise.
15448         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
15449         * tests/test-mknod.c (mknod): Likewise.
15450         * tests/test-nanosleep.c (nanosleep): Likewise.
15451         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15452         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15453         Likewise.
15454         * tests/test-open.c (open): Likewise.
15455         * tests/test-openat.c (openat): Likewise.
15456         * tests/test-perror.c (perror): Likewise.
15457         * tests/test-pipe2.c (pipe2): Likewise.
15458         * tests/test-poll.c (poll): Likewise.
15459         * tests/test-popen.c (popen, pclose): Likewise.
15460         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
15461         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
15462         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
15463         (posix_spawn_file_actions_destroy)
15464         (posix_spawn_file_actions_addclose)
15465         (posix_spawn_file_actions_addopen)
15466         (posix_spawn_file_actions_adddup2): Likewise.
15467         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
15468         * tests/test-pread.c (pread): Likewise.
15469         * tests/test-printf-posix.c (printf): Likewise.
15470         * tests/test-pty.c (openpty, forkpty): Likewise.
15471         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
15472         (random_r): Likewise.
15473         * tests/test-rawmemchr.c (rawmemchr): Likewise.
15474         * tests/test-readlink.c (readlink): Likewise.
15475         * tests/test-remove.c (remove): Likewise.
15476         * tests/test-rename.c (rename): Likewise.
15477         * tests/test-renameat.c (renameat): Likewise.
15478         * tests/test-rmdir.c (rmdir): Likewise.
15479         * tests/test-round1.c (round): Likewise.
15480         * tests/test-roundf1.c (roundf): Likewise.
15481         * tests/test-roundl.c (roundl): Likewise.
15482         * tests/test-setenv.c (setenv): Likewise.
15483         * tests/test-sigaction.c (sigaction): Likewise.
15484         * tests/test-sleep.c (sleep): Likewise.
15485         * tests/test-snprintf.c (snprintf): Likewise.
15486         * tests/test-sprintf-posix.c (sprintf): Likewise.
15487         * tests/test-stat.c (stat): Likewise.
15488         * tests/test-stpncpy.c (stpncpy): Likewise.
15489         * tests/test-strcasestr.c (strcasestr): Likewise.
15490         * tests/test-strchrnul.c (strchrnul): Likewise.
15491         * tests/test-strerror.c (strerror): Likewise.
15492         * tests/test-strsignal.c (strsignal): Likewise.
15493         * tests/test-strstr.c (strstr): Likewise.
15494         * tests/test-strtod.c (strtod): Likewise.
15495         * tests/test-strverscmp.c (strverscmp): Likewise.
15496         * tests/test-symlink.c (symlink): Likewise.
15497         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
15498         * tests/test-times.c (times): Likewise.
15499         * tests/test-trunc1.c (trunc): Likewise.
15500         * tests/test-truncf1.c (truncf): Likewise.
15501         * tests/test-truncl.c (truncl): Likewise.
15502         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
15503         Likewise.
15504         * tests/test-uname.c (uname): Likewise.
15505         * tests/test-unlink.c (unlink): Likewise.
15506         * tests/test-unlinkat.c (unlinkat): Likewise.
15507         * tests/test-unsetenv.c (unsetenv): Likewise.
15508         * tests/test-usleep.c (usleep): Likewise.
15509         * tests/test-utimensat.c (utimensat): Likewise.
15510         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
15511         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
15512         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
15513         * tests/test-vprintf-posix.c (vprintf): Likewise.
15514         * tests/test-vsnprintf.c (vsnprintf): Likewise.
15515         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
15516         * tests/test-wcrtomb.c (wcrtomb): Likewise.
15517         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
15518         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
15519         * tests/test-wcwidth.c (wcwidth): Likewise.
15520
15521         build: pull in conditional headers during GNULIB_POSIXCHECK
15522         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
15523         definitions from any conditionally-included headers.
15524         * lib/stdlib.in.h (includes): Likewise.
15525         * lib/unistd.in.h (includes): Likewise.
15526
15527 2009-12-24  Bruno Haible  <bruno@clisp.org>
15528
15529         * tests/test-argv-iter.c: Include header file being tested immediately
15530         after config.h.
15531         * tests/test-base64.c: Likewise.
15532         * tests/test-flock.c: Likewise.
15533         * tests/test-fsync.c: Likewise.
15534         * tests/test-getdate.c: Likewise.
15535         * tests/test-getndelim2.c: Likewise.
15536         * tests/test-isfinite.c: Likewise.
15537         * tests/test-isinf.c: Likewise.
15538         * tests/test-strerror.c: Likewise.
15539         * tests/test-strsignal.c: Likewise.
15540
15541 2009-12-23  Eric Blake  <ebb9@byu.net>
15542
15543         unistd: work around cygwin bug
15544         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
15545         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
15546         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15547
15548 2009-12-23  Bruno Haible  <bruno@clisp.org>
15549
15550         localename: More tests.
15551         * tests/test-localename.c (SIZEOF): New macro.
15552         (categories): New variable.
15553         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
15554         test_locale_name_default): Add test w.r.t. thread locale.
15555         (test_locale_name_thread): New function.
15556         (main): Invoke it.
15557
15558         localename: Make aware of thread locale.
15559         * lib/localename.h (gl_locale_name_thread): New declaration.
15560         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
15561         behaviour with respect to thread locale.
15562         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
15563         <langinfo.h>, glthread/lock.h.
15564         (SIZE_BITS): New macro.
15565         (string_hash): New function.
15566         (struct hash_node): New type.
15567         (HASH_TABLE_SIZE): New macro.
15568         (struniq_hash_table, struniq_lock): New variables.
15569         (struniq): New function.
15570         (gl_locale_name_thread): New function.
15571         (gl_locale_name): Invoke it.
15572         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
15573         * modules/localename (Depends-on): Add lock.
15574         Reported by Mike Gran <spk121@yahoo.com>.
15575
15576 2009-12-23  Eric Blake  <ebb9@byu.net>
15577
15578         va-args: new module
15579         * modules/va-args: New file.
15580         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
15581         * MODULES.html.sh (Core language properties): Mention it.
15582
15583         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
15584         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
15585         named alias for __attribute__((__unused__)).
15586         * lib/chown.c: Update client.
15587         * lib/fchmodat.c: Likewise.
15588         * lib/fts.c: Likewise.
15589         * lib/getdate.y: Likewise.
15590         * lib/getgroups.c: Likewise.
15591         * lib/getopt.c: Likewise.
15592         * lib/getugroups.c: Likewise.
15593         * lib/mkdir.c: Likewise.
15594         * lib/mkfifo.c: Likewise.
15595         * lib/mkfifoat.c: Likewise.
15596         * lib/mknod.c: Likewise.
15597         * lib/mknodat.c: Likewise.
15598         * lib/readlink.c: Likewise.
15599         * lib/se-context.in.h: Likewise.
15600         * lib/se-selinux.in.h: Likewise.
15601         * lib/sockets.c: Likewise.
15602         * lib/symlink.c: Likewise.
15603         * lib/symlinkat.c: Likewise.
15604         * lib/unicodeio.c: Likewise.
15605         * lib/unistr.h: Likewise.
15606         * tests/test-areadlink.c: Likewise.
15607         * tests/test-areadlinkat.c: Likewise.
15608         * tests/test-filenamecat.c: Likewise.
15609         * tests/test-fseeko.c: Likewise.
15610         * tests/test-ftello.c: Likewise.
15611         * tests/test-getdate.c: Likewise.
15612         * tests/test-getgroups.c: Likewise.
15613         * tests/test-gethostname.c: Likewise.
15614         * tests/test-quotearg.c: Likewise.
15615         * tests/test-version-etc.c: Likewise.
15616         * tests/test-xalloc-die.c: Likewise.
15617         * tests/test-xfprintf-posix.c: Likewise.
15618         * tests/test-xprintf-posix.c: Likewise.
15619         * tests/test-xvasprintf.c: Likewise.
15620
15621         tests: avoid compiler warnings
15622         * tests/test-fcntl.c (main): Delete unused parameters.
15623         * tests/test-freopen-safer.c (main): Likewise.
15624         * tests/test-xalloc-die.c (main): Mark unused parameters.
15625         * tests/test-fseeko.c (main): Likewise.
15626         * tests/test-ftello.c (main): Likewise.
15627         * tests/test-nanosleep.c (main): Avoid declaration warning.
15628         * tests/test-sleep.c (main): Likewise.
15629         * tests/test-unsetenv.c (main): Silence warning about string
15630         literal.
15631         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15632
15633 2009-12-23  Bruno Haible  <bruno@clisp.org>
15634
15635         * tests/test-localename.c (test_locale_name): New function, extracted
15636         from main. Also test mixed situations.
15637         (test_locale_name_posix, test_locale_name_environ,
15638         test_locale_name_default): New functions.
15639         (main): Invoke them all.
15640         * modules/localename-tests (configure.ac): Test for newlocale.
15641
15642 2009-12-23  Bruno Haible  <bruno@clisp.org>
15643
15644         unistd: Ensure getcwd gets declared before being overridden.
15645         * lib/unistd.in.h: Conditionally include <io.h>.
15646
15647 2009-12-22  Bruno Haible  <bruno@clisp.org>
15648
15649         wchar: Diagnose broken combination of glibc and gcc versions and flags.
15650         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
15651         (gl_WCHAR_H): Invoke it.
15652         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
15653         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
15654         Reported by Karl Berry <karl@freefriends.org>.
15655
15656 2009-12-22  Eric Blake  <ebb9@byu.net>
15657
15658         math, unistd: avoid redundant includes
15659         * lib/math.in.h (isnan): No need to re-include <math.h>.
15660         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
15661
15662         getsubopt: work around cygwin bug
15663         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
15664         avoid conflicting with system getsubopt.
15665         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
15666         bug.
15667
15668         getopt: synchronize from glibc
15669         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
15670         parameter order.  Adjust all callers.
15671         (_getopt_internal_r, main): Adjust quoting in error messages.
15672         Drop considerations for outdated POSIX 1003.2 error message.
15673         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
15674         callers.
15675         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
15676
15677         test-getopt: test stderr behavior
15678         * modules/getopt-posix-tests (Depends-on): Add dup2.
15679         * tests/test-getopt.c (ASSERT): Avoid stderr.
15680         (main): Move stderr to a temporary file.
15681         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
15682         Instead, add parameter to inform caller if output occurred.
15683         (test_getopt): Adjust all existing tests to expect silence, and
15684         add new tests of leading ":".
15685         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15686         glibc shortcomings with leading "-:" or "+:" in optstring.
15687         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15688         Likewise.
15689         * doc/posix-functions/getopt.texi (getopt): Likewise.
15690
15691         test-getopt: enhance test
15692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
15693         supports optind=0.
15694         * tests/test-getopt.c (OPTIND_MIN): Move...
15695         * tests/test-getopt.h (OPTIND_MIN): ...here.
15696         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
15697         Require that optind=0 works, since modern BSD supports it in
15698         addition to optreset, and since coreutils expects it.
15699         (test_getopt_long_only): New test.
15700         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15701         glibc shortcomings with 'W;', and enforcement of optind=0.
15702         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15703         Likewise.
15704
15705 2009-12-21  Bruno Haible  <bruno@clisp.org>
15706
15707         localename: Improvements for MacOS X and Cygwin.
15708         * lib/localename.h (gl_locale_name_environ): New declaration.
15709         * lib/localename.c (gl_locale_name_environ): New function, extracted from
15710         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
15711         (gl_locale_name_posix): Invoke it.
15712         (gl_locale_name_default): Add comments. Use Windows native API also on
15713         Cygwin.
15714
15715 2009-12-21  Bruno Haible  <bruno@clisp.org>
15716
15717         Update list of Win32 locale ids.
15718         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
15719         (LANG_SAMI): Renamed from LANG_SAAMI.
15720         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
15721         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
15722         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
15723         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
15724         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
15725         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
15726         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
15727         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
15728         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
15729         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
15730         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
15731         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
15732         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
15733         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
15734         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
15735         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
15736         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
15737         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
15738         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
15739         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
15740         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
15741         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
15742         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
15743         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
15744         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
15745         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
15746         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
15747         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
15748         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
15749         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
15750         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
15751         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
15752         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
15753         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
15754         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
15755         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
15756         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
15757         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
15758         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
15759         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
15760         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
15761         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
15762         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
15763         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
15764         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
15765         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
15766         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
15767         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
15768         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
15769         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
15770         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
15771         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
15772         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
15773         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
15774         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
15775         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
15776         Add more languages and countries for Sami, Sorbian. Add more countries
15777         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
15778         for Pashto. Change country for Syriac, Tswana.
15779
15780 2009-12-21  Eric Blake  <ebb9@byu.net>
15781
15782         test-utimens: avoid spurious failure
15783         * tests/test-chown.h (nap): Factor...
15784         * tests/nap.h: ...into new file.
15785         * tests/test-lchown.h (nap): Avoid duplication.
15786         * tests/test-utimens-common.h (nap): Use shared implementation,
15787         necessary on file systems with 1-second resolution.
15788         * modules/chown-tests (Files): Include new file.
15789         * modules/fdutimensat-tests (Files): Likewise.
15790         * modules/futimens-tests (Files): Likewise.
15791         * modules/lchown-tests (Files): Likewise.
15792         * modules/openat-tests (Files): Likewise.
15793         * modules/utimens-tests (Files): Likewise.
15794         * modules/utimensat-tests (Files): Likewise.
15795
15796 2009-12-19  Eric Blake  <ebb9@byu.net>
15797
15798         futimens, utimensat: work around Linux bug
15799         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
15800         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15801         * lib/utimensat.c (rpl_utimensat): Work around it.
15802         * lib/futimens.c (rpl_futimens): Adjust comment.
15803
15804         utimens: work around Linux ctime bug
15805         * lib/utimens.c (detect_ctime_bug): New helper function.
15806         (update_timespec): Differentiate between workaround needed for
15807         this bug vs. what is needed for systems that lack utimensat.
15808         (fdutimens, lutimens): Work around bug.
15809
15810         utimens: check for ctime update
15811         * tests/test-utimens-common.h (check_ctime): Define.
15812         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
15813         * tests/test-futimens.h (test_futimens): Likewise.
15814         * tests/test-lutimens.h (test_lutimens): Likewise.
15815         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15816         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15817
15818 2009-12-19  Bruno Haible  <bruno@clisp.org>
15819
15820         dprintf-posix: Check against memory leak fixed on 2009-12-15.
15821         * tests/test-dprintf-posix2.sh: New file.
15822         * tests/test-dprintf-posix2.c: New file.
15823         * modules/dprintf-posix-tests (Files): Add them.
15824         (configure.ac): Check for getrlimit and setrlimit.
15825         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15826
15827 2009-12-19  Bruno Haible  <bruno@clisp.org>
15828
15829         fprintf-posix: Check against memory leak fixed on 2009-12-15.
15830         * tests/test-fprintf-posix3.sh: New file.
15831         * tests/test-fprintf-posix3.c: New file.
15832         * modules/fprintf-posix-tests (Files): Add them.
15833         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15834
15835 2009-12-19  Eric Blake  <ebb9@byu.net>
15836
15837         dirfd: fix prototype
15838         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
15839         * lib/dirfd.c (dirfd): Likewise.
15840
15841         canonicalize: reduce memory usage
15842         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
15843         allocation to size.
15844         Reported by Solar Designer <solar@openwall.com>.
15845
15846 2009-12-19  Bruno Haible  <bruno@clisp.org>
15847
15848         New module attribute 'Applicability'.
15849         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
15850         * gnulib-tool: New option --extract-applicability.
15851         (func_usage): Document it.
15852         (sed_extract_prog): Recognize it.
15853         (func_get_applicability): New function.
15854         (func_import): Generalize handling of 'link-warning' module.
15855         * modules/link-warning (Applicability): New section.
15856         * modules/arg-nonnull (Applicability): New section.
15857         Repoted by Simon Josefsson <simon@josefsson.org>.
15858
15859 2009-12-19  Bruno Haible  <bruno@clisp.org>
15860
15861         fflush: tweak
15862         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
15863         * lib/fseeko.c (rpl_fseeko): Likewise.
15864
15865 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
15866
15867         * lib/gl_list.h: Fix typo in comment.
15868
15869 2009-12-16  Eric Blake  <ebb9@byu.net>
15870
15871         fcntl: use to simplify other modules
15872         * modules/cloexec (Depends-on): Add fcntl.
15873         * modules/fchdir (Depends-on): Likewise.
15874         * modules/fd-safer-flag (Depends-on): Likewise.
15875         * modules/unistd-safer (Depends-on): Likewise.
15876         * modules/dup3 (configure.ac): Set module indicator.
15877         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
15878         missing.
15879         * lib/fchdir.c (_gl_register_dup): Fix comment.
15880         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
15881         * lib/dup-safer.c (dup_safer): Likewise.
15882         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
15883         * lib/dup3.c (dup3): Likewise.
15884         * tests/test-fchdir.c (main): Enhance test.
15885         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
15886
15887         fcntl: port portions of fcntl to mingw
15888         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
15889         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
15890         replacement for mingw.
15891         * modules/fcntl (Description): Update.
15892         (Depends-on): Add dup2.
15893         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
15894         * modules/fcntl-h (Makefile.am): Substitute it.
15895         * lib/fcntl.in.h (fcntl): Update declaration.
15896         (F_DUPFD, F_GETFD): New macros, when needed.
15897         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15898         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
15899         * tests/test-fcntl.c (check_flags, main): Enhance test for items
15900         we now guarantee.
15901
15902         fcntl: work around cygwin bug in F_DUPFD
15903         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
15904         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
15905         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
15906         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
15907         * doc/posix-functions/fcntl.texi (fcntl): Document it.
15908
15909         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
15910         * modules/fcntl (Files): List new files.
15911         (configure.ac): Run a test.
15912         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
15913         * lib/fcntl.c (rpl_fcntl): Likewise.
15914         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
15915         (gl_FCNTL_H): Always replace fcntl.h.
15916         * modules/fcntl-h (Makefile.am): Substitute witnesses.
15917         * lib/fcntl.in.h (fcntl): Declare replacement.
15918         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
15919         needed, plus a witness.
15920         * doc/posix-functions/fcntl.texi (fcntl): Document this.
15921         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15922         * tests/test-fcntl.c: New file.
15923         * modules/fcntl-tests: Likewise.
15924
15925         binary-io: avoid potential compilation warning
15926         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
15927         directives.
15928
15929         fflush: avoid compilation error on NetBSD
15930         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
15931         between off_t and fpos_t, since the latter is sometimes a struct.
15932         * lib/fseeko.c (rpl_fseeko): Likewise.
15933         Reported by Alexander Nasonov <alnsn@yandex.ru>.
15934
15935 2009-12-15  Eric Blake  <ebb9@byu.net>
15936
15937         fcntl-h, stdio, sys_ioctl: fix declarations
15938         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
15939         function must not take arguments.
15940         * lib/sys_ioctl.in.h (ioctl): Likewise.
15941         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
15942         (open): Add a link warning.
15943
15944 2009-12-15  Jim Meyering  <meyering@redhat.com>
15945
15946         areadlink, areadlink-with-size: relax license to LGPLv2+
15947         * modules/areadlink (License): Relax to LGPLv2+.
15948         * modules/areadlink-with-size (License): Likewise.
15949
15950 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
15951             Bruno Haible  <bruno@clisp.org>
15952
15953         *printf: Fix memory leak.
15954         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
15955         * lib/vfprintf.c (vfprintf): Likewise.
15956         * lib/dprintf.c (dprintf): Likewise.
15957         * lib/vdprintf.c (vdprintf): Likewise.
15958
15959 2009-12-14  Eric Blake  <ebb9@byu.net>
15960
15961         accept4: adjust module dependencies
15962         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
15963
15964         utimens: one more try at avoiding compiler warning
15965         * lib/utimens.c (lutimens): Lower scope of result.
15966
15967 2009-12-13  Bruno Haible  <bruno@clisp.org>
15968
15969         Move the malloc checking from module 'list' to new module 'xlist'.
15970         * modules/xlist: New file.
15971         * lib/gl_xlist.h: New file.
15972         * lib/gl_xlist.c: New file.
15973         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
15974         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
15975         gl_list_add_last, gl_list_add_before, gl_list_add_after,
15976         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
15977         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
15978         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
15979         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
15980         gl_sortedlist_nx_add): New declarations.
15981         (struct gl_list_implementation): Rename and change methods accordingly.
15982         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
15983         (gl_list_nx_create): Renamed from gl_list_create.
15984         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
15985         (gl_list_nx_set_at): Renamed from gl_list_set_at.
15986         (gl_list_nx_add_first): Renamed from gl_list_add_first.
15987         (gl_list_nx_add_last): Renamed from gl_list_add_last.
15988         (gl_list_nx_add_before): Renamed from gl_list_add_before.
15989         (gl_list_nx_add_after): Renamed from gl_list_add_after.
15990         (gl_list_nx_add_at): Renamed from gl_list_add_at.
15991         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
15992         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
15993         gl_list_create_empty.
15994         (gl_list_nx_create): Renamed from gl_list_create.
15995         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
15996         (gl_list_nx_set_at): Renamed from gl_list_set_at.
15997         (gl_list_nx_add_first): Renamed from gl_list_add_first.
15998         (gl_list_nx_add_last): Renamed from gl_list_add_last.
15999         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16000         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16001         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16002         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16003         * lib/gl_array_list.c: Don't include xalloc.h.
16004         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16005         NULL upon out-of-memory.
16006         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16007         out-of-memory.
16008         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16009         Change return type to 'int'.
16010         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16011         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16012         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16013         upon out-of-memory.
16014         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16015         upon out-of-memory.
16016         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16017         upon out-of-memory.
16018         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16019         upon out-of-memory.
16020         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16021         out-of-memory.
16022         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16023         Update.
16024         (gl_array_list_implementation): Update.
16025         * lib/gl_carray_list.c: Don't include xalloc.h.
16026         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16027         Return NULL upon out-of-memory.
16028         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16029         out-of-memory.
16030         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16031         Change return type to 'int'.
16032         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16033         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16034         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16035         upon out-of-memory.
16036         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16037         upon out-of-memory.
16038         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16039         out-of-memory.
16040         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16041         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16042         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16043         Update.
16044         (gl_carray_list_implementation): Update.
16045         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
16046         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
16047         gl_linked_create_empty. Return NULL upon out-of-memory.
16048         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
16049         out-of-memory.
16050         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
16051         Change return type to 'int'. Return -1 upon out-of-memory.
16052         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
16053         out-of-memory.
16054         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
16055         upon out-of-memory.
16056         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
16057         upon out-of-memory.
16058         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
16059         NULL upon out-of-memory.
16060         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
16061         upon out-of-memory.
16062         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
16063         out-of-memory.
16064         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16065         Update.
16066         * lib/gl_linked_list.c: Don't include xalloc.h.
16067         (gl_linked_list_implementation): Update.
16068         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16069         (add_to_bucket): Change return type to 'int'.
16070         (gl_linkedhash_list_implementation): Update.
16071         * lib/gl_anytree_list1.h (free_subtree): New function.
16072         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16073         gl_tree_create_empty. Return NULL upon out-of-memory.
16074         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16075         Change return type to 'int'. Return -1 upon out-of-memory.
16076         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16077         out-of-memory.
16078         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16079         (gl_tree_remove_node): New function, moved here from
16080         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16081         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16082         Update.
16083         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16084         malloc, not xmalloc. Return NULL upon out-of-memory.
16085         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16086         out-of-memory.
16087         (gl_tree_remove_node_from_tree): New function, extracted from
16088         gl_tree_remove_node.
16089         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16090         upon out-of-memory.
16091         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16092         out-of-memory.
16093         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16094         upon out-of-memory.
16095         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16096         upon out-of-memory.
16097         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16098         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16099         not xmalloc. Return NULL upon out-of-memory.
16100         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16101         out-of-memory.
16102         (gl_tree_remove_node_from_tree): New function, extracted from
16103         gl_tree_remove_node.
16104         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16105         upon out-of-memory.
16106         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16107         out-of-memory.
16108         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16109         upon out-of-memory.
16110         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16111         upon out-of-memory.
16112         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16113         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16114         gl_anytree_list1.h before gl_anyavltree_list2.h.
16115         (gl_avltree_list_implementation): Update.
16116         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16117         gl_anytree_list1.h before gl_anyavltree_list2.h.
16118         (gl_rbtree_list_implementation): Update.
16119         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16120         Change return type to 'int'. Return -1 upon out-of-memory. Use
16121         __builtin_expect.
16122         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16123         (gl_avltreehash_list_implementation): Update.
16124         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16125         (gl_rbtreehash_list_implementation): Update.
16126         * modules/array-list (Depends-on): Remove xalloc.
16127         * modules/carray-list (Depends-on): Likewise.
16128         * modules/linked-list (Depends-on): Likewise.
16129         * modules/linkedhash-list (Depends-on): Likewise.
16130         * modules/avltree-list (Depends-on): Likewise.
16131         * modules/rbtree-list (Depends-on): Likewise.
16132         * modules/avltreehash-list (Depends-on): Likewise.
16133         * modules/rbtreehash-list (Depends-on): Likewise.
16134
16135         * modules/xsublist: New file.
16136         * lib/gl_xsublist.h: New file.
16137         * lib/gl_xsublist.c: New file.
16138         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16139         (gl_sublist_nx_create): New declaration.
16140         * lib/gl_sublist.c: Don't include xalloc.h.
16141         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16142         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16143         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16144         Change return type to 'int'. Return -1 upon out-of-memory.
16145         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16146         upon out-of-memory.
16147         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16148         NULL upon out-of-memory.
16149         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16150         upon out-of-memory.
16151         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16152         NULL upon out-of-memory.
16153         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16154         NULL upon out-of-memory.
16155         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16156         upon out-of-memory.
16157         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16158         (gl_sublist_list_implementation): Update.
16159         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16160         upon out-of-memory.
16161         * modules/sublist (Depends-on): Remove xalloc.
16162
16163         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16164         * tests/test-carray_list.c: Likewise.
16165         * tests/test-linked_list.c: Likewise.
16166         * tests/test-linkedhash_list.c: Likewise.
16167         * tests/test-avltree_list.c: Likewise.
16168         * tests/test-rbtree_list.c: Likewise.
16169         * tests/test-avltreehash_list.c: Likewise.
16170         * tests/test-rbtreehash_list.c: Likewise.
16171         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16172         * modules/carray-list-tests (Makefile.am): Likewise.
16173         * modules/linked-list-tests (Makefile.am): Likewise.
16174         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16175         * modules/avltree-list-tests (Makefile.am): Likewise.
16176         * modules/rbtree-list-tests (Makefile.am): Likewise.
16177         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16178         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16179
16180         * NEWS: Mention the changes.
16181
16182         * lib/clean-temp.c: Include gl_xlist.h.
16183         * modules/clean-temp (Depends-on): Add xlist.
16184
16185         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16186         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16187
16188         * tests/test-array_oset.c: Include gl_xlist.h.
16189         * modules/array-oset-tests (Depends-on): Add xlist.
16190
16191         Reported by José E. Marchesi <jemarch@gnu.org>.
16192
16193 2009-12-13  Bruno Haible  <bruno@clisp.org>
16194
16195         Move the malloc checking from module 'oset' to new module 'xoset'.
16196         * modules/xoset: New file.
16197         * lib/gl_xoset.h: New file.
16198         * lib/gl_xoset.c: New file.
16199         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16200         declarations.
16201         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16202         (struct gl_oset_implementation): Rename and change methods accordingly.
16203         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16204         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16205         'int'. Mark as __warn_unused_result__.
16206         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16207         gl_oset_create_empty.
16208         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16209         'int'.
16210         * lib/gl_array_oset.c: Don't include xalloc.h.
16211         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16212         malloc, not xmalloc.
16213         (grow): Change return type to 'int'. Don't call xalloc_die.
16214         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16215         to 'int'.
16216         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16217         'int'.
16218         (gl_array_oset_implementation): Update.
16219         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16220         gl_tree_create_empty.
16221         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16222         'int'.
16223         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16224         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16225         xmalloc.
16226         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16227         not xmalloc.
16228         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16229         xmalloc.
16230         (gl_avltree_oset_implementation): Update.
16231         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16232         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16233         xmalloc.
16234         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16235         not xmalloc.
16236         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16237         xmalloc.
16238         (gl_rbtree_oset_implementation): Update.
16239         * modules/array-oset (Depends-on): Remove xalloc.
16240         * modules/avltree-oset (Depends-on): Likewise.
16241         * modules/rbtree-oset (Depends-on): Likewise.
16242         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16243         * tests/test-avltree_oset.c: Likewise.
16244         * tests/test-rbtree_oset.c: Likewise.
16245         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16246         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16247         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16248         * NEWS: Mention the change.
16249
16250 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16251
16252         maint.mk: allow a project to override release-prep commands
16253         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16254         commands into a new rule.
16255         (release-prep): New rule.
16256         (release-prep-hook): New overridable variable.
16257
16258 2009-12-13  Bruno Haible  <bruno@clisp.org>
16259
16260         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16261
16262 2009-12-13  Jim Meyering  <meyering@redhat.com>
16263
16264         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16265         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16266
16267 2009-12-12  Bruno Haible  <bruno@clisp.org>
16268
16269         duplocale: Tweak.
16270         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16271
16272 2009-12-12  Karl Berry  <karl@gnu.org>
16273
16274         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16275
16276 2009-12-12  Bruno Haible  <bruno@clisp.org>
16277
16278         * m4/po.m4: Undo incorrect untabification.
16279
16280 2009-12-12  Bruno Haible  <bruno@clisp.org>
16281
16282         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16283         * modules/c-strtod (Depends-on): Add locale.
16284         * modules/c-strtold (Depends-on): Likewise.
16285
16286 2009-12-12  Bruno Haible  <bruno@clisp.org>
16287
16288         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16289
16290 2009-12-11  Eric Blake  <ebb9@byu.net>
16291
16292         setenv: relax requirement in light of POSIX ruling
16293         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16294         not NULL.
16295         * tests/test-setenv.c (main): Relax test.
16296         * tests/test-unsetenv.c (main): Likewise.
16297         * doc/posix-functions/setenv.texi (setenv): Document this.
16298         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16299
16300 2009-12-11  Bruno Haible  <bruno@clisp.org>
16301
16302         New module 'fd-safer-flag'.
16303         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16304         * lib/dup-safer.c (dup_safer_flag): Remove function.
16305         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16306         * lib/fd-safer.c (fd_safer_flag): Remove function.
16307         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16308         * modules/cloexec (configure.ac): Drop indicator macro.
16309         * modules/fd-safer-flag: New file.
16310         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16311         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16312         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16313
16314 2009-12-11  Bruno Haible  <bruno@clisp.org>
16315
16316         Tests for module 'nl_langinfo'.
16317         * modules/nl_langinfo-tests: New file.
16318         * tests/test-nl_langinfo.sh: New file.
16319         * tests/test-nl_langinfo.c: New file.
16320
16321         New module 'nl_langinfo'.
16322         * lib/nl_langinfo.c: New file.
16323         * m4/nl_langinfo.m4: New file.
16324         * modules/nl_langinfo: New file.
16325         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16326
16327 2009-12-11  Bruno Haible  <bruno@clisp.org>
16328
16329         Tests for module 'langinfo'.
16330         * modules/langinfo-tests: New file.
16331         * tests/test-langinfo.c: New file.
16332
16333         New module 'langinfo'.
16334         * lib/langinfo.in.h: New file.
16335         * m4/langinfo_h.m4: New file.
16336         * modules/langinfo: New file.
16337         * doc/posix-headers/langinfo.texi: Mention the new module.
16338
16339 2009-12-11  Bruno Haible  <bruno@clisp.org>
16340
16341         * lib/config.charset: Untabify.
16342
16343 2009-12-11  Bruno Haible  <bruno@clisp.org>
16344
16345         * modules/unistd-safer (configure.ac): Drop indicator macro.
16346
16347 2009-12-11  Bruno Haible  <bruno@clisp.org>
16348
16349         Move pipe2-safer code to its own file.
16350         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16351         * lib/pipe-safer.c (pipe2_safer): Remove function.
16352         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16353         (Makefile.am): Add it to lib_SOURCES.
16354
16355 2009-12-10  Bruno Haible  <bruno@clisp.org>
16356
16357         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16358
16359 2009-12-10  Bruno Haible  <bruno@clisp.org>
16360
16361         Declare which arguments expect non-NULL values, for GCC and clang.
16362         * build-aux/arg-nonnull.h: New file.
16363         * modules/arg-nonnull: New file.
16364         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16365         (inet_ntop, inet_pton): Use it.
16366         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16367         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16368         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16369         (open, openat): Use it.
16370         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16371         (fnmatch): Use it.
16372         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16373         (getopt, getopt_long, getopt_long_only): Use it.
16374         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16375         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16376         Use it.
16377         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16378         (iconv_open): Use it.
16379         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16380         (strtoimax, strtoumax): Use it.
16381         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
16382         (duplocale): Use it.
16383         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
16384         (frexp, frexpl): Use it.
16385         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
16386         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
16387         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
16388         (tsearch, tfind, tdelete, twalk): Use it.
16389         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
16390         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16391         sigpending): Use it.
16392         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
16393         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16394         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16395         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16396         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16397         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16398         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16399         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16400         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16401         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16402         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16403         Use it.
16404         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
16405         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
16406         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
16407         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
16408         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
16409         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
16410         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
16411         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
16412         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
16413         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
16414         strtoull, unsetenv): Use it.
16415         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
16416         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16417         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16418         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16419         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16420         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
16421         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
16422         (strcasecmp, strncasecmp): Use it.
16423         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
16424         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
16425         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
16426         rpl_setsockopt): Use it.
16427         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
16428         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
16429         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
16430         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
16431         (gettimeofday): Use it.
16432         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
16433         (times): Use it.
16434         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
16435         (uname): Use it.
16436         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
16437         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
16438         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
16439         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
16440         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
16441         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
16442         unlinkat, write): Use it.
16443         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
16444         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
16445         * lib/argv-iter.h: Include arg-nonnull.h.
16446         (_ATTRIBUTE_NONNULL_): Remove macro.
16447         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
16448         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
16449         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
16450         optimization.
16451         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16452         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16453         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16454         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16455         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
16456         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
16457         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
16458         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
16459         * modules/arpa_inet (Depends-on): Add arg-nonnull.
16460         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
16461         * modules/dirent (Depends-on): Add arg-nonnull.
16462         (Makefile.am): Insert arg-nonnull.h into dirent.h.
16463         * modules/fcntl-h (Depends-on): Add arg-nonnull.
16464         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
16465         * modules/fnmatch (Depends-on): Add arg-nonnull.
16466         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
16467         * modules/getopt-posix (Depends-on): Add arg-nonnull.
16468         (Makefile.am): Insert arg-nonnull.h into getopt.h.
16469         * modules/glob (Depends-on): Add arg-nonnull.
16470         (Makefile.am): Insert arg-nonnull.h into glob.h.
16471         * modules/iconv_open (Depends-on): Add arg-nonnull.
16472         (Makefile.am): Insert arg-nonnull.h into iconv.h.
16473         * modules/inttypes (Depends-on): Add arg-nonnull.
16474         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
16475         * modules/locale (Depends-on): Add arg-nonnull.
16476         (Makefile.am): Insert arg-nonnull.h into locale.h.
16477         * modules/math (Depends-on): Add arg-nonnull.
16478         (Makefile.am): Insert arg-nonnull.h into math.h.
16479         * modules/netdb (Depends-on): Add arg-nonnull.
16480         (Makefile.am): Insert arg-nonnull.h into netdb.h.
16481         * modules/search (Depends-on): Add arg-nonnull.
16482         (Makefile.am): Insert arg-nonnull.h into search.h.
16483         * modules/signal (Depends-on): Add arg-nonnull.
16484         (Makefile.am): Insert arg-nonnull.h into signal.h.
16485         * modules/spawn (Depends-on): Add arg-nonnull.
16486         (Makefile.am): Insert arg-nonnull.h into spawn.h.
16487         * modules/stdio (Depends-on): Add arg-nonnull.
16488         (Makefile.am): Insert arg-nonnull.h into stdio.h.
16489         * modules/stdlib (Depends-on): Add arg-nonnull.
16490         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
16491         * modules/string (Depends-on): Add arg-nonnull.
16492         (Makefile.am): Insert arg-nonnull.h into string.h.
16493         * modules/strings (Depends-on): Add arg-nonnull.
16494         (Makefile.am): Insert arg-nonnull.h into strings.h.
16495         * modules/sys_socket (Depends-on): Add arg-nonnull.
16496         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
16497         * modules/sys_stat (Depends-on): Add arg-nonnull.
16498         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
16499         * modules/sys_time (Depends-on): Add arg-nonnull.
16500         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
16501         * modules/sys_times (Depends-on): Add arg-nonnull.
16502         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
16503         * modules/sys_utsname (Depends-on): Add arg-nonnull.
16504         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
16505         * modules/time (Depends-on): Add arg-nonnull.
16506         (Makefile.am): Insert arg-nonnull.h into time.h.
16507         * modules/unistd (Depends-on): Add arg-nonnull.
16508         (Makefile.am): Insert arg-nonnull.h into unistd.h.
16509         * modules/wchar (Depends-on): Add arg-nonnull.
16510         (Makefile.am): Insert arg-nonnull.h into wchar.h.
16511         * modules/argv-iter (Depends-on): Add arg-nonnull.
16512         * tests/test-canonicalize.c (null_ptr): New function.
16513         (main): Use it.
16514         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
16515         (main): Use it.
16516         * tests/test-memmem.c (null_ptr): New function.
16517         (main): Use it.
16518         Reported by Jim Meyering.
16519
16520 2009-12-10  Bruno Haible  <bruno@clisp.org>
16521
16522         Use spaces for indentation, not tabs.
16523         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16524         * m4/*.m4: Untabify.
16525         * build-aux/*.h: Untabify.
16526         * tests/**/*.[hc]: Untabify.
16527         * README: New section "Indent with spaces, not TABs", based on
16528         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
16529         * NEWS: Mention the change.
16530
16531 2009-12-10  Bruno Haible  <bruno@clisp.org>
16532
16533         pty test: Fix link error.
16534         * modules/pty-tests (Makefile.am): Add the default LDADD value to
16535         test_pty_LDADD.
16536
16537 2009-12-07  Simon Josefsson  <simon@josefsson.org>
16538
16539         * modules/pty: New file.
16540         * modules/pty-tests: New file.
16541         * m4/pty.m4: New file.
16542         * tests/test-pty.c: New file.
16543         * doc/glibc-headers/pty.texi: Modified.
16544         * doc/glibc-functions/forkpty.texi: Modified.
16545         * doc/glibc-functions/openpty.texi: Modified.
16546
16547 2009-12-10  Bruno Haible  <bruno@clisp.org>
16548
16549         Avoid syntax error in C++ mode.
16550         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
16551
16552 2009-12-10  Bruno Haible  <bruno@clisp.org>
16553
16554         Use sed with option -e.
16555         * gnulib-tool (func_version, func_emit_copyright_notice,
16556         func_emit_initmacro_end, func_import, func_create_testdir): Pass
16557         option -e to sed.
16558         * modules/link-warning (Makefile.am): Likewise.
16559
16560 2009-12-10  Jim Meyering  <meyering@redhat.com>
16561
16562         mgetgroups: do not write bytes beyond end of malloc'd buffer
16563         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
16564         username, we call getgroups with a one-element-shorter buffer,
16565         but still told it the length was original, max_n_groups.
16566
16567 2009-12-09  Eric Blake  <ebb9@byu.net>
16568
16569         cloexec: relax license
16570         * modules/cloexec (Maintainer): Add myself.
16571         (License): Use LGPL, not GPL.
16572
16573         link-warning: optimize generation
16574         * modules/link-warning (Makefile.am): Reduce process usage.
16575
16576 2009-12-09  Bruno Haible  <bruno@clisp.org>
16577
16578         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
16579         workaround was added on 2009-11-17.
16580
16581 2009-12-09  Jim Meyering  <meyering@redhat.com>
16582             Bruno Haible  <bruno@clisp.org>
16583
16584         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
16585         * modules/link-warning (Makefile.am): Make the comment-removing sed
16586         command more robust in the face of bootstrap-prepended comment lines.
16587
16588 2009-12-09  Bruno Haible  <bruno@clisp.org>
16589
16590         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
16591         most one group.
16592
16593 2009-12-09  Simon Josefsson <simon@josefsson.org>
16594             Bruno Haible  <bruno@clisp.org>
16595
16596         * build-aux/link-warning.h: Add copyright notice.
16597         * modules/link-warning (Makefile.am): Generate link-warning.h from
16598         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
16599         * NEWS: Mention change in link-warning module.
16600         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
16601         * modules/dirent (Makefile.am): Add dependency to dirent.h.
16602         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
16603         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
16604         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
16605         * modules/math (Makefile.am): Add dependency to math.h.
16606         * modules/search (Makefile.am): Add dependency to search.h.
16607         * modules/signal (Makefile.am): Add dependency to signal.h.
16608         * modules/spawn (Makefile.am): Add dependency to spawn.h.
16609         * modules/stdio (Makefile.am): Add dependency to stdio.h.
16610         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
16611         * modules/string (Makefile.am): Add dependency to string.h.
16612         * modules/strings (Makefile.am): Add dependency to strings.h.
16613         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
16614         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
16615         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
16616         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
16617         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
16618         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
16619         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
16620         * modules/unistd (Makefile.am): Add dependency to unistd.h.
16621         * modules/wchar (Makefile.am): Add dependency to wchar.h.
16622
16623 2009-12-09  Bruno Haible  <bruno@clisp.org>
16624
16625         fchdir: Optimize away rpl_fstat when possible.
16626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
16627         REPLACE_OPEN_DIRECTORY.
16628         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
16629
16630 2009-12-09  Bruno Haible  <bruno@clisp.org>
16631
16632         * lib/fchdir.c: Update comment.
16633
16634 2009-12-09  Bruno Haible  <bruno@clisp.org>
16635
16636         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
16637
16638 2009-12-08  Eric Blake  <ebb9@byu.net>
16639
16640         fchdir: avoid memory leak on re-registration.
16641         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
16642
16643 2009-12-08  Jim Meyering  <meyering@redhat.com>
16644
16645         init.sh: avoid Solaris 10 /bin/sh portability problem
16646         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
16647         sourced script:
16648           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
16649           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
16650           bar
16651         tests/init.sh relied on that, accepting a --set-path=DIR argument,
16652         and two tests used that idiom.
16653         * tests/init.sh: Update suggested usage comments.
16654         (path_prepend_): New function, to be used in place
16655         of the --src-path=DIR option.
16656         (setup_): Move PATH-prepending code into path_prepend_.
16657         * tests/test-pread.sh: Adapt to new usage.
16658         * tests/test-xalloc-die.sh: Likewise.
16659
16660 2009-12-08  Simon Josefsson  <simon@josefsson.org>
16661
16662         * doc/gnulib.texi (Glibc pty.h): Add.
16663         * doc/glibc-functions/forkpty.texi: Add.
16664         * doc/glibc-functions/openpty.texi: Add.
16665         Suggested by Bruno Haible.
16666
16667 2009-12-08  Eric Blake  <ebb9@byu.net>
16668
16669         fchdir: fix logic bugs
16670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
16671         * tests/test-fchdir.c (main): Enhance test.
16672         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
16673         is in use.
16674
16675         dup2: fix logic bugs
16676         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
16677         REPLACE_DUP2 to decide when rpl_dup2 is needed.
16678         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
16679         exists.
16680         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
16681
16682 2009-12-07  Eric Blake  <ebb9@byu.net>
16683
16684         unlink: fix m4 detection
16685         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
16686
16687         unistd-safer: add unit test
16688         * modules/unistd-safer-tests: New file.
16689         * tests/test-dup-safer.c: Likewise.
16690         * tests/test-cloexec.c (setmode): Avoid compiler warning.
16691         * tests/test-dup2.c (setmode): Likewise.
16692         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
16693
16694         cloexec: preserve text vs. binary across dup_cloexec
16695         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
16696         mode.
16697         * modules/dup2-tests (Depends-on): Add binary-io.
16698         * modules/cloexec-tests (Depends-on): Likewise.
16699         * tests/test-dup2.c (setmode, is_mode): New helpers.
16700         (main): Add tests that translation mode is preserved.
16701         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
16702         Reported by Bruno Haible.
16703
16704         mgetgroups: reduce duplicate listings
16705         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
16706         resulting array.
16707         * tests/test-chown.h (test_chown): Simplify client.
16708         * tests/test-lchown.h (test_lchown): Likewise.
16709
16710 2009-12-06  Bruno Haible  <bruno@clisp.org>
16711
16712         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
16713         value.
16714
16715 2009-12-06  Bruno Haible  <bruno@clisp.org>
16716
16717         * lib/progname.c: Include stdio.h, stdlib.h.
16718         (set_program_name): Reject a NULL argument.
16719
16720 2009-12-05  Eric Blake  <ebb9@byu.net>
16721
16722         pipe2-safer: new module
16723         * modules/pipe2-safer: New file.
16724         * lib/unistd-safer.h (pipe2_safer): New prototype.
16725         * lib/unistd--.h (pipe2): New wrapper.
16726         * lib/pipe-safer.c (pipe2_safer): New function.
16727         * modules/pipe (Depends-on): Add pipe2-safer.
16728         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
16729
16730         stdlib-safer: preserve cloexec flag for mkostemp[s]
16731         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
16732         fd_safer_flag.
16733
16734         unistd-safer: allow preservation of cloexec status via flag
16735         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
16736         prototypes.
16737         * lib/dup-safer.c (dup_safer_flag): New function.
16738         * lib/fd-safer.c (fd_safer_flag): Likewise.
16739         * modules/cloexec (configure.ac): Set witness.
16740
16741         test-dup2: enhance test
16742         * modules/dup2-tests (Depends-on): Add cloexec.
16743         * tests/test-dup2.c (main): Enhance test.
16744
16745         cloexec: add dup_cloexec
16746         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
16747         header and comments.
16748         * lib/cloexec.c (set_cloexec_flag): Add comments.
16749         (dup_cloexec): New function, with mingw implementation borrowed
16750         from...
16751         * lib/w32spawn.h (dup_noinherit): ...here.
16752         * modules/execute (Depends-on): Add cloexec.
16753         * modules/pipe (Depends-on): Likewise.
16754         * modules/cloexec (Depends-on): Add dup2.
16755         * modules/cloexec-tests (Files): New file.
16756         * tests/test-cloexec.c: Likewise.
16757
16758         test-xalloc-die: fix test for mingw
16759         * modules/xalloc-die-tests (Files): Add tests/init.sh.
16760         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
16761         directory and .exe suffix off argv[0] output.
16762
16763         test-fseeko: fix test for mingw
16764         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
16765         than undefining fseek, so test will pass on mingw.
16766
16767 2009-12-05  Bruno Haible  <bruno@clisp.org>
16768
16769         * lib/progname.h (set_program_name): Clarify specification.
16770         * lib/progname.c (set_program_name): Likewise.
16771         Reported by Jim Meyering.
16772
16773 2009-12-05  Jim Meyering  <meyering@redhat.com>
16774
16775         maint.mk: backslash-escape parens in default regexp
16776         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
16777         backslash-escape the literal parentheses.
16778
16779         maint.mk: news-date-check: use grep -E
16780         * top/maint.mk (today): Define a Make variable, not a...
16781         (news-date-check): ...shell variable.
16782         (news-date-regexp): Use the Make variable.
16783         Use grep's -E option.  Change the failing diagnostic to mention
16784         the variable, $(news-date-regexp).
16785
16786 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
16787
16788         maintainer-makefile: allow customization of NEWS entry format
16789         * top/maint.mk (news-date-regexp): New overridable variable.
16790         (news-date-check): Use it.
16791
16792 2009-12-04  Eric Blake  <ebb9@byu.net>
16793
16794         mgetgroups: add xgetgroups, and avoid ENOSYS failures
16795         * lib/mgetgroups.h (xgetgroups): New prototype.
16796         * lib/mgetgroups.c (xgetgroups): New wrapper.
16797         (mgetgroups): Handle ENOSYS.
16798         * modules/mgetgroups (Depends-on): Add realloc.
16799         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
16800
16801         mgetgroups: avoid argument promotion issues with -1
16802         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
16803         for invalid gid_t.
16804         * tests/test-chown.h (getegid, test_chown): Likewise.
16805         * tests/test-lchown.h (getegid, test_lchown): Likewise.
16806
16807 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
16808
16809         exclude: Fix header file problems.
16810         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
16811
16812 2009-12-01  Jim Meyering  <meyering@redhat.com>
16813
16814         fts: fts_open: do not let an empty string cause immediate failure
16815         This is required in support of GNU rm, for which the command
16816         "rm A '' B" must process and remove both A and B, in spite of
16817         the empty string argument.
16818         * lib/fts.c (fts_open): Do not let the presence of an empty string
16819         cause fts_open to fail immediately.  Most fts-using tools must be
16820         able to process all arguments, in order, and can be expected to
16821         diagnose such arguments themselves.
16822
16823 2009-11-30  Eric Blake  <ebb9@byu.net>
16824
16825         utimens: fix compilation error
16826         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
16827         Declare variable at right scope.
16828
16829 2009-11-29  Jim Meyering  <meyering@redhat.com>
16830
16831         bootstrap: handle perl-5.11's changed --version output
16832         * build-aux/bootstrap (get_version): Handle perl separately,
16833         since perl-5.11's --version output is different.
16834
16835 2009-11-28  Jim Meyering  <meyering@redhat.com>
16836
16837         userspec: depend on the inttostr module, too
16838         * modules/userspec (Depends-on): Add inttostr.
16839
16840         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
16841         * lib/userspec.c (parse_with_separator): Do not accept a user ID
16842         number of MAXUID when it evaluates to (uid_t) -1.
16843         Likewise for group ID.  Reported by Matt McCutchen in
16844         <http://savannah.gnu.org/bugs/?28113>
16845
16846         userspec: reformat to use spaces, not TABs
16847         * lib/userspec.c: Expand TABs to spaces.
16848         Add Emacs' "indent-tabs-mode: nil" hint.
16849
16850 2009-11-27  Eric Blake  <ebb9@byu.net>
16851
16852         getopt-gnu: flush out another BSD bug
16853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
16854         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
16855         flush out BSD bug.
16856         * tests/test-getopt.h (test_getopt): End lists with NULL.
16857         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16858         (test_getopt_long_posix): Enhance test.
16859         * modules/getopt-posix-tests (Depends-on): Add stdbool.
16860         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
16861         getopt-gnu.
16862         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16863         Likewise.
16864
16865 2009-11-27  Simon Josefsson  <simon@josefsson.org>
16866
16867         * modules/idpriv-droptemp-tests (Notice): Fix text.
16868
16869 2009-11-27  Jim Meyering  <meyering@redhat.com>
16870
16871         test-xalloc-die: avoid spurious failure due to libtool argv difference
16872         In a libtool-enabled project, this test would fail due to a difference
16873         in the emitted program name, e.g.,
16874         -test-xalloc-die: memory exhausted
16875         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
16876         Use program to avoid that.
16877         * modules/xalloc-die-tests (Depends-on): Add progname.
16878         * tests/test-xalloc-die.c: Include progname.h".
16879         (program_name): Remove decl.
16880         (main): Call set_program_name.
16881         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
16882
16883 2009-11-26  Richard Jones  <rjones@redhat.com>
16884
16885         w32sock: leave win32 error in place.
16886         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
16887
16888 2009-11-26  Eric Blake  <ebb9@byu.net>
16889
16890         init.sh: suggest to use skip_ and fail_ functions in comments
16891         * tests/init.sh: Add a sentence.
16892
16893 2009-11-25  Bruno Haible  <bruno@clisp.org>
16894
16895         init.sh: add documentation in comments
16896         * tests/init.sh: Add some developer and user documentation.
16897
16898 2009-11-26  Jim Meyering  <meyering@redhat.com>
16899
16900         init.sh: accommodate even those who specify bogus srcdir manually
16901         * tests/init.sh: Normally, srcdir is guaranteed by automake and
16902         configure-time tests to be sanitized, so that there is no need to
16903         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
16904         (with no double quotes) suffices.  However, since tests may be
16905         invoked manually, and since you may explicitly set srcdir to the
16906         name of a directory containing spaces, do quote its uses here.
16907         * tests/test-pread.sh: Likewise.
16908         Suggested by Bruno Haible.
16909
16910         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
16911         * tests/test-pread.sh: Write no data into the pipe, because
16912         test-pread actually reads none.  This avoids a diagnostic,
16913         "bash: echo: write error: Broken pipe", that arises in the unusual
16914         event something is ignoring SIGPIPE, and might be interpreted
16915         as some sort of failure.  Reported by Bruno Haible.
16916
16917 2009-11-25  Jim Meyering  <meyering@redhat.com>
16918
16919         test-pread: cover failure with ESPIPE and EINVAL
16920         * tests/test-pread.c (main): Test for failure, too.
16921         * tests/test-pread.sh: Invoke with stdin on a pipe.
16922         Suggested by Eric Blake.
16923
16924         pread: improvement and fix
16925         * modules/pread (Depends-on): Depend on lseek, for portability to
16926         e.g., mingw.  Suggested by Eric Blake.
16927         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
16928
16929         unistd.in.h: correct declaration of pread
16930         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
16931         Reported by Richard W.M. Jones.
16932
16933         test-pread.sh: distribute the test script
16934         * modules/pread-tests (Files): Include test-pread.sh.
16935
16936         test-pread.sh: clean up
16937         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
16938         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
16939         That is unnecessary, since it's always ".".
16940         Suggestion from Eric Blake.
16941
16942         test-pread.sh: make executable
16943         * tests/test-pread.sh: Set executable bit.
16944         Reported by Eric Blake.
16945
16946         correct typo in test-pread.sh
16947         * tests/test-pread.sh: Add #! line.
16948
16949         test pread
16950         * tests/test-pread.c: New file.
16951         * tests/test-pread.sh: Likewise.
16952         * modules/pread-tests: Likewise.
16953
16954         pread: new module
16955         * modules/pread: New file.
16956         * lib/unistd.in.h (pread): Define/declare.
16957         * lib/pread.c (pread): New file.
16958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
16959         * modules/unistd (Makefile.am): Substitute witnesses.
16960         * doc/posix-functions/pread.texi (pread): Update.
16961         * MODULES.html.sh: Add pread.
16962
16963 2009-11-25  Jim Meyering  <meyering@redhat.com>
16964
16965         tests/init.sh: new file to be used via most *.sh tests
16966         * tests/init.sh: New file.
16967
16968 2009-11-25  Eric Blake  <ebb9@byu.net>
16969
16970         utimens: work around older Linux failure with symlinks
16971         * lib/utimens.c (lutimensat_works_really): New variable.
16972         (fdutimens, lutimens): Use it to manage kernels that support
16973         nanosecond times on files, but not on symlinks.
16974         Reported by OndÅ™ej Vašík.
16975
16976         utimes: fix configure grammar
16977         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
16978
16979 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
16980
16981         regex: Fix fastmap for multibyte character ranges.
16982         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
16983         characters when a multibyte character range is included.
16984
16985 2009-11-22  Andy Wingo  <wingo@pobox.com>
16986
16987         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
16988         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
16989
16990 2009-11-24  Bruno Haible  <bruno@clisp.org>
16991
16992         doc: Most *_l functions exist in MacOS X 10.5.
16993         * doc/posix-functions/duplocale.texi: Update platforms list.
16994         * doc/posix-functions/freelocale.texi: Likewise.
16995         * doc/posix-functions/newlocale.texi: Likewise.
16996         * doc/posix-functions/uselocale.texi: Likewise.
16997         * doc/posix-functions/isalnum_l.texi: Likewise.
16998         * doc/posix-functions/isalpha_l.texi: Likewise.
16999         * doc/posix-functions/isblank_l.texi: Likewise.
17000         * doc/posix-functions/iscntrl_l.texi: Likewise.
17001         * doc/posix-functions/isdigit_l.texi: Likewise.
17002         * doc/posix-functions/isgraph_l.texi: Likewise.
17003         * doc/posix-functions/islower_l.texi: Likewise.
17004         * doc/posix-functions/isprint_l.texi: Likewise.
17005         * doc/posix-functions/ispunct_l.texi: Likewise.
17006         * doc/posix-functions/isspace_l.texi: Likewise.
17007         * doc/posix-functions/isupper_l.texi: Likewise.
17008         * doc/posix-functions/iswalnum_l.texi: Likewise.
17009         * doc/posix-functions/iswalpha_l.texi: Likewise.
17010         * doc/posix-functions/iswblank_l.texi: Likewise.
17011         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17012         * doc/posix-functions/iswctype_l.texi: Likewise.
17013         * doc/posix-functions/iswdigit_l.texi: Likewise.
17014         * doc/posix-functions/iswgraph_l.texi: Likewise.
17015         * doc/posix-functions/iswlower_l.texi: Likewise.
17016         * doc/posix-functions/iswprint_l.texi: Likewise.
17017         * doc/posix-functions/iswpunct_l.texi: Likewise.
17018         * doc/posix-functions/iswspace_l.texi: Likewise.
17019         * doc/posix-functions/iswupper_l.texi: Likewise.
17020         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17021         * doc/posix-functions/isxdigit_l.texi: Likewise.
17022         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17023         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17024         * doc/posix-functions/strcoll_l.texi: Likewise.
17025         * doc/posix-functions/strfmon_l.texi: Likewise.
17026         * doc/posix-functions/strftime_l.texi: Likewise.
17027         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17028         * doc/posix-functions/strxfrm_l.texi: Likewise.
17029         * doc/posix-functions/tolower_l.texi: Likewise.
17030         * doc/posix-functions/toupper_l.texi: Likewise.
17031         * doc/posix-functions/towctrans_l.texi: Likewise.
17032         * doc/posix-functions/towlower_l.texi: Likewise.
17033         * doc/posix-functions/towupper_l.texi: Likewise.
17034         * doc/posix-functions/wcscoll_l.texi: Likewise.
17035         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17036         * doc/posix-functions/wctrans_l.texi: Likewise.
17037         * doc/posix-functions/wctype_l.texi: Likewise.
17038         * doc/glibc-functions/strptime_l.texi: Likewise.
17039         * doc/glibc-functions/strtod_l.texi: Likewise.
17040         * doc/glibc-functions/strtof_l.texi: Likewise.
17041         * doc/glibc-functions/strtol_l.texi: Likewise.
17042         * doc/glibc-functions/strtold_l.texi: Likewise.
17043         * doc/glibc-functions/strtoll_l.texi: Likewise.
17044         * doc/glibc-functions/strtoul_l.texi: Likewise.
17045         * doc/glibc-functions/strtoull_l.texi: Likewise.
17046         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17047         * doc/glibc-functions/wcstod_l.texi: Likewise.
17048         * doc/glibc-functions/wcstof_l.texi: Likewise.
17049         * doc/glibc-functions/wcstol_l.texi: Likewise.
17050         * doc/glibc-functions/wcstold_l.texi: Likewise.
17051         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17052         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17053         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17054
17055 2009-11-24  Bruno Haible  <bruno@clisp.org>
17056
17057         duplocale: Fix logic bug.
17058         * lib/duplocale.c: Don't include <langinfo.h>.
17059         (_NL_LOCALE_NAME): Remove macro.
17060         (rpl_duplocale): Use setlocale instead of nl_langinfo.
17061         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
17062
17063 2009-11-23  Jim Meyering  <meyering@redhat.com>
17064
17065         test-update-copyright: don't hard-code /usr/bin/perl
17066         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17067         perl to print the current year.  Gilles Espinasse reported that
17068         the replaced use of perl was hard-coded as /usr/bin/perl.
17069
17070 2009-11-23  Bruno Haible  <bruno@clisp.org>
17071
17072         duplocale: Add support for glibc 2.3.x.
17073         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17074
17075 2009-11-22  Bruno Haible  <bruno@clisp.org>
17076
17077         vasnprintf: Tiny optimization.
17078         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17079         MacOS X.
17080
17081 2009-11-22  Bruno Haible  <bruno@clisp.org>
17082
17083         Tests for module 'duplocale'.
17084         * modules/duplocale-tests: New file.
17085         * tests/test-duplocale.c: New file.
17086
17087         New module 'duplocale'.
17088         * m4/duplocale.m4: New file.
17089         * lib/locale.in.h (duplocale): New declaration.
17090         * lib/duplocale.c: New file.
17091         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17092         gl_LOCALE_H_DEFAULTS): New macros.
17093         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17094         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17095         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17096         REPLACE_DUPLOCALE.
17097         * modules/duplocale: New file.
17098         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17099
17100 2009-11-22  Bruno Haible  <bruno@clisp.org>
17101
17102         * modules/locale-tests (configure.ac): Test for newlocale function.
17103         * tests/test-locale.c: When the system has extended locale functions,
17104         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17105
17106         locale: Make locale_t available when possible.
17107         * lib/locale.in.h: Include <xlocale.h> when it exists.
17108         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17109         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17110         * modules/locale (Depends-on): Add extensions.
17111         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17112         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17113
17114 2009-11-22  Bruno Haible  <bruno@clisp.org>
17115
17116         Add comments.
17117         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17118         invocation.
17119         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17120         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17121         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17122
17123 2009-11-22  Bruno Haible  <bruno@clisp.org>
17124
17125         error: account for the possibility of freopen (stdout).
17126         * lib/error.c: Include <unistd.h>.
17127         (flush_stdout): New function, extracted from error and error_at_line.
17128         Determine stdout's fd dynamically.
17129         (error, error_at_line): Invoke flush_stdout.
17130         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17131         * modules/error (Depends-on): Add unistd.
17132
17133 2009-11-22  Bruno Haible  <bruno@clisp.org>
17134
17135         diffseq: Add comment.
17136         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17137
17138 2009-11-22  Jim Meyering  <meyering@redhat.com>
17139
17140         c-stack: avoid defining an unused static function
17141         * lib/c-stack.c (find_stack_direction): Do not define this function
17142         when it will not be used.
17143
17144         diffseq: avoid spurious gcc warnings
17145         * lib/diffseq.h (IF_LINT2): Define.
17146         (compareseq): Use it to initialize two members of "part".
17147         This avoids two used-uninitialized warnings.
17148
17149 2009-11-21  Jim Meyering  <meyering@redhat.com>
17150
17151         c-stack: avoid "ignoring return value of `write'" warning
17152         * lib/c-stack.c: Include "ignore-value.h".
17153         (die): Explicitly ignore each write return value.
17154         * modules/c-stack (Depends-on): Add ignore-value.
17155
17156 2009-11-21  Bruno Haible  <bruno@clisp.org>
17157
17158         diffseq: reduce scope of variable 'best'.
17159         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17160         variable, earlier used for two different purposes.
17161
17162 2009-11-21  Jim Meyering  <meyering@redhat.com>
17163
17164         diffseq: remove useless assignment to "best"
17165         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17166         assignment.  At that point "best" is already guaranteed to be zero.
17167
17168 2009-11-20  Eric Blake  <ebb9@byu.net>
17169
17170         build: mention ftp redirector in release announcements
17171         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17172         values that used to come from cfg.mk; mention FTP redirect URL.
17173         * build-aux/announce-gen: Mention the mirror list.
17174         Suggested by Karl Berry.
17175
17176         nanosleep: improve port to mingw
17177         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17179         LIB_NANOSLEEP, but only when needed.
17180         * modules/select (Link): Document LIBSOCKET.
17181         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17182         enough.
17183
17184         nanosleep: work around cygwin bug
17185         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17186         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17187         bug.
17188         (getnow): Delete, not needed.
17189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17190         LIB_CLOCK_GETTIME.
17191         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17192         clock-time, gettime.
17193         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17194         bug.
17195         * modules/nanosleep-tests: New test.
17196         * tests/test-nanosleep.c: New file.
17197
17198         sleep: work around cygwin bug
17199         * lib/sleep.c (rpl_sleep): Work around the bug.
17200         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17201         (gl_PREREQ_SLEEP): Delete unused macro.
17202         * modules/sleep (Depends-on): Add verify.
17203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17204         * modules/unistd (Makefile.am): Substitute witness.
17205         * lib/unistd.in.h (sleep): Update prototype.
17206         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17207         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17208         * modules/sleep-tests (Depends-on): Check for alarm.
17209
17210 2009-11-20  Jim Meyering  <meyering@redhat.com>
17211
17212         maint.mk: improve sc_prohibit_magic_number_exit
17213         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17214         so it does not match uses like System.exit(1).
17215         Add comments showing how to correct all offenders.
17216
17217 2009-11-19  Eric Blake  <ebb9@byu.net>
17218
17219         xalloc-die-tests: add missing library
17220         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17221
17222         test-xvasprintf: silence compiler warnings
17223         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17224         empty string from gcc.
17225
17226 2009-11-19  Jim Meyering  <meyering@redhat.com>
17227
17228         xfreopen: new module, from coreutils
17229         * modules/xfreopen: New module.
17230         * lib/xfreopen.c: New file.
17231         * lib/xfreopen.h: New file.
17232         * MODULES.html.sh (File stream based Input/Output"): Add it.
17233
17234 2009-11-19  Eric Blake  <ebb9@byu.net>
17235
17236         manywarnings: depend on warnings
17237         * modules/manywarnings (Depends-on): Add warnings.
17238
17239         build: avoid compiler warnings
17240         * lib/select.c (rpl_select): Delete unused variable.
17241         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17242
17243 2009-11-18  Eric Blake  <ebb9@byu.net>
17244
17245         tests: avoid false negative with --with-packager
17246         * tests/test-version-etc.sh: Discard packager information.
17247         * tests/test-argp-version-etc-1.sh: Likewise.
17248         Reported by Mike Frysinger.
17249
17250         utimens: fix regression on Solaris
17251         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17252         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17253         can only change fd timestamps via futimesat.  Instead, use an
17254         additional witness macro to avoid BSD bug.
17255         Reported by Jim Meyering.
17256
17257 2009-11-17  Eric Blake  <ebb9@byu.net>
17258
17259         usleep: use it to simplify tests
17260         * modules/stat-time-tests (Depends-on): Add usleep.
17261         (configure.ac): Drop usleep check.
17262         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17263         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17264         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17265         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17266         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17267         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17268         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17269         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17270         Likewise.
17271         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17272         * tests/test-lchown.h (nap): Likewise.
17273         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17274         * tests/test-stat-time.c (nap): Likewise.
17275         * tests/test-utimens-common.h (nap): Update comments.
17276
17277         usleep: new module
17278         * modules/usleep: New file.
17279         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17280         * lib/usleep.c (usleep): Likewise.
17281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17282         * modules/unistd (Makefile.am): Substitute witnesses.
17283         * lib/unistd.in.h (usleep): Add declaration.
17284         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17285         * MODULES.html.sh (Date and time): Likewise.
17286         * modules/usleep-tests (Depends-on): New test.
17287         * tests/test-usleep.c: New file.
17288
17289         chown: work around OpenBSD bug
17290         * lib/chown.c (rpl_chown): Work around the bug.
17291         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17292         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17293         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17294         * modules/chown (Depends-on): Add stdbool.
17295         * modules/lchown (Depends-on): Likewise.
17296         * doc/posix-functions/chown.texi (chown): Document the bug.
17297         * doc/posix-functions/lchown.texi (lchown): Likewise.
17298         * tests/test-lchown.h (test_chown): Relax test.
17299
17300         mkstemp: avoid conflict with C++ keyword template
17301         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17302         * lib/mkostemp.c (mkostemp): Likewise.
17303         * lib/mkostemps.c (mkostemps): Likewise.
17304         * lib/mkstemp.c (mkstemp): Likewise.
17305         * lib/mkstemps.c (mkstemps): Likewise.
17306
17307         xalloc-die-tests: optimize
17308         * tests/test-xalloc-die.sh: Reduce number of processes.
17309
17310 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17311
17312         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17313         patch from ludo@gnu.org (Ludovic Courtès).
17314
17315 2009-11-17  Jim Meyering  <meyering@redhat.com>
17316
17317         version-etc: use proper license string
17318         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17319         * modules/version-etc-fsf: Likewise.
17320
17321 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17322
17323         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17324         printed to stdout.  Deal with EOL differences.
17325
17326 2009-11-17  Eric Blake  <ebb9@byu.net>
17327
17328         unsetenv: work around Solaris bug
17329         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17330         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17331         Reported by Jim Meyering.
17332
17333         vasnprintf: avoid compiler warnings
17334         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17335         variables.
17336         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17337
17338 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17339
17340         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17341         settings since xalloc-die is no longer the self test,
17342         xalloc-die.sh is.
17343
17344 2009-11-17  Jim Meyering  <meyering@redhat.com>
17345
17346         test-xalloc-die.sh: make the code agree with the commit log
17347         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17348         at the end, just in case you happen to have a test-xalloc-die
17349         program in some other PATH directory.
17350
17351         test-xalloc-die.sh: fix a portability bug
17352         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17353         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17354         Otherwise, argv[0] (as often seen in diagnostics) would be too
17355         system-dependent, sometimes with, and sometimes without the leading "./".
17356
17357         version-etc-fsf: relax license to LGPLv3+
17358         * modules/version-etc-fsf (License): Relax license.
17359
17360 2009-11-16  Eric Blake  <ebb9@byu.net>
17361
17362         xalloc-die-tests: avoid printing null pointer
17363         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17364         shell script.
17365         * tests/test-xalloc-die.c (program_name): Declare.
17366         * tests/test-xalloc-die.sh (tmpfiles): New file.
17367
17368         setenv, unsetenv: work around various bugs
17369         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17370         (setenv) [HAVE_SETENV]: Work around bugs.
17371         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17372         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17373         for bugs.
17374         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17375         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17377         * modules/stdlib (Makefile.am): Update substitutions.
17378         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17379         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17380         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17381         * modules/setenv-tests: New test.
17382         * modules/unsetenv-tests: Likewise.
17383         * tests/test-setenv.c: New file.
17384         * tests/test-unsetenv.c: Likewise.
17385
17386 2009-11-16  Jim Meyering  <meyering@redhat.com>
17387
17388         version-etc: relax license to LGPLv3+
17389         * modules/version-etc (License): Relax license.
17390
17391         better AC_REQUIRE expanded-before-required-warning avoidance
17392         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
17393         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
17394         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
17395         which is no longer needed.
17396
17397 2009-11-16  Eric Blake  <ebb9@byu.net>
17398
17399         test-freading: clean up temporary file
17400         * tests/test-freading.c (main): Remove file on success, and use
17401         ASSERT more liberally.
17402         Reported by Jim Meyering.
17403
17404 2009-11-16  Jim Meyering  <meyering@redhat.com>
17405
17406         avoid new AC_REQUIRE expanded-before-required warnings
17407         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
17408         merely using it.
17409         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
17410         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
17411
17412 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17413
17414         * tests/test-xalloc-die.c: New file.
17415         * modules/xalloc-die-tests: New file.
17416         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
17417         XFAIL_TESTS so it can be appended by modules.
17418
17419 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17420
17421         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
17422         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
17423
17424 2009-11-14  Eric Blake  <ebb9@byu.net>
17425
17426         fnmatch: avoid compiler warning
17427         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
17428         to silence compiler warning about mismatch signedness in ?:.
17429         Reported by Robert Millan.
17430
17431         intprops: add double-inclusion guard
17432         * lib/intprops.h: Allow idempotent includes.
17433         Suggested by Bruce Korb.
17434
17435         openat: detect Solaris fchownat bug
17436         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
17437         penalizing glibc chownat when only lchownat is broken.
17438         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
17439         trailing slash bugs.
17440         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
17441         * modules/openat-tests (Files): Include more files.
17442         (Depends-on): Add mgetgroups, sleep, stat-time.
17443         (configure.ac): Add additional checks.
17444         (Makefile.am): Build new test.
17445         * tests/test-fchownat.c: New file.
17446
17447         lchown: detect Solaris and FreeBSD bug
17448         * lib/lchown.c (rpl_lchown): Work around bug.
17449         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
17450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17451         * modules/unistd (Makefile.am): Populate it.
17452         * lib/unistd.in.h (lchown): Update declaration.
17453         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17454         * modules/lchown-tests: New file.
17455         * tests/test-lchown.h (test_lchown): Likewise.
17456         * tests/test-lchown.c (main): Likewise.
17457
17458         chown: detect Solaris and FreeBSD bug
17459         * lib/chown.c (rpl_chown): Work around bug.
17460         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
17461         (gl_PREREQ_CHOWN): Delete.
17462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17463         * modules/unistd (Makefile.am): Populate it.
17464         * lib/unistd.in.h (chown): Update declaration.
17465         * lib/lchown.c (chown): Update client.
17466         * modules/lchown (Depends-on): Add lstat.
17467         * doc/posix-functions/chown.texi (chown): Document the bug.
17468         * doc/posix-functions/getgroups.texi (getgroups): Document
17469         getgroups pitfall.
17470         * modules/chown-tests: New file.
17471         * tests/test-chown.h (test_chown): Likewise.
17472         * tests/test-chown.c (main): Likewise.
17473
17474 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
17475
17476         gnulib-tool: correctly detect absence of m4 directories
17477         * gnulib-tool: Avoid extra newline on data passed to wc -l.
17478
17479 2009-11-14  Jim Meyering  <meyering@redhat.com>
17480
17481         maint.mk: Prohibit inclusion of "xalloc.h" without use.
17482         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17483
17484 2009-11-14  John W. Eaton  <jwe@gnu.org>
17485
17486         strftime.h: wrap funtion declaration in extern "C" block
17487         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
17488
17489 2009-11-13  Eric Blake  <ebb9@byu.net>
17490
17491         getgroups: avoid compiler warning
17492         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
17493
17494         getgroups: work around FreeBSD bug
17495         * lib/getgroups.c (rpl_getgroups): Work around the bug.
17496         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
17497         * doc/posix-functions/getgroups.texi (getgroups): Document it.
17498         * tests/test-getgroups.c (main): Fix buffer overrun.
17499
17500         getgroups: avoid compilation failure
17501         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
17502         * modules/getgroups (Depends-on): Add stdint.
17503
17504 2009-11-13  Jim Meyering  <meyering@redhat.com>
17505
17506         test-getgroups: avoid compilation failure
17507         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
17508
17509 2009-11-13  Eric Blake  <ebb9@byu.net>
17510
17511         mgetgroups: new module, taken from coreutils
17512         * modules/mgetgroups: New file.
17513         * lib/mgetgroups.h: Likewise.
17514         * lib/mgetgroups.c (mgetgroups): Likewise.
17515         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
17516         * MODULES.html.sh (Users and groups): Mention it.
17517
17518         getgroups: don't expose GETGROUPS_T to user
17519         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
17520         an element at a time if GETGROUPS_T is wrong size.
17521         * lib/getugroups.h (getugroups): Change signature.
17522         * lib/unistd.in.h (getgroups): Likewise.
17523         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
17524         signature needs fixing.
17525         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
17526         AC_TYPE_GETGROUPS.
17527         * modules/group-member (Depends-on): Add getgroups.
17528         * lib/group-member.c (group_info, get_group_info): Use gid_t.
17529         (group_member): Rely on getgroups replacement.
17530         * lib/getugroups.c (getugroups): Use gid_t.
17531         * tests/test-getgroups.c (main): Likewise.
17532         * NEWS: Mention the signature change.
17533         * doc/posix-functions/getgroups.texi (getgroups): Mention the
17534         problem with signature.
17535         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
17536         GETGROUPS_T is still useful for setgroups.
17537
17538         getgroups, getugroups: provide stubs for mingw
17539         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
17540         * lib/getugroups.c (getugroups): Likewise.
17541         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
17542         function.  Modernize replacement scheme.
17543         (gl_PREREQ_GETGROUPS): Delete.
17544         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
17545         * modules/getgroups (configure.ac): Declare witness.
17546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17547         * modules/unistd (Depends-on): Substitute witness.
17548         * lib/unistd.in.h (getgroups): Declare replacement.
17549
17550         getgroups: avoid calling exit
17551         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
17552         drop xalloc.
17553         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
17554         dependencies.
17555         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
17556         exiting, in the rare case of malloc failure.
17557
17558         getgroups: fix logic error
17559         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
17560         has more than 20 groups.
17561         * modules/getgroups-tests: New test.
17562         * tests/test-getgroups.c: New file.
17563
17564 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17565
17566         * tests/test-base64.c: Improve.
17567
17568 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17569
17570         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
17571         Blake <ebb9@byu.net>.
17572
17573 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17574
17575         * tests/test-xvasprintf.c: Add %s%s related checks.
17576
17577 2009-11-12  Eric Blake  <ebb9@byu.net>
17578
17579         version-etc: match standards.texi style
17580         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
17581         and use <> only for URLs.
17582
17583 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
17584
17585         fts: do not fail on a submount during traversal
17586         * lib/fts.c (fts_build): Read the stat info again after opening
17587         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
17588         Original report at http://bugzilla.redhat.com/501848.
17589
17590 2009-11-12  Jim Meyering  <meyering@redhat.com>
17591
17592         bootstrap: sync from coreutils
17593         * build-aux/bootstrap (bootstrap_epilogue): New function.
17594         Use git_modules_config in one more place.  This make bootstrap's
17595         --gnulib-srcdir option more useful for testing.
17596
17597         bootstrap: generalize autoheader check
17598         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
17599         AC_CONFIG_HEADERS.
17600
17601 2009-11-11  Eric Blake  <ebb9@byu.net>
17602
17603         mkfifoat: use new modules for Solaris and BSD bugs
17604         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
17605         * lib/mkfifoat.c (mknodat): Split...
17606         * lib/mknodat.c (mknodat): ...into new file.
17607         * modules/mkfifoat (Files): Ship new file.
17608         (Depends-on): Add mkfifo, mknod.
17609         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
17610         (Depends-on): Add symlink.
17611         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
17612         redundant with test_mkfifo.h.
17613         (do_mkfifoat, do_mknodat): New helpers.
17614
17615         mknod: new module
17616         * modules/mknod: New file.
17617         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17618         * lib/mknod.c (mknod): Likewise.
17619         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17620         defaults.
17621         * modules/sys_stat (Makefile.am): Substitute them.
17622         * lib/sys_stat.in.h (mknod): Declare replacement.
17623         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17624         Document it.
17625         * doc/posix-functions/mknod.texi (mknod): Likewise.
17626         * modules/mknod-tests: New test.
17627         * tests/test-mknod.c: Likewise.
17628
17629         mkfifo: new module
17630         * modules/mkfifo: New file.
17631         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17632         * lib/mkfifo.c (mkfifo): Likewise.
17633         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17634         defaults.
17635         * modules/sys_stat (Makefile.am): Substitute them.
17636         * lib/sys_stat.in.h (mkfifo): Declare replacement.
17637         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17638         Document it.
17639         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
17640         * modules/mkfifo-tests: New test.
17641         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
17642         from test-mkfifoat.c.
17643         * tests/test-mkfifo.c: New file.
17644
17645         readlink: detect FreeBSD bug
17646         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
17647         slash on symlink.
17648         * doc/posix-functions/readlink.texi (readlink): Document the bug.
17649         * tests/test-readlink.h (test_readlink): Enhance test.
17650
17651         symlink: detect FreeBSD bug
17652         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
17653         slash on symlink.
17654         * doc/posix-functions/symlink.texi (symlink): Document the bug.
17655         * tests/test-symlink.h (test_symlink): Enhance test.
17656
17657 2009-11-10  Eric Blake  <ebb9@byu.net>
17658
17659         link: detect FreeBSD bug
17660         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
17661         symlink.
17662         * doc/posix-functions/link.texi (link): Document the bug.
17663         * tests/test-link.h (test_link): Enhance test.
17664         * tests/test-linkat.c (main): Update caller.
17665
17666         unlink, remove: detect FreeBSD bug
17667         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
17668         slash on symlink.
17669         * doc/posix-functions/unlink.texi (unlink): Document the bug.
17670         * doc/posix-functions/remove.texi (remove): Likewise.
17671         * tests/test-unlink.h (test_unlink): Enhance test.
17672         * tests/test-remove.c (main): Likewise.
17673
17674 2009-11-09  Eric Blake  <ebb9@byu.net>
17675
17676         rename: detect FreeBSD bug
17677         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
17678         slash on symlink.
17679         * modules/renameat-tests (Depends-on): Add filenamecat.
17680         * tests/test-rename.h (test_rename): Allow one more errno.
17681         * tests/test-renameat.c (main): Likewise.
17682         * doc/posix-functions/rename.texi (rename): Document the bug.
17683
17684         open: detect FreeBSD bug
17685         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
17686         symlink.
17687         * doc/posix-functions/open.texi (open): Document the bug.
17688         * doc/posix-functions/utimes.texi (utimes): Likewise.
17689         * tests/test-open.h (test_open): Add parameters, and test symlink
17690         handling.
17691         * tests/test-open.c (main): Adjust caller.
17692         * tests/test-fcntl-safer.c (main): Likewise.
17693         * modules/open-tests (Depends-on): Add stdbool, symlink.
17694         * modules/fcntl-safer-tests (Depends-on): Likewise.
17695         * tests/test-openat.c (main): Add test-open tests.
17696
17697         stat: detect FreeBSD bug
17698         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
17699         symlink.
17700         * doc/posix-functions/stat.texi (stat): Document the bug.
17701         * tests/test-stat.h (test_stat_func): Add argument.
17702         * tests/test-stat.c (main): Adjust caller.
17703         * tests/test-fstatat.c (main): Likewise.
17704         * modules/stat-tests (Depends-on): Add stdbool, symlink.
17705         Reported by Jim Meyering.
17706
17707 2009-11-09  James Youngman  <jay@gnu.org>
17708
17709         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
17710         * lib/strftime.c: Correct placement of #include "ignore-value.h".
17711
17712 2009-11-08  Jim Meyering  <meyering@redhat.com>
17713
17714         utimens: remove invalid futimesat call
17715         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
17716         It used the file descriptor of the target file as the DIR_FD
17717         parameter and NULL as the file name.  That caused failure with
17718         errno == EFAULT on FreeBSD-8.0-rc2
17719
17720 2009-11-07  Eric Blake  <ebb9@byu.net>
17721
17722         fflush, freadseek: use fseeko, not fseek
17723         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17724         (clear_ungetc_buffer): Avoid potential problems on large files.
17725         * lib/freadseek.c (freadseek): Likewise.
17726         * modules/freadseek (Depends-on): Add fseeko.
17727         * modules/fseek (configure.ac): Set a witness.
17728         * tests/test-fflush.c (main): Use fseeko.
17729         * tests/test-fpurge.c (fseek): Disable link warning.
17730         * tests/test-freadable.c (fseek): Likewise.
17731         * tests/test-freading.c (fseek): Likewise.
17732         * tests/test-fseeko.c (fseek): Likewise.
17733         * tests/test-ftell.c (fseek): Likewise.
17734         * tests/test-ftello.c (fseek): Likewise.
17735         * tests/test-fwritable.c (fseek): Likewise.
17736         * tests/test-fwriting.c (fseek): Likewise.
17737
17738 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17739
17740         * modules/memchr (Depends-on): Drop getpagesize dependency.
17741
17742 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17743
17744         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
17745         Reported by Ludovic Courtès.
17746         * build-aux/pmccabe2html: Improve example usage.
17747         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
17748
17749 2009-11-06  Jim Meyering  <meyering@redhat.com>
17750
17751         do-release-commit-and-tag: New module.
17752         Automate the release-commit and tag process.
17753         * build-aux/do-release-commit-and-tag: New script, from coreutils.
17754         * modules/do-release-commit-and-tag: New file.
17755         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17756
17757 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17758
17759         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
17760         because test-select.c uses inet_pton.
17761
17762 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17763
17764         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
17765         GETADDRINFO_LIB.  Bump serial number.
17766         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
17767         Suggested by Eric Blake <ebb9@byu.net>.
17768
17769 2009-11-05  Eric Blake  <ebb9@byu.net>
17770
17771         strtod: detect darwin bug
17772         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
17773         Reported by Leo Davis.
17774
17775         freopen-safer: new module
17776         * modules/freopen-safer: New module.
17777         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
17778         * lib/freopen-safer.c (freopen_safer): New file.
17779         * lib/stdio-safer.h (freopen_safer): New declaration.
17780         * lib/stdio--.h (freopen): New override.
17781         * MODULES.html.sh (File stream based Input/Output): Mention it.
17782         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
17783         freopen-safer module.
17784         * doc/posix-functions/stderr.texi (stderr): Likewise.
17785         * doc/posix-functions/stdin.texi (stdin): Likewise.
17786         * doc/posix-functions/stdout.texi (stdout): Likewise.
17787         * modules/freopen-safer-tests: New test.
17788         * tests/test-reopen-safer.c: New file.
17789
17790 2009-11-05  Jim Meyering  <meyering@redhat.com>
17791
17792         maint.mk: Prohibit inclusion of "close-stream.h" without use.
17793         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17794
17795 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17796
17797         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
17798
17799 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17800
17801         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
17802
17803 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17804
17805         Fix link error.
17806         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17807         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17808
17809 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17810
17811         * tests/test-func.c: Also test value of __func__.
17812
17813 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17814
17815         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
17816         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
17817
17818 2009-11-05  Bruno Haible  <bruno@clisp.org>
17819
17820         Fix link error.
17821         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17822         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17823         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
17824
17825 2009-11-05  Bruno Haible  <bruno@clisp.org>
17826
17827         Tests for module 'inet_pton'.
17828         * modules/inet_pton-tests: New file.
17829         * tests/test-inet_pton.c: New file.
17830
17831 2009-11-05  Bruno Haible  <bruno@clisp.org>
17832
17833         Tests for module 'inet_ntop'.
17834         * modules/inet_ntop-tests: New file.
17835         * tests/test-inet_ntop.c: New file.
17836
17837 2009-11-04  Eric Blake  <ebb9@byu.net>
17838
17839         stdlib-safer: wrap all mkstemp variants
17840         * modules/mkostemp (configure.ac): Set witness.
17841         * modules/mkostemps (configure.ac): Likewise.
17842         * modules/mkstemps (configure.ac): Likewise.
17843         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
17844         (mkstemps_safer): Wrap more functions.
17845         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
17846         wrapping.
17847         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
17848         (mkstemps_safer): Implement the wrappers.
17849
17850         mkstemps, mkostemps: new modules
17851         * modules/mkostemps: New module.
17852         * modules/mkstemps: Likewise.
17853         * lib/mkostemps.c (mkostemps): New file.
17854         * lib/mkstemps.c (mkstemps): Likewise.
17855         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
17856         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
17857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
17858         * modules/stdlib (Makefile.am): Substitute them.
17859         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
17860         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
17861         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17862         * doc/gnulib.texi (Glibc stdlib.h): Include them.
17863         * MODULES.html.sh (File system functions): Mention them.
17864
17865         tempname: resync from glibc
17866         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
17867         same values for __GT_FILE as glibc.  Abort even when assertions
17868         are disabled.
17869         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
17870         match its value otherwise.  Allow idempotent inclusion.
17871         * lib/mkdtemp.c (mkdtemp): Adjust caller.
17872         * lib/mkostemp.c (mkostemp): Likewise.
17873         * lib/mkstemp.c (mkstemp): Likewise.
17874         * lib/tmpfile.c (tmpfile): Likewise.
17875         * NEWS: Document this.
17876
17877         utimens: fix use of futimens on older Linux
17878         * lib/utimens.c (fdutimens): Use updated, rather than original,
17879         timespec to avoid bug in older Linux kernel.
17880         Reported by Simon Josefsson.
17881
17882 2009-11-04  Bruno Haible  <bruno@clisp.org>
17883
17884         Make num_processors more flexible and consistent.
17885         * lib/nproc.h (enum nproc_query): New type.
17886         (num_processors): Add a 'query' argument.
17887         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
17888         (num_processors): Add a 'query' argument. Test the value of the
17889         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
17890         mingw, count the number of CPUs available for the current process.
17891         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
17892         Check for sched_getaffinity and sched_getaffinity_np.
17893         * modules/nproc (Depends-on): Add c-ctype, extensions.
17894         * NEWS: Mention the change.
17895
17896 2009-11-03  Bruno Haible  <bruno@clisp.org>
17897
17898         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
17899
17900 2009-11-03  Jim Meyering  <meyering@redhat.com>
17901
17902         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
17903         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
17904         if it is defined.
17905
17906 2009-11-02  Eric Blake  <ebb9@byu.net>
17907
17908         mktime, timegm: share common declaration
17909         * lib/mktime-internal.h: New file.
17910         * lib/mktime.c: Use it rather than open-coding a declaration.
17911         * lib/timegm.c: Likewise.
17912         * modules/mktime (Files): Ship it.
17913         * modules/timegm (Files): Likewise.
17914         Suggested by Bruno Haible.
17915
17916         test-update-copyright: update test to match script changes
17917         * tests/test-update-copyright.sh: Avoid hard-coding perl
17918         location.  Don't update *.bak created by earlier runs.
17919
17920 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17921             Simon Josefsson  <simon@josefsson.org>
17922             Bruno Haible  <bruno@clisp.org>
17923
17924         Fix link error on Solaris 8.
17925         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
17926         also in libnsl. Define also INET_PTON_LIB.
17927         * modules/inet_pton (Link): New section.
17928
17929 2009-11-02  Simon Josefsson  <simon@josefsson.org>
17930             Bruno Haible  <bruno@clisp.org>
17931
17932         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
17933         * modules/inet_ntop (Link): New section.
17934         Reported by Boyan Kasarov <bkasarov@gmail.com>.
17935
17936 2009-11-02  Eric Blake  <ebb9@byu.net>
17937
17938         maint: avoid compiler warnings in m4 macros
17939         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
17940         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
17941
17942 2009-11-02  Simon Josefsson  <simon@josefsson.org>
17943
17944         * m4/pmccabe2html.m4: Remove file.
17945         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
17946         function.  Change maintainer.
17947         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
17948         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
17949         Courtès).
17950
17951 2009-10-31  Eric Blake  <ebb9@byu.net>
17952
17953         fseeko: fix m4 regression
17954         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
17955         regression from 2009-10-27.
17956         Reported by Ralf Wildenhues.
17957
17958 2009-10-31  Jim Meyering  <meyering@redhat.com>
17959
17960         inttostr: aesthetics and improved (compile-time) safety
17961         Define inttype_is_signed rather than inttype_is_unsigned,
17962         since the sole use is via "#if inttype_is_signed".
17963         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
17964         inttype_is_unsigned.
17965         * lib/offtostr.c (inttype_is_signed): Likewise.
17966         * lib/uinttostr.c (inttype_is_signed): Likewise.
17967         * lib/umaxtostr.c (inttype_is_signed): Likewise.
17968         * lib/inttostr.c (inttostr): Use verify to cross-check the
17969         inttype_is_signed value and the signedness of the actual type.
17970         * modules/inttostr (Depends-on): Add verify.
17971
17972 2009-10-30  Eric Blake  <ebb9@byu.net>
17973
17974         build: avoid compiler warnings
17975         * lib/fchmodat.c (lchmod): Mark unused variables.
17976         * lib/getopt.c (_getopt_initialize): Likewise.
17977         * lib/mktime.c (__mktime_internal): Provide prototype.
17978         * lib/inttostr.c (inttostr): Avoid compiler warning even with
17979         older gcc that do not understand #pragma GCC diagnostic.
17980         * lib/uinttostr.c (inttype_is_unsigned): Define.
17981         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
17982
17983 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
17984
17985         stat: fix compilation on AIX
17986         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
17987         only see struct stat64.
17988
17989 2009-10-30  Eric Blake  <ebb9@byu.net>
17990
17991         exclude: make more robust
17992         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
17993         rather than masking a coding bug.
17994         Suggested by Bruno Haible.
17995
17996 2009-10-30  Jim Meyering  <meyering@redhat.com>
17997
17998         perl scripts: remove #!/usr/bin/perl in favor of more portable...
17999         Rather than putting #!/usr/bin/perl on the first line,
18000         start with a variant of what's recommended by "man perlrun" that
18001         invokes the first "perl" program from your shell's search path.
18002         * build-aux/gitlog-to-changelog: Replace #!... as above.
18003         Add a "Local Variables" perl mode setting.
18004         Prompted by a patch from Ludovic Courtès.
18005         Improved by Eric Blake.
18006         * build-aux/useless-if-before-free: Likewise.
18007         * build-aux/announce-gen: Likewise.
18008         * build-aux/update-copyright: Likewise.
18009
18010 2009-10-29  Eric Blake  <ebb9@byu.net>
18011
18012         filenamecat-lgpl: adjust clients
18013         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18014         filenamecat.
18015         * modules/renameat (Depends-on): Likewise.
18016
18017         filenamecat: split into filenamecat-lgpl
18018         * modules/filenamecat-lgpl: New module.
18019         * modules/filenamecat (Files): Move library-safe files into
18020         filenamecat-lgpl.
18021         (Depends-on): Add filenamecat-lgpl.
18022         (configure.ac): Declare witness.
18023         * lib/filenamecat.h (file_name_concat): Only declare when using
18024         GPL module.
18025         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18026         Move...
18027         * lib/filenamecat-lgpl.c: ...into new file.
18028         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18029         (gl_FILE_NAME_CONCAT): Use it.
18030         * MODULES.html.sh (File system functions): Mention new module.
18031
18032         argp: avoid memory leak
18033         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18034         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18035         base_name, since the latter malloc()s and can call exit().
18036         Leak introduced 2006-07-03.
18037
18038         dirname-lgpl: adjust clients that don't need full dirname
18039         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18040         * modules/filenamecat (Depends-on): Likewise.
18041         * modules/linkat (Depends-on): Likewise.
18042         * modules/mkancesdirs (Depends-on): Likewise.
18043         * modules/mkdir (Depends-on): Likewise.
18044         * modules/openat (Depends-on): Likewise.
18045         * modules/savewd (Depends-on): Likewise.
18046         * modules/rename (Depends-on): Likewise.
18047         (License): Relax license.
18048         * modules/mkdir-tests (Depends-on): Drop progname.
18049         (Makefile.am): Delete unneeded LDADD.
18050         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
18051
18052         dirname: split into dirname-lgpl
18053         * modules/dirname-lgpl: New module.
18054         * modules/dirname (Files): Move library-safe files into
18055         dirname-lgpl.
18056         (Depends-on): Add dirname-lgpl.
18057         (configure.ac): Declare witness.
18058         * modules/double-slash-root (License): Relax license.
18059         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
18060         module.
18061         * lib/dirname.c (dir_len, mdir_name): Move...
18062         * lib/dirname-lgpl.c: ...into new file.
18063         * lib/basename.c (last_component, base_len): Move...
18064         * lib/basename-lgpl.c: ...into new file.
18065         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18066         (gl_DIRNAME): Use it.
18067         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18068         Mention new module.
18069         * modules/dirname-tests (Depends-on): Add progname.
18070         * tests/test-dirname.c (program_name): Delete.
18071
18072         mkdir: make safe for libraries
18073         * modules/mkdir (Depends-on): Drop xalloc.
18074         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18075         exit.
18076
18077         tests: avoid some compiler warnings
18078         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18079         literals.
18080         * tests/test-memchr.c (main): Avoid type mismatch.
18081         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18082         * tests/test-base64.c (main): Likewise.
18083         * tests/test-getdelim.c (main): Likewise.
18084         * tests/test-gethostname.c (main): Likewise.
18085         * tests/test-getline.c (main): Likewise.
18086         * tests/test-netinet_in.c (main): Likewise.
18087         * tests/test-select.c (open_server_socket, main): Likewise.
18088         * tests/test-select-stdin.c (main): Likewise.
18089         * tests/test-sockets.c (main): Likewise.
18090         * tests/test-strsignal.c (main): Likewise.
18091         * tests/test-sys_select.c (main): Likewise.
18092         * tests/test-sys_socket.c (main): Likewise.
18093         * tests/test-u64.c (main): Likewise.
18094         * tests/test-xfprintf-posix.c (main): Likewise.
18095         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18096
18097         sockets: avoid compiler warning
18098         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18099
18100         maint: detect usage(1) and other suspicious exits
18101         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18102
18103 2009-10-29  Jim Meyering  <meyering@redhat.com>
18104
18105         timespec: long-to-int truncation could make timespec_cmp malfunction
18106         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18107         a multiple of 2^32 nanoseconds as no difference.
18108
18109 2009-10-28  Jim Meyering  <meyering@redhat.com>
18110
18111         fprintftime: wrap macro code argument in "do {...} while(0)"
18112         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18113         cpy macro must be a statement that can be followed by a semicolon.
18114         Now that the else clause contains a comment and is hence longer
18115         than one line, I require curly braces.  That in turn requires
18116         that we wrap this code block in the standard do...while(0).
18117
18118         fprintftime: remove stray semicolon from previous change
18119         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18120
18121         fprintftime: avoid a warning about ignored fwrite return value
18122         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18123         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18124         that is unsafe.
18125         * modules/fprintftime (Depends-on): Add ignore-value.
18126
18127         exclude: avoid an unwarranted warning
18128         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18129
18130 2009-10-27  Eric Blake  <ebb9@byu.net>
18131
18132         fseek: avoid compilation failure when fflush is replaced
18133         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18134         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18135         module is in use.
18136         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18137         module is not in use; since REPLACE_FSEEK worked otherwise.
18138         (GNULIB_FTELLO): Likewise for ftell.
18139         Reported by Ian Beckwith and others.
18140
18141 2009-10-27  Bruno Haible  <bruno@clisp.org>
18142
18143         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18144         Reported by Jim Meyering.
18145
18146 2009-10-27  Jim Meyering  <jim@meyering.net>
18147             Bruno Haible  <bruno@clisp.org>
18148
18149         Avoid warning despite dropping the return value of fwrite.
18150         * lib/unicodeio.c: Include ignore-value.h.
18151         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18152         * modules/unicodeio (Depends-on): Add ignore-value.
18153
18154 2009-10-26  Eric Blake  <ebb9@byu.net>
18155
18156         areadlinkat: fix fallback path
18157         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18158         pointer and zero.
18159
18160 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18161
18162         Use a better IO block size for modern systems
18163         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18164         * lib/md2.c: Likewise.
18165         * lib/md4.c: Likewise.
18166         * lib/md5.c: Likewise.
18167         * lib/sha1.c: Likewise.
18168         * lib/sha256.c: Likewise.
18169         * lib/sha512.c: Likewise.
18170
18171 2009-10-22  Eric Blake  <ebb9@byu.net>
18172
18173         tests: avoid several compiler warnings
18174         * tests/test-getcwd.c (main): Avoid buffer underflow.
18175         * tests/test-getdate.c (main): String literals are not safe with
18176         putenv, so use setenv.  Declare unused argument.
18177         * modules/getdate-tests (Depends-on): Add setenv.
18178         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18179         problems with string literals in char *.
18180         * tests/test-hash.c (main): Avoid shadowing declaration.
18181         (insert_new): Treat string literals as char const *.
18182         * tests/test-getopt.h (test_getopt): Likewise.
18183         (getopt_loop): Alter types to minimize casting elsewhere.
18184         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18185         (test_getopt_long_posix): Likewise.
18186         (do_getopt_long): Add wrapper to minimize casting.
18187         * tests/test-atexit.c (clear_temp_file): Use void.
18188         * tests/test-areadlink-with-size.c (main): Declare unused
18189         arguments.
18190         * tests/test-areadlink.c (main): Likewise.
18191         * tests/test-areadlinkat-with-size.c (main): Likewise.
18192         * tests/test-areadlinkat.c (main): Likewise.
18193         * tests/test-canonicalize-lgpl.c (main): Likewise.
18194         * tests/test-canonicalize.c (main): Likewise.
18195         * tests/test-dirent-safer.c (main): Likewise.
18196         * tests/test-dirname.c (main): Likewise.
18197         * tests/test-dup2.c (main): Likewise.
18198         * tests/test-fchdir.c (main): Likewise.
18199         * tests/test-fcntl-h.c (main): Likewise.
18200         * tests/test-fcntl-safer.c (main): Likewise.
18201         * tests/test-fdopendir.c (main): Likewise.
18202         * tests/test-fdutimensat.c (main): Likewise.
18203         * tests/test-fflush.c (main): Likewise.
18204         * tests/test-filenamecat.c (main): Likewise.
18205         * tests/test-filevercmp.c (main): Likewise.
18206         * tests/test-fopen-safer.c (main): Likewise.
18207         * tests/test-fopen.c (main): Likewise.
18208         * tests/test-fpending.c (main): Likewise.
18209         * tests/test-fpurge.c (main): Likewise.
18210         * tests/test-freading.c (main): Likewise.
18211         * tests/test-fstatat.c (main): Likewise.
18212         * tests/test-fsync.c (main): Likewise.
18213         * tests/test-futimens.c (main): Likewise.
18214         * tests/test-getndelim2.c (main): Likewise.
18215         * tests/test-gettimeofday.c (main): Likewise.
18216         * tests/test-getopt.c (main): Likewise.
18217         * tests/test-i-ring.c (main): Likewise.
18218         * tests/test-inttypes.c (main): Likewise.
18219         * tests/test-link.c (main): Likewise.
18220         * tests/test-lstat.c (main): Likewise.
18221         * tests/test-math.c (main): Likewise.
18222         * tests/test-md5.c (main): Likewise.
18223         * tests/test-memchr2.c (main): Likewise.
18224         * tests/test-memrchr.c (main): Likewise.
18225         * tests/test-mkdir.c (main): Likewise.
18226         * tests/test-mkdirat.c (main): Likewise.
18227         * tests/test-mkfifoat.c (main): Likewise.
18228         * tests/test-open.c (main): Likewise.
18229         * tests/test-openat-safer.c (main): Likewise.
18230         * tests/test-openat.c (main): Likewise.
18231         * tests/test-quotearg.c (main): Likewise.
18232         * tests/test-rawmemchr.c (main): Likewise.
18233         * tests/test-readlink.c (main): Likewise.
18234         * tests/test-remove.c (main): Likewise.
18235         * tests/test-rename.c (main): Likewise.
18236         * tests/test-renameat.c (main): Likewise.
18237         * tests/test-rmdir.c (main): Likewise.
18238         * tests/test-sha1.c (main): Likewise.
18239         * tests/test-signal.c (main): Likewise.
18240         * tests/test-sigaction.c (main): Likewise.
18241         * tests/test-stat.c (main): Likewise.
18242         * tests/test-stat-time.c (main): Likewise.
18243         * tests/test-stddef.c (main): Likewise.
18244         * tests/test-stdint.c (main): Likewise.
18245         * tests/test-stdio.c (main): Likewise.
18246         * tests/test-stdlib.c (main): Likewise.
18247         * tests/test-strchrnul.c (main): Likewise.
18248         * tests/test-strerror.c (main): Likewise.
18249         * tests/test-string.c (main): Likewise.
18250         * tests/test-strtod.c (main): Likewise.
18251         * tests/test-strverscmp.c (main): Likewise.
18252         * tests/test-symlink.c (main): Likewise.
18253         * tests/test-symlinkat.c (main): Likewise.
18254         * tests/test-sys_stat.c (main): Likewise.
18255         * tests/test-sys_time.c (main): Likewise.
18256         * tests/test-time.c (main): Likewise.
18257         * tests/test-unistd.c (main): Likewise.
18258         * tests/test-unlink.c (main): Likewise.
18259         * tests/test-unlinkat.c (main): Likewise.
18260         * tests/test-utimens.c (main): Likewise.
18261         * tests/test-utimensat.c (main): Likewise.
18262         * tests/test-version-etc.c (main): Likewise.
18263         * tests/test-wchar.c (main): Likewise.
18264         * tests/test-wctype.c (main): Likewise.
18265         * tests/test-xprintf-posix.c (main): Likewise.
18266         * tests/test-posixtm.c (main): Likewise.
18267         (STREQ): Delete unused macro.
18268         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18269         shadowed variables.
18270         * tests/test-memchr.c (main): Likewise.
18271
18272 2009-10-21  Eric Blake  <ebb9@byu.net>
18273
18274         areadlinkat: avoid failure on older glibc
18275         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18276         rather than mis-comparing 0 against FUNC_RESULT of char*.
18277
18278 2009-10-21  Bruno Haible  <bruno@clisp.org>
18279
18280         * modules/stpncpy (License): Relicense under LGPLv2+.
18281         Reported by David Lutterkort <lutter@redhat.com>.
18282
18283 2009-10-20  Eric Blake  <ebb9@byu.net>
18284
18285         utimensat: work around Solaris 9 bug
18286         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18287         has trailing slash bugs.
18288         * tests/test-lutimens.h (test_lutimens): Enhance test.
18289         * tests/test-utimens.h (test_utimens): Likewise.
18290         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18291         * doc/posix-functions/utimes.texi (utimes): Likewise.
18292         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18293         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18294         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18295         * doc/posix-functions/futimens.texi (futimens): Likewise.
18296
18297         fdutimensat: new module
18298         * modules/fdutimensat: New file.
18299         * lib/fdutimensat.c (fdutimensat): Likewise.
18300         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18301         * MODULES.html.sh (File system functions): Mention module.
18302         * modules/fdutimensat-tests: New test.
18303         * tests/test-fdutimensat.c: Likewise.
18304
18305         doc: regenerate INSTALL
18306         * doc/INSTALL: Reflect recent autoconf update.
18307         * doc/INSTALL.ISO: Likewise.
18308         * doc/INSTALL.UTF-8: Likewise.
18309
18310 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18311
18312         acl: warn if ACL support is not detected
18313         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18314
18315 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18316
18317         * lib/nproc.h: Add extern "C" block for C++.
18318
18319 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18320             Bruno Haible  <bruno@clisp.org>
18321
18322         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18323         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18324         * doc/posix-functions/isalpha.texi: Likewise.
18325         * doc/posix-functions/isblank.texi: Likewise.
18326         * doc/posix-functions/iscntrl.texi: Likewise.
18327         * doc/posix-functions/isdigit.texi: Likewise.
18328         * doc/posix-functions/isgraph.texi: Likewise.
18329         * doc/posix-functions/islower.texi: Likewise.
18330         * doc/posix-functions/isprint.texi: Likewise.
18331         * doc/posix-functions/ispunct.texi: Likewise.
18332         * doc/posix-functions/isspace.texi: Likewise.
18333         * doc/posix-functions/isupper.texi: Likewise.
18334         * doc/posix-functions/isxdigit.texi: Likewise.
18335
18336 2009-10-18  Bruno Haible  <bruno@clisp.org>
18337
18338         Tests for module 'isblank'.
18339         * modules/isblank-tests: New file.
18340         * tests/test-isblank.c: New file.
18341
18342         New module 'isblank'.
18343         * lib/isblank.c: New file.
18344         * m4/isblank.m4: New file.
18345         * modules/isblank: New file.
18346         * doc/posix-functions/isblank.texi: Mention the new module.
18347
18348 2009-10-18  Bruno Haible  <bruno@clisp.org>
18349
18350         New module 'ctype'.
18351         * lib/ctype.in.h: New file.
18352         * m4/ctype.m4: New file.
18353         * modules/ctype: New file.
18354         * doc/posix-headers/ctype.texi: Mention the new module.
18355
18356 2009-10-18  Jim Meyering  <meyering@redhat.com>
18357
18358         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18359         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18360         right after its initialization, rather than farther down.
18361         Keeping these in close proximity makes it easier to ensure
18362         that each such variable is initialized.  E.g.,
18363
18364             LIB_CLOCK_GETTIME=
18365             AC_SUBST([LIB_CLOCK_GETTIME])
18366
18367         This change also increments these serial numbers.
18368         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18369         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18370         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18371
18372 2009-10-18  Bruno Haible  <bruno@clisp.org>
18373
18374         Don't let environment variables perturb build.
18375         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18376         (gl_PREREQ_GETHRXTIME): ... not here.
18377
18378 2009-10-18  Bruno Haible  <bruno@clisp.org>
18379
18380         Avoid symlink attack in localcharset module.
18381         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
18382         (O_NOFOLLOW): Define fallback.
18383         (get_charset_aliases): Don't open the file if it is a symbolic link.
18384         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
18385         gl_FCNTL_H.
18386         (gl_FCNTL_H): Require it.
18387         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
18388         * modules/localcharset (Files): Add m4/fcntl_h.m4.
18389         Reported by Fergal Glynn <fglynn@veracode.com>.
18390
18391 2009-10-18  Bruno Haible  <bruno@clisp.org>
18392
18393         Implement nproc for mingw.
18394         * lib/nproc.c: Include <windows.h>
18395         (num_processors): On native Windows platforms, try GetSystemInfo.
18396
18397 2009-10-18  Bruno Haible  <bruno@clisp.org>
18398
18399         Implement nproc for IRIX.
18400         * lib/nproc.c: Include <sys/sysmp.h>.
18401         (num_processors): On IRIX systems, try sysmp.
18402         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
18403
18404 2009-10-18  Bruno Haible  <bruno@clisp.org>
18405
18406         Implement nproc for HP-UX.
18407         * lib/nproc.c: Include <sys/pstat.h>
18408         (num_processors): On HP-UX systems, try pstat_getdynamic.
18409         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
18410         pstat_getdynamic.
18411
18412 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
18413             Bruno Haible  <bruno@clisp.org>
18414
18415         Implement nproc for NetBSD, OpenBSD.
18416         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
18417         (ARRAY_SIZE): New macro.
18418         (num_processors): On BSD systems, try sysctl of HW_NCPU.
18419         * m4/nproc.m4: New file.
18420         * modules/nproc (Files): Add m4/nproc.m4.
18421         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
18422         (Makefile.am): Instead, augment lib_SOURCES.
18423
18424 2009-10-18  Bruno Haible  <bruno@clisp.org>
18425
18426         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
18427         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
18428         sys/param.h.
18429
18430 2009-10-16  Eric Blake  <ebb9@byu.net>
18431
18432         utimensat: new module
18433         * modules/utimensat: New file.
18434         * lib/utimensat.c (utimensat): Likewise.
18435         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18436         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
18437         so we can work around Linux bugs.
18438         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18439         * modules/sys_stat (Makefile.am): Substitute them.
18440         * lib/sys_stat.in.h (utimensat): Declare it.
18441         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18442         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18443         * modules/utimensat-tests: New test.
18444         * tests/test-utimensat.c: Likewise.
18445
18446         utimens: let lutimens work on non-symlinks
18447         * lib/utimens.c (lutimens): Fall back to utimens rather than
18448         failing with ENOSYS, when file is not a symlink.
18449         (utimens): Reduce redirection.
18450         * tests/test-lutimens.h (test_lutimens): Update test to cover
18451         non-symlinks.
18452         * tests/test-utimens.h (test_utimens): Update test to cover
18453         symlinks.
18454         * tests/test-utimens.c (main): Update caller.
18455
18456         utimens: cache whether utimensat syscall works
18457         * lib/utimens.c (utimensat_works_really): New cache variable.
18458         (fdutimens, lutimens): Use it to avoid failing syscall.
18459
18460         test-stat-time, test-utimens: improve portability
18461         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
18462         ext4 on alpha, and for cygwin.
18463         * tests/test-utimens-common.h: New file.
18464         (nap): Factor delays into single function.
18465         * tests/test-lutimens.h (test_lutimens): Use new header.
18466         * tests/test-futimens.h (test_futimens): Likewise.
18467         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
18468         timestamps to occur from same machine, as was done previously for
18469         test_utimens.
18470         * modules/utimens-tests (Files): Ship new file.
18471         * modules/futimens-tests (Files): Likewise.
18472         Reported in part by Jim Meyering.
18473
18474         sys_stat: sort replacement declarations
18475         * lib/sys_stat.in.h: Sort declarations.
18476         * lib/futimens.c (futimens): Fix typo.
18477
18478 2009-10-15  Jim Meyering  <meyering@redhat.com>
18479
18480         don't let environment settings perturb build
18481         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
18482         could cause a configure-time and/or build-time malfunction.
18483         Typically, a configure-time function-in-library test is performed
18484         via code like this:
18485
18486           LIB_VAR=
18487           AC_SUBST([LIB_VAR])
18488           prefix_saved_LIBS=$LIBS
18489             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
18490                        [test "$ac_cv_search_FUNC" = "none required" ||
18491                         LIB_VAR=$ac_cv_search_FUNC])
18492           LIBS=$prefix_saved_LIBS
18493
18494         However, in each of the files affected by this change, the LIB_VAR=
18495         initialization was omitted.  Thus, when set in the environment, its
18496         value would propagate into generated Makefiles when FUNC is not found
18497         in LIB_NAME.
18498         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
18499         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18501
18502 2009-10-14  Eric Blake  <ebb9@byu.net>
18503
18504         fchdir: avoid infinite recursion in mingw
18505         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
18506         recursing.
18507
18508         test-stat-time: port to mingw
18509         * tests/test-stat-time.c (force_unlink): Return a value.
18510         (test_ctime) [W32]: Fix compilation error.
18511         (nap): Don't call usleep with too large an argument.  Use
18512         force_unlink.
18513         * doc/pastposix-functions/usleep.texi (usleep): Document the
18514         portability issue.
18515
18516 2009-10-13  Jim Meyering  <meyering@redhat.com>
18517
18518         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
18519         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
18520         * modules/pipe-filter-ii: Likewise.
18521         * modules/sys_socket-tests: Likewise.
18522         * modules/tsearch-tests: Likewise.
18523         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
18524         (check): Depend on it.
18525
18526 2009-10-12  Eric Blake  <ebb9@byu.net>
18527
18528         utimens-tests: port to NFS file systems
18529         * tests/test-utimens.h (test_utimens): Refactor utimecmp
18530         comparisons to avoid spurious failures from timestamp drift
18531         between NFS machines.
18532
18533 2009-10-12  Eric Blake  <ebb9@byu.net>
18534
18535         stat-time-tests: minor cleanups
18536         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
18537         * tests/test-stat-time.c (nap): Separate assignment from call.
18538         Suggested by Paolo Bonzini and Bruno Haible.
18539
18540         sys_stat: guarantee struct timespec
18541         * lib/sys_stat.in.h (includes): Always include <time.h>
18542         * modules/sys_stat (Depends-on): Add time.
18543         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
18544         mode_t permission values.
18545         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
18546         get at subsecond timestamps.
18547
18548 2009-10-10  Eric Blake  <ebb9@byu.net>
18549
18550         futimens: new module
18551         * modules/futimens: New file.
18552         * lib/futimens.c (futimens): Likewise.
18553         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
18554         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
18555         we can work around Linux bugs.
18556         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18557         * modules/sys_stat (Makefile.am): Substitute them.
18558         * lib/sys_stat.in.h (futimens): Declare it.
18559         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18560         * doc/posix-functions/futimens.texi (futimens): Likewise.
18561         * modules/futimens-tests: New test.
18562         * tests/test-futimens.c: Likewise.
18563
18564         utimens: introduce fdutimens
18565         * lib/utimens.h (fdutimens): New prototype.
18566         * lib/utimens.c (gl_futimens): Move guts...
18567         (fdutimens): ...to new interface.
18568         * tests/test-utimens.c (do_fdutimens): Use it.
18569
18570         utimens: add UTIME_NOW and UTIME_OMIT support
18571         * lib/utimens.c (validate_timespec, update_timespec): New helper
18572         functions.
18573         (gl_futimens, lutimens): Use them.
18574         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
18575         stdbool, sys_stat.
18576         (Link): Mention resulting library dependency.
18577         * modules/utimecmp (Link): Likewise.
18578         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
18579         (Makefile.am): Pick up library dependency.
18580         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
18581         definition.
18582         * tests/test-sys_stat.c: Test the definitions.
18583         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
18584         * NEWS: Document library dependency.
18585
18586         utimecmp: support symlink timestamps
18587         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
18588         hashing when possible.  Use pathconf when available.
18589         (SYSCALL_RESOLUTION): Recognize tighter resolution.
18590         * modules/utimecmp (Depends-on): Add lstat.
18591
18592         utimens: add lutimens interface
18593         * lib/utimens.c (lutimens): New function.
18594         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
18595         * lib/utimens.h (lutimens): Declare new interface.
18596         * tests/test-utimens.c (main): Enhance test.
18597         * tests/test-lutimens.h (test_lutimens): New file.
18598         * modules/utimens-tests (Files): Distribute it.
18599         (Depends-on): Add symlink.
18600         (configure.ac): Check for usleep.
18601
18602         utimens: validate futimens usage
18603         * lib/utimens.c (gl_futimens): Require valid fd up front, using
18604         fewer syscalls on failure later on.  Avoid compiler warning on
18605         mingw.
18606         * modules/utimens (Depends-on): Add dup2.
18607
18608         utimens: add test
18609         * modules/utimens-tests: New test.
18610         * tests/test-utimens.h: New file.
18611         * tests/test-futimens.h: Likewise.
18612         * tests/test-utimens.c: Likewise.
18613
18614         doc: mention timestamp portability issues
18615         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
18616         instead.
18617         * doc/posix-functions/utime.texi (utime): Likewise.
18618         * doc/posix-functions/utimes.texi (utimes): Likewise.
18619         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
18620         instead.
18621         * doc/posix-functions/futimens.texi (futimens): Mention utimens
18622         module.
18623         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18624         Mention weakness with symlink timestamps.
18625         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
18626         to utimensat/futimens instead.
18627         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
18628
18629         test-dup2: enhance test
18630         * tests/test-dup2.c (main): Also check AT_FDCWD.
18631
18632         test-stat-time: avoid more spurious failures
18633         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
18634         xfs; and avoid race if the two timestamps cross quantization edge.
18635
18636         relocatable: prefer 'file system' over 'filesystem'
18637         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
18638         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
18639         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
18640         * doc/relocatable.texi (Enabling Relocatability): Likewise.
18641         * lib/relocatable.c (compute_curr_prefix): Likewise.
18642
18643 2009-10-10  Jim Meyering  <meyering@redhat.com>
18644
18645         stat-time-tests: check for the usleep function
18646         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
18647
18648 2009-10-10  Bruno Haible  <bruno@clisp.org>
18649
18650         * modules/xnanosleep: Put the Link section after the Include section.
18651
18652 2009-10-09  Eric Blake  <ebb9@byu.net>
18653
18654         dup2: work around FreeBSD 6.1 bug
18655         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
18656         * doc/posix-functions/dup2.texi (dup2): Document it.
18657         Reported by Nelson H. F. Beebe and Jim Meyering.
18658
18659         test-stat-time: port to buggy NFS clients
18660         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
18661         (test_ctime): Also skip test if mtime and ctime are skewed.
18662
18663         maint: prefer 'file system' over 'filesystem'
18664         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18665         * doc/posix-functions/lstat.texi (lstat): Likewise.
18666         * lib/file-has-acl.c (file_has_acl): Likewise.
18667         * lib/fwriteerror.c [TEST]: Likewise.
18668         * tests/test-areadlink.h (test_areadlink): Likewise.
18669         * tests/test-areadlinkat-with-size.c (main): Likewise.
18670         * tests/test-areadlinkat.c (main): Likewise.
18671         * tests/test-canonicalize-lgpl.c (main): Likewise.
18672         * tests/test-canonicalize.c (main): Likewise.
18673         * tests/test-fstatat.c (main): Likewise.
18674         * tests/test-linkat.c (main): Likewise.
18675         * tests/test-lstat.h (test_lstat_func): Likewise.
18676         * tests/test-mkdir.h (test_mkdir): Likewise.
18677         * tests/test-readlink.h (test_readlink): Likewise.
18678         * tests/test-remove.c (main): Likewise.
18679         * tests/test-rename.h (test_rename): Likewise.
18680         * tests/test-renameat.c (main): Likewise.
18681         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18682         * tests/test-symlink.h (test_symlink): Likewise.
18683         * tests/test-symlinkat.c (main): Likewise.
18684         * tests/test-unlink.h (test_unlink_func): Likewise.
18685         * tests/test-unlinkat.c (main): Likewise.
18686
18687         maint: make realtime library usage explicit
18688         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
18689         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
18690         * modules/settime (Link): Likewise.
18691         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
18692
18693         test-stat-time: speed up execution
18694         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
18695         warning on mingw.
18696         (nap): New helper function.
18697         (prepare_test): Use it to reduce sleep time.
18698         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
18699         execution.
18700         * modules/stat-time-tests (configure.ac): Check for usleep.
18701
18702 2009-10-09  Jim Meyering  <meyering@redhat.com>
18703
18704         selinux-h: always use getfilecon wrappers
18705         * lib/getfilecon.c: New file.
18706         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
18707         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
18708         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
18709         (fgetfilecon): Provide a stub.
18710         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
18711         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
18712         file unconditionally.
18713         When <selinux/selinux.h> is found, arrange to use wrappers.
18714         * modules/selinux-h (Files): Add getfilecon.c.
18715         (Makefile.am): Substitute include-next-related bits
18716         into the now-always-generated selinux/selinux.h file.
18717         * doc/glibc-functions/lgetfilecon.texi: New file.
18718         * doc/glibc-functions/fgetfilecon.texi: New file.
18719         * doc/glibc-functions/getfilecon.texi: New file.
18720         * doc/glibc-functions/getfilecon-desc.texi: New file.
18721         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
18722         which to pull in the new files.
18723         * MODULES.html.sh (Misc): Add selinux-h.
18724
18725 2009-10-08  Jim Meyering  <meyering@redhat.com>
18726
18727         unistd: fix comment typo
18728         * lib/unistd.in.h (euidaccess): Fix a comment typo.
18729
18730 2009-10-08  Eric Blake  <ebb9@byu.net>
18731
18732         areadlink: use SIZE_MAX consistently
18733         * modules/areadlink (Depends-on): Add stdint.
18734         * modules/areadlink-with-size (Depends-on): Likewise.
18735         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
18736         gives NULL; drop sys/types, since unistd gives size_t; and add
18737         stdint for SIZE_MAX.
18738         (SIZE_MAX): Rely on headers.
18739         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
18740         and add stdint.
18741         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
18742         (SIZE_MAX): Likewise.
18743         (INITIAL_BUF_SIZE): Turn into enum.
18744         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
18745
18746 2009-10-08  Jim Meyering  <meyering@redhat.com>
18747
18748         areadlinkat: avoid compilation failure
18749         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
18750         Fix typo in comment.
18751
18752 2009-10-07  Eric Blake  <ebb9@byu.net>
18753
18754         areadlinkat-with-size: new module
18755         * modules/areadlinkat-with-size: New module.
18756         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
18757         * lib/areadlink.h (areadlinkat): Declare it.
18758         * MODULES.html.sh (File system functions): Mention it.
18759         * modules/areadlinkat-with-size-tests: New test.
18760         * tests/test-areadlinkat-with-size.c: New file.
18761
18762         xreadlinkat: new module
18763         * modules/xreadlinkat: New module.
18764         * lib/xreadlinkat.c (xreadlinkat): New file.
18765         * lib/xreadlink.h (xreadlinkat): Declare it.
18766         * MODULES.html.sh (File system functions): Mention it.
18767
18768         areadlinkat: new module
18769         * lib/at-func.c (FUNC_FAIL): New define.
18770         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
18771         * modules/areadlinkat: New module.
18772         * lib/linkat.c (areadlinkat): Move...
18773         * lib/areadlinkat.c (areadlinkat): ...to new file.
18774         * lib/areadlink.h (areadlinkat): Declare it.
18775         * modules/linkat (Depends-on): Add areadlinkat.
18776         * MODULES.html.sh (File system functions): Mention it.
18777         * modules/areadlinkat-tests: New test.
18778         * tests/test-areadlinkat.c: New file.
18779
18780         areadlink, areadlink-with-size: add tests
18781         * modules/areadlink-tests: New test.
18782         * modules/areadlink-with-size-tests: Likewise.
18783         * tests/test-areadlink.h: New file.
18784         * tests/test-areadlink.c: Likewise.
18785         * tests/test-areadlink-with-size.c: Likewise.
18786
18787         maint: minor cleanups
18788         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
18789         _UNUSED_PARAMETER_ instead.
18790         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
18791         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
18792         * modules/linkat-tests (Files): Distribute test-link.h.
18793
18794         openat, utimens: whitespace cleanup
18795         * lib/openat.c: Prefer space throughout, rather than mix of 8
18796         spaces vs. tabs.
18797         * lib/at-func.c: Likewise.
18798         * lib/utimens.c: Likewise.
18799
18800         openat: avoid using wrong fd
18801         * lib/openat.c (openat_permissive): Reject user's fd if saving the
18802         working directory chooses same fd.
18803         * lib/at-func.c (AT_FUNC_NAME): Likewise.
18804
18805         mkdir, mkdirat: fix cygwin 1.5.x bug
18806         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
18807         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
18808         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
18809         bug.
18810         (gl_PREREQ_MKDIR): Delete unused macro.
18811         * modules/mkdir (Files): Track file rename.
18812         (configure.ac): Update macro name.
18813         * modules/openat (Depends-on): Add mkdir.
18814         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
18815
18816         mkdir, mkdirat: add tests
18817         * modules/mkdir-tests: New test.
18818         * tests/test-mkdir.h: New file.
18819         * tests/test-mkdir.c: Likewise.
18820         * tests/test-mkdirat.c: Likewise.
18821         * modules/openat-tests (Files): Add new files.
18822         (Makefile.am): Run new test.
18823
18824 2009-10-06  Eric Blake  <ebb9@byu.net>
18825
18826         doc: tweak *at function documentation
18827         * doc/posix-functions/faccessat.texi (faccessat): Mention
18828         known issue with replacement.
18829         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
18830         * doc/posix-functions/linkat.texi (linkat): Likewise.
18831         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18832         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18833         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18834         * doc/posix-functions/renameat.texi (renameat): Likewise.
18835         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18836
18837         openat: fix GNU/Hurd bug in unlinkat
18838         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
18839         broken.
18840         * doc/posix-functions/unlink.texi (unlink): Document this.
18841         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
18842
18843         fdopendir: fix GNU/Hurd bug
18844         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
18845         allowing non-directory fds.
18846         * lib/fdopendir.c (rpl_fdopendir): Work around it.
18847         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18848         * modules/dirent (Makefile.am): Substitute it.
18849         * lib/dirent.in.h (fdopendir): Declare replacement.
18850         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
18851         * tests/test-fdopendir.c (main): Test something other than
18852         /dev/null, since on Hurd that behaves like a directory.
18853
18854         test-symlink: port to GNU/Hurd
18855         * tests/test-symlink.h (test_symlink): Relax expected errno.
18856
18857         doc: tweak more cygwin information
18858         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
18859         now compatible with glibc.
18860         * doc/posix-functions/getopt.texi (getopt): Likewise.
18861
18862         getopt-gnu: add another test
18863         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
18864         guarantee behavior relied on by m4.
18865         * tests/test-getopt.c (main): Use it.
18866         * modules/getopt-posix-tests (Depends-on): Add setenv.
18867         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
18868
18869         getopt: fix compilation on darwin
18870         * lib/getopt.in.h (includes): Leave breadcrumbs during system
18871         include.
18872         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
18873         Reported by Ludovic Courtès.
18874
18875 2009-10-06  Bruno Haible  <bruno@clisp.org>
18876
18877         * modules/size_max (Description): Discourage its use.
18878         Reported by Simon Josefsson.
18879
18880 2009-10-06  Jim Meyering  <meyering@redhat.com>
18881
18882         linkat: avoid compilation failure
18883         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
18884
18885 2009-10-05  Eric Blake  <ebb9@byu.net>
18886
18887         linkat: support Linux 2.6.17
18888         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
18889         linkat on Linux, but allow cache variable override.
18890         * lib/linkat.c (rpl_linkat): Define override.
18891         * modules/linkat (Depends-on): Add symlinkat.
18892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
18893         * modules/unistd (Makefile.am): Substitute it.
18894         * lib/unistd.in.h (linkat): Declare replacement.
18895         Reported by Pádraig Brady.
18896
18897         quotearg: port test to systems with C.UTF-8 locale
18898         * tests/test-quotearg.c (struct result_strings): Add another
18899         member, differentiating between C.ASCII and C.UTF-8 handling.
18900         (compare_strings): Add parameter.
18901         (main): Adjust all callers.
18902
18903         getopt: avoid clash with FreeBSD _getopt_internal
18904         * lib/getopt.in.h (_getopt_internal): Override the name.
18905         * lib/getopt_int.h (includes): Pick up any overrides.
18906         Reported by Reuben Thomas.
18907
18908         hash: allow C89 compilation
18909         * lib/hash.c (check_tuning): Move declaration before statement.
18910         Reported by Reuben Thomas.
18911
18912 2009-10-05  Karl Berry  <karl@gnu.org>
18913
18914         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
18915
18916 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
18917             Bruno Haible  <bruno@clisp.org>
18918
18919         * lib/uname.c (uname): Use a table-driven algorithm to compute
18920         Windows NT versions.
18921
18922 2009-10-04  Bruno Haible  <bruno@clisp.org>
18923
18924         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
18925         program_invocation_short_name.
18926         * modules/progname (configure.ac): Test for presence of
18927         program_invocation_short_name.
18928         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18929
18930 2009-10-04  Bruno Haible  <bruno@clisp.org>
18931
18932         * lib/progname.c (set_program_name): Fix comment.
18933         Reported by Jim Meyering.
18934
18935 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
18936             Bruno Haible  <bruno@clisp.org>
18937
18938         * lib/uname.c: Include <string.h>.
18939         (uname): Do only one call to GetVersionEx in the common case.
18940
18941 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
18942             Bruno Haible  <bruno@clisp.org>
18943
18944         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
18945         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
18946         (uname): Add support for Windows CE and various non-x86 CPU types.
18947
18948 2009-10-03  Bruno Haible  <bruno@clisp.org>
18949
18950         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
18951         invocation to tests/configure.ac.
18952         Reported by Ian Beckwith <ianb@erislabs.net>.
18953
18954 2009-10-02  Eric Blake  <ebb9@byu.net>
18955
18956         fchdir: avoid compiler warning
18957         * lib/fchdir.c (canonicalize_file_name)
18958         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
18959
18960         test-open: support mingw errno values
18961         * tests/test-open.h (test_open): Relax test.
18962         * tests/test-fopen.h (test_fopen): Likewise.
18963         * tests/test-openat-safer.c (main): Likewise.
18964
18965         open: fix opening directory on mingw
18966         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
18967
18968         test-open: on GNU/Hurd, /dev/null is a directory
18969         * tests/test-fopen.h (main): Rename...
18970         (test_fopen): ...to this.  Use a guaranteed non-directory when
18971         confirming open behavior on trailing slash.
18972         * tests/test-openat-safer.c (main): Likewise.
18973         * tests/test-open.h (main): Likewise....
18974         (test_open): ...to this.
18975         * tests/test-fopen.c (main): Adjust caller.
18976         * tests/test-fopen-safer.c (main): Likewise.
18977         * tests/test-open.c (main): Likewise.
18978         * tests/test-fcntl-safer.c (main): Likewise.
18979         Reported by Samuel Thibault.
18980
18981         rename, fchdir: don't ignore chdir failure
18982         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
18983         * lib/rename.c (rpl_rename) [W32]: Likewise.
18984         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
18985         an empty destination directory if source cannot be renamed,
18986         although there is still possibility for failure.
18987         * doc/posix-functions/rename.texi (rename): Document the race.
18988         Reported by Jim Meyering.
18989
18990         maint: cleanup whitespace in recent commits
18991         * lib/rename.c (rpl_rename): Remove tabs.
18992         * tests/test-link.h (test_link): Likewise.
18993         * lib/fchdir.c (get_name): Likewise.
18994         Reported by Jim Meyering.
18995
18996 2009-10-02  Ben Pfaff  <blp@gnu.org>
18997
18998         relocatable-prog-wrapper: Add missing dependency on
18999         double-slash-root.
19000         * modules/relocatable-prog-wrapper: Add dependency.
19001         Reported by Ian Beckwith <ianb@erislabs.net>.
19002
19003 2009-10-02  Eric Blake  <ebb9@byu.net>
19004
19005         renameat: fix Solaris bugs
19006         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19007         needed fixing.
19008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19009         * modules/stdio (Makefile.am): Substitute it.
19010         * lib/stdio.in.h (renameat): Declare replacement.
19011         * lib/renameat.c (rpl_renameat): Implement fix.
19012
19013         renameat: new module
19014         * modules/renameat: New file.
19015         * lib/renameat.c (renameat): Likewise.
19016         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19018         * modules/stdio (Makefile.am): Substitute them.
19019         * lib/stdio.in.h (renameat): Declare it.
19020         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19021         * doc/posix-functions/renameat.texi (renameat): Likewise.
19022         * modules/renameat-tests: New test.
19023         * tests/test-renameat.c: Likewise.
19024
19025         rename: fix mingw bugs
19026         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19027         directory overwrite bugs.
19028
19029         rename: fix another cygwin 1.5 bug
19030         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19031         checks.
19032         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19033         unnecessary cygwin workarounds.  Also work around bug with moving
19034         full directory onto an empty one.
19035         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19036
19037         rename-dest-slash: merge into rename module
19038         * modules/rename-dest-slash (Status): Mark obsolete.
19039         (Depends-on): Add rename.
19040         (Files): Let rename do it all.
19041         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19042         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19043         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19044         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19045         * lib/rename.c (rpl_rename): Update comments.
19046
19047         rename: fix cygwin 1.5.x bugs
19048         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
19049         * lib/rename.c (rpl_rename): Work around them.
19050         * modules/rename (Depends-on): Add same-inode.
19051
19052         rename: fix Solaris 10 bug
19053         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19054         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
19055         was the only bug.
19056
19057         rename: fix Solaris 9 bug
19058         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
19059         on non-directory.  Avoid calling exit.
19060         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
19061         strdup.
19062         * modules/rename-tests (Depends-on): Drop lstat.
19063         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19064         (gl_PREREQ_RENAME): Delete unused macro.
19065
19066         rename-dest-slash: fix NetBSD bug
19067         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19068         links.
19069         * modules/rename-dest-slash (Depends-on): Add same-inode.
19070
19071         rename-tests: new test, exposes several platform bugs
19072         * modules/rename-tests: New file.
19073         * tests/test-rename.h: Likewise.
19074         * tests/test-rename.c: Likewise.
19075         * doc/posix-functions/rename.texi (rename): Improve documentation,
19076         including bugs that will eventually be fixed in gnulib.
19077
19078 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19079
19080         * lib/uname.c: Include <stdlib.h>
19081         (uname): Assume version info is available.
19082
19083 2009-10-02  Jim Meyering  <meyering@redhat.com>
19084
19085         gnu-web-doc-update: correct --help output
19086         * build-aux/gnu-web-doc-update: Make --help output relevant.
19087
19088         gnu-web-doc-update: add standard options
19089         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19090
19091         gnu-web-doc-update: New module.
19092         Use this script to automatically update the on-line web documentation
19093         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19094         * modules/gnu-web-doc-update: New file, from coreutils.
19095         * build-aux/gnu-web-doc-update: New script.
19096
19097 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19098
19099         link: LoadLibrary is not needed.
19100         * lib/link.c: Use GetModuleHandle.
19101
19102 2009-10-01  Eric Blake  <ebb9@byu.net>
19103
19104         getopt: bump serial number
19105         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19106         change.
19107
19108         tests: tighten link, rmdir, and remove tests
19109         * tests/test-link.h (includes): No need to use <config.h> here.
19110         Clean up if directory hard link was created, otherwise test for
19111         trailing '.'.
19112         * tests/test-linkat.c (main): Simplify.
19113         * tests/test-remove.c (main): Enhance test for trailing '.'.
19114         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19115
19116 2009-10-01  Jim Meyering  <meyering@redhat.com>
19117
19118         maint.mk: requiring "make major" was annoying, for a "minor" release.
19119         What is intended is "stable", to contrast with alpha and beta,
19120         so require "make stable", not "make major".
19121         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19122         (get_tool_versions): Likewise.
19123         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19124
19125 2009-09-30  Ben Pfaff  <blp@gnu.org>
19126
19127         Fix broken build of replacement for Windows tmpfile().
19128         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19129         flags argument added along with the 'mkostemp' module.
19130
19131 2009-09-28  Bruno Haible  <bruno@clisp.org>
19132
19133         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19134         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19135         to 'remove_elt'.
19136         (gl_list_remove): Update.
19137         * lib/gl_list.c (gl_list_remove): Update.
19138         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19139         to 'remove_elt'.
19140         (gl_oset_remove): Update.
19141         * lib/gl_list.c (gl_oset_remove): Update.
19142         Reported by Eric Blake.
19143
19144 2009-09-28  Eric Blake  <ebb9@byu.net>
19145
19146         doc: mention yet more cygwin 1.7 status
19147         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19148         cygwin.
19149         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19150         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19151
19152         argp: fix test failure
19153         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19154         that are not upper-case.  Pass correct range to tolower.
19155
19156 2009-09-27  Jim Meyering  <meyering@redhat.com>
19157
19158         test-yesno: work around sparc-dash here-document infelicity
19159         Without this change, the literal \177 byte in a here document
19160         would make dash 0.5.5.1-3 access uninitialized memory.
19161         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19162         Instead, use a marker, "@", and filter through tr to create the desired
19163         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19164
19165 2009-09-27  Bruno Haible  <bruno@clisp.org>
19166
19167         Disable untested support for new flavours of ACLs on AIX.
19168         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19169         progress.
19170         * lib/set-mode-acl.c (qset_acl): Likewise.
19171
19172 2008-12-07  Bruno Haible  <bruno@clisp.org>
19173
19174         Add support for new flavours of ACLs on AIX. (Untested.)
19175         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19176         (file_has_acl): Add support for newer AIX.
19177         * lib/set-mode-acl.c (qset_acl): Likewise.
19178         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19179         Rainer Tammer <tammer@tammer.net>.
19180
19181 2009-09-26  Eric Blake  <ebb9@byu.net>
19182
19183         argp: fix compilation of getopt
19184         * lib/getopt.in.h (includes): Use different guard than glibc.
19185         Reported by Sergey Poznyakoff.
19186
19187         doc: mention more cygwin 1.7 status
19188         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19189         bug.
19190         * doc/posix-functions/execl.texi (execl): Likewise.
19191         * doc/posix-functions/execle.texi (execle): Likewise.
19192         * doc/posix-functions/execlp.texi (execlp): Likewise.
19193         * doc/posix-functions/execv.texi (execv): Likewise.
19194         * doc/posix-functions/execve.texi (execve): Likewise.
19195         * doc/posix-functions/execvp.texi (execvp): Likewise.
19196         * doc/glibc-functions/canonicalize_file_name.texi
19197         (canonicalize_file_name): Cygwin 1.7 now provides this.
19198         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19199         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19200         on AT_SYMLINK_NOFOLLOW.
19201
19202 2009-09-24  Eric Blake  <ebb9@byu.net>
19203
19204         test-linkat: make test more robust
19205         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19206
19207         getopt: fix inclusion guards for cygwin
19208         * modules/getopt-posix (Depends-on): Add include-next.
19209         (Makefile.am): Substitute more items in replacement header.
19210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19211         <getopt.h>.
19212         * lib/getopt.in.h (includes): Use split inclusion guard, and
19213         prefer <getopt.h> over include <unistd.h> when one is present.
19214         (option): Also override name of 'struct option'.
19215
19216         same-inode: revert prior change; it is not yet ready
19217         * NEWS: Undo mention of this change.
19218         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19219         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19220         * lib/cycle-check.c (cycle_check): Likewise.
19221         * lib/same.c (same_name): Likewise.
19222         * lib/at-func2.c (at_func2): Likewise.
19223
19224 2009-09-23  Eric Blake  <ebb9@byu.net>
19225
19226         linkat: new module
19227         * modules/linkat: New file.
19228         * lib/at-func2.c (at_func2): Likewise.
19229         * lib/linkat.c (linkat): Likewise.
19230         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19231         * lib/openat-priv.h (at_func2): Add declaration.
19232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19233         * modules/unistd (Makefile.am): Substitute them.
19234         * lib/unistd.in.h (linkat): Declare it.
19235         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19236         * doc/posix-functions/linkat.texi (linkat): Likewise.
19237         * doc/posix-functions/link.texi (link): Tweak wording.
19238         * tests/test-link.c (main): Move guts...
19239         * tests/test-link.h (test_link): ...into new file.
19240         * modules/linkat-tests: New test.
19241         * tests/test-linkat.c: Likewise.
19242         * modules/link-tests (Files): Ship new file.
19243         (Depends-on): Add stdbool.
19244
19245         dirname: add library-safe mdir_name
19246         * lib/dirname.h (mdir_name): New prototype.
19247         * lib/dirname.c (dir_name): Move guts...
19248         (mdir_name): ...to new function that avoids xalloc_die.
19249
19250         fchdir: another mingw fix
19251         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19252         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19253         on mingw (where it has not yet been ported), and make it optional
19254         elsewhere.
19255         (_gl_register_fd): Use it.
19256
19257         same-inode: make SAME_INODE tri-state, to port to mingw
19258         * NEWS: Mention this change.
19259         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19260         st_ino always being 0.
19261         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19262         * lib/cycle-check.c (cycle_check): Likewise.
19263         * lib/same.c (same_name): Likewise.
19264
19265         lstat: avoid mingw compilation error
19266         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19267         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19268         lstat ourselves.
19269         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19270         was adequate.
19271         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19272         the checks for lstat.
19273         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19274
19275         link: fix test failure on Solaris 9
19276         * lib/link.c (rpl_link): Don't assume link will catch bogus
19277         trailing slash on source.
19278
19279         test-symlinkat: enhance test
19280         * tests/test-readlink.c (main): Move guts...
19281         * tests/test-readlink.h (test_readlink): ...into new file.
19282         * tests/test-symlink.c (main): Move guts...
19283         * tests/test-symlink.h (test_symlink): ...into new file.
19284         * tests/test-symlinkat.c (main): Use new files for further
19285         coverage.
19286         (do_symlink, do_readlink): New helper functions.
19287         * modules/symlink-tests (Files): Ship new file.
19288         (Depends-on): Add stdbool.
19289         * modules/readlink-tests (Files): Ship new file.
19290         (Depends-on): Add stdbool.
19291         * modules/symlinkat-tests (Files): Use new files.
19292
19293 2009-09-23  Eric Blake  <ebb9@byu.net>
19294
19295         readlink: document portability issue with symlink length
19296         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19297         systems have bogus st_size on symlinks, and mention the
19298         areadlink-with-size module.
19299         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19300         * doc/posix-functions/readlink.texi (readlink): Mention the
19301         areadlink module, and ERANGE failure.
19302         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19303         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19304
19305         readlink: fix Solaris 9 bug with trailing slash
19306         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19307         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19308         * doc/posix-functions/readlink.texi (readlink): Document this.
19309         * modules/readlink-tests: New test.
19310         * tests/test-readlink.c: Likewise.
19311
19312         readlink: fix cygwin 1.5.x bug with return type
19313         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19314         * lib/unistd.in.h (readlink): Use ssize_t.
19315         * lib/readlink.c (readlink): Likewise.
19316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19317         * modules/unistd (Makefile.am): Substitute it.
19318         * lib/unistd.in.h (readlink): Declare replacement.
19319         * doc/posix-functions/readlink.texi (readlink): Document this.
19320
19321         symlink: use throughout gnulib
19322         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19323         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19324         symlink is not used.
19325         * modules/symlinkat (Depends-on): Add symlink.
19326         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19327         * modules/canonicalize-tests (Depends-on): Likewise.
19328         * modules/lstat-tests (Depends-on): Likewise.
19329         * modules/openat-tests (Depends-on): Likewise.
19330         * modules/remove-tests (Depends-on): Likewise.
19331         * modules/rmdir-tests (Depends-on): Likewise.
19332         * modules/unlink-tests (Depends-on): Likewise.
19333         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19334         * tests/test-canonicalize.c (symlink): Likewise.
19335         * tests/test-fstatat.c (symlink): Likewise.
19336         * tests/test-lstat.c (symlink): Likewise.
19337         * tests/test-remove.c (symlink): Likewise.
19338         * tests/test-rmdir.c (symlink): Likewise.
19339         * tests/test-unlink.c (symlink): Likewise.
19340         * tests/test-unlinkat.c (symlink): Likewise.
19341
19342         symlink: new module, for Solaris 9 bug
19343         * modules/symlink: New file.
19344         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19345         * lib/symlink.c: Likewise.
19346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19347         * modules/unistd (Makefile.am): Substitute them.
19348         * lib/unistd.in.h (symlink): Declare replacement.
19349         * MODULES.html.sh (File system functions): Mention it.
19350         * doc/posix-functions/symlink.texi (symlink): Likewise.
19351         * modules/symlink-tests: New test.
19352         * tests/test-symlink.c: Likewise.
19353
19354 2009-09-23  Bruno Haible  <bruno@clisp.org>
19355
19356         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19357         when needed.
19358         Test case: gnulib-tool --import --with-tests atexit inttypes.
19359         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19360
19361 2009-09-23  Bruno Haible  <bruno@clisp.org>
19362
19363         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19364         subcommand, not in a subshell.
19365
19366 2009-09-22  Eric Blake  <ebb9@byu.net>
19367
19368         unistd: sort replacement declarations
19369         * lib/unistd.in.h: Sort declarations.
19370
19371         open, openat: minor optimization
19372         * lib/open.c (open): If open succeeded, len is non-zero.
19373         * lib/openat.c (rpl_openat): Likewise.
19374
19375         link-follow: ensure correct result
19376         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19377         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19378         distinguish between possible failures.
19379
19380 2009-09-21  Eric Blake  <ebb9@byu.net>
19381
19382         fts: avoid compiler warning
19383         * lib/fts.c (dirent_inode_sort_may_be_useful)
19384         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
19385
19386 2009-09-19  Bruno Haible  <bruno@clisp.org>
19387
19388         * lib/progreloc.c (canonicalize_file_name): New declaration.
19389
19390 2009-09-19  Eric Blake  <ebb9@byu.net>
19391
19392         link: fix quoting
19393         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
19394
19395         openat: fix openat bugs on Solaris 9
19396         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
19397         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
19398         * modules/openat (Depends-on): Add open.
19399         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
19400         * modules/fcntl-h (Makefile.am): Substitute it.
19401         * lib/fcntl.in.h (openat): Declare replacement.
19402         * doc/posix-functions/openat.texi (openat): Document this.
19403
19404         openat: move fstatat and unlinkat into correct files
19405         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
19406         compiled.
19407         * lib/openat.c (fstatat, unlinkat): Move...
19408         * lib/fstatat.c (fstatat): ...into correct files.
19409         * lib/unlinkat.c (unlinkat): Likewise.
19410
19411         openat: fix unlinkat bugs on Solaris 9
19412         * lib/unlinkat.c (unlinkat): New file.
19413         * modules/openat (Depends-on): Add unlink.
19414         (Files): Distribute it.
19415         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
19416         trailing slash behavior is broken.
19417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19418         * modules/unistd (Makefile.am): Substitute it.
19419         * lib/unistd.in.h (unlinkat): Declare replacement.
19420         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
19421
19422         openat: fix fstatat bugs on Solaris 9
19423         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
19424         stat.
19425         * doc/posix-functions/fstatat.texi (fstatat): Document this.
19426
19427         test-unlinkat: enhance test, to expose Solaris 9 bug
19428         * tests/test-unlink.c (main): Factor guts...
19429         * tests/test-unlink.h (test_rmdir_func): ...into new file.
19430         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
19431         * tests/test-rmdir.c (main): Adjust caller.
19432         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
19433         (unlinker): New helper function.
19434         (rmdirat): Enhance check.
19435         * modules/rmdir-tests (Depends-on): Add stdbool.
19436         * modules/unlink-tests (Depends-on): Likewise.
19437         (Files): Add test-unlink.h.
19438         * modules/openat-tests (Files): Likewise.
19439         (Depends-on): Add unlinkdir.
19440
19441         test-fstatat: new test, to expose Solaris 9 bugs
19442         * tests/test-stat.c (main): Factor guts...
19443         * tests/test-stat.h (test_stat_func): ...into new file.
19444         * tests/test-lstat.c (main): Factor guts...
19445         * tests/test-lstat.h (test_lstat_func): ...into new file.
19446         * tests/test-fstatat.c: New file.
19447         * modules/stat-tests (Files): Add test-stat.h.
19448         * modules/lstat-tests (Files): Add test-lstat.h.
19449         (Depends-on): Add stdbool.
19450         * modules/openat-tests (Depends-on): Add pathmax.
19451         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19452         (Makefile.am): Run new test.
19453
19454         remove: new module, for mingw and Solaris 9 bugs
19455         * modules/remove: New file.
19456         * lib/remove.c: Likewise.
19457         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
19458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19459         * modules/stdio (Makefile.am): Use them.
19460         * lib/stdio.in.h (remove): Declare replacement.
19461         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19462         * doc/posix-functions/remove.texi (remove): Likewise.
19463         * modules/remove-tests: New test.
19464         * tests/test-remove.c: Likewise.
19465
19466         unlink: new module, for Solaris 9 bug
19467         * modules/unlink: New file.
19468         * lib/unlink.c: Likewise.
19469         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19471         * modules/unistd (Makefile.am): Use them.
19472         * lib/unistd.in.h (stat): Declare replacement.
19473         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19474         * doc/posix-functions/unlink.texi (unlink): Likewise.
19475         * modules/unlink-tests: New test.
19476         * tests/test-unlink.c: Likewise.
19477
19478         lstat: fix Solaris 9 bug
19479         * lib/lstat.c (lstat): Also check for trailing slash on
19480         non-symlink, non-directories.  Use stat module to simplify logic.
19481         * doc/posix-functions/lstat.texi (lstat): Document it.
19482         * modules/lstat-tests (Depends-on): Add errno, same-inode.
19483         (configure.ac): Check for symlink.
19484         * tests/test-lstat.c (main): Add more tests.
19485
19486         stat: add as dependency to other modules
19487         * modules/chown (Depends-on): Add stat.
19488         * modules/euidaccess (Depends-on): Likewise.
19489         * modules/fchdir (Depends-on): Likewise.
19490         * modules/isdir (Depends-on): Likewise.
19491         * modules/link (Depends-on): Likewise.
19492         * modules/lstat (Depends-on): Likewise.
19493         * modules/mkdir-p (Depends-on): Likewise.
19494         * modules/modechange (Depends-on): Likewise.
19495         * modules/open (Depends-on): Likewise.
19496         * modules/readlink (Depends-on): Likewise.
19497         * modules/same (Depends-on): Likewise.
19498
19499         stat: fix Solaris 9 bug
19500         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
19501         slash.
19502         * lib/stat.c (rpl_stat): Work around it.
19503         * doc/posix-functions/stat.texi (stat): Update documentation.
19504
19505         stat: new module, for mingw bug
19506         * modules/stat: New file.
19507         * lib/stat.c: Likewise.
19508         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19510         * modules/sys_stat (Makefile.am): Use them.
19511         * lib/sys_stat.in.h (stat): Declare replacement.
19512         * lib/openat.c (fstatat): Deal with lstat and stat being function
19513         macros.
19514         * modules/openat (Depends-on): Add inline.
19515         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19516         * doc/posix-functions/stat.texi (stat): Likewise.
19517         * modules/stat-tests: New test.
19518         * tests/test-stat.c: Likewise.
19519
19520 2009-09-19  Jim Meyering  <meyering@redhat.com>
19521
19522         syntax-check: detect unnecessary inclusion of canonicalize.h
19523         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
19524
19525 2009-09-19  Eric Blake  <ebb9@byu.net>
19526
19527         canonicalize-lgpl: adjust clients to use correct header
19528         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19529         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
19530         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
19531         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
19532         * lib/progreloc.c (includes): Likewise.
19533
19534 2009-09-19  Jim Meyering  <meyering@redhat.com>
19535
19536         test-posixtm.c: correct a comment
19537         * tests/test-posixtm.c: Correct first-line comment.
19538         Spotted by Eric Blake.
19539
19540 2009-09-16  Jim Meyering  <meyering@redhat.com>
19541
19542         posixtm-tests: make T const-correct; add a test case
19543         * tests/test-posixtm.c (T): Declare const.
19544         Add a test for -(2^31+1).
19545         Remove useless can-succeed-only-in-2002 test.
19546
19547         posixtm-tests: adjust the sole failing test
19548         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
19549         expected output matches what mktime now produces.  Cross-checked via
19550         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
19551
19552         posixtm: move #ifdef'd tests into a new module
19553         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
19554         * tests/test-posixtm.c: ... this new file.
19555         * modules/posixtm-tests: New module.
19556
19557 2009-09-19  Eric Blake  <ebb9@byu.net>
19558
19559         openat: simplify use of at-func.c
19560         * lib/at-func.c (includes): Include prerequisites here, to
19561         simplify requirements on client files.
19562         * lib/openat-priv.h: Add double-inclusion guard.
19563         * lib/faccessat.c (includes): Simplify.
19564         * lib/fchmodat.c (includes): Likewise.
19565         * lib/fchownat.c (includes): Likewise.
19566         * lib/mkdirat.c (includes): Likewise.
19567         * lib/mkfifoat.c (includes): Likewise.
19568         * lib/symlinkat.c (includes): Likewise.
19569
19570         openat: allow return of fd 0
19571         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
19572         * modules/save-cwd (Depends-on): Replace fcntl-safer with
19573         unistd-safer.
19574         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
19575         <fcntl.h>; this module does not leak fds.
19576         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
19577         must be allowed to return 0, leaving openat_safer to add the
19578         safety.
19579         (openat_permissive): Avoid writing to just-opened fd 2 if
19580         restoring the current directory fails.
19581         * lib/openat-die.c (openat_restore_fail): Add comment.
19582         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
19583         (save_cwd): Guarantee safe fd, but without use of open_safer.
19584         * tests/test-openat.c: New test.
19585         * modules/openat-tests (Files, Makefile.am): Distribute and build
19586         new file.
19587
19588         relocatable-prog-wrapper: fix build
19589         * modules/relocatable-prog-wrapper (Files): Update name of
19590         canonicalize m4 file, broken on 2009-09-17.
19591         Reported by emad hajjar <aleppos@hotmail.com>.
19592
19593 2009-09-19  Bruno Haible  <bruno@clisp.org>
19594
19595         * lib/safe-alloc.h: Use the standard header with GPL copyright.
19596         * lib/safe-alloc.c: Likewise.
19597         Reported by Ian Beckwith <ianb@erislabs.net>.
19598
19599 2009-09-18  Bruno Haible  <bruno@clisp.org>
19600
19601         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
19602         Reported by <erobles@sensacd.com.mx>.
19603
19604 2009-09-17  Eric Blake  <ebb9@byu.net>
19605
19606         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
19607         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
19608         slashes when checking if last component is missing.
19609         * tests/test-canonicalize.c (main): Test this.
19610
19611         canonicalize, canonicalize-lgpl: honor // if distinct from /
19612         * modules/canonicalize (Files): Add double-slash-root.m4.
19613         * modules/canonicalize-lgpl (Files): Likewise.
19614         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19615         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
19616         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
19617         fallback definition.
19618         (canonicalize_filename_mode): Use it to protect //.
19619         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
19620         (__realpath): Likewise.
19621         * tests/test-canonicalize.c (main): Test this.
19622         * tests/test-canonicalize-lgpl.c (main): Likewise.
19623         * modules/canonicalize-tests (Depends-on): Add same-inode.
19624         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19625
19626         canonicalize-lgpl: fix glibc bug with trailing slash
19627         * m4/canonicalize-lgpl.m4: Move contents...
19628         * m4/canonicalize.m4: ...here.
19629         (gl_CANONICALIZE_LGPL): Factor realpath check...
19630         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
19631         glibc 2.3.5 bug, fixed 2005-04-27.
19632         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
19633         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
19634         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
19635         * modules/canonicalize-lgpl (Files): Manage file rename.
19636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19637         * modules/stdlib (Makefile.am): Substitute witness.
19638         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
19639         is needed.
19640         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
19641         replacement is required.
19642         * lib/canonicalize.c (canonicalize_file_name): Likewise.
19643         * doc/glibc-functions/canonicalize_file_name.texi
19644         (canonicalize_file_name): Document this.
19645         * doc/posix-functions/realpath.texi (realpath): Likewise.
19646
19647         canonicalize-lgpl: reject non-directory with trailing slash
19648         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
19649         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
19650         catches failures in glibc 2.3.5.
19651         * tests/test-canonicalize.c (main): Likewise.
19652
19653         canonicalize-lgpl: use native realpath if it works
19654         * lib/canonicalize-lgpl.c (realpath): Guard with
19655         FUNC_REALPATH_WORKS.
19656         * lib/stdlib.in.h (realpath): Make declaration optional based on
19657         HAVE_REALPATH.
19658         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
19659         native realpath works.
19660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19661         * modules/stdlib (Makefile.am): Substitute witness.
19662
19663         canonicalize, canonicalize-lgpl: use <stdlib.h>
19664         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
19665         (Include): Mention <stdlib.h>.
19666         (configure.ac): Mention functions we provide.
19667         * modules/canonicalize (configure.ac): Likewise.
19668         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
19669         realpath if canonicalize_file_name is missing.
19670         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
19671         * modules/stdlib (Makefile.am): Substitute witnesses.
19672         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
19673         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
19674         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
19675         * NEWS: Document this.
19676         * doc/glibc-functions/canonicalize_file_name.texi
19677         (canonicalize_file_name): Likewise.
19678         * doc/posix-functions/realpath.texi (realpath): Likewise.
19679         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
19680
19681         test-canonicalize: consolidate into single C program
19682         * tests/test-canonicalize.sh: Delete; move setup into...
19683         * tests/test-canonicalize.c (main): ...the program, making it
19684         easier to run in debugger.  Add some tests.
19685         * modules/canonicalize-tests (Files): Remove unused file.
19686         (Depends-on): Add progname.
19687         (configure.ac, Makefile.am): Simplify.
19688
19689         test-canonicalize-lgpl: consolidate into single C program
19690         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
19691         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
19692         easier to run in debugger.  Add some tests.
19693         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
19694         (configure.ac, Makefile.am): Simplify.
19695
19696         canonicalize: avoid resolvepath
19697         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
19698         unnecessary checks.
19699         * lib/canonicalize.c (includes): Simplify.
19700         (canonicalize_file_name): Drop resolvepath implementation.
19701         * modules/canonicalize (Depends-on): Drop filenamecat.
19702
19703         canonicalize: don't lose errno
19704         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
19705         over calls to free.
19706
19707         canonicalize: simplify errno handling
19708         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
19709         assignment.
19710
19711         canonicalize, canonicalize-lgpl: update module dependencies
19712         * modules/canonicalize (Depends-on): Add extensions, lstat,
19713         pathmax, stdlib.
19714         (Files): Drop pathmax.h.
19715         (configure.ac): Adjust macro name.
19716         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
19717         lstat, stdlib, sys_stat.
19718         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
19719         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
19720         extensions.
19721         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
19722         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
19723         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
19724         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
19725         declaration, if available.
19726         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
19727         we can rely on the readlink module.
19728         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
19729         (includes): Use <unistd.h> unconditionally.
19730
19731 2009-09-17  Eric Blake  <ebb9@byu.net>
19732
19733         maint: make Include sections of modules consistent
19734         * modules/alloca: Use only header name; no need to list #include.
19735         * modules/alloca-opt: Likewise.
19736         * modules/arpa_inet: Likewise.
19737         * modules/canon-host: Likewise.
19738         * modules/configmake: Likewise.
19739         * modules/dirent: Likewise.
19740         * modules/eealloc: Likewise.
19741         * modules/environ: Likewise.
19742         * modules/fchdir: Likewise.
19743         * modules/fcntl: Likewise.
19744         * modules/fcntl-h: Likewise.
19745         * modules/gethrxtime: Likewise.
19746         * modules/gettime: Likewise.
19747         * modules/ignore-value: Likewise.
19748         * modules/inet_ntop: Likewise.
19749         * modules/inet_pton: Likewise.
19750         * modules/inttypes: Likewise.
19751         * modules/isnand-nolibm: Likewise.
19752         * modules/isnanf-nolibm: Likewise.
19753         * modules/mbchar: Likewise.
19754         * modules/mbfile: Likewise.
19755         * modules/mbiter: Likewise.
19756         * modules/mbuiter: Likewise.
19757         * modules/netdb: Likewise.
19758         * modules/netinet_in: Likewise.
19759         * modules/nproc: Likewise.
19760         * modules/pagealign_alloc: Likewise.
19761         * modules/poll: Likewise.
19762         * modules/printf-frexp: Likewise.
19763         * modules/pthread: Likewise.
19764         * modules/putenv: Likewise.
19765         * modules/random_r: Likewise.
19766         * modules/relocatable-prog: Likewise.
19767         * modules/search: Likewise.
19768         * modules/select: Likewise.
19769         * modules/selinux-h: Likewise.
19770         * modules/settime: Likewise.
19771         * modules/signal: Likewise.
19772         * modules/size_max: Likewise.
19773         * modules/socklen: Likewise.
19774         * modules/ssize_t: Likewise.
19775         * modules/stdarg: Likewise.
19776         * modules/stdbool: Likewise.
19777         * modules/stddef: Likewise.
19778         * modules/stdint: Likewise.
19779         * modules/stdio: Likewise.
19780         * modules/stdlib: Likewise.
19781         * modules/string: Likewise.
19782         * modules/strings: Likewise.
19783         * modules/sys_file: Likewise.
19784         * modules/sys_ioctl: Likewise.
19785         * modules/sys_select: Likewise.
19786         * modules/sys_socket: Likewise.
19787         * modules/sys_stat: Likewise.
19788         * modules/sys_time: Likewise.
19789         * modules/sys_times: Likewise.
19790         * modules/sys_utsname: Likewise.
19791         * modules/sys_wait: Likewise.
19792         * modules/sysexits: Likewise.
19793         * modules/time: Likewise.
19794         * modules/times: Likewise.
19795         * modules/tmpfile: Likewise.
19796         * modules/trim: Likewise.
19797         * modules/unistd: Likewise.
19798         * modules/wchar: Likewise.
19799         * modules/wctype: Likewise.
19800
19801 2009-09-17  Bruno Haible  <bruno@clisp.org>
19802
19803         Make getdate.y compile on QNX and NetBSD 5 / i386.
19804         * m4/getdate.m4 (gl_GETDATE): Conditionally define
19805         TIME_T_FITS_IN_LONG_INT.
19806         * lib/getdate.y (long_time_t): New type.
19807         (relative_time): Change type of 'seconds' field to long_time_t.
19808         (get_date): Update types of local variables. Check against overflow
19809         during conversion from long_time_t to time_t.
19810         Reported by Matt Kraai <kraai@ftbfs.org>
19811         and Hasso Tepper <hasso@netbsd.org>.
19812
19813 2009-09-17  Bruno Haible  <bruno@clisp.org>
19814
19815         * modules/COPYING: Update copyright years.
19816         * modules/README: Likeiwse.
19817         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
19818         Reported by Ian Beckwith <ianb@erislabs.net>.
19819
19820 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19821
19822         * users.txt: Update references for gnuit package.
19823
19824 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19825
19826         * m4/getdelim.m4: Fix typo in copyright line.
19827
19828 2009-09-17  Bruno Haible  <bruno@clisp.org>
19829
19830         * lib/atoll.c: Use the standard header with GPL copyright.
19831         * lib/argz.in.h: Likewise.
19832         * lib/glob.c: Likewise.
19833         * lib/glob-libc.h: Likewise.
19834         * lib/random_r.c: Likewise.
19835         * lib/siglist.h: Likewise.
19836         * lib/strsignal.c: Likewise.
19837         Reported by Ian Beckwith <ianb@erislabs.net>.
19838
19839 2009-09-17  Eric Blake  <ebb9@byu.net>
19840
19841         rmdir: ensure correct dependency order
19842         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
19843
19844 2009-09-17  Bruno Haible  <bruno@clisp.org>
19845
19846         Disable assertion that fails on NetBSD 5 / i386.
19847         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
19848         Reported by Sam Steingold <sds@gnu.org>
19849         and Hasso Tepper <hasso@netbsd.org>.
19850
19851 2009-09-16  Eric Blake  <ebb9@byu.net>
19852
19853         unlinkdir: port to mingw
19854         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
19855         on which no one can unlink a directory.
19856
19857         stdlib: sort witness names
19858         * modules/stdlib (Makefile.am): Sort replacements.
19859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
19860         * lib/stdlib.in.h: Likewise.
19861
19862         parse-duration-tests: avoid link failure
19863         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
19864         LIBINTL.
19865         Reported by Tom G. Christensen.
19866
19867         openat-tests: ensure unlinkat behaves like rmdir
19868         * tests/test-rmdir.c (main): Factor guts...
19869         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
19870         * modules/rmdir-tests (Files): Ship new file.
19871         * modules/openat-tests: New test.
19872         * tests/test-unlinkat.c: Likewise.
19873
19874         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
19875         * modules/rmdir-errno (Status, Notice): Now obsolete.
19876
19877         rmdir: work around cygwin 1.5.x and mingw bugs
19878         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
19879         * lib/rmdir.c (rmdir): Work around it.
19880         * modules/rmdir (Status, Notice): No longer obsolete.
19881         (Files): Add dos.m4.
19882         (Depends-on): Add unistd.
19883         (configure.ac): Set witnesses.
19884         (License): Relax to LGPLv2+.
19885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
19886         * modules/unistd (Makefile.am): Substitute witnesses.
19887         * lib/unistd.in.h (rmdir): Declare replacement.
19888         * doc/posix-functions/rmdir.texi (rmdir): Document this.
19889         * modules/rmdir-tests: New tests.
19890         * tests/test-rmdir.c: Likewise.
19891
19892 2009-09-15  Eric Blake  <ebb9@byu.net>
19893
19894         fchdir: improve use of replacement functions
19895         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
19896         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
19897         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
19898         REPLACE_CLOSEDIR.
19899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
19900         * modules/sys_stat (Makefile.am): Substitute correct witness.
19901         * modules/dirent (Makefile.am): Likewise.
19902         * modules/unistd (Makefile.am): Likewise.
19903         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
19904         * lib/unistd.in.h (dup): Likewise.
19905         * lib/sys_stat.in.h (fstat): Likewise.
19906
19907         maint: ignore gnulib-tool temp files
19908         * .gitignore: Ignore files created during gnulib-tool --test.
19909
19910 2009-09-13  Jim Meyering  <meyering@redhat.com>
19911
19912         posixtm: don't reject a time that specify "60" as the number of seconds
19913         * lib/posixtm.c (posixtime): The code to reject invalid dates
19914         would also reject a time specified with the .60 suffix.
19915         But POSIX allows that, in order to accommodate leap seconds.
19916         So don't reject it.
19917         (main): Adjust tests accordingly.
19918         * modules/posixtm (Depends-on): Add stpcpy.
19919
19920 2009-09-11  Jim Meyering  <meyering@redhat.com>
19921
19922         announce-gen: include [$release_type] in emitted Subject:
19923         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
19924         e.g., [stable] in the emitted Subject: line.
19925
19926 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19927
19928         Remove obsolete macros from several modules.
19929         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
19930         obsolete Autoconf macros with their modern counterparts.
19931         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
19932         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
19933         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
19934         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
19935         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
19936         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19938         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19939         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19940         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
19941         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19942         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19943         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19944         * m4/sockets.m4 (gl_SOCKETS): Likewise.
19945         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
19946         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
19947         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
19948         * m4/time_r.m4 (gl_TIME_R): Likewise.
19949         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19950         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
19951         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19952
19953         Fix copyright header in build-aux scripts.
19954         * build-aux/git-version-gen: Fix copyright header to match GPLv3
19955         recommendation.
19956         * build-aux/ncftpput-ftp: Likewise.
19957         * build-aux/update-copyright: Likewise.
19958
19959 2009-09-09  Eric Blake  <ebb9@byu.net>
19960
19961         test-link: allow Linux choice of errno
19962         * tests/test-link.c (main): Relax test for alternate error.
19963
19964         strndup: fix improper m4 caching
19965         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
19966         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
19967         (gl_PREREQ_STRNDUP): Delete.
19968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
19969         * modules/string (Makefile.am): Substitute it.
19970         * lib/string.in.h (strndup): Modernize prototype.
19971
19972         getcwd: port to mingw
19973         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
19974         different from the POSIX assumptions made throughout the getcwd
19975         module; fortunately, the mingw getcwd does not need replacement.
19976         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
19977         * modules/getcwd-tests: New test.
19978         * tests/test-getcwd.c: Likewise.
19979
19980         link: fix platform bugs
19981         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
19982         * lib/link.c (link): Work around them.  Fix related mingw bug.
19983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
19984         * modules/unistd (Makefile.am): Substitute it.
19985         * lib/unistd.in.h (link): Declare replacement.
19986         * doc/posix-functions/link.texi (link): Document this.
19987         * modules/link (Depends-on): Add strdup-posix, sys_stat.
19988
19989         test-link: consolidate into single C program, test more cases
19990         * tests/test-link.sh: Delete.
19991         * tests/test-link.c: Test more error conditions.  Exposes bugs on
19992         at least Cygwin and Solaris.
19993         * modules/link-tests (Files): Remove unused file.
19994         (Depends-on): Add errno, sys_stat.
19995         (Makefile.am): Simplify.
19996
19997 2009-09-08  Bruno Haible  <bruno@clisp.org>
19998
19999         Work around towlower, towupper bug on mingw.
20000         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20001         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20002         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20003         * doc/posix-functions/towupper.texi: Likewise.
20004         Reported by Eric Blake.
20005
20006 2009-09-08  Jim Meyering  <meyering@redhat.com>
20007
20008         build: don't try to run autoheader if we don't use it
20009         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20010         is not used in configure.ac.
20011
20012 2009-09-08  Eric Blake  <ebb9@byu.net>
20013
20014         euidaccess: fix compilation error
20015         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20016
20017         rawmemchr: relax license
20018         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20019         okay.
20020         Reported by Jim Meyering.
20021
20022         mkfifoat: new module
20023         * modules/mkfifoat: New file.
20024         * lib/mkfifoat.c: Likewise.
20025         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20026         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20027         * modules/sys_stat (Makefile.am): Use them.
20028         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20029         * MODULES.html.sh (File system functions): Mention module.
20030         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20031         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20032         * modules/mkfifoat-tests: New test.
20033         * tests/test-mkfifoat.c: Likewise.
20034
20035         strchrnul: relax license
20036         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20037         okay.
20038         Reported by Jim Meyering.
20039
20040 2009-09-08  Eric Blake  <ebb9@byu.net>
20041
20042         fstatat: fix compilation on Solaris
20043         * lib/fstatat.c (includes): Add fcntl.h.
20044         Reported by Pádraig Brady.
20045
20046 2009-09-07  Eric Blake  <ebb9@byu.net>
20047
20048         rename: modernize replacement
20049         * modules/rename (Depends-on): Add stdio.
20050         (configure.ac): Declare witness.
20051         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
20052         stdio take care of replacement.
20053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20054         * modules/stdio (Makefile.am): Substitute them.
20055         * lib/stdio.in.h (rename): Declare replacement.
20056         * lib/rename.c (includes): Allow cross-compilation to non-windows
20057         machines.
20058         * doc/posix-functions/rename.texi (rename): Improve
20059         documentation.
20060
20061         stdio: sort witness names
20062         * modules/stdio (Makefile.am): Sort replacements.
20063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20064         * lib/stdio.in.h: Likewise.
20065
20066         getcwd: minor cleanups
20067         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20068         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20069
20070         openat: provide more convenience names
20071         * modules/faccessat (configure.ac): Add C witness.
20072         * lib/unistd.in.h (readlinkat): Fix typo.
20073         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20074         convenience wrappers.
20075         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20076         wrappers in syntax checks.
20077
20078 2009-09-06  Eric Blake  <ebb9@byu.net>
20079
20080         doc: fix comments in recent patches
20081         * lib/faccessat.c: Mention correct function.
20082         * lib/fchmodat.c: Likewise.
20083         * lib/fchownat.c: Likewise.
20084         * lib/symlinkat.c: Likewise.
20085         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20086         constants.
20087
20088         faccessat, symlinkat: continue cleanup of previous patch
20089         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20090         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20091         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20093         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20094         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20095         set.
20096
20097 2009-09-06  Bruno Haible  <bruno@clisp.org>
20098
20099         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20100         (fstatat): Declare if GNULIB_FSTATAT is set.
20101         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20102         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20103         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20104         * modules/fcntl-h (Files): Remove m4/openat.m4.
20105         * modules/sys_stat (Files): Remove m4/openat.m4.
20106         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20107         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20108         * modules/unistd (Files): Remove m4/openat.m4.
20109         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20110         GNULIB_OPENAT.
20111         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20112         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20113         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20114         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20115         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20116         gl_OPENAT_DEFAULTS.
20117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20118         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20119         Don't require gl_OPENAT_DEFAULTS.
20120         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20121         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20122         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20123         (gl_OPENAT_DEFAULTS): Remove macro.
20124
20125 2009-09-06  Bruno Haible  <bruno@clisp.org>
20126
20127         * modules/openat (configure.ac): Remove unneeded witness.
20128
20129 2009-09-06  Bruno Haible  <bruno@clisp.org>
20130
20131         Set errno to ENOSYS when a function is entirely unsupported.
20132         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20133         EOPNOTSUPP.
20134         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20135         * modules/chown (Depends-on): Remove errno.
20136
20137 2009-09-06  Bruno Haible  <bruno@clisp.org>
20138
20139         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20140
20141 2009-09-06  Bruno Haible  <bruno@clisp.org>
20142
20143         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20144
20145 2009-09-06  Ben Pfaff  <blp@gnu.org>
20146             Bruno Haible  <bruno@clisp.org>
20147
20148         Work around a glibc bug in strtok_r.
20149         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20150         Undefine if UNDEFINE_STRTOK_R is set.
20151         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20153         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20154         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20155         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20156         UNDEFINE_STRTOK_R.
20157         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20158
20159 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20160
20161         exclude: minor fix
20162         * lib/exclude.c: Include wctype.h
20163
20164 2009-09-06  Akim Demaille  <demaille@gostai.com>
20165
20166         bootstrap: improve error message
20167         * build-aux/bootstrap (find_tool): Upon failure, report the list
20168         of candidates.
20169         Honor the initial value of the envvar.
20170
20171 2009-09-05  Eric Blake  <ebb9@byu.net>
20172
20173         symlinkat: new module
20174         * modules/symlinkat: New file.
20175         * lib/symlinkat.c: Likewise.
20176         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20178         * modules/unistd (Makefile.am): Use them.
20179         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20180         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20181         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20182         * MODULES.html.sh (File system functions): Mention module.
20183         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20184         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20185         * modules/symlinkat-tests: New test.
20186         * tests/test-symlinkat.c: Likewise.
20187
20188         test-openat-safer: add more checks
20189         * tests/test-openat-safer.c (main): Check more code paths.
20190
20191 2009-09-05  Jim Meyering  <meyering@redhat.com>
20192
20193         syntax-check: detect unnecessary inclusion of openat.h
20194         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20195
20196 2009-09-05  Bruno Haible  <bruno@clisp.org>
20197
20198         Support towlower, towupper.
20199         * doc/posix-functions/towlower.texi: Mention module wctype.
20200         * doc/posix-functions/towupper.texi: Likewise.
20201         * lib/wctype.in.h (towlower, towupper): New functions.
20202         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20203         (ASSERT): New macro.
20204         (e): New variable.
20205         (main): Test also towlower, towupper. Test WEOF argument.
20206         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20207
20208 2009-09-05  Bruno Haible  <bruno@clisp.org>
20209
20210         Fix conversion behaviour when the input is invalid.
20211         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20212         mark occurring in first pass of indirect conversion.
20213         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20214         input.
20215         Found by clang's static analyzer.
20216
20217 2009-09-05  Bruno Haible  <bruno@clisp.org>
20218
20219         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20220         where direct conversion is possible.
20221
20222 2009-09-04  Eric Blake  <ebb9@byu.net>
20223
20224         openat: fail with ENOENT on empty name
20225         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20226         buffer.
20227
20228         link-follow: fix logic bug in prior patch
20229         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20230         reversed sense of yes and no in prior patch.  Avoid confusing
20231         compilation failure with desired semantics.
20232
20233         link-follow: accomodate mingw and cross-compilation
20234         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20235         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20236         cross-compilation results to -1, to make linkat easier to
20237         implement when cross-compiling.  Trivially support mingw.
20238         * modules/link-follow (configure.ac): Call new name.
20239         * NEWS: Mention this.
20240
20241 2009-09-03  Eric Blake  <ebb9@byu.net>
20242
20243         faccessat: compile replacement
20244         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20245         needed.
20246
20247         fts: fix compilation error
20248         * lib/fts.c (includes): Re-add "openat.h", for
20249         openat_needs_fchdir.
20250
20251         faccessat: new module
20252         * modules/faccessat: New file.
20253         * lib/faccessat.c: Likewise.
20254         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20256         * modules/unistd (Makefile.am): Use it.
20257         * lib/unistd.in.h (faccessat): Declare it.
20258         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20259         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20260         * MODULES.html.sh (File system functions): Mention it.
20261         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20262         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20263
20264         euidaccess: prefer POSIX over non-standard implementation
20265         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20266         * lib/euidaccess.c (euidaccess): Use it if available.
20267
20268         openat: make template easier to use
20269         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20270         AT_FUNC_F2 to be undefined.
20271         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20272         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20273         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20274         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20275         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20276         Likewise.
20277         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20278         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20279         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20280         Likewise.
20281
20282         openat: declare in POSIX headers
20283         * NEWS: Mention this.
20284         * modules/openat (configure.ac): Declare witnesses.
20285         (Depends-on): Add fcntl-h, sys_stat, unistd.
20286         (Include): Mention correct headers.
20287         * modules/fcntl-h (Depends-on): Add link-warning.
20288         (Files): Add openat.m4.
20289         (Makefile.am): Substitute witnesses.
20290         * modules/sys_stat (Files, Makefile.am): Likewise.
20291         * modules/unistd (Files, Makefile.am): Likewise.
20292         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20293         (gl_OPENAT_DEFAULTS): New macro.
20294         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20297         (SYS_STAT_H): Remove unused variable.
20298         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20299         * lib/fcntl--.h (includes): Remove unneeded header.
20300         * lib/openat-safer.c (includes): Likewise.
20301         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20302         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20303         appropriate headers.
20304         (__OPENAT_PREFIX): Delete.
20305         * lib/fcntl.in.h (openat): Provide declaration.
20306         (AT_FDCWD): Fix Solaris bug.
20307         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20308         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20309         * lib/fchmodat.c (includes):  Adjust to find declaration.
20310         * lib/fchownat.c (includes): Likewise.
20311         * lib/mkdirat.c (includes): Likewise.
20312         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20313         still visible.
20314
20315 2009-09-02  Eric Blake  <ebb9@byu.net>
20316
20317         errno: use consistently
20318         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20319         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20320         * lib/canonicalize.c (ELOOP): Likewise.
20321         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20322         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20323         * lib/lchown.c (EOPNOTSUPP): Likewise.
20324         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20325         * lib/savewd.c (ESTALE): Likewise.
20326         * lib/settime.c (ENOSYS): Likewise.
20327         * lib/utimens.c (ENOSYS): Likewise.
20328         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20329         * lib/chdir-safer.c (ELOOP): Likewise.
20330         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20331         * modules/c-stack (Depends-on): Add errno.
20332         * modules/canonicalize (Depends-on): Likewise.
20333         * modules/chdir-safer (Depends-on): Likewise.
20334         * modules/fdopendir (Depends-on): Likewise.
20335         * modules/inet_ntop (Depends-on): Likewise.
20336         * modules/inet_pton (Depends-on): Likewise.
20337         * modules/lchown (Depends-on): Likewise.
20338         * modules/openat (Depends-on): Likewise.
20339         * modules/savewd (Depends-on): Likewise.
20340         * modules/settime (Depends-on): Likewise.
20341         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20342
20343         fts: avoid leaking fds
20344         * modules/fts (Depends-on): Add cloexec.
20345         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20346         flag.
20347
20348         fts: make directory fds more robust
20349         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20350         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20351
20352         backupfile, chdir-long, fts, savedir: make safer
20353         * lib/backupfile.c (includes): Use "dirent--.h", since
20354         numbered_backup can write to stderr during readdir.
20355         * lib/savedir.c (includes): Likewise.
20356         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20357         emulation can write to stderr on failure.
20358         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20359         * lib/getcwd.c: Document why opendir_safer is unused.
20360         * lib/glob.c: Likewise.
20361         * lib/scandir.c: Likewise.
20362         * lib/openat-proc.c: Likewise, for open_safer.
20363         * modules/backupfile (Depends-on): Add dirent-safer.
20364         * modules/savedir (Depends-on): Likewise.
20365         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20366         * modules/chdir-long (Depends-on): Add openat-safer.
20367
20368         openat-safer: new module
20369         * modules/openat-safer: New file.
20370         * lib/openat-safer.c: Likewise.
20371         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20372         * lib/fcntl-safer.h (openat_safer): Declare.
20373         * lib/fcntl--.h (openat): Override.
20374         * MODULES.html.sh (File descriptor based I/O): Mention it.
20375         * lib/openat.h: Add double-inclusion guards.
20376         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20377         "fcntl--.h", so we can implement openat.
20378         * modules/openat-safer-tests: New test.
20379         * tests/test-openat-safer.c: New file.
20380
20381         dirent-safer: new module
20382         * modules/dirent-safer: New file.
20383         * lib/dirent--.h: Likewise.
20384         * lib/dirent-safer.h: Likewise.
20385         * lib/opendir-safer.c: Likewise.
20386         * m4/dirent-safer.m4: Likewise.
20387         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
20388         * modules/dirent-safer-tests: New test.
20389         * tests/test-dirent-safer.c: New file.
20390         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
20391
20392         fdopendir: optimize on mingw
20393         * lib/unistd.in.h (_gl_directory_name): New prototype.
20394         * lib/fchdir.c (_gl_directory_name): Implement it.
20395         (fchdir): Use it to simplify implementation.
20396         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
20397         fchdir, when available, to avoid calling [f]chdir().
20398
20399         fdopendir: split into its own module
20400         * lib/openat.c (fdopendir): Move...
20401         * lib/fdopendir.c: ...into new file.
20402         * modules/fdopendir: New module.
20403         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
20404         * modules/openat (Depends-on): Add fdopendir.
20405         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
20406         fdopendir here.
20407         * modules/savedir (Depends-on): Only need fdopendir, not full
20408         openat.
20409         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
20410         * lib/openat.h (fdopendir): Drop prototype.
20411         * lib/dirent.in.h (fdopendir): Provide prototype.
20412         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
20413         * modules/dirent (Makefile.am): Substitute them.
20414         * MODULES.html.sh (File system functions): Mention it.
20415         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
20416         * modules/fdopendir-tests: New file.
20417         * tests/test-fdopendir.c: Likewise.
20418
20419         fchdir: use more consistent macro convention
20420         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
20421         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
20422         REPLACE_FCHDIR, rather than relying on config.h macros.
20423         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
20424         inside a single make-time REPLACE_FCHDIR block, rather than using
20425         the config.h FCHDIR_REPLACEMENT.
20426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
20427         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
20428         Manage fstat replacement.
20429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
20430         REPLACE_FCHDIR.
20431         * modules/sys_stat (Files): Add m4/unistd_h.m4.
20432         (Makefile.am): Substitute REPLACE_FCHDIR.
20433         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
20434         FCHDIR_REPLACEMENT.
20435         * lib/dup-safer.c (dup_safer): Likewise.
20436         * lib/dup2.c (rpl_dup2): Likewise.
20437         * lib/dup3.c (rpl_dup3): Likewise.
20438         * lib/open.c (rpl_open): Likewise.
20439
20440         fchdir: simplify error handling, and support dup3
20441         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
20442         stdbool, malloc-posix, realloc-posix.
20443         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
20444         (ensure_dirs_slot): Return false on allocation failure.
20445         (rpl_dup2): Delete.
20446         (_gl_register_dup): New function.
20447         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
20448         (_gl_register_fd): Close fd on allocation failure.
20449         * lib/fcntl.in.h (_gl_register_fd): Update signature.
20450         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20451         prototype.
20452         (rpl_dup2_fchdir): Delete prototype.
20453         * lib/open.c (open): Update caller.
20454         * lib/dup2.c (dup2): Track fchdir metadata.
20455         * lib/dup3.c (dup3): Likewise.
20456         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
20457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
20458
20459 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20460
20461         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
20462         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
20463         don't pass arguments to AC_OUTPUT.
20464
20465 2009-09-02  Bruno Haible  <bruno@clisp.org>
20466
20467         * modules/mkdtemp (License): Relicense under LGPLv2+.
20468         Reported by Paolo Bonzini.
20469
20470 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20471
20472         Replace uses of obsolete autoconf macros in Jim's modules.
20473         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
20474         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
20475         can evoke a warning from autoconf when run with -Wobsolete
20476         enabled.  They were declared obsolete for good reasons (see
20477         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
20478         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
20479         should not continue using the deprecated macros.
20480         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
20481         obsolete Autoconf macros with modern counterparts.
20482         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20483         * m4/dos.m4 (gl_AC_DOS): Likewise.
20484         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
20485         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20486         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
20487         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
20488         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
20489         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20490         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
20491         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
20492         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20493         Likewise.
20494         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20495         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20496         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
20497         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
20498         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20499         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20500
20501 2009-09-01  Eric Blake  <ebb9@byu.net>
20502
20503         fchdir: fix off-by-one bug in previous patch
20504         * lib/fchdir.c (rpl_fstat): Use correct bounds.
20505         (_gl_unregister_fd): Delete useless if.
20506
20507 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
20508
20509         maint.mk: sort the list of syntax-check rules
20510         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
20511         easier to get a sense of progress when the rules are run sequentially
20512         and take a long time.
20513
20514 2009-09-01  Simon Josefsson  <simon@josefsson.org>
20515
20516         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
20517         * modules/netinet_in: Likewise.
20518         * modules/sys_file: Likewise.
20519         * modules/sys_ioctl: Likewise.
20520         * modules/sys_select: Likewise.
20521         * modules/sys_socket: Likewise.
20522         * modules/sys_stat: Likewise.
20523         * modules/sys_time: Likewise.
20524         * modules/sys_times: Likewise.
20525         * modules/sys_utsname: Likewise.
20526         * modules/sys_wait: Likewise.
20527
20528 2009-09-01  Jim Meyering  <meyering@redhat.com>
20529
20530         fts: help ensure that return values are not ignored
20531         * lib/fts_.h (__GNUC_PREREQ): Define.
20532         (__attribute_warn_unused_result__): Define.
20533         (fts_children, fts_close, fts_open, fts_read): Declare with
20534         __attribute_warn_unused_result__.
20535
20536         fts: fts_close now fails also when closing a dir file descriptor fails
20537         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
20538         and propagate to caller, along with errno.
20539
20540         announce-gen: correct formatting in --help output
20541         * build-aux/announce-gen (usage): Move the one-line description in
20542         --help output "up", to where it belongs, just after Usage:.
20543
20544 2009-08-31  Eric Blake  <ebb9@byu.net>
20545
20546         fchdir: port to mingw
20547         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
20548         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
20549         opened, then use a substitute.
20550         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
20551         replacement.
20552         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
20553         (_gl_register_fd): No need to check stat if open already filters
20554         all directories.
20555         (fchdir): Fix error condition to match POSIX.
20556         * modules/fchdir (Depends-on): Add sys_stat.
20557         * doc/posix-functions/open.texi (open): Document the limitation.
20558         * modules/fchdir-tests: New file.
20559         * tests/test-fchdir.c: Likewise.
20560
20561         canonicalize: allow cross-testing from cygwin to mingw
20562         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
20563         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
20564         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
20565         Likewise.
20566         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
20567         target does not support symlinks.
20568         * tests/test-canonicalize-lgpl.sh: Likewise.
20569
20570         chown: avoid compilation warning on mingw
20571         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
20572         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
20573         mingw.
20574         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20575         * modules/chown (Depends-on): Add errno.
20576
20577 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20578
20579         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
20580         command.
20581
20582 2009-08-31  Jim Meyering  <meyering@redhat.com>
20583
20584         canonicalize: remove useless initialization
20585         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
20586         initialization of local, "end".
20587
20588 2009-08-30  Bruno Haible  <bruno@clisp.org>
20589
20590         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
20591         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
20592         ENOSYS.
20593
20594 2009-08-30  Bruno Haible  <bruno@clisp.org>
20595
20596         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
20597         /usr/xpg4/bin/tr when it exists.
20598         * tests/test-pipe-filter-gi1.sh: Likewise.
20599
20600 2009-08-30  Bruno Haible  <bruno@clisp.org>
20601
20602         Work around deficient /usr/bin/id program on Solaris.
20603         * tests/test-file-has-acl.sh (ID): New variable.
20604         * tests/test-set-mode-acl.sh (ID): Likewise.
20605         * tests/test-copy-acl.sh (ID): Likewise.
20606         * tests/test-copy-file.sh (ID): Likewise.
20607
20608 2009-08-30  Bruno Haible  <bruno@clisp.org>
20609
20610         New module 'xstriconveh'.
20611         * lib/xstriconveh.h: New file.
20612         * lib/xstriconveh.c: New file.
20613         * modules/xstriconveh: New file.
20614
20615 2009-08-30  Bruno Haible  <bruno@clisp.org>
20616
20617         Make it easier to use mem_cd_iconveh.
20618         * lib/striconveh.h (iconveh_t): New type.
20619         (iconveh_open, iconveh_close): New declarations.
20620         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20621         with a single 'const iconveh_t *' argument.
20622         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
20623         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20624         with a single 'const iconveh_t *' argument.
20625         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
20626         * tests/test-striconveh.c (main): Update.
20627         * NEWS: Mention the change.
20628
20629 2009-08-30  Bruno Haible  <bruno@clisp.org>
20630
20631         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
20632         problem.
20633
20634 2009-08-30  Bruno Haible  <bruno@clisp.org>
20635
20636         Work around iconv_open problem on Solaris.
20637         * lib/iconv_open-solaris.gperf: New file.
20638         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
20639         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
20640         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
20641         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
20642         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
20643         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
20644
20645 2009-08-29  Jim Meyering  <meyering@redhat.com>
20646
20647         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
20648         * top/maint.mk (cvs-check): Remove target; it was just an alias
20649         to the better-named vc-diff-check.
20650         (maintainer-distcheck): Remove rule.  It was used only from
20651         the (alpha/beta/major) target, and all of its commands but one
20652         were coreutils-specific.
20653         (vc-dist): Remove rule.
20654         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
20655         Run vc-diff-check, not vc-dist.
20656         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
20657
20658 2009-08-27  Bruno Haible  <bruno@clisp.org>
20659
20660         * tests/test-bitrotate.c (main): Remove test that uses a shift count
20661         of 0.
20662
20663 2009-08-27  Bruno Haible  <bruno@clisp.org>
20664
20665         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
20666         compilers.
20667         * doc/func.texi: Document the SunPRO C bug.
20668
20669 2009-08-27  Bruno Haible  <bruno@clisp.org>
20670
20671         Fix link error on Solaris.
20672         * tests/test-parse-duration.c (xstrdup): Remove function.
20673
20674 2009-08-26  Pádraig Brady  <P@draigbrady.com>
20675
20676         ignore-value: handle pointer types, too
20677         * lib/ignore-value.h (__attribute__): Remove definition.
20678         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
20679         of a more concise and more-often effective "(void) i" statement.
20680         (ignore_ptr): New function to suppress warnings from functions that
20681         return pointers, and to make it explicit that one function doesn't
20682         handle all cases.
20683
20684 2009-08-25  Bruno Haible  <bruno@clisp.org>
20685
20686         dup2: work around a Linux bug.
20687         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
20688         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
20689         * doc/posix-functions/dup2.texi: Mention the Linux bug.
20690         Reported by Simon Josefsson.
20691
20692 2009-08-25  Jim Meyering  <meyering@redhat.com>
20693
20694         libguestfs uses gnulib
20695         * users.txt: Add libguestfs.
20696
20697 2009-08-24  Eric Blake  <ebb9@byu.net>
20698
20699         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
20700         * lib/pipe2.c (includes): Add binary-io.h.
20701         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
20702
20703 2009-08-24  Bruno Haible  <bruno@clisp.org>
20704
20705         Tolerate declared but missing accept4 syscall.
20706         * lib/accept4.c (accept4): Invoke original accept4 function first, if
20707         available.
20708         * lib/sys_socket.in.h (accept4): If the function is already present,
20709         override it.
20710         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
20711         * modules/accept4 (Makefile.am): Compile accept4.c always.
20712         Reported by Paolo Bonzini and Eric Blake.
20713
20714 2009-08-23  Bruno Haible  <bruno@clisp.org>
20715
20716         New module 'accept4'.
20717         * lib/sys_socket.in.h (accept4): New declaration.
20718         * lib/accept4.c: New file.
20719         * m4/accept4.m4: New file.
20720         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20721         GNULIB_ACCEPT4, HAVE_ACCEPT4.
20722         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
20723         HAVE_ACCEPT4.
20724         * modules/accept4: New file.
20725         * doc/glibc-functions/accept4.texi: Mention the new module.
20726
20727 2009-08-24  Jim Meyering  <meyering@redhat.com>
20728
20729         progname: also set global program_invocation_name, when possible
20730         Before this change, a libtool-enabled program that calls glibc's
20731         error function would report the program name as
20732         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
20733         * modules/progname (configure.ac): Check for a declaration of
20734         program_invocation_name.
20735         * lib/progname.c:  Include <errno.h>.
20736         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
20737         Set program_invocation_name.
20738
20739 2009-08-23  Bruno Haible  <bruno@clisp.org>
20740
20741         * lib/dup3.c: Include <string.h>.
20742
20743 2009-08-23  Bruno Haible  <bruno@clisp.org>
20744
20745         * lib/dup3.c (dup3): Test only once whether the system actually exists.
20746         * lib/pipe2.c (pipe2): Likewise.
20747         Suggested by Eric Blake.
20748
20749 2009-08-23  Bruno Haible  <bruno@clisp.org>
20750
20751         Tolerate declared but missing dup3 syscall.
20752         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
20753         * lib/unistd.in.h (dup3): If the function is already present,
20754         override it.
20755         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
20756         * modules/dup3 (Makefile.am): Compile dup3.c always.
20757         Reported by Paolo Bonzini.
20758
20759 2009-08-23  Bruno Haible  <bruno@clisp.org>
20760
20761         Tolerate declared but missing pipe2 syscall.
20762         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
20763         available.
20764         * lib/unistd.in.h (pipe2): If the function is already present,
20765         override it.
20766         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
20767         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
20768         Reported by Paolo Bonzini.
20769
20770 2009-08-23  Bruno Haible  <bruno@clisp.org>
20771
20772         * lib/pipe2.c (pipe2): Move #ifs inside function.
20773
20774 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20775
20776         quotearg: document limitations of quote_these_too
20777         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
20778         those limitations are created.
20779         * lib/quotearg.h (set_char_quoting): Document that digits and
20780         letters that are special after backslash are not permitted.
20781         (quotearg_char): Cross-reference set_char_quoting documentation.
20782
20783 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
20784
20785         quotearg: implement custom_quoting_style
20786         * lib/quotearg.c: (struct quoting_options): Add left_quote and
20787         right_quote fields.
20788         (set_custom_quoting): New public function.
20789         (quotearg_buffer_restyled): Add left_quote and right_quote
20790         arguments, handle them very much like locale quoting, and update
20791         all uses.
20792         (quotearg_n_custom): New public function.
20793         (quotearg_n_custom_mem): New public function.
20794         (quotearg_custom): New public function.
20795         (quotearg_custom_mem): New public function.
20796         * lib/quotearg.h: Prototype and document new public functions.
20797         (enum quoting_style): For escape_quoting_style and
20798         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
20799         ignored even though they're otherwise like c_quoting_style.
20800         Add custom_quoting_style member and document with comparison to
20801         clocale_quoting_style.
20802         * tests/test-quotearg.c (custom_quotes): New array.
20803         (custom_results): New array.
20804         (main): Extend to test custom quoting.
20805
20806 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20807
20808         quotearg: fix right quote escaping when it's in quote_these_too
20809         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
20810         quote, be sure to prepend only one backslash.
20811         * tests/test-quotearg.c (use_quote_double_quotes): New function.
20812         (main): Test it.
20813
20814 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20815
20816         quotearg-tests: test escaping of embedded locale quotes
20817         * tests/test-quotearg.c (struct result_strings): Add member for
20818         new input.
20819         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
20820         (inputs): Add new input.
20821         (results_g): Add expected results.
20822         (flag_results): Likewise.
20823         (locale_results): Likewise.
20824         (compare_strings): Check those.
20825
20826 2009-08-23  Bruno Haible  <bruno@clisp.org>
20827
20828         Tests for module 'dup3'.
20829         * modules/dup3-tests: New file.
20830         * tests/test-dup3.c: New file.
20831
20832         New module 'dup3'.
20833         * lib/unistd.in.h (dup3): New declaration.
20834         * lib/dup3.c: New file.
20835         * m4/dup3.m4: New file.
20836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
20837         HAVE_DUP3.
20838         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
20839         * modules/dup3: New file.
20840         * doc/glibc-functions/dup3.texi: Mention the new module.
20841
20842 2009-08-23  Bruno Haible  <bruno@clisp.org>
20843
20844         Tweak the dup2 test.
20845         * tests/test-dup2.c (main): Create the test file empty. Verify that an
20846         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
20847         the test file is still empty. Fix argument order of lseek.
20848
20849 2009-08-23  Bruno Haible  <bruno@clisp.org>
20850
20851         Avoid test link errors when the modules getopt-gnu, gettext are used.
20852         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
20853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20854
20855 2009-08-23  Bruno Haible  <bruno@clisp.org>
20856
20857         Fix getdtablesize() on mingw.
20858         * lib/getdtablesize.c (getdtablesize): Implement differently.
20859         * lib/unistd.in.h (getdtablesize): Improve comment.
20860
20861 2009-08-23  Bruno Haible  <bruno@clisp.org>
20862
20863         New module 'mkostemp'.
20864         Based on Ulrich Drepper's 2007-08-10 change in glibc.
20865         * lib/stdlib.in.h (mksotemp): New declaration.
20866         * lib/mkostemp.c: New file, from glibc with modifications.
20867         * lib/tempname.h (GT_FILE): Remove outdated comment.
20868         (gen_tempname): Add flags argument.
20869         * lib/tempname.c (__GT_BIGFILE): Remove macro.
20870         (__GT_FILE): Map to 1.
20871         (small_open, large_open): Remove macros.
20872         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
20873         * lib/mkstemp.c (mkstemp): Update.
20874         * lib/mkdtemp.c (mkdtemp): Likewise.
20875         * m4/mkostemp.m4: New file.
20876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
20877         HAVE_MKOSTEMP.
20878         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
20879         HAVE_MKOSTEMP.
20880         * modules/mkostemp: New file, based on modules/mkstemp.
20881         * doc/glibc-functions/mkostemp.texi: Mention the new module.
20882         * NEWS: Mention the change.
20883
20884 2009-08-23  Bruno Haible  <bruno@clisp.org>
20885
20886         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
20887         Reported by Eric Blake.
20888
20889 2009-08-23  Bruno Haible  <bruno@clisp.org>
20890
20891         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
20892         Reported by Eric Blake.
20893
20894 2009-08-23  Bruno Haible  <bruno@clisp.org>
20895
20896         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
20897         * modules/pipe2 (Depends-on): Likewise.
20898
20899 2009-08-23  Eric Blake  <ebb9@byu.net>
20900
20901         fcntl-h: add O_TTY_INIT support
20902         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
20903         * tests/test-fcntl-h.c (o): Test it.
20904         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20905
20906         fcntl-h: rename from fcntl, in preparation for fcntl(2)
20907         * modules/fcntl: Move <fcntl.h> header replacement...
20908         * modules/fcntl-h: ...to new name, so as not to collide with
20909         like-named function.
20910         * tests/test-fcntl.c: Rename...
20911         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
20912         * modules/fcntl-tests: Rename...
20913         * modules/fcntl-h-tests: ...to this.  Update test file name.
20914         * modules/chdir-long (Depends-on): Update clients.
20915         * modules/chdir-safer (Depends-on): Likewise.
20916         * modules/fcntl-safer (Depends-on): Likewise.
20917         * modules/fts (Depends-on): Likewise.
20918         * modules/mkancesdirs (Depends-on): Likewise.
20919         * modules/mkdir-p (Depends-on): Likewise.
20920         * modules/open (Depends-on): Likewise.
20921         * modules/savewd (Depends-on): Likewise.
20922         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
20923         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20924
20925 2009-08-22  Bruno Haible  <bruno@clisp.org>
20926
20927         * modules/binary-io (License): Relicense under LGPL.
20928         * modules/pipe2 (License): Likewise.
20929
20930 2009-08-22  Bruno Haible  <bruno@clisp.org>
20931
20932         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
20933         return value.
20934         * lib/pipe-filter-gi.c (filter_init): Likewise.
20935         Reported by Eric Blake.
20936
20937 2009-08-22  Bruno Haible  <bruno@clisp.org>
20938
20939         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
20940         * modules/pipe (Depends-on): Add pipe2.
20941
20942 2009-08-22  Bruno Haible  <bruno@clisp.org>
20943
20944         Tests for module 'pipe2'.
20945         * modules/pipe2-tests: New file.
20946         * tests/test-pipe2.c: New file.
20947
20948         New module 'pipe2'.
20949         * lib/unistd.in.h (pipe2): New declaration.
20950         * lib/pipe2.c: New file.
20951         * m4/pipe2.m4: New file.
20952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
20953         HAVE_PIPE2.
20954         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
20955         * modules/pipe2: New file.
20956         * doc/glibc-functions/pipe2.texi: Mention the new module.
20957
20958 2009-08-22  Bruno Haible  <bruno@clisp.org>
20959
20960         Reference some new glibc functions.
20961         * doc/glibc-functions/accept4.texi: New file.
20962         * doc/glibc-functions/dup3.texi: New file.
20963         * doc/glibc-functions/mkostemp.texi: New file.
20964         * doc/glibc-functions/pipe2.texi: New file.
20965         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
20966         (Glibc sys/socket.h): Refer to accept4.
20967         (Glibc unistd.h): Refer to dup3, pipe2.
20968         Reported by Eric Blake.
20969
20970 2009-08-22  Jim Meyering  <meyering@redhat.com>
20971             Bruno Haible  <bruno@clisp.org>
20972
20973         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
20974         This makes it so packages using automake-1.11's silent-rules option
20975         can print e.g., a single "GEN    configmake.h" line, rather than
20976         the 30+ statements that perform the job.  If you want to see the
20977         actual commands, you can still run "make V=1".
20978         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
20979         so that make output is abbreviated when those variables are defined
20980         appropriately.
20981         * modules/argz: Likewise.
20982         * modules/arpa_inet: Likewise.
20983         * modules/byteswap: Likewise.
20984         * modules/configmake: Likewise.
20985         * modules/dirent: Likewise.
20986         * modules/errno: Likewise.
20987         * modules/fcntl: Likewise.
20988         * modules/float: Likewise.
20989         * modules/fnmatch: Likewise.
20990         * modules/getopt-posix: Likewise.
20991         * modules/glob: Likewise.
20992         * modules/iconv_open: Likewise.
20993         * modules/inttypes: Likewise.
20994         * modules/localcharset: Likewise.
20995         * modules/locale: Likewise.
20996         * modules/math: Likewise.
20997         * modules/netdb: Likewise.
20998         * modules/netinet_in: Likewise.
20999         * modules/poll: Likewise.
21000         * modules/posix_spawnp-tests: Likewise.
21001         * modules/sched: Likewise.
21002         * modules/search: Likewise.
21003         * modules/selinux-h: Likewise.
21004         * modules/signal: Likewise.
21005         * modules/spawn: Likewise.
21006         * modules/stdarg: Likewise.
21007         * modules/stdbool: Likewise.
21008         * modules/stddef: Likewise.
21009         * modules/stdint: Likewise.
21010         * modules/stdio: Likewise.
21011         * modules/stdlib: Likewise.
21012         * modules/string: Likewise.
21013         * modules/strings: Likewise.
21014         * modules/sys_file: Likewise.
21015         * modules/sys_ioctl: Likewise.
21016         * modules/sys_select: Likewise.
21017         * modules/sys_socket: Likewise.
21018         * modules/sys_stat: Likewise.
21019         * modules/sys_time: Likewise.
21020         * modules/sys_times: Likewise.
21021         * modules/sys_utsname: Likewise.
21022         * modules/sys_wait: Likewise.
21023         * modules/sysexits: Likewise.
21024         * modules/time: Likewise.
21025         * modules/unistd: Likewise.
21026         * modules/wchar: Likewise.
21027         * modules/wctype: Likewise.
21028
21029 2009-08-22  Jim Meyering  <meyering@redhat.com>
21030
21031         announce-gen: detect write failure
21032         * build-aux/announce-gen: Add Coda at end.
21033         Remove equivalent-but-more-verbose block at top.
21034
21035 2009-08-19  Akim Demaille  <demaille@gostai.com>
21036
21037         bootstrap: --help to stdout.
21038         * bootstrap (usage): Don't send --help to stderr.
21039         Use a here doc instead of a long string.
21040
21041 2009-08-21  Eric Blake  <ebb9@byu.net>
21042
21043         test-popen-safer: split from test-popen
21044         * tests/test-popen.c (main): Move...
21045         * tests/test-popen.h: ...into new file.
21046         * tests/test-popen-safer2.c: New file.
21047         * modules/popen-tests (Files): Add test-popen.h.
21048         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
21049         Suggested by Bruno Haible.
21050
21051         test-fcntl-safer: split from test-open
21052         * tests/test-open.c (main): Move...
21053         * tests/test-open.h: ...into new file.
21054         * tests/test-fcntl-safer.c: New file.
21055         * modules/open-tests (Files): Add test-open.h.
21056         * modules/fcntl-safer-tests: New file.
21057         Suggested by Bruno Haible.
21058
21059         test-fopen-safer: split from test-fopen
21060         * tests/test-fopen.c (main): Move...
21061         * tests/test-fopen.h: ...into new file.
21062         * tests/test-fopen-safer.c: New file.
21063         * modules/fopen-tests (Files): Add test-fopen.h.
21064         * modules/fopen-safer-tests: New file.
21065         Suggested by Bruno Haible.
21066
21067 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21068
21069         popen-safer: test O_CLOEXEC at run-time.
21070         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21071
21072 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21073
21074         fcntl: move more flags to the header
21075         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21076         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21077         * lib/fcntl.in.h: Do both things here.
21078
21079 2009-08-21  Jim Meyering  <meyering@redhat.com>
21080
21081         consistently remove $@-t before redirecting to it
21082         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21083         * modules/alloca-opt: Likewise.
21084         * modules/byteswap: Likewise.
21085         * modules/fnmatch: Likewise.
21086         * modules/getopt-posix: Likewise.
21087         * modules/glob: Likewise.
21088         * modules/poll: Likewise.
21089         * modules/posix_spawnp-tests: Likewise.
21090         * modules/sys_socket: Likewise.
21091         * modules/sysexits: Likewise.
21092
21093 2009-08-21  Eric Blake  <ebb9@byu.net>
21094
21095         popen: simplify access to original popen
21096         * lib/popen.c (rpl_popen): No need to worry about popen being a
21097         macro.
21098         Reported by Bruno Haible.
21099
21100 2009-08-20  Eric Blake  <ebb9@byu.net>
21101
21102         build: avoid some compiler warnings
21103         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21104         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21105         type.
21106         (new_exclude_segment, excluded_file_pattern_p)
21107         (excluded_file_name_p): Reduce scope.
21108         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21109         old-style declaration.
21110
21111 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21112
21113         * tests/test-exclude1.sh: Handle Windows EOL.
21114         * tests/test-exclude2.sh: Likewise.
21115         * tests/test-exclude3.sh: Likewise.
21116         * tests/test-exclude4.sh: Likewise.
21117         * tests/test-exclude5.sh: Likewise.
21118         * tests/test-exclude6.sh: Likewise.
21119         * tests/test-exclude7.sh: Likewise.
21120
21121 2009-08-19  Akim Demaille  <demaille@gostai.com>
21122
21123         bootstrap: find sha1sum when named gsha1sum.
21124         * bootstrap (find_tool): New.
21125         ($SHA1SUM): New.
21126         Use it.
21127
21128 2009-08-20  Jim Meyering  <meyering@redhat.com>
21129
21130         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21131         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21132         expression that converts "." in a file name to "\." in the resulting
21133         regexp.  Start with a dummy statement, so that prior shell variable
21134         definitions are expanded portably.  Reported by Simon Josefsson.
21135
21136 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21137
21138         Fix polling for writeability of a screen buffer.
21139         * lib/poll.c: Distinguish input and screen buffers for the
21140         Win32 implementation.
21141         * lib/select.c: Likewise.
21142
21143 2009-08-19  Eric Blake  <ebb9@byu.net>
21144
21145         popen-safer: prevent popen from clobbering std descriptors
21146         * modules/popen-safer: New file.
21147         * lib/popen-safer.c: Likewise.
21148         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21149         * lib/stdio--.h (popen): Provide override.
21150         * lib/stdio-safer.h (popen_safer): Provide declaration.
21151         * tests/test-popen.c (includes): Partially test this.
21152         * modules/popen-safer-tests: New file, for more tests.
21153         * tests/test-popen-safer.c: Likewise.
21154         * MODULES.html.sh (file stream based Input/Output): Mention it.
21155
21156         tests: test some of the *-safer modules
21157         * modules/fopen-safer (Depends-on): Add fopen.
21158         * modules/fcntl-safer (Depends-on): Add fcntl.
21159         * modules/stdlib-safer (Depends-on): Add stdlib.
21160         (configure.ac): Set indicator.
21161         * modules/unistd-safer (configure.ac): Likewise.
21162         * modules/tmpfile-safer (configure.ac): Likewise.
21163         (Depends-on): Add tmpfile.
21164         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21165         active.
21166         * tests/test-fopen.c (includes): Test safer versions when they are
21167         in use.
21168         * tests/test-open.c (includes): Likewise.
21169
21170         popen: fix cygwin 1.5 bug when stdin closed
21171         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21172         * modules/popen: New file.
21173         * modules/popen-tests: Likewise.
21174         * tests/test-popen.c: Likewise.
21175         * m4/popen.m4: Likewise.
21176         * lib/popen.c: Likewise.
21177         * lib/stdio.in.h (popen): New declaration.
21178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21179         * modules/stdio (Makefile.am): Likewise.
21180         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21181
21182 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21183
21184         maint.mk: give full control over update-copyright exclusions
21185         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21186         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21187         (update-copyright): Don't force inclusion of top-level
21188         ChangeLog.  Don't force exclusion of all COPYING files, but make
21189         them the default exclusion instead.
21190
21191 2009-08-16  Bruno Haible  <bruno@clisp.org>
21192
21193         Fix test failures on Solaris 10.
21194         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21195         tests when Solaris iconv() is used.
21196         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21197         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21198         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21199         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21200         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21201
21202 2009-08-16  Bruno Haible  <bruno@clisp.org>
21203
21204         Fix test failures on Solaris 10.
21205         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21206         'tr' program and pass it as first argument.
21207         * tests/test-pipe-filter-gi1.sh: Likewise.
21208         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21209         program as first argument.
21210         * tests/test-pipe-filter-gi1.c (main): Likewise.
21211
21212 2009-08-16  Eric Blake  <ebb9@byu.net>
21213
21214         fpurge: fix previous commits
21215         * modules/fpurge (Makefile.am): Make replacement conditional,
21216         partially reverting 2007-04-29 change; missed in previous
21217         attempt.
21218         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21219         is missing.
21220
21221 2009-08-16  Bruno Haible  <bruno@clisp.org>
21222
21223         Clarify fpurge's effect on the file position.
21224         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21225         * tests/test-fpurge.c (main): Make a second pass for checking the file
21226         position.
21227
21228 2009-08-16  Bruno Haible  <bruno@clisp.org>
21229
21230         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21231         declaration of fpurge is missing.
21232         * tests/test-fpurge.c (main): Check that the file has not more contents
21233         than expected. Close the file before removing it.
21234
21235 2009-08-15  Eric Blake  <ebb9@byu.net>
21236
21237         fpurge: don't wrap working cygwin implementation
21238         * lib/fpurge.c (fpurge): Fix comment typo.
21239         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21240         1.7 to avoid replacement.
21241         * tests/test-fpurge.c (main): Enhance test.
21242
21243 2009-08-15  Eric Blake  <ebb9@byu.net>
21244         and Jim Meyering  <meyering@redhat.com>
21245
21246         test-update-copyright: skip if perl is insufficient
21247         * tests/test-update-copyright.sh: Failure to run maintainer tool
21248         should not cause testsuite failure on cygwin 1.5.
21249
21250 2009-08-14  Eric Blake  <ebb9@byu.net>
21251
21252         doc: mention more functions added in cygwin 1.7.0
21253         * doc/posix-headers/limits.texi (limits.h): Update for recent
21254         cygwin additions.
21255         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21256         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21257         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21258         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21259         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21260
21261 2009-08-14  Eric Blake  <ebb9@byu.net>
21262
21263         maint.mk: simplify update-copyright rule
21264         * top/maint.mk (update-copyright-local): Delete, and document how
21265         to do it in cfg.mk instead.
21266         (update-copyright-exclude-regexp): Delete, and document how to do
21267         it in .x-update-copyright instead.
21268         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21269         exclude ChangeLog.
21270
21271 2009-08-14  Bruno Haible  <bruno@clisp.org>
21272
21273         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21274
21275 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21276
21277         maint.mk: support update-copyright-env
21278         * top/maint.mk (update-copyright-env): Define place-holder.
21279         (update-copyright): Expand $(update-copyright-env) before
21280         invoking update-copyright.
21281
21282 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21283
21284         update-copyright: implement forced reformatting
21285         * build-aux/update-copyright: Implement and document
21286         UPDATE_COPYRIGHT_FORCE.
21287         * tests/test-update-copyright.sh: Test it.
21288
21289 2009-08-14  Eric Blake  <ebb9@byu.net>
21290         and Bruno Haible  <bruno@clisp.org>
21291
21292         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21293         * tests/test-locale.c: Revert previous patch related to NULL.
21294         * tests/test-stdio.c: Likewise.
21295         * tests/test-stdlib.c: Likewise.
21296         * tests/test-string.c: Likewise.
21297         * tests/test-unistd.c: Likewise.
21298         * modules/time-tests (Depends-on): Add verify.
21299         * modules/wchar-tests (Depends-on): Likewise.
21300         * tests/test-time.c: Test for NULL compliance.
21301         * tests/test-wchar.c: Likewise.
21302         * modules/locale (Depends-on): Add stddef.
21303         * modules/stdio (Depends-on): Likewise.
21304         * modules/stdlib (Depends-on): Likewise.
21305         * modules/string (Depends-on): Likewise.
21306         * modules/time (Depends-on): Likewise.
21307         * modules/unistd (Depends-on): Likewise.
21308         * modules/wchar (Depends-on): Likewise.
21309         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21310         * lib/stdlib.in.h (includes): Likewise.
21311         * lib/string.in.h (includes): Likewise.
21312         * lib/time.in.h (includes): Likewise.
21313         * lib/unistd.in.h (includes): Likewise.
21314         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21315         replaced.
21316         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21317         * m4/stddef_h.m4: New file.
21318         * modules/stddef: Likewise.
21319         * lib/stddef.in.h: Likewise.
21320         * modules/stddef-tests: Likewise.
21321         * tests/test-stddef.c: Likewise.
21322         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21323         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21324         * doc/posix-headers/locale.texi (locale.h): Likewise.
21325         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21326         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21327         * doc/posix-headers/string.texi (string.h): Likewise.
21328         * doc/posix-headers/time.texi (time.h): Likewise.
21329         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21330         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21331
21332 2009-08-14  Eric Blake  <ebb9@byu.net>
21333
21334         doc: improve git diff of texinfo files
21335         * .gitattributes: Add rule for *.texi files, with hint on how to
21336         use it.
21337         Copied from m4, and based on a report by Bruno Haible.
21338
21339 2009-08-14  Bruno Haible  <bruno@clisp.org>
21340
21341         Disable multithread support by default on Cygwin 1.5.x for real.
21342         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21343
21344 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21345
21346         update-copyright: much ado about intervals
21347         * build-aux/update-copyright: Implement and document
21348         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21349         of copyright year intervals.
21350         Also, document UPDATE_COPYRIGHT_YEAR.
21351         * tests/test-update-copyright.sh: Test it.
21352
21353         update-copyright: convert 2-digit to 4-digit years
21354         * build-aux/update-copyright: Implement and document.
21355         * tests/test-update-copyright.sh: Update.
21356
21357 2009-08-14  Jim Meyering  <meyering@redhat.com>
21358
21359         test-exclude: avoid coreutils "make check" failure
21360         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21361         just as in test-argmatch.c.
21362
21363 2009-08-13  Eric Blake  <ebb9@byu.net>
21364
21365         test-dup2: fix bad assumption
21366         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21367         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21368
21369         test-version-etc: fix CRLF portability issue
21370         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21371         recognize \r.
21372         * tests/test-argp-version-etc-1.sh: Likewise.
21373
21374         getopt: update client modules
21375         * modules/argp (Depends-on): Use getopt-gnu.
21376         * modules/git-merge-changelog (Depends-on): Likewise.
21377         * modules/long-options (Depends-on): Likewise.
21378         * modules/xstrtol (Depends-on): Likewise.
21379
21380 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21381
21382         * tests/test-version-etc.sh: Don't fail on different
21383         project/version.  Don't fail on CRLF differences.  Rewrite to use
21384         multiple -e instead of multiple sed forks, suggested by Eric Blake
21385         <ebb9@byu.net>.
21386         * tests/test-argp-version-etc-1.sh: Likewise.
21387
21388 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21389
21390         * tests/test-version-etc.sh: Don't fail on different
21391         project/version.
21392
21393 2009-08-12  Bruno Haible  <bruno@clisp.org>
21394
21395         Tests for modules 'getopt-posix', 'getopt-gnu'.
21396         * modules/getopt-posix-tests: New file.
21397         * tests/test-getopt.c: New file.
21398         * tests/test-getopt.h: New file.
21399         * tests/test-getopt_long.h: New file.
21400
21401         New modules 'getopt-posix', 'getopt-gnu'.
21402         * modules/getopt-gnu: New file, renamed from modules/getopt.
21403         * modules/getopt-posix: New file.
21404         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
21405         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
21406         (gl_GETOPT): Remove macro.
21407         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
21408         Disable the test against BSD systems that declare optreset. Test
21409         against mingw bug. Test against lack of support of optional arguments
21410         on many platforms.
21411         * doc/glibc-headers/getopt.texi: Update module name and list of
21412         relevant platforms.
21413         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
21414         'getopt-gnu' and more portability problems.
21415         * NEWS: Mention the changes.
21416
21417 2009-08-12  Bruno Haible  <bruno@clisp.org>
21418
21419         Ensure that optarg etc. get declared by <unistd.h>.
21420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
21421         AC_USE_SYSTEM_EXTENSIONS.
21422         * modules/getopt (Depends-on): Add 'extensions'.
21423
21424 2009-08-12  Bruno Haible  <bruno@clisp.org>
21425
21426         Avoid test link errors.
21427         * modules/pipe-filter-ii-tests (Makefile.am): Define
21428         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
21429         * modules/pipe-filter-gi-tests (Makefile.am): Define
21430         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
21431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21432
21433 2009-08-12  Bruno Haible  <bruno@clisp.org>
21434
21435         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
21436         gl_GETOPT_SUBSTITUTE before.
21437         (gl_GETOPT): Use it.
21438         * m4/argp.m4 (gl_ARGP): Update.
21439         Reported by Sergey Poznyakoff.
21440
21441         * m4/getopt.m4: Reorder macros.
21442         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
21443         (gl_GETOPT_SUBSTITUTE): Remove macro.
21444
21445 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21446
21447         Minor improvement in gitlog-to-changelog
21448
21449         * build-aux/gitlog-to-changelog: New option `--format' makes
21450         output format string configurable.
21451
21452 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21453
21454         Optimize exclude: use hash tables for non-wildcard patterns.
21455
21456         * lib/exclude.c: Include hash.h and mbuiter.h
21457         (struct exclude_pattern, exclude_segment): New data types.
21458         (struct exclude): Rewrite.
21459         (fnmatch_pattern_has_wildcards): New function.
21460         (new_exclude_segment, free_exclude_segment): New functions.
21461         (excluded_file_pattern_p, excluded_file_name_p): New functions.
21462         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
21463         * lib/exclude.h (is_fnmatch_pattern): New prototype.
21464         * modules/exclude: Depend on hash and mbuiter.
21465
21466         * modules/exclude-tests: New file.
21467         * tests/test-exclude.c: New file.
21468         * tests/test-exclude1.sh: New file.
21469         * tests/test-exclude2.sh: New file.
21470         * tests/test-exclude3.sh: New file.
21471         * tests/test-exclude4.sh: New file.
21472         * tests/test-exclude5.sh: New file.
21473         * tests/test-exclude6.sh: New file.
21474         * tests/test-exclude7.sh: New file.
21475
21476 2009-08-12  Bruno Haible  <bruno@clisp.org>
21477
21478         Ensure that getopt() gets declared by <unistd.h>.
21479         * lib/unistd.in.h: Conditionally include getopt.h.
21480         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
21481         Set GNULIB_UNISTD_H_GETOPT.
21482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21483         GNULIB_UNISTD_H_GETOPT.
21484         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
21485
21486 2009-08-12  Bruno Haible  <bruno@clisp.org>
21487
21488         Clarify logic.
21489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
21490         gl_replace_getopt instead of GETOPT_H.
21491
21492 2009-08-12  Bruno Haible  <bruno@clisp.org>
21493
21494         * m4/getopt.m4: Add comments.
21495
21496 2009-08-12  Bruno Haible  <bruno@clisp.org>
21497
21498         Disable multithread support by default on Cygwin 1.5.x.
21499         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
21500         set gl_use_threads=no if not specified otherwise.
21501
21502 2009-08-11  Bruno Haible  <bruno@clisp.org>
21503
21504         Avoid compilation error on NetBSD 5.0.
21505         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
21506         * tests/test-stdio.c: Likewise.
21507         * tests/test-stdlib.c: Likewise.
21508         * tests/test-string.c: Likewise.
21509         * tests/test-unistd.c: Likewise.
21510         Reported by Greg Troxel <gdt@ir.bbn.com>
21511         at <https://savannah.gnu.org/support/?106973>.
21512
21513 2009-08-11  Bruno Haible  <bruno@clisp.org>
21514
21515         * modules/dup2-tests (Depends-on): Remove close.
21516
21517         Undo 2009-07-19 commit.
21518         * modules/acl-tests (Depends-on): Remove close.
21519         * modules/binary-io-tests (Depends-on): Likewise.
21520         * modules/closein-tests (Depends-on): Likewise.
21521         * modules/flock-tests (Depends-on): Likewise.
21522         * modules/fsync-tests (Depends-on): Likewise.
21523         * modules/lseek-tests (Depends-on): Likewise.
21524         * modules/pipe-tests (Depends-on): Likewise.
21525         * modules/posix_spawn-tests (Depends-on): Likewise.
21526         * modules/posix_spawnp-tests (Depends-on): Likewise.
21527         * modules/stat-time-tests (Depends-on): Likewise.
21528         * modules/yesno-tests (Depends-on): Likewise.
21529
21530 2009-08-10  Bruno Haible  <bruno@clisp.org>
21531
21532         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
21533
21534 2009-08-10  Bruno Haible  <bruno@clisp.org>
21535
21536         Fix a gcc warning.
21537         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
21538
21539 2009-08-10  Bruno Haible  <bruno@clisp.org>
21540
21541         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
21542         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
21543         not only the first time.
21544         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
21545         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
21546         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
21547         is 1, not only the the first time.
21548
21549 2009-08-10  Bruno Haible  <bruno@clisp.org>
21550
21551         Make it possible to use module 'gethostname' without module 'close'.
21552         * lib/unistd.in.h (close): Evoke a link error only if
21553         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21555         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21556         * modules/unistd (Makefile.am): Substitute
21557         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21558         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
21559         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21560         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21561         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21562         * modules/sys_ioctl (Makefile.am): Substitute
21563         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21564         * modules/socket (configure.ac): On native Windows, set
21565         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
21566         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21567         Reported by Sam Steingold <sds@gnu.org>.
21568
21569 2009-08-10  Bruno Haible  <bruno@clisp.org>
21570
21571         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
21572         * modules/ioctl (configure.ac): Likewise.
21573
21574 2009-08-10  Bruno Haible  <bruno@clisp.org>
21575
21576         Avoid collision between gnulib wrapper and libintl wrapper.
21577         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
21578         already defined in intl/printf.c.
21579         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
21580         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
21581
21582 2009-08-09  Bruno Haible  <bruno@clisp.org>
21583
21584         Make <sys/select.h> really self-contained, also on Solaris 10.
21585         * lib/sys_select.in.h: Include <string.h>.
21586         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
21587         Solaris 10 problem.
21588         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
21589         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
21590         Reported by Jim Meyering.
21591
21592 2009-08-09  Bruno Haible  <bruno@clisp.org>
21593
21594         Avoid warnings from 'aclocal' that are due to a use of macro name
21595         AM_XGETTEXT_OPTION that is not defined in automake.
21596         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
21597         automake.
21598         * modules/error (configure.ac): Likewise.
21599         * modules/propername (configure.ac): Likewise.
21600         * modules/vasprintf (configure.ac): Likewise.
21601         * modules/verror (configure.ac): Likewise.
21602         * modules/xprintf (configure.ac): Likewise.
21603         * modules/xvasprintf (configure.ac): Likewise.
21604
21605 2009-08-08  Bruno Haible  <bruno@clisp.org>
21606
21607         Avoid compilation error in C++ mode.
21608         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
21609         Reported by Sam Steingold <sds@gnu.org>.
21610
21611 2009-08-08  Bruno Haible  <bruno@clisp.org>
21612
21613         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
21614         for the various Unix platforms.
21615         * doc/posix-headers/limits.texi: Update platforms list regarding
21616         HOST_NAME_MAX.
21617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21618
21619 2009-08-07  Jim Meyering  <meyering@redhat.com>
21620
21621         selinux-at: fix typo in a comment
21622         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
21623         Spotted by Paolo Bonzini.
21624
21625         selinux-at: remove redundant m4 code, add documentation
21626         * modules/selinux-at (configure.ac): Remove redundant code.
21627         LIB_SELINUX is already set via the dependent module, selinux-h.
21628         (Include): Add quotes around selinux-at.h.
21629         * lib/selinux-at.h: Add documentation.
21630         Reported by Bruno Haible in
21631         http://marc.info/?l=gnulib-bug&m=124958988300749
21632
21633 2009-08-07  Bruno Haible  <bruno@clisp.org>
21634
21635         Avoid link error on MacOS X 10.3 and 10.4.
21636         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
21637         on non-ELF systems.
21638         * lib/argp-pv.c (argp_program_version): Likewise.
21639         Reported by Simon Josefsson.
21640
21641 2009-08-07  Simon Josefsson  <simon@josefsson.org>
21642
21643         * tests/test-version-etc.sh: Use $EXEEXT.
21644
21645 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
21646
21647         update-copyright: update documentation to point to maint.mk
21648         * build-aux/update-copyright: Here.
21649
21650 2009-08-06  Jim Meyering  <meyering@redhat.com>
21651
21652         maint.mk: support update-copyright-local
21653         * top/maint.mk (update-copyright-local): Define place-holder.
21654         (update-copyright): Depend on $(update-copyright-local).
21655
21656 2009-08-06  Jim Meyering  <meyering@redhat.com>
21657
21658         selinux-at: new module
21659         Initially written for coreutils, this module will soon be
21660         used by findutils, too.
21661         * MODULES.html.sh [Misc]: Add selinux-at.
21662         * lib/selinux-at.h: New file, from coreutils.
21663         * lib/selinux-at.c: Likewise.
21664         * modules/selinux-at: Likewise.
21665         (License): Change from LGPL to GPL, since it depends
21666         on the GPL'd openat module.
21667
21668         doc: update README
21669         * README: Remove references to cogito.
21670         Remove cvs-repo-updating instructions from 2007.
21671         Don't imply that CVS is better if you have limited disk space.
21672
21673 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21674
21675         update-copyright: support C-style comments
21676         * build-aux/update-copyright: Implement and document.
21677         * tests/test-update-copyright.sh: Test.
21678
21679 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21680
21681         update-copyright: support omitted "(C)"
21682         * build-aux/update-copyright: Implement and document.  Also,
21683         allow variable whitespace before "(C)".
21684         * tests/test-update-copyright.sh: Test.
21685
21686 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21687
21688         update-copyright: don't trip on non-FSF copyright statements
21689         * build-aux/update-copyright: Fix so that the first correctly
21690         formatted FSF copyright statement is recognized no matter what
21691         appears before it.  Update documentation.
21692         * tests/test-update-copyright.sh: Test that.
21693
21694 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21695
21696         update-copyright: clean up code a little
21697         * build-aux/update-copyright: Append "_re" to the name of any
21698         variable holding a regular expression.
21699         Replace "old" and "new" with "stmt" in variable names.
21700         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
21701         handled correctly.
21702         Format code more consistently.
21703
21704 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21705
21706         update-copyright-tests: improve portability
21707         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
21708         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
21709
21710 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21711
21712         update-copyright: support @copyright{} and &copy;
21713         * build-aux/update-copyright: Implement and document.
21714         * tests/test-update-copyright.sh: Test.
21715
21716 2009-08-04  Jim Meyering  <meyering@redhat.com>
21717
21718         update-copyright-tests: correctly test EOL=\r\n handling
21719         * tests/test-update-copyright.sh: Put \r at the end of some lines
21720         for the dos-eol tests.  Based on a patch by Joel E. Denny.
21721
21722         maint.mk: make update-copyright exclusion list more configurable
21723         * top/maint.mk (update-copyright): Default to excluding COPYING,
21724         but allow an override, in case someone does want to update that file.
21725
21726         maint.mk: don't update copyright date in COPYING
21727         * top/maint.mk (update-copyright): Exclude COPYING.
21728
21729         maint.mk: add a copyright-updating rule
21730         * top/maint.mk (update-copyright): New rule.
21731         Derived from coreutils/Makefile.am.
21732
21733         update-copyright: rename some variables
21734         * build-aux/update-copyright: Rename a few variables for clarity.
21735         Tweak syntax.  List Joel E. Denny as coauthor.
21736
21737 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21738
21739         update-copyright: fix bug for 2-digit last year and add tests
21740         * build-aux/update-copyright: Fix bug.
21741         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
21742         specified.
21743         * modules/update-copyright-tests: New
21744         * tests/test-update-copyright.sh: New.
21745
21746 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21747
21748         update-copyright: handle leading tabs in line prefix
21749         * build-aux/update-copyright: Count leading tabs as 8 spaces
21750         when computing margin.  This helps with the formatting of
21751         ChangeLogs, for example.
21752         Fix documentation a little.
21753
21754 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21755
21756         update-copyright: support EOL=\r\n
21757         * build-aux/update-copyright: Implement that.
21758
21759 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21760
21761         update-copyright: automatically format copyright statements
21762         * build-aux/update-copyright: Implement that.
21763         Also, be a little more predictable and safer by always failing
21764         when the full copyright format is not perfectly recognized as an
21765         unbroken whole.  Discussed at
21766         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
21767         Rewrite documentation.
21768
21769 2009-08-03  Bruno Haible  <bruno@clisp.org>
21770
21771         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
21772
21773 2009-08-02  Bruno Haible  <bruno@clisp.org>
21774
21775         Tests for module 'uname'.
21776         * modules/uname-tests: New file.
21777         * tests/test-uname.c: New file.
21778
21779         New module 'uname'.
21780         * lib/uname.c: New file.
21781         * m4/uname.m4: New file.
21782         * modules/uname: New file.
21783         * doc/posix-functions/uname.texi: Mention the new module.
21784
21785 2009-08-02  Bruno Haible  <bruno@clisp.org>
21786
21787         Tests for module 'sys_utsname'.
21788         * modules/sys_utsname-tests: New file.
21789         * tests/test-sys_utsname.c: New file.
21790
21791         New module 'sys_utsname'.
21792         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
21793         * m4/sys_utsname_h.m4: New file.
21794         * modules/sys_utsname: New file.
21795         * doc/posix-headers/sys_utsname.texi: Mention the new module.
21796
21797 2009-08-02  Bruno Haible  <bruno@clisp.org>
21798
21799         Implicitly initialize the sockets library.
21800         * lib/gethostname.c: Include sockets.h.
21801         (rpl_gethostname): Invoke gl_sockets_startup.
21802         * lib/socket.c: Include sockets.h.
21803         (rpl_socket): Invoke gl_sockets_startup.
21804         * modules/gethostname (Depends-on): Add sockets.
21805         * modules/socket (Depends-on): Likewise.
21806         * tests/test-poll.c: Don't include sockets.h.
21807         (main): Don't invoke gl_sockets_startup.
21808         * tests/test-select.c: Don't include sockets.h.
21809         (main): Don't invoke gl_sockets_startup.
21810
21811 2009-08-02  Bruno Haible  <bruno@clisp.org>
21812
21813         Allow multiple calls to gl_sockets_startup.
21814         * lib/sockets.c (initialized_sockets_version): New variable.
21815         (gl_sockets_startup): Do nothing if already called for this or a higher
21816         version.
21817         (gl_sockets_cleanup): Reset initialized_sockets_version.
21818
21819 2009-08-03  Simon Josefsson  <simon@josefsson.org>
21820
21821         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
21822         different project/version.
21823
21824 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
21825             Bruno Haible  <bruno@clisp.org>
21826
21827         Tests for module 'pipe-filter-gi'.
21828         * modules/pipe-filter-gi-tests: New file.
21829         * tests/test-pipe-filter-gi1.sh: New file.
21830         * tests/test-pipe-filter-gi1.c: New file.
21831         * tests/test-pipe-filter-gi2.sh: New file.
21832         * tests/test-pipe-filter-gi2-main.c: New file.
21833         * tests/test-pipe-filter-gi2-child.c: New file.
21834
21835         New module 'pipe-filter-gi'.
21836         * lib/pipe-filter-gi.c: New file.
21837         * modules/pipe-filter-gi: New file.
21838
21839 2009-08-02  Bruno Haible  <bruno@clisp.org>
21840             Paolo Bonzini  <bonzini@gnu.org>
21841
21842         Tests for module 'pipe-filter-ii'.
21843         * modules/pipe-filter-ii-tests: New file.
21844         * tests/test-pipe-filter-ii1.sh: New file.
21845         * tests/test-pipe-filter-ii1.c: New file.
21846         * tests/test-pipe-filter-ii2.sh: New file.
21847         * tests/test-pipe-filter-ii2-main.c: New file.
21848         * tests/test-pipe-filter-ii2-child.c: New file.
21849
21850         New module 'pipe-filter-ii'.
21851         * lib/pipe-filter.h: New file.
21852         * lib/pipe-filter-ii.c: New file.
21853         * lib/pipe-filter-aux.h: New file.
21854         * modules/pipe-filter-ii: New file.
21855
21856 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21857
21858         * lib/gc-libgcrypt.c: Change copyright to FSF.
21859         * lib/gc-gnulib.c: Likewise.
21860
21861 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
21862
21863         * lib/gethostname.c: Include limits.h.
21864
21865 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21866             Bruno Haible  <bruno@clisp.org>
21867
21868         Ensure HOST_NAME_MAX as part of the gethostname module.
21869         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
21870         define also HOST_NAME_MAX.
21871         * tests/test-gethostname.c: Include <limits.h>.
21872         (main): Check also HOST_NAME_MAX.
21873         * doc/posix-headers/limits.texi: Document the mingw problem.
21874
21875 2009-08-02  Bruno Haible  <bruno@clisp.org>
21876
21877         * lib/gethostname.c (gethostname): Fix handling of large len argument.
21878         Add comments.
21879
21880 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21881
21882         * lib/gethostname.c: Add Windows wrapper.
21883         * m4/gethostname.m4: Look for gethostname in -lws2_32.
21884         * modules/gethostname: Depend on sys_socket & errno, for also
21885         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
21886         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
21887
21888 2009-07-31  Jim Meyering  <meyering@redhat.com>
21889
21890         getloadavg: fix symbol name in comment
21891         * lib/getloadavg.c: Correct a typo I introduced when adding
21892         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
21893         Matt Kraai spotted the problem.
21894
21895 2009-07-29  Matt Kraai  <mkraai@beckman.com>
21896
21897         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
21898         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
21899         code also if ! defined N_NAME_POINTER.
21900         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
21901         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
21902         but the n_name member is a 12-byte array.
21903
21904 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
21905
21906         update-copyright: generalize comment handling
21907         * build-aux/update-copyright: Handle copyright statements
21908         within more comment styles.
21909         Document usage.
21910         Report any file with an external copyright holder or parse failure.
21911
21912 2009-07-29  Jim Meyering  <meyering@redhat.com>
21913
21914         mktime: correct setting of REPLACE_MKTIME
21915         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
21916
21917         update-copyright: new module
21918         * modules/update-copyright: New file.
21919         * build-aux/update-copyright: New file.
21920         * MODULES.html.sh (maint+release support): Add update-copyright.
21921
21922 2009-07-27  Bruno Haible  <bruno@clisp.org>
21923
21924         Fix compilation error when <ctime> is used and mktime is replaced.
21925         * lib/time.in.h (mktime): New declaration.
21926         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
21927         REPLACE_MKTIME instead of defining mktime in config.h.
21928         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
21929         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
21930         Reported by Ross McFarland <rwmcfa1@neces.com>.
21931
21932 2009-07-27  Bruno Haible  <bruno@clisp.org>
21933
21934         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
21935         Reported by Matt Kraai <mkraai@beckman.com>.
21936
21937 2009-07-25  Jim Meyering  <meyering@redhat.com>
21938
21939         maint.mk: avoid warnings about missing files
21940         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
21941         diagnostic when .prev-version does not exist.
21942         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
21943         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
21944         nonexistent cfg.mk.
21945         Suggestions from Simon Josefsson.
21946
21947 2009-07-25  Bruno Haible  <bruno@clisp.org>
21948
21949         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
21950         defined as macros. Needed on QNX 6.4.1.
21951         Reported by Matt Kraai <mkraai@beckman.com>.
21952
21953 2009-07-23  Jim Meyering  <meyering@redhat.com>
21954
21955         maint.mk: invoke "make dist" with a working value of XZ_OPT
21956         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
21957
21958 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
21959
21960         Make fseeko.c compile on QNX.
21961         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
21962
21963 2009-07-22  Peter Simons  <simons@cryp.to>
21964
21965         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
21966         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
21967         * lib/md4.h: Likewise.
21968         * lib/md5.h: Likewise.
21969         * lib/sha1.h: Likewise.
21970         * lib/sha256.h: Likewise.
21971         * lib/sha512.h: Likewise.
21972
21973         tests-sha1: don't assign literal string to 'char *' variable
21974         * tests/test-sha1.c (main): Declare locals with "const" to match
21975         attributes of the right hand side.
21976
21977 2009-07-21  Eric Blake  <ebb9@byu.net>
21978
21979         dup2: fix more mingw problems
21980         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
21981         fd to itself.
21982         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21983         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
21984         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
21985         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
21986         care of mingw bugs.
21987
21988 2009-07-21  Jim Meyering  <meyering@redhat.com>
21989
21990         vc-list-files: avoid failure when /bin/sh is dash
21991         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
21992         On some Debian based systems, /bin/sh is a symlink to dash, and running
21993         this command would omit the "/" following each 'tests' prefix:
21994           dash -x build-aux/vc-list-files -C . tests
21995         That is because bash and dash work differently:
21996           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
21997           bash ok
21998           dash odd
21999
22000 2009-07-21  Eric Blake  <ebb9@byu.net>
22001
22002         dup2-tests: test previous patch
22003         * modules/dup2-tests: New file.
22004         * tests/test-dup2.c: Likewise.
22005         * tests/test-open.c (main): Avoid unspecified behavior.
22006         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22007         test.
22008
22009         dup2: work around mingw and cygwin 1.5 bug
22010         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22012         * modules/unistd (Makefile.am): Substitute it.
22013         * lib/unistd.in.h (dup2): Declare the replacement.
22014         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22015         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22016         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22017         * modules/execute (Depends-on): Add dup2.
22018         * modules/fseterr (Depends-on): Likewise.
22019         * modules/pipe (Depends-on): Likewise.
22020         * modules/posix_spawn-internal (Depends-on): Likewise.
22021
22022 2009-07-21  Bruno Haible  <bruno@clisp.org>
22023
22024         * modules/.gitattributes: New file.
22025
22026 2009-07-20  Bruno Haible  <bruno@clisp.org>
22027
22028         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22029         (main): Use it.
22030
22031 2009-07-20  Eric Blake  <ebb9@byu.net>
22032
22033         test-pipe: make a bit more robust.
22034         * tests/test-pipe.c (myerr): Allow error messages regardless of
22035         what we do to stderr.
22036         (test_pipe): Rearrange to avoid deadlock.
22037         (child_main): Try a larger read, to ensure we avoided deadlock.
22038         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22039         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22040         if misused.
22041
22042 2009-07-19  Jim Meyering  <meyering@redhat.com>
22043
22044         fts: avoid false-positive cycle-detection
22045         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
22046         for each new command line argument.
22047
22048 2009-07-19  Bruno Haible  <bruno@clisp.org>
22049
22050         Fix build error on mingw with the modules sys_select and unistd.
22051         * modules/acl-tests (Depends-on): Add close.
22052         * modules/binary-io-tests (Depends-on): Likewise.
22053         * modules/closein-tests (Depends-on): Likewise.
22054         * modules/flock-tests (Depends-on): Likewise.
22055         * modules/fsync-tests (Depends-on): Likewise.
22056         * modules/lseek-tests (Depends-on): Likewise.
22057         * modules/pipe-tests (Depends-on): Likewise.
22058         * modules/posix_spawn-tests (Depends-on): Likewise.
22059         * modules/posix_spawnp-tests (Depends-on): Likewise.
22060         * modules/stat-time-tests (Depends-on): Likewise.
22061         * modules/yesno-tests (Depends-on): Likewise.
22062
22063 2009-07-19  Bruno Haible  <bruno@clisp.org>
22064
22065         Unify conditionals.
22066         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22067         macros, not at the compiler macros.
22068         * lib/pipe.c: Likewise.
22069         * lib/execute.c: Likewise.
22070         * lib/spawni.c: Likewise.
22071
22072 2009-07-19  Bruno Haible  <bruno@clisp.org>
22073
22074         Fix handling of closed stdin/stdout/stderr on mingw.
22075         * lib/w32spawn.h: Include unistd.h.
22076         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22077         file descriptor with O_NOINHERIT flag.
22078         (fd_safer_noinherit): New function, based on fd-safer.c.
22079         (dup_safer_noinherit): New function, based on dup-safer.c.
22080         (undup_safer_noinherit): New function.
22081         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22082         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22083         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22084         instead of fd_safer.
22085         * tests/test-pipe.c: Include <windows.h>.
22086         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22087
22088         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22089         from main.
22090         (test_pipe): Pass an extra argument for disambiguation.
22091         (main): Invoke parent_main or child_main.
22092
22093         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22094         consistently.
22095
22096 2009-07-18  Eric Blake  <ebb9@byu.net>
22097
22098         test-pipe: fix mingw build
22099         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22100
22101 2009-07-18  Bruno Haible  <bruno@clisp.org>
22102
22103         * modules/pipe-tests (Makefile.am): Fix typo.
22104
22105 2009-07-18  Eric Blake  <ebb9@byu.net>
22106
22107         error: fix mingw build
22108         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22109         Reported by Bruno Haible.
22110
22111         error: avoid undefined use of stdout
22112         * lib/error.c (error, error_at_line): Check that fd 1 is open
22113         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22114         is handling faults and the close_stdout module wants to report the
22115         detection of closed stdout as an error.
22116
22117 2009-07-17  Eric Blake  <ebb9@byu.net>
22118
22119         pipe: be robust in face of closed fds
22120         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22121         should cause child to misbehave.
22122         * modules/pipe-tests: New module.
22123         * tests/test-pipe.c: New file.
22124         * tests/test-pipe.sh: New file.
22125         Reported by Akim Demaille.
22126
22127 2009-07-14  Bruno Haible  <bruno@clisp.org>
22128
22129         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22130         Reported by anonymous kc.
22131
22132 2009-07-07  Jim Meyering  <meyering@redhat.com>
22133
22134         maint.mk: don't look for translatable strings in *.m4 or *.mk
22135         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22136         when searching for translatable strings.
22137
22138 2009-07-05  Jim Meyering  <meyering@redhat.com>
22139
22140         remove superfluous parentheses in STREQ definition
22141         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22142         * lib/getugroups.c (STREQ): Likewise.
22143         * lib/fnmatch.c (STREQ): Likewise.
22144         Spotted by Bruno Haible.
22145
22146 2009-07-04  Jim Meyering  <meyering@redhat.com>
22147
22148         argv-iter: new module
22149         * MODULES.html.sh: Add argv-iter.
22150         * lib/argv-iter.c, lib/argv-iter.h: New files.
22151         * modules/argv-iter: New file.
22152         * modules/argv-iter-tests: New file.
22153         * tests/test-argv-iter.c: Test it.
22154
22155 2009-07-04  Bruno Haible  <bruno@clisp.org>
22156
22157         Fix assertion.
22158         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22159         contains more exact copies of a given entry than file2, leave the extra
22160         copies unpaired rather than aborting.
22161         Reported by Eric Blake.
22162
22163 2009-07-02  Bruno Haible  <bruno@clisp.org>
22164
22165         Speedup git-merge-changelog for git cherry-pick.
22166         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22167         (entries_mapping_get): New function, extracted from compute_mapping.
22168         (entries_mapping_reverse_get): New function.
22169         (compute_mapping): Add a 'full' argument. Return the result in a
22170         'struct entries_mapping'.
22171         (main): Update. Access the mappings through entries_mapping_get.
22172         Reported by Eric Blake.
22173
22174 2009-07-02  Bruno Haible  <bruno@clisp.org>
22175
22176         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22177         best_i.
22178
22179 2009-07-02  Bruno Haible  <bruno@clisp.org>
22180
22181         Speed up approximate search for matching ChangeLog entries.
22182         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22183         argument. Call fstrcmp_bounded instead of fstrcmp.
22184         (compute_mapping, try_split_merged_entry, main): Update callers.
22185
22186 2009-07-02  Bruno Haible  <bruno@clisp.org>
22187
22188         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22189
22190 2009-06-30  Bruno Haible  <bruno@clisp.org>
22191
22192         Reduce the number of uc_is_cased calls.
22193         * lib/unicase.h (casing_suffix_context_t): Add
22194         'first_char_except_ignorable' field.
22195         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22196         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22197         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22198         Update initializer.
22199         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22200         case-ignorable characters.
22201         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22202         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22203         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22204         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22205         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22206
22207 2009-06-30  Bruno Haible  <bruno@clisp.org>
22208
22209         Tests for module 'unicase/ignorable'.
22210         * modules/unicase/ignorable-tests: New file.
22211         * tests/unicase/test-ignorable.c: New file, generated by
22212         gen-uni-tables.
22213
22214         Tests for module 'unicase/cased'.
22215         * modules/unicase/cased-tests: New file.
22216         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22217         * tests/unicase/test-predicate-part1.h: New file, derived from
22218         tests/unictype/test-predicate-part1.h.
22219         * tests/unicase/test-predicate-part2.h: New file, same as
22220         tests/unictype/test-predicate-part2.h.
22221
22222         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22223         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22224         (output_casing_properties): New function.
22225         (main): Call it.
22226         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22227         * lib/unicase/cased.c: Include unictype/bitmap.h.
22228         (uc_is_cased): Define through a bitmap lookup.
22229         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22230         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22231         (uc_is_case_ignorable): Define through a bitmap lookup.
22232         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22233         lib/unictype/bitmap.h.
22234         (Depends-on): Add inline. Clean up.
22235         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22236         lib/unictype/bitmap.h.
22237         (Depends-on): Add inline. Clean up.
22238         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22239         recognition.
22240         * tests/unicase/test-u16-tolower.c (main): Likewise.
22241         * tests/unicase/test-u32-tolower.c (main): Likewise.
22242
22243 2009-06-30  Bruno Haible  <bruno@clisp.org>
22244
22245         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22246         * lib/unicase/u16-casemap.c: Likewise.
22247         * lib/unicase/u32-casemap.c: Likewise.
22248
22249 2009-06-29  Bruno Haible  <bruno@clisp.org>
22250
22251         Define u32_casefold as a wrapper around u32_ct_casefold.
22252         * lib/unicase/u32-casefold.c: Update.
22253         * modules/unicase/u32-casefold (Depends-on): Add
22254         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22255         unicase/empty-suffix-context. Clean up.
22256
22257         Define u16_casefold as a wrapper around u16_ct_casefold.
22258         * lib/unicase/u16-casefold.c: Update.
22259         * modules/unicase/u16-casefold (Depends-on): Add
22260         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22261         unicase/empty-suffix-context. Clean up.
22262
22263         Define u8_casefold as a wrapper around u8_ct_casefold.
22264         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22265         * lib/unicase/u8-casefold.c: Update.
22266         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22267         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22268
22269         Define u32_totitle as a wrapper around u32_ct_totitle.
22270         * lib/unicase/u32-totitle.c: Update.
22271         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22272         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22273
22274         Define u16_totitle as a wrapper around u16_ct_totitle.
22275         * lib/unicase/u16-totitle.c: Update.
22276         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22277         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22278
22279         Define u8_totitle as a wrapper around u8_ct_totitle.
22280         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22281         functions.
22282         (FUNC): Delegate to U_CT_TOTITLE.
22283         * lib/unicase/u8-totitle.c: Update.
22284         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22285         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22286
22287         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22288         invocation.
22289         * modules/unicase/u32-tolower (Depends-on): Add
22290         unicase/empty-prefix-context, unicase/empty-suffix-context.
22291
22292         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22293         invocation.
22294         * modules/unicase/u16-tolower (Depends-on): Add
22295         unicase/empty-prefix-context, unicase/empty-suffix-context.
22296
22297         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22298         * modules/unicase/u8-tolower (Depends-on): Add
22299         unicase/empty-prefix-context, unicase/empty-suffix-context.
22300
22301         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22302         invocation.
22303         * modules/unicase/u32-toupper (Depends-on): Add
22304         unicase/empty-prefix-context, unicase/empty-suffix-context.
22305
22306         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22307         invocation.
22308         * modules/unicase/u16-toupper (Depends-on): Add
22309         unicase/empty-prefix-context, unicase/empty-suffix-context.
22310
22311         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22312         * modules/unicase/u8-toupper (Depends-on): Add
22313         unicase/empty-prefix-context, unicase/empty-suffix-context.
22314
22315         New module 'unicase/u32-ct-casefold'.
22316         * lib/unicase/u32-ct-casefold.c: New file.
22317         * modules/unicase/u32-ct-casefold: New file.
22318
22319         New module 'unicase/u16-ct-casefold'.
22320         * lib/unicase/u16-ct-casefold.c: New file.
22321         * modules/unicase/u16-ct-casefold: New file.
22322
22323         New module 'unicase/u8-ct-casefold'.
22324         * lib/unicase/u8-ct-casefold.c: New file.
22325         * lib/unicase/u-ct-casefold.h: New file, derived from
22326         lib/unicase/u-casefold.h.
22327         * modules/unicase/u8-ct-casefold: New file.
22328
22329         New module 'unicase/u32-ct-totitle'.
22330         * lib/unicase/u32-ct-totitle.c: New file.
22331         * modules/unicase/u32-ct-totitle: New file.
22332
22333         New module 'unicase/u16-ct-totitle'.
22334         * lib/unicase/u16-ct-totitle.c: New file.
22335         * modules/unicase/u16-ct-totitle: New file.
22336
22337         New module 'unicase/u8-ct-totitle'.
22338         * lib/unicase/u8-ct-totitle.c: New file.
22339         * lib/unicase/u-ct-totitle.h: New file, derived from
22340         lib/unicase/u-totitle.h.
22341         * modules/unicase/u8-ct-totitle: New file.
22342
22343         New module 'unicase/u32-ct-tolower'.
22344         * lib/unicase/u32-ct-tolower.c: New file.
22345         * modules/unicase/u32-ct-tolower: New file.
22346
22347         New module 'unicase/u16-ct-tolower'.
22348         * lib/unicase/u16-ct-tolower.c: New file.
22349         * modules/unicase/u16-ct-tolower: New file.
22350
22351         New module 'unicase/u8-ct-tolower'.
22352         * lib/unicase/u8-ct-tolower.c: New file.
22353         * modules/unicase/u8-ct-tolower: New file.
22354
22355         New module 'unicase/u32-ct-toupper'.
22356         * lib/unicase/u32-ct-toupper.c: New file.
22357         * modules/unicase/u32-ct-toupper: New file.
22358
22359         New module 'unicase/u16-ct-toupper'.
22360         * lib/unicase/u16-ct-toupper.c: New file.
22361         * modules/unicase/u16-ct-toupper: New file.
22362
22363         New module 'unicase/u8-ct-toupper'.
22364         * lib/unicase/u8-ct-toupper.c: New file.
22365         * modules/unicase/u8-ct-toupper: New file.
22366
22367         Add context arguments to u*_casemap functions.
22368         * lib/unicase/unicasemap.h: Include unicase.h.
22369         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22370         suffix_context arguments.
22371         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22372         functions.
22373         (FUNC): Add prefix_context and suffix_context arguments. Use
22374         uc_is_cased and uc_is_case_ignorable.
22375         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22376         * lib/unicase/u16-casemap.c: Likewise.
22377         * lib/unicase/u32-casemap.c: Likewise.
22378         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22379         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22380         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
22381         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22382         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
22383         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22384
22385         New module 'unicase/u32-suffix-context'.
22386         * lib/unicase/u32-suffix-context.c: New file.
22387         * modules/unicase/u32-suffix-context: New file.
22388
22389         New module 'unicase/u16-suffix-context'.
22390         * lib/unicase/u16-suffix-context.c: New file.
22391         * modules/unicase/u16-suffix-context: New file.
22392
22393         New module 'unicase/u8-suffix-context'.
22394         * lib/unicase/u8-suffix-context.c: New file.
22395         * lib/unicase/u-suffix-context.h: New file.
22396         * modules/unicase/u8-suffix-context: New file.
22397
22398         New module 'unicase/empty-suffix-context'.
22399         * lib/unicase/empty-suffix-context.c: New file.
22400         * modules/unicase/empty-suffix-context: New file.
22401
22402         New module 'unicase/u32-prefix-context'.
22403         * lib/unicase/u32-prefix-context.c: New file.
22404         * modules/unicase/u32-prefix-context: New file.
22405
22406         New module 'unicase/u16-prefix-context'.
22407         * lib/unicase/u16-prefix-context.c: New file.
22408         * modules/unicase/u16-prefix-context: New file.
22409
22410         New module 'unicase/u8-prefix-context'.
22411         * lib/unicase/u8-prefix-context.c: New file.
22412         * lib/unicase/u-prefix-context.h: New file.
22413         * lib/unicase/context.h: New file.
22414         * modules/unicase/u8-prefix-context: New file.
22415
22416         New module 'unicase/empty-prefix-context'.
22417         * lib/unicase/empty-prefix-context.c: New file.
22418         * modules/unicase/empty-prefix-context: New file.
22419
22420         New module 'unicase/ignorable'.
22421         * lib/unicase/ignorable.c: New file.
22422         * modules/unicase/ignorable: New file.
22423
22424         New module 'unicase/cased'.
22425         * lib/unicase/caseprop.h: New file.
22426         * lib/unicase/cased.c: New file.
22427         * modules/unicase/cased: New file.
22428
22429         New functions for case mapping of substrings.
22430         * lib/unicase.h (casing_prefix_context_t): New type.
22431         (unicase_empty_prefix_context): New variable.
22432         (u8_casing_prefix_context, u16_casing_prefix_context,
22433         u32_casing_prefix_context, u8_casing_prefixes_context,
22434         u16_casing_prefixes_context, u32_casing_prefixes_context): New
22435         declarations.
22436         (casing_suffix_context_t): New type.
22437         (unicase_empty_suffix_context): New variable.
22438         (u8_casing_suffix_context, u16_casing_suffix_context,
22439         u32_casing_suffix_context, u8_casing_suffixes_context,
22440         u16_casing_suffixes_context, u32_casing_suffixes_context,
22441         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
22442         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
22443         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
22444         declarations.
22445
22446 2009-06-28  Jim Meyering  <meyering@redhat.com>
22447
22448         boostrap: indent only with spaces
22449         * build-aux/bootstrap: Indent only with spaces, never TABs.
22450
22451         bootstrap: split long lines
22452         * build-aux/bootstrap: Keep line length < 80.
22453
22454         bootstrap: sync from coreutils
22455         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
22456         just as autoreconf does.  Verify a list of prerequisite
22457         package-name,version-number pairs if defined in bootstrap.conf.
22458         Refer to README-prereq, if prerequisites are not satisfied.
22459
22460 2009-06-27  Eric Blake  <ebb9@byu.net>
22461
22462         tests: add test for bogus NULL definition
22463         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
22464         * tests/test-stdlib.c: Likewise.
22465         * tests/test-string.c: Likewise.
22466         * tests/test-locale.c: Likewise.
22467         * tests/test-unistd.c: Likewise.
22468         * modules/stdio-tests (Depends-on): Add verify.
22469         * modules/stdlib-tests (Depends-on): Likewise.
22470         * modules/string-tests (Depends-on): Likewise.
22471         * modules/locale-tests (Depends-on): Likewise.
22472         * modules/unistd-tests (Depends-on): Likewise.
22473
22474 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
22475
22476         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
22477         self-explaining comment.
22478         * m4/selinux-selinux-h: Update serial.
22479         (gl_LIBSELINUX): New macro, adding a warning for missing development
22480         packages to code extracted from...
22481         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
22482         Add warning for missing development packages here, too.
22483
22484 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
22485
22486         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
22487
22488 2009-06-25  Eric Blake  <ebb9@byu.net>
22489
22490         version-etc: fix regression
22491         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
22492         gcc.
22493         (version_etc): Use it, to catch bugs with trailing NULL.
22494         * lib/version-etc.c (version_etc_arn): Delete unused argument.
22495         (version_etc_va): Fix logic bug.
22496         * modules/version-etc-tests: Add test.
22497         * tests/test-version-etc.c: New file.
22498         * tests/test-version-etc.sh: Likewise.
22499
22500 2009-06-25  Sam Steingold  <sds@gnu.org>
22501
22502         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
22503         mbtowc declaration.
22504
22505 2009-06-25  Eric Blake  <ebb9@byu.net>
22506
22507         fpurge: migrate into <stdio.h>
22508         * lib/fpurge.h: Delete...
22509         * lib/stdio.in.h (fpurge): ...and declare here, instead.
22510         * lib/fpurge.c (fpurge): Change declaring header.
22511         * modules/fpurge (Files): Drop deleted file.
22512         (Depends-on): Add stdio.
22513         (configure.ac): Set witness.
22514         * modules/stdio (Makefile.am): Support fpurge macros.
22515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22516         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
22517         * lib/fflush.c: Update client.
22518         * tests/test-fpurge.c: Likewise.
22519         * NEWS: Mention the change.
22520
22521 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22522
22523         * lib/argp-version-etc.c (program_authors): Add const
22524         qualifier.
22525         * lib/version-etc.c: Fix typos in the comments.
22526         * modules/argp-version-etc: Depends on version-etc.
22527
22528 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22529
22530         argp-version-etc: new module.
22531
22532         * lib/argp-version-etc.c: New file.
22533         * lib/argp-version-etc.h: New file.
22534         * modules/argp-version-etc: New file.
22535         * modules/argp-version-etc-tests: New file.
22536         * tests/test-argp-version-etc.c: New test.
22537         * tests/test-argp-version-etc-1.sh: New test.
22538
22539 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22540
22541         Provide additional interfaces and documentation for version-etc
22542         module.
22543
22544         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
22545         interfaces.
22546         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
22547         prototypes.
22548
22549 2009-06-24  Bruno Haible  <bruno@clisp.org>
22550
22551         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
22552         HAVE_LIB${NAME} macro.
22553         Reported by Sam Steingold <sds@gnu.org>.
22554
22555 2009-06-23  Simon Josefsson  <simon@josefsson.org>
22556
22557         * modules/hash-tests (test_hash_LDADD): Link to libintl when
22558         needed.
22559
22560 2009-06-21  Bruno Haible  <bruno@clisp.org>
22561
22562         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
22563         work.
22564         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
22565         together with LIB${NAME}, LTLIB${NAME}.
22566         Reported by Sam Steingold <sds@gnu.org>.
22567
22568 2009-06-20  Jim Meyering  <meyering@redhat.com>
22569
22570         tests: make sc_require_test_exit_idiom more generic
22571         * top/maint.mk (Exit_witness_file): New overridable variable.
22572         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
22573         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
22574
22575 2009-06-19  Jim Meyering  <meyering@redhat.com>
22576
22577         hash: reverse order of src/dst parameters in an internal interface
22578         * lib/hash.c (transfer_entries): Reverse order of parameters to
22579         put DST before SRC.  Adjust callers.
22580
22581         tests: test-hash: avoid wholesale duplication
22582         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
22583         Instead, use a loop and add a single conditional.
22584
22585         tests: test-hash: allow seed selection via a command line argument
22586         * tests/test-hash.c (get_seed): New function.
22587         (main): Use it.
22588
22589 2009-06-19  Eric Blake  <ebb9@byu.net>
22590
22591         hash: avoid memory leak on allocation failure
22592         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
22593         failure.  Factor repeated algorithm...
22594         (transfer_entries): ...into new helper routine.
22595         (hash_delete): React to hash_rehash return value.
22596
22597         hash: reduce memory pressure in hash_rehash no-op case
22598         * lib/hash.c (next_prime): Avoid overflow.
22599         (hash_initialize): Factor bucket size computation...
22600         (compute_bucket_size): ...into new helper function.
22601         (hash_rehash): Use new function and open coding to reduce memory
22602         pressure, and avoid a memory leak in USE_OBSTACK code.
22603         Reported by Jim Meyering.
22604
22605 2009-06-18  Eric Blake  <ebb9@byu.net>
22606
22607         hash: make rotation more obvious
22608         * modules/hash (Depends-on): Add bitrotate and stdint.
22609         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
22610         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
22611         (SIZE_MAX): Rely on headers for definition.
22612         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
22613         (raw_hasher): Use rotr_sz.
22614         Suggested by Jim Meyering.
22615
22616         hash: fix memory leak in last patch
22617         * lib/hash.c (hash_rehash): Avoid memory leak.
22618
22619         hash: avoid no-op rehashing
22620         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
22621
22622         hash: provide default callback functions
22623         * lib/hash.c (raw_hasher, raw_comparator): New functions.
22624         (hash_initialize): Use them as defaults.
22625         * tests/test-hash.c (main): Test this.
22626
22627         hash: minor optimization
22628         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
22629         when possible.
22630         (hash_initialize): Document this promise.
22631         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
22632         * tests/test-hash.c (hash_compare_strings): Test this.
22633
22634 2009-06-18  Bruno Haible  <bruno@clisp.org>
22635
22636         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
22637         going to be replaced anyway.
22638
22639 2009-06-18  Bruno Haible  <bruno@clisp.org>
22640
22641         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
22642         in one place.
22643         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
22644         be replaced anyway.
22645
22646 2009-06-18  Eric Blake  <ebb9@byu.net>
22647
22648         hash: check for resize before insertion
22649         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
22650         threshold before insertion, so that a pathological hash_rehash
22651         that fills every bucket can still trigger another rehash.
22652
22653 2009-06-18  Jim Meyering  <meyering@redhat.com>
22654
22655         hash-tests: add a loop around the small tests
22656         * tests/test-hash.c (main): Repeat small tests with selected
22657         small initial table sizes.
22658
22659 2009-06-17  Eric Blake  <ebb9@byu.net>
22660
22661         hash: minor cleanups
22662         * lib/hash.h (hash_entry): Make opaque, by moving...
22663         * lib/hash.c (hash_entry): ...here.
22664         (hash_insert): Clarify restrictions on what can be inserted.
22665         (hash_get_next): Clarify when it is safe to remove an element
22666         during traversal.
22667         (check_tuning): Skip verification when tuning is known safe.
22668         (hash_initialize): Clarify restrictions on tuning.
22669
22670 2009-06-17  Jim Meyering  <jim@meyering.net>
22671         and Eric Blake  <ebb9@byu.net>
22672
22673         hash-tests: new module
22674         * modules/hash-tests: New file.
22675         * tests/test-hash.c: New file.
22676
22677 2009-06-17  Eric Blake  <ebb9@byu.net>
22678
22679         strstr-simple: document new module
22680         * MODULES.html.sh: Document new module.
22681
22682         strstr, strcasestr: replace on platforms with broken memchr
22683         * modules/strstr: Split into...
22684         * modules/strstr-simple: ...new module that does not care about
22685         performance, but does care about glibc bug.
22686         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
22687         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
22688         if platform memchr is broken, per Debian bug 521737.
22689         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
22690         memchr.
22691         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
22692         * doc/posix-functions/strstr.texi (strstr): Document the fix.
22693         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22694         * modules/mountlist (Depends-on): Add strstr-simple.
22695         * modules/gen-uni-tables (Depends-on): Likewise.
22696         * modules/argz (Depends-on): Add strstr.
22697
22698 2009-06-17  Bruno Haible  <bruno@clisp.org>
22699
22700         * modules/posix_spawn-internal (Depends-on): Add errno.
22701
22702 2009-06-17  Bruno Haible  <bruno@clisp.org>
22703
22704         Define missing ESTALE on Interix 3.5.
22705         * lib/errno.in.h (ESTALE): Assign a value if missing.
22706         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
22707         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
22708         missing.
22709         * doc/posix-headers/errno.texi: Mention the Interix bug.
22710         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
22711
22712 2009-06-15  Eric Blake  <ebb9@byu.net>
22713
22714         memchr, memchr2: add valgrind exception
22715         * lib/memchr.valgrind: New file.
22716         * lib/memchr2.valgrind: New file.
22717         * modules/memchr (Files): Distribute valgrind file.
22718         * modules/memchr2 (Files): Likewise.
22719
22720         docs: memchr is no longer obsolete
22721         * MODULES.html.sh: Move memchr from obsolete to string.h section.
22722         * lib/string.in.h (memchr): Simplify logic.
22723
22724 2009-06-14  Jim Meyering  <meyering@redhat.com>
22725
22726         link-follow: fix the "checking..." message to not mention trailing slash
22727         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
22728         never considered trailing slashes.
22729
22730 2009-06-14  Bruno Haible  <bruno@clisp.org>
22731
22732         * m4/memchr.m4: Mention also the bug on IA-64.
22733         * doc/posix-functions/memchr.texi: Likewise.
22734
22735 2009-06-12  Eric Blake  <ebb9@byu.net>
22736
22737         memchr: detect broken x86_64 and alpha implementations
22738         * modules/memchr-tests (Depends-on): Move mmap detection...
22739         * modules/memchr (Depends-on): ...here.
22740         (configure.ac): Set indicator.
22741         * lib/string.in.h (memchr): Declare replacement.
22742         * modules/string (Makefile.am): Trigger replacement.
22743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
22744         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
22745         bugs.
22746         * doc/posix-functions/memchr.texi (memchr): Document the bug.
22747         * modules/getpagesize (License): Relax license.
22748
22749 2009-06-11  Bruno Haible  <bruno@clisp.org>
22750
22751         * lib/idpriv.h: Add more references.
22752
22753 2009-06-08  Bruno Haible  <bruno@clisp.org>
22754
22755         Tests for module 'idpriv-droptemp'.
22756         * modules/idpriv-droptemp-tests: New file.
22757         * tests/test-idpriv-droptemp.sh: New file.
22758         * tests/test-idpriv-droptemp.su.sh: New file.
22759         * tests/test-idpriv-droptemp.c: New file.
22760
22761         New module 'idpriv-droptemp'.
22762         * lib/idpriv-droptemp.c: New file.
22763         * modules/idpriv-droptemp: New file.
22764
22765 2009-06-08  Bruno Haible  <bruno@clisp.org>
22766
22767         Tests for module 'idpriv-drop'.
22768         * modules/idpriv-drop-tests: New file.
22769         * tests/test-idpriv-drop.sh: New file.
22770         * tests/test-idpriv-drop.su.sh: New file.
22771         * tests/test-idpriv-drop.c: New file.
22772
22773         New module 'idpriv-drop'.
22774         * lib/idpriv.h: New file.
22775         * lib-idpriv-drop.c: New file.
22776         * m4/idpriv.m4: New file.
22777         * modules/idpriv-drop: New file.
22778
22779 2009-06-08  Bruno Haible  <bruno@clisp.org>
22780
22781         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
22782         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22783         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22784         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22785         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22786         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22787         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22788
22789 2009-06-08  Eric Blake  <ebb9@byu.net>
22790
22791         test-strstr: use memory fence, when possible
22792         * tests/test-strstr.c (main): Use memory fence, in order to be
22793         more likely to trigger Debian bug 521737.
22794         * modules/strstr-tests (Files): Pull in additional files.
22795
22796         memchr: no longer obsolete, for wider field testing
22797         * modules/memchr (Status, Notice): Delete, this module is no
22798         longer obsolete.
22799         * modules/vasnprintf (Depends-on): Add memchr.
22800
22801 2009-06-07  Jim Meyering  <meyering@redhat.com>
22802
22803         hash: declare some functions with the warn_unused_result attribute
22804         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
22805
22806 2009-06-07  Bruno Haible  <bruno@clisp.org>
22807
22808         * tests/test-alignof.c: Don't test int64_t if it does not exist.
22809         Reported by Eric Blake.
22810
22811 2009-06-06  Eric Blake  <ebb9@byu.net>
22812
22813         test-alignof: fix typo with long double
22814         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
22815         compiler error.
22816
22817 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
22818
22819         Escape non-texinfo { and }s.
22820         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
22821         markup error.
22822
22823 2009-06-04  Jim Meyering  <meyering@redhat.com>
22824
22825         gitlog-to-changelog: don't infloop on an empty commit log
22826         * build-aux/gitlog-to-changelog: Warn about an empty log message.
22827         Reported by Boris Petersen <transacid@centerim.org>.
22828
22829 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
22830
22831         version-etc: extend for packagers
22832         Add three new configure options, intended for packagers:
22833           --with-packager="packager name"
22834           --with-packager-version="packager-specific version"
22835           --with-packager-bug-reports="packager bug reporting"
22836         An example with coreutils:
22837           $ ./configure \
22838             --with-packager=Gentoo \
22839             --with-packager-bug-report=http://bugs.gentoo.org/ \
22840             --with-packager-version="patchset 1.6"
22841           $ ./src/ls --version | head -n2
22842           ls (GNU coreutils) 7.1-dirty
22843           Packaged by Gentoo (patchset 1.6)
22844         Note that the bug reporting info via --help doesn't show up because
22845         coreutils uses its own custom emit_bug_reporting_address() implementation
22846         in src/system.h.  If it didn't, it'd look like:
22847           $ ./src/ls --help | tail -n4
22848           Report bugs to <bug-coreutils@gnu.org>.
22849           Report Gentoo bugs to <http://bugs.gentoo.org/>.
22850           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
22851           General help using GNU software: <http://www.gnu.org/gethelp/>.
22852         * lib/version-etc.c: Print new information, if provided.
22853         * m4/version-etc.m4: New file.
22854         * modules/version-etc (Files): Add m4/version-etc.m4.
22855         (configure.ac): Add gl_VERSION_ETC.
22856
22857 2009-05-31  Bruno Haible  <bruno@clisp.org>
22858
22859         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
22860         and 'int64_t'.
22861         * modules/alignof-tests (Dependencies): Add stdint.
22862         Reported by Eric Blake.
22863
22864 2009-05-31  Bruno Haible  <bruno@clisp.org>
22865
22866         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
22867         restriction due to compiler bugs.
22868         Reported by Eric Blake.
22869
22870 2009-05-31  Simon Josefsson  <simon@josefsson.org>
22871             Bruno Haible  <bruno@clisp.org>
22872
22873         Fix test-alignof failure.
22874         * lib/alignof.h (alignof_slot): New macro.
22875         (alignof_type): New macro, with the same semantics as the previous
22876         'alignof'.
22877         (alignof): Alias to alignof_slot.
22878         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
22879         check that the results are usable as constant expressions.
22880
22881 2009-05-31  Bruno Haible  <bruno@clisp.org>
22882
22883         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
22884         * tests/test-memchr.c (main): Check that memchr does not read past the
22885         first occurrence of the byte.
22886         * tests/test-strstr.c (main): Update comment.
22887         Suggested by Eric Blake.
22888
22889 2009-05-30  Bruno Haible  <bruno@clisp.org>
22890
22891         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
22892         detail how to use dumpbin.
22893         Reported by David Byron <dbyron@dbyron.com>.
22894
22895 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22896
22897         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
22898
22899 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22900
22901         * m4/manywarnings.m4: Add GCC 4.4 warnings.
22902
22903 2009-05-28  Bruno Haible  <bruno@clisp.org>
22904
22905         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
22906         build-aux/ files.
22907
22908 2009-05-28  Simon Josefsson  <simon@josefsson.org>
22909
22910         * gnulib-tool (func_import): Transform license on build-aux/ files too.
22911
22912 2009-05-27  Simon Josefsson  <simon@josefsson.org>
22913
22914         * gnulib-tool (sed_transform_main_lib_file)
22915         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
22916         regexps.
22917
22918 2009-05-26  Simon Josefsson  <simon@josefsson.org>
22919
22920         * tests/test-strstr.c: Add another self-test.
22921         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
22922         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
22923
22924 2009-05-23  Bruno Haible  <bruno@clisp.org>
22925
22926         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
22927         change.
22928
22929 2009-05-21  Bruno Haible  <bruno@clisp.org>
22930
22931         Simplify use of mode_t varargs.
22932         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
22933         uses 'mode_t' or 'int'.
22934         * lib/openat.c (openat): Likewise.
22935         * lib/open-safer.c (open_safer): Likewise.
22936         * m4/mode_t.m4: New file.
22937         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
22938         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
22939         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
22940         * modules/open (Files): Add m4/mode_t.m4.
22941         * modules/openat (Files): Likewise.
22942         * modules/fcntl-safer (Files): Likewise.
22943         Suggested by Eric Blake.
22944
22945 2009-05-21  Pádraig Brady  <P@draigbrady.com>
22946
22947         * doc/glibc-functions/fallocate.texi: New file.
22948         * doc/gnulib.texi: Include it.
22949
22950 2009-05-21  Eric Blake  <ebb9@byu.net>
22951             Bruno Haible  <bruno@clisp.org>
22952
22953         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
22954         invocations.
22955         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22956
22957 2009-05-21  Eric Blake  <ebb9@byu.net>
22958             Bruno Haible  <bruno@clisp.org>
22959
22960         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
22961         include_next. Fix of 2008-11-20 commit.
22962         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
22963         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
22964         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
22965         NEXT_MATH_H.
22966         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
22967         instead of NEXT_MATH_H.
22968
22969 2009-05-21  Bruno Haible  <bruno@clisp.org>
22970
22971         Avoid redefinition warnings for SIZE_MAX.
22972         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
22973         Reported by Simon Josefsson.
22974
22975 2009-05-21  Bruno Haible  <bruno@clisp.org>
22976
22977         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
22978         AC_CACHE_VAL.
22979
22980 2009-05-20  Bruno Haible  <bruno@clisp.org>
22981
22982         Make zeroptr.h work on mingw.
22983         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
22984         mprotect.
22985         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
22986         * modules/memchr2-tests (configure.ac): Likewise.
22987         * modules/memcmp-tests (configure.ac): Likewise.
22988         * modules/memmem-tests (configure.ac): Likewise.
22989         * modules/memrchr-tests (configure.ac): Likewise.
22990         Reported by Simon Josefsson.
22991
22992 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22993
22994         * tests/test-glob.c: Include string.h for strcmp prototype.
22995
22996 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22997
22998         * modules/getdelim (Depends-on): Add explicit stdint, although it
22999         was implicitly already pulled in via realloc-posix.
23000         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23001
23002 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23003
23004         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23005         G. Christensen" <tgc@jupiterrise.com>.
23006         * m4/sys_socket_h.m4: Check for sa_family_t.
23007         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23008         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23009         * tests/test-sys_socket.c: Check that sa_family_t works.
23010
23011 2009-05-18  Eric Blake  <ebb9@byu.net>
23012
23013         maint.mk: allow gnulib_dir in VPATH build
23014         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23015
23016 2009-05-15  Jim Meyering  <meyering@redhat.com>
23017
23018         maint.mk: Give gnulib_dir a default definition.
23019         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23020         Thus, most packages no longer need to specify this variable in cfg.mk
23021
23022 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23023
23024         rename.m4: fix typos that would make non-mingw cross-configure fail
23025         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23026
23027 2009-05-13  Eric Blake  <ebb9@byu.net>
23028
23029         mmap-anon: avoid out-of-order autoconf expansion
23030         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23031         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23032         * modules/memchr-tests (Depends-on): Add extensions.
23033         * modules/memchr2-tests (Depends-on): Add extensions.
23034         * modules/memcmp-tests (Depends-on): Add extensions.
23035         * modules/memmem-tests (Depends-on): Add extensions.
23036         * modules/memrchr-tests (Depends-on): Add extensions.
23037
23038 2009-05-13  Bruno Haible  <bruno@clisp.org>
23039
23040         Make some tests ISO C 99 compliant.
23041         * tests/zerosize-ptr.h: New file.
23042         * tests/test-memchr.c: Include zerosize-ptr.h.
23043         (main): Use a zero-size object pointer instead of NULL.
23044         * tests/test-memchr2.c: Include zerosize-ptr.h.
23045         (main): Use a zero-size object pointer instead of NULL.
23046         * tests/test-memcmp.c: Include zerosize-ptr.h.
23047         (main): Use a zero-size object pointer instead of NULL.
23048         * tests/test-memmem.c: Include zerosize-ptr.h.
23049         (main): Use a zero-size object pointer instead of NULL.
23050         * tests/test-memrchr.c: Include zerosize-ptr.h.
23051         (main): Use a zero-size object pointer instead of NULL.
23052         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
23053         m4/mmap-anon.m4.
23054         (Depends-on): Add getpagesize.
23055         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23056         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
23057         m4/mmap-anon.m4.
23058         (Depends-on): Add getpagesize.
23059         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23060         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
23061         m4/mmap-anon.m4.
23062         (Depends-on): Add getpagesize.
23063         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23064         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23065         m4/mmap-anon.m4.
23066         (Depends-on): Add getpagesize.
23067         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23068         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23069         m4/mmap-anon.m4.
23070         (Depends-on): Add getpagesize.
23071         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23072
23073 2009-05-12  Bruno Haible  <bruno@clisp.org>
23074
23075         Tests for module 'alignof'.
23076         * modules/alignof-tests: New file.
23077         * tests/test-alignof.c: New file.
23078
23079 2009-05-12  Bruno Haible  <bruno@clisp.org>
23080
23081         Fix alignof macro.
23082         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23083         vendor compilers that are always correct.
23084
23085 2009-05-12  Bruno Haible  <bruno@clisp.org>
23086
23087         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23088         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23089         not whether its fully works.
23090
23091 2009-05-12  Bruno Haible  <bruno@clisp.org>
23092
23093         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23094
23095 2009-05-12  Jim Meyering  <meyering@redhat.com>
23096
23097         * top/maint.mk: Adjust backslash alignment.
23098
23099 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23100
23101         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23102
23103 2009-05-11  Eric Blake  <ebb9@byu.net>
23104
23105         argp: avoid undefined behavior
23106         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23107         macros.
23108
23109 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23110
23111         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23112         user.name to prevent git commit from complaining.
23113
23114 2009-05-10  Bruno Haible  <bruno@clisp.org>
23115
23116         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23117         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23118         it rewrites every file name only once.
23119         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23120
23121 2009-05-08  Bruno Haible  <bruno@clisp.org>
23122
23123         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23124         instead of 'max'.
23125
23126 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23127
23128         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23129         sockaddr_storage test.
23130
23131 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23132
23133         * modules/sys_socket (Makefile.am): Substitute
23134         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23135         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23136         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23137         * tests/test-sys_socket.c: Check sockaddr_storage.
23138
23139 2009-05-08  Bruno Haible  <bruno@clisp.org>
23140
23141         New module 'alignof'.
23142         * lib/alignof.h: New file.
23143         * modules/alignof: New file.
23144
23145 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23146             Bruno Haible  <bruno@clisp.org>
23147
23148         Fix test-file-has-acl on FreeBSD.
23149         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23150         mask is implicitly added.
23151         * tests/test-file-has-acl.c: Include <signal.h>.
23152         (main): Terminate the test after 5 seconds.
23153         * modules/acl-tests (configure.ac): Check for alarm function.
23154
23155 2009-05-04  Bruno Haible  <bruno@clisp.org>
23156
23157         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23158         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23159         * modules/errno (configure.ac): Drop AC_REQUIRE.
23160         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23161         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23162
23163 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23164
23165         * modules/glob-tests: New module.
23166         * tests/test-glob.c: Add.
23167
23168 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23169
23170         * modules/fnmatch-tests: New module.
23171         * tests/test-fnmatch.c: Add.
23172
23173 2009-05-04  Eric Blake  <ebb9@byu.net>
23174
23175         maint: make the new no-submodule-changes rule VPATH-safe
23176         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23177
23178 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23179             Bruno Haible  <bruno@clisp.org>
23180
23181         acl: Fix infinite loop on FreeBSD.
23182         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23183         of return value from acl_get_entry.
23184         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23185         Likewise.
23186
23187 2009-05-03  Bruno Haible  <bruno@clisp.org>
23188
23189         * lib/acl-internal.h (acl_entries): Clarify return value.
23190         * lib/acl_entries.c (acl_entries): Likewise.
23191
23192 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23193
23194         Bug fix in acl module.
23195         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23196
23197 2009-05-03  Bruno Haible  <bruno@clisp.org>
23198
23199         Create gperf-generated file in the source dir, not in the build dir.
23200         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23201         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23202         * modules/unicase/locale-language (unicase/locale-languages.h):
23203         Likewise.
23204         * modules/unicase/special-casing (unicase/special-casing-table.h):
23205         Likewise.
23206         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23207         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23208         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23209         Reported by Ralf Wildenhues.
23210
23211 2009-05-03  Bruno Haible  <bruno@clisp.org>
23212
23213         * modules/fnmatch (Description, configure.ac): Taken from
23214         fnmatch-posix.
23215         * modules/fnmatch-posix: Turn into a symbolic reference to the
23216         'fnmatch' module, and deprecate.
23217         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23218
23219 2009-05-03  Bruno Haible  <bruno@clisp.org>
23220
23221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23222         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23223         Reported by Ralf Wildenhues.
23224
23225 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23226
23227         * m4/fnmatch.m4: Fix fnmatch re-define.
23228
23229 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23230
23231         priv-set: new module and tests; adapt write-any-file
23232         * lib/priv-set.c: New file.
23233         * lib/priv-set.h: New file.
23234         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23235         * lib/write-any-file.c: Simplify by using priv-set module.
23236         * m4/priv-set.m4: New file.
23237         * modules/priv-set: New file.
23238         * modules/unlinkdir: Add dependency on priv-set module.
23239         * modules/write-any-file: Likewise.
23240
23241         Tests for module 'priv-set'.
23242         * modules/priv-set-tests: New file.
23243         * tests/test-priv-set.c: New file.
23244
23245 2009-05-03  Jim Meyering  <meyering@redhat.com>
23246             Bruno Haible  <bruno@clisp.org>
23247
23248         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23249         use the converted UTF-8 variant of the name instead.
23250
23251 2009-05-03  Jim Meyering  <meyering@redhat.com>
23252
23253         tests: tighten some getdate tests
23254         * tests/test-getdate.c (main): Tighten tests: require equality,
23255         not just greater than.  Set TZ envvar to UTC0.
23256
23257 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23258
23259         getdate: correctly interpret "next monday" when run on a Monday
23260         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23261         that e.g., "next tues" (when run on a tuesday) results in a date
23262         that is one week in the future, and not today's date.
23263         I.e., add a week when the wday is the same as the current one.
23264         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23265         and earlier by Martin Bernreuther and Jan Minář.
23266         * tests/test-getdate.c (main): Check that "next DAY" is always in
23267         the future and that "last DAY" is always in the past.
23268
23269 2009-05-02  Jim Meyering  <meyering@redhat.com>
23270
23271         build: ensure that a release build fails when a submodule is unclean
23272         * top/maint.mk (no-submodule-changes): New rule.
23273         (alpha beta major): Depend on it.
23274
23275 2009-05-02  Bruno Haible  <bruno@clisp.org>
23276
23277         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23278         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23279         shell variable gl_fnmatch_required to detect which variant is
23280         requested.
23281         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23282         gl_FUNC_FNMATCH_POSIX.
23283         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23284         exclude fnmatch-posix.
23285
23286 2009-05-02  Bruno Haible  <bruno@clisp.org>
23287
23288         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23289         * modules/mbsrtowcs (License): Change to LGPLv2+.
23290         * modules/strnlen1 (License): Likewise.
23291         Reported by Simon Josefsson.
23292
23293 2009-05-02  Bruno Haible  <bruno@clisp.org>
23294
23295         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23296         "cross".
23297         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23298         gnulib-tool was called with option --source-base=lib.
23299
23300 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23301
23302         Use automake *-local hooks without commands, for extensibility.
23303         * modules/localcharset (Makefile.am): Rename install-exec-local
23304         rule to install-exec-localcharset, and make it a prerequisite of
23305         install-exec-local.  Likewise, rename the uninstall-local rule to
23306         uninstall-localcharset, and make it a prerequisite of the former.
23307
23308 2009-05-01  Bruno Haible  <bruno@clisp.org>
23309
23310         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23311         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23312         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23313         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23314         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23315         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23316         m4/locale-zh.m4, m4/codeset.m4.
23317
23318         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23319         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23320         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23321         m4/locale-zh.m4.
23322
23323         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23324         REPLACE_WCRTOMB if mbstate_t must be replaced.
23325         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23326         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23327
23328 2009-05-01  Bruno Haible  <bruno@clisp.org>
23329
23330         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23331         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23332         dngettext, dcngettext, textdomain, bindtextdomain,
23333         bind_textdomain_codeset): Undefine before redefining.
23334
23335 2009-04-30  Bruno Haible  <bruno@clisp.org>
23336
23337         Fix bug introduced on 2009-04-25.
23338         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23339         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23340         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23341         is defined.
23342         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23343         is defined.
23344         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23345         is defined.
23346         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23347
23348 2009-04-28  Bruno Haible  <bruno@clisp.org>
23349
23350         Comment tweaks.
23351         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23352         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23353         * lib/unicase.h (u*_casexfrm): Likewise.
23354         Reported by Paolo Bonzini.
23355
23356 2009-04-28  Bruno Haible  <bruno@clisp.org>
23357
23358         Fix a compilation error.
23359         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23360         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23361         Reported by Jim Meyering.
23362
23363 2009-04-27  Bruno Haible  <bruno@clisp.org>
23364
23365         New module 'libunistring'.
23366         * modules/libunistring: New file.
23367         * m4/libunistring.m4: New file.
23368         * MODULES.html.sh (Unicode string functions): Add it.
23369
23370 2009-04-27  Eric Blake  <ebb9@byu.net>
23371
23372         maint.mk: allow package-specific header to provide <config.h>
23373         * top/maint.mk (sc_require_config_h): New variable.
23374         (sc_require_config_h, sc_require_config_h_first): Use it.
23375
23376 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23377
23378         * top/maint.mk (sc_avoid_if_before_free): Except
23379         useless-if-before-free script.
23380
23381 2009-04-27  Eric Blake  <ebb9@byu.net>
23382
23383         maintainer-makefile: depend on all required helper scripts
23384         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
23385         useless-if-before-free.
23386         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
23387         version, rather than assuming gnulib checkout is available.
23388         Reported by Simen Josefsson.
23389
23390 2009-04-26  Bruno Haible  <bruno@clisp.org>
23391
23392         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
23393         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
23394         "../" or "..".
23395
23396 2009-04-26  Bruno Haible  <bruno@clisp.org>
23397
23398         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
23399         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
23400         AC_LIB_HAVE_LINKFLAGS.
23401
23402 2009-04-26  Bruno Haible  <bruno@clisp.org>
23403
23404         Simplify calling convention of u*_conv_from_encoding.
23405         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
23406         u32_conv_from_encoding): Expect a resultbuf argument and return the
23407         result directly as a pointer.
23408         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
23409         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
23410         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
23411         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
23412         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
23413         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23414         Update.
23415         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
23416         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
23417         * lib/vasnprintf.c (VASNPRINTF): Update.
23418         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
23419         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
23420         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
23421         * NEWS: Mention the change.
23422
23423 2009-04-26  Bruno Haible  <bruno@clisp.org>
23424
23425         Simplify calling convention of u*_conv_to_encoding.
23426         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23427         u32_conv_to_encoding): Expect a resultbuf argument and return the
23428         result directly as a pointer.
23429         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23430         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
23431         freeing scaled_offsets if mem_iconveha failed.
23432         * lib/unicase/u-casexfrm.h (FUNC): Update.
23433         * lib/uninorm/u-normxfrm.h (FUNC): Update.
23434         * lib/vasnprintf.c (VASNPRINTF): Update.
23435         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
23436         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
23437         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
23438         * NEWS: Mention the change.
23439
23440 2009-04-26  Bruno Haible  <bruno@clisp.org>
23441
23442         Avoid test failures on AIX and OSF/1.
23443         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
23444         malloc(0).
23445         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23446         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23447         Likewise.
23448         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
23449         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
23450         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23451         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23452         * doc/posix-functions/malloc.texi: Document the portability problem
23453         related to malloc(0).
23454
23455 2009-04-26  Bruno Haible  <bruno@clisp.org>
23456
23457         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
23458         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
23459         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
23460
23461 2009-04-25  Bruno Haible  <bruno@clisp.org>
23462
23463         Avoid link error when creating a namespace clean library.
23464         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
23465         as macro with arguments if already defined as an alias.
23466         * lib/signbitf.c (gl_signbitf): Don't undefine.
23467         * lib/signbitd.c (gl_signbitd): Don't undefine.
23468         * lib/signbitl.c (gl_signbitl): Don't undefine.
23469
23470 2009-04-25  Jim Meyering  <meyering@redhat.com>
23471
23472         vc-list-files: fix another quoting bug
23473         * build-aux/vc-list-files: Avoid sed backslash expansion
23474         of pathological directory names.
23475
23476 2009-04-25  Eric Blake  <ebb9@byu.net>
23477
23478         vc-list-files: fix shell quoting error
23479         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
23480         timestamp.
23481
23482 2009-04-25  Jim Meyering  <meyering@redhat.com>
23483
23484         vc-list-files: restore lost functionality with subdir argument
23485         * build-aux/vc-list-files: When given a non-"." sub-directory
23486         argument, substitute the $dir/ prefix back onto each resulting name.
23487         Otherwise, coreutils' root_tests check would fail.
23488
23489 2009-04-24  Eric Blake  <ebb9@byu.net>
23490
23491         vc-list-files: ignore git symlinks
23492         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
23493         than ls-files, to ignore git symlinks.
23494
23495         maint.mk: import improvements from m4
23496         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
23497         (move_if_change): Delete unused macro.
23498         (news-date-check, vc-diff-check): Support VPATH builds.
23499         (announcement): Likewise.  Split --bootstrap-tools list...
23500         (boostrap-tools): ...into separate list, which can be overridden
23501         in cfg.mk.
23502         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
23503         requiring dependency on useless-if-before-free module.
23504         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
23505         Support VPATH builds.
23506
23507 2009-04-24  Jim Meyering  <meyering@redhat.com>
23508
23509         maint.mk: remove coreutils-specific rules and variables
23510         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
23511         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
23512         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
23513
23514         maint.mk: remove obsolete rule
23515         * top/maint.mk (rel-check): Remove rule.
23516         (WGET, WGETFLAGS): Remove now-unused variables.
23517
23518 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23519
23520         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
23521         consistency.
23522
23523         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
23524         '$(PATH_SEPARATOR)' instead of ':'.
23525
23526 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23527
23528         * lib/getopt1.c (main): Use 'const' for static array.
23529
23530 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23531
23532         * top/maint.mk: Sync with coreutils.
23533         * NEWS: Explain incompatibilities.
23534
23535 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23536             Bruno Haible  <bruno@clisp.org>
23537
23538         Fix cross-compilation results.
23539         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
23540         statement, as third argument of AC_TRY_RUN.
23541         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23542         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23543         Likewise.
23544         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23545         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23546         Likewise.
23547         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23548         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
23549         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
23550
23551 2009-04-20  Bruno Haible  <bruno@clisp.org>
23552
23553         Avoid test failure on mingw.
23554         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
23555
23556 2009-04-20  Bruno Haible  <bruno@clisp.org>
23557
23558         Avoid compilation error on mingw.
23559         * modules/localename-tests (Depends-on): Add locale.
23560
23561 2009-04-19  Bruno Haible  <bruno@clisp.org>
23562
23563         Support for building a shared library on Windows platforms.
23564         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
23565         (main): Test the presence of UNINORM_NFC here.
23566         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
23567         (main): Test the presence of UNINORM_NFD here.
23568         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
23569         (main): Test the presence of UNINORM_NFKC here.
23570         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
23571         (main): Test the presence of UNINORM_NFKD here.
23572
23573 2009-04-19  Bruno Haible  <bruno@clisp.org>
23574
23575         Avoid a compiler warning.
23576         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
23577         Change type of variable 'sequence'.
23578
23579 2009-04-19  Bruno Haible  <bruno@clisp.org>
23580
23581         * modules/configmake (Makefile.am): When the contents of configmake.h
23582         does not change, arrange to preserve its modification time.
23583
23584 2009-04-17  Simon Josefsson  <simon@josefsson.org>
23585
23586         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
23587         gettext domain.
23588
23589 2009-04-16  Jim Meyering  <meyering@redhat.com>
23590
23591         useless-if-before-free: improve conversion code
23592         * build-aux/useless-if-before-free: Adjust code-in-comment to match
23593         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
23594
23595 2009-04-14  Bruno Haible  <bruno@clisp.org>
23596
23597         * modules/fcntl (Depends-on): Add extensions.
23598         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
23599
23600 2009-04-12  Ben Pfaff  <blp@gnu.org>
23601
23602         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
23603         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
23604
23605 2009-03-20  Ben Pfaff  <blp@gnu.org>
23606
23607         Make rename replace existing destinations on Windows.
23608         * m4/rename.m4: Add test for Mingw.
23609         * lib/rename.c: Add rename replacement that uses MoveFileEx with
23610         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
23611         * doc/posix-functions/rename.texi: Document.
23612
23613 2009-04-10  Bruno Haible  <bruno@clisp.org>
23614
23615         New include file "iconveh.h".
23616         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
23617         * lib/striconveh.h: Include it.
23618         (enum iconv_ilseq_handler): Remove definition.
23619         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
23620         striconveh.h.
23621         * lib/striconveha.c: Include striconveh.h.
23622         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
23623         * modules/striconveh (Files): Add lib/iconveh.h.
23624         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
23625         lib/striconveh.h.
23626
23627 2009-04-10  Bruno Haible  <bruno@clisp.org>
23628
23629         * lib/uniconv.h: Update comment.
23630
23631 2009-04-10  Bruno Haible  <bruno@clisp.org>
23632
23633         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
23634         always.
23635         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
23636         * lib/unistr/u16-mbtouc-aux.c: Likewise.
23637         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
23638         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
23639         "unistring-notinline.h", so that the function gets defined always.
23640         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
23641         * lib/unistr/u8-uctomb.c: Likewise.
23642         * lib/unistr/u16-mbtouc.c: Likewise.
23643         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
23644         * lib/unistr/u16-uctomb.c: Likewise.
23645         * lib/unistr/u32-mbtouc.c: Likewise.
23646         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
23647         * lib/unistr/u32-uctomb.c: Likewise.
23648
23649 2009-04-10  Bruno Haible  <bruno@clisp.org>
23650
23651         Mark 'utime' obsolete.
23652         * modules/utime (Status, Notice): New sections.
23653         Suggested by Jim Meyering.
23654
23655         Fix cross-compile guess for utime test.
23656         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
23657         autoconf.
23658         * doc/posix-functions/utime.texi: Give more precisions.
23659         Reported by Jan <ipif@ymail.com>.
23660
23661 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
23662
23663         filevercmp: correct today's change
23664         * lib/filevercmp.c: Also handle coreutils' test inputs.
23665         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
23666
23667         Fix regression in 'filevercmp' module. Thanks Sven Joachim
23668         for reporting it.
23669         * lib/filevercmp.c: Special handle for "", "." and "..".
23670         * tests/test-filevercmp.c: Enlarge the set suite.
23671
23672 2009-04-07  Jim Meyering  <meyering@redhat.com>
23673
23674         useless-if-before-free: show how to remove braced useless free, too
23675         * build-aux/useless-if-before-free: still only in a comment, though.
23676
23677 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
23678
23679         maint.mk: import changes to syntax-check macros from coreutils
23680         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
23681         Use them in the relevant macros.
23682
23683 2009-04-06  Bruno Haible  <bruno@clisp.org>
23684
23685         Fix unportable use of bit-fields.
23686         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
23687         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
23688         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
23689
23690 2009-04-06  Bruno Haible  <bruno@clisp.org>
23691
23692         Avoid test failures on AIX and OSF/1.
23693         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
23694         that malloc(0) = NULL.
23695         * tests/unicase/test-u8-tolower.c (check): Likewise.
23696         * tests/unicase/test-u8-totitle.c (check): Likewise.
23697         * tests/unicase/test-u8-toupper.c (check): Likewise.
23698         * tests/unicase/test-u16-casefold.c (check): Likewise.
23699         * tests/unicase/test-u16-tolower.c (check): Likewise.
23700         * tests/unicase/test-u16-totitle.c (check): Likewise.
23701         * tests/unicase/test-u16-toupper.c (check): Likewise.
23702         * tests/unicase/test-u32-casefold.c (check): Likewise.
23703         * tests/unicase/test-u32-tolower.c (check): Likewise.
23704         * tests/unicase/test-u32-totitle.c (check): Likewise.
23705         * tests/unicase/test-u32-toupper.c (check): Likewise.
23706         * tests/uninorm/test-u8-nfc.c (check): Likewise.
23707         * tests/uninorm/test-u8-nfd.c (check): Likewise.
23708         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
23709         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
23710         * tests/uninorm/test-u16-nfc.c (check): Likewise.
23711         * tests/uninorm/test-u16-nfd.c (check): Likewise.
23712         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
23713         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
23714         * tests/uninorm/test-u32-nfc.c (check): Likewise.
23715         * tests/uninorm/test-u32-nfd.c (check): Likewise.
23716         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
23717         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
23718
23719 2009-04-05  Bruno Haible  <bruno@clisp.org>
23720
23721         Work around an autoconf limitation.
23722         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
23723         comment line if it would be longer than 3 KB.
23724
23725 2009-04-05  Bruno Haible  <bruno@clisp.org>
23726
23727         Avoid test failure with libiconv-1.13.
23728         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
23729         of the expected test results.
23730
23731 2009-04-05  Bruno Haible  <bruno@clisp.org>
23732
23733         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
23734         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
23735         that it should be installed.
23736
23737 2009-04-05  Bruno Haible  <bruno@clisp.org>
23738
23739         * gnulib-tool: New option --copy-file.
23740         (func_usage): Document it.
23741         (func_dest_tmpfilename): Moved out of func_import.
23742         (func_add_file, func_update_file): New functions, extracted from
23743         func_import.
23744         (func_import): Update.
23745
23746 2009-04-05  Karl Berry  <karl@gnu.org>
23747
23748         * README: prominently mention gnulib-tool.
23749         Rearrange sections so getting the code is near the top.
23750
23751 2009-04-05  Bruno Haible  <bruno@clisp.org>
23752
23753         * lib/unicase.h: Mention u*_cmp2.
23754         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23755         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
23756         * lib/unicase/ulc-casecmp.c: Likewise.
23757         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
23758         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
23759         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
23760         unistr/u8-cmp.
23761         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
23762         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
23763         unistr/u16-cmp.
23764         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
23765         unistr/u32-cmp.
23766
23767         * lib/uninorm.h: Mention u*_cmp2.
23768         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23769         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
23770         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
23771         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
23772         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
23773         unistr/u8-cmp.
23774         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
23775         unistr/u16-cmp.
23776         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
23777         unistr/u32-cmp.
23778
23779         New module 'unistr/u32-cmp2'.
23780         * lib/unistr/u32-cmp2.c: New file.
23781         * modules/unistr/u32-cmp2: New file.
23782
23783         New module 'unistr/u16-cmp2'.
23784         * lib/unistr/u16-cmp2.c: New file.
23785         * modules/unistr/u16-cmp2: New file.
23786
23787         New module 'unistr/u8-cmp2'.
23788         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
23789         * lib/unistr/u8-cmp2.c: New file.
23790         * lib/unistr/u-cmp2.h: New file.
23791         * modules/unistr/u8-cmp2: New file.
23792
23793 2009-04-05  Bruno Haible  <bruno@clisp.org>
23794
23795         * lib/unictype.h (uc_property_is_valid): New macro.
23796         * tests/unictype/test-pr_byname.c (main): Use it.
23797
23798         * lib/unistr.h: Doc fixes.
23799         * lib/uniconv.h: Doc fixes.
23800         * lib/unictype.h: Doc fixes.
23801
23802 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
23803
23804         Port coreutils 7.2 to Solaris 8.
23805
23806         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
23807         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
23808         for Solaris 8.  This is a bit of a hack, as it means it's the
23809         caller's responsibility to add -lnsl if needed, but most likely it
23810         won't be needed since only getaddrinfo uses this and getaddrinfo
23811         isn't needed on Solaris 8.
23812
23813         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
23814         problem to Solaris 8 encountered with coreutils 7.2, which
23815         resulted in a message "fnmatch.c:292: warning: passing argument 4
23816         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
23817         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
23818
23819 2009-04-03  Simon Josefsson  <simon@josefsson.org>
23820
23821         * m4/ld-version-script.m4: Add FIXME comment.
23822
23823 2009-04-02  Simon Josefsson  <simon@josefsson.org>
23824
23825         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
23826         SOVERSION variable.
23827
23828 2009-04-02  Bruno Haible  <bruno@clisp.org>
23829
23830         * Makefile (info, html, dvi, pdf): Combine the rules.
23831         Suggested by Jim Meyering.
23832
23833 2009-04-01  Bruno Haible  <bruno@clisp.org>
23834
23835         * Makefile (info, html, dvi, pdf): New targets.
23836         Reported by Reuben Thomas <rrt@sc3d.org>.
23837
23838 2009-04-01  Bruno Haible  <bruno@clisp.org>
23839
23840         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
23841         can be put into PATH.
23842         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
23843
23844 2009-04-01  Bruno Haible  <bruno@clisp.org>
23845
23846         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
23847
23848 2009-04-01  Bruno Haible  <bruno@clisp.org>
23849
23850         Rename module 'visibility'.
23851         * modules/lib-symbol-visibility: Renamed from modules/visibility.
23852         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
23853         * doc/gnulib.texi: Update.
23854         * MODULES.html.sh (Misc): Update.
23855         * NEWS: Mention the change.
23856
23857 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23858
23859         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
23860         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
23861         Eric Blake <ebb9@byu.net> for review.
23862         * MODULES.html.sh: Add lib-msvc-compat.
23863         * doc/gnulib.texi: Link to new section.
23864         * m4/ld-output-def.m4: New file.
23865         * doc/ld-output-def.texi: New file.
23866
23867 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23868
23869         Rename ld-version-script to lib-symbol-versions.  Suggested by
23870         Bruno Haible <bruno@clisp.org>.
23871         * modules/ld-version-script: Renamed to lib-symbol-versions.
23872         * doc/ld-version-script.texi: Fix module name.
23873         * MODULES.html.sh: Add lib-symbol-versions.
23874
23875 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23876
23877         * modules/u64-tests: New file.
23878         * tests/test-u64.c: New file.
23879
23880 2009-03-04  Simon Josefsson  <simon@josefsson.org>
23881
23882         * MODULES.html.sh: Mention u64.
23883         * modules/u64: New module.
23884         * modules/crypto/sha512: Depend on u64 module instead of providing
23885         u64.h.
23886
23887 2009-03-27  Eric Blake  <ebb9@byu.net>
23888
23889         test-strerror: make debugging EAI_SYSTEM easier
23890         * modules/getaddrinfo-tests (Depends-on): Add strerror.
23891         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
23892         failure was EAI_SYSTEM.
23893
23894 2009-03-25  Bruno Haible  <bruno@clisp.org>
23895
23896         Fix a problem with --enable-relocatable on Solaris 7.
23897         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
23898         since 2008-02-24.
23899
23900 2009-03-25  Eric Blake  <ebb9@byu.net>
23901
23902         test-sockets: avoid gcc warning
23903         * tests/test-sockets.c (main): Silence compiler warning.
23904
23905 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23906
23907         New modules nproc, pthread, contributed by Glen Lenker.
23908
23909         * MODULES.html.sh: Add pthread, nproc.
23910         * lib/nproc.c: New file.
23911         * lib/nproc.h: New file.
23912         * lib/pthread.in.h: New file.
23913         * m4/pthread.m4: New file.
23914         * modules/nproc: New file.
23915         * modules/pthread: New file.
23916
23917 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23918
23919         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
23920         New variable.
23921
23922 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
23923
23924         filevercmp: handle simple~ and numbered.~3~ backup suffixes
23925         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
23926         * tests/test-filevercmp.c: Add tests for backup suffixes.
23927
23928 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23929
23930         * modules/stdlib (Depends-on): Add stdint, needed when defining
23931         struct random_data on, for example, HP-UX 10.20.  Reported by
23932         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23933
23934 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23935
23936         * lib/readline.c (readline): Call fflush on stdout after printing
23937         prompt.
23938
23939 2009-03-20  Bruno Haible  <bruno@clisp.org>
23940
23941         Remove dependency from 'close' module to -lws2_32 on native Windows.
23942         * lib/close-hook.h: New file.
23943         * lib/close-hook.c: New file.
23944         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
23945         w32sock.h.
23946         (_gl_close_fd_maybe_socket): Remove function.
23947         (rpl_close): Invoke execute_all_close_hooks instead of
23948         _gl_close_fd_maybe_socket.
23949         * lib/sockets.c: Include close-hook.h, w32sock.h.
23950         (close_fd_maybe_socket): New function, essentially from lib/close.c.
23951         (close_sockets_hook): New variable.
23952         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
23953         (gl_sockets_cleanup): Unregister it.
23954         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
23955         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
23956         * modules/close-hook: New file.
23957         * modules/close (Files): Remove lib/w32sock.h.
23958         (Depends-on): Add close-hook.
23959         (Link): Remove section.
23960         * modules/sockets (Files): Add lib/w32sock.h.
23961         (Depends-on): Add close-hook.
23962         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
23963         invocation.
23964         * NEWS: Mention that LIB_CLOSE is gone.
23965
23966 2009-03-23  Eric Blake  <ebb9@byu.net>
23967
23968         signal-tests: test previous patch
23969         * tests/test-signal.c: New file.
23970         * modules/signal-tests: Likewise.
23971
23972         signal.h: always support 'volatile sig_atomic_t'
23973         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
23974         (gl_SIGNAL_H_DEFAULTS): Add a default.
23975         * modules/signal (Makefile.am): Substitute if needed.
23976         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
23977         users can blindly add volatile.
23978         * doc/posix-headers/signal.texi (signal.h): Document it.
23979         Reported by Matthew Woehlke.
23980
23981 2009-03-23  Jim Meyering  <meyering@redhat.com>
23982
23983         pathmax: PATH_MAX: use pathconf only when available
23984         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
23985         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
23986         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
23987         This avoids a link failure in a PSP cross-compilation environment
23988         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
23989
23990         * lib/vasnprintf.c (divide): Fix typo in comment.
23991
23992 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23993
23994         * gnulib-tool (func_filter_filelist): Fix comment.
23995
23996 2009-03-20  Bruno Haible  <bruno@clisp.org>
23997
23998         Make sockets.h self-contained.
23999         * lib/sockets.c: Include sockets.h first.
24000         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24001
24002 2009-03-19  Eric Blake  <ebb9@byu.net>
24003
24004         doc: mention more functions added in cygwin 1.7.0
24005         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24006         addition.
24007         * doc/posix-functions/log2f.texi: Likewise.
24008
24009 2009-03-19  Jim Meyering  <meyering@redhat.com>
24010
24011         fsusage: avoid syntax error due to statement-before-declaration
24012         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24013         after all declarations.  Reported by Matthew Woehlke in
24014         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24015
24016 2009-03-18  Eric Blake  <ebb9@byu.net>
24017
24018         build-aux/compile: sync from automake
24019         * build-aux/compile: New file, from automake.
24020         * config/srclist.txt: Mention build-aux/compile.
24021
24022 2009-03-17  Bruno Haible  <bruno@clisp.org>
24023
24024         * lib/git-merge-changelog.c: Fix typo in comment.
24025         Reported by Reuben Thomas <rrt@sc3d.org>.
24026
24027 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24028
24029         * m4/regex.m4: update and improve help for
24030         --without-included-regex.
24031
24032 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24033
24034         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24035         failure on missing include files.
24036
24037 2009-03-17  Eric Blake  <ebb9@byu.net>
24038
24039         doc: mention more functions added in cygwin 1.7.0
24040         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24041         addition.
24042         * doc/posix-functions/fwscanf.texi: Likewise.
24043         * doc/posix-functions/swprintf.texi: Likewise.
24044         * doc/posix-functions/swscanf.texi: Likewise.
24045         * doc/posix-functions/vfwprintf.texi: Likewise.
24046         * doc/posix-functions/vfwscanf.texi: Likewise.
24047         * doc/posix-functions/vswprintf.texi: Likewise.
24048         * doc/posix-functions/vswscanf.texi: Likewise.
24049         * doc/posix-functions/vwprintf.texi: Likewise.
24050         * doc/posix-functions/vwscanf.texi: Likewise.
24051         * doc/posix-functions/wcscasecmp.texi: Likewise.
24052         * doc/posix-functions/wcsdup.texi: Likewise.
24053         * doc/posix-functions/wcsftime.texi: Likewise.
24054         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24055         * doc/posix-functions/wprintf.texi: Likewise.
24056         * doc/posix-functions/wscanf.texi: Likewise.
24057         * doc/glibc-functions/gethostbyname2.texi: Likewise.
24058
24059 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24060
24061         maint.mk: really add $(AM_MAKEFLAGS)
24062         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
24063         was inadvertently omitted in the last commit.
24064         Spotted by Bruno Haible.
24065
24066         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24067         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24068         $(AM_MAKEFLAGS)' rather than plain `make'.
24069
24070         gnulib-tool: execute $MAKE not make
24071         * gnulib-tool: Default $MAKE to 'make'.
24072         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24073         than make.  Initialize $MAKE in the do-autobuild script.
24074
24075         gnulib-tool: use $MAKE not make in generated files
24076         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24077         make, in generated files.  Initialize $MAKE in the do-autobuild
24078         script.
24079
24080         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24081
24082         GNUmakefile: disable parallelism only for multiple, recursive targets
24083         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24084         additions in the Makefile.
24085         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24086         by Automake.
24087         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24088         are listed on the command line and at least one of them is
24089         listed in $(ALL_RECURSIVE_TARGETS).
24090
24091 2009-03-14  Bruno Haible  <bruno@clisp.org>
24092
24093         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24094         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24095         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24096         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24097         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24098         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24099         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24100         unistr/u8-uctomb.
24101         * modules/unistr/u8-strchr (Depends-on): Likewise.
24102         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24103         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24104         unistr/u16-uctomb.
24105         * modules/unistr/u16-strchr (Depends-on): Likewise.
24106         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24107
24108 2009-03-12  Bruno Haible  <bruno@clisp.org>
24109
24110         Work around select() bug on Interix 3.5.
24111         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24112         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24113         * m4/select.m4: New file.
24114         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24115         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24116         * modules/select (Files): Add m4/select.m4.
24117         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24118         * modules/nanosleep (Depends-on): Add select.
24119         * modules/poll (Depends-on): Likewise.
24120         * doc/posix-functions/select.texi: Mention the Interix bug.
24121         Reported by Markus Duft <mduft@gentoo.org>.
24122
24123         * lib/select.c: Renamed from lib/winsock-select.c.
24124         * modules/select (Files): Add lib/select.c, remove
24125         lib/winsock-select.c.
24126         (configure.ac): Update.
24127
24128 2009-03-12  Jim Meyering  <meyering@redhat.com>
24129
24130         avoid gcc warnings about unused macro definitions
24131         * lib/readtokens.c (STREQ): Remove unused definition.
24132         * lib/xmalloc.c (SIZE_MAX): Likewise.
24133         * lib/openat-die.c (N_): Likewise.
24134         * lib/mountlist.c (SIZE_MAX): Remove definition.
24135         Instead, include <stdint.h>.
24136         * lib/readutmp.c: Likewise.
24137         * modules/readutmp (Depends-on): Add stdint.
24138         * modules/mountlist (Depends-on): Add stdint.
24139         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24140
24141 2009-03-10  Bruno Haible  <bruno@clisp.org>
24142
24143         Tests for module 'mbmemcasecoll'.
24144         * modules/mbmemcasecoll-tests: New file.
24145         * tests/test-mbmemcasecoll1.sh: New file.
24146         * tests/test-mbmemcasecoll2.sh: New file.
24147         * tests/test-mbmemcasecoll3.sh: New file.
24148         * tests/test-mbmemcasecoll.c: New file.
24149
24150         New module 'mbmemcasecoll'.
24151         * lib/mbmemcasecoll.h: New file.
24152         * lib/mbmemcasecoll.c: New file.
24153         * modules/mbmemcasecoll: New file.
24154
24155         * tests/test-mbmemcasecmp.h: New file, extracted from
24156         tests/test-mbmemcasecmp.c.
24157         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24158         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24159         (main): Update.
24160         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24161
24162 2009-03-09  Bruno Haible  <bruno@clisp.org>
24163
24164         Tests for module 'mbmemcasecmp'.
24165         * modules/mbmemcasecmp-tests: New file.
24166         * tests/test-mbmemcasecmp1.sh: New file.
24167         * tests/test-mbmemcasecmp2.sh: New file.
24168         * tests/test-mbmemcasecmp3.sh: New file.
24169         * tests/test-mbmemcasecmp.c: New file.
24170
24171         New module 'mbmemcasecmp'.
24172         * lib/mbmemcasecmp.h: New file.
24173         * lib/mbmemcasecmp.c: New file.
24174         * modules/mbmemcasecmp: New file.
24175
24176 2009-03-09  Bruno Haible  <bruno@clisp.org>
24177
24178         Tests for module 'unicase/ulc-casecoll'.
24179         * modules/unicase/ulc-casecoll-tests: New file.
24180         * tests/unicase/test-ulc-casecoll1.sh: New file.
24181         * tests/unicase/test-ulc-casecoll2.sh: New file.
24182         * tests/unicase/test-ulc-casecoll.c: New file.
24183
24184         New module 'unicase/ulc-casecoll'.
24185         * lib/unicase.h (ulc_casecoll): New declaration.
24186         * lib/unicase/ulc-casecoll.c: New file.
24187         * modules/unicase/ulc-casecoll: New file.
24188
24189         New module 'unicase/ulc-casexfrm'.
24190         * lib/unicase.h (ulc_casexfrm): New declaration.
24191         * lib/unicase/ulc-casexfrm.c: New file.
24192         * modules/unicase/ulc-casexfrm: New file.
24193
24194 2009-03-09  Bruno Haible  <bruno@clisp.org>
24195
24196         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24197         invocations.
24198
24199         * m4/mbscasecmp.m4: Remove file.
24200         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24201         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24202
24203         * m4/mbscasestr.m4: Remove file.
24204         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24205         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24206
24207         * m4/mbschr.m4: Remove file.
24208         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24209         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24210
24211         * m4/mbscspn.m4: Remove file.
24212         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24213         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24214
24215         * m4/mbslen.m4: Remove file.
24216         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24217         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24218
24219         * m4/mbsncasecmp.m4: Remove file.
24220         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24221         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24222
24223         * m4/mbsnlen.m4: Remove file.
24224         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24225         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24226
24227         * m4/mbspbrk.m4: Remove file.
24228         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24229         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24230
24231         * m4/mbspcasecmp.m4: Remove file.
24232         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24233         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24234
24235         * m4/mbsrchr.m4: Remove file.
24236         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24237         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24238
24239         * m4/mbssep.m4: Remove file.
24240         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24241         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24242
24243         * m4/mbsspn.m4: Remove file.
24244         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24245         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24246
24247         * m4/mbsstr.m4: Remove file.
24248         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24249         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24250
24251         * m4/mbstok_r.m4: Remove file.
24252         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24253         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24254
24255         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24256
24257         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24258         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24259
24260         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24261
24262 2009-03-08  Bruno Haible  <bruno@clisp.org>
24263
24264         Tests for module 'unicase/ulc-casecmp'.
24265         * modules/unicase/ulc-casecmp-tests: New file.
24266         * tests/unicase/test-ulc-casecmp1.sh: New file.
24267         * tests/unicase/test-ulc-casecmp2.sh: New file.
24268         * tests/unicase/test-ulc-casecmp.c: New file.
24269
24270         New module 'unicase/ulc-casecmp'.
24271         * lib/unicase.h (ulc_casecmp): New declaration.
24272         * lib/unicase/ulc-casecmp.c: New file.
24273         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24274         'const SRC_UNIT *'.
24275         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24276         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24277         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24278         * modules/unicase/ulc-casecmp: New file.
24279
24280         Tests for module 'unicase/u32-is-cased'.
24281         * modules/unicase/u32-is-cased-tests: New file.
24282         * tests/unicase/test-u32-is-cased.c: New file.
24283
24284         Tests for module 'unicase/u16-is-cased'.
24285         * modules/unicase/u16-is-cased-tests: New file.
24286         * tests/unicase/test-u16-is-cased.c: New file.
24287
24288         Tests for module 'unicase/u8-is-cased'.
24289         * modules/unicase/u8-is-cased-tests: New file.
24290         * tests/unicase/test-u8-is-cased.c: New file.
24291         * tests/unicase/test-is-cased.h: New file.
24292
24293         New module 'unicase/u32-is-cased'.
24294         * lib/unicase/u32-is-cased.c: New file.
24295         * modules/unicase/u32-is-cased: New file.
24296
24297         New module 'unicase/u16-is-cased'.
24298         * lib/unicase/u16-is-cased.c: New file.
24299         * modules/unicase/u16-is-cased: New file.
24300
24301         New module 'unicase/u8-is-cased'.
24302         * lib/unicase/u8-is-cased.c: New file.
24303         * lib/unicase/u-is-cased.h: New file.
24304         * modules/unicase/u8-is-cased: New file.
24305
24306         Tests for module 'unicase/u32-is-casefolded'.
24307         * modules/unicase/u32-is-casefolded-tests: New file.
24308         * tests/unicase/test-u32-is-casefolded.c: New file.
24309
24310         Tests for module 'unicase/u16-is-casefolded'.
24311         * modules/unicase/u16-is-casefolded-tests: New file.
24312         * tests/unicase/test-u16-is-casefolded.c: New file.
24313
24314         Tests for module 'unicase/u8-is-casefolded'.
24315         * modules/unicase/u8-is-casefolded-tests: New file.
24316         * tests/unicase/test-u8-is-casefolded.c: New file.
24317         * tests/unicase/test-is-casefolded.h: New file.
24318
24319         New module 'unicase/u32-is-casefolded'.
24320         * lib/unicase/u32-is-casefolded.c: New file.
24321         * modules/unicase/u32-is-casefolded: New file.
24322
24323         New module 'unicase/u16-is-casefolded'.
24324         * lib/unicase/u16-is-casefolded.c: New file.
24325         * modules/unicase/u16-is-casefolded: New file.
24326
24327         New module 'unicase/u8-is-casefolded'.
24328         * lib/unicase/u8-is-casefolded.c: New file.
24329         * modules/unicase/u8-is-casefolded: New file.
24330
24331         Tests for module 'unicase/u32-is-titlecase'.
24332         * modules/unicase/u32-is-titlecase-tests: New file.
24333         * tests/unicase/test-u32-is-titlecase.c: New file.
24334
24335         Tests for module 'unicase/u16-is-titlecase'.
24336         * modules/unicase/u16-is-titlecase-tests: New file.
24337         * tests/unicase/test-u16-is-titlecase.c: New file.
24338
24339         Tests for module 'unicase/u8-is-titlecase'.
24340         * modules/unicase/u8-is-titlecase-tests: New file.
24341         * tests/unicase/test-u8-is-titlecase.c: New file.
24342         * tests/unicase/test-is-titlecase.h: New file.
24343
24344         New module 'unicase/u32-is-titlecase'.
24345         * lib/unicase/u32-is-titlecase.c: New file.
24346         * modules/unicase/u32-is-titlecase: New file.
24347
24348         New module 'unicase/u16-is-titlecase'.
24349         * lib/unicase/u16-is-titlecase.c: New file.
24350         * modules/unicase/u16-is-titlecase: New file.
24351
24352         New module 'unicase/u8-is-titlecase'.
24353         * lib/unicase/u8-is-titlecase.c: New file.
24354         * modules/unicase/u8-is-titlecase: New file.
24355
24356         Tests for module 'unicase/u32-is-lowercase'.
24357         * modules/unicase/u32-is-lowercase-tests: New file.
24358         * tests/unicase/test-u32-is-lowercase.c: New file.
24359
24360         Tests for module 'unicase/u16-is-lowercase'.
24361         * modules/unicase/u16-is-lowercase-tests: New file.
24362         * tests/unicase/test-u16-is-lowercase.c: New file.
24363
24364         Tests for module 'unicase/u8-is-lowercase'.
24365         * modules/unicase/u8-is-lowercase-tests: New file.
24366         * tests/unicase/test-u8-is-lowercase.c: New file.
24367         * tests/unicase/test-is-lowercase.h: New file.
24368
24369         New module 'unicase/u32-is-lowercase'.
24370         * lib/unicase/u32-is-lowercase.c: New file.
24371         * modules/unicase/u32-is-lowercase: New file.
24372
24373         New module 'unicase/u16-is-lowercase'.
24374         * lib/unicase/u16-is-lowercase.c: New file.
24375         * modules/unicase/u16-is-lowercase: New file.
24376
24377         New module 'unicase/u8-is-lowercase'.
24378         * lib/unicase/u8-is-lowercase.c: New file.
24379         * modules/unicase/u8-is-lowercase: New file.
24380
24381         Tests for module 'unicase/u32-is-uppercase'.
24382         * modules/unicase/u32-is-uppercase-tests: New file.
24383         * tests/unicase/test-u32-is-uppercase.c: New file.
24384
24385         Tests for module 'unicase/u16-is-uppercase'.
24386         * modules/unicase/u16-is-uppercase-tests: New file.
24387         * tests/unicase/test-u16-is-uppercase.c: New file.
24388
24389         Tests for module 'unicase/u8-is-uppercase'.
24390         * modules/unicase/u8-is-uppercase-tests: New file.
24391         * tests/unicase/test-u8-is-uppercase.c: New file.
24392         * tests/unicase/test-is-uppercase.h: New file.
24393
24394         New module 'unicase/u32-is-uppercase'.
24395         * lib/unicase/u32-is-uppercase.c: New file.
24396         * modules/unicase/u32-is-uppercase: New file.
24397
24398         New module 'unicase/u16-is-uppercase'.
24399         * lib/unicase/u16-is-uppercase.c: New file.
24400         * modules/unicase/u16-is-uppercase: New file.
24401
24402         New module 'unicase/u8-is-uppercase'.
24403         * lib/unicase/u8-is-uppercase.c: New file.
24404         * modules/unicase/u8-is-uppercase: New file.
24405
24406         New module 'unicase/u32-is-invariant'.
24407         * lib/unicase/u32-is-invariant.c: New file.
24408         * modules/unicase/u32-is-invariant: New file.
24409
24410         New module 'unicase/u16-is-invariant'.
24411         * lib/unicase/u16-is-invariant.c: New file.
24412         * modules/unicase/u16-is-invariant: New file.
24413
24414         New module 'unicase/u8-is-invariant'.
24415         * lib/unicase/u8-is-invariant.c: New file.
24416         * lib/unicase/invariant.h: New file.
24417         * lib/unicase/u-is-invariant.h: New file.
24418         * modules/unicase/u8-is-invariant: New file.
24419
24420         Tests for module 'unicase/u32-casecoll'.
24421         * modules/unicase/u32-casecoll-tests: New file.
24422         * tests/unicase/test-u32-casecoll.c: New file.
24423
24424         Tests for module 'unicase/u16-casecoll'.
24425         * modules/unicase/u16-casecoll-tests: New file.
24426         * tests/unicase/test-u16-casecoll.c: New file.
24427
24428         Tests for module 'unicase/u8-casecoll'.
24429         * modules/unicase/u8-casecoll-tests: New file.
24430         * tests/unicase/test-u8-casecoll.c: New file.
24431
24432         New module 'unicase/u32-casecoll'.
24433         * lib/unicase/u32-casecoll.c: New file.
24434         * modules/unicase/u32-casecoll: New file.
24435
24436         New module 'unicase/u16-casecoll'.
24437         * lib/unicase/u16-casecoll.c: New file.
24438         * modules/unicase/u16-casecoll: New file.
24439
24440         New module 'unicase/u8-casecoll'.
24441         * lib/unicase/u8-casecoll.c: New file.
24442         * lib/unicase/u-casecoll.h: New file.
24443         * modules/unicase/u8-casecoll: New file.
24444
24445         New module 'unicase/u32-casexfrm'.
24446         * lib/unicase/u32-casexfrm.c: New file.
24447         * modules/unicase/u32-casexfrm: New file.
24448
24449         New module 'unicase/u16-casexfrm'.
24450         * lib/unicase/u16-casexfrm.c: New file.
24451         * modules/unicase/u16-casexfrm: New file.
24452
24453         New module 'unicase/u8-casexfrm'.
24454         * lib/unicase/u8-casexfrm.c: New file.
24455         * lib/unicase/u-casexfrm.h: New file.
24456         * modules/unicase/u8-casexfrm: New file.
24457
24458         Tests for module 'unicase/u32-casecmp'.
24459         * modules/unicase/u32-casecmp-tests: New file.
24460         * tests/unicase/test-u32-casecmp.c: New file.
24461
24462         Tests for module 'unicase/u16-casecmp'.
24463         * modules/unicase/u16-casecmp-tests: New file.
24464         * tests/unicase/test-u16-casecmp.c: New file.
24465
24466         Tests for module 'unicase/u8-casecmp'.
24467         * modules/unicase/u8-casecmp-tests: New file.
24468         * tests/unicase/test-u8-casecmp.c: New file.
24469         * tests/unicase/test-casecmp.h: New file.
24470
24471         New module 'unicase/u32-casecmp'.
24472         * lib/unicase/u32-casecmp.c: New file.
24473         * modules/unicase/u32-casecmp: New file.
24474
24475         New module 'unicase/u16-casecmp'.
24476         * lib/unicase/u16-casecmp.c: New file.
24477         * modules/unicase/u16-casecmp: New file.
24478
24479         New module 'unicase/u8-casecmp'.
24480         * lib/unicase/u8-casecmp.c: New file.
24481         * lib/unicase/u-casecmp.h: New file.
24482         * modules/unicase/u8-casecmp: New file.
24483
24484         Tests for module 'unicase/u32-casefold'.
24485         * modules/unicase/u32-casefold-tests: New file.
24486         * tests/unicase/test-u32-casefold.c: New file.
24487
24488         Tests for module 'unicase/u16-casefold'.
24489         * modules/unicase/u16-casefold-tests: New file.
24490         * tests/unicase/test-u16-casefold.c: New file.
24491
24492         Tests for module 'unicase/u8-casefold'.
24493         * modules/unicase/u8-casefold-tests: New file.
24494         * tests/unicase/test-u8-casefold.c: New file.
24495
24496         New module 'unicase/u32-casefold'.
24497         * lib/unicase/u32-casefold.c: New file.
24498         * modules/unicase/u32-casefold: New file.
24499
24500         New module 'unicase/u16-casefold'.
24501         * lib/unicase/u16-casefold.c: New file.
24502         * modules/unicase/u16-casefold: New file.
24503
24504         New module 'unicase/u8-casefold'.
24505         * lib/unicase/u8-casefold.c: New file.
24506         * lib/unicase/u-casefold.h: New file.
24507         * modules/unicase/u8-casefold: New file.
24508
24509         New module 'unicase/tocasefold'.
24510         * lib/unicase/casefold.h: New file.
24511         * lib/unicase/tocasefold.c: New file.
24512         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
24513         * modules/unicase/tocasefold: New file.
24514
24515         Tests for module 'unicase/u32-totitle'.
24516         * modules/unicase/u32-totitle-tests: New file.
24517         * tests/unicase/test-u32-totitle.c: New file.
24518
24519         Tests for module 'unicase/u16-totitle'.
24520         * modules/unicase/u16-totitle-tests: New file.
24521         * tests/unicase/test-u16-totitle.c: New file.
24522
24523         Tests for module 'unicase/u8-totitle'.
24524         * modules/unicase/u8-totitle-tests: New file.
24525         * tests/unicase/test-u8-totitle.c: New file.
24526
24527         New module 'unicase/u32-totitle'.
24528         * lib/unicase/u32-totitle.c: New file.
24529         * modules/unicase/u32-totitle: New file.
24530
24531         New module 'unicase/u16-totitle'.
24532         * lib/unicase/u16-totitle.c: New file.
24533         * modules/unicase/u16-totitle: New file.
24534
24535         New module 'unicase/u8-totitle'.
24536         * lib/unicase/u8-totitle.c: New file.
24537         * lib/unicase/u-totitle.h: New file.
24538         * modules/unicase/u8-totitle: New file.
24539
24540         Tests for module 'unicase/u32-tolower'.
24541         * modules/unicase/u32-tolower-tests: New file.
24542         * tests/unicase/test-u32-tolower.c: New file.
24543
24544         Tests for module 'unicase/u16-tolower'.
24545         * modules/unicase/u16-tolower-tests: New file.
24546         * tests/unicase/test-u16-tolower.c: New file.
24547
24548         Tests for module 'unicase/u8-tolower'.
24549         * modules/unicase/u8-tolower-tests: New file.
24550         * tests/unicase/test-u8-tolower.c: New file.
24551
24552         New module 'unicase/u32-tolower'.
24553         * lib/unicase/u32-tolower.c: New file.
24554         * modules/unicase/u32-tolower: New file.
24555
24556         New module 'unicase/u16-tolower'.
24557         * lib/unicase/u16-tolower.c: New file.
24558         * modules/unicase/u16-tolower: New file.
24559
24560         New module 'unicase/u8-tolower'.
24561         * lib/unicase/u8-tolower.c: New file.
24562         * modules/unicase/u8-tolower: New file.
24563
24564         Tests for module 'unicase/u32-toupper'.
24565         * modules/unicase/u32-toupper-tests: New file.
24566         * tests/unicase/test-u32-toupper.c: New file.
24567
24568         Tests for module 'unicase/u16-toupper'.
24569         * modules/unicase/u16-toupper-tests: New file.
24570         * tests/unicase/test-u16-toupper.c: New file.
24571
24572         Tests for module 'unicase/u8-toupper'.
24573         * modules/unicase/u8-toupper-tests: New file.
24574         * tests/unicase/test-u8-toupper.c: New file.
24575
24576         New module 'unicase/u32-toupper'.
24577         * lib/unicase/u32-toupper.c: New file.
24578         * modules/unicase/u32-toupper: New file.
24579
24580         New module 'unicase/u16-toupper'.
24581         * lib/unicase/u16-toupper.c: New file.
24582         * modules/unicase/u16-toupper: New file.
24583
24584         New module 'unicase/u8-toupper'.
24585         * lib/unicase/u8-toupper.c: New file.
24586         * modules/unicase/u8-toupper: New file.
24587
24588         New module 'unicase/u32-casemap'.
24589         * lib/unicase/u32-casemap.c: New file.
24590         * modules/unicase/u32-casemap: New file.
24591
24592         New module 'unicase/u16-casemap'.
24593         * lib/unicase/u16-casemap.c: New file.
24594         * modules/unicase/u16-casemap: New file.
24595
24596         New module 'unicase/u8-casemap'.
24597         * lib/unicase/unicasemap.h: New file.
24598         * lib/unicase/u8-casemap.c: New file.
24599         * lib/unicase/u-casemap.h: New file.
24600         * modules/unicase/u8-casemap: New file.
24601
24602         New module 'unicase/special-casing'.
24603         * lib/unicase/special-casing.h: New file.
24604         * lib/unicase/special-casing.c: New file.
24605         * lib/unicase/special-casing-table.gperf: New file, generated by
24606         gen-uni-tables.c.
24607         * modules/unicase/special-casing: New file.
24608
24609         Tests for module 'unicase/locale-language'.
24610         * modules/unicase/locale-language-tests: New file.
24611         * tests/unicase/test-locale-language.sh: New file.
24612         * tests/unicase/test-locale-language.c: New file.
24613
24614         New module 'unicase/locale-language'.
24615         * lib/unicase/locale-language.c: New file.
24616         * lib/unicase/locale-languages.gperf: New file.
24617         * modules/unicase/locale-language: New file.
24618
24619         Generate more tables for case conversion and case folding.
24620         * lib/gen-uni-tables.c (SCC_*): New enum items.
24621         (struct special_casing_rule): New type.
24622         (casing_rules, num_casing_rules, allocated_casing_rules): New
24623         variables.
24624         (add_casing_rule, fill_casing_rules): New functions.
24625         (struct casefold_rule): New type.
24626         (casefolding_rules, num_casefolding_rules,
24627         allocated_casefolding_rules): New variables.
24628         (fill_casefolding_rules): New function.
24629         (unicode_casefold): New variable.
24630         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
24631         sort_casing_rules, output_casing_rules): New functions.
24632         (main): Accept to more arguments: SpecialCasing.txt and
24633         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
24634         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
24635         Output mapping for casefolding.
24636
24637         * lib/unicase.h: Include stdbool.h, uninorm.h.
24638         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
24639         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
24640         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
24641         arguments.
24642         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
24643         resultp arguments.
24644         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
24645         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
24646         resultp arguments.
24647         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
24648         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
24649         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
24650         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
24651         declarations.
24652         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
24653
24654 2009-03-08  Bruno Haible  <bruno@clisp.org>
24655
24656         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24657         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
24658         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
24659         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24660
24661 2009-03-07  Bruno Haible  <bruno@clisp.org>
24662
24663         Adjust u*_normcmp, u*_normcoll API.
24664         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24665         u16_normcoll, u32_normcoll): Change failure conventions.
24666         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
24667         errno and return -1.
24668         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24669
24670 2009-03-07  Bruno Haible  <bruno@clisp.org>
24671
24672         Tests for module 'uninorm/u32-normcoll'.
24673         * modules/uninorm/u32-normcoll-tests: New file.
24674         * tests/uninorm/test-u32-normcoll.c: New file.
24675
24676         Tests for module 'uninorm/u16-normcoll'.
24677         * modules/uninorm/u16-normcoll-tests: New file.
24678         * tests/uninorm/test-u16-normcoll.c: New file.
24679
24680         Tests for module 'uninorm/u8-normcoll'.
24681         * modules/uninorm/u8-normcoll-tests: New file.
24682         * tests/uninorm/test-u8-normcoll.c: New file.
24683
24684 2009-03-07  Bruno Haible  <bruno@clisp.org>
24685
24686         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
24687         tests/uninorm/test-u32-normcmp.c.
24688         * tests/uninorm/test-u32-normcmp.c: Include it.
24689         (test_nonascii): New function, extracted from main. Add some more
24690         tests.
24691         (main): Invoke test_ascii and test_nonascii.
24692         * modules/uninorm/u32-normcmp-tests (Files): Add
24693         tests/uninorm/test-u32-normcmp.h.
24694         (Depends-on): Remove uninorm/u32-normcmp.
24695
24696         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
24697         tests/uninorm/test-u16-normcmp.c.
24698         * tests/uninorm/test-u16-normcmp.c: Include it.
24699         (test_nonascii): New function, extracted from main. Add some more
24700         tests.
24701         (main): Invoke test_ascii and test_nonascii.
24702         * modules/uninorm/u16-normcmp-tests (Files): Add
24703         tests/uninorm/test-u16-normcmp.h.
24704         (Depends-on): Remove uninorm/u16-normcmp.
24705
24706         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
24707         tests/uninorm/test-u8-normcmp.c.
24708         * tests/uninorm/test-u8-normcmp.c: Include it.
24709         (test_nonascii): New function, extracted from main. Add some more
24710         tests.
24711         (main): Invoke test_ascii and test_nonascii.
24712         * modules/uninorm/u8-normcmp-tests (Files): Add
24713         tests/uninorm/test-u8-normcmp.h.
24714         (Depends-on): Remove uninorm/u8-normcmp.
24715
24716 2009-03-07  Bruno Haible  <bruno@clisp.org>
24717
24718         New module 'uninorm/u32-normcoll'.
24719         * lib/uninorm/u32-normcoll.c: New file.
24720         * modules/uninorm/u32-normcoll: New file.
24721
24722         New module 'uninorm/u16-normcoll'.
24723         * lib/uninorm/u16-normcoll.c: New file.
24724         * modules/uninorm/u16-normcoll: New file.
24725
24726         New module 'uninorm/u8-normcoll'.
24727         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
24728         declarations.
24729         * lib/uninorm/u8-normcoll.c: New file.
24730         * lib/uninorm/u-normcoll.h: New file.
24731         * modules/uninorm/u8-normcoll: New file.
24732
24733         New module 'uninorm/u32-normxfrm'.
24734         * lib/uninorm/u32-normxfrm.c: New file.
24735         * modules/uninorm/u32-normxfrm: New file.
24736
24737         New module 'uninorm/u16-normxfrm'.
24738         * lib/uninorm/u16-normxfrm.c: New file.
24739         * modules/uninorm/u16-normxfrm: New file.
24740
24741         New module 'uninorm/u8-normxfrm'.
24742         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
24743         declarations.
24744         * lib/uninorm/u8-normxfrm.c: New file.
24745         * lib/uninorm/u-normxfrm.h: New file.
24746         * modules/uninorm/u8-normxfrm: New file.
24747
24748 2009-03-07  Bruno Haible  <bruno@clisp.org>
24749
24750         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
24751         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
24752         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
24753
24754 2009-03-07  Bruno Haible  <bruno@clisp.org>
24755
24756         New module 'memxfrm'.
24757         * lib/memxfrm.h: New file.
24758         * lib/memxfrm.c: New file.
24759         * modules/memxfrm: New file.
24760
24761 2009-03-07  Bruno Haible  <bruno@clisp.org>
24762
24763         New module 'memcmp2'.
24764         * lib/memcmp2.h: New file.
24765         * lib/memcmp2.c: New file.
24766         * modules/memcmp2: New file.
24767
24768 2009-03-07  Bruno Haible  <bruno@clisp.org>
24769
24770         Tests for module 'uninorm/decomposing-form'.
24771         * modules/uninorm/decomposing-form-tests: New file.
24772         * tests/uninorm/test-decomposing-form.c: New file.
24773
24774         New module 'uninorm/decomposing-form'.
24775         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
24776         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
24777         Add 'decomposing_variant' field.
24778         * lib/uninorm/decomposing-form.c: New file.
24779         * lib/uninorm/nfc.c (uninorm_nfc): Update.
24780         * lib/uninorm/nfd.c (uninorm_nfd): Update.
24781         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
24782         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
24783         * modules/uninorm/decomposing-form: New file.
24784         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
24785         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
24786
24787 2009-03-07  Bruno Haible  <bruno@clisp.org>
24788
24789         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
24790         strings.
24791
24792 2009-03-06  Bruno Haible  <bruno@clisp.org>
24793
24794         Tests for module 'uninorm/u32-normcmp'.
24795         * tests/uninorm/test-u32-normcmp.c: New file.
24796         * modules/uninorm/u32-normcmp-tests: New file.
24797
24798         Tests for module 'uninorm/u16-normcmp'.
24799         * tests/uninorm/test-u16-normcmp.c: New file.
24800         * modules/uninorm/u16-normcmp-tests: New file.
24801
24802         Tests for module 'uninorm/u8-normcmp'.
24803         * tests/uninorm/test-u8-normcmp.c: New file.
24804         * modules/uninorm/u8-normcmp-tests: New file.
24805
24806         New module 'uninorm/u32-normcmp'.
24807         * lib/uninorm/u32-normcmp.c: New file.
24808         * modules/uninorm/u32-normcmp: New file.
24809
24810         New module 'uninorm/u16-normcmp'.
24811         * lib/uninorm/u16-normcmp.c: New file.
24812         * modules/uninorm/u16-normcmp: New file.
24813
24814         New module 'uninorm/u8-normcmp'.
24815         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
24816         declarations.
24817         * lib/uninorm/u8-normcmp.c: New file.
24818         * lib/uninorm/u-normcmp.h: New file.
24819         * modules/uninorm/u8-normcmp: New file.
24820
24821 2009-03-06  Bruno Haible  <bruno@clisp.org>
24822
24823         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
24824         Reported by Eric Blake.
24825
24826 2009-03-06  Eric Blake  <ebb9@byu.net>
24827             Bruno Haible  <bruno@clisp.org>
24828
24829         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
24830         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
24831         condition.
24832         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24833         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
24834         condition.
24835         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24836
24837 2009-03-06  Eric Blake  <ebb9@byu.net>
24838
24839         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
24840         to avoid compiler warnings.
24841         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
24842
24843 2009-03-05  Bruno Haible  <bruno@clisp.org>
24844
24845         * tests/test-ftell.c (main): Disable test beyond end of file on
24846         FreeMiNT.
24847         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24848
24849 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
24850
24851         * lib/filevercmp.c: Move hidden files up in ordering.
24852         * tests/test-filevercmp.c: Add tests for hidden files.
24853
24854 2009-03-04  Bruno Haible  <bruno@clisp.org>
24855
24856         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
24857         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
24858         AM_CFLAGS.
24859         Reported by Simon Josefsson.
24860
24861 2009-03-03  Bruno Haible  <bruno@clisp.org>
24862
24863         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
24864         Reported by Simon Josefsson.
24865
24866         * doc/ld-version-script.texi: Update node reference.
24867
24868 2009-03-03  Bruno Haible  <bruno@clisp.org>
24869
24870         * modules/visibility (License): Change to 'unlimited'.
24871         Suggested by Simon Josefsson.
24872
24873 2009-03-03  Jim Meyering  <meyering@redhat.com>
24874
24875         unlinkdir: cannot_unlink_dir may modify process state
24876         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
24877         it's neither thread-safe nor appropriate for use in a library.
24878
24879 2009-03-03  Eric Blake  <ebb9@byu.net>
24880
24881         test-closein: silence test under Darwin
24882         * tests/test-closein.sh: Ignore stderr from cat, since we don't
24883         care if it dies from EPIPE or EBADF.
24884
24885 2009-03-03  Bruno Haible  <bruno@clisp.org>
24886
24887         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
24888         earlier.
24889         * doc/visibility.texi: Fix @node and @section.
24890
24891 2009-03-03  Simon Josefsson  <simon@josefsson.org>
24892
24893         * doc/gnulib.texi: Link to sections for ld version script and
24894         visibility.
24895         * doc/visibility.texi: Add @node and @section.
24896         * modules/ld-version-script: New module.
24897         * m4/ld-version-script.m4: New file.
24898         * doc/ld-version-script.texi: New file.
24899
24900 2009-03-02  David Lutterkort  <lutter@redhat.com>
24901
24902         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
24903         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24904
24905 2009-03-02  Bruno Haible  <bruno@clisp.org>
24906
24907         * doc/visibility.texi: Mention libtool's -export-symbols option.
24908
24909 2009-03-02  Jim Meyering  <meyering@redhat.com>
24910
24911         announce-gen: new option: --no-print-checksums
24912         * build-aux/announce-gen (usage): Describe it.
24913         (print_checksums): Print a newline here, not in the [*] footnote.
24914         (main): Honor it.
24915
24916 2009-03-01  Bruno Haible  <bruno@clisp.org>
24917
24918         Use socklen_t in the native Windows replacements prototypes.
24919         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
24920         instead of 'int'.
24921         * lib/getsockopt.c (rpl_getsockopt): Likewise.
24922         * lib/setsockopt.c (rpl_setsockopt): Likewise.
24923         * modules/getsockopt (Depends-on): Add socklen.
24924         * modules/setsockopt (Depends-on): Add socklen.
24925
24926 2009-03-01  Bruno Haible  <bruno@clisp.org>
24927
24928         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
24929         least 4.2.
24930
24931 2009-03-01  Eric Blake  <ebb9@byu.net>
24932             Bruno Haible  <bruno@clisp.org>
24933
24934         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
24935         error messages.
24936         * lib/wait-process.c (wait_subprocess): Omit error message about
24937         deadly signal sent to the child of termsigp != NULL.
24938
24939 2009-03-01  Eric Blake  <ebb9@byu.net>
24940
24941         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
24942
24943 2009-03-01  Bruno Haible  <bruno@clisp.org>
24944
24945         Avoid a gcc warning.
24946         * tests/test-sched.c (b): Make global.
24947         Reported by Eric Blake.
24948
24949 2009-01-19  Martin Lambers  <marlam@marlam.de>
24950
24951         Provide POSIX semantics for socket timeout options on W32.
24952         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
24953         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
24954         * modules/setsockopt: Depend on sys_time module for struct timeval.
24955         * modules/getsockopt: Depend on sys_time module for struct timeval.
24956
24957 2009-03-01  Simon Josefsson  <simon@josefsson.org>
24958
24959         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
24960         __USE_GNU, for consistency with netdb.in.h.
24961         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24962
24963 2009-03-01  Bruno Haible  <bruno@clisp.org>
24964
24965         More support for FreeMiNT.
24966         * lib/fseeko.c (rpl_fseeko): Complete last commit.
24967         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24968
24969 2009-03-01  Bruno Haible  <bruno@clisp.org>
24970
24971         More support for FreeMiNT.
24972         * lib/fpurge.c (fpurge): Correct last commit.
24973         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24974
24975 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24976
24977         Fix unportable awk script in vc-list-files.
24978         * build-aux/vc-list-files: In the replacement awk script, use
24979         substr with a second argument of 1, not zero.
24980         Report by Simon Josefsson.
24981
24982 2009-02-28  Bruno Haible  <bruno@clisp.org>
24983
24984         More support for FreeMiNT.
24985         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
24986         to FreeMiNT today.
24987         * lib/fwriting.c (fwriting): Likewise.
24988         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
24989
24990 2009-02-28  Bruno Haible  <bruno@clisp.org>
24991
24992         * tests/test-freadseek.c (main): Disable test beyond end of file on
24993         FreeMiNT.
24994         * tests/test-ftello.c (main): Likewise.
24995         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24996
24997 2009-02-28  Bruno Haible  <bruno@clisp.org>
24998
24999         Add tentative support for FreeMiNT.
25000         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25001         * lib/fpurge.c (fpurge): Likewise.
25002         * lib/freadable.c (freadable): Likewise.
25003         * lib/freading.c (freading): Likewise.
25004         * lib/freadptr.c (freadptr): Likewise.
25005         * lib/freadseek.c (freadptrinc): Likewise.
25006         * lib/fseeko.c (rpl_fseeko): Likewise.
25007         * lib/fseterr.c (fseterr): Likewise.
25008         * lib/fwritable.c (fwritable): Likewise.
25009         * lib/fwriting.c (fwriting): Likewise.
25010         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25011         Hourihane.
25012         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25013
25014 2009-02-28  Bruno Haible  <bruno@clisp.org>
25015
25016         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25017         SIGCHLD.
25018         Reported by Jim Meyering.
25019
25020 2009-02-28  Bruno Haible  <bruno@clisp.org>
25021
25022         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25023         Mention the results of these tests on various platforms.
25024         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25025         order.
25026         * doc/posix-functions/printf.texi: Likewise.
25027         * doc/posix-functions/snprintf.texi: Likewise.
25028         * doc/posix-functions/sprintf.texi: Likewise.
25029         * doc/posix-functions/vfprintf.texi: Likewise.
25030         * doc/posix-functions/vprintf.texi: Likewise.
25031         * doc/posix-functions/vsnprintf.texi: Likewise.
25032         * doc/posix-functions/vsprintf.texi: Likewise.
25033         * doc/glibc-functions/obstack_printf.texi: Likewise.
25034         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25035
25036 2009-02-28  Bruno Haible  <bruno@clisp.org>
25037
25038         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25039         Reported by Loïc Minier <lool@dooz.org>.
25040
25041 2009-02-27  Bruno Haible  <bruno@clisp.org>
25042
25043         * gnulib-tool (func_import): Make the sed expression used to create the
25044         sed script for updating the .gitignore file POSIX compliant.
25045         Reported by Eric Blake.
25046
25047 2009-02-27  Bruno Haible  <bruno@clisp.org>
25048
25049         * gnulib-tool (sed): Don't alias as "sed --posix".
25050         Reported by Eric Blake.
25051
25052 2009-02-27  Bruno Haible  <bruno@clisp.org>
25053
25054         Avoid test link errors.
25055         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
25056         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
25057         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
25058         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
25059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25060
25061 2009-02-27  Bruno Haible  <bruno@clisp.org>
25062
25063         Avoid spurious "(cached)" in configure output.
25064         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25065         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25066         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25067         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25068         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25069         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25070         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25071         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25072         Reported by Eric Blake.
25073
25074 2009-02-27  Eric Blake  <ebb9@byu.net>
25075
25076         printf: fix regression in previous patch
25077         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25078
25079 2009-02-27  Bruno Haible  <bruno@clisp.org>
25080
25081         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25082         value.
25083         * lib/stdint.in.h: Likewise.
25084         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25085
25086 2009-02-27  Eric Blake  <ebb9@byu.net>
25087
25088         doc: mention more functions added in cygwin 1.7.0
25089         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25090         addition.
25091         * doc/posix-functions/open_wmemstream.texi: Likewise.
25092         * doc/posix-functions/wcsnlen.texi: Likewise.
25093         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25094         * doc/posix-functions/wcstod.texi: Likewise.
25095         * doc/posix-functions/wcstof.texi: Likewise.
25096         * doc/posix-functions/wcstoimax.texi: Likewise.
25097         * doc/posix-functions/wcstok.texi: Likewise.
25098         * doc/posix-functions/wcstoumax.texi: Likewise.
25099
25100         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25101         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25102         * doc/posix-functions/fprintf.texi: Update.
25103         * doc/posix-functions/printf.texi: Update.
25104         * doc/posix-functions/snprintf.texi: Update.
25105         * doc/posix-functions/sprintf.texi: Update.
25106         * doc/posix-functions/vfprintf.texi: Update.
25107         * doc/posix-functions/vprintf.texi: Update.
25108         * doc/posix-functions/vsnprintf.texi: Update.
25109         * doc/posix-functions/vsprintf.texi: Update.
25110         * doc/glibc-functions/obstack_printf.texi: Update.
25111         * doc/glibc-functions/obstack_vprintf.texi: Update.
25112
25113 2009-02-26  Eric Blake  <ebb9@byu.net>
25114
25115         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25116         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25117         compilation bug by using runtime conversion.
25118         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25119         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25120         * modules/ceill-tests (Files): Use nan.h.
25121         * modules/floorl-tests (Files): Likewise.
25122         * modules/frexpl-tests (Files): Likewise.
25123         * modules/isnanl-tests (Files): Likewise.
25124         * modules/ldexpl-tests (Files): Likewise.
25125         * modules/roundl-tests (Files): Likewise.
25126         * modules/truncl-tests (Files): Likewise.
25127         * tests/test-ceill.c (main): Use a working NaN.
25128         * tests/test-floorl.c (main): Likewise.
25129         * tests/test-frexpl.c (main): Likewise.
25130         * tests/test-isnan.c (test_long_double): Likewise.
25131         * tests/test-isnanl.h (main): Likewise.
25132         * tests/test-ldexpl.h (main): Likewise.
25133         * tests/test-roundl.h (main): Likewise.
25134         * tests/test-truncl.h (main): Likewise.
25135         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25136
25137 2009-02-26  Eric Blake  <ebb9@byu.net>
25138             Bruno Haible  <bruno@clisp.org>
25139
25140         Work around a *printf bug with %ls on Solaris.
25141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25142         precision is specified, sprintf stops converting the wide string
25143         argument when the number of bytes that have been produced by this
25144         conversion equals or exceeds the precision.
25145         * doc/posix-functions/fprintf.texi: Update.
25146         * doc/posix-functions/printf.texi: Update.
25147         * doc/posix-functions/snprintf.texi: Update.
25148         * doc/posix-functions/sprintf.texi: Update.
25149         * doc/posix-functions/vfprintf.texi: Update.
25150         * doc/posix-functions/vprintf.texi: Update.
25151         * doc/posix-functions/vsnprintf.texi: Update.
25152         * doc/posix-functions/vsprintf.texi: Update.
25153         * doc/glibc-functions/obstack_printf.texi: Update.
25154         * doc/glibc-functions/obstack_vprintf.texi: Update.
25155
25156 2009-02-26  Eric Blake  <ebb9@byu.net>
25157
25158         stdlib: favor compiler check of random.h
25159         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25160         to avoid an ObjC random.h installed by Swarm.
25161
25162 2009-02-26  Bruno Haible  <bruno@clisp.org>
25163
25164         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25165         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25166         Reported by Gary V. Vaughan <gary@gnu.org>.
25167
25168 2009-02-26  Bruno Haible  <bruno@clisp.org>
25169
25170         Fix *printf behaviour regarding the %ls directive.
25171         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25172         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25173         NEED_PRINTF_DIRECTIVE_LS.
25174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25175         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25176         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25177         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25178         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25179         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25180         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25181         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25182         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25183         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25184         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25185         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25186         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25189         * doc/posix-functions/fprintf.texi: Update.
25190         * doc/posix-functions/printf.texi: Update.
25191         * doc/posix-functions/snprintf.texi: Update.
25192         * doc/posix-functions/sprintf.texi: Update.
25193         * doc/posix-functions/vfprintf.texi: Update.
25194         * doc/posix-functions/vprintf.texi: Update.
25195         * doc/posix-functions/vsnprintf.texi: Update.
25196         * doc/posix-functions/vsprintf.texi: Update.
25197         * doc/glibc-functions/obstack_printf.texi: Update.
25198         * doc/glibc-functions/obstack_vprintf.texi: Update.
25199         Reported by Eric Blake.
25200
25201 2009-02-25  Bruno Haible  <bruno@clisp.org>
25202
25203         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25204         with known value.
25205         Reported by Gary V. Vaughan <gary@gnu.org>.
25206
25207 2009-02-25  Bruno Haible  <bruno@clisp.org>
25208
25209         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25210         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25211         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25212         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25213         Reported by Gary V. Vaughan <gary@gnu.org>.
25214
25215 2009-02-25  Bruno Haible  <bruno@clisp.org>
25216
25217         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25218         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25219         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25220         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25221         Reported by Gary V. Vaughan <gary@gnu.org>.
25222
25223 2009-02-25  Eric Blake  <ebb9@byu.net>
25224
25225         tests: skip fseek/ftell tests if ungetc is broken
25226         * m4/ungetc.m4: New file.
25227         * modules/fseek-tests: Split test, so ungetc dependency is
25228         separate from rest of test.
25229         * modules/fseeko-tests: Likewise.
25230         * modules/ftell-tests: Likewise.
25231         * modules/ftello-tests: Likewise.
25232         * tests/test-fseek.c (main): Isolate ungetc dependency.
25233         * tests/test-fseeko.c (main): Likewise.
25234         * tests/test-ftell.c (main): Likewise.
25235         * tests/test-ftello.c (main): Likewise.
25236         * tests/test-fseek2.sh: New file.
25237         * tests/test-fseeko2.sh: Likewise.
25238         * tests/test-ftell2.sh: Likewise.
25239         * tests/test-ftello2.sh: Likewise.
25240
25241 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
25242
25243         test-getaddrinfo: fix usage of skip return code 77
25244         * tests/test-gettaddrinfo.c: Return skip code 77 only
25245         for first occurance of skip (4x77 is not 77)
25246
25247 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25248
25249         strtod: avoid C99 decl-after-statement
25250         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25251
25252 2009-02-24  Eric Blake  <ebb9@byu.net>
25253
25254         strtod: detect HP-UX 11.31 bug
25255         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25256         Reported by Gary V. Vaughan.
25257
25258 2009-02-23  Bruno Haible  <bruno@clisp.org>
25259
25260         Fix invalid read past end of memory block.
25261         * lib/vasnprintf.c (DCHAR_SET): Define.
25262         (local_wcslen): Define only when needed.
25263         (local_strnlen, local_wcsnlen): New functions.
25264         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25265         directives that involve a conversion ourselves.
25266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25267         wcsnlen, mbrtowc, wcrtomb.
25268         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25269         * tests/test-vasprintf-posix.c (test_function): Likewise.
25270         * tests/test-snprintf-posix.h (test_function): Likewise.
25271         * tests/test-sprintf-posix.h (test_function): Likewise.
25272         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25273
25274 2009-02-22  Bruno Haible  <bruno@clisp.org>
25275
25276         Implement new clarified decomposition of Hangul syllables.
25277         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25278         of type LTV, return only a pairwise decomposition.
25279         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25280         Likewise.
25281         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25282         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25283         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25284
25285 2009-02-22  Bruno Haible  <bruno@clisp.org>
25286
25287         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25288         zero-length results and shrink excess allocated memory.
25289         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25290         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25291         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25292         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25293         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25294         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25295         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25296         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25297         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25298         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25299         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25300         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25301
25302 2009-02-21  Bruno Haible  <bruno@clisp.org>
25303
25304         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25305         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25306         spaces after a period. Put a space between a macro name and its
25307         argument list. Trivial rewordings.
25308         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25309         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25310         (main): Return 0 explicitly.
25311
25312 2009-02-21  Bruno Haible  <bruno@clisp.org>
25313
25314         Tests for module 'uninorm/filter'.
25315         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25316         * modules/uninorm/filter-tests: New file.
25317
25318         New module 'uninorm/filter'.
25319         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25320         uninorm_filter_flush, uninorm_filter_free): New declarations.
25321         * lib/uninorm/uninorm-filter.c: New file.
25322         * modules/uninorm/filter: New file.
25323
25324 2009-02-21  Bruno Haible  <bruno@clisp.org>
25325
25326         Tests for module 'uninorm/nfkc'.
25327         * tests/uninorm/test-nfkc.c: New file.
25328         * tests/uninorm/test-u8-nfkc.c: New file.
25329         * tests/uninorm/test-u16-nfkc.c: New file.
25330         * tests/uninorm/test-u32-nfkc.c: New file.
25331         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25332         * tests/uninorm/test-u32-nfkc-big.c: New file.
25333         * modules/uninorm/nfkc-tests: New file.
25334
25335         New module 'uninorm/nfkc'.
25336         * lib/uninorm/nfkc.c: New file.
25337         * modules/uninorm/nfkc: New file.
25338
25339         Tests for module 'uninorm/nfkd'.
25340         * tests/uninorm/test-nfkd.c: New file.
25341         * tests/uninorm/test-u8-nfkd.c: New file.
25342         * tests/uninorm/test-u16-nfkd.c: New file.
25343         * tests/uninorm/test-u32-nfkd.c: New file.
25344         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25345         * tests/uninorm/test-u32-nfkd-big.c: New file.
25346         * modules/uninorm/nfkd-tests: New file.
25347
25348         New module 'uninorm/nfkd'.
25349         * lib/uninorm/nfkd.c: New file.
25350         * modules/uninorm/nfkd: New file.
25351
25352         Tests for module 'uninorm/nfc'.
25353         * tests/uninorm/test-nfc.c: New file.
25354         * tests/uninorm/test-u8-nfc.c: New file.
25355         * tests/uninorm/test-u16-nfc.c: New file.
25356         * tests/uninorm/test-u32-nfc.c: New file.
25357         * tests/uninorm/test-u32-nfc-big.sh: New file.
25358         * tests/uninorm/test-u32-nfc-big.c: New file.
25359         * modules/uninorm/nfc-tests: New file.
25360
25361         New module 'uninorm/nfc'.
25362         * lib/uninorm/nfc.c: New file.
25363         * modules/uninorm/nfc: New file.
25364
25365         Tests for module 'uninorm/nfd'.
25366         * tests/uninorm/test-nfd.c: New file.
25367         * tests/uninorm/test-u8-nfd.c: New file.
25368         * tests/uninorm/test-u16-nfd.c: New file.
25369         * tests/uninorm/test-u32-nfd.c: New file.
25370         * tests/uninorm/test-u32-nfd-big.sh: New file.
25371         * tests/uninorm/test-u32-nfd-big.c: New file.
25372         * tests/uninorm/test-u32-normalize-big.h: New file.
25373         * tests/uninorm/test-u32-normalize-big.c: New file.
25374         * tests/uninorm/NormalizationTest.txt: New file, created from
25375         Unicode 5.1.0 NormalizationTest.txt.
25376         * modules/uninorm/nfd-tests: New file.
25377
25378         New module 'uninorm/nfd'.
25379         * lib/uninorm/nfd.c: New file.
25380         * modules/uninorm/nfd: New file.
25381
25382         New module 'uninorm/u32-normalize'.
25383         * lib/uninorm/u32-normalize.c: New file.
25384         * modules/uninorm/u32-normalize: New file.
25385
25386         New module 'uninorm/u16-normalize'.
25387         * lib/uninorm/u16-normalize.c: New file.
25388         * modules/uninorm/u16-normalize: New file.
25389
25390         New module 'uninorm/u8-normalize'.
25391         * lib/uninorm/u8-normalize.c: New file.
25392         * lib/uninorm/normalize-internal.h: New file.
25393         * lib/uninorm/u-normalize-internal.h: New file.
25394         * modules/uninorm/u8-normalize: New file.
25395
25396         New module 'uninorm/decompose-internal'.
25397         * lib/uninorm/decompose-internal.c: New file.
25398         * modules/uninorm/decompose-internal: New file.
25399
25400         Tests for module 'uninorm/composition'.
25401         * tests/uninorm/test-composition.c: New file.
25402         * modules/uninorm/composition-tests: New file.
25403
25404         New module 'uninorm/composition'.
25405         * lib/uninorm/composition.c: New file.
25406         * lib/uninorm/composition-table.gperf: New file, generated by
25407         gen-uni-tables.
25408         * modules/uninorm/composition: New file.
25409
25410         Tests for module 'uninorm/compat-decomposition'.
25411         * tests/uninorm/test-compat-decomposition.c: New file.
25412         * modules/uninorm/compat-decomposition-tests: New file.
25413
25414         New module 'uninorm/compat-decomposition'.
25415         * lib/uninorm/decompose-internal.h: New file.
25416         * lib/uninorm/compat-decomposition.c: New file.
25417         * modules/uninorm/compat-decomposition: New file.
25418
25419         Tests for module 'uninorm/canonical-decomposition'.
25420         * tests/uninorm/test-canonical-decomposition.c: New file.
25421         * modules/uninorm/canonical-decomposition-tests: New file.
25422
25423         New module 'uninorm/canonical-decomposition'.
25424         * lib/uninorm/canonical-decomposition.c: New file.
25425         * modules/uninorm/canonical-decomposition: New file.
25426
25427         Tests for module 'uninorm/decomposition'.
25428         * tests/uninorm/test-decomposition.c: New file.
25429         * modules/uninorm/decomposition-tests: New file.
25430
25431         New module 'uninorm/decomposition'.
25432         * lib/uninorm/decomposition.c: New file.
25433         * modules/uninorm/decomposition: New file.
25434
25435         New module 'uninorm/decomposition-table'.
25436         * lib/uninorm/decomposition-table.h: New file.
25437         * lib/uninorm/decomposition-table.c: New file.
25438         * lib/uninorm/decomposition-table1.h: New file, generated by
25439         gen-uni-tables.
25440         * lib/uninorm/decomposition-table2.h: New file, generated by
25441         gen-uni-tables.
25442         * modules/uninorm/decomposition-table: New file.
25443
25444         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
25445         (UC_DECOMP_*): New enumeration items.
25446         (get_decomposition): New function.
25447         (struct decomp_table): New type.
25448         (output_decomposition, output_decomposition_tables): New functions.
25449         (unicode_composition_exclusions): New variable.
25450         (fill_composition_exclusions, debug_output_composition_tables): New
25451         functions.
25452         (main): Accept one more argument. Invoke fill_composition_exclusions.
25453         Output decomposition and composition tables.
25454
25455         New module 'uninorm/base'.
25456         * lib/uninorm.h: New file.
25457         * lib/unictype.h: Update comment.
25458         * modules/uninorm/base: New file.
25459
25460 2009-02-21  David Lutterkort  <lutter@redhat.com>
25461
25462         Tests for module 'safe-alloc'.
25463         * tests/test-safe-alloc.c: New file.
25464         * modules/safe-alloc-tests: New file.
25465
25466         New module 'safe-alloc'.
25467         * lib/safe-alloc.h: New file.
25468         * lib/safe-alloc.c: New file.
25469         * m4/safe-alloc.m4: New file.
25470         * modules/safe-alloc: New file.
25471         * doc/safe-alloc.texi: New file.
25472         * doc/gnulib.texi: Include it.
25473         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25474         safe-alloc.
25475
25476 2009-02-18  Bruno Haible  <bruno@clisp.org>
25477
25478         Fix link error on non-glibc systems.
25479         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
25480         variable.
25481         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25482
25483 2009-02-18  Jim Meyering  <meyering@redhat.com>
25484
25485         fts: avoid used-uninitialized error due to recent change
25486         * lib/fts.c (fts_read): Guard uses of the new member,
25487         parent->fts_n_dirs_remaining, since it's not relevant for
25488         the parent of a directory specified on the command-line.
25489
25490 2009-02-17  James Youngman  <jay@gnu.org>
25491             Bruno Haible  <bruno@clisp.org>
25492
25493         * m4/include_next.m4: Reformulate comment.
25494
25495 2009-02-16  Jim Meyering  <meyering@redhat.com>
25496
25497         fts: add #if guards so that the fts_lgpl module still builds
25498         * lib/fts.c: Guard just-added hash-table-using parts with
25499         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
25500         Reported by Simon Josefsson.
25501
25502 2009-02-15  Bruno Haible  <bruno@clisp.org>
25503
25504         * modules/array-mergesort-tests: New file.
25505         * tests/test-array-mergesort.c: New file.
25506
25507         New module 'array-mergesort'.
25508         * modules/array-mergesort: New file.
25509         * lib/array-mergesort.h: New file.
25510
25511 2009-02-15  Bruno Haible  <bruno@clisp.org>
25512
25513         Fix 2009-02-07 commit.
25514         * lib/gen-uni-tables.c (output_predicate, output_category,
25515         output_combclass, output_bidi_category, output_decimal_digit,
25516         output_digit, output_numeric, output_mirror, output_scripts,
25517         output_ident_category, output_simple_mapping): Fix format directives.
25518         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
25519
25520 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
25521
25522         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
25523         fixes are available from IBM.
25524
25525 2009-02-13  Jim Meyering  <meyering@redhat.com>
25526
25527         fts: arrange not to stat non-directories in more cases
25528         This makes GNU find (when it doesn't need to stat each file)
25529         *much* more efficient at traversing reiserfs file systems.
25530         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
25531         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
25532         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
25533         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
25534         (leaf_optimization_applies): New function.
25535         (LCO_hash, LCO_compare): New helper functions.
25536         (link_count_optimize_ok): New function.
25537         (fts_stat): Initialize new member (if dir).
25538         (fts_read): Decrement parent's fts_n_dirs_remaining count if
25539         we've just stat'ed a directory.  Skip the stat call when possible.
25540         ---
25541         Note this AFS-related exchange:
25542         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
25543         and note find's pioctl call in find/fstype.c.
25544         But that is necessary only if you want to enable the
25545         optimization for AFS, and for now, I don't.
25546
25547         fts: move a function definition "up" (no semantic change)
25548         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
25549         "up" to precede upcoming use of a related function.
25550
25551 2009-02-11  Jim Meyering  <meyering@redhat.com>
25552
25553         fts: correct internal computation of nlinks (optimization-related)
25554         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
25555         whether the current entry is a directory, so don't test it.
25556
25557 2009-02-10  Bruno Haible  <bruno@clisp.org>
25558
25559         Tests for module 'uniwbrk/ulc-wordbreaks'.
25560         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
25561         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
25562         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
25563
25564         Tests for module 'uniwbrk/u32-wordbreaks'.
25565         * modules/uniwbrk/u32-wordbreaks-tests: New file.
25566         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
25567
25568         Tests for module 'uniwbrk/u16-wordbreaks'.
25569         * modules/uniwbrk/u16-wordbreaks-tests: New file.
25570         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
25571
25572         Tests for module 'uniwbrk/u8-wordbreaks'.
25573         * modules/uniwbrk/u8-wordbreaks-tests: New file.
25574         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
25575
25576 2009-02-10  Bruno Haible  <bruno@clisp.org>
25577
25578         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
25579         property.
25580         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
25581         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
25582         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
25583
25584 2009-02-10  Simon Josefsson  <simon@josefsson.org>
25585
25586         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
25587         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
25588
25589 2009-02-10  Bruno Haible  <bruno@clisp.org>
25590
25591         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
25592         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
25593         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
25594         * lib/unilbrk/u8-possible-linebreaks.c: Update.
25595         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
25596         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
25597
25598 2009-02-09  Simon Josefsson  <simon@josefsson.org>
25599
25600         * lib/sockets.h (gl_fd_to_handle): New function.
25601
25602         * tests/test-sockets.c: Call gl_fd_to_handle.
25603
25604 2009-02-09  Bruno Haible  <bruno@clisp.org>
25605
25606         * doc/havelib.texi: Document the conventions on bi-arch systems.
25607
25608 2009-02-08  Bruno Haible  <bruno@clisp.org>
25609
25610         Document the AC_LIB_LINKFLAGS macro.
25611         * doc/havelib.texi: New file, mostly written on 2005-05-24.
25612         * doc/gnulib.texi: Include it.
25613
25614 2009-02-08  Bruno Haible  <bruno@clisp.org>
25615
25616         Fix wrong order of sections, compared to TOC.
25617         * doc/gnulib.texi: Include relocatable-maint.texi after the
25618         "Regular expressions" node, not before.
25619
25620 2009-02-08  Bruno Haible  <bruno@clisp.org>
25621
25622         Tests for module 'unicase/totitle'.
25623         * modules/unicase/totitle-tests: New file.
25624
25625         Tests for module 'unicase/tolower'.
25626         * modules/unicase/tolower-tests: New file.
25627
25628         Tests for module 'unicase/toupper'.
25629         * modules/unicase/toupper-tests: New file.
25630         * tests/unicase/test-mapping-part1.h: New file.
25631         * tests/unicase/test-mapping-part2.h: New file.
25632
25633         New module 'unicase/totitle'.
25634         * modules/unicase/totitle: New file.
25635         * lib/unicase/totitle.c: New file.
25636
25637         New module 'unicase/tolower'.
25638         * modules/unicase/tolower: New file.
25639         * lib/unicase/tolower.c: New file.
25640
25641         New module 'unicase/toupper'.
25642         * modules/unicase/toupper: New file.
25643         * lib/unicase/toupper.c: New file.
25644         * lib/unicase/simple-mapping.h: New file.
25645
25646         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
25647         (mapping_table): New structure.
25648         (output_simple_mapping): New function.
25649         (main): Invoke output_simple_mapping_test and output_simple_mapping.
25650         * modules/gen-uni-tables (Description): Update.
25651         * lib/unicase/toupper.h: New file, automatically generated by
25652         gen-uni-tables.
25653         * lib/unicase/tolower.h: New file, automatically generated by
25654         gen-uni-tables.
25655         * lib/unicase/totitle.h: New file, automatically generated by
25656         gen-uni-tables.
25657         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
25658         gen-uni-tables.
25659         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
25660         gen-uni-tables.
25661         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
25662         gen-uni-tables.
25663
25664         New module 'unicase/base'.
25665         * modules/unicase/base: New file.
25666         * lib/unicase.h: New file.
25667
25668 2009-02-08  Bruno Haible  <bruno@clisp.org>
25669
25670         New module 'uniwbrk/ulc-wordbreaks'.
25671         * modules/uniwbrk/ulc-wordbreaks: New file.
25672         * lib/uniwbrk/ulc-wordbreaks.c: New file.
25673
25674         New module 'uniwbrk/u32-wordbreaks'.
25675         * modules/uniwbrk/u32-wordbreaks: New file.
25676         * lib/uniwbrk/u32-wordbreaks.c: New file.
25677
25678         New module 'uniwbrk/u16-wordbreaks'.
25679         * modules/uniwbrk/u16-wordbreaks: New file.
25680         * lib/uniwbrk/u16-wordbreaks.c: New file.
25681
25682         New module 'uniwbrk/u8-wordbreaks'.
25683         * modules/uniwbrk/u8-wordbreaks: New file.
25684         * lib/uniwbrk/u8-wordbreaks.c: New file.
25685         * lib/uniwbrk/u-wordbreaks.h: New file.
25686
25687         New module 'uniwbrk/table'.
25688         * modules/uniwbrk/table: New file.
25689         * lib/uniwbrk/wbrktable.h: New file.
25690         * lib/uniwbrk/wbrktable.c: New file.
25691
25692         New module 'uniwbrk/wordbreak-property'.
25693         * modules/uniwbrk/wordbreak-property: New file.
25694         * lib/uniwbrk/wordbreak-property.c: New file.
25695
25696         * lib/gen-uni-tables.c (WBP_*): New enum items.
25697         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
25698         (unicode_org_wbp): New variable.
25699         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
25700         New functions.
25701         (wbp_table): New structure.
25702         (output_wbp, output_wbrk_tables): New functions.
25703         (main): Accept additional argument. Invoke fill_org_wbp,
25704         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
25705         output_wbrk_tables.
25706         * modules/gen-uni-tables (Description): Update.
25707         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
25708         gen-uni-tables.
25709
25710         New module 'uniwbrk/base'.
25711         * modules/uniwbrk/base: New file.
25712         * lib/uniwbrk.h: New file.
25713
25714 2009-02-08  Bruno Haible  <bruno@clisp.org>
25715
25716         Update to Unicode 5.1.0.
25717         * lib/gen-uni-tables.c (is_property_alphabetic): Include
25718         U+2185..U+2188.
25719         (is_property_default_ignorable_code_point): Don't include characters
25720         of category Cc or Cs and not-a-characters.
25721         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
25722         U+0D79, U+109E, U+109F, U+A60C.
25723         * lib/unictype/bidi_of.h: Regenerated.
25724         * lib/unictype/blocks.h: Regenerated.
25725         * lib/unictype/categ_C.h: Regenerated.
25726         * lib/unictype/categ_Cf.h: Regenerated.
25727         * lib/unictype/categ_Cn.h: Regenerated.
25728         * lib/unictype/categ_L.h: Regenerated.
25729         * lib/unictype/categ_Ll.h: Regenerated.
25730         * lib/unictype/categ_Lm.h: Regenerated.
25731         * lib/unictype/categ_Lo.h: Regenerated.
25732         * lib/unictype/categ_Lu.h: Regenerated.
25733         * lib/unictype/categ_M.h: Regenerated.
25734         * lib/unictype/categ_Mc.h: Regenerated.
25735         * lib/unictype/categ_Me.h: Regenerated.
25736         * lib/unictype/categ_Mn.h: Regenerated.
25737         * lib/unictype/categ_N.h: Regenerated.
25738         * lib/unictype/categ_Nd.h: Regenerated.
25739         * lib/unictype/categ_Nl.h: Regenerated.
25740         * lib/unictype/categ_No.h: Regenerated.
25741         * lib/unictype/categ_P.h: Regenerated.
25742         * lib/unictype/categ_Pd.h: Regenerated.
25743         * lib/unictype/categ_Pe.h: Regenerated.
25744         * lib/unictype/categ_Pf.h: Regenerated.
25745         * lib/unictype/categ_Pi.h: Regenerated.
25746         * lib/unictype/categ_Po.h: Regenerated.
25747         * lib/unictype/categ_Ps.h: Regenerated.
25748         * lib/unictype/categ_S.h: Regenerated.
25749         * lib/unictype/categ_Sk.h: Regenerated.
25750         * lib/unictype/categ_Sm.h: Regenerated.
25751         * lib/unictype/categ_So.h: Regenerated.
25752         * lib/unictype/categ_of.h: Regenerated.
25753         * lib/unictype/combining.h: Regenerated.
25754         * lib/unictype/ctype_alnum.h: Regenerated.
25755         * lib/unictype/ctype_alpha.h: Regenerated.
25756         * lib/unictype/ctype_graph.h: Regenerated.
25757         * lib/unictype/ctype_lower.h: Regenerated.
25758         * lib/unictype/ctype_print.h: Regenerated.
25759         * lib/unictype/ctype_punct.h: Regenerated.
25760         * lib/unictype/ctype_upper.h: Regenerated.
25761         * lib/unictype/decdigit.h: Regenerated.
25762         * lib/unictype/digit.h: Regenerated.
25763         * lib/unictype/mirror.h: Regenerated.
25764         * lib/unictype/numeric.h: Regenerated.
25765         * lib/unictype/pr_alphabetic.h: Regenerated.
25766         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
25767         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
25768         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
25769         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
25770         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
25771         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
25772         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
25773         * lib/unictype/pr_combining.h: Regenerated.
25774         * lib/unictype/pr_dash.h: Regenerated.
25775         * lib/unictype/pr_decimal_digit.h: Regenerated.
25776         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
25777         * lib/unictype/pr_deprecated.h: Regenerated.
25778         * lib/unictype/pr_diacritic.h: Regenerated.
25779         * lib/unictype/pr_extender.h: Regenerated.
25780         * lib/unictype/pr_format_control.h: Regenerated.
25781         * lib/unictype/pr_grapheme_base.h: Regenerated.
25782         * lib/unictype/pr_grapheme_extend.h: Regenerated.
25783         * lib/unictype/pr_grapheme_link.h: Regenerated.
25784         * lib/unictype/pr_id_continue.h: Regenerated.
25785         * lib/unictype/pr_id_start.h: Regenerated.
25786         * lib/unictype/pr_ideographic.h: Regenerated.
25787         * lib/unictype/pr_ignorable_control.h: Regenerated.
25788         * lib/unictype/pr_lowercase.h: Regenerated.
25789         * lib/unictype/pr_math.h: Regenerated.
25790         * lib/unictype/pr_numeric.h: Regenerated.
25791         * lib/unictype/pr_other_alphabetic.h: Regenerated.
25792         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
25793         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
25794         * lib/unictype/pr_other_id_continue.h: Regenerated.
25795         * lib/unictype/pr_other_lowercase.h: Regenerated.
25796         * lib/unictype/pr_other_math.h: Regenerated.
25797         * lib/unictype/pr_punctuation.h: Regenerated.
25798         * lib/unictype/pr_sentence_terminal.h: Regenerated.
25799         * lib/unictype/pr_soft_dotted.h: Regenerated.
25800         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
25801         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
25802         * lib/unictype/pr_unified_ideograph.h: Regenerated.
25803         * lib/unictype/pr_uppercase.h: Regenerated.
25804         * lib/unictype/pr_xid_continue.h: Regenerated.
25805         * lib/unictype/pr_xid_start.h: Regenerated.
25806         * lib/unictype/pr_zero_width.h: Regenerated.
25807         * lib/unictype/scripts.h: Regenerated.
25808         * lib/unictype/scripts_byname.gperf: Regenerated.
25809         * lib/unictype/sy_java_ident.h: Regenerated.
25810         * lib/unilbrk/lbrkprop1.h: Regenerated.
25811         * lib/unilbrk/lbrkprop2.h: Regenerated.
25812         * tests/unictype/test-categ_C.c: Regenerated.
25813         * tests/unictype/test-categ_Cf.c: Regenerated.
25814         * tests/unictype/test-categ_Cn.c: Regenerated.
25815         * tests/unictype/test-categ_L.c: Regenerated.
25816         * tests/unictype/test-categ_Ll.c: Regenerated.
25817         * tests/unictype/test-categ_Lm.c: Regenerated.
25818         * tests/unictype/test-categ_Lo.c: Regenerated.
25819         * tests/unictype/test-categ_Lu.c: Regenerated.
25820         * tests/unictype/test-categ_M.c: Regenerated.
25821         * tests/unictype/test-categ_Mc.c: Regenerated.
25822         * tests/unictype/test-categ_Me.c: Regenerated.
25823         * tests/unictype/test-categ_Mn.c: Regenerated.
25824         * tests/unictype/test-categ_N.c: Regenerated.
25825         * tests/unictype/test-categ_Nd.c: Regenerated.
25826         * tests/unictype/test-categ_Nl.c: Regenerated.
25827         * tests/unictype/test-categ_No.c: Regenerated.
25828         * tests/unictype/test-categ_P.c: Regenerated.
25829         * tests/unictype/test-categ_Pd.c: Regenerated.
25830         * tests/unictype/test-categ_Pe.c: Regenerated.
25831         * tests/unictype/test-categ_Pf.c: Regenerated.
25832         * tests/unictype/test-categ_Pi.c: Regenerated.
25833         * tests/unictype/test-categ_Po.c: Regenerated.
25834         * tests/unictype/test-categ_Ps.c: Regenerated.
25835         * tests/unictype/test-categ_S.c: Regenerated.
25836         * tests/unictype/test-categ_Sk.c: Regenerated.
25837         * tests/unictype/test-categ_Sm.c: Regenerated.
25838         * tests/unictype/test-categ_So.c: Regenerated.
25839         * tests/unictype/test-ctype_alnum.c: Regenerated.
25840         * tests/unictype/test-ctype_alpha.c: Regenerated.
25841         * tests/unictype/test-ctype_graph.c: Regenerated.
25842         * tests/unictype/test-ctype_lower.c: Regenerated.
25843         * tests/unictype/test-ctype_print.c: Regenerated.
25844         * tests/unictype/test-ctype_punct.c: Regenerated.
25845         * tests/unictype/test-ctype_upper.c: Regenerated.
25846         * tests/unictype/test-decdigit.h: Regenerated.
25847         * tests/unictype/test-digit.h: Regenerated.
25848         * tests/unictype/test-numeric.h: Regenerated.
25849         * tests/unictype/test-pr_alphabetic.c: Regenerated.
25850         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
25851         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
25852         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
25853         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
25854         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
25855         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
25856         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
25857         * tests/unictype/test-pr_combining.c: Regenerated.
25858         * tests/unictype/test-pr_dash.c: Regenerated.
25859         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
25860         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
25861         * tests/unictype/test-pr_deprecated.c: Regenerated.
25862         * tests/unictype/test-pr_diacritic.c: Regenerated.
25863         * tests/unictype/test-pr_extender.c: Regenerated.
25864         * tests/unictype/test-pr_format_control.c: Regenerated.
25865         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
25866         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
25867         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
25868         * tests/unictype/test-pr_id_continue.c: Regenerated.
25869         * tests/unictype/test-pr_id_start.c: Regenerated.
25870         * tests/unictype/test-pr_ideographic.c: Regenerated.
25871         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
25872         * tests/unictype/test-pr_lowercase.c: Regenerated.
25873         * tests/unictype/test-pr_math.c: Regenerated.
25874         * tests/unictype/test-pr_numeric.c: Regenerated.
25875         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
25876         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
25877         Regenerated.
25878         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
25879         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
25880         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
25881         * tests/unictype/test-pr_other_math.c: Regenerated.
25882         * tests/unictype/test-pr_punctuation.c: Regenerated.
25883         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
25884         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
25885         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
25886         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
25887         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
25888         * tests/unictype/test-pr_uppercase.c: Regenerated.
25889         * tests/unictype/test-pr_xid_continue.c: Regenerated.
25890         * tests/unictype/test-pr_xid_start.c: Regenerated.
25891         * tests/unictype/test-pr_zero_width.c: Regenerated.
25892
25893         Update to Unicode 5.1.0.
25894         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
25895         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
25896         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
25897         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
25898         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
25899         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
25900         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
25901         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
25902         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
25903         (nonspacing_table_ind): Update.
25904         * tests/uniwidth/test-uc_width2.sh: Update expected result.
25905
25906         Update to Unicode 5.1.0.
25907         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
25908         code transform.
25909         * lib/uniname/uniname.c (unicode_character_name,
25910         unicode_name_character): Add the range 0x1Fxxx to the code transform.
25911         * lib/uniname/uninames.h: Regenerated.
25912         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
25913
25914 2009-02-07  Bruno Haible  <bruno@clisp.org>
25915
25916         Merge gen-ctype and gen-lbrk into a single program.
25917         * lib/gen-uni-tables.c: New file, incorporating
25918         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
25919         Add directory prefixes to the names of the generated files.
25920         * lib/unictype/gen-ctype.c: Remove file.
25921         * lib/unilbrk/gen-lbrk.c: Remove file.
25922         * modules/gen-uni-tables: New file.
25923         * modules/unictype/gen-ctype: Remove file.
25924         * modules/unilbrk/gen-lbrk: Remove file.
25925
25926 2009-02-07  Bruno Haible  <bruno@clisp.org>
25927
25928         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
25929
25930         New module 'unistr/u32-strcoll'.
25931         * modules/unistr/u32-strcoll: New file.
25932         * lib/unistr/u32-strcoll.c: New file.
25933
25934         New module 'unistr/u16-strcoll'.
25935         * modules/unistr/u16-strcoll: New file.
25936         * lib/unistr/u16-strcoll.c: New file.
25937
25938         New module 'unistr/u8-strcoll'.
25939         * modules/unistr/u8-strcoll: New file.
25940         * lib/unistr/u8-strcoll.c: New file.
25941         * lib/unistr/u-strcoll.h: New file.
25942
25943 2009-02-07  Bruno Haible  <bruno@clisp.org>
25944
25945         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
25946         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
25947         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
25948         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
25949         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
25950         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
25951
25952 2009-02-07  Bruno Haible  <bruno@clisp.org>
25953
25954         Make 64-bit clean.
25955         * lib/unictype/gen-ctype.c (output_predicate, output_category,
25956         output_combclass, output_bidi_category, output_decimal_digit,
25957         output_digit, output_numeric, output_mirror, output_scripts,
25958         output_ident_category): Use proper width specifier in format strings.
25959
25960 2009-02-07  Bruno Haible  <bruno@clisp.org>
25961
25962         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
25963         failure behaviour.
25964
25965 2009-02-07  Jim Meyering  <meyering@redhat.com>
25966
25967         regex: avoid compilation failure with upcoming gcc-4.4
25968         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
25969         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
25970         "... error: integer overflow in preprocessor expression".
25971
25972 2009-02-05  Ben Pfaff  <blp@gnu.org>
25973
25974         Fix link errors on Windows when close module is used.
25975         * modules/close: Add $(LIB_CLOSE) to Link section.
25976         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
25977         $(LIB_CLOSE) on Windows.
25978
25979 2009-02-05  Jim Meyering  <meyering@redhat.com>
25980
25981         still avoid unused-parameter warnings, but do it cleanly
25982         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
25983         (get_fs_usage): Cast to void instead.
25984         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
25985         (dev_from_mount_options, read_file_system_list): Cast to void.
25986         Prompted by Bruno Haible.
25987
25988 2009-02-04  Jim Meyering  <meyering@redhat.com>
25989
25990         fsusage.c: correct copyright year
25991         * lib/fsusage.c: Reflect year in which the change is pushed into
25992
25993         avoid misc. warnings
25994         * lib/fsusage.c (UNUSED_PARAM): Define.
25995         (get_fs_usage): Mark parameter "disk" as unused.
25996         * lib/getugroups.c (getgrent): Use "void" in prototype.
25997         * lib/mountlist.c: Mark unused parameters.
25998         (read_file_system_list): Declare a local with "const".
25999         * lib/nanosleep.c (getnow): Declare static.
26000         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26001
26002         dirfd: set errno upon failure
26003         * lib/dirfd.c: Include <errno.h>.
26004         Set errno to ENOTSUP when returning -1.
26005         * modules/dirfd (Depends-on): Add errno.
26006         Suggested by John Kodis <kodis@comcast.net>.
26007
26008 2009-02-01  Bruno Haible  <bruno@clisp.org>
26009
26010         Don't assume sizeof (long) >= sizeof (void *).
26011         * lib/memcmp.c: Include stdint.h.
26012         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26013         srcp2 to 'const byte *'.
26014         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26015         types to uintptr_t.
26016         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26017         * modules/memcmp (Depends-on): Add stdint.
26018         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26019
26020 2009-01-30  Eric Blake  <ebb9@byu.net>
26021
26022         fix more require-before-expand issues
26023         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26024         expand, AC_PROG_AWK.
26025         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26026
26027 2009-01-28  Eric Blake  <ebb9@byu.net>
26028
26029         version-etc: use consistent URL formatting
26030         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26031         Improve formatting.  Use fputs for string without %.
26032
26033 2009-01-28  Jim Meyering  <meyering@redhat.com>
26034
26035         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26036         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26037         "underquoted definition of NAME" from autoconf-2.59.
26038
26039 2009-01-28  Bruno Haible  <bruno@clisp.org>
26040
26041         * doc/gnulib.texi: Add "Obsolete modules" to index.
26042
26043 2009-01-28  Jim Meyering  <meyering@redhat.com>
26044
26045         useless-if-before-free: recognize more variants
26046         * build-aux/useless-if-before-free: Also recognize e.g.,
26047         if (NULL != p) free (p);
26048
26049 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
26050
26051         test-getaddrinfo: skip (don't fail) this test when there's no network
26052         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
26053         on the presumption that it means you lack network access.
26054
26055 2009-01-26  Jim Meyering  <meyering@redhat.com>
26056
26057         fflush: avoid warnings on modern systems
26058         * lib/fflush.c (rpl_fflush): Move declarations of locals,
26059         pos and result, into scopes where they're used.
26060
26061 2009-01-26  Eric Blake  <ebb9@byu.net>
26062
26063         Silence warning reintroduced by recent extensions patch.
26064         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26065         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26066         autoconf.
26067
26068         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26069         * m4/00gnulib.m4: New file.
26070         * gnulib-tool (func_get_filelist): Always use it.
26071         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26072         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26073
26074 2009-01-25  Bruno Haible  <bruno@clisp.org>
26075
26076         Make test-quotearg work on MacOS X and AIX.
26077         * tests/test-quotearg.sh: New file.
26078         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26079         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26080         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26081         include <libintl.h>.
26082         (fake_locale): Remove variable.
26083         (gettext, dgettext, dcgettext): Remove functions.
26084         (main): Instead of setting a fake locale, set a real locale. Call
26085         textdomain and bindtextdomain.
26086         * modules/quotearg-tests (Files): Add the new files.
26087         (Depends-on): Add gettext, setenv, unsetenv.
26088         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26089         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26090         Augment TESTS_ENVIRONMENT.
26091
26092 2009-01-25  Bruno Haible  <bruno@clisp.org>
26093
26094         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26095         fr_FR.ISO8859-1 locale on MacOS X.
26096         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26097         ja_JP.eucJP locale on MacOS X.
26098         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26099         zh_CN.GB18030 locale on MacOS X.
26100
26101 2009-01-25  Bruno Haible  <bruno@clisp.org>
26102
26103         Avoid link errors on MacOS X 10.3.
26104         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26105         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26106
26107 2009-01-25  Bruno Haible  <bruno@clisp.org>
26108
26109         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26110         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26111         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26112         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26113         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26114         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26115         posix_spawnattr_init, posix_spawnattr_setsigmask,
26116         posix_spawnattr_setflags, posix_spawnattr_destroy.
26117
26118         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26119         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26120         * modules/execute (Files): Remove m4/posix_spawn.m4.
26121         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26122         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26123         posix_spawnattr_init, posix_spawnattr_setsigmask,
26124         posix_spawnattr_setflags, posix_spawnattr_destroy.
26125
26126 2009-01-25  Bruno Haible  <bruno@clisp.org>
26127
26128         * lib/glthread/threadlib.c: Include <stdlib.h>.
26129
26130 2009-01-25  Bruno Haible  <bruno@clisp.org>
26131
26132         * lib/glthread/threadlib.c (dummy): New declaration.
26133
26134 2009-01-25  Bruno Haible  <bruno@clisp.org>
26135
26136         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26137         multibyte characters also for the GB18030 encoding. Don't crash when
26138         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26139
26140 2009-01-25  Bruno Haible  <bruno@clisp.org>
26141
26142         Avoid redefining 'struct random_data' on OSF/1 5.1.
26143         * lib/stdlib.in.h: Include <random.h> if it exists.
26144         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26145         HAVE_RANDOM_H. Include <random.h> when testing whether
26146         'struct random_data' exists.
26147         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26148
26149 2009-01-25  Bruno Haible  <bruno@clisp.org>
26150
26151         Don't install charset.alias on MacOS X >= 10.3.
26152         * lib/localcharset.c (DARWIN7): New macro.
26153         (get_charset_aliases): Hardcode the result for Darwin7.
26154         * modules/localcharset (install-exec-local): Don't install
26155         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26156
26157 2009-01-25  Bruno Haible  <bruno@clisp.org>
26158
26159         Don't install charset.alias on mingw and Cygwin.
26160         * modules/localcharset (install-exec-local): Don't install
26161         charset.alias on mingw and Cygwin, if the file does not yet exist.
26162         The result for these platforms is hardcoded in localcharset.c.
26163
26164 2009-01-25  Bruno Haible  <bruno@clisp.org>
26165
26166         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26167         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26168         before requiring AC_USE_SYSTEM_EXTENSIONS.
26169
26170 2009-01-25  Jim Meyering  <meyering@redhat.com>
26171
26172         c-strtod: avoid warnings
26173         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26174         "assignment discards qualifiers from pointer target type" warnings.
26175
26176 2009-01-24  Bruno Haible  <bruno@clisp.org>
26177
26178         Add support for non-UTF-8 locales on MacOS X.
26179         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26180         canonical encodings. For Darwin 7 and newer, don't map traditional
26181         encodings to UTF-8.
26182         Reported by Vincent Lefevre <vincent@vinc17.org>
26183         at <http://savannah.gnu.org/bugs/?25235>.
26184
26185 2009-01-24  Bruno Haible  <bruno@clisp.org>
26186
26187         * doc/gnulib.texi (Obsolete modules): New section.
26188         Reported by Mike Frysinger <vapier@gentoo.org>.
26189
26190 2009-01-24  Bruno Haible  <bruno@clisp.org>
26191
26192         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26193         (%.dvi): New rule.
26194
26195 2009-01-24  Bruno Haible  <bruno@clisp.org>
26196
26197         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26198         Reported by Eric Blake.
26199
26200 2009-01-24  Bruno Haible  <bruno@clisp.org>
26201
26202         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26203         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26204         Reported by Gary V. Vaughan <gary@gnu.org>.
26205
26206 2009-01-24  Bruno Haible  <bruno@clisp.org>
26207
26208         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26209
26210 2009-01-23  Bruno Haible  <bruno@clisp.org>
26211
26212         Make c-strtod, c-strtold usable in libraries.
26213         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26214         (C_STRTOD): Call strdup instead of xstrdup.
26215         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26216         * modules/c-strtold (Depends-on): Likewise.
26217         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26218         * NEWS: Mention the change.
26219         Reported by Michael Gold <mgold@ncf.ca>.
26220
26221 2009-01-23  Jim Meyering  <meyering@redhat.com>
26222
26223         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26224         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26225         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26226
26227 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26228
26229         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26230         GNU CoreUtils.
26231         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26232         * modules/version-etc (Description): Update.
26233
26234 2009-01-22  Bruno Haible  <bruno@clisp.org>
26235
26236         Cache the C locale object.
26237         * lib/c-strtod.c (c_locale_cache): New variable.
26238         (c_locale): New function.
26239         (C_STRTOD): Use it, and don't call freelocale.
26240         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26241         Suggested by Paolo Bonzini.
26242
26243 2009-01-21  Bruno Haible  <bruno@clisp.org>
26244
26245         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26246         conditions other than overflow.
26247
26248 2009-01-21  Bruno Haible  <bruno@clisp.org>
26249
26250         * lib/c-strtod.c: Include errno.h.
26251         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26252         value from STRTOD_L and STRTOD.
26253
26254 2009-01-21  Bruno Haible  <bruno@clisp.org>
26255         and Jim Meyering  <meyering@redhat.com>
26256
26257         nanosleep: skip configure test (fail it) for apple universal builds
26258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26259         universal builds, assume that nanosleep does not work.
26260         * modules/nanosleep (Depends-on): Add multiarch.
26261
26262         mktime: skip configure test (fail it) for apple universal builds
26263         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26264         universal builds, assume that mktime does not work.
26265         * modules/mktime (Depends-on): Add multiarch.
26266
26267 2009-01-21  Eric Blake  <ebb9@byu.net>
26268
26269         multiarch: avoid expand-before-require warning
26270         * modules/multiarch (configure.ac): Require, rather than expand,
26271         gl_MULTIARCH.
26272         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26273         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26274         enforce that all clients require it.  Partial reversion of
26275         2008-12-29 patch.
26276
26277         error: avoid expand-before-require warning
26278         * modules/errno (configure.ac): Require, rather than expand,
26279         gl_HEADER_ERRNO_H.
26280         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26281         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26282         enforce that all clients require it.
26283
26284         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26285         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26286         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26287         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26288
26289 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26290
26291         Revert:
26292         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26293
26294         regex: do not depend on obsolete modules.
26295         * modules/regex: Remove memcmp and memmove.
26296
26297 2009-01-20  Bruno Haible  <bruno@clisp.org>
26298
26299         Make the 'link' module link on Windows NT 4.
26300         * lib/link.c (_WIN32_WINNT): Don't define.
26301         (CreateHardLinkFuncType): New type.
26302         (CreateHardLinkFunc, initialized): New variables.
26303         (initialize): New function.
26304         (link): Invoke CreateHardLink indirectly through the function pointer.
26305
26306 2009-01-20  Bruno Haible  <bruno@clisp.org>
26307
26308         Fix compilation failure on mingw.
26309         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26310
26311 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26312
26313         * doc/c-strtod.texi: Mention a couple of restrictions.
26314
26315 2009-01-20  Jim Meyering  <meyering@redhat.com>
26316
26317         gettimeofday: move more declarations out of functions
26318         * lib/gettimeofday.c: Move extern declarations of tzset and
26319         gmtime out of containing functions.  Prompted by Bruno Haible.
26320
26321 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26322
26323         regex: do not depend on obsolete modules.
26324         * modules/regex: Remove memcmp and memmove.
26325
26326 2009-01-19  Bruno Haible  <bruno@clisp.org>
26327
26328         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26329         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26330         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26331         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26332         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26333
26334 2009-01-19  Bruno Haible  <bruno@clisp.org>
26335
26336         * tests/test-link.c: Include <errno.h>.
26337         (main): Exit with code 77 when a hard link cannot be created due to
26338         the file system.
26339         * tests/test-link.sh: Skip test when a hard link cannot be created due
26340         to the file system.
26341         Suggested by Eric Blake.
26342
26343 2009-01-19  Martin Lambers  <marlam@marlam.de>
26344
26345         * modules/link-tests: New file.
26346         * tests/test-link.sh: New file.
26347         * tests/test-link.c: New file.
26348
26349 2009-01-19  Eric Blake  <ebb9@byu.net>
26350
26351         doc: mention another function added in cygwin 1.7.0
26352         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26353         Another new function in cygwin 1.7.
26354
26355 2009-01-19  Bruno Haible  <bruno@clisp.org>
26356
26357         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26358         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26359         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26360         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26361         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26362         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26363         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26364         * m4/md4.m4 (gl_MD4): Likewise.
26365         * m4/md5.m4 (gl_MD5): Likewise.
26366         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26367         * m4/sha1.m4 (gl_SHA1): Likewise.
26368         * m4/sha256.m4 (gl_SHA256): Likewise.
26369         * m4/sha512.m4 (gl_SHA512): Likewise.
26370
26371 2009-01-19  Bruno Haible  <bruno@clisp.org>
26372
26373         * modules/uniname/uniname-tests (Depends-on): Add progname.
26374         * tests/uniname/test-uninames.c: Include progname.h.
26375         (main): Call set_program_name.
26376
26377         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26378         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26379         (main): Call set_program_name.
26380
26381         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
26382         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
26383         (main): Call set_program_name.
26384
26385         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
26386         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
26387         (main): Call set_program_name.
26388
26389         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
26390         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
26391         (main): Call set_program_name.
26392
26393         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
26394         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
26395         (main): Call set_program_name.
26396
26397         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
26398         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
26399         (main): Call set_program_name.
26400
26401         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
26402         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
26403         (main): Call set_program_name.
26404
26405         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
26406         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
26407         (main): Call set_program_name.
26408
26409 2009-01-19  Eric Blake  <ebb9@byu.net>
26410
26411         test-unistd: test previous patch
26412         * tests/test-unistd.c: Test *_FILENO macros.
26413
26414         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
26415         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26416         Guarantee a definition.
26417         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
26418         * modules/unistd-safer (Depends-on): Add dependency on unistd.
26419         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
26420         * lib/dup-safer.c (STDERR_FILENO): Likewise.
26421         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26422         Likewise.
26423         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
26424         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
26425         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26426         Likewise.
26427         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
26428         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
26429         (STDERR_FILENO): Likewise.
26430         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
26431         (STDERR_FILENO): Likewise.
26432         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
26433         (STDERR_FILENO): Likewise.
26434         Reported by Elbert Pol.
26435
26436 2009-01-19  Eric Blake  <ebb9@byu.net>
26437
26438         doc: mention more functions added in cygwin 1.7.0
26439         * doc/posix-functions/abort.texi (abort): Update wording related
26440         to cygwin.
26441         * doc/posix-functions/daylight.texi (daylight): Likewise.
26442         * doc/posix-functions/optarg.texi (optarg): Likewise.
26443         * doc/posix-functions/optarg.texi (opterr): Likewise.
26444         * doc/posix-functions/optarg.texi (optind): Likewise.
26445         * doc/posix-functions/optarg.texi (optopt): Likewise.
26446         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
26447         worked in 1.5.x, and was withdrawn in 1.7.
26448         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
26449         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
26450         cygwin versions.
26451         * doc/posix-functions/perror.texi (perror): Likewise.
26452         * doc/posix-functions/printf.texi (printf): Likewise.
26453         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26454         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26455         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
26456         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
26457         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26458         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
26459         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26460         Likewise.
26461         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26462         Likewise.
26463         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
26464         this function.
26465         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
26466         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
26467         Likewise.
26468         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
26469         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
26470         * doc/posix-functions/confstr.texi (confstr): Likewise.
26471         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
26472         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
26473         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
26474         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
26475         * doc/posix-functions/fputws.texi (fputws): Likewise.
26476         * doc/posix-functions/fwide.texi (fwide): Likewise.
26477         * doc/posix-functions/getwc.texi (getwc): Likewise.
26478         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
26479         * doc/posix-functions/putwc.texi (putwc): Likewise.
26480         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
26481         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
26482         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
26483         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
26484         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
26485         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
26486         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
26487         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
26488         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
26489         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
26490         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
26491
26492 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26493
26494         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
26495         * lib/ioctl.c: Include <sys/ioctl.h>.
26496
26497 2009-01-19  Simon Josefsson  <simon@josefsson.org>
26498
26499         * modules/getdate-tests (Depends-on): Add progname.
26500         * tests/test-getdate.c: Use progname module, to avoid link errors
26501         on non-glibc systems.
26502
26503 2009-01-18  Simon Josefsson  <simon@josefsson.org>
26504
26505         * modules/filenamecat-tests (Depends-on): Add progname.
26506         * modules/fstrcmp-tests (Depends-on): Likewise.
26507
26508         * tests/test-filenamecat.c: Use progname module, to avoid link
26509         errors on non-glibc systems.
26510         * tests/test-fstrcmp.c: Likewise.
26511
26512 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26513
26514         gettimeofday: avoid warning: nested extern declaration of 'localtime'
26515         * lib/gettimeofday.c: Move extern declaration out of function.
26516
26517 2009-01-18  Bruno Haible  <bruno@clisp.org>
26518
26519         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
26520         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
26521         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
26522
26523 2009-01-18  Bruno Haible  <bruno@clisp.org>
26524
26525         * lib/strftime.c (MEMPCPY): Remove unused macro.
26526         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
26527
26528 2009-01-18  Martin Lambers  <marlam@marlam.de>
26529
26530         New module 'link'.
26531         * lib/unistd.in.h (link): New declaration.
26532         * lib/link.c: New file.
26533         * m4/link.m4: New file.
26534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
26535         HAVE_LINK.
26536         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
26537         * modules/link: New file.
26538         * doc/posix-functions/link.texi: Mention the new module.
26539
26540 2009-01-18  Bruno Haible  <bruno@clisp.org>
26541
26542         * tests/test-avltree_list.c (main): Call set_program_name.
26543         * tests/test-avltree_oset.c (main): Likewise.
26544         * tests/test-obstack-printf.c: Include progname.h.
26545         (main): Call set_program_name.
26546         * tests/test-quotearg.c: Include progname.h.
26547         (main): Call set_program_name.
26548         * tests/test-xmemdup0.c: Include progname.h.
26549         (main): Call set_program_name.
26550
26551 2009-01-18  Bruno Haible  <bruno@clisp.org>
26552
26553         New module 'alphasort'.
26554         * lib/dirent.in.h (alphasort): New declaration.
26555         * lib/alphasort.c: New file, from glibc with modifications.
26556         * m4/alphasort.m4: New file.
26557         * modules/alphasort: New file.
26558         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
26559         HAVE_ALPHASORT.
26560         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
26561         HAVE_ALPHASORT.
26562         * doc/posix-functions/alphasort.texi: Mention the new module and the
26563         portability problems.
26564
26565 2009-01-18  Bruno Haible  <bruno@clisp.org>
26566
26567         New module 'scandir'.
26568         * lib/dirent.in.h (scandir): New declaration.
26569         * lib/scandir.c: New file, from glibc with modifications.
26570         * m4/scandir.m4: New file.
26571         * modules/scandir: New file.
26572         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
26573         HAVE_SCANDIR.
26574         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
26575         HAVE_SCANDIR.
26576         * doc/posix-functions/scandir.texi: Mention the new module and the
26577         portability problems.
26578
26579 2009-01-17  Bruno Haible  <bruno@clisp.org>
26580
26581         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
26582         Update documentation.
26583         (func_remove_suffix): Escape all dots in the suffix. Update
26584         documentation.
26585         (func_filter_filelist): Update documentation.
26586         Reported by Ralf Wildenhues.
26587
26588 2009-01-17  Bruno Haible  <bruno@clisp.org>
26589
26590         * modules/dprintf-posix-tests: New file.
26591         * tests/test-dprintf-posix.sh: New file.
26592         * tests/test-dprintf-posix.c: New file.
26593
26594         New modules 'dprintf', 'dprintf-posix'.
26595         * lib/stdio.in.h (dprintf): New declaration.
26596         * lib/dprintf.c: New file.
26597         * m4/dprintf.m4: New file.
26598         * m4/dprintf-posix.m4: New file.
26599         * modules/dprintf: New file.
26600         * modules/dprintf-posix: New file.
26601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
26602         HAVE_DPRINTF, REPLACE_DPRINTF.
26603         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
26604         HAVE_DPRINTF, REPLACE_DPRINTF.
26605         * doc/posix-functions/dprintf.texi: Mention the new modules.
26606
26607 2009-01-17  Bruno Haible  <bruno@clisp.org>
26608
26609         * modules/vdprintf-posix-tests: New file.
26610         * tests/test-vdprintf-posix.sh: New file.
26611         * tests/test-vdprintf-posix.c: New file.
26612
26613         New modules 'vdprintf', 'vdprintf-posix'.
26614         * lib/stdio.in.h (vdprintf): New declaration.
26615         * lib/vdprintf.c: New file.
26616         * m4/vdprintf.m4: New file.
26617         * m4/vdprintf-posix.m4: New file.
26618         * modules/vdprintf: New file.
26619         * modules/vdprintf-posix: New file.
26620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
26621         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26622         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
26623         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26624         * doc/posix-functions/vdprintf.texi: Mention the new modules.
26625
26626 2009-01-17  Bruno Haible  <bruno@clisp.org>
26627
26628         Fix replacement of fopen on mingw.
26629         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
26630         mingw.
26631
26632 2009-01-17  Bruno Haible  <bruno@clisp.org>
26633
26634         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
26635         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
26636
26637 2009-01-17  Bruno Haible  <bruno@clisp.org>
26638
26639         Avoid test-fflush2.sh failure on mingw.
26640         * tests/test-fflush2.c: Include binary-io.h.
26641         (main): Put standard input into binary mode.
26642         * modules/fflush-tests (Depends-on): Add binary-io.
26643
26644 2009-01-17  Bruno Haible  <bruno@clisp.org>
26645
26646         * lib/wchar.in.h: In another particular situation, include only the
26647         system's <wchar.h> file.
26648         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
26649         Reported by Albert Chin-A-Young <china@thewrittenword.com>
26650         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
26651
26652 2009-01-17  Bruno Haible  <bruno@clisp.org>
26653
26654         Support for stripping executables in --enable-relocatable.
26655         * build-aux/install-reloc: Expect one more argument, or an environment
26656         variable RELOC_STRIP_PROG. If set, strip the destination program and
26657         its wrapper.
26658         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
26659         RELOC_STRIP_PROG.
26660         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
26661         to set RELOCATABLE_STRIP.
26662         * NEWS: Mention the new Makefile requirement.
26663
26664 2009-01-17  Bruno Haible  <bruno@clisp.org>
26665
26666         * build-aux/install-reloc: Remove debugging information left over by
26667         C compiler on MacOS X.
26668
26669 2009-01-17  Bruno Haible  <bruno@clisp.org>
26670
26671         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
26672         * lib/progreloc.c (find_executable): Fix type of pointer passed to
26673         _NSGetExecutablePath.
26674
26675 2009-01-16  Jim Meyering  <meyering@redhat.com>
26676
26677         strerror: avoid warnings about discarding "const"
26678         * lib/strerror.c (rpl_strerror): Instead of returning a const
26679         string from each and every "case", use a variable, and add a single
26680         cast after the switch.
26681
26682 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
26683
26684         * lib/arpa_inet.in.h: Add extern "C" block for C++.
26685
26686 2009-01-16  Bruno Haible  <bruno@clisp.org>
26687
26688         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
26689         array initializer syntax that also works in C++ mode.
26690         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26691
26692 2009-01-16  Jim Meyering  <meyering@redhat.com>
26693
26694         poll: suppress a warning
26695         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
26696         to ignore "...unsigned expression < 0 is always false" warnings.
26697
26698 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
26699
26700         poll: remove declarations of unused variables
26701         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
26702         sockbuf and optlen.
26703
26704 2009-01-15  Bruno Haible  <bruno@clisp.org>
26705
26706         Make fflush-after-ungetc POSIX compliant on BSD systems.
26707         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
26708         (clear_ungetc_buffer): Implement also for other systems.
26709         (rpl_fflush): On glibc systems, invoke
26710         clear_ungetc_buffer_preserving_position. Otherwise, invoke
26711         clear_ungetc_buffer after fetching the stream's position, not before.
26712
26713 2009-01-15  Bruno Haible  <bruno@clisp.org>
26714
26715         Make fflush-after-ungetc POSIX compliant on glibc systems.
26716         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
26717         after ungetc.
26718         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
26719         (rpl_fflush): On glibc systems, simply call the system's fflush
26720         function after clearing the ungetc buffer.
26721         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
26722         Instead, lseek only to the end of file, then use the system's fseeko
26723         for the rest. On glibc systems, reset the EOF indicator bit.
26724
26725 2009-01-15  Jim Meyering  <meyering@redhat.com>
26726
26727         openmp.m4: revert quote-adding change, for portability to older autoconf
26728         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
26729         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
26730         Simon Josefsson noticed the problem when using autoconf-2.61.
26731
26732 2009-01-15  Bruno Haible  <bruno@clisp.org>
26733
26734         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
26735         * tests/test-fflush2.c (ASSERT): Always fail.
26736         (main): Add two tests for fflush() after ungetc(), taking into account
26737         the Austin Group's clarification.
26738         Suggested by Eric Blake.
26739
26740 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
26741
26742         mktime.m4: remove K&R-style function prototypes
26743         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
26744         for the Sun C++ compiler.
26745
26746 2009-01-14  Bruno Haible  <bruno@clisp.org>
26747
26748         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
26749         while including <wchar.h>.
26750         * lib/wchar.in.h: In two particular situations on HP-UX, include only
26751         the system's <wchar.h> file.
26752         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26753
26754 2009-01-14  Bruno Haible  <bruno@clisp.org>
26755
26756         * m4/csharp.m4: Don't mention gettext on the serial number line.
26757         * m4/csharpexec.m4: Likewise.
26758         * m4/eaccess.m4: Likewise.
26759         * m4/javaexec.m4: Likewise.
26760         * m4/sig_atomic_t.m4: Likewise.
26761         * m4/tmpdir.m4: Likewise.
26762         * m4/intldir.m4: Bump gettext version.
26763         * m4/lib-ld.m4: Likewise.
26764
26765 2009-01-14  Bruno Haible  <bruno@clisp.org>
26766
26767         * lib/progname.c (set_program_name): Add more comments.
26768         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26769
26770 2009-01-14  Simon Josefsson  <simon@josefsson.org>
26771
26772         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
26773         were sys/stat.h does not define it.
26774
26775 2009-01-14  Jim Meyering  <meyering@redhat.com>
26776
26777         many *.m4 files: improve m4 quoting
26778         99% of this change was performed by running the following commands:
26779         git ls-files | grep '\.m4$' | xargs perl -pi \
26780           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
26781           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26782           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26783           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
26784         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
26785         The remainder were to add Copyright dates, increment serial numbers,
26786         undo some changes in comments, exclude m4/intl.m4, and add quotes
26787         around the "1" in ",1" where the unusual spacing prohibited the
26788         above regexps from doing the job.  For more details, see
26789         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
26790         * m4/acl.m4: Modified.
26791         * m4/afs.m4: Likewise.
26792         * m4/alloca.m4: Likewise.
26793         * m4/argp.m4: Likewise.
26794         * m4/argz.m4: Likewise.
26795         * m4/atexit.m4: Likewise.
26796         * m4/bison-i18n.m4: Likewise.
26797         * m4/bison.m4: Likewise.
26798         * m4/byteswap.m4: Likewise.
26799         * m4/c-stack.m4: Likewise.
26800         * m4/c-strtod.m4: Likewise.
26801         * m4/calloc.m4: Likewise.
26802         * m4/canonicalize-lgpl.m4: Likewise.
26803         * m4/chown.m4: Likewise.
26804         * m4/clock_time.m4: Likewise.
26805         * m4/codeset.m4: Likewise.
26806         * m4/copy-file.m4: Likewise.
26807         * m4/csharp.m4: Likewise.
26808         * m4/csharpcomp.m4: Likewise.
26809         * m4/csharpexec.m4: Likewise.
26810         * m4/d-ino.m4: Likewise.
26811         * m4/d-type.m4: Likewise.
26812         * m4/dirfd.m4: Likewise.
26813         * m4/double-slash-root.m4: Likewise.
26814         * m4/eaccess.m4: Likewise.
26815         * m4/eealloc.m4: Likewise.
26816         * m4/environ.m4: Likewise.
26817         * m4/errno_h.m4: Likewise.
26818         * m4/euidaccess.m4: Likewise.
26819         * m4/execute.m4: Likewise.
26820         * m4/fatal-signal.m4: Likewise.
26821         * m4/fchdir.m4: Likewise.
26822         * m4/fcntl_h.m4: Likewise.
26823         * m4/fileblocks.m4: Likewise.
26824         * m4/filenamecat.m4: Likewise.
26825         * m4/findprog.m4: Likewise.
26826         * m4/flexmember.m4: Likewise.
26827         * m4/fnmatch.m4: Likewise.
26828         * m4/fopen.m4: Likewise.
26829         * m4/fpending.m4: Likewise.
26830         * m4/fprintf-posix.m4: Likewise.
26831         * m4/free.m4: Likewise.
26832         * m4/frexp.m4: Likewise.
26833         * m4/frexpl.m4: Likewise.
26834         * m4/fsusage.m4: Likewise.
26835         * m4/ftruncate.m4: Likewise.
26836         * m4/gc-camellia.m4: Likewise.
26837         * m4/gc-random.m4: Likewise.
26838         * m4/gc.m4: Likewise.
26839         * m4/getaddrinfo.m4: Likewise.
26840         * m4/getcwd-abort-bug.m4: Likewise.
26841         * m4/getcwd-path-max.m4: Likewise.
26842         * m4/getdate.m4: Likewise.
26843         * m4/getdomainname.m4: Likewise.
26844         * m4/getgroups.m4: Likewise.
26845         * m4/gethostname.m4: Likewise.
26846         * m4/gethrxtime.m4: Likewise.
26847         * m4/getline.m4: Likewise.
26848         * m4/getloadavg.m4: Likewise.
26849         * m4/getndelim2.m4: Likewise.
26850         * m4/getpass.m4: Likewise.
26851         * m4/gettext.m4: Likewise.
26852         * m4/gettime.m4: Likewise.
26853         * m4/gettimeofday.m4: Likewise.
26854         * m4/gnulib-common.m4: Likewise.
26855         * m4/group-member.m4: Likewise.
26856         * m4/host-os.m4: Likewise.
26857         * m4/iconv.m4: Likewise.
26858         * m4/iconv_open.m4: Likewise.
26859         * m4/inet_ntop.m4: Likewise.
26860         * m4/inet_pton.m4: Likewise.
26861         * m4/inline.m4: Likewise.
26862         * m4/intldir.m4: Likewise.
26863         * m4/intlmacosx.m4: Likewise.
26864         * m4/intmax.m4: Likewise.
26865         * m4/intmax_t.m4: Likewise.
26866         * m4/inttypes.m4: Likewise.
26867         * m4/inttypes_h.m4: Likewise.
26868         * m4/inttypes-pri.m4: Likewise.
26869         * m4/isapipe.m4: Likewise.
26870         * m4/isnand.m4: Likewise.
26871         * m4/isnanf.m4: Likewise.
26872         * m4/isnanl.m4: Likewise.
26873         * m4/javacomp.m4: Likewise.
26874         * m4/javaexec.m4: Likewise.
26875         * m4/jm-winsz1.m4: Likewise.
26876         * m4/jm-winsz2.m4: Likewise.
26877         * m4/lchown.m4: Likewise.
26878         * m4/lcmessage.m4: Likewise.
26879         * m4/ldexpl.m4: Likewise.
26880         * m4/lib-ld.m4: Likewise.
26881         * m4/lib-link.m4: Likewise.
26882         * m4/libsigsegv.m4: Likewise.
26883         * m4/link-follow.m4: Likewise.
26884         * m4/localcharset.m4: Likewise.
26885         * m4/locale-fr.m4: Likewise.
26886         * m4/locale-ja.m4: Likewise.
26887         * m4/locale-tr.m4: Likewise.
26888         * m4/locale-zh.m4: Likewise.
26889         * m4/lock.m4: Likewise.
26890         * m4/longlong.m4: Likewise.
26891         * m4/ls-mntd-fs.m4: Likewise.
26892         * m4/lstat.m4: Likewise.
26893         * m4/malloc.m4: Likewise.
26894         * m4/mathl.m4: Likewise.
26895         * m4/mbrtowc.m4: Likewise.
26896         * m4/mbstate_t.m4: Likewise.
26897         * m4/mbswidth.m4: Likewise.
26898         * m4/memchr.m4: Likewise.
26899         * m4/memcmp.m4: Likewise.
26900         * m4/memcpy.m4: Likewise.
26901         * m4/memmem.m4: Likewise.
26902         * m4/memmove.m4: Likewise.
26903         * m4/mempcpy.m4: Likewise.
26904         * m4/memrchr.m4: Likewise.
26905         * m4/memset.m4: Likewise.
26906         * m4/minmax.m4: Likewise.
26907         * m4/mkdir-slash.m4: Likewise.
26908         * m4/mkdtemp.m4: Likewise.
26909         * m4/mktime.m4: Likewise.
26910         * m4/mmap-anon.m4: Likewise.
26911         * m4/mountlist.m4: Likewise.
26912         * m4/nanosleep.m4: Likewise.
26913         * m4/nls.m4: Likewise.
26914         * m4/nocrash.m4: Likewise.
26915         * m4/open.m4: Likewise.
26916         * m4/openat.m4: Likewise.
26917         * m4/openmp.m4: Likewise.
26918         * m4/pathmax.m4: Likewise.
26919         * m4/perl.m4: Likewise.
26920         * m4/physmem.m4: Likewise.
26921         * m4/pipe.m4: Likewise.
26922         * m4/po.m4: Likewise.
26923         * m4/poll.m4: Likewise.
26924         * m4/posixtm.m4: Likewise.
26925         * m4/posixver.m4: Likewise.
26926         * m4/printf-frexp.m4: Likewise.
26927         * m4/printf-frexpl.m4: Likewise.
26928         * m4/printf-posix.m4: Likewise.
26929         * m4/printf-posix-rpl.m4: Likewise.
26930         * m4/printf.m4: Likewise.
26931         * m4/progtest.m4: Likewise.
26932         * m4/putenv.m4: Likewise.
26933         * m4/readline.m4: Likewise.
26934         * m4/readlink.m4: Likewise.
26935         * m4/readutmp.m4: Likewise.
26936         * m4/realloc.m4: Likewise.
26937         * m4/regex.m4: Likewise.
26938         * m4/relocatable.m4: Likewise.
26939         * m4/relocatable-lib.m4: Likewise.
26940         * m4/rename-dest-slash.m4: Likewise.
26941         * m4/rename.m4: Likewise.
26942         * m4/rmdir-errno.m4: Likewise.
26943         * m4/rmdir.m4: Likewise.
26944         * m4/roundf.m4: Likewise.
26945         * m4/roundl.m4: Likewise.
26946         * m4/rpmatch.m4: Likewise.
26947         * m4/save-cwd.m4: Likewise.
26948         * m4/selinux-selinux-h.m4: Likewise.
26949         * m4/setenv.m4: Likewise.
26950         * m4/settime.m4: Likewise.
26951         * m4/sig2str.m4: Likewise.
26952         * m4/sig_atomic_t.m4: Likewise.
26953         * m4/signalblocking.m4: Likewise.
26954         * m4/signbit.m4: Likewise.
26955         * m4/sigpipe.m4: Likewise.
26956         * m4/sockets.m4: Likewise.
26957         * m4/sockpfaf.m4: Likewise.
26958         * m4/st_dm_mode.m4: Likewise.
26959         * m4/stat-time.m4: Likewise.
26960         * m4/stdbool.m4: Likewise.
26961         * m4/stdint.m4: Likewise.
26962         * m4/stdint_h.m4: Likewise.
26963         * m4/stpcpy.m4: Likewise.
26964         * m4/stpncpy.m4: Likewise.
26965         * m4/strcase.m4: Likewise.
26966         * m4/strchrnul.m4: Likewise.
26967         * m4/strcspn.m4: Likewise.
26968         * m4/strdup.m4: Likewise.
26969         * m4/strftime.m4: Likewise.
26970         * m4/strndup.m4: Likewise.
26971         * m4/strnlen.m4: Likewise.
26972         * m4/strpbrk.m4: Likewise.
26973         * m4/strptime.m4: Likewise.
26974         * m4/strsep.m4: Likewise.
26975         * m4/strtod.m4: Likewise.
26976         * m4/strtoimax.m4: Likewise.
26977         * m4/strtok_r.m4: Likewise.
26978         * m4/strtol.m4: Likewise.
26979         * m4/strtoll.m4: Likewise.
26980         * m4/strtoul.m4: Likewise.
26981         * m4/strtoull.m4: Likewise.
26982         * m4/strtoumax.m4: Likewise.
26983         * m4/strverscmp.m4: Likewise.
26984         * m4/threadlib.m4: Likewise.
26985         * m4/timegm.m4: Likewise.
26986         * m4/tm_gmtoff.m4: Likewise.
26987         * m4/tmpdir.m4: Likewise.
26988         * m4/tmpfile.m4: Likewise.
26989         * m4/tzset.m4: Likewise.
26990         * m4/uintmax_t.m4: Likewise.
26991         * m4/unlinkdir.m4: Likewise.
26992         * m4/unlocked-io.m4: Likewise.
26993         * m4/uptime.m4: Likewise.
26994         * m4/userspec.m4: Likewise.
26995         * m4/utimbuf.m4: Likewise.
26996         * m4/utime.m4: Likewise.
26997         * m4/utimes-null.m4: Likewise.
26998         * m4/utimes.m4: Likewise.
26999         * m4/vararrays.m4: Likewise.
27000         * m4/vasnprintf.m4: Likewise.
27001         * m4/vfprintf-posix.m4: Likewise.
27002         * m4/vprintf-posix.m4: Likewise.
27003         * m4/wait-process.m4: Likewise.
27004         * m4/wchar_t.m4: Likewise.
27005         * m4/wint_t.m4: Likewise.
27006         * m4/write-any-file.m4: Likewise.
27007         * m4/yield.m4: Likewise.
27008
27009 2009-01-13  Bruno Haible  <bruno@clisp.org>
27010
27011         Avoid test-copy-file.sh failures when ACL support insufficient.
27012         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27013         TESTS_ENVIRONMENT.
27014         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27015         Reported by Jim Meyering.
27016
27017 2009-01-13  Bruno Haible  <bruno@clisp.org>
27018
27019         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27020         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27021         * modules/unistdio/u8-printf-parse (Files): Likewise.
27022         * modules/unistdio/u32-printf-parse (Files): Likewise.
27023         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27024
27025 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27026
27027         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27028         and m4/inttypes_h.m4 too.
27029
27030 2009-01-12  Eric Blake  <ebb9@byu.net>
27031
27032         tests: IRIX 6.2 cc can't compile -0.0 into .data
27033         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27034         rather than at compile-time.
27035         * tests/test-floorl.c (minus_zero): Likewise.
27036         * tests/test-frexpl.c (minus_zero): Likewise.
27037         * tests/test-isnan.c (minus_zerol): Likewise.
27038         * tests/test-isnanl.h (minus_zero): Likewise.
27039         * tests/test-ldexpl.c (minus_zero): Likewise.
27040         * tests/test-roundl.c (minus_zero): Likewise.
27041         * tests/test-signbit.c (minus_zerol): Likewise.
27042         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27043         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27044         * tests/test-truncl.c (minus_zero): Likewise.
27045         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27046         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27047         Reported by Tom G. Christensen and Nelson H. F. Beebe.
27048
27049 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27050
27051         regex: fix glibc bug 9697
27052         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
27053         handling.
27054
27055 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27056
27057         regex: fix glibc bug 697
27058         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
27059         being NULL also if there are no backreferences.
27060
27061 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27062
27063         regex: merge glibc changes
27064         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27065         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27066         re_string_skip_chars, re_string_reconstruct): Likewise.
27067         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27068
27069 2009-01-07  Jim Meyering  <meyering@redhat.com>
27070
27071         poll: filter through cppi
27072         * lib/poll.c: Indent cpp directives to reflect nesting.
27073
27074 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27075
27076         poll: don't return uninitialized
27077         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27078
27079 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27080
27081         avoid compile failure on AIX 6.1
27082         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27083         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27084
27085 2009-01-04  Jim Meyering  <meyering@redhat.com>
27086
27087         remove duplicate inclusion of <stdio.h>
27088         * tests/test-fprintf-posix.c: Likewise.
27089         * tests/test-printf-posix.c: Likewise.
27090         * tests/test-snprintf-posix.c: Likewise.
27091         * tests/test-sprintf-posix.c: Likewise.
27092         * tests/test-vasprintf-posix.c: Likewise.
27093         * tests/test-vfprintf-posix.c: Likewise.
27094         * tests/test-vprintf-posix.c: Likewise.
27095         * tests/test-vsnprintf-posix.c: Likewise.
27096         * tests/test-vsprintf-posix.c: Likewise.
27097
27098 2009-01-03  Jim Meyering  <meyering@redhat.com>
27099
27100         gnulib-tool: fix sed-based filtering
27101         * gnulib-tool (func_filter_filelist): Remove extra backslash
27102         in sed_fff_filter definition.
27103
27104 2009-01-02  Jim Meyering  <meyering@redhat.com>
27105
27106         strftime: avoid compilation failure on Solaris 2.6
27107         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27108         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27109         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27110         be available.  Reported by Tom G. Christensen.  Details in
27111         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27112
27113 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27114             Bruno Haible  <bruno@clisp.org>
27115
27116         Speed up gnulib-tool by doing more string processing through shell
27117         built-ins.
27118         * gnulib-tool (fast_func_append): New variable.
27119         (func_remove_prefix, func_remove_suffix): New functions.
27120         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27121         (func_filter_filelist): New function.
27122         (func_get_dependencies): Use func_remove_suffix instead of sed.
27123         (func_get_automake_snippet): Use func_filter_filelist instead of a
27124         subshell and sed invocation.
27125
27126 2009-01-01  Bruno Haible  <bruno@clisp.org>
27127
27128         Fix a security bug.
27129         * gnulib-tool (func_import, import, update): Don't allow the characters
27130         '"', '$', '`', '\' in macro arguments that become part of commands that
27131         are evaluated.
27132
27133 2009-01-01  Bruno Haible  <bruno@clisp.org>
27134
27135         * gnulib-tool (func_reset_sigpipe): Add more comments.
27136
27137 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27138
27139         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27140         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27141         already know the answer.
27142
27143 2009-01-01  Jim Meyering  <meyering@redhat.com>
27144
27145         * lib/version-etc.c (version_etc_va): Update copyright year.
27146
27147 2008-12-30  Bruno Haible  <bruno@clisp.org>
27148
27149         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27150         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27151         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27152
27153 2008-12-29  Eric Blake  <ebb9@byu.net>
27154
27155         multiarch: avoid autoconf AC_REQUIRE bug
27156         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27157         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27158         2.63 and older.
27159         Reported by Bruno Haible, and analyzed in
27160         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27161
27162 2008-12-29  Bruno Haible  <bruno@clisp.org>
27163
27164         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27165         files in subdirectories correctly.
27166         Reported by Ralf Wildenhues.
27167
27168 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27169
27170         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27171         rather than 'join FILE -', for Solaris join.
27172
27173 2008-12-29  Bruno Haible  <bruno@clisp.org>
27174
27175         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27176         quoting.
27177         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27178         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27179         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27180         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27181         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27182         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27183         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27184         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27185         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27186         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27187         * m4/nls.m4 (AM_NLS): Likewise.
27188         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27189         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27190         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27191         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27192         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27193         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27194         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27195         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27196         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27197         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27198         * m4/xsize.m4 (gl_XSIZE): Likewise.
27199         Suggested by Jim Meyering.
27200
27201 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27202
27203         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27204         * lib/parse-duration.c: use a switch instead of cascading if's.
27205
27206 2008-12-29  Eric Blake  <ebb9@byu.net>
27207
27208         wchar.h: supply WEOF on Irix 5.3
27209         * lib/wchar.in.h (wint_t): Also supply WEOF.
27210         * lib/wctype.in.h (wint_t): Likewise.
27211         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27212         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27213         Reported by Tom G. Christensen.
27214
27215 2008-12-26  Bruno Haible  <bruno@clisp.org>
27216
27217         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27218         i486, i586, i686.
27219
27220 2008-12-26  Bruno Haible  <bruno@clisp.org>
27221
27222         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27223
27224 2008-12-26  Bruno Haible  <bruno@clisp.org>
27225
27226         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27227         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27228         not __STDC_CONSTANT_MACROS.
27229         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27230
27231 2008-12-25  Bruno Haible  <bruno@clisp.org>
27232
27233         Add support for universal builds to vasnprintf.
27234         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27235         universal builds, guess no.
27236         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27237         * modules/vasprintf-posix (Depends-on): Likewise.
27238         * modules/fprintf-posix (Depends-on): Likewise.
27239         * modules/vfprintf-posix (Depends-on): Likewise.
27240         * modules/snprintf-posix (Depends-on): Likewise.
27241         * modules/vsnprintf-posix (Depends-on): Likewise.
27242         * modules/sprintf-posix (Depends-on): Likewise.
27243         * modules/vsprintf-posix (Depends-on): Likewise.
27244         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27245         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27246         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27247         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27248         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27249         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27250         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27251
27252         Add support for universal builds to <inttypes.h>.
27253         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27254         _SCNu64_PREFIX): In Apple
27255         universal builds, define directly, using _LP64.
27256         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27257         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27258         * modules/inttypes (Depends-on): Add multiarch.
27259         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27260
27261         Add support for universal builds to <stdint.h>.
27262         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27263         universal builds, define directly, using _LP64.
27264         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27265         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27266         and size_t.
27267         * modules/stdint (Depends-on): Add multiarch.
27268         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27269
27270         New module 'multiarch'.
27271         * modules/multiarch: New file.
27272         * m4/multiarch.m4: New file.
27273
27274 2008-12-25  Bruno Haible  <bruno@clisp.org>
27275
27276         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27277
27278 2008-12-25  Bruno Haible  <bruno@clisp.org>
27279
27280         * modules/btowc (License): Relicense under LGPLv2+.
27281         * modules/mbsinit (License): Likewise.
27282         * modules/mbrtowc (License): Likewise.
27283         * modules/wcrtomb (License): Likewise.
27284         * modules/streq (License): Likewise.
27285         Reported by David Lutterkort <lutter@redhat.com>.
27286
27287 2008-12-23  Bruno Haible  <bruno@clisp.org>
27288
27289         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27290
27291 2008-12-23  Bruno Haible  <bruno@clisp.org>
27292
27293         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27294         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27295         GETADDRINFO_LIB, not in LIBS.
27296         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27297         * modules/canon-host (Link): Likewise.
27298         * NEWS: Mention the change.
27299         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27300         GETADDRINFO_LIB.
27301
27302 2008-12-22  Bruno Haible  <bruno@clisp.org>
27303
27304         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27305         * doc/posix-functions/iswalpha_l.texi: Likewise.
27306         * doc/posix-functions/iswblank_l.texi: Likewise.
27307         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27308         * doc/posix-functions/iswctype_l.texi: Likewise.
27309         * doc/posix-functions/iswdigit_l.texi: Likewise.
27310         * doc/posix-functions/iswgraph_l.texi: Likewise.
27311         * doc/posix-functions/iswlower_l.texi: Likewise.
27312         * doc/posix-functions/iswprint_l.texi: Likewise.
27313         * doc/posix-functions/iswpunct_l.texi: Likewise.
27314         * doc/posix-functions/iswspace_l.texi: Likewise.
27315         * doc/posix-functions/iswupper_l.texi: Likewise.
27316         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27317         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27318         * doc/posix-functions/open_wmemstream.texi: Likewise.
27319         * doc/posix-functions/swscanf.texi: Likewise.
27320         * doc/posix-functions/towctrans_l.texi: Likewise.
27321         * doc/posix-functions/towlower.texi: Likewise.
27322         * doc/posix-functions/towlower_l.texi: Likewise.
27323         * doc/posix-functions/towupper.texi: Likewise.
27324         * doc/posix-functions/towupper_l.texi: Likewise.
27325         * doc/posix-functions/vfwprintf.texi: Likewise.
27326         * doc/posix-functions/vfwscanf.texi: Likewise.
27327         * doc/posix-functions/vswscanf.texi: Likewise.
27328         * doc/posix-functions/vwprintf.texi: Likewise.
27329         * doc/posix-functions/vwscanf.texi: Likewise.
27330         * doc/posix-functions/wcpcpy.texi: Likewise.
27331         * doc/posix-functions/wcpncpy.texi: Likewise.
27332         * doc/posix-functions/wcscasecmp.texi: Likewise.
27333         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27334         * doc/posix-functions/wcscoll_l.texi: Likewise.
27335         * doc/posix-functions/wcsdup.texi: Likewise.
27336         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27337         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27338         * doc/posix-functions/wcsnlen.texi: Likewise.
27339         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27340         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27341         * doc/posix-functions/wctrans_l.texi: Likewise.
27342         * doc/posix-functions/wctype_l.texi: Likewise.
27343         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27344         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27345         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27346         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27347         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27348         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27349         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27350         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27351         * doc/glibc-functions/wcschrnul.texi: Likewise.
27352         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27353         * doc/glibc-functions/wcstod_l.texi: Likewise.
27354         * doc/glibc-functions/wcstof_l.texi: Likewise.
27355         * doc/glibc-functions/wcstol_l.texi: Likewise.
27356         * doc/glibc-functions/wcstold_l.texi: Likewise.
27357         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27358         * doc/glibc-functions/wcstoq.texi: Likewise.
27359         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27360         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27361         * doc/glibc-functions/wcstouq.texi: Likewise.
27362         * doc/glibc-functions/wmempcpy.texi: Likewise.
27363
27364 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27365             Eric Blake  <ebb9@byu.net>
27366             Paolo Bonzini  <bonzini@gnu.org>
27367             Bruno Haible  <bruno@clisp.org>
27368
27369         Make c-stack work on Haiku.
27370         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27371         (c_stack_action): Use SA_ONSTACK flag.
27372
27373 2008-12-22  Bruno Haible  <bruno@clisp.org>
27374
27375         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27376
27377 2008-12-22  Bruno Haible  <bruno@clisp.org>
27378
27379         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27380         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
27381         being overridden.
27382         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
27383         New macros.
27384         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
27385         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
27386         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
27387         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
27388
27389 2008-12-22  Bruno Haible  <bruno@clisp.org>
27390
27391         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
27392         from test code.
27393
27394 2008-12-22  Eric Blake  <ebb9@byu.net>
27395
27396         Avoid gcc warnings on cygwin.
27397         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
27398         Avoid unused variable.
27399         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
27400         Likewise.
27401
27402 2008-12-22  Bruno Haible  <bruno@clisp.org>
27403
27404         Remove HAVE_MBRTOWC conditionals.
27405         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
27406         (mbscasecmp): Assume mbrtowc function.
27407         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
27408         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
27409         * lib/mbschr.c: Include mbuiter.h unconditionally.
27410         (mbschr): Assume mbrtowc function.
27411         * lib/mbscspn.c: Include mbuiter.h unconditionally.
27412         (mbscspn): Assume mbrtowc function.
27413         * lib/mbslen.c: Include mbuiter.h unconditionally.
27414         (mbslen): Assume mbrtowc function.
27415         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
27416         (mbsncasecmp): Assume mbrtowc function.
27417         * lib/mbsnlen.c: Include mbiter.h unconditionally.
27418         (mbsnlen): Assume mbrtowc function.
27419         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
27420         (mbspbrk): Assume mbrtowc function.
27421         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
27422         (mbspcasecmp): Assume mbrtowc function.
27423         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
27424         (mbsrchr): Assume mbrtowc function.
27425         * lib/mbssep.c: Include mbuiter.h unconditionally.
27426         (mbssep): Assume mbrtowc function.
27427         * lib/mbsspn.c: Include mbuiter.h unconditionally.
27428         (mbsspn): Assume mbrtowc function.
27429         * lib/mbsstr.c: Include mbuiter.h unconditionally.
27430         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
27431         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
27432         (mbstok_r): Assume mbrtowc function.
27433         * lib/propername.c: Include mbuiter.h unconditionally.
27434         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
27435         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
27436         (trim2): Assume mbrtowc function.
27437         * lib/mbswidth.c (mbsinit): Remove fallback definition.
27438         (mbsnwidth): Assume mbrtowc function.
27439         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
27440         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
27441         fallback definitions.
27442         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
27443
27444 2008-12-22  Bruno Haible  <bruno@clisp.org>
27445
27446         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
27447
27448 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
27449
27450         * modules/regex: Request emulations for the mb*/wc* functions we need.
27451         * m4/regex.m4: Don't look for those functions here.
27452         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27453
27454 2008-12-22  Bruno Haible  <bruno@clisp.org>
27455
27456         * modules/fnmatch (Depends-on): Remove duplicated dependency.
27457
27458 2008-12-21  Bruno Haible  <bruno@clisp.org>
27459
27460         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
27461         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
27462         (Include): Remove conditionalization.
27463         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
27464         (Include): Remove conditionalization.
27465         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
27466         (Include): Remove conditionalization.
27467         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
27468         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27469         * NEWS: Mention the change.
27470         Reported by Alan Hourihane <alanh@fairlite.co.uk>
27471         via Sergey Poznyakoff <gray@gnu.org.ua>.
27472
27473 2008-12-21  Bruno Haible  <bruno@clisp.org>
27474
27475         * MODULES.html.sh (Extended multibyte and wide character utilities
27476         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
27477         wcrtomb, wcsrtombs.
27478         (Support for systems lacking POSIX:2008): Add accept, bind, close,
27479         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
27480         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
27481         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
27482
27483 2008-12-21  Bruno Haible  <bruno@clisp.org>
27484
27485         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
27486
27487 2008-12-21  Bruno Haible  <bruno@clisp.org>
27488
27489         * modules/wcsnrtombs-tests: New file.
27490         * tests/test-wcsnrtombs1.sh: New file.
27491         * tests/test-wcsnrtombs2.sh: New file.
27492         * tests/test-wcsnrtombs3.sh: New file.
27493         * tests/test-wcsnrtombs4.sh: New file.
27494         * tests/test-wcsnrtombs.c: New file.
27495
27496         New module 'wcsnrtombs'.
27497         * lib/wchar.in.h (wcsnrtombs): New declaration.
27498         * lib/wcsnrtombs.c: New file.
27499         * lib/wcsrtombs-state.c: New file.
27500         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
27501         (internal_state): Remove variable.
27502         * m4/wcsnrtombs.m4: New file.
27503         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
27504         compilation units.
27505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
27506         HAVE_WCSNRTOMBS.
27507         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
27508         HAVE_WCSNRTOMBS.
27509         * modules/wcsnrtombs: New file.
27510         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
27511         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
27512
27513 2008-12-21  Bruno Haible  <bruno@clisp.org>
27514
27515         * modules/wcsrtombs-tests: New file.
27516         * tests/test-wcsrtombs1.sh: New file.
27517         * tests/test-wcsrtombs2.sh: New file.
27518         * tests/test-wcsrtombs3.sh: New file.
27519         * tests/test-wcsrtombs4.sh: New file.
27520         * tests/test-wcsrtombs.c: New file.
27521
27522         New module 'wcsrtombs'.
27523         * lib/wchar.in.h (wcsrtombs): New declaration.
27524         * lib/wcsrtombs.c: New file.
27525         * m4/wcsrtombs.m4: New file.
27526         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
27527         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
27529         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27530         * modules/wcsrtombs: New file.
27531         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
27532         bugs.
27533
27534 2008-12-21  Bruno Haible  <bruno@clisp.org>
27535
27536         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
27537         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
27538         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
27539         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
27540         if not correct.
27541         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
27542         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
27543         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27544         m4/locale-zh.m4, m4/codeset.m4.
27545         * doc/posix-functions/wcrtomb.texi: Document the bug.
27546
27547 2008-12-21  Bruno Haible  <bruno@clisp.org>
27548
27549         Work around a btowc() bug on IRIX 6.5.
27550         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
27551         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
27552         REPLACE_WTOBC if not.
27553         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
27554         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
27555         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
27556
27557 2008-12-21  Bruno Haible  <bruno@clisp.org>
27558
27559         * modules/wcrtomb-tests: New file.
27560         * tests/test-wcrtomb.sh: New file.
27561         * tests/test-wcrtomb.c: New file.
27562
27563         New module 'wcrtomb'.
27564         * lib/wchar.in.h (wcrtomb): New declaration.
27565         * lib/wcrtomb.c: New file.
27566         * m4/wcrtomb.m4: New file.
27567         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
27568         HAVE_WCRTOMB.
27569         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
27570         HAVE_WCRTOMB.
27571         * modules/wcrtomb: New file.
27572         * doc/posix-functions/wcrtomb.texi: Mention the new module.
27573
27574 2008-12-21  Bruno Haible  <bruno@clisp.org>
27575
27576         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
27577         * modules/mbsrtowcs (Files): Likewise.
27578         * modules/wctob (Files): Likewise.
27579         * modules/c-strcase-tests (Files): Likewise.
27580         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27581         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27582         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27583         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27584         * modules/vasnprintf-posix-tests (Files): Likewise.
27585
27586 2008-12-21  William Pursell  <bill.pursell@gmail.com>
27587
27588         gitlog-to-changelog: pass all command-line arguments to git-log
27589         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
27590         it is sometimes convenient to filter the commits in various ways.
27591         gitlog-to-changelog only allows --since to specify a start date,
27592         but git-log itself supports many other filtering mechanisms.
27593         At the moment, I want to filter by branch name.  Rather than
27594         adding a --branch option to gitlog-to-changelog, it seems more
27595         flexible to simply pass all options directly to git-log and let
27596         git do the work.  Notice that this effectively makes --since a
27597         redundant option for gitlog-to-changelog, but removing it would
27598         require current usage to change since calls would then require
27599         an additional '--'.
27600
27601 2008-12-21  Bruno Haible  <bruno@clisp.org>
27602
27603         * modules/mbsnrtowcs-tests: New file.
27604         * tests/test-mbsnrtowcs1.sh: New file.
27605         * tests/test-mbsnrtowcs2.sh: New file.
27606         * tests/test-mbsnrtowcs3.sh: New file.
27607         * tests/test-mbsnrtowcs4.sh: New file.
27608         * tests/test-mbsnrtowcs.c: New file.
27609
27610         New module 'mbsnrtowcs'.
27611         * lib/wchar.in.h (mbsnrtowcs): New declaration.
27612         * lib/mbsnrtowcs.c: New file.
27613         * lib/mbsrtowcs-state.c: New file.
27614         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
27615         (internal_state): Remove variable.
27616         * m4/mbsnrtowcs.m4: New file.
27617         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
27618         compilation units.
27619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
27620         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27621         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
27622         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27623         * modules/mbsnrtowcs: New file.
27624         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
27625         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
27626         portability problem.
27627
27628 2008-12-21  Bruno Haible  <bruno@clisp.org>
27629
27630         Work around mbsrtowcs bug.
27631         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
27632         (gl_FUNC_MBSRTOWCS): Invoke it.
27633         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27634         m4/locale-zh.m4.
27635         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
27636
27637 2008-12-21  Bruno Haible  <bruno@clisp.org>
27638
27639         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
27640
27641 2008-12-21  Bruno Haible  <bruno@clisp.org>
27642
27643         Update doc for AIX.
27644         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
27645         16-bit wchar_t type.
27646         * doc/posix-functions/btowc.texi: Likewise.
27647         * doc/posix-functions/fgetwc.texi: Likewise.
27648         * doc/posix-functions/fgetws.texi: Likewise.
27649         * doc/posix-functions/fputwc.texi: Likewise.
27650         * doc/posix-functions/fputws.texi: Likewise.
27651         * doc/posix-functions/fwide.texi: Likewise.
27652         * doc/posix-functions/fwprintf.texi: Likewise.
27653         * doc/posix-functions/fwscanf.texi: Likewise.
27654         * doc/posix-functions/getwchar.texi: Likewise.
27655         * doc/posix-functions/getwc.texi: Likewise.
27656         * doc/posix-functions/iswalnum.texi: Likewise.
27657         * doc/posix-functions/iswalpha.texi: Likewise.
27658         * doc/posix-functions/iswblank.texi: Likewise.
27659         * doc/posix-functions/iswcntrl.texi: Likewise.
27660         * doc/posix-functions/iswctype.texi: Likewise.
27661         * doc/posix-functions/iswdigit.texi: Likewise.
27662         * doc/posix-functions/iswgraph.texi: Likewise.
27663         * doc/posix-functions/iswlower.texi: Likewise.
27664         * doc/posix-functions/iswprint.texi: Likewise.
27665         * doc/posix-functions/iswpunct.texi: Likewise.
27666         * doc/posix-functions/iswspace.texi: Likewise.
27667         * doc/posix-functions/iswupper.texi: Likewise.
27668         * doc/posix-functions/iswxdigit.texi: Likewise.
27669         * doc/posix-functions/mbrtowc.texi: Likewise.
27670         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27671         * doc/posix-functions/mbstowcs.texi: Likewise.
27672         * doc/posix-functions/mbtowc.texi: Likewise.
27673         * doc/posix-functions/putwchar.texi: Likewise.
27674         * doc/posix-functions/putwc.texi: Likewise.
27675         * doc/posix-functions/swprintf.texi: Likewise.
27676         * doc/posix-functions/tolower.texi: Likewise.
27677         * doc/posix-functions/toupper.texi: Likewise.
27678         * doc/posix-functions/towctrans.texi: Likewise.
27679         * doc/posix-functions/ungetwc.texi: Likewise.
27680         * doc/posix-functions/vswprintf.texi: Likewise.
27681         * doc/posix-functions/wcrtomb.texi: Likewise.
27682         * doc/posix-functions/wcscat.texi: Likewise.
27683         * doc/posix-functions/wcschr.texi: Likewise.
27684         * doc/posix-functions/wcscmp.texi: Likewise.
27685         * doc/posix-functions/wcscoll.texi: Likewise.
27686         * doc/posix-functions/wcscpy.texi: Likewise.
27687         * doc/posix-functions/wcscspn.texi: Likewise.
27688         * doc/posix-functions/wcsftime.texi: Likewise.
27689         * doc/posix-functions/wcslen.texi: Likewise.
27690         * doc/posix-functions/wcsncat.texi: Likewise.
27691         * doc/posix-functions/wcsncmp.texi: Likewise.
27692         * doc/posix-functions/wcsncpy.texi: Likewise.
27693         * doc/posix-functions/wcspbrk.texi: Likewise.
27694         * doc/posix-functions/wcsrchr.texi: Likewise.
27695         * doc/posix-functions/wcsrtombs.texi: Likewise.
27696         * doc/posix-functions/wcsspn.texi: Likewise.
27697         * doc/posix-functions/wcsstr.texi: Likewise.
27698         * doc/posix-functions/wcstod.texi: Likewise.
27699         * doc/posix-functions/wcstof.texi: Likewise.
27700         * doc/posix-functions/wcstoimax.texi: Likewise.
27701         * doc/posix-functions/wcstok.texi: Likewise.
27702         * doc/posix-functions/wcstold.texi: Likewise.
27703         * doc/posix-functions/wcstoll.texi: Likewise.
27704         * doc/posix-functions/wcstol.texi: Likewise.
27705         * doc/posix-functions/wcstombs.texi: Likewise.
27706         * doc/posix-functions/wcstoull.texi: Likewise.
27707         * doc/posix-functions/wcstoul.texi: Likewise.
27708         * doc/posix-functions/wcstoumax.texi: Likewise.
27709         * doc/posix-functions/wcswidth.texi: Likewise.
27710         * doc/posix-functions/wcsxfrm.texi: Likewise.
27711         * doc/posix-functions/wctob.texi: Likewise.
27712         * doc/posix-functions/wctomb.texi: Likewise.
27713         * doc/posix-functions/wctrans.texi: Likewise.
27714         * doc/posix-functions/wctype.texi: Likewise.
27715         * doc/posix-functions/wcwidth.texi: Likewise.
27716         * doc/posix-functions/wmemchr.texi: Likewise.
27717         * doc/posix-functions/wmemcmp.texi: Likewise.
27718         * doc/posix-functions/wmemcpy.texi: Likewise.
27719         * doc/posix-functions/wmemmove.texi: Likewise.
27720         * doc/posix-functions/wmemset.texi: Likewise.
27721         * doc/posix-functions/wprintf.texi: Likewise.
27722         * doc/posix-functions/wscanf.texi: Likewise.
27723
27724 2008-12-21  Bruno Haible  <bruno@clisp.org>
27725
27726         Update doc for HP-UX 11.11.
27727         * doc/posix-functions/btowc.texi: Clarify that the function is missing
27728         in HP-UX version 11.00, not in all versions of HP-UX 11.
27729         * doc/posix-functions/fwide.texi: Likewise.
27730         * doc/posix-functions/fwprintf.texi: Likewise.
27731         * doc/posix-functions/fwscanf.texi: Likewise.
27732         * doc/posix-functions/inet_ntop.texi: Likewise.
27733         * doc/posix-functions/inet_pton.texi: Likewise.
27734         * doc/posix-functions/mbrlen.texi: Likewise.
27735         * doc/posix-functions/mbrtowc.texi: Likewise.
27736         * doc/posix-functions/mbsinit.texi: Likewise.
27737         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27738         * doc/posix-functions/swprintf.texi: Likewise.
27739         * doc/posix-functions/swscanf.texi: Likewise.
27740         * doc/posix-functions/towctrans.texi: Likewise.
27741         * doc/posix-functions/vfwprintf.texi: Likewise.
27742         * doc/posix-functions/vswprintf.texi: Likewise.
27743         * doc/posix-functions/vwprintf.texi: Likewise.
27744         * doc/posix-functions/wcrtomb.texi: Likewise.
27745         * doc/posix-functions/wcsrtombs.texi: Likewise.
27746         * doc/posix-functions/wcsstr.texi: Likewise.
27747         * doc/posix-functions/wctob.texi: Likewise.
27748         * doc/posix-functions/wctrans.texi: Likewise.
27749         * doc/posix-functions/wmemchr.texi: Likewise.
27750         * doc/posix-functions/wmemcmp.texi: Likewise.
27751         * doc/posix-functions/wmemcpy.texi: Likewise.
27752         * doc/posix-functions/wmemmove.texi: Likewise.
27753         * doc/posix-functions/wmemset.texi: Likewise.
27754         * doc/posix-functions/wprintf.texi: Likewise.
27755         * doc/posix-functions/wscanf.texi: Likewise.
27756
27757 2008-12-21  Bruno Haible  <bruno@clisp.org>
27758
27759         Work around a portability problem.
27760         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
27761         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
27762
27763 2008-12-20  Bruno Haible  <bruno@clisp.org>
27764
27765         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
27766         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
27767         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
27768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
27769         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
27770
27771         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
27772         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
27773         set.
27774         (GNULIB_defined_mbstate_t): New macro.
27775         (mbsinit): Redefine if REPLACE_MBSINIT is set.
27776         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
27777         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
27778         reuses the system's mbrtowc function but works around the bugs.
27779         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
27780         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
27781         macros.
27782         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
27783         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
27784         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
27785         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
27786         REPLACE_MBSINIT if mbsinit needs to be overridden.
27787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
27788         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27789         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
27790         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27791         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27792         m4/locale-zh.m4.
27793         (Depends): Add mbsinit.
27794         * modules/mbsinit (Depends): Add mbrtowc.
27795         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
27796
27797 2008-12-20  Bruno Haible  <bruno@clisp.org>
27798
27799         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
27800         so that there are no conversion errors on AIX.
27801         * tests/test-mbsrtowcs.c (main): LIkewise.
27802
27803 2008-12-20  Bruno Haible  <bruno@clisp.org>
27804
27805         Work around wctob bug on Solaris <= 9.
27806         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
27807         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
27808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
27809         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
27810         * modules/wctob (Files): Add m4/locale-fr.m4.
27811         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
27812
27813 2008-12-20  Bruno Haible  <bruno@clisp.org>
27814
27815         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
27816         /dev/null.
27817         * tests/test-select-in.sh: Likewise.
27818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27819
27820 2008-12-20  Bruno Haible  <bruno@clisp.org>
27821
27822         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
27823         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
27824         Cygwin 1.5.x.
27825
27826 2008-12-20  Bruno Haible  <bruno@clisp.org>
27827
27828         Ensure mbstate_t is defined on HP-UX 11.11.
27829         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
27830         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
27831         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
27832         AC_USE_SYSTEM_EXTENSIONS.
27833         * modules/fnmatch (Depends-on): Add extensions.
27834         * modules/mbrlen (Depends-on): Likewise.
27835         * modules/mbrtowc (Depends-on): Likewise.
27836         * modules/mbsinit (Depends-on): Likewise.
27837         * modules/mbsrtowcs (Depends-on): Likewise.
27838         * modules/mbswidth (Depends-on): Likewise.
27839         * modules/quotearg (Depends-on): Likewise.
27840         * modules/strftime (Depends-on): Likewise.
27841
27842 2008-12-20  Bruno Haible  <bruno@clisp.org>
27843
27844         Ensure wctob is declared on IRIX 6.5.
27845         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
27846         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
27847         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
27848         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
27849         of HAVE_WCTOB.
27850         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
27851         HAVE_WCTOB.
27852         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
27853
27854 2008-12-19  Bruno Haible  <bruno@clisp.org>
27855
27856         * modules/mbsrtowcs-tests: New file.
27857         * tests/test-mbsrtowcs1.sh: New file.
27858         * tests/test-mbsrtowcs2.sh: New file.
27859         * tests/test-mbsrtowcs3.sh: New file.
27860         * tests/test-mbsrtowcs4.sh: New file.
27861         * tests/test-mbsrtowcs.c: New file.
27862
27863         New module 'mbsrtowcs'.
27864         * lib/wchar.in.h (mbsrtowcs): New declaration.
27865         * lib/mbsrtowcs.c: New file.
27866         * m4/mbsrtowcs.m4: New file.
27867         * modules/mbsrtowcs: New file.
27868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
27869         HAVE_MBSRTOWCS.
27870         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
27871         HAVE_MBSRTOWCS.
27872         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
27873
27874 2008-12-19  Bruno Haible  <bruno@clisp.org>
27875
27876         New module 'mbrlen'.
27877         * lib/wchar.in.h (mbrlen): New declaration.
27878         * lib/mbrlen.c: New file.
27879         * m4/mbrlen.m4: New file.
27880         * modules/mbrlen: New file.
27881         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
27882         HAVE_MBRLEN.
27883         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
27884         HAVE_MBRLEN.
27885         * doc/posix-functions/mbrlen.texi: Document the new module.
27886
27887 2008-12-19  Bruno Haible  <bruno@clisp.org>
27888
27889         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
27890         * modules/mbrtowc (Depends-on): Add verify.
27891         Suggested by Paul Eggert.
27892
27893 2008-12-18  Bruno Haible  <bruno@clisp.org>
27894
27895         * modules/mbsinit-tests: New file.
27896         * tests/test-mbsinit.sh: New file.
27897         * tests/test-mbsinit.c: New file.
27898
27899 2008-12-18  Bruno Haible  <bruno@clisp.org>
27900
27901         * modules/mbrtowc-tests: New file.
27902         * tests/test-mbrtowc1.sh: New file.
27903         * tests/test-mbrtowc2.sh: New file.
27904         * tests/test-mbrtowc3.sh: New file.
27905         * tests/test-mbrtowc4.sh: New file.
27906         * tests/test-mbrtowc.c: New file.
27907
27908         New module 'mbrtowc'.
27909         * lib/wchar.in.h (mbstate_t): Override when the system does not have
27910         mbsinit and mbrtowc.
27911         (mbrtowc): New declaration.
27912         * lib/mbrtowc.c: New file.
27913         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
27914         * modules/mbrtowc: New file.
27915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
27916         HAVE_MBRTOWC.
27917         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
27918         HAVE_MBRTOWC.
27919         * doc/posix-functions/mbrtowc.texi: Document the new module.
27920
27921 2008-12-18  Bruno Haible  <bruno@clisp.org>
27922
27923         New module 'wctob'.
27924         * lib/wchar.in.h (wctob): New declaration.
27925         * lib/wctob.c: New file.
27926         * m4/wctob.m4: New file.
27927         * modules/wctob: New file.
27928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
27929         HAVE_WCTOB.
27930         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
27931         * doc/posix-functions/wctob.texi: Document the new module.
27932
27933 2008-12-18  Bruno Haible  <bruno@clisp.org>
27934
27935         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
27936         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
27937
27938 2008-12-18  Simon Josefsson  <simon@josefsson.org>
27939
27940         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
27941         G. Christensen" <tgc@jupiterrise.com>.
27942
27943         * lib/flock.c: Need to include errno.h.  Reported by "Tom
27944         G. Christensen" <tgc@jupiterrise.com>.
27945
27946         * lib/flock.c: Need to include string.h.  Reported by "Tom
27947         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
27948         <ebb9@byu.net>.
27949
27950 2008-12-18  Bruno Haible  <bruno@clisp.org>
27951
27952         * m4/locale-ja.m4: New file, from GNU gettext.
27953
27954 2008-12-17  Bruno Haible  <bruno@clisp.org>
27955
27956         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
27957         Suggested by Eric Blake.
27958
27959 2008-12-17  Bruno Haible  <bruno@clisp.org>
27960
27961         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
27962
27963 2008-12-17  Bruno Haible  <bruno@clisp.org>
27964
27965         * lib/mbsinit.c: Include verify.h. Verify an assumption.
27966         * modules/mbsinit (Depends-on): Add verify.
27967         Suggested by Paul Eggert.
27968
27969 2008-12-17  Bruno Haible  <bruno@clisp.org>
27970
27971         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
27972         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
27973         gl_FUNC_MBRTOWC.
27974         * m4/mbiter.m4 (gl_MBITER): LIkewise.
27975         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
27976         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
27977         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
27978         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
27979         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
27980         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
27981         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
27982         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
27983         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
27984         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
27985         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
27986         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
27987         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
27988         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
27989         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27990         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
27991         * modules/trim (configure.ac): Likewise.
27992
27993 2008-12-17  Bruno Haible  <bruno@clisp.org>
27994
27995         * modules/btowc-tests: New file.
27996         * tests/test-btowc1.sh: New file.
27997         * tests/test-btowc2.sh: New file.
27998         * tests/test-btowc.c: New file.
27999
28000         New module 'btowc'.
28001         * lib/wchar.in.h (btowc): New declaration.
28002         * lib/btowc.c: New file.
28003         * m4/btowc.m4: New file.
28004         * modules/btowc: New file.
28005         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28006         HAVE_BTOWC.
28007         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28008         * doc/posix-functions/btowc.texi: Document the new module.
28009
28010 2008-12-17  Bruno Haible  <bruno@clisp.org>
28011
28012         New module 'mbsinit'.
28013         * lib/wchar.in.h (mbsinit): New declaration.
28014         * lib/mbsinit.c: New file.
28015         * m4/mbsinit.m4: New file.
28016         * modules/mbsinit: New file.
28017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28018         HAVE_MBSINIT.
28019         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28020         HAVE_MBSINIT.
28021         * doc/posix-functions/mbsinit.texi: Document the new module.
28022
28023 2008-12-16  Bruno Haible  <bruno@clisp.org>
28024
28025         * lib/unistd.in.h: Add comment.
28026         * tests/test-environ.c: Don't include <stdlib.h>.
28027
28028 2008-12-16  Bruno Haible  <bruno@clisp.org>
28029
28030         * lib/parse-duration.h (parse_duration): Document return value
28031         convention.
28032         * lib/parse-duration.c: Include specification header first. Add
28033         comments.
28034         (_): Remove macro.
28035         (parse_year_month_day, parse_hour_minute_second): Move side effects
28036         outside of strchr call.
28037         (parse_non_iso8601): Move side effects outside of isspace call.
28038         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28039         call.
28040
28041 2008-12-16  Bruno Haible  <bruno@clisp.org>
28042
28043         * tests/test-parse-duration.sh: Produce no output when the test
28044         succeeds.
28045
28046 2008-12-16  Bruno Haible  <bruno@clisp.org>
28047
28048         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
28049         expressions.
28050
28051 2008-12-15  Bruno Haible  <bruno@clisp.org>
28052
28053         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
28054         * doc/glibc-functions/flistxattr.texi: Likewise.
28055         * doc/glibc-functions/fopencookie.texi: Likewise.
28056         * doc/glibc-functions/fremovexattr.texi: Likewise.
28057         * doc/glibc-functions/fsetxattr.texi: Likewise.
28058         * doc/glibc-functions/getxattr.texi: Likewise.
28059         * doc/glibc-functions/lgetxattr.texi: Likewise.
28060         * doc/glibc-functions/listxattr.texi: Likewise.
28061         * doc/glibc-functions/llistxattr.texi: Likewise.
28062         * doc/glibc-functions/lremovexattr.texi: Likewise.
28063         * doc/glibc-functions/lsetxattr.texi: Likewise.
28064         * doc/glibc-functions/removexattr.texi: Likewise.
28065         * doc/glibc-functions/setxattr.texi: Likewise.
28066         * doc/posix-functions/open_memstream.texi: Likewise.
28067
28068 2008-12-15  Eric Blake  <ebb9@byu.net>
28069
28070         Update doc for cygwin 1.7.
28071         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28072         functions.
28073         * doc/posix-functions/fchmodat.texi: Likewise.
28074         * doc/posix-functions/fchownat.texi: Likewise.
28075         * doc/posix-functions/fdopendir.texi: Likewise.
28076         * doc/posix-functions/fmemopen.texi: Likewise.
28077         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28078         * doc/posix-functions/fstatat.texi: Likewise.
28079         * doc/posix-functions/futimens.texi: Likewise.
28080         * doc/posix-functions/gai_strerror.texi: Likewise.
28081         * doc/posix-functions/getaddrinfo.texi: Likewise.
28082         * doc/posix-functions/getnameinfo.texi: Likewise.
28083         * doc/posix-functions/if_freenameindex.texi: Likewise.
28084         * doc/posix-functions/if_indextoname.texi: Likewise.
28085         * doc/posix-functions/if_nameindex.texi: Likewise.
28086         * doc/posix-functions/if_nametoindex.texi: Likewise.
28087         * doc/posix-functions/insque.texi: Likewise.
28088         * doc/posix-functions/linkat.texi: Likewise.
28089         * doc/posix-functions/llrint.texi: Likewise.
28090         * doc/posix-functions/llrintf.texi: Likewise.
28091         * doc/posix-functions/llrintl.texi: Likewise.
28092         * doc/posix-functions/lockf.texi: Likewise.
28093         * doc/posix-functions/lrintl.texi: Likewise.
28094         * doc/posix-functions/mkdirat.texi: Likewise.
28095         * doc/posix-functions/mkfifoat.texi: Likewise.
28096         * doc/posix-functions/mknodat.texi: Likewise.
28097         * doc/posix-functions/mq_close.texi: Likewise.
28098         * doc/posix-functions/mq_getattr.texi: Likewise.
28099         * doc/posix-functions/mq_notify.texi: Likewise.
28100         * doc/posix-functions/mq_open.texi: Likewise.
28101         * doc/posix-functions/mq_receive.texi: Likewise.
28102         * doc/posix-functions/mq_send.texi: Likewise.
28103         * doc/posix-functions/mq_setattr.texi: Likewise.
28104         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28105         * doc/posix-functions/mq_timedsend.texi: Likewise.
28106         * doc/posix-functions/mq_unlink.texi: Likewise.
28107         * doc/posix-functions/open_memstream.texi: Likewise.
28108         * doc/posix-functions/openat.texi: Likewise.
28109         * doc/posix-functions/posix_fadvise.texi: Likewise.
28110         * doc/posix-functions/posix_fallocate.texi: Likewise.
28111         * doc/posix-functions/posix_madvise.texi: Likewise.
28112         * doc/posix-functions/posix_memalign.texi: Likewise.
28113         * doc/posix-functions/posix_openpt.texi: Likewise.
28114         * doc/posix-functions/readlinkat.texi: Likewise.
28115         * doc/posix-functions/remque.texi: Likewise.
28116         * doc/posix-functions/renameat.texi: Likewise.
28117         * doc/posix-functions/rintl.texi: Likewise.
28118         * doc/posix-functions/sem_unlink.texi: Likewise.
28119         * doc/posix-functions/shm_open.texi: Likewise.
28120         * doc/posix-functions/shm_unlink.texi: Likewise.
28121         * doc/posix-functions/signgam.texi: Likewise.
28122         * doc/posix-functions/sigset.texi: Likewise.
28123         * doc/posix-functions/stpcpy.texi: Likewise.
28124         * doc/posix-functions/stpncpy.texi: Likewise.
28125         * doc/posix-functions/strerror.texi: Likewise.
28126         * doc/posix-functions/strtod.texi: Likewise.
28127         * doc/posix-functions/symlinkat.texi: Likewise.
28128         * doc/posix-functions/unlinkat.texi: Likewise.
28129         * doc/posix-functions/utimensat.texi: Likewise.
28130         * doc/glibc-functions/bindresvport.texi: Likewise.
28131         * doc/glibc-functions/dn_expand.texi: Likewise.
28132         * doc/glibc-functions/exp10.texi: Likewise.
28133         * doc/glibc-functions/exp10f.texi: Likewise.
28134         * doc/glibc-functions/fgetxattr.texi: Likewise.
28135         * doc/glibc-functions/flistxattr.texi: Likewise.
28136         * doc/glibc-functions/fopencookie.texi: Likewise.
28137         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28138         * doc/glibc-functions/fremovexattr.texi: Likewise.
28139         * doc/glibc-functions/fsetxattr.texi: Likewise.
28140         * doc/glibc-functions/getifaddrs.texi: Likewise.
28141         * doc/glibc-functions/getxattr.texi: Likewise.
28142         * doc/glibc-functions/lgetxattr.texi: Likewise.
28143         * doc/glibc-functions/listxattr.texi: Likewise.
28144         * doc/glibc-functions/llistxattr.texi: Likewise.
28145         * doc/glibc-functions/lremovexattr.texi: Likewise.
28146         * doc/glibc-functions/lsetxattr.texi: Likewise.
28147         * doc/glibc-functions/pow10.texi: Likewise.
28148         * doc/glibc-functions/pow10f.texi: Likewise.
28149         * doc/glibc-functions/rcmd_af.texi: Likewise.
28150         * doc/glibc-functions/removexattr.texi: Likewise.
28151         * doc/glibc-functions/res_init.texi: Likewise.
28152         * doc/glibc-functions/res_mkquery.texi: Likewise.
28153         * doc/glibc-functions/res_query.texi: Likewise.
28154         * doc/glibc-functions/res_querydomain.texi: Likewise.
28155         * doc/glibc-functions/res_send.texi: Likewise.
28156         * doc/glibc-functions/rresvport_af.texi: Likewise.
28157         * doc/glibc-functions/setxattr.texi: Likewise.
28158         * doc/glibc-functions/strcasestr.texi: Likewise.
28159
28160 2008-12-15  Bruno Haible  <bruno@clisp.org>
28161
28162         Fix compilation error on OSF/1 4.0.
28163         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28164         <sys/time.h>, simply delegate to the system header.
28165         Reported by Daniel Richard G. <oss@teragram.com>.
28166
28167 2008-12-15  Bruno Haible  <bruno@clisp.org>
28168
28169         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28170         * doc/posix-functions/fchmodat.texi: Likewise.
28171         * doc/posix-functions/fchownat.texi: Likewise.
28172         * doc/posix-functions/fdopendir.texi: Likewise.
28173         * doc/posix-functions/fstatat.texi: Likewise.
28174         * doc/posix-functions/mkdirat.texi: Likewise.
28175         * doc/posix-functions/unlinkat.texi: Likewise.
28176
28177 2008-12-14  Bruno Haible  <bruno@clisp.org>
28178
28179         Update doc for POSIX:2008.
28180         * doc/posix-functions/faccessat.texi: New file.
28181         * doc/posix-functions/fchmodat.texi: New file.
28182         * doc/posix-functions/fchownat.texi: New file.
28183         * doc/posix-functions/fdopendir.texi: New file.
28184         * doc/posix-functions/fstatat.texi: New file.
28185         * doc/posix-functions/futimens.texi: New file.
28186         * doc/posix-functions/linkat.texi: New file.
28187         * doc/posix-functions/mkdirat.texi: New file.
28188         * doc/posix-functions/mkfifoat.texi: New file.
28189         * doc/posix-functions/mknodat.texi: New file.
28190         * doc/posix-functions/open_wmemstream.texi: New file.
28191         * doc/posix-functions/openat.texi: New file.
28192         * doc/posix-functions/psiginfo.texi: New file.
28193         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28194         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28195         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28196         * doc/posix-functions/readlinkat.texi: New file.
28197         * doc/posix-functions/renameat.texi: New file.
28198         * doc/posix-functions/strerror_l.texi: New file.
28199         * doc/posix-functions/symlinkat.texi: New file.
28200         * doc/posix-functions/unlinkat.texi: New file.
28201         * doc/posix-functions/utimensat.texi: New file.
28202         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28203
28204 2008-12-14  Bruno Haible  <bruno@clisp.org>
28205
28206         Update doc for POSIX:2008.
28207         * doc/posix-functions/alphasort.texi: Renamed from
28208         doc/glibc-functions/alphasort.texi.
28209         * doc/posix-functions/dirfd.texi: Renamed from
28210         doc/glibc-functions/dirfd.texi.
28211         * doc/posix-functions/dprintf.texi: Renamed from
28212         doc/glibc-functions/dprintf.texi.
28213         * doc/posix-functions/duplocale.texi: Renamed from
28214         doc/glibc-functions/duplocale.texi.
28215         * doc/posix-functions/fexecve.texi: Renamed from
28216         doc/glibc-functions/fexecve.texi.
28217         * doc/posix-functions/fmemopen.texi: Renamed from
28218         doc/glibc-functions/fmemopen.texi.
28219         * doc/posix-functions/freelocale.texi: Renamed from
28220         doc/glibc-functions/freelocale.texi.
28221         * doc/posix-functions/getdate_err.texi: Renamed from
28222         doc/glibc-functions/getdate_err.texi.
28223         * doc/posix-functions/isalnum_l.texi: Renamed from
28224         doc/glibc-functions/isalnum_l.texi.
28225         * doc/posix-functions/isalpha_l.texi: Renamed from
28226         doc/glibc-functions/isalpha_l.texi.
28227         * doc/posix-functions/isblank_l.texi: Renamed from
28228         doc/glibc-functions/isblank_l.texi.
28229         * doc/posix-functions/iscntrl_l.texi: Renamed from
28230         doc/glibc-functions/iscntrl_l.texi.
28231         * doc/posix-functions/isdigit_l.texi: Renamed from
28232         doc/glibc-functions/isdigit_l.texi.
28233         * doc/posix-functions/isgraph_l.texi: Renamed from
28234         doc/glibc-functions/isgraph_l.texi.
28235         * doc/posix-functions/islower_l.texi: Renamed from
28236         doc/glibc-functions/islower_l.texi.
28237         * doc/posix-functions/isprint_l.texi: Renamed from
28238         doc/glibc-functions/isprint_l.texi.
28239         * doc/posix-functions/ispunct_l.texi: Renamed from
28240         doc/glibc-functions/ispunct_l.texi.
28241         * doc/posix-functions/isspace_l.texi: Renamed from
28242         doc/glibc-functions/isspace_l.texi.
28243         * doc/posix-functions/isupper_l.texi: Renamed from
28244         doc/glibc-functions/isupper_l.texi.
28245         * doc/posix-functions/iswalnum_l.texi: Renamed from
28246         doc/glibc-functions/iswalnum_l.texi.
28247         * doc/posix-functions/iswalpha_l.texi: Renamed from
28248         doc/glibc-functions/iswalpha_l.texi.
28249         * doc/posix-functions/iswblank_l.texi: Renamed from
28250         doc/glibc-functions/iswblank_l.texi.
28251         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28252         doc/glibc-functions/iswcntrl_l.texi.
28253         * doc/posix-functions/iswctype_l.texi: Renamed from
28254         doc/glibc-functions/iswctype_l.texi.
28255         * doc/posix-functions/iswdigit_l.texi: Renamed from
28256         doc/glibc-functions/iswdigit_l.texi.
28257         * doc/posix-functions/iswgraph_l.texi: Renamed from
28258         doc/glibc-functions/iswgraph_l.texi.
28259         * doc/posix-functions/iswlower_l.texi: Renamed from
28260         doc/glibc-functions/iswlower_l.texi.
28261         * doc/posix-functions/iswprint_l.texi: Renamed from
28262         doc/glibc-functions/iswprint_l.texi.
28263         * doc/posix-functions/iswpunct_l.texi: Renamed from
28264         doc/glibc-functions/iswpunct_l.texi.
28265         * doc/posix-functions/iswspace_l.texi: Renamed from
28266         doc/glibc-functions/iswspace_l.texi.
28267         * doc/posix-functions/iswupper_l.texi: Renamed from
28268         doc/glibc-functions/iswupper_l.texi.
28269         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28270         doc/glibc-functions/iswxdigit_l.texi.
28271         * doc/posix-functions/isxdigit_l.texi: Renamed from
28272         doc/glibc-functions/isxdigit_l.texi.
28273         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28274         doc/glibc-functions/mbsnrtowcs.texi.
28275         * doc/posix-functions/mkdtemp.texi: Renamed from
28276         doc/glibc-functions/mkdtemp.texi.
28277         * doc/posix-functions/newlocale.texi: Renamed from
28278         doc/glibc-functions/newlocale.texi.
28279         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28280         doc/glibc-functions/nl_langinfo_l.texi.
28281         * doc/posix-functions/open_memstream.texi: Renamed from
28282         doc/glibc-functions/open_memstream.texi.
28283         * doc/posix-functions/opterr.texi: Renamed from
28284         doc/glibc-functions/opterr.texi.
28285         * doc/posix-functions/optind.texi: Renamed from
28286         doc/glibc-functions/optind.texi.
28287         * doc/posix-functions/optopt.texi: Renamed from
28288         doc/glibc-functions/optopt.texi.
28289         * doc/posix-functions/psignal.texi: Renamed from
28290         doc/glibc-functions/psignal.texi.
28291         * doc/posix-functions/scandir.texi: Renamed from
28292         doc/glibc-functions/scandir.texi.
28293         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28294         doc/glibc-functions/sched_get_priority_min.texi.
28295         * doc/posix-functions/signgam.texi: Renamed from
28296         doc/glibc-functions/signgam.texi.
28297         * doc/posix-functions/stpcpy.texi: Renamed from
28298         doc/glibc-functions/stpcpy.texi.
28299         * doc/posix-functions/stpncpy.texi: Renamed from
28300         doc/glibc-functions/stpncpy.texi.
28301         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28302         doc/glibc-functions/strcasecmp_l.texi.
28303         * doc/posix-functions/strcoll_l.texi: Renamed from
28304         doc/glibc-functions/strcoll_l.texi.
28305         * doc/posix-functions/strfmon_l.texi: Renamed from
28306         doc/glibc-functions/strfmon_l.texi.
28307         * doc/posix-functions/strftime_l.texi: Renamed from
28308         doc/glibc-functions/strftime_l.texi.
28309         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28310         doc/glibc-functions/strncasecmp_l.texi.
28311         * doc/posix-functions/strndup.texi: Renamed from
28312         doc/glibc-functions/strndup.texi.
28313         * doc/posix-functions/strnlen.texi: Renamed from
28314         doc/glibc-functions/strnlen.texi.
28315         * doc/posix-functions/strsignal.texi: Renamed from
28316         doc/glibc-functions/strsignal.texi.
28317         * doc/posix-functions/strxfrm_l.texi: Renamed from
28318         doc/glibc-functions/strxfrm_l.texi.
28319         * doc/posix-functions/timer_gettime.texi: Renamed from
28320         doc/glibc-functions/timer_gettime.texi.
28321         * doc/posix-functions/tolower_l.texi: Renamed from
28322         doc/glibc-functions/tolower_l.texi.
28323         * doc/posix-functions/toupper_l.texi: Renamed from
28324         doc/glibc-functions/toupper_l.texi.
28325         * doc/posix-functions/towctrans_l.texi: Renamed from
28326         doc/glibc-functions/towctrans_l.texi.
28327         * doc/posix-functions/towlower_l.texi: Renamed from
28328         doc/glibc-functions/towlower_l.texi.
28329         * doc/posix-functions/towupper_l.texi: Renamed from
28330         doc/glibc-functions/towupper_l.texi.
28331         * doc/posix-functions/uselocale.texi: Renamed from
28332         doc/glibc-functions/uselocale.texi.
28333         * doc/posix-functions/vdprintf.texi: Renamed from
28334         doc/glibc-functions/vdprintf.texi.
28335         * doc/posix-functions/wcpcpy.texi:
28336         Renamed from doc/glibc-functions/wcpcpy.texi.
28337         * doc/posix-functions/wcpncpy.texi: Renamed from
28338         doc/glibc-functions/wcpncpy.texi.
28339         * doc/posix-functions/wcscasecmp.texi: Renamed from
28340         doc/glibc-functions/wcscasecmp.texi.
28341         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28342         doc/glibc-functions/wcscasecmp_l.texi.
28343         * doc/posix-functions/wcscoll_l.texi: Renamed from
28344         doc/glibc-functions/wcscoll_l.texi.
28345         * doc/posix-functions/wcsdup.texi: Renamed from
28346         doc/glibc-functions/wcsdup.texi.
28347         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28348         doc/glibc-functions/wcsncasecmp.texi.
28349         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28350         doc/glibc-functions/wcsncasecmp_l.texi.
28351         * doc/posix-functions/wcsnlen.texi: Renamed from
28352         doc/glibc-functions/wcsnlen.texi.
28353         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28354         doc/glibc-functions/wcsnrtombs.texi.
28355         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28356         doc/glibc-functions/wcsxfrm_l.texi.
28357         * doc/posix-functions/wctrans_l.texi: Renamed from
28358         doc/glibc-functions/wctrans_l.texi.
28359         * doc/posix-functions/wctype_l.texi: Renamed from
28360         doc/glibc-functions/wctype_l.texi.
28361         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28362         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28363         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28364         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28365         these subsections.
28366         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28367         Remove sections.
28368
28369 2008-12-14  Bruno Haible  <bruno@clisp.org>
28370
28371         Update doc for POSIX:2008.
28372         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28373
28374 2008-12-14  Bruno Haible  <bruno@clisp.org>
28375
28376         Update doc for POSIX:2008.
28377         * doc/pastposix-functions/bcmp.texi: Renamed from
28378         doc/posix-functions/bcmp.texi.
28379         * doc/pastposix-functions/bcopy.texi: Renamed from
28380         doc/posix-functions/bcopy.texi.
28381         * doc/pastposix-functions/bsd_signal.texi: Renamed from
28382         doc/posix-functions/bsd_signal.texi.
28383         * doc/pastposix-functions/bzero.texi: Renamed from
28384         doc/posix-functions/bzero.texi.
28385         * doc/pastposix-functions/ecvt.texi: Renamed from
28386         doc/posix-functions/ecvt.texi.
28387         * doc/pastposix-functions/fcvt.texi: Renamed from
28388         doc/posix-functions/fcvt.texi.
28389         * doc/pastposix-functions/ftime.texi: Renamed from
28390         doc/posix-functions/ftime.texi.
28391         * doc/pastposix-functions/gcvt.texi: Renamed from
28392         doc/posix-functions/gcvt.texi.
28393         * doc/pastposix-functions/getcontext.texi: Renamed from
28394         doc/posix-functions/getcontext.texi.
28395         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
28396         doc/posix-functions/gethostbyaddr.texi.
28397         * doc/pastposix-functions/gethostbyname.texi: Renamed from
28398         doc/posix-functions/gethostbyname.texi.
28399         * doc/pastposix-functions/getwd.texi: Renamed from
28400         doc/posix-functions/getwd.texi.
28401         * doc/pastposix-functions/h_errno.texi: Renamed from
28402         doc/posix-functions/h_errno.texi.
28403         * doc/pastposix-functions/index.texi: Renamed from
28404         doc/posix-functions/index.texi.
28405         * doc/pastposix-functions/makecontext.texi: Renamed from
28406         doc/posix-functions/makecontext.texi.
28407         * doc/pastposix-functions/mktemp.texi: Renamed from
28408         doc/posix-functions/mktemp.texi.
28409         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
28410         doc/posix-functions/pthread_attr_getstackaddr.texi.
28411         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
28412         doc/posix-functions/pthread_attr_setstackaddr.texi.
28413         * doc/pastposix-functions/rindex.texi: Renamed from
28414         doc/posix-functions/rindex.texi.
28415         * doc/pastposix-functions/scalb.texi: Renamed from
28416         doc/posix-functions/scalb.texi.
28417         * doc/pastposix-functions/setcontext.texi: Renamed from
28418         doc/posix-functions/setcontext.texi.
28419         * doc/pastposix-functions/swapcontext.texi: Renamed from
28420         doc/posix-functions/swapcontext.texi.
28421         * doc/pastposix-functions/ualarm.texi: Renamed from
28422         doc/posix-functions/ualarm.texi.
28423         * doc/pastposix-functions/usleep.texi: Renamed from
28424         doc/posix-functions/usleep.texi.
28425         * doc/pastposix-functions/vfork.texi: Renamed from
28426         doc/posix-functions/vfork.texi.
28427         * doc/pastposix-functions/wcswcs.texi: Renamed from
28428         doc/posix-functions/wcswcs.texi.
28429         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
28430         (Function Substitutes): Update.
28431
28432 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28433
28434         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
28435         m4/strerror.m4.
28436
28437 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28438             Bruno Haible  <bruno@clisp.org>
28439
28440         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
28441
28442 2008-12-13  Bruno Haible  <bruno@clisp.org>
28443
28444         * modules/strtoull (Depends-on): Remove unistd.
28445
28446 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28447
28448         * modules/strtoull (Depends-on): Add stdlib.
28449
28450 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28451
28452         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28453
28454 2008-12-10  Jim Meyering  <meyering@redhat.com>
28455
28456         gl_ASSERT: don't say assertions are disabled when they're not
28457         * m4/assert.m4 (gl_ASSERT): Do not make configure report
28458         "checking whether to enable assertions... no", when they are in
28459         fact enabled.  This is solely a bug in the output of configure.
28460         In spite of saying "no", NDEBUG was not defined in that case.
28461         Also, as noted by Eric Blake, leave assertions enabled upon
28462         --enable-assert=INVALID.
28463
28464 2008-12-10  Bruno Haible  <bruno@clisp.org>
28465
28466         Change MODULES.html to refer to POSIX:2008 where possible.
28467         * MODULES.html.sh (POSIX2008_URL): New variable.
28468         (posix_headers): Remove sys/timeb, ucontext.
28469         (posix2001_headers): New variable.
28470         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
28471         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
28472         index, makecontext, mktemp, pthread_attr_getstackaddr,
28473         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
28474         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
28475         (posix2001_functions): New variable.
28476         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
28477         otherwise.
28478
28479 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28480
28481         add missing include to parse-duration.c
28482         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
28483         * modules/parse-duration (Depends-on): Add xalloc.
28484
28485         fix sed script reading maint.mk
28486         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
28487         (syntax-check-rules): Use it.
28488
28489 2008-12-09  Bruno Haible  <bruno@clisp.org>
28490
28491         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
28492         MacOS X 10.4/PowerPC.
28493         Reported by Simon Josefsson.
28494
28495 2008-12-08  Jim Meyering  <meyering@redhat.com>
28496
28497         work around mingw's lack of some S_IF definitions
28498         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
28499         Reported by Simon Josefsson.
28500
28501 2008-12-08  Bruno Haible  <bruno@clisp.org>
28502
28503         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
28504         applied to variables. Needed on MacOS X 10.4/PowerPC.
28505         Reported by Simon Josefsson.
28506
28507 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
28508         and Eric Blake  <ebb9@byu.net>
28509
28510         assert: honor --enable-assert
28511         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
28512         order to honor --enable-assert, rather than treating it as a
28513         synonym for --disable-assert.
28514
28515 2008-12-08  Jim Meyering  <meyering@redhat.com>
28516
28517         * lib/posixtm.c: Remove now-useless declaration of mktime.
28518
28519         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
28520
28521 2008-12-07  Bruno Haible  <bruno@clisp.org>
28522
28523         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
28524         test_once): Mark functions as static.
28525         * tests/test-tls.c (test_tls): Likewise.
28526
28527 2008-12-07  Bruno Haible  <bruno@clisp.org>
28528
28529         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
28530         iconv_register_autodetect.
28531
28532 2008-12-07  Jim Meyering  <meyering@redhat.com>
28533
28534         posixtm.c: avoid a warning
28535         * lib/posixtm.c (posixtime): Don't initialize tm0.
28536         It's no longer needed to placate gcc4's -Wuninitialized,
28537         and the attempt to placate would elicit a new warning.
28538
28539         unicodeio.c: mark unused parameters
28540         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28541         (fallback_failure_callback): Likewise.
28542
28543 2008-12-07  Bruno Haible  <bruno@clisp.org>
28544
28545         * gnulib-tool (func_create_testdir): When building the tests
28546         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
28547         Reported by Simon Josefsson.
28548
28549 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28550
28551         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
28552
28553 2008-12-06  Bruno Haible  <bruno@clisp.org>
28554
28555         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
28556         Suggested by Eric Blake.
28557
28558 2008-12-06  Bruno Haible  <bruno@clisp.org>
28559
28560         Fix a c-stack test failure on MacOS X.
28561         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
28562         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
28563         handler for SIGBUS as well.
28564         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
28565         install a signal handler for SIGBUS as well.
28566         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
28567
28568 2008-12-06  Bruno Haible  <bruno@clisp.org>
28569
28570         Advocacy documentation.
28571         * doc/gnulib-intro.texi (Benefits): New section.
28572         * doc/gnulib.texi: Update.
28573
28574 2008-12-06  Bruno Haible  <bruno@clisp.org>
28575
28576         Document the 'manywarnings' module.
28577         * doc/manywarnings.texi: New file.
28578         * doc/gnulib.texi: Include it.
28579
28580 2008-12-05  Eric Blake  <ebb9@byu.net>
28581
28582         tests: silence some gcc warnings
28583         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
28584         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
28585         type mismatches.
28586
28587 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28588             Bruno Haible  <bruno@clisp.org>
28589
28590         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
28591
28592 2008-11-29  Jim Meyering  <meyering@redhat.com>
28593
28594         unicodeio.c: mark unused parameters
28595         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28596         (fallback_failure_callback): Likewise.
28597
28598         fts: fix a thinko
28599         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
28600         (set_stat_type): Return S_IF*-valued "type" directly.
28601         Prompted by James Youngman's spotting a related bug.
28602         Confirmed by further testing through find.
28603
28604         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
28605         * lib/fts.c (D_TYPE): Define.
28606         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
28607         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
28608         (s_ifmt_shift_bits): New function.
28609         (set_stat_type): New function.
28610         (fts_build): When not calling fts_stat, call set_stat_type
28611         to propagate dirent.d_type info to fts_read caller.
28612         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
28613         fts_statp->st_mode type information may be valid.
28614
28615 2008-11-28  Simon Josefsson  <simon@josefsson.org>
28616
28617         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
28618         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
28619         <sds@gnu.org>.
28620
28621 2008-11-20  Bruno Haible  <bruno@clisp.org>
28622
28623         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
28624         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
28625         INCLUDE_NEXT.
28626         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
28627         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
28628         * modules/math (Makefile.am): Substitute
28629         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
28630         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28631
28632 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28633             Bruno Haible  <bruno@clisp.org>
28634
28635         * lib/stdint.in.h: Define all type macros so that their expansion is
28636         a single typedef'ed token. Fixes a compilation failure in Boost which
28637         does "using ::int8_t;".
28638
28639 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28640
28641         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
28642         gl_MANYWARN_ALL_GCC.
28643         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
28644         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
28645         * modules/manywarnings: New file.
28646         * MODULES.html.sh: Mention manywarnings module.
28647
28648 2008-11-18  Bruno Haible  <bruno@clisp.org>
28649
28650         * doc/gnulib-tool.texi (Unit tests): New section.
28651
28652 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28653
28654         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
28655         paths like 'lib/po/foo.po'.
28656
28657 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28658
28659         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
28660         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
28661
28662 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28663
28664         * m4/warnings.m4: Use CPPFLAGS to really check whether the
28665         parameter works.
28666
28667 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28668
28669         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
28670
28671 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28672
28673         * modules/parse-duration-tests: New file.
28674         * tests/test-parse-duration.sh: New file.
28675         * tests/test-parse-duration.c: New file.
28676
28677         New module 'parse-duration'.
28678         * lib/parse-duration.h: New file.
28679         * lib/parse-duration.c: New file.
28680         * modules/parse-duration: New file.
28681
28682 2008-11-17  Bruno Haible  <bruno@clisp.org>
28683
28684         * tests/test-select-out.sh: Comment out the first pipe test.
28685         Reported by Simon Josefsson.
28686
28687 2008-11-17  Bruno Haible  <bruno@clisp.org>
28688
28689         * modules/getaddrinfo (Depends-on): Add servent, hostent.
28690         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
28691         gl_HOSTENT.
28692
28693 2008-11-17  Bruno Haible  <bruno@clisp.org>
28694
28695         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
28696         -lnetwork and -lnet. Needed for Haiku and BeOS.
28697
28698 2008-11-16  Bruno Haible  <bruno@clisp.org>
28699
28700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
28701
28702 2008-11-16  Bruno Haible  <bruno@clisp.org>
28703
28704         Avoid test failure on Haiku.
28705         * tests/test-fsync.c: Include <errno.h>.
28706         (main): Don't require that fsync (0) fails.
28707
28708 2008-11-15  Bruno Haible  <bruno@clisp.org>
28709
28710         New module 'hostent'.
28711         * modules/hostent: New file.
28712         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
28713
28714 2008-11-15  Bruno Haible  <bruno@clisp.org>
28715
28716         New module 'servent'.
28717         * modules/servent: New file.
28718         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
28719
28720 2008-11-15  Bruno Haible  <bruno@clisp.org>
28721
28722         Avoid generating same test program with two different rules.
28723         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
28724         test-frexp to test-frexp-nolibm.
28725         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
28726         test-frexpl to test-frexpl-nolibm.
28727
28728 2008-11-15  Bruno Haible  <bruno@clisp.org>
28729
28730         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
28731         $(FREXPL_LIBM).
28732
28733 2008-11-15  Bruno Haible  <bruno@clisp.org>
28734
28735         * lib/netdb.in.h: Activate the definitions also when the system's
28736         <netdb.h> has 'struct addrinfo'.
28737         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
28738         EAI_OVERFLOW or AI_NUMERICSERV.
28739         * doc/posix-headers/netdb.texi: Document the problem.
28740
28741 2008-11-15  Bruno Haible  <bruno@clisp.org>
28742
28743         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
28744
28745         Make the 'sched' module work on platforms where <sched.h> exists but
28746         is incomplete (such as Haiku).
28747         * lib/sched.in.h; Include the system's <sched.h> if it exists.
28748         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
28749         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
28750         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
28751         HAVE_STRUCT_SCHED_PARAM.
28752         * modules/sched (Depends-on): Add include_next.
28753         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
28754         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
28755         * doc/posix-headers/sched.texi: Document the issue.
28756
28757 2008-11-13  Jim Meyering  <meyering@redhat.com>
28758
28759         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
28760         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
28761         test would fail due to the difference in the Report bugs to ...
28762         line.  The expected address is empty, "<>", while the actual
28763         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
28764
28765 2008-11-12  Bruno Haible  <bruno@clisp.org>
28766
28767         lstat: don't compile lstat.c on systems lacking lstat
28768         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
28769         which don't have lstat; this is handled by lib/sys_stat.in.h already.
28770         Reported by Daniel P. Berrange via Jim Meyering.
28771
28772 2008-11-12  Jim Meyering  <meyering@redhat.com>
28773
28774         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
28775
28776 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28777
28778         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
28779         instead.
28780
28781 2008-11-12  Bruno Haible  <bruno@clisp.org>
28782
28783         * lib/unicodeio.c: Include unistr.h.
28784         (utf8_wctomb): Remove function.
28785         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
28786
28787 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28788
28789         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
28790         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
28791         <bruno@clisp.org>.
28792         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
28793
28794 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28795
28796         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
28797         * doc/gnulib.texi: Add section for warnings.
28798
28799 2008-11-11  Bruno Haible  <bruno@clisp.org>
28800
28801         * lib/sockets.h: Add a comment.
28802
28803 2008-11-11  Karl Berry  <karl@gnu.org>
28804
28805         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
28806
28807 2008-11-11  Eric Blake  <ebb9@byu.net>
28808
28809         fdl.texi: avoid git symlinks
28810         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
28811
28812 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28813
28814         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
28815
28816 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28817
28818         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
28819         (gl_WARN_ADD): Substitute $2 if literal.
28820
28821 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28822
28823         * m4/warning.m4: Remove.
28824
28825 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28826
28827         * m4/warnings.m4: Almost complete rewrite. :-)
28828
28829 2008-11-10  Simon Josefsson  <simon@josefsson.org>
28830
28831         * modules/warnings: New module.
28832         * m4/warnings.m4: New file.
28833         * MODULES.html.sh: Mention warnings module.
28834         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
28835         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28836
28837 2008-11-10  Eric Blake  <ebb9@byu.net>
28838
28839         fdl.texi: make a symlink to the latest version
28840         * doc/standards.texi: Revert today's earlier change.
28841         * doc/fdl-1.2.texi: Rename from old fdl.texi...
28842         * doc/fdl.texi: ...and replace this with a symlink to the newer
28843         fdl-1.3.texi.
28844
28845 2008-11-10  Bruno Haible  <bruno@clisp.org>
28846
28847         * tests/test-select-fd.c (main): Accept the result file name as fourth
28848         argument.
28849         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
28850         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
28851
28852 2008-11-10  Bruno Haible  <bruno@clisp.org>
28853
28854         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
28855         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
28856         as autoconf-substituted macros.
28857         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
28858         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
28859         gl_NETDB_H_DEFAULTS. Set these variables.
28860         * modules/netdb (Makefile.am): Substitute these variables.
28861
28862 2008-11-10  Eric Blake  <ebb9@byu.net>
28863
28864         standards.texi: include correct file for FDL 1.3
28865         * doc/standards.texi (GNU Free Documentation License): Change
28866         include file to pull in FDL 1.3, not 1.2.
28867
28868         fdl.texi: revert accidental change to license
28869         * doc/fdl.texi: This is FDL 1.2, not 1.3.
28870
28871 2008-11-10  Bruno Haible  <bruno@clisp.org>
28872
28873         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
28874         cross-compiling guesses also when the native compile gives no result.
28875
28876 2008-11-10  Bruno Haible  <bruno@clisp.org>
28877
28878         * lib/spawni.c (__spawni): Force variable into the stack.
28879
28880 2008-11-10  Bruno Haible  <bruno@clisp.org>
28881
28882         Add support for Haiku.
28883         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
28884         glibc and BeOS, but also on Haiku.
28885         * lib/fpurge.c (fpurge): Likewise.
28886         * lib/freadable.c (freadable): Likewise.
28887         * lib/freadahead.c (freadahead): Likewise.
28888         * lib/freading.c (freading): Likewise.
28889         * lib/freadptr.c (freadptr): Likewise.
28890         * lib/freadseek.c (freadptrinc): Likewise.
28891         * lib/fseeko.c (rpl_fseeko): Likewise.
28892         * lib/fseterr.c (fseterr): Likewise.
28893         * lib/fwritable.c (fwritable): Likewise.
28894         * lib/fwriting.c (fwriting): Likewise.
28895         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
28896
28897 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28898
28899         * lib/config.charset: Treat Haiku like BeOS.
28900
28901 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28902
28903         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
28904         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
28905
28906 2008-11-08  Bruno Haible  <bruno@clisp.org>
28907
28908         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
28909         AC_CACHE_CHECK.
28910
28911 2008-11-08  Bruno Haible  <bruno@clisp.org>
28912
28913         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
28914
28915 2008-11-08  Bruno Haible  <bruno@clisp.org>
28916
28917         * tests/test-select-fd.c: New file.
28918         * tests/test-select-in.sh: New file.
28919         * tests/test-select-out.sh: New file.
28920         * tests/test-select-stdin.c: New file.
28921         * modules/select-tests (Files): Add the new files.
28922         (Depends-on): Add gettimeofday.
28923         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
28924         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
28925         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
28926
28927 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
28928             Bruno Haible  <bruno@clisp.org>
28929
28930         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
28931
28932 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
28933
28934         * build-aux/pmccabe2html: Added support for C++ source files.
28935
28936 2008-11-05  Ben Pfaff  <blp@gnu.org>
28937
28938         Fix lib/close.c build on Windows.
28939         * modules/close (Files): Add lib/w32sock.h.
28940
28941 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
28942
28943         Accept Bison's NEWS format.
28944         * build-aux/announce-gen (print_news_deltas): Tweak
28945         $re_prefix.
28946
28947 2008-11-04  Bruno Haible  <bruno@clisp.org>
28948
28949         * modules/random_r (Maintainer): Add glibc.
28950
28951 2008-11-04  Simon Josefsson  <simon@josefsson.org>
28952
28953         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
28954         by karl@freefriends.org (Karl Berry).
28955         * doc/alloca.texi: Likewise.
28956         * doc/c-ctype.texi: Likewise.
28957         * doc/c-strcase.texi: Likewise.
28958         * doc/c-strcaseeq.texi: Likewise.
28959         * doc/c-strcasestr.texi: Likewise.
28960         * doc/c-strstr.texi: Likewise.
28961         * doc/c-strtod.texi: Likewise.
28962         * doc/c-strtold.texi: Likewise.
28963         * doc/ctime.texi: Likewise.
28964         * doc/error.texi: Likewise.
28965         * doc/fdl.texi: Likewise.
28966         * doc/gcd.texi: Likewise.
28967         * doc/getdate.texi: Likewise.
28968         * doc/gnulib-intro.texi: Likewise.
28969         * doc/gnulib-tool.texi: Likewise.
28970         * doc/gnulib.texi: Likewise.
28971         * doc/inet_ntoa.texi: Likewise.
28972         * doc/maintain.texi: Likewise.
28973         * doc/make-stds.texi: Likewise.
28974         * doc/quote.texi: Likewise.
28975         * doc/regexprops-generic.texi: Likewise.
28976         * doc/standards.texi: Likewise.
28977         * doc/verify.texi: Likewise.
28978         * doc/visibility.texi: Likewise.
28979         * doc/gnulib.texi (GNU Free Documentation License): Include
28980         fdl-1.3.texi instead of fdl.texi.
28981
28982 2008-11-04  Simon Josefsson  <simon@josefsson.org>
28983
28984         * doc/fdl-1.3.texi: New file, from
28985         <http://www.gnu.org/licenses/fdl-1.3.texi>.
28986         * modules/fdl-1.3: Add.
28987         * MODULES.html.sh: Add fdl-1.3.
28988
28989 2008-11-03  Bruno Haible  <bruno@clisp.org>
28990
28991         Make determination of absolute name of header file work with AIX xlc.
28992         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
28993         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
28994         preprocessing.
28995         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28996         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
28997
28998 2008-11-03  Simon Josefsson  <simon@josefsson.org>
28999
29000         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29001         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29002         <ludo@gnu.org>.
29003
29004 2008-11-02  Bruno Haible  <bruno@clisp.org>
29005
29006         Mark 'strpbrk' obsolete.
29007         * modules/strpbrk (Status, Notice): New sections.
29008         * modules/strtok_r (Depends-on): Add strpbrk.
29009
29010 2008-11-02  Bruno Haible  <bruno@clisp.org>
29011
29012         Mark 'strdup' obsolete.
29013         * modules/strdup (Status, Notice): New sections.
29014         * modules/findprog (Depends-on): Add strdup.
29015         * modules/getaddrinfo (Depends-on): Likewise.
29016         * modules/localename (Depends-on): Likewise.
29017         * modules/relocatable-lib (Depends-on): Likewise.
29018         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29019         * modules/relocatable-prog (Depends-on): Likewise.
29020         * modules/trim (Depends-on): Likewise.
29021         * modules/unictype/gen-ctype (Depends-on): Likewise.
29022         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29023
29024 2008-11-02  Bruno Haible  <bruno@clisp.org>
29025
29026         Mark 'strcspn' obsolete.
29027         * modules/strcspn (Status, Notice): New sections.
29028
29029 2008-11-02  Bruno Haible  <bruno@clisp.org>
29030
29031         Mark 'rmdir' obsolete.
29032         * modules/rmdir (Status, Notice): New sections.
29033         * modules/clean-temp (Depends-on): Add rmdir.
29034         * modules/openat (Depends-on): Likewise.
29035
29036 2008-11-02  Bruno Haible  <bruno@clisp.org>
29037
29038         Mark 'raise' obsolete.
29039         * modules/raise (Status, Notice): New sections.
29040         (Include): Specify <signal.h>.
29041         * modules/stdio (Depends-on): Add raise.
29042         * modules/write (Depends-on): Likewise.
29043
29044 2008-11-02  Bruno Haible  <bruno@clisp.org>
29045
29046         Mark 'memset' obsolete.
29047         * modules/memset (Status, Notice): New sections.
29048
29049 2008-11-02  Bruno Haible  <bruno@clisp.org>
29050
29051         Mark 'memmove' obsolete.
29052         * modules/memmove (Status, Notice): New sections.
29053         * modules/argp (Depends-on): Add memmove.
29054         * modules/argz (Depends-on): Likewise.
29055         * modules/canonicalize (Depends-on): Likewise.
29056         * modules/canonicalize-lgpl (Depends-on): Likewise.
29057         * modules/fts (Depends-on): Likewise.
29058         * modules/getcwd (Depends-on): Likewise.
29059         * modules/human (Depends-on): Likewise.
29060         * modules/regex (Depends-on): Likewise.
29061         * modules/striconveh (Depends-on): Likewise.
29062         * modules/trim (Depends-on): Likewise.
29063         * modules/unistr/u8-move (Depends-on): Likewise.
29064         * modules/unistr/u16-move (Depends-on): Likewise.
29065         * modules/unistr/u32-move (Depends-on): Likewise.
29066
29067 2008-11-02  Bruno Haible  <bruno@clisp.org>
29068
29069         Mark 'memcpy' obsolete.
29070         * modules/memcpy (Status, Notice): New sections.
29071
29072 2008-11-02  Bruno Haible  <bruno@clisp.org>
29073
29074         Mark 'memcmp' obsolete.
29075         * modules/memcmp (Status, Notice): New sections.
29076         * modules/argmatch (Depends-on): Add memchr.
29077         * modules/backupfile (Depends-on): Likewise.
29078         * modules/c-strcasestr (Depends-on): Likewise.
29079         * modules/crypto/des (Depends-on): Likewise.
29080         * modules/csharpcomp (Depends-on): Likewise.
29081         * modules/fnmatch (Depends-on): Likewise.
29082         * modules/git-merge-changelog (Depends-on): Likewise.
29083         * modules/isnand (Depends-on): Likewise.
29084         * modules/isnand-nolibm (Depends-on): Likewise.
29085         * modules/isnanf (Depends-on): Likewise.
29086         * modules/isnanf-nolibm (Depends-on): Likewise.
29087         * modules/isnanl (Depends-on): Likewise.
29088         * modules/isnanl-nolibm (Depends-on): Likewise.
29089         * modules/mbchar (Depends-on): Likewise.
29090         * modules/memcoll (Depends-on): Likewise.
29091         * modules/quotearg (Depends-on): Likewise.
29092         * modules/regex (Depends-on): Likewise.
29093         * modules/relocatable-prog (Depends-on): Likewise.
29094         * modules/same (Depends-on): Likewise.
29095         * modules/signbit (Depends-on): Likewise.
29096         * modules/strcasestr-simple (Depends-on): Likewise.
29097         * modules/unictype/gen-ctype (Depends-on): Likewise.
29098         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29099         * modules/uniname/uniname (Depends-on): Likewise.
29100         * modules/unistr/u8-cmp (Depends-on): Likewise.
29101
29102 2008-11-02  Bruno Haible  <bruno@clisp.org>
29103
29104         Mark 'memchr' obsolete.
29105         * modules/memchr (Status, Notice): New sections.
29106         * modules/argp (Depends-on): Add memchr.
29107         * modules/base64 (Depends-on): Likewise.
29108         * modules/c-strcasestr (Depends-on): Likewise.
29109         * modules/chdir-long (Depends-on): Likewise.
29110         * modules/fnmatch (Depends-on): Likewise.
29111         * modules/getsubopt (Depends-on): Likewise.
29112         * modules/git-merge-changelog (Depends-on): Likewise.
29113         * modules/glob (Depends-on): Likewise.
29114         * modules/strcasestr-simple (Depends-on): Likewise.
29115         * modules/strnlen (Depends-on): Likewise.
29116
29117 2008-11-02  Bruno Haible  <bruno@clisp.org>
29118
29119         Mark 'atexit' obsolete.
29120         * modules/atexit (Status, Notice): New sections.
29121         * modules/chdir-long (Depends-on): Add atexit.
29122         * modules/wait-process (Depends-on): Likewise.
29123
29124 2008-11-02  Bruno Haible  <bruno@clisp.org>
29125
29126         * gnulib-tool: New option --with-obsolete.
29127         (func_usage): Document it.
29128         (func_modules_transitive_closure): Drop obsolete dependencies if
29129         incobsolete is not true.
29130         (func_import): Read and save the incobsolete variable to the cache.
29131
29132 2008-11-02  Bruno Haible  <bruno@clisp.org>
29133
29134         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29135         * gnulib-tool: New option --extract-status.
29136         (func_usage): Document it.
29137         (sed_extract_prog): Recognize it.
29138         (func_get_status): New function.
29139
29140 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29141
29142         * modules/sockets (License): Change from LGPL to LGPLv2+.
29143
29144 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29145
29146         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29147
29148 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29149
29150         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29151         Mention times and sys_times.
29152         * modules/sys_times, modules/sys_times-tests: New modules.
29153         * modules/times, modules/times-tests: Likewise
29154         * m4/sys_times_h.m4: New file.
29155         * lib/sys_times.in.h: Likewise
29156         * lib/times.c: Likewise.
29157         * tests/test-sys_times.c: Likewise.
29158         * tests/test-times.c: Likewise.
29159         * doc/posix-headers/sys_times.texi: Update.
29160         * doc/posix-functions/times.texi: Update.
29161
29162 2008-10-28  Jim Meyering  <meyering@redhat.com>
29163
29164         * modules/tempname (Depends-on): Add lstat.
29165
29166         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29167
29168 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29169
29170         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29171         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29172         using idiom used elsewhere in gnulib.
29173
29174 2008-10-27  Jim Meyering  <meyering@redhat.com>
29175
29176         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29177
29178 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29179
29180         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29181         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29182         programs.
29183         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29184
29185 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29186
29187         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29188
29189 2008-10-27  Bruno Haible  <bruno@clisp.org>
29190
29191         * tests/test-lstat.c: Include <stdio.h>.
29192
29193 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29194
29195         * modules/lstat-tests: New module.
29196         * tests/test-lstat.c: New file.
29197
29198 2008-10-26  Jim Meyering  <meyering@redhat.com>
29199
29200         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29201
29202 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29203             Bruno Haible  <bruno@clisp.org>
29204
29205         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29206         * modules/configmake (Include): Add a note that the include must come
29207         after all system headers.
29208         * lib/javaversion.c: Include configmake.h after all other includes.
29209
29210 2008-10-26  Bruno Haible  <bruno@clisp.org>
29211
29212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29213         HAVE_STRUCT_RANDOM_DATA to 1.
29214         (gl_STDLIB_H): Simplify.
29215
29216 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29217
29218         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29219         substitute HAVE_STRUCT_RANDOM_DATA.
29220         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29221         random_data.
29222         * modules/stdlib (Makefile.am): Substitute
29223         HAVE_STRUCT_RANDOM_DATA.
29224
29225 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29226
29227         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29228         * doc/gnulib-intro.texi (Copyright): Likewise.
29229
29230 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29231
29232         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29233         findings.
29234
29235 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29236             Bruno Haible  <bruno@clisp.org>
29237
29238         * lib/unistd.in.h: Include <winsock2.h>.
29239         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29240         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29241         Provide dummy declarations.
29242         (gethostname): Override.
29243         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29244         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29245         gl_PREREQ_SYS_H_WINSOCK2.
29246         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29247         * doc/posix-functions/gethostname.texi: More details.
29248
29249 2008-10-25  Bruno Haible  <bruno@clisp.org>
29250
29251         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29252         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29253         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29254
29255         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29256         here ...
29257         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29258         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29259         gl_UNISTD_H_DEFAULTS.
29260
29261 2008-10-25  Eric Blake  <ebb9@byu.net>
29262
29263         signbit: avoid spurious compiler failure
29264         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29265         declarations inside function.
29266
29267 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29268             Bruno Haible  <bruno@clisp.org>
29269
29270         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29271         * modules/random_r (Depends-on): Add stdint.
29272
29273 2008-10-24  Bruno Haible  <bruno@clisp.org>
29274
29275         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29276         Eggert.
29277         * modules/strerror (License): Likewise.
29278
29279 2008-10-24  Jim Meyering  <meyering@redhat.com>
29280
29281         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29282         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29283
29284 2008-10-24  Eric Blake  <ebb9@byu.net>
29285
29286         getgroups: fix compilation when getgroups is available
29287         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29288         but with <config.h> override of getgroups disabled.
29289
29290 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29291
29292         * doc/gnulib.texi (Header files): Add note about C++ problems.
29293         Explained by Bruno Haible <bruno@clisp.org>.
29294
29295 2008-10-23  Bruno Haible  <bruno@clisp.org>
29296
29297         Define a dummy SA_NODEFER macro on Interix.
29298         * lib/signal.in.h (SA_NODEFER): Define fallback.
29299         Reported by Aleksey Cheusov <cheusov@tut.by> via
29300         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29301
29302 2008-10-23  Bruno Haible  <bruno@clisp.org>
29303
29304         * modules/freadahead (License): Change to LGPLv2+.
29305         Suggested by Simon Josefsson.
29306
29307 2008-10-23  Jim Meyering  <meyering@redhat.com>
29308
29309         random_r: new module
29310         * modules/random_r: New file.
29311         * m4/random_r.m4: New file.
29312         * lib/random_r.c: New file, from glibc.
29313         * modules/random_r-tests: New file.
29314         * tests/test-random_r.c: New file.
29315         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29316          Declare.
29317         (RAND_MAX): Define.
29318         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29319         * modules/stdlib: Substitute them, too.
29320         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29321         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29322         * doc/glibc-functions/random_r.texi: Likewise.
29323         * doc/glibc-functions/setstate_r.texi: Likewise.
29324         * doc/glibc-functions/srandom_r.texi: Likewise.
29325         * config/srclist.txt: Mention it.
29326
29327 2008-10-23  David Lutterkort  <lutter@redhat.com>
29328
29329         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29330         link requirement
29331
29332 2008-10-23  Jim Meyering  <meyering@redhat.com>
29333
29334         selinux-h: mark parameters of stub functions as intentionally unused
29335         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29336         * lib/se-context.in.h: Likewise.
29337
29338 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29339
29340         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29341
29342 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29343
29344         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29345
29346 2008-10-22  Eric Blake  <ebb9@byu.net>
29347
29348         glthread/thread: avoid compiler warning
29349         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29350         Add unreachable abort to silence compiler.
29351
29352 2008-10-22  Eric Blake  <ebb9@byu.net>
29353
29354         netdb: also supply struct addrinfo for cygwin 1.5.x
29355         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29356         older cygwin.
29357         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29358         cygwin.
29359         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29360
29361 2008-10-22  Bruno Haible  <bruno@clisp.org>
29362
29363         * users.txt: Update entry about pspp.
29364
29365 2008-10-21  Bruno Haible  <bruno@clisp.org>
29366
29367         Simplification.
29368         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29369         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29370
29371         Simplification.
29372         * lib/ioctl.c (ioctl): Don't undefine.
29373         * lib/socket.c (socket): Don't undefine.
29374
29375         Remove unused module indicator macros.
29376         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29377         GNULIB_$1 as a C macro.
29378
29379         * doc/posix-functions/close.texi: Undo last change.
29380         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
29381         Windows platforms.
29382
29383 2008-10-21  Bruno Haible  <bruno@clisp.org>
29384
29385         Add gethostname() declaration to <unistd.h>.
29386         * lib/unistd.in.h (gethostname): New declaration.
29387         * lib/gethostname.c: Include <unistd.h>.
29388         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
29389         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
29390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
29391         and HAVE_GETHOSTNAME.
29392         * modules/gethostname (Depends-on): Add unistd.
29393         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29394         (Include): Specify <unistd.h>.
29395         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
29396         HAVE_GETHOSTNAME.
29397         * tests/test-gethostname.c: Include <unistd.h> first.
29398
29399 2008-10-21  Bruno Haible  <bruno@clisp.org>
29400
29401         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
29402         * modules/select-tests (Depends-on): Likewise.
29403         Reported by Simon Josefsson.
29404
29405 2008-10-21  Simon Josefsson  <simon@josefsson.org>
29406
29407         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
29408         * lib/accept.c: New file, based on winsock.c.
29409         * lib/bind.c: New file, based on winsock.c.
29410         * lib/connect.c: New file, based on winsock.c.
29411         * lib/getpeername.c: New file, based on winsock.c.
29412         * lib/getsockname.c: New file, based on winsock.c.
29413         * lib/getsockopt.c: New file, based on winsock.c.
29414         * lib/ioctl.c: New file, based on winsock.c.
29415         * lib/listen.c: New file, based on winsock.c.
29416         * lib/recv.c: New file, based on winsock.c.
29417         * lib/recvfrom.c: New file, based on winsock.c.
29418         * lib/send.c: New file, based on winsock.c.
29419         * lib/sendto.c: New file, based on winsock.c.
29420         * lib/setsockopt.c: New file, based on winsock.c.
29421         * lib/shutdown.c: New file, based on winsock.c.
29422         * lib/socket.c: New file, based on winsock.c.
29423         * lib/w32sock.h: New file, based on winsock.c.
29424         * lib/winsock.c: Remove file.
29425         * modules/accept: Likewise.
29426         * modules/bind: Likewise.
29427         * modules/connect: Likewise.
29428         * modules/getpeername: Likewise.
29429         * modules/getsockname: Likewise.
29430         * modules/getsockopt: Likewise.
29431         * modules/ioctl: Likewise.
29432         * modules/listen: Likewise.
29433         * modules/recv: Likewise.
29434         * modules/recvfrom: Likewise.
29435         * modules/send: Likewise.
29436         * modules/sendto: Likewise.
29437         * modules/setsockopt: Likewise.
29438         * modules/shutdown: Likewise.
29439         * modules/socket: Use socket.c instead of winsock.c.
29440         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
29441         * doc/posix-functions/accept.texi: Doc fix.
29442         * doc/posix-functions/bind.texi: Doc fix.
29443         * doc/posix-functions/close.texi: Doc fix.
29444         * doc/posix-functions/connect.texi: Doc fix.
29445         * doc/posix-functions/getpeername.texi: Doc fix.
29446         * doc/posix-functions/getsockname.texi: Doc fix.
29447         * doc/posix-functions/getsockopt.texi: Doc fix.
29448         * doc/posix-functions/ioctl.texi: Doc fix.
29449         * doc/posix-functions/listen.texi: Doc fix.
29450         * doc/posix-functions/recv.texi: Doc fix.
29451         * doc/posix-functions/recvfrom.texi: Doc fix.
29452         * doc/posix-functions/send.texi: Doc fix.
29453         * doc/posix-functions/sendto.texi: Doc fix.
29454         * doc/posix-functions/setsockopt.texi: Doc fix.
29455         * doc/posix-functions/shutdown.texi: Doc fix.
29456         * doc/posix-functions/socket.texi: Doc fix.
29457
29458 2008-10-20  Bruno Haible  <bruno@clisp.org>
29459
29460         Take into account the role of SIGABRT_COMPAT on Windows 2008.
29461         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
29462         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
29463         as an alias for SIGABRT.
29464         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
29465         (sigaction): Map it to SIGABRT.
29466         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
29467
29468 2008-10-20  Bruno Haible  <bruno@clisp.org>
29469
29470         * lib/fts.c: Don't include lstat.h.
29471         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
29472
29473         Move the lstat() declaration to <sys/stat.h>.
29474         * lib/lstat.h: Remove file.
29475         * lib/sys_stat.in.h: Add special invocation convention.
29476         (lstat): New declaration.
29477         * lib/lstat.c (orig_lstat): New function.
29478         (rpl_lstat): Use orig_lstat instead of lstat.
29479         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
29480         AC_C_INLINE. Set REPLACE_LSTAT.
29481         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
29482         and REPLACE_LSTAT.
29483         * modules/lstat (Files): Remove lib/lstat.h.
29484         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29485         (Include): Specify <sys/stat.h> instead of lstat.h.
29486         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
29487         REPLACE_LSTAT.
29488         * NEWS: Mention the change.
29489
29490 2008-10-20  Bruno Haible  <bruno@clisp.org>
29491
29492         * modules/posix_spawn-tests: New file.
29493         * tests/test-posix_spawn3.c: New file.
29494
29495 2008-10-20  Bruno Haible  <bruno@clisp.org>
29496
29497         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
29498         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29499         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
29500         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29501         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
29502
29503 2008-10-20  Bruno Haible  <bruno@clisp.org>
29504
29505         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
29506         of posix_spawn on AIX 5.3.
29507
29508 2008-10-20  Bruno Haible  <bruno@clisp.org>
29509
29510         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
29511
29512 2008-10-20  Bruno Haible  <bruno@clisp.org>
29513
29514         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
29515         of AC_LANG_PROGRAM.
29516
29517 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29518
29519         * lib/netdb.in.h: Don't define GNU specific constants until they
29520         are supported or needed.  Reported by Bruno Haible
29521         <bruno@clisp.org>.
29522
29523 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29524
29525         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
29526
29527 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29528
29529         * lib/getaddrinfo.h: Remove file.
29530         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
29531         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
29532         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
29533         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
29534         * modules/netdb: Substitute GNULIB_GETADDRINFO.
29535         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
29536         * tests/test-getaddrinfo.c: Likewise.
29537         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
29538         * NEWS: Mention change.
29539
29540 2008-10-19  Bruno Haible  <bruno@clisp.org>
29541
29542         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
29543
29544 2008-10-19  Bruno Haible  <bruno@clisp.org>
29545
29546         * lib/wait-process.c: Include simply <sys/wait.h>.
29547         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
29548         WIFSTOPPED): Remove fallback definitions.
29549         * modules/wait-process (Depends-on): Add sys_wait.
29550
29551         New module 'sys_wait'.
29552         * modules/sys_wait: New file.
29553         * lib/sys_wait.in.h: New file, partially copied from
29554         lib/wait-process.c.
29555         * m4/sys_wait_h.m4: New file.
29556         * doc/posix-headers/sys_wait.texi: Mention the new module.
29557
29558 2008-10-19  Bruno Haible  <bruno@clisp.org>
29559
29560         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
29561
29562 2008-10-19  Bruno Haible  <bruno@clisp.org>
29563
29564         Assume that waitpid() fills an 'int' status, not a 'union wait'.
29565         * lib/wait-process.c (WAIT_T): Remove type.
29566         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
29567         (wait_subprocess): Update.
29568
29569 2008-10-19  Bruno Haible  <bruno@clisp.org>
29570
29571         New module 'atoll'.
29572         * modules/atoll: New file.
29573         * lib/stdlib.in.h (atoll): New declaration.
29574         * lib/atoll.c: New file, from glibc with modifications.
29575         * m4/atoll.m4: New file.
29576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
29577         HAVE_ATOLL.
29578         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
29579         * doc/posix-functions/atoll.texi: Mention the new module.
29580
29581 2008-10-19  Bruno Haible  <bruno@clisp.org>
29582
29583         Add strtoull() declaration to <stdlib.h>.
29584         * lib/stdlib.in.h (strtoull): New declaration.
29585         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29586         Set HAVE_STRTOULL.
29587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
29588         HAVE_STRTOULL.
29589         * modules/strtoull (Depends-on): Add stdlib.
29590         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29591         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
29592         HAVE_STRTOULL.
29593
29594 2008-10-19  Bruno Haible  <bruno@clisp.org>
29595
29596         Add strtoll() declaration to <stdlib.h>.
29597         * lib/stdlib.in.h (strtoll): New declaration.
29598         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29599         Set HAVE_STRTOLL.
29600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
29601         HAVE_STRTOLL.
29602         * modules/strtoll (Depends-on): Add stdlib.
29603         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29604         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
29605
29606 2008-10-19  Bruno Haible  <bruno@clisp.org>
29607
29608         * modules/bcopy (Depends-on): Add strings.
29609         (Include): Specify <strings.h>.
29610
29611 2008-10-19  Bruno Haible  <bruno@clisp.org>
29612
29613         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
29614
29615 2008-10-19  Bruno Haible  <bruno@clisp.org>
29616
29617         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
29618         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
29619         mingw.
29620
29621 2008-10-19  Bruno Haible  <bruno@clisp.org>
29622
29623         * lib/atanl.c: Don't include isnanl.h.
29624         * lib/cosl.c: Likewise.
29625         * lib/ldexpl.c: Likewise.
29626         * lib/logl.c: Likewise.
29627         * lib/sinl.c: Likewise.
29628         * lib/sqrtl.c: Likewise.
29629         * lib/tanl.c: Likewise.
29630
29631         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
29632         * lib/isnanf.h: Remove file.
29633         * lib/isnand.h: Remove file.
29634         * lib/isnanl.h: Remove file.
29635         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
29636         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
29637         macros.
29638         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
29639         HAVE_ISNANF, don't define it as a C macro.
29640         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
29641         HAVE_ISNAND, don't define it as a C macro.
29642         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
29643         HAVE_ISNANL, don't define it as a C macro.
29644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
29645         HAVE_ISNAN[FDL].
29646         * modules/isnanf (Files): Remove lib/isnanf.h.
29647         (Depends-on): Add math.
29648         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29649         (Include): Specify <math.h> instead of isnanf.h.
29650         * modules/isnand (Files): Remove lib/isnand.h.
29651         (Depends-on): Add math.
29652         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29653         (Include): Specify <math.h> instead of isnand.h.
29654         * modules/isnanl (Files): Remove lib/isnanl.h.
29655         (Depends-on): Add math.
29656         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29657         (Include): Specify <math.h> instead of isnanl.h.
29658         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
29659         HAVE_ISNAN[FDL].
29660         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
29661         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
29662         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
29663         * NEWS: Mention the change.
29664
29665 2008-10-18  Bruno Haible  <bruno@clisp.org>
29666
29667         Add getusershell(), setusershell(), endusershell() declarations to
29668         <unistd.h>.
29669         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
29670         declarations.
29671         * lib/getusershell.c: Include unistd.h.
29672         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
29673         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29674         HAVE_GETUSERSHELL.
29675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
29676         and HAVE_GETUSERSHELL.
29677         * modules/getusershell (Depends-on): Add unistd, extensions.
29678         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29679         (Include): Specify <unistd.h>.
29680         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
29681         HAVE_GETUSERSHELL.
29682
29683 2008-10-18  Bruno Haible  <bruno@clisp.org>
29684
29685         Add a getloadavg() declaration to <stdlib.h>.
29686         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
29687         getloadavg declaration.
29688         (getloadavg): New declaration.
29689         * lib/getloadavg.c: Include <stdlib.h> first.
29690         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
29691         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
29692         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
29693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
29694         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29695         * modules/getloadavg (Depends-on): Add stdlib, extensions.
29696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29697         (Include): Specify <stdlib.h>.
29698         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
29699         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29700
29701 2008-10-18  Bruno Haible  <bruno@clisp.org>
29702
29703         * lib/dirchownmod.c: Don't include lchmod.h.
29704
29705         Move the lchmod() declaration to <sys/stat.h>.
29706         * lib/lchmod.h: Remove file.
29707         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
29708         (lchmod): New declaration, moved here from lib/lchown.h.
29709         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
29710         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
29711         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
29712         and HAVE_LCHMOD.
29713         * modules/lchmod (Files): Remove lib/lchmod.h.
29714         (Depends-on): Add sys_stat, extensions.
29715         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29716         (Include): Specify <sys/stat.h> instead of lchmod.h.
29717         * modules/sys_stat (Depends-on): Add link-warning.
29718         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
29719         definition of GL_LINK_WARNING.
29720         * NEWS: Mention the change.
29721
29722 2008-10-18  Bruno Haible  <bruno@clisp.org>
29723
29724         * lib/fchdir.c: Don't include dirfd.h.
29725         * lib/fts.c: Likewise.
29726         * lib/getcwd.c: Likewise.
29727         * lib/glob.c: Likewise.
29728
29729         Move the dirfd() declaration to <dirent.h>.
29730         * lib/dirfd.h: Remove file.
29731         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
29732         (dirfd): New declaration.
29733         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
29734         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
29735         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
29736         HAVE_DECL_DIRFD.
29737         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
29738         HAVE_DECL_DIRFD.
29739         * modules/dirfd (Files): Remove lib/dirfd.h.
29740         (Depends-on): Add dirent, extensions.
29741         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
29742         (Include): Specify <dirent.h> instead of dirfd.h.
29743         * modules/dirent (Depends-on): Add link-warning.
29744         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
29745         definition of GL_LINK_WARNING.
29746         * NEWS: Mention the change.
29747
29748 2008-10-18  Bruno Haible  <bruno@clisp.org>
29749
29750         Move the euidaccess() declaration to <unistd.h>.
29751         * lib/euidaccess.h: Remove file.
29752         * lib/unistd.in.h (euidaccess): New declaration.
29753         * lib/euidaccess.c: Don't include euidaccess.h.
29754         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
29755         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
29756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
29757         and HAVE_EUIDACCESS.
29758         * modules/euidaccess (Files): Remove lib/euidaccess.h.
29759         (Depends-on): Add unistd.
29760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29761         (Include): Specify <unistd.h> instead of euidaccess.h.
29762         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
29763         HAVE_EUIDACCESS.
29764         * NEWS: Mention the change.
29765
29766 2008-10-18  Bruno Haible  <bruno@clisp.org>
29767
29768         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
29769
29770         Move the getdomainname() declaration to <unistd.h>.
29771         * lib/getdomainname.h: Remove file.
29772         * lib/unistd.in.h (getdomainname): New declaration.
29773         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
29774         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29775         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29776         HAVE_GETDOMAINNAME.
29777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29778         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
29779         * modules/getdomainname (Files): Remove lib/getdomainname.h.
29780         (Depends-on): Add unistd, extensions.
29781         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29782         (Includes): Specify <unistd.h> instead of getdomainname.h.
29783         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
29784         HAVE_GETDOMAINNAME.
29785         * NEWS: Mention the change.
29786
29787 2008-10-18  Bruno Haible  <bruno@clisp.org>
29788
29789         * modules/dirent: New file.
29790         * m4/dirent_h.m4: New file.
29791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
29792         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
29793         * modules/fchdir (Files): Remove lib/dirent.in.h.
29794         (Depends-on): Add dirent.
29795         (Makefile.am): Move rules to modules/dirent.
29796         * doc/posix-headers/dirent.texi: Mention the new module.
29797
29798 2008-10-18  Bruno Haible  <bruno@clisp.org>
29799
29800         Avoid -Wunused-parameter warnings in public gnulib header files.
29801         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
29802         macro.
29803         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
29804
29805 2008-10-18  Bruno Haible  <bruno@clisp.org>
29806
29807         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
29808         * doc/glibc-functions/error.texi: Mention the module 'error'.
29809         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
29810         * doc/glibc-functions/getdomainname.texi: Mention the module
29811         'getdomainname'.
29812         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
29813         * doc/glibc-functions/getpagesize.texi: Mention the module
29814         'getpagesize'.
29815         * doc/glibc-functions/getusershell.texi: Mention the module
29816         'getusershell'.
29817         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
29818         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
29819         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
29820         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
29821         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
29822         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
29823         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
29824         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
29825         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
29826         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
29827         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
29828         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
29829         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
29830         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
29831
29832 2008-10-17  Bruno Haible  <bruno@clisp.org>
29833
29834         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
29835         HP-UX and IRIX, use -0.0L.
29836         * tests/test-ceill.c (minus_zero): Likewise.
29837         * tests/test-floorl.c (minus_zero): Likewise.
29838         * tests/test-frexpl.c (minus_zero): Likewise.
29839         * tests/test-isnan.c (minus_zerol): Likewise.
29840         * tests/test-isnanl.h (minus_zero): Likewise.
29841         * tests/test-ldexpl.c (minus_zero): Likewise.
29842         * tests/test-roundl.c (minus_zero): Likewise.
29843         * tests/test-signbit.c (minus_zerol): Likewise.
29844         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29845         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29846         * tests/test-truncl.c (minus_zero): Likewise.
29847         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29848         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29849         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
29850         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29851
29852 2008-10-17  Bruno Haible  <bruno@clisp.org>
29853
29854         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
29855         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
29856         that it gets activated only for gcc >= 3.0.
29857         * lib/dirent.in.h: Likewise.
29858         * lib/errno.in.h: Likewise.
29859         * lib/fcntl.in.h: Likewise.
29860         * lib/float.in.h: Likewise.
29861         * lib/iconv.in.h: Likewise.
29862         * lib/inttypes.in.h: Likewise.
29863         * lib/locale.in.h: Likewise.
29864         * lib/math.in.h: Likewise.
29865         * lib/netdb.in.h: Likewise.
29866         * lib/netinet_in.in.h: Likewise.
29867         * lib/search.in.h: Likewise.
29868         * lib/signal.in.h: Likewise.
29869         * lib/spawn.in.h: Likewise.
29870         * lib/stdarg.in.h: Likewise.
29871         * lib/stdint.in.h: Likewise.
29872         * lib/stdio.in.h: Likewise.
29873         * lib/stdlib.in.h: Likewise.
29874         * lib/string.in.h: Likewise.
29875         * lib/strings.in.h: Likewise.
29876         * lib/sys_file.in.h: Likewise.
29877         * lib/sys_ioctl.in.h: Likewise.
29878         * lib/sys_select.in.h: Likewise.
29879         * lib/sys_socket.in.h: Likewise.
29880         * lib/sys_stat.in.h: Likewise.
29881         * lib/sys_time.in.h: Likewise.
29882         * lib/sysexits.in.h: Likewise.
29883         * lib/time.in.h: Likewise.
29884         * lib/unistd.in.h: Likewise.
29885         * lib/wchar.in.h: Likewise.
29886         * lib/wctype.in.h: Likewise.
29887         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29888
29889 2008-10-17  Jim Meyering  <meyering@redhat.com>
29890
29891         ignore-value: don't depend on inline module
29892         * modules/ignore-value (Depends-on): Remove 'inline'.
29893         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
29894         Suggestion from Bruno Haible.
29895
29896 2008-10-17  Bruno Haible  <bruno@clisp.org>
29897
29898         New implementation of condition variables for Win32.
29899         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
29900         (gl_linked_waitqueue_t): New type.
29901         (gl_cond_t): Use it.
29902         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
29903         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
29904         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
29905         (glthread_cond_init_func, glthread_cond_wait_func,
29906         glthread_cond_timedwait_func, glthread_cond_signal_func,
29907         glthread_cond_broadcast_func, glthread_cond_destroy_func):
29908         Reimplemented on the basis of gl_linked_waitqueue_t.
29909         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
29910         gl_waitqueue_t.
29911         (gl_rwlock_t): Update.
29912         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
29913
29914 2008-10-17  Simon Josefsson  <simon@josefsson.org>
29915
29916         * modules/recvfrom (Depends-on): Add dependency on getpeername.
29917         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29918
29919 2008-10-17  Jim Meyering  <meyering@redhat.com>
29920
29921         ignore-value: new module
29922         * modules/ignore-value: New file.
29923         * lib/ignore-value.h: New file.
29924         * MODULES.html.sh (Compiler warning management): New section,
29925         just for this module.  More to come.
29926
29927 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29928
29929         open-safer.c: avoid 'signed and unsigned in conditional...' warning
29930         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
29931         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
29932
29933 2008-10-16  Jim Meyering  <meyering@redhat.com>
29934
29935         openat-die.c: avoid 'no previous prototype' warning
29936         * lib/openat-die.c: Include "openat.h".
29937         Reported by Reuben Thomas <rrt@sc3d.org>.
29938
29939 2008-10-16  Simon Josefsson  <simon@josefsson.org>
29940
29941         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
29942         * lib/netdb.in.h: Fix typo.
29943         Reported by Bruno Haible  <bruno@clisp.org>
29944
29945         * lib/netdb.in.h: Include sys/socket.h for platforms without
29946         netdb.h, to get structures like hostent on MinGW.
29947         * modules/netdb (Depends-on): Add sys_socket.
29948
29949 2008-10-15  Simon Josefsson  <simon@josefsson.org>
29950
29951         * modules/netdb, modules/netdb-tests: New file.
29952         * m4/netdb_h.m4: New file.
29953         * lib/netdb.in.h: Add, currently just an empty file pending
29954         definitions.
29955         * tests/test-netdb.c: New file.
29956         * doc/posix-headers/netdb.texi: Mention that we replace it if
29957         needed.
29958         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29959         netdb.
29960
29961 2008-10-15  Simon Josefsson  <simon@josefsson.org>
29962
29963         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
29964         with code.
29965
29966 2008-10-13  Bruno Haible  <bruno@clisp.org>
29967
29968         * lib/glthread/cond.c (glthread_cond_wait_func,
29969         glthread_cond_timedwait_func): Add a comment.
29970
29971 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29972
29973         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
29974         * tests/test-select.c: Likewise,
29975
29976 2008-10-13  Bruno Haible  <bruno@clisp.org>
29977
29978         * lib/glthread/cond.c (glthread_cond_wait_func,
29979         glthread_cond_timedwait_func): Fix variable name.
29980         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29981
29982 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
29983
29984         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
29985         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
29986         struct sockaddr.sa_len.
29987         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
29988
29989 2008-10-13  Simon Josefsson  <simon@josefsson.org>
29990
29991         * build-aux/pmccabe2html: Add css and css_url parameters.
29992
29993 2008-10-12  Bruno Haible  <bruno@clisp.org>
29994
29995         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
29996         calling aclx_get.
29997         Reported by Rainer Tammer <tammer@tammer.net>.
29998
29999 2008-10-12  Bruno Haible  <bruno@clisp.org>
30000
30001         Use msvcrt aware primitives for creation/termination of Win32 threads.
30002         * lib/glthread/thread.c: Include <process.h>.
30003         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30004         (wrapper_func): Update signature.
30005         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30006
30007 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30008             Bruno Haible  <bruno@clisp.org>
30009
30010         Provide a Win32 implementation of the 'cond' module.
30011         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30012         * lib/glthread/cond.c (glthread_cond_init_func,
30013         glthread_cond_wait_func, glthread_cond_timedwait_func,
30014         glthread_cond_signal_func, glthread_cond_broadcast_func,
30015         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30016         * modules/cond (Dependencies): Add gettimeofday.
30017
30018 2008-10-11  Bruno Haible  <bruno@clisp.org>
30019
30020         Make sleep work on older versions of mingw.
30021         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30022         only whether it exists.
30023         * doc/posix-functions/sleep.texi: Mention the problem with older
30024         versions of mingw.
30025
30026 2008-10-11  Bruno Haible  <bruno@clisp.org>
30027
30028         New module 'shutdown'.
30029         * modules/shutdown: New file.
30030         * lib/sys_socket.in.h (shutdown): New declaration.
30031         * lib/winsock.c (shutdown): New function.
30032         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30033         GNULIB_SHUTDOWN.
30034         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30035         * doc/posix-functions/shutdown.texi: Document the new module.
30036
30037 2008-10-11  Jim Meyering  <meyering@redhat.com>
30038
30039         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30040
30041 2008-10-11  Bruno Haible  <bruno@clisp.org>
30042
30043         New module 'fclose'.
30044         * modules/fclose: New file.
30045         * lib/stdio.in.h (fclose): New declaration.
30046         * lib/fclose.c: New file.
30047         * m4/fclose.m4: New file.
30048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
30049         REPLACE_FCLOSE.
30050         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
30051         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
30052         REPLACE_FCLOSE.
30053         * modules/close (Depends-on): fclose.
30054         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
30055
30056 2008-10-11  Bruno Haible  <bruno@clisp.org>
30057
30058         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
30059         set errno and don't call _close.
30060
30061 2008-10-10  Bruno Haible  <bruno@clisp.org>
30062
30063         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
30064         ACL, not afterwards. Fixes test failure on Cygwin.
30065
30066 2008-10-09  Ben Pfaff  <blp@gnu.org>
30067
30068         * build-aux/announce-gen: Fix gnulib version related part of usage
30069         message.  Die with a useful error message if no tarballs are
30070         found.
30071
30072 2008-10-10  Jim Meyering  <meyering@redhat.com>
30073
30074         bootstrap: use git's --depth=N option only if it's supported
30075         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30076         recognize the --depth option.  Reported by Pádraig Brady.
30077
30078 2008-10-09  Bruno Haible  <bruno@clisp.org>
30079
30080         New module 'ioctl'.
30081         * modules/ioctl: New file.
30082         * lib/sys_socket.in.h (ioctl): Remove declaration.
30083         * lib/winsock.c: Include <sys/ioctl.h>.
30084         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30085         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30086         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30087         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30088         * doc/posix-functions/ioctl.texi: Mention the new module.
30089
30090 2008-10-09  Bruno Haible  <bruno@clisp.org>
30091
30092         New module 'sys_ioctl'.
30093         * lib/sys_ioctl.in.h: New file.
30094         * m4/sys_ioctl_h.m4: New file.
30095         * modules/sys_ioctl: New file.
30096         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30097
30098 2008-10-09  Bruno Haible  <bruno@clisp.org>
30099
30100         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30101         * lib/winsock.c: Include <stdarg.h>.
30102         (rpl_ioctl): Change to second argument 'int' and then varargs.
30103
30104 2008-10-09  Bruno Haible  <bruno@clisp.org>
30105
30106         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30107         when the sys_socket module is present and the system has <winsock2.h>.
30108
30109 2008-10-09  Bruno Haible  <bruno@clisp.org>
30110
30111         * doc/posix-functions/close.texi: Mention module 'close' instead of
30112         module 'sys_socket'.
30113
30114 2008-10-09  Bruno Haible  <bruno@clisp.org>
30115
30116         * doc/glibc-headers/sys_ioctl.texi: New file.
30117         * doc/gnulib.texi: Include it.
30118
30119 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30120             Bruno Haible  <bruno@clisp.org>
30121
30122         Combine the two replacements of 'close'.
30123         * lib/sys_socket.in.h (close): Define to a reminder to include
30124         <unistd.h>.
30125         (_gl_close_fd_maybe_socket): New declaration.
30126         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30127         * lib/winsock.c (close): Remove undefinition.
30128         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30129         needed for the gnulib module 'close'.
30130         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30131         define to an error symbol or to a warning, if suitable.
30132         * lib/close.c: Include <sys/socket.h>.
30133         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30134         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30135         UNISTD_H_HAVE_WINSOCK2_H.
30136         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30138         UNISTD_H_HAVE_WINSOCK2_H.
30139         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30140         (configure.ac): Set a module indicator.
30141         (Makefile.am): Substitute GNULIB_CLOSE.
30142         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30143         * modules/poll-tests (Depends-on): Add close.
30144         * modules/select-tests (Depends-on): Likewise.
30145
30146 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30147             Bruno Haible  <bruno@clisp.org>
30148
30149         New module 'close'.
30150         * modules/close: New file.
30151         * lib/unistd.in.h (close): Move declaration out of the
30152         FCHDIR_REPLACEMENT scope.
30153         (_gl_unregister_fd): New declaration.
30154         * lib/close.c: New file.
30155         * lib/fchdir.c (rpl_close): Remove function.
30156         * m4/close.m4: New file.
30157         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30158         close.
30159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30160         REPLACE_CLOSE.
30161         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30162         REPLACE_CLOSE.
30163         * modules/fchdir (Depends-on): Add close.
30164
30165 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30166             Bruno Haible  <bruno@clisp.org>
30167
30168         * lib/fcntl.in.h (open): Simplify conditionals.
30169         (_gl_register_fd): New declaration.
30170         * lib/fchdir.c (rpl_open): Remove function.
30171         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30172         also.
30173         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30175         open.
30176
30177 2008-10-09  Jim Meyering  <meyering@redhat.com>
30178
30179         GNUmakefile: use the more name-space-friendly "_version"
30180         * top/GNUmakefile (_dummy): Update.
30181         (_version): Rename from "version".
30182
30183 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30184             Bruno Haible  <bruno@clisp.org>
30185
30186         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30187         rpl_close.
30188         (_gl_register_fd): New function, extracted from rpl_open.
30189         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30190         (rpl_open, rpl_opendir): Use _gl_register_fd.
30191
30192 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30193
30194         Fix organization of 'open' replacement.
30195         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30196         (gl_FUNC_OPEN): Use it.
30197         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30198
30199 2008-10-08  Bruno Haible  <bruno@clisp.org>
30200
30201         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30202
30203 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30204
30205         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30206         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30207         listen).
30208
30209 2008-10-08  Eric Blake  <ebb9@byu.net>
30210
30211         GNUmakefile: add 'make version' target
30212         * top/GNUmakefile (_curr-ver): Split version update rules...
30213         (version): ...into a target.
30214
30215 2008-10-07  Bruno Haible  <bruno@clisp.org>
30216
30217         Use a more portable replacement expression for -0.0L.
30218         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30219         instead of -0.0L. Fix m4 quotation.
30220
30221         * tests/test-signbit.c: Include <float.h>.
30222         (minus_zero): New variable.
30223         (test_signbitl): Use minus_zero instead of -zero.
30224         * modules/signbit-tests (Depends-on): Add float.
30225
30226         * tests/test-ceill.c: Include <float.h>.
30227         (zero): Remove variable.
30228         (minus_zero): New variable.
30229         (main): Use minus_zero instead of -zero.
30230         * modules/ceill-tests (Depends-on): Add float.
30231
30232         * tests/test-floorl.c: Include <float.h>.
30233         (zero): Remove variable.
30234         (minus_zero): New variable.
30235         (main): Use minus_zero instead of -zero.
30236         * modules/floorl-tests (Depends-on): Add float.
30237
30238         * tests/test-roundl.c: Include <float.h>.
30239         (zero): Remove variable.
30240         (minus_zero): New variable.
30241         (main): Use minus_zero instead of -zero.
30242         * modules/roundl-tests (Depends-on): Add float.
30243
30244         * tests/test-truncl.c: Include <float.h>.
30245         (zero): Remove variable.
30246         (minus_zero): New variable.
30247         (main): Use minus_zero instead of -zero.
30248         * modules/truncl-tests (Depends-on): Add float.
30249
30250         * tests/test-frexpl.c (zero): Remove variable.
30251         (minus_zero): New variable.
30252         (main): Use minus_zero instead of -zero.
30253         * modules/frexpl-tests (Depends-on): Add float.
30254
30255         * tests/test-isnan.c (zerol): Remove variable.
30256         (minus_zerol): New variable.
30257         (test_long_double): Use minus_zerol instead of -zerol.
30258         * modules/isnan-tests (Depends-on): Add float.
30259
30260         * tests/test-isnanl.h (zero): Remove variable.
30261         (minus_zero): New variable.
30262         (main): Use minus_zero instead of -zero.
30263         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30264         * modules/isnanl-tests (Depends-on): Add float.
30265
30266         * tests/test-ldexpl.c (zero): Remove variable.
30267         (minus_zero): New variable.
30268         (main): Use minus_zero instead of -zero.
30269         * modules/ldexpl-tests (Depends-on): Add float.
30270
30271         * tests/test-snprintf-posix.h (zerol): Remove variable.
30272         (minus_zerol): New variable.
30273         (test_function): Use minus_zerol instead of -zerol.
30274         * modules/snprintf-posix-tests (Depends-on): Add float.
30275         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30276
30277         * tests/test-sprintf-posix.h (zerol): Remove variable.
30278         (minus_zerol): New variable.
30279         (test_function): Use minus_zerol instead of -zerol.
30280         * modules/sprintf-posix-tests (Depends-on): Add float.
30281         * modules/vsprintf-posix-tests (Depends-on): Add float.
30282
30283         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30284         (minus_zerol): New variable.
30285         (test_function): Use minus_zerol instead of -zerol.
30286         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30287
30288         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30289         (minus_zerol): New variable.
30290         (test_function): Use minus_zerol instead of -zerol.
30291         * modules/vasprintf-posix-tests (Depends-on): Add float.
30292
30293 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30294
30295         * MODULES.html.sh (Support for building documentation): Mention
30296         pmccabe2html.  Sort entries.
30297
30298         Add pmccabe2html module, from gnupdf.
30299         * build-aux/pmccabe.css: New file.
30300         * build-aux/pmccabe2html: New file.
30301         * m4/pmccabe2html.m4: New file.
30302         * modules/pmccabe2html: New file.
30303
30304 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30305
30306         flock: new module
30307         * MODULES.html.sh: Add to list of modules.
30308         * lib/flock.c: flock implementation for Windows and Unix systems
30309         which have fcntl.
30310         * doc/glibc-functions/flock.texi: Update documentation.
30311         * lib/sys_file.in.h: <sys/file.h> header file.
30312         * m4/flock.m4: M4 macros.
30313         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30314         * modules/flock: flock module.
30315         * modules/flock-tests: flock tests module.
30316         * modules/sys_file: sys/file.h module.
30317         * tests/test-flock.c: test suite for flock.
30318
30319 2008-10-06  Jim Meyering  <meyering@redhat.com>
30320
30321         bootstrap: check for LT_INIT more portably still ;-)
30322         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30323         Spotted by Bruno Haible.
30324
30325 2008-10-06  Eric Blake  <ebb9@byu.net>
30326
30327         test-signbit: avoid tripping Irix cc bug on -0.0L
30328         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30329         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30330         entire testsuite consistent and avoids an Irix 6.2 bug.
30331
30332 2008-10-05  Bruno Haible  <bruno@clisp.org>
30333             Jim Meyering  <jim@meyering.net>
30334
30335         Add an option for ignoring EPIPE during close_stdout.
30336         * lib/closeout.h: Include <stdbool.h>.
30337         (close_stdout_set_ignore_EPIPE): New declaration.
30338         * lib/closeout.c: Include <stdbool.h>.
30339         (ignore_EPIPE): New variable.
30340         (close_stdout_set_ignore_EPIPE): New function.
30341         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30342         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30343         failure.
30344         * modules/closeout (Depends-on): Add stdbool.
30345
30346 2008-10-05  Bruno Haible  <bruno@clisp.org>
30347
30348         * modules/accept: New file.
30349         * modules/bind: New file.
30350         * modules/connect: New file.
30351         * modules/getpeername: New file.
30352         * modules/getsockname: New file.
30353         * modules/getsockopt: New file.
30354         * modules/listen: New file.
30355         * modules/recv: New file.
30356         * modules/recvfrom: New file.
30357         * modules/send: New file.
30358         * modules/sendto: New file.
30359         * modules/setsockopt: New file.
30360         * modules/socket: New file.
30361         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30362         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30363         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30364         the particular module is requested. Add a link warning when the
30365         particular module is not requested.
30366         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30367         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30368         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30369         the particular module is requested.
30370         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30371         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30372         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30373         * modules/sys_socket (Depends-on): Add link-warning.
30374         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30375         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30376         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30377         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30378         GL_LINK_WARNING.
30379         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30380         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
30381         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
30382         * doc/posix-functions/getpeername.texi: Mention the new module
30383         'getpeername'.
30384         * doc/posix-functions/getsockname.texi: Mention the new module
30385         'getsockname'.
30386         * doc/posix-functions/getsockopt.texi: Mention the new module
30387         'getsockopt'.
30388         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
30389         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
30390         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
30391         * doc/posix-functions/send.texi: Mention the new module 'send'.
30392         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
30393         * doc/posix-functions/setsockopt.texi: Mention the new module
30394         'setsockopt'.
30395         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
30396         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
30397         listen, connect, accept.
30398         * modules/select-tests (Depends-on): Likewise.
30399
30400 2008-10-05  Bruno Haible  <bruno@clisp.org>
30401
30402         * lib/winsock.c (strerror): Remove unused #undef.
30403         (rpl_close): Remove unused local variable.
30404
30405         * modules/sys_socket (Depends-on); Add errno.
30406
30407 2008-10-05  Bruno Haible  <bruno@clisp.org>
30408
30409         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
30410         (select): Add a link warning when the 'select' module is not used.
30411         * modules/sys_select (Depends-on): Add link-warning.
30412         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
30413         Suggested by Paolo Bonzini.
30414
30415 2008-10-05  Jim Meyering  <meyering@redhat.com>
30416
30417         bootstrap: check for LT_INIT more portably
30418         * build-aux/bootstrap: Avoid using grep -E, since it's not
30419         portable enough.  Suggestion from Bruno Haible.
30420
30421 2008-10-05  Bruno Haible  <bruno@clisp.org>
30422
30423         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
30424         as being fixed by gnulib.
30425
30426 2008-10-05  Bruno Haible  <bruno@clisp.org>
30427
30428         * modules/select-tests: New file, mostly copied from
30429         modules/sys_select-tests.
30430         * tests/test-select.c: New file, mostly copied from
30431         tests/test-sys_select.c.
30432         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
30433         * modules/sys_select-tests (Depends-on): Remove all dependencies.
30434         (Makefile.am): Remove test_sys_select_LDADD.
30435
30436         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
30437         to an undefined symbol, for an error message.
30438         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
30439         (gl_SYS_SELECT_H_DEFAULTS): New macro.
30440         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
30441         winsock-select.c here.
30442         * modules/sys_select (Files): Remove lib/winsock-select.c.
30443         (Depends-on): Remove alloca.
30444         (Makefile.am): Substitute GNULIB_SELECT.
30445         * modules/select: New file.
30446         * doc/posix-functions/select.texi: Update.
30447
30448 2008-10-05  Bruno Haible  <bruno@clisp.org>
30449
30450         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30451         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30452         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30453         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30454         getdtablesize.
30455         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30456         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30457
30458 2008-10-05  Bruno Haible  <bruno@clisp.org>
30459
30460         * modules/getdtablesize-tests: New file.
30461         * tests/test-getdtablesize.c: New file.
30462
30463         New module 'getdtablesize'.
30464         * lib/unistd.in.h (getdtablesize): New declaration.
30465         * lib/getdtablesize.c: New file.
30466         * m4/getdtablesize.m4: New file.
30467         * modules/getdtablesize: New file.
30468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30469         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
30470         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
30471         HAVE_GETDTABLESIZE.
30472         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
30473
30474 2008-10-05  Bruno Haible  <bruno@clisp.org>
30475
30476         * modules/sched (Makefile.am): Fix typo.
30477         Reported by Simon Josefsson.
30478
30479 2008-10-05  Jim Meyering  <meyering@redhat.com>
30480
30481         bootstrap: check for LT_INIT, too
30482         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
30483         are deprecated.  Suggestion from Ralf Wildenhues.
30484
30485 2008-10-05  Bruno Haible  <bruno@clisp.org>
30486
30487         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
30488         overriding them by ours.
30489         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
30490
30491 2008-10-05  Jim Meyering  <meyering@redhat.com>
30492
30493         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
30494         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
30495         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
30496
30497 2008-10-04  Bruno Haible  <bruno@clisp.org>
30498
30499         * modules/dup2 (License): Change to LGPLv2+.
30500         * modules/sleep (License): Likewise.
30501         * modules/perror (License): Likewise.
30502         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
30503         Blake.
30504         * modules/signal (License): Likewise.
30505         * modules/sigprocmask (License): Likewise.
30506         * modules/raise (License): Change to LGPLv2+, with approval by Jim
30507         Meyering.
30508
30509 2008-10-04  Bruno Haible  <bruno@clisp.org>
30510
30511         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
30512         Reported by Rainer Tammer <tammer@tammer.net>.
30513
30514 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
30515             Bruno Haible  <bruno@clisp.org>
30516
30517         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
30518         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
30519         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
30520
30521 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
30522
30523         filevercmp: new module
30524         * lib/filevercmp.h: New function filevercmp comparing version strings.
30525         * lib/filevercmp.c: Implementation of filevercmp function.
30526         * modules/filevercmp: Module metadata.
30527         * tests/test-filevercmp.c: Unit test for new module.
30528         * modules/filevercmp-tests: Unit test metadata.
30529         * MODULES.html.sh: Add filevercmp module.
30530
30531 2008-10-03  Bruno Haible  <bruno@clisp.org>
30532
30533         * lib/c-ctype.h: Add comment.
30534         Reported by Jim Meyering.
30535
30536 2008-10-02  Bruno Haible  <bruno@clisp.org>
30537
30538         * modules/posix_spawn-internal (Depends-on): Add 'open'.
30539
30540 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30541
30542         * build-aux/bootstrap: Allow renaming bootstrap, and change the
30543         name of bootstrap.conf accordingly.
30544
30545 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30546
30547         * build-aux/bootstrap: Install git-merge-changelog configuration
30548         items into .gitconfig if needed.
30549
30550 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30551
30552         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
30553         git repository, and initialize/update it accordingly.
30554
30555 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
30556
30557         * modules/fsync-tests: New file.
30558         * tests/test-fsync.c: New file.
30559
30560         New module 'fsync'.
30561         * lib/fsync.c: New file.
30562         * m4/fsync.m4: New file.
30563         * modules/fsync: New file.
30564         * lib/unistd.in.h (fsync): New declaration.
30565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
30566         GNULIB_FSYNC and HAVE_FSYNC.
30567         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
30568         * MODULES.html.sh (posix_functions): Add fsync.
30569         * doc/posix-functions/fsync.texi: Mention the new module.
30570
30571 2008-10-02  Jim Meyering  <meyering@redhat.com>
30572
30573         fts.c: sync with similar code from coreutils' remove.c
30574         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
30575         Guard also with "#if defined __linux__", since for now at least,
30576         this code is Linux-kernel-specific.
30577
30578 2008-10-02  Jim Meyering  <meyering@redhat.com>
30579
30580         fts: bug fixes
30581         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
30582         Include <sys/vfs.h>, not <sys/statfs.h>.
30583
30584         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
30585         Include <sys/vfs.h>, not <sys/statfs.h>.
30586
30587 2008-10-01  Bruno Haible  <bruno@clisp.org>
30588
30589         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
30590         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
30591         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
30592         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
30593         * doc/posix-functions/posix_spawnp.texi: Likewise.
30594         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
30595         whether posix_spawn actually works.
30596         * m4/pipe.m4 (gl_PIPE): Likewise.
30597         * modules/execute (Files): Add m4/posix_spawn.m4.
30598         * modules/pipe (Files): Add m4/posix_spawn.m4.
30599         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
30600
30601 2008-10-01  Jim Meyering  <meyering@redhat.com>
30602
30603         remove trailing spaces
30604         * NEWS: Likewise.
30605         * lib/poll.c (poll): Likewise.
30606         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
30607         * lib/winsock.c (rpl_close): Likewise.
30608         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
30609         * modules/yield: Likewise.
30610         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
30611         * tests/test-sys_select.c (connect_to_socket): Likewise.
30612
30613         fts.c: adjust a new interface to be more generally useful
30614         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
30615         (fts_build): Adjust caller.
30616
30617 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30618
30619         * modules/cond-tests: New file.
30620         * tests/test-cond.c: New file.
30621
30622 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30623             Bruno Haible  <bruno@clisp.org>
30624
30625         * modules/cond (Dependencies): Add errno, time.
30626         * lib/glthread/cond.h: Include <time.h>.
30627         (gl_cond_define, gl_cond_define_initialized): Use the same definition
30628         across platforms.
30629
30630 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30631             Bruno Haible  <bruno@clisp.org>
30632
30633         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
30634
30635 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30636             Bruno Haible  <bruno@clisp.org>
30637
30638         * modules/tls-tests (Depends-on): Add thread, yield.
30639         (configure.ac): Remove all checks.
30640         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
30641         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30642         gl_thread_self): Remove definitions. Include glthread/thread.h and
30643         glthread/yield.h instead.
30644         (test_tls): Pass an additional NULL argument to gl_thread_join.
30645
30646 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30647             Bruno Haible  <bruno@clisp.org>
30648
30649         * modules/lock-tests (Depends-on): Add thread, yield.
30650         (configure.ac): Remove all checks.
30651         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
30652         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30653         gl_thread_self): Remove definitions. Include glthread/thread.h and
30654         glthread/yield.h instead.
30655         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
30656         additional NULL argument to gl_thread_join.
30657
30658 2008-09-30  Bruno Haible  <bruno@clisp.org>
30659
30660         Fix the Win32 implementation of the 'thread' module.
30661         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
30662         pointer type.
30663         (gl_thread_self): Invoke gl_thread_self_func.
30664         (gl_thread_self_func): New declaration.
30665         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
30666         (do_init_self_key, init_self_key): New functions.
30667         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
30668         Remove some fields.
30669         (running_threads, running_lock): Remove variables.
30670         (get_current_thread_handle): New function.
30671         (gl_thread_self_func, wrapper_func, glthread_create_func,
30672         glthread_join_func, gl_thread_exit_func): Largely rewritten and
30673         simplified.
30674
30675 2008-09-30  Bruno Haible  <bruno@clisp.org>
30676
30677         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
30678         files.
30679
30680 2008-09-30  Jim Meyering  <meyering@redhat.com>
30681
30682         fts.m4: correct the test for statfs.f_type
30683         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
30684         when checking for statfs.f_type.
30685
30686 2008-09-15  Simon Josefsson  <simon@josefsson.org>
30687
30688         tests: avoid some compiler warnings
30689         * tests/test-memchr.c (main): Pass NULL indirectly.
30690         * tests/test-getdate.c (main): Remove unused variable 'ret'.
30691
30692 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
30693
30694         getdate.y: disallow countable dayshifts like "4 yesterday ago"
30695         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
30696         exactly specified dayshifts.
30697         (dayshift): New rule.
30698         (rel): Add dayshift.
30699         (relative_time_table) [tomorrow, yesterday, today, now]:
30700         Use tDAY_SHIFT in place of tDAY_UNIT.
30701         * tests/test-getdate.c: Add tests for now-disallowed countable
30702         dayshifts, e.g., "4 yesterday ago".
30703
30704 2008-09-29  Bruno Haible  <bruno@clisp.org>
30705
30706         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
30707         * tests/test-posix_spawn1.in.sh: Renamed from
30708         tests/test-posix_spawn.in.sh.
30709         * tests/test-posix_spawn2.c: New file.
30710         * tests/test-posix_spawn2.in.sh: New file.
30711         * modules/posix_spawnp-tests (Files): Update.
30712         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
30713
30714 2008-09-29  Bruno Haible  <bruno@clisp.org>
30715
30716         Propagate effects of putenv/setenv/unsetenv to child processes.
30717         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
30718         * lib/pipe.c (create_pipe): Likewise.
30719
30720 2008-09-29  Bruno Haible  <bruno@clisp.org>
30721
30722         Enable use of shell scripts as executables in mingw.
30723         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
30724         run the program as a shell script.
30725         * lib/pipe.c (create_pipe): Likewise.
30726         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
30727         resulting array.
30728
30729 2008-09-29  Eric Blake  <ebb9@byu.net>
30730
30731         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
30732
30733 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
30734
30735         * doc/posix-functions/accept.texi: Update mingw problems.
30736         * doc/posix-functions/bind.texi: Update mingw problems.
30737         * doc/posix-functions/close.texi: Update mingw problems.
30738         * doc/posix-functions/connect.texi: Update mingw problems.
30739         * doc/posix-functions/getpeername.texi: Update mingw problems.
30740         * doc/posix-functions/getsockname.texi: Update mingw problems.
30741         * doc/posix-functions/getsockopt.texi: Update mingw problems.
30742         * doc/posix-functions/ioctl.texi: Update mingw problems.
30743         * doc/posix-functions/listen.texi: Update mingw problems.
30744         * doc/posix-functions/recv.texi: Update mingw problems.
30745         * doc/posix-functions/recvfrom.texi: Update mingw problems.
30746         * doc/posix-functions/select.texi: Update mingw problems.
30747         * doc/posix-functions/send.texi: Update mingw problems.
30748         * doc/posix-functions/sendto.texi: Update mingw problems.
30749         * doc/posix-functions/setsockopt.texi: Update mingw problems.
30750         * doc/posix-functions/socket.texi: Update mingw problems.
30751
30752 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
30753             Bruno Haible  <bruno@clisp.org>
30754
30755         * lib/sys_select.in.h: Include sys/time.h.
30756         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
30757         * modules/sys_select: Depend on sys_time.
30758         * tests/test-sys_select.c: Test that sys/select.h defines struct
30759         timeval fully.
30760
30761 2008-09-29  Bruno Haible  <bruno@clisp.org>
30762
30763         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
30764         * lib/sys_select.in.h: Likewise.
30765
30766 2008-09-29  Bruno Haible  <bruno@clisp.org>
30767
30768         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
30769
30770 2008-09-29  Bruno Haible  <bruno@clisp.org>
30771
30772         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
30773         Set LIBSOCKET instead of augmenting LIBS.
30774         * modules/sockets (Link): New section.
30775         * modules/sockets-tests (test_sockets_LDADD): New variable.
30776         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
30777         * modules/poll-tests (test_poll_LDADD): New variable.
30778         * NEWS: Document the change.
30779
30780 2008-09-29  Bruno Haible  <bruno@clisp.org>
30781
30782         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
30783         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
30784         ARPA_INET_H directly.
30785         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30786
30787 2008-09-28  Bruno Haible  <bruno@clisp.org>
30788
30789         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
30790         from gl_HEADER_SYS_SOCKET.
30791         (gl_HEADER_SYS_SOCKET): Invoke it.
30792         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30793
30794 2008-09-28  Bruno Haible  <bruno@clisp.org>
30795
30796         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
30797         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
30798         Needed on OSF/1 4.0.
30799
30800 2008-09-28  Bruno Haible  <bruno@clisp.org>
30801
30802         Override open more carefully.
30803         * lib/open.c (orig_open): New function.
30804         (rpl_open): Use orig_open instead of open.
30805         * lib/fcntl.in.h: Add special invocation convention.
30806         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
30807         (gl_FUNC_OPEN): Invoke it.
30808
30809         Override freopen more carefully.
30810         * lib/freopen.c (orig_freopen): New function.
30811         (rpl_freopen): Use orig_freopen instead of freopen.
30812         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
30813         (gl_FUNC_FREOPEN): Invoke it.
30814
30815         Override fopen more carefully.
30816         * lib/fopen.c (orig_fopen): New function.
30817         (rpl_fopen): Use orig_fopen instead of fopen.
30818         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
30819         (gl_FUNC_FOPEN): Invoke it.
30820         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
30821
30822 2008-09-28  Bruno Haible  <bruno@clisp.org>
30823
30824         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
30825         SIGPIPE.
30826
30827 2008-09-28  Bruno Haible  <bruno@clisp.org>
30828
30829         * tests/test-sigaction.c (handler, main): Disable the check whether
30830         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
30831         glibc systems with LinuxThreads.
30832
30833 2008-09-28  Bruno Haible  <bruno@clisp.org>
30834
30835         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
30836
30837         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
30838         with AIX xlc.
30839         * lib/fcntl.in.h (open): Likewise.
30840         Reported by Rainer Tammer <tammer@tammer.net>.
30841
30842 2008-09-28  Bruno Haible  <bruno@clisp.org>
30843
30844         * modules/posix_spawnp-tests: New file.
30845         * tests/test-posix_spawn.c: New file.
30846         * tests/test-posix_spawn.in.sh: New file.
30847
30848         New module 'posix_spawnp'.
30849         * modules/posix_spawnp: New file.
30850         * lib/spawnp.c: New file, from GNU libc with modifications.
30851         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
30852
30853         New module 'posix_spawn'.
30854         * modules/posix_spawn: New file.
30855         * lib/spawn.c: New file, from GNU libc with modifications.
30856         * doc/posix-functions/posix_spawn.texi: Mention the new module.
30857
30858         New module 'posix_spawnattr_destroy'.
30859         * modules/posix_spawnattr_destroy: New file.
30860         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
30861         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
30862         module.
30863
30864         New module 'posix_spawnattr_setsigmask'.
30865         * modules/posix_spawnattr_setsigmask: New file.
30866         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
30867         modifications.
30868         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
30869         new module.
30870
30871         New module 'posix_spawnattr_getsigmask'.
30872         * modules/posix_spawnattr_getsigmask: New file.
30873         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
30874         modifications.
30875         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
30876         new module.
30877
30878         New module 'posix_spawnattr_setsigdefault'.
30879         * modules/posix_spawnattr_setsigdefault: New file.
30880         * lib/spawnattr_setdefault.c: New file, from GNU libc with
30881         modifications.
30882         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
30883         new module.
30884
30885         New module 'posix_spawnattr_getsigdefault'.
30886         * modules/posix_spawnattr_getsigdefault: New file.
30887         * lib/spawnattr_getdefault.c: New file, from GNU libc with
30888         modifications.
30889         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
30890         new module.
30891
30892         New module 'posix_spawnattr_setschedpolicy'.
30893         * modules/posix_spawnattr_setschedpolicy: New file.
30894         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
30895         modifications.
30896         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
30897         new module.
30898
30899         New module 'posix_spawnattr_getschedpolicy'.
30900         * modules/posix_spawnattr_getschedpolicy: New file.
30901         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
30902         modifications.
30903         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
30904         new module.
30905
30906         New module 'posix_spawnattr_setschedparam'.
30907         * modules/posix_spawnattr_setschedparam: New file.
30908         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
30909         modifications.
30910         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
30911         new module.
30912
30913         New module 'posix_spawnattr_getschedparam'.
30914         * modules/posix_spawnattr_getschedparam: New file.
30915         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
30916         modifications.
30917         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
30918         new module.
30919
30920         New module 'posix_spawnattr_setpgroup'.
30921         * modules/posix_spawnattr_setpgroup: New file.
30922         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
30923         modifications.
30924         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
30925         module.
30926
30927         New module 'posix_spawnattr_getpgroup'.
30928         * modules/posix_spawnattr_getpgroup: New file.
30929         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
30930         modifications.
30931         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
30932         module.
30933
30934         New module 'posix_spawnattr_setflags'.
30935         * modules/posix_spawnattr_setflags: New file.
30936         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
30937         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
30938         module.
30939
30940         New module 'posix_spawnattr_getflags'.
30941         * modules/posix_spawnattr_getflags: New file.
30942         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
30943         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
30944         module.
30945
30946         New module 'posix_spawnattr_init'.
30947         * modules/posix_spawnattr_init: New file.
30948         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
30949         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
30950         module.
30951
30952         New module 'posix_spawn_file_actions_destroy'.
30953         * modules/posix_spawn_file_actions_destroy: New file.
30954         * lib/spawn_faction_destroy.c: New file, from GNU libc with
30955         modifications.
30956         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
30957         the new module.
30958
30959         New module 'posix_spawn_file_actions_addopen'.
30960         * modules/posix_spawn_file_actions_addopen: New file.
30961         * lib/spawn_faction_addopen.c: New file, from GNU libc with
30962         modifications.
30963         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
30964         the new module.
30965
30966         New module 'posix_spawn_file_actions_adddup2'.
30967         * modules/posix_spawn_file_actions_adddup2: New file.
30968         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
30969         modifications.
30970         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
30971         the new module.
30972
30973         New module 'posix_spawn_file_actions_addclose'.
30974         * modules/posix_spawn_file_actions_addclose: New file.
30975         * lib/spawn_faction_addclose.c: New file, from GNU libc with
30976         modifications.
30977         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
30978         the new module.
30979
30980         New module 'posix_spawn_file_actions_init'.
30981         * modules/posix_spawn_file_actions_init: New file.
30982         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
30983         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
30984         new module.
30985
30986         New module 'posix_spawn-internal'.
30987         * modules/posix_spawn-internal: New file.
30988         * lib/spawn_int.h: New file, from GNU libc with modifications.
30989         * lib/spawni.c: New file, from GNU libc with modifications.
30990         * m4/posix_spawn.m4: New file.
30991
30992         New module 'spawn'.
30993         * modules/spawn: New file.
30994         * lib/spawn.in.h: New file, from GNU libc with modifications.
30995         * m4/spawn_h.m4: New file.
30996         * doc/posix-headers/spawn.texi: Mention the new module.
30997
30998 2008-09-28  Bruno Haible  <bruno@clisp.org>
30999
31000         * modules/sched-tests: New file.
31001         * tests/test-sched.c: New file.
31002
31003         New module 'sched'.
31004         * modules/sched: New file.
31005         * lib/sched.in.h: New file.
31006         * m4/sched_h.m4: New file.
31007         * doc/posix-headers/sched.texi: Mention the new module.
31008
31009 2008-09-27  Eric Blake  <ebb9@byu.net>
31010
31011         Fix previous patch, and tweak references to $0.
31012         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31013         (func_version, func_gnulib_dir): Don't call this program
31014         gnulib-tool.
31015         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31016         with using $0 in function.
31017         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31018         (func_fatal_error): Reuse the name the user invoked us with.
31019
31020 2008-09-27  Bruno Haible  <bruno@clisp.org>
31021
31022         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31023         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31024         (gl_ICONV_H): Not here.
31025         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31026         instead of assigning ICONV_H directly.
31027
31028         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31030         WCHAR_H directly.
31031
31032 2008-09-27  Bruno Haible  <bruno@clisp.org>
31033
31034         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31035         * modules/arpa_inet (Depends-on): Add link-warning.
31036         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31037         * modules/unistd (Makefile.am): Likewise.
31038
31039 2008-09-26  Bruno Haible  <bruno@clisp.org>
31040
31041         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31042         variables.
31043         (func_version): Essentially copied from gnulib-tool.
31044         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31045         func_readlink): Copied from gnulib-tool.
31046
31047 2008-09-26  Bruno Haible  <bruno@clisp.org>
31048
31049         * gnulib-tool (func_version): Change directory to $gnulib_dir before
31050         invoking git-version-gen.
31051
31052 2008-09-26  Bruno Haible  <bruno@clisp.org>
31053
31054         * posix-modules: Update to directory names changed on 2008-01-19.
31055         Remove commas in output before splitting into words. No more need to
31056         avoid 'ftruncate' since 2007-02-19.
31057
31058 2008-09-26  Bruno Haible  <bruno@clisp.org>
31059
31060         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
31061
31062 2008-09-26  Bruno Haible  <bruno@clisp.org>
31063
31064         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31065         * modules/fwriteerror (Depends-on): Add errno.
31066
31067 2008-09-26  Bruno Haible  <bruno@clisp.org>
31068
31069         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31070         * tests/test-vc-list-files-cvs.sh: Likewise.
31071
31072 2008-09-26  Bruno Haible  <bruno@clisp.org>
31073
31074         * doc/posix-headers/sys_resource.texi: Reorder items.
31075
31076 2008-09-26  Jim Meyering  <meyering@redhat.com>
31077
31078         fts: tweak inode comparison function
31079         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31080         inode numbers, as documented.
31081
31082         fts: sort dirent entries on inode number before traversing
31083         This avoids a quadratic, seek-related performance penalty when
31084         operating on a directory containing many entries (measurable at 10k;
31085         3.5 hours at 2 million entries with a cold cache) on certain types
31086         of file systems, including ext3 and ext4, but not tmpfs.
31087         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31088         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31089         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31090         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31091         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31092         (fts_build): Set the stat.st_ino member from D_INO.
31093         If it is likely to be useful, sort dirent entries on inode number.
31094
31095         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31096         and the struct statfs.f_type member.
31097         * modules/fts (Depends-on): Add d-ino.
31098
31099 2008-09-26  Bruno Haible  <bruno@clisp.org>
31100
31101         * modules/sigpipe-die (Depends-on): Add sigpipe.
31102
31103         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31104         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31105         and GNULIB_STDIO_H_SIGPIPE are set.
31106         * lib/stdio-write.c: New file.
31107         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31108         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31109         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31110         REPLACE_STDIO_WRITE_FUNCS.
31111         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31112         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31113         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31114         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31115         * modules/stdio (Files): Add lib/stdio-write.c.
31116         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31117         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31118         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31119         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31120         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31121         REPLACE_FPRINTF_POSIX.
31122         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31123         REPLACE_PRINTF_POSIX.
31124         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31125         REPLACE_VFPRINTF_POSIX.
31126         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31127         REPLACE_VPRINTF_POSIX.
31128         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31129         SIGPIPE issue.
31130         * doc/posix-functions/fputc.texi: Likewise.
31131         * doc/posix-functions/fputs.texi: Likewise.
31132         * doc/posix-functions/fwrite.texi: Likewise.
31133         * doc/posix-functions/printf.texi: Likewise.
31134         * doc/posix-functions/putc.texi: Likewise.
31135         * doc/posix-functions/putchar.texi: Likewise.
31136         * doc/posix-functions/puts.texi: Likewise.
31137         * doc/posix-functions/vfprintf.texi: Likewise.
31138         * doc/posix-functions/vprintf.texi: Likewise.
31139
31140         * modules/safe-write (Depends-on): Add write.
31141
31142         * modules/sigpipe-tests: New file.
31143         * tests/test-sigpipe.c: New file.
31144         * tests/test-sigpipe.sh: New file.
31145
31146         * modules/write: New file.
31147         * lib/unistd.in.h: Include <sys/types.h>.
31148         (write): New declaration.
31149         * lib/write.c: New file.
31150         * m4/write.m4: New file.
31151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31152         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31153         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31154         GNULIB_WRITE, REPLACE_WRITE.
31155         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31156         and the SIGPIPE issue.
31157
31158         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31159         (raise): New declaration.
31160         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31161         (ext_signal): New function.
31162         (rpl_raise): New function.
31163         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31164         GNULIB_SIGNAL_H_SIGPIPE.
31165         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31166         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31167
31168         * modules/sigpipe: New file.
31169         * m4/sigpipe.m4: New file.
31170
31171 2008-09-25  Derek Price  <derek@ximbiot.com>
31172             Bruno Haible  <bruno@clisp.org>
31173
31174         * gnulib-tool (func_import): Report all license incompatibilities, not
31175         just the first one.
31176
31177 2008-09-25  Bruno Haible  <bruno@clisp.org>
31178
31179         * gnulib-tool (func_import): When computing the edits, consider not
31180         only the Makefile.ams that exist but also those that will be generated.
31181
31182 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31183
31184         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31185         fixes gnulib-tool --test warning about duplicate dependency.
31186
31187 2008-09-25  Bruno Haible  <bruno@clisp.org>
31188
31189         * gnulib-tool: Don't ask the user to perform edits in the generated
31190         Makefile.ams.
31191         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31192         apply to the Makefile.am being generated.
31193         (func_emit_tests_Makefile_am): Execute edits that apply to the
31194         Makefile.am being generated.
31195         (func_import): Setup list of Makefile.am edits before emitting the
31196         Makefile.ams, not at the end.
31197         (func_create_testdir): Update.
31198         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31199
31200 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31201
31202         * gnulib-tool (func_import): Store the --tests-base option in the
31203         comment in gnulib-cache.m4.
31204
31205 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31206
31207         * NEWS: Document increased portability that sys_select now provides.
31208
31209         * lib/sys_select.in.h: Install select wrapper.
31210         * lib/sys_socket.in.h: Use more descriptive name when there is no
31211         select wrapper.
31212         * lib/winsock-select.c: New.
31213         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31214         Require gl_HEADER_SYS_SOCKET.
31215         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31216         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31217         * tests/test-sys_select.c: Add functional tests.
31218
31219 2008-09-24  Eric Blake  <ebb9@byu.net>
31220
31221         open, fopen: close fd leak in last patch
31222         * lib/open.c (rpl_open): Close fd before returning error.
31223         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31224         * doc/posix-functions/open.texi (open): Document that Irix also
31225         has the bug.
31226         * doc/posix-functions/fopen.texi (fopen): Likewise.
31227         Reported by Paolo Bonzini.
31228
31229 2008-09-24  Bruno Haible  <bruno@clisp.org>
31230
31231         Ensure that a filename ending in a slash cannot be used to access a
31232         non-directory.
31233         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31234         to check whether it's really a directory.
31235         * lib/fopen.c: Include fcntl.h, unistd.h.
31236         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31237         and fdopen().
31238         * modules/fopen (Depends-on): Add unistd.
31239         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31240         * tests/test-fopen.c (main): Likewise.
31241         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31242         * doc/posix-functions/fopen.texi: Likewise.
31243         Reported by Eric Blake.
31244
31245 2008-09-23  Eric Blake  <ebb9@byu.net>
31246
31247         c-stack: avoid compiler optimizations when provoking overflow
31248         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31249         recursion harder to optimize, to ensure a stack overflow occurs.
31250         * tests/test-c-stack.c (recurse): Likewise.
31251         Borrowed from libsigsegv.
31252
31253         c-stack: work around Irix sigaltstack bug
31254         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31255         whether sigaltstack uses wrong end of stack_t (copied in part from
31256         libsigsegv).
31257         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31258         Irix bug, without requiring an over-allocation.
31259         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31260         bug.
31261
31262         fopen: document mingw bug on directories
31263         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31264         not allowing a stream visiting a directory, even though reading
31265         from such a stream is not portable.
31266
31267 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31268
31269         * lib/poll.c: Rewrite.
31270         * modules/poll: Depend on alloca.
31271
31272 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31273
31274         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31275         instead define prototypes for a full set of wrappers.  Ensure
31276         that Cygwin does not use the compatibility code, which is only
31277         for MinGW.
31278         * lib/winsock.c: New.
31279         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31280         * modules/sys_socket: Add lib/winsock.c.
31281
31282         * modules/poll-tests: Add errno and perror.
31283         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31284
31285 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31286
31287         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31288
31289 2008-09-23  Bruno Haible  <bruno@clisp.org>
31290
31291         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31292         * doc/glibc-functions/*: Likewise.
31293
31294 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31295
31296         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31297         success.
31298
31299 2008-09-22  Eric Blake  <ebb9@byu.net>
31300             Bruno Haible  <bruno@clisp.org>
31301
31302         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31303         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31304         supply %A but mishandle pseudo-NaN.
31305         Reported by Simon Josefsson.
31306
31307 2008-09-21  Bruno Haible  <bruno@clisp.org>
31308
31309         * tests/test-lock.c (main): Tweak skip message.
31310         * tests/test-tls.c (main): Likewise.
31311
31312 2008-09-21  Bruno Haible  <bruno@clisp.org>
31313
31314         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31315         whether 'struct sigaction' has sa_sigaction here...
31316         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31317         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31318
31319 2008-09-21  Bruno Haible  <bruno@clisp.org>
31320
31321         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31322         section.
31323         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31324         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31325         the new section.
31326         (Support for obsolete systems lacking POSIX:2001): New section.
31327         (String handling <string.h>): Move strdup to the new section.
31328         Suggested by Simon Josefsson and Paolo Bonzini.
31329
31330 2008-09-21  Bruno Haible  <bruno@clisp.org>
31331
31332         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31333         exponents in %e and %g results on 'long double'. Needed for mingw's
31334         improved *printf functions.
31335         * tests/test-vasprintf-posix.c (test_function): Likewise.
31336         * tests/test-snprintf-posix.h (test_function): Likewise.
31337         * tests/test-sprintf-posix.h (test_function): Likewise.
31338         Reported by Eric Blake.
31339
31340 2008-09-21  Bruno Haible  <bruno@clisp.org>
31341
31342         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31343         * tests/test-sprintf-posix.h (test_function): Likewise.
31344
31345 2008-09-21  Bruno Haible  <bruno@clisp.org>
31346
31347         * modules/getpass (Depends-on): Add strdup-posix.
31348
31349         New module 'strdup-posix'.
31350         * modules/strdup-posix: New file.
31351         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31352         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31353         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31354         REPLACE_STRDUP.
31355         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31356         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31358         strdup-posix.
31359
31360         * modules/strdup (Depends-on): Remove malloc-posix.
31361
31362 2008-09-20  Bruno Haible  <bruno@clisp.org>
31363
31364         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31365         Wildenhues.
31366
31367 2008-09-20  Bruno Haible  <bruno@clisp.org>
31368
31369         Ensure that wint_t gets defined on IRIX 5.3.
31370         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31371         * lib/wctype.in.h (wint_t): Likewise.
31372         (__wctype_wint_t): Remove type.
31373         (isw*): Use wint_t instead of __wctype_wint_t.
31374         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31375         * modules/wchar (Files): Add m4/wint_t.m4.
31376         (Makefile.am): Substitute HAVE_WINT_T.
31377         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31378         * tests/test-wctype.c: Check that wint_t is defined.
31379         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31380         * doc/posix-headers/wctype.texi: Likewise.
31381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31382
31383 2008-09-18  Bruno Haible  <bruno@clisp.org>
31384
31385         * gnulib-tool (func_exit): Update comment.
31386
31387 2008-09-18  Simon Josefsson  <simon@josefsson.org>
31388
31389         * modules/getaddrinfo (Depends-on): Remove strdup, this module
31390         assumes strdup exists and does not depend on strdup to return
31391         ENOMEM on out of memory conditions.
31392
31393 2008-09-18  Bruno Haible  <bruno@clisp.org>
31394
31395         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
31396         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
31397         digits for the exponent.
31398
31399 2008-09-18  Jim Meyering  <meyering@redhat.com>
31400             Bruno Haible  <bruno@clisp.org>
31401
31402         * lib/vasnprintf.c (decimal_point_char): Define also if
31403         NEED_PRINTF_INFINITE_LONG_DOUBLE.
31404
31405 2008-09-16  Bruno Haible  <bruno@clisp.org>
31406         and Eric Blake  <ebb9@byu.net>
31407
31408         vasnprintf: support Irix 5.3
31409         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
31410         that mishandle long double infinity.
31411         Reported by Tom G. Christensen.
31412
31413 2008-09-16  Bruno Haible  <bruno@clisp.org>
31414
31415         * doc/glibc-functions/scandir.texi: Mention the function is missing on
31416         Solaris 9.
31417         * doc/glibc-functions/alphasort.texi: Likewise.
31418         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
31419
31420 2008-09-16  Jim Meyering  <meyering@redhat.com>
31421
31422         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
31423         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
31424         a umask modification leak out of a subshell.  Otherwise, the
31425         opensolaris /bin/sh would be accepted and thus cause unwarranted
31426         failures in the coreutils test suite.
31427
31428 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
31429
31430         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
31431         to succeed.
31432
31433 2008-09-16  Jim Meyering  <meyering@redhat.com>
31434
31435         avoid spurious test failure when library is built without ACL support
31436         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
31437         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
31438         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
31439         * tests/test-copy-acl.sh: Likewise.
31440
31441 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31442
31443         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
31444         based on character occurrence counts.
31445
31446 2008-09-15  Eric Blake  <ebb9@byu.net>
31447
31448         tests: avoid some compiler warnings
31449         * tests/test-memchr.c (main): Pass NULL indirectly.
31450         * tests/test-closein.c (main): Avoid unused variable.
31451
31452 2008-09-15  Bruno Haible  <bruno@clisp.org>
31453
31454         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31455         are missing on OpenBSD 4.0 individually.
31456         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31457
31458 2008-09-15  Bruno Haible  <bruno@clisp.org>
31459
31460         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
31461         * doc/posix-functions/strerror.texi: Mention also Cygwin.
31462         * doc/posix-functions/perror.texi: Likewise.
31463         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
31464         is missing.
31465         Reported by Eric Blake.
31466
31467         * lib/errno.in.h: Use replacement values >= 2000.
31468         Reported by Eric Blake.
31469
31470 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31471
31472         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
31473         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
31474         limit.
31475         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
31476         compareseq was aborted.
31477
31478 2008-09-14  Bruno Haible  <bruno@clisp.org>
31479
31480         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
31481         yvec_edit_count.
31482         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
31483         (fstrcmp_bounded): Simplify result computation accordingly.
31484
31485 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31486
31487         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
31488         (fstrcmp): Define in terms of fstrcmp_bounded.
31489         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
31490         lower_bound argument.
31491         Return quickly if the result is certainly < lower_bound.
31492         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
31493
31494 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31495
31496         * lib/diffseq.h (EARLY_ABORT): New macro.
31497         (compareseq): Change return type to bool. Return true when EARLY_ABORT
31498         evaluates to true.
31499
31500 2008-09-14  Bruno Haible  <bruno@clisp.org>
31501
31502         * modules/perror-tests: New file.
31503         * tests/test-perror.sh: New file.
31504         * tests/test-perror.c: New file.
31505
31506         New module 'perror'.
31507         * lib/stdio.in.h (perror): New declaration.
31508         * lib/perror.c: New file.
31509         * m4/perror.m4: New file.
31510         * modules/perror: New file.
31511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
31512         * doc/posix-functions/perror.texi: Mention the perror module.
31513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
31514         REPLACE_PERROR.
31515         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
31516         REPLACE_PERROR.
31517
31518 2008-09-14  Bruno Haible  <bruno@clisp.org>
31519
31520         * modules/stdio (Makefile.am): Reorder to match the order in
31521         lib/stdio.in.h.
31522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31523
31524 2008-09-13  Bruno Haible  <bruno@clisp.org>
31525
31526         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
31527
31528 2008-09-13  Bruno Haible  <bruno@clisp.org>
31529
31530         Extend strerror to cover the added errno values.
31531         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
31532         (rpl_strerror): Provide error messages for the added errno values and
31533         for the WSA* values.
31534         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
31535         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
31536         strerror.
31537         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
31538         * modules/strerror (Depends-on): Add errno.
31539         * doc/posix-functions/strerror.texi: Document the change.
31540         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
31541         and EOVERFLOW.
31542
31543 2008-09-13  Bruno Haible  <bruno@clisp.org>
31544
31545         * modules/EOVERFLOW: Remove file.
31546         * m4/eoverflow.m4: Remove file.
31547         * modules/EOVERFLOW-tests: Remove file.
31548         * tests/test-EOVERFLOW.c: Remove file.
31549         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
31550         * modules/ftell (Depends-on): Likewise.
31551         * modules/getdelim (Depends-on): Likewise.
31552         * modules/getugroups (Depends-on): Likewise.
31553         * modules/poll (Depends-on): Likewise.
31554         * modules/snprintf (Depends-on): Likewise.
31555         * modules/sprintf-posix (Depends-on): Likewise.
31556         * modules/vasnprintf (Depends-on): Likewise.
31557         * modules/vasprintf (Depends-on): Likewise.
31558         * modules/vfprintf-posix (Depends-on): Likewise.
31559         * modules/vsnprintf (Depends-on): Likewise.
31560         * modules/vsprintf-posix (Depends-on): Likewise.
31561         * modules/xvasprintf (Depends-on): Likewise.
31562         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31563         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
31564         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
31565         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
31566         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31567         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
31568         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
31569         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
31570         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31571         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
31572         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
31573         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
31574         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31575         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
31576         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
31577         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
31578         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31579         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
31580         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
31581         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
31582         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31583         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
31584         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
31585         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
31586         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
31587         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31588         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
31589         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
31590         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
31591         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
31592         * MODULES.html.sh: Remove EOVERFLOW.
31593         * NEWS: Mention the change.
31594
31595 2008-09-13  Bruno Haible  <bruno@clisp.org>
31596
31597         * modules/errno-tests: New file.
31598         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
31599
31600         * lib/errno.in.h: New file.
31601         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
31602         * modules/errno: New file.
31603         * doc/posix-headers/errno.texi: Update documentation.
31604         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
31605
31606 2008-09-13  Bruno Haible  <bruno@clisp.org>
31607
31608         * tests/test-poll.c: Use #if for native Windows, rather than testing
31609         __MSVCRT__.
31610
31611 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31612             Bruno Haible  <bruno@clisp.org>
31613
31614         * lib/glob.c: Don't include <pwd.h> on native Windows.
31615         (WINDOWS32): New macro.
31616         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
31617
31618 2008-09-13  Bruno Haible  <bruno@clisp.org>
31619
31620         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
31621         (ETIMEDOUT): Remove macro.
31622         (glthread_cond_timedwait_multithreaded): New declaration.
31623         (glthread_cond_timedwait): Use it.
31624         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
31625         (glthread_cond_timedwait_multithreaded): New function.
31626
31627 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31628
31629         * modules/poll-tests: Do not check for io.h.
31630         * tests/test-poll.c: Check for __MSVCRT__ instead.
31631
31632 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31633
31634         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
31635         * modules/poll-tests: Add inet_pton, stdbool, sockets.
31636         * tests/test-poll.c: Use them.  Use _pipe on Windows.
31637
31638 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31639
31640         * modules/poll-tests: New.
31641         * tests/test-poll.c: New.
31642
31643 2008-09-12  Eric Blake  <ebb9@byu.net>
31644
31645         frexp: test for NetBSD failure on -0.0
31646         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
31647         not all, bugs from NetBSD 3.0 have been fixed.
31648         * doc/posix-functions/frexp.texi (frexp): Document bug.
31649         Reported by Thomas Klausner.
31650
31651         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
31652         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
31653         literal -0.0.
31654         Reported by Jonathan C. Patschke <jp@centtech.com>.
31655
31656 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31657
31658         * lib/glthread/cond.h: Use dummy implementation also if
31659         USE_WIN32_THREADS.
31660
31661 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31662
31663         * modules/fnmatch-posix (License): Change to LGPLv2+.
31664         * modules/fnmatch-gnu (License): Likewise.
31665
31666 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31667
31668         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
31669
31670 2008-09-11  Jim Meyering  <meyering@redhat.com>
31671
31672         * users.txt: Add gtk-vnc.
31673
31674 2008-09-08  Simon Josefsson  <simon@josefsson.org>
31675
31676         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
31677         rotate amounts.
31678
31679         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
31680         required for 16-bit and 8-bit rotates.
31681         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
31682         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
31683         UINT8_MAX instead of hard-coded constants.
31684         Suggested by Paul Eggert.
31685
31686 2008-09-07  Bruno Haible  <bruno@clisp.org>
31687
31688         * tests/test-striconveh.c (main): Check behaviour when converting from
31689         UTF-7.
31690
31691         Make striconveh work better with stateful encodings.
31692         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
31693         that iconv does not increment the inptr when returning -1/EINVAL.
31694
31695 2008-09-07  Bruno Haible  <bruno@clisp.org>
31696
31697         * build-aux/config.rpath: Update according to libtool-2.2.6.
31698         * build-aux/config.libpath: Likewise.
31699
31700 2008-09-06  Bruno Haible  <bruno@clisp.org>
31701
31702         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
31703         * lib/freadptr.c (freadptr): Likewise.
31704         * lib/freadseek.c (freadptrinc): Likewise.
31705         Reported by Simon Josefsson.
31706
31707 2008-09-06  Bruno Haible  <bruno@clisp.org>
31708
31709         * modules/freadptr (License): Change to LGPLv2+.
31710         * modules/freadseek (License): Likewise.
31711         Suggested by Eric Blake.
31712
31713         * modules/memchr2 (License): Change to LGPLv2+.
31714         Approved by Eric Blake.
31715
31716 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31717             Bruno Haible  <bruno@clisp.org>
31718
31719         Make gnulib-tool work with native 'sed' on AIX.
31720         * gnulib-tool (sed_noop): New variable.
31721         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
31722         func_add_or_update, func_create_testdir): Use it to initialize sed
31723         script variables.
31724         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31725
31726 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
31727             Bruno Haible  <bruno@clisp.org>
31728
31729         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
31730         also works after #include directives.
31731
31732 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
31733
31734         getdate.y: reject an out-of-range timezone value
31735         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
31736         the range [-24...+24].  When specified with only one or two digits,
31737         * tests/test-getdate.c: Tests for the fix.
31738         * doc/getdate.texi: Document this change.
31739
31740 2008-09-03  Bruno Haible  <bruno@clisp.org>
31741
31742         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
31743
31744 2008-09-02  Simon Josefsson  <simon@josefsson.org>
31745
31746         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
31747         <bruce.korb@gmail.com> with ideas from Ben Pfaff
31748         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
31749         Blake <ebb9@byu.net>.
31750
31751         * tests/test-bitrotate.c: Add more test vectors.
31752
31753 2008-09-02  Eric Blake  <ebb9@byu.net>
31754
31755         vasnprintf-posix: handle large precision via %.*d
31756         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
31757         when handling it ourselves.
31758         * tests/test-vasnprintf-posix.c (test_function): Add test.
31759         * tests/test-snprintf-posix.h (test_function): Likewise.
31760         * tests/test-sprintf-posix.h (test_function): Likewise.
31761         * tests/test-vasprintf-posix.c (test_function): Likewise.
31762         Reported by Alain Guibert.
31763
31764 2008-09-01  Eric Blake  <ebb9@byu.net>
31765
31766         c-stack: make configure-time check more robust
31767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
31768         successful sigaction call.
31769         Reported by Tom G. Christensen.
31770
31771 2008-09-01  Bruno Haible  <bruno@clisp.org>
31772
31773         New module 'findprog-lgpl'.
31774         * modules/findprog-lgpl: New file.
31775         * lib/findprog-lgpl.c: New file.
31776         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
31777         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
31778         to decide whether to use strdup or xstrdup, concatenated_filename or
31779         xconcatenated_filename.
31780
31781 2008-09-01  Bruno Haible  <bruno@clisp.org>
31782
31783         Split module 'concat-filename' into 'concat-filename' (LGPL) and
31784         'xconcat-filename' (GPL).
31785         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
31786         (License): Change to LGPLv2+.
31787         * modules/xconcat-filename: New file.
31788         * lib/concat-filename.h (concatenated_filename): Change specification.
31789         (xconcatenated_filename): New declaration.
31790         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
31791         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
31792         memory situations.
31793         * lib/xconcat-filename.c: New file.
31794         * NEWS: Mention the change.
31795         * lib/findprog.c: Include concat-filename.h, not filename.h.
31796         (find_in_path): Use xconcatenated_filename instead of
31797         concatenated_filename.
31798         * lib/javacomp.c: Include concat-filename.h, not filename.h.
31799         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31800         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31801         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31802         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
31803         instead of concatenated_filename.
31804         * lib/javaexec.c: Include concat-filename.h, not filename.h.
31805         (execute_java_class): Use xconcatenated_filename instead of
31806         concatenated_filename.
31807         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
31808         * modules/javacomp (Depends-on): Likewise.
31809         * modules/javaexec (Depends-on): Likewise.
31810
31811 2008-09-01  Bruno Haible  <bruno@clisp.org>
31812
31813         Split module 'filename' into 'filename' and 'concat-filename'.
31814         * modules/filename: Keep only lib/filename.h.
31815         (License): Change to LGPLv2+.
31816         * modules/concat-filename: New file, extracted from modules/filename.
31817         * lib/filename.h (concatenated_filename): Remove declaration.
31818         * lib/concat-filename.h: New file, extracted from lib/filename.h.
31819         * lib/concat-filename.c: Include concat-filename.h.
31820         * NEWS: Mention the change.
31821
31822 2008-09-01  Simon Josefsson  <simon@josefsson.org>
31823
31824         * lib/bitrotate.h (rotl8, rotr8): Add.
31825
31826         * modules/bitrotate (configure.ac): Need
31827         AC_REQUIRE([AC_C_INLINE]).
31828         (Description): Mention stdint.h.  Reported by Bruno Haible
31829         <bruno@clisp.org>.
31830
31831         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
31832         Paolo Bonzini <bonzini@gnu.org>.
31833
31834 2008-08-31  Bruno Haible  <bruno@clisp.org>
31835
31836         Assume Solaris specific bi-arch conventions on Solaris systems.
31837         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
31838         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
31839         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
31840         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
31841         like acl_libdirstem.
31842         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
31843         acl_libdirstem.
31844         * NEWS: Mention the change.
31845         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
31846
31847 2008-08-31  Jim Meyering  <meyering@redhat.com>
31848
31849         * lib/strftime.h: Add comments describing the two added arguments.
31850
31851         remove duplicate #include directives
31852         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
31853         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
31854
31855 2008-08-31  Bruno Haible  <bruno@clisp.org>
31856
31857         New module 'sigpipe-die'.
31858         * modules/sigpipe-die: New file.
31859         * lib/sigpipe-die.h: New file.
31860         * lib/sigpipe-die.c: New file.
31861         * MODULES.html.sh (Signal handling): Add sigpipe-die.
31862
31863 2008-08-31  Bruno Haible  <bruno@clisp.org>
31864
31865         Don't override previously installed signal handlers.
31866         * lib/fatal-signal.c (saved_sigactions): New variable.
31867         (uninstall_handlers): Reset the signal to the saved handler, not
31868         to SIG_DFL (except when ignored).
31869         (install_handlers): Save the previous handlers.
31870
31871 2008-08-30  Bruno Haible  <bruno@clisp.org>
31872
31873         * gnulib-tool (func_reset_sigpipe): New function.
31874         (func_get_automake_snippet, func_modules_transitive_closure,
31875         func_import): Invoke it before a join command that reads from stdin,
31876         to avoid "echo: write error: Broken pipe" error messages on stderr.
31877         Reported by Sam Steingold <sds@gnu.org>.
31878
31879 2008-08-30  Bruno Haible  <bruno@clisp.org>
31880
31881         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
31882         Code copied from m4/open.m4.
31883         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
31884         access and the filename ends in a slash. Code copied from lib/open.c.
31885         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
31886         * tests/test-fopen.c (main): Check against bug with trailing slash.
31887
31888 2008-08-29  Bruno Haible  <bruno@clisp.org>
31889
31890         Avoid some "gcc -pedantic" warnings.
31891         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
31892         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
31893         * lib/dirent.in.h: Likewise.
31894         * lib/fcntl.in.h: Likewise.
31895         * lib/float.in.h: Likewise.
31896         * lib/iconv.in.h: Likewise.
31897         * lib/inttypes.in.h: Likewise.
31898         * lib/locale.in.h: Likewise.
31899         * lib/math.in.h: Likewise.
31900         * lib/netinet_in.in.h: Likewise.
31901         * lib/search.in.h: Likewise.
31902         * lib/signal.in.h: Likewise.
31903         * lib/stdarg.in.h: Likewise.
31904         * lib/stdint.in.h: Likewise.
31905         * lib/stdio.in.h: Likewise.
31906         * lib/stdlib.in.h: Likewise.
31907         * lib/string.in.h: Likewise.
31908         * lib/strings.in.h: Likewise.
31909         * lib/sys_select.in.h: Likewise.
31910         * lib/sys_socket.in.h: Likewise.
31911         * lib/sys_stat.in.h: Likewise.
31912         * lib/sys_time.in.h: Likewise.
31913         * lib/sysexits.in.h: Likewise.
31914         * lib/time.in.h: Likewise.
31915         * lib/unistd.in.h: Likewise.
31916         * lib/wchar.in.h: Likewise.
31917         * lib/wctype.in.h: Likewise.
31918         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
31919         * modules/fchdir (Makefile.am): Likewise.
31920         * modules/fcntl (Makefile.am): Likewise.
31921         * modules/float (Makefile.am): Likewise.
31922         * modules/iconv_open (Makefile.am): Likewise.
31923         * modules/inttypes (Makefile.am): Likewise.
31924         * modules/locale (Makefile.am): Likewise.
31925         * modules/math (Makefile.am): Likewise.
31926         * modules/netinet_in (Makefile.am): Likewise.
31927         * modules/search (Makefile.am): Likewise.
31928         * modules/signal (Makefile.am): Likewise.
31929         * modules/stdarg (Makefile.am): Likewise.
31930         * modules/stdint (Makefile.am): Likewise.
31931         * modules/stdio (Makefile.am): Likewise.
31932         * modules/stdlib (Makefile.am): Likewise.
31933         * modules/string (Makefile.am): Likewise.
31934         * modules/strings (Makefile.am): Likewise.
31935         * modules/sys_select (Makefile.am): Likewise.
31936         * modules/sys_socket (Makefile.am): Likewise.
31937         * modules/sys_stat (Makefile.am): Likewise.
31938         * modules/sys_time (Makefile.am): Likewise.
31939         * modules/sysexits (Makefile.am): Likewise.
31940         * modules/time (Makefile.am): Likewise.
31941         * modules/unistd (Makefile.am): Likewise.
31942         * modules/wchar (Makefile.am): Likewise.
31943         * modules/wctype (Makefile.am): Likewise.
31944         Reported by Reuben Thomas <rrt@sc3d.org>.
31945
31946 2008-08-29  Bruno Haible  <bruno@clisp.org>
31947
31948         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
31949         any more.
31950
31951 2008-08-29  Simon Josefsson  <simon@josefsson.org>
31952
31953         * MODULES.html.sh (Misc): Add bitrotate.
31954
31955         * modules/bitrotate: New file.
31956
31957         * lib/bitrotate.h: New file.
31958
31959         * modules/bitrotate-tests: New file.
31960
31961         * tests/test-bitrotate.c: New file.
31962
31963         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
31964         on the bitrotate module.
31965
31966         * lib/arctwo.c: Use new bitrotate module.
31967
31968 2008-08-29  Jim Meyering  <meyering@redhat.com>
31969
31970         bootstrap: merge changes from coreutils
31971         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
31972         of copied files.  Remove a kludge, now that this is fixed.
31973         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
31974         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
31975         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
31976
31977 2008-08-29  Bruno Haible  <bruno@clisp.org>
31978
31979         * MODULES.html.sh: Remove --cvs-urls option.
31980
31981 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
31982
31983         maint.mk: adjust to file name change
31984         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
31985
31986 2008-08-28  Jim Meyering  <meyering@redhat.com>
31987
31988         * modules/getndelim2 (License): Relicense to LGPLv2+.
31989         Approved by Richard Stallman for the version of 1995, and by
31990         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
31991
31992 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
31993
31994         * lib/getdelim.c (flockfile, funlockfile): Make all of them
31995         dummy if one is not available.  Do not touch them if
31996         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
31997         (getc_maybe_unlocked): New.
31998         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
31999
32000 2008-08-26  Eric Blake  <ebb9@byu.net>
32001
32002         doc/INSTALL: resync from autoconf
32003         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32004         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32005         moving...
32006         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32007         * INSTALL: Regenerate.
32008         * INSTALL.ISO: New file.
32009         * INSTALL.UTF-8: Likewise.
32010
32011 2008-08-26  Jim Meyering  <meyering@redhat.com>
32012
32013         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32014         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32015         these definitions conditional, so that they may be overridden, too.
32016
32017 2008-08-26  Bruno Haible  <bruno@clisp.org>
32018
32019         Generate INSTALL file variants with prettier quotes.
32020         * doc/Makefile (INSTALL_PRELUDE): New macro.
32021         (INSTALL): Use it.
32022         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32023
32024 2008-08-26  Bruno Haible  <bruno@clisp.org>
32025
32026         Run makeinfo in an English locale.
32027         * doc/Makefile (MAKEINFO): New variable.
32028
32029 2008-08-26  Bruno Haible  <bruno@clisp.org>
32030
32031         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32032         Suggested by Eric Blake.
32033
32034 2008-08-25  Bruno Haible  <bruno@clisp.org>
32035
32036         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32037
32038 2008-08-25  Eric Blake  <ebb9@byu.net>
32039
32040         c-stack: test that stack overflow can be caught
32041         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32042         that platform allows handling stack overflow; at least OS/2 EMX
32043         has sigaltstack, but crashes before transferring control to
32044         handler on stack overflow.
32045         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
32046         check for HAVE_STACK_OVERFLOW_HANDLING.
32047         Reported by Elbert Pol.
32048
32049 2008-08-25  Bruno Haible  <bruno@clisp.org>
32050
32051         * doc/posix-functions/strftime.texi: Fix description of strftime
32052         module.
32053
32054 2008-08-24  Bruno Haible  <bruno@clisp.org>
32055
32056         * tests/uniwidth/test-uc_width2.c: New file.
32057         * tests/uniwidth/test-uc_width2.sh: New file.
32058         * modules/uniwidth/width-tests (Files): Add the new files.
32059         (TESTS): Add uniwidth/test-uc_width2.sh.
32060         (TESTS_ENVIRONMENT): New variable.
32061         (check_PROGRAMS): Add test-uc_width2.
32062         (test_uc_width2_SOURCES): New variable.
32063
32064         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32065         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32066         not 0x00AB.
32067         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32068
32069 2008-08-22  Eric Blake  <ebb9@byu.net>
32070
32071         test-lock, test-tls: mention why a test is skipped
32072         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32073         skipped.
32074         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32075
32076         count-one-bits: relax license
32077         * modules/count-one-bits (License): Relicense to LGPLv2+.
32078         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32079
32080 2008-08-22  Andreas Schwab  <schwab@suse.de>
32081
32082         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32083         Remove spurious space in assignment.
32084
32085 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32086
32087         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32088         Paul Eggert <eggert@CS.UCLA.EDU>.
32089
32090 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32091
32092         * modules/gettext: Add m4/threadlib.m4.
32093
32094 2008-08-19  Eric Blake  <ebb9@byu.net>
32095
32096         test-c-stack: fix compilation failure on FreeBSD 5.0
32097         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32098         headers before <sys/resource.h>.
32099         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32100         the bug.
32101         Reported by Nelson H. F. Beebe.
32102
32103         strverscmp: migrate from "strverscmp.h" to <string.h>
32104         * modules/string (Makefile.am): Add new hooks.
32105         * modules/strverscmp (Files): Remove strverscmp.h.
32106         (Depends-on): Add string.
32107         (configure.ac): Add indicator.
32108         (Include): Mention new header.
32109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32110         defaults.
32111         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32112         results.
32113         * lib/strverscmp.h: Delete.
32114         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32115         * tests/test-strverscmp.c (includes): Adjust client.
32116         * lib/check-version.c (includes): Likewise.
32117         * NEWS: Document the change.
32118
32119         strverscmp: add unit test
32120         * modules/strverscmp-tests: New file.
32121         * tests/test-strverscmp.c: Likewise.
32122
32123 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32124
32125         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32126         regarding Windows crypto stuff, from Mono.
32127
32128 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32129
32130         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32131         if present, for intel RND.  Return error on failures.
32132
32133 2008-08-18  Ben Pfaff  <blp@gnu.org>
32134
32135         gitlog-to-changelog: give better diagnostic for failed pipe-open
32136         * build-aux/gitlog-to-changelog: Improve error message: suggest
32137         that the version of Git may be too old.
32138
32139 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32140
32141         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32142         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32143
32144 2008-08-18  Bruno Haible  <bruno@clisp.org>
32145
32146         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32147         pthread_in_use().
32148
32149 2008-08-18  Bruno Haible  <bruno@clisp.org>
32150
32151         * lib/glthread/threadlib.c: Include <pthread.h>.
32152
32153 2008-08-18  Bruno Haible  <bruno@clisp.org>
32154
32155         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32156         glthread_recursive_lock_* macros.
32157         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32158         Fix syntax error.
32159
32160 2008-08-18  Bruno Haible  <bruno@clisp.org>
32161
32162         * lib/glthread/thread.c: Avoid forcing a context switch right after
32163         thread creation.
32164
32165 2008-08-17  Bruno Haible  <bruno@clisp.org>
32166
32167         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32168         * lib/glthread/thread.h: Provide Win32 specific implementation.
32169         * modules/thread (Files): Add lib/glthread/thread.c.
32170         (Depends-on): Add lock.
32171         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32172
32173 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32174
32175         New module 'yield'.
32176         * modules/yield: New file.
32177         * lib/glthread/yield.h: New file.
32178         * m4/yield.m4: New file.
32179         * MODULES.html.sh (Multithreading): Add yield.
32180
32181 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32182
32183         New module 'thread'.
32184         * modules/thread: New file.
32185         * lib/glthread/thread.h: New file.
32186         * m4/thread.m4: New file.
32187         * MODULES.html.sh (Multithreading): Add thread.
32188
32189 2008-08-17  Bruno Haible  <bruno@clisp.org>
32190
32191         * lib/glthread/lock.h: Include <stdlib.h> always.
32192         * lib/glthread/tls.h: Likewise.
32193         * lib/glthread/cond.h: Likewise.
32194
32195 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32196
32197         New module 'cond'.
32198         * modules/cond: New file.
32199         * lib/glthread/cond.h: New file.
32200         * lib/glthread/cond.c: New file.
32201         * m4/cond.m4: New file.
32202         * MODULES.html.sh (Multithreading): Add cond.
32203
32204 2008-08-16  Eric Blake  <ebb9@byu.net>
32205
32206         c-stack: fix regression on Irix 5.3 from 2008-06-21
32207         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32208         sa_sigaction...
32209         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32210         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32211         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32212         * modules/signal (Makefile.am): Use the value.
32213         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32214         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32215         * doc/posix-headers/signal.texi (signal.h): Document this
32216         portability issue.
32217         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32218         Reported by Tom G. Christensen.
32219
32220 2008-08-17  Bruno Haible  <bruno@clisp.org>
32221
32222         New module 'threadlib'.
32223         * modules/threadlib: New file.
32224         * lib/glthread/threadlib.c: New file, extracted from
32225         lib/glthread/lock.c.
32226         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32227         functions.
32228         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32229         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32230         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32231         macros.
32232         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32233         (gl_DISABLE_THREADS): Remove macro.
32234         * modules/lock (Files): Remove build-aux/config.rpath.
32235         (Depends-on): Remove havelib. Add threadlib.
32236         (configure.ac-early): Remove section.
32237         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32238         * modules/tls (Depends-on): Remove lock. Add threadlib.
32239         (Link): New section, copied from threadlib.
32240         * MODULES.html.sh (Multithreading): Add threadlib.
32241
32242 2008-08-14  Bruno Haible  <bruno@clisp.org>
32243
32244         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32245         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32246         glthread_rwlock_unlock, glthread_rwlock_destroy,
32247         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32248         glthread_recursive_lock_destroy): Define as macros always.
32249         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32250         glthread_lock_lock.
32251         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32252         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32253         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32254         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32255         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32256         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32257         (glthread_recursive_lock_lock_func): Renamed from
32258         glthread_recursive_lock_lock.
32259         (glthread_recursive_lock_unlock_func): Renamed from
32260         glthread_recursive_lock_unlock.
32261         (glthread_recursive_lock_destroy_func): Renamed from
32262         glthread_recursive_lock_destroy.
32263
32264 2008-08-14  Bruno Haible  <bruno@clisp.org>
32265
32266         * lib/glthread/lock.h: Renamed from lib/lock.h.
32267         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32268         * lib/glthread/tls.h: Renamed from lib/tls.h.
32269         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32270         * lib/fstrcmp.c: Update includes.
32271         * lib/strsignal.c: Update includes.
32272         * modules/lock (Files, Makefile.am): Update.
32273         (Include): Change to "glthread/lock.h".
32274         * modules/tls (Files, Makefile.am): Update.
32275         (Include): Change to "glthread/tls.h".
32276         * tests/test-lock.c: Update includes.
32277         * tests/test-tls.c: Update includes.
32278         * NEWS: Mention the renamed header files.
32279
32280 2008-08-11  Jim Meyering  <meyering@redhat.com>
32281
32282         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32283
32284 2008-08-11  Eric Blake  <ebb9@byu.net>
32285
32286         test-c-stack: avoid C99-ism
32287         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32288         before statement.
32289         Reported by Alain Guibert.
32290
32291 2008-08-10  Jim Meyering  <meyering@redhat.com>
32292
32293         ensure that return value of uinttostr et al are not ignored
32294         * lib/inttostr.h (__GNUC_PREREQ): Define.
32295         (__attribute_warn_unused_result__): Define.
32296         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32297
32298 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32299
32300         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32301         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32302
32303 2008-08-07  Jim Meyering  <meyering@redhat.com>
32304
32305         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32306
32307         * modules/mkstemp (License): Relicense under LGPLv2+.
32308         * modules/tempname (License): Likewise.
32309
32310 2008-08-06  Bruno Haible  <bruno@clisp.org>
32311
32312         * lib/poll.c (poll): Further micro-optimization.
32313
32314 2008-08-06  Jim Meyering  <meyering@redhat.com>
32315
32316         inet_pton.c: use locale-independent tolower
32317         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32318         (inet_pton6): Use c_tolower rather than tolower.
32319         * modules/inet_pton (Depends-on): Add c-ctype.
32320
32321 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32322
32323         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32324         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32325
32326 2008-08-06  Jim Meyering  <meyering@redhat.com>
32327
32328         * modules/inet_pton (License): Relicense under LGPLv2+.
32329
32330 2008-08-03  Bruno Haible  <bruno@clisp.org>
32331
32332         Additional non-aborting API for lock and tls.
32333         * lib/lock.h: Include <errno.h>.
32334         (glthread_lock_init): New macro/function.
32335         (gl_lock_init): Define as wrapper around glthread_lock_init.
32336         (glthread_lock_lock): New macro/function.
32337         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32338         (glthread_lock_unlock): New macro/function.
32339         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32340         (glthread_lock_destroy): New macro/function.
32341         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32342         (glthread_rwlock_init): New macro/function.
32343         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32344         (glthread_rwlock_rdlock): New macro/function.
32345         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32346         (glthread_rwlock_wrlock): New macro/function.
32347         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32348         (glthread_rwlock_unlock): New macro/function.
32349         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32350         (glthread_rwlock_destroy): New macro/function.
32351         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32352         (glthread_recursive_lock_init): New macro/function.
32353         (gl_recursive_lock_init): Define as wrapper around
32354         glthread_recursive_lock_init.
32355         (glthread_recursive_lock_lock): New macro/function.
32356         (gl_recursive_lock_lock): Define as wrapper around
32357         glthread_recursive_lock_lock.
32358         (glthread_recursive_lock_unlock): New macro/function.
32359         (gl_recursive_lock_unlock): Define as wrapper around
32360         glthread_recursive_lock_unlock.
32361         (glthread_recursive_lock_destroy): New macro/function.
32362         (gl_recursive_lock_destroy): Define as wrapper around
32363         glthread_recursive_lock_destroy.
32364         (glthread_once): New macro/function.
32365         (gl_once): Define as wrapper around glthread_once.
32366         Update function declarations.
32367         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32368         glthread_rwlock_init. Return error code.
32369         (glthread_rwlock_rdlock_multithreaded): Renamed from
32370         glthread_rwlock_rdlock. Return error code.
32371         (glthread_rwlock_wrlock_multithreaded): Renamed from
32372         glthread_rwlock_wrlock. Return error code.
32373         (glthread_rwlock_unlock_multithreaded): Renamed from
32374         glthread_rwlock_unlock. Return error code.
32375         (glthread_rwlock_destroy_multithreaded): Renamed from
32376         glthread_rwlock_destroy. Return error code.
32377         (glthread_recursive_lock_init_multithreaded): Renamed from
32378         glthread_recursive_lock_init. Return error code.
32379         (glthread_recursive_lock_lock_multithreaded): Renamed from
32380         glthread_recursive_lock_lock. Return error code.
32381         (glthread_recursive_lock_unlock_multithreaded): Renamed from
32382         glthread_recursive_lock_unlock. Return error code.
32383         (glthread_recursive_lock_destroy_multithreaded): Renamed from
32384         glthread_recursive_lock_destroy. Return error code.
32385         (glthread_once_call): Make static.
32386         (glthread_once_multithreaded): Renamed from glthread_once.
32387         * lib/tls.h: Include <errno.h>.
32388         (glthread_tls_key_init): New macro/function.
32389         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
32390         (glthread_tls_set): New macro/function.
32391         (gl_tls_set): Define as wrapper around glthread_tls_set.
32392         (glthread_tls_key_destroy): New macro/function.
32393         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
32394         Update function declarations.
32395         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
32396         glthread_tls_get.
32397         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32398
32399 2008-08-04  Eric Blake  <ebb9@byu.net>
32400
32401         gnumakefile: use space, not TAB, outside of targets
32402         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
32403
32404 2008-08-02  Jim Meyering  <meyering@redhat.com>
32405
32406         getdate.y: avoid locale-dependent date parsing failure
32407         In Turkish locales, getdate would fail to recognize keywords
32408         containing a lowercase "i".  The solution is not to rely on
32409         locale-sensitive case-conversion.
32410         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
32411         (lookup_word): Use c_toupper in place of toupper.
32412         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
32413         Reported by Vefa Bicakci <bicave@superonline.com> in
32414         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
32415         * modules/getdate (Depends-on): Add c-ctype.
32416
32417 2008-08-02  Bruno Haible  <bruno@clisp.org>
32418
32419         * gnulib-tool (func_import): When updating or creating a .gitignore
32420         file, prepend each added line with a slash, and ignore leading slashes
32421         from the existing lines.
32422         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32423
32424 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32425
32426         Portability fix for GNU make 3.79.1.
32427         * top/GNUmakefile: Avoid 'else COND', which older GNU make
32428         versions do not understand.
32429
32430 2008-08-01  Bruno Haible  <bruno@clisp.org>
32431
32432         Work around bug of HP-UX 10.20 cc with -0.0 literal.
32433         * tests/test-isnanf.h (zero): New variable.
32434         (main): Avoid literal -0.0f.
32435         * tests/test-isnand.h (zero): New variable.
32436         (main): Avoid literal -0.0.
32437         * tests/test-isnanl.h (zero): New variable.
32438         (main): Avoid literal -0.0L.
32439         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
32440         (test_float, test_double, test_long_double): Avoid literals -0.0f,
32441         -0.0, -0.0L.
32442         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
32443         (test_signbitd): Avoid literal -0.0.
32444         (test_signbitl): Avoid literal -0.0L.
32445         * tests/test-ceilf1.c (zero): New variable.
32446         (main): Avoid literal -0.0f.
32447         * tests/test-ceill.c (zero): New variable.
32448         (main): Avoid literal -0.0L.
32449         * tests/test-floorf1.c (zero): New variable.
32450         (main): Avoid literal -0.0f.
32451         * tests/test-floorl.c (zero): New variable.
32452         (main): Avoid literal -0.0L.
32453         * tests/test-roundf1.c (zero): New variable.
32454         (main): Avoid literal -0.0f.
32455         * tests/test-round1.c (zero): New variable.
32456         (main): Avoid literal -0.0.
32457         * tests/test-roundl.c (zero): New variable.
32458         (main): Avoid literal -0.0L.
32459         * tests/test-truncf1.c (zero): New variable.
32460         (main): Avoid literal -0.0f.
32461         * tests/test-trunc1.c (zero): New variable.
32462         (main): Avoid literal -0.0.
32463         * tests/test-truncl.c (zero): New variable.
32464         (main): Avoid literal -0.0L.
32465         * tests/test-frexp.c (zero): New variable.
32466         (main): Avoid literal -0.0.
32467         * tests/test-frexpl.c (zero): New variable.
32468         (main): Avoid literal -0.0L.
32469         * tests/test-ldexpl.c (zero): New variable.
32470         (main): Avoid literal -0.0L.
32471         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32472         (zerod, zerol): New variables.
32473         (test_function): Avoid literals -0.0, -0.0L.
32474         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32475         (zerod, zerol): New variables.
32476         (test_function): Avoid literals -0.0, -0.0L.
32477         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32478         (zerod, zerol): New variables.
32479         (test_function): Avoid literals -0.0, -0.0L.
32480         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32481         (zerod, zerol): New variables.
32482         (test_function): Avoid literals -0.0, -0.0L.
32483         * tests/test-strtod.c (zero): New variable.
32484         (main): Avoid literal -0.0.
32485         Reported by Jonathan C. Patschke <jp@centtech.com>.
32486
32487 2008-07-31  Jim Meyering  <meyering@redhat.com>
32488
32489         sha256.h: correct definition of SHA224_DIGEST_SIZE
32490         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
32491         Reported by Paulie Pena IV <paulie4@gmail.com>.
32492         Define as 224 / 8, rather than as a literal.
32493         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
32494         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
32495         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
32496
32497 2008-07-31  Bruno Haible  <bruno@clisp.org>
32498
32499         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
32500         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
32501         Reported by Jonathan Patschke <jp@centtech.com>.
32502
32503 2008-07-31  Bruno Haible  <bruno@clisp.org>
32504
32505         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
32506         Reported by Paolo Bonzini <bonzini@gnu.org>.
32507
32508 2008-07-30  Eric Blake  <ebb9@byu.net>
32509
32510         test-strtod: allow compilation without -lm
32511         * tests/test-strtod.c (main): Avoid link dependence on fabs.
32512         Reported by Dennis Clarke <blastwave@gmail.com>.
32513
32514 2008-07-28  Jim Meyering  <meyering@redhat.com>
32515
32516         bootstrap: work also when there are no .po files in po/
32517         * build-aux/bootstrap (update_po_files): Complete the change
32518         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
32519
32520 2008-07-27  Jim Meyering  <meyering@redhat.com>
32521
32522         * users.txt: Add zile.
32523
32524 2008-07-26  Ben Pfaff  <blp@gnu.org>
32525
32526         Add missing dependencies on new m4/exponent[fdl].m4 files.
32527         * modules/isnanf-nolibm: Add m4/exponentf.m4.
32528         * modules/isnand-nolibm: Add m4/exponentd.m4.
32529         * modules/isnanl-nolibm: Add m4/exponentl.m4.
32530         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
32531         m4/isnan[fdl].m4, because the macros actually used moved.
32532         Reported by Jim Meyering.
32533
32534 2008-07-14  Ben Pfaff  <blp@gnu.org>
32535
32536         Add isinf module.
32537         * lib/isinf.c: New file.
32538         * lib/math.in.h: Define isinf macro if we have decided to replace
32539         it.
32540         * m4/isinf.m4: New file.
32541         * m4/math_h.m4: Initialize and substitute variables for isinf
32542         module.
32543         * modules/isinf: New file.
32544         * modules/isinf-tests: New file.
32545         * modules/math: Add substitutions for new module.
32546         * tests/test-isinf.c: New file.
32547         * doc/posix-functions/isinf.texi: Mention new module.
32548         * MODULES.html.sh: Mention new module.
32549
32550 2008-07-14  Ben Pfaff  <blp@gnu.org>
32551
32552         Factor out some macros for use by additional modules.
32553         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
32554         exponentf.m4.
32555         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
32556         exponentd.m4.
32557         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
32558         file exponentl.m4.
32559         * m4/exponentf.m4: New file.
32560         * m4/exponentd.m4: New file.
32561         * m4/exponentl.m4: New file.
32562         * modules/isnanf: Use new file m4/exponentf.m4.
32563         * modules/isnand: Use new file m4/exponentd.m4.
32564         * modules/isnanl: Use new file m4/exponentl.m4.
32565
32566 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
32567
32568         mktime.c: normalize tp->tm_isdst value to -1/0/1.
32569         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
32570         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
32571         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
32572
32573         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
32574         readlink on platforms without PATH_MAX.
32575
32576 2008-07-21  Eric Blake  <ebb9@byu.net>
32577
32578         Warn, not fail, on stale version.
32579         * top/GNUmakefile (_curr-ver): Tone down previous patch.
32580
32581         Don't allow installation with stale devel version number.
32582         * top/GNUmakefile (_is-install-target): New macro.
32583         (_curr-ver): Forbid installation with stale version number.
32584
32585 2008-07-20  Bruno Haible  <bruno@clisp.org>
32586
32587         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
32588         TESTS_ENVIRONMENT.
32589         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
32590
32591 2008-07-20  Bruno Haible  <bruno@clisp.org>
32592
32593         * lib/c-stack.h (c_stack_action): Add documentation.
32594         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
32595
32596 2008-07-20  Bruno Haible  <bruno@clisp.org>
32597
32598         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
32599         * modules/readlink (License): Likewise.
32600
32601 2008-07-17  Eric Blake  <ebb9@byu.net>
32602
32603         * modules/c-stack (Link): Fix typo.
32604
32605         Make c-stack use libsigsegv, when available.
32606         * modules/c-stack (Depends-on): Add libsigsegv.
32607         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
32608         needed.
32609         * lib/c-stack.c (SIGSTKSZ): Define fallback.
32610         (segv_handler, overflow_handler, c_stack_action)
32611         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
32612         implementation when libsigsegv is available, but only when using
32613         the library is necessary.
32614         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
32615         comment, explaining why XSI check fails on Linux.
32616         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
32617         * tests/test-c-stack2.sh: Tweak skip message.
32618         * NEWS: Document new link-time requirements.
32619
32620 2008-07-16  Eric Blake  <ebb9@byu.net>
32621
32622         c-stack: Expose false positives when not using libsigsegv.
32623         * modules/c-stack-tests (Files): Expand test.
32624         * tests/test-c-stack.c (main): Add means to conditionally trigger
32625         non-overflow SIGSEGV.
32626         * tests/test-c-stack2.sh: New file.
32627
32628 2008-07-14  Bruno Haible  <bruno@clisp.org>
32629
32630         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
32631         Reported by Eric Blake.
32632
32633 2008-07-14  Sam Steingold  <sds@gnu.org>
32634             Bruno Haible  <bruno@clisp.org>
32635
32636         New module libsigsegv.
32637         * modules/libsigsegv: New file.
32638         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
32639         modifications.
32640         * MODULES.html.sh (Signal handling): New section.
32641
32642 2008-07-14  Bruno Haible  <bruno@clisp.org>
32643
32644         * modules/unictype/ctype-* (Description): Add the word "function".
32645         Improves the resulting doc in MODULES.html.
32646
32647 2008-07-12  Ben Pfaff  <blp@gnu.org>
32648
32649         Add longlong module.
32650         * modules/longlong: New file.
32651
32652 2008-07-12  Bruno Haible  <bruno@clisp.org>
32653
32654         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
32655         to empty.
32656
32657 2008-07-10  Ben Pfaff  <blp@gnu.org>
32658
32659         Add isnan module.
32660         * doc/posix-functions/isnan.texi: Mention new module.
32661         * lib/math.in.h: Define isnan macro if we have decided to replace
32662         it.
32663         * m4/isnan.m4: New file.
32664         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
32665         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
32666         also.
32667         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
32668         redundancy.
32669         * m4/math_h.m4: Initialize and substitute variables for isnan
32670         module.
32671         * modules/isnan: New file.
32672         * modules/isnan-tests: New file.
32673         * modules/math: Add substitutions for new module.
32674         * tests/test-isnan.c: New file.
32675         * MODULES.html.sh: Mention new module.
32676
32677 2008-07-10  Ben Pfaff  <blp@gnu.org>
32678
32679         Add isnanf module.
32680         * lib/isnanf.m4: New file.
32681         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
32682         (gl_HAVE_ISNANF_IN_LIBM): New macro.
32683         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
32684         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
32685         * modules/isnanf: New file.
32686         * modules/isnanf-tests: New file.
32687         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
32688         files.
32689         * tests/test-isnanf-nolibm.c: factored most of its contents into
32690         new file tests/test-isnanf.h.
32691         * tests/test-isnanf.h: New file.
32692         * tests/test-isnanf.c: New file.
32693         * MODULES.html.sh: Mention new module.
32694         * doc/glibc-functions/isnanf.texi: Mention new module.
32695
32696 2008-07-10  Ben Pfaff  <blp@gnu.org>
32697
32698         Add isnand module.
32699         * lib/isnand.h: New file.
32700         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
32701         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
32702         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
32703         functionality also.
32704         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
32705         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
32706         (gl_HAVE_ISNAND_IN_LIBM): New macro.
32707         * modules/isnand: New file.
32708         * modules/isnand-tests: New file.
32709         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
32710         files.
32711         * tests/test-isnand-nolibm.c: factored most of its contents into
32712         new file tests/test-isnand.h.
32713         * tests/test-isnand.h: New file.
32714         * tests/test-isnand.c: New file.
32715         * MODULES.html.sh: Mention new module.
32716
32717 2008-07-10  Ben Pfaff  <blp@gnu.org>
32718
32719         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
32720         * lib/isnand.h: Rename lib/isnand-nolibm.h.
32721         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
32722         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
32723         * modules/isnanf-nolibm: Update references to renamed files.
32724         * modules/isnand-nolibm: Likewise.
32725         * modules/isnanf-nolibm-tests: Likewise.
32726         * modules/isnand-nolibm-tests: Likewise.
32727         * lib/frexp.c: Likewise.
32728         * lib/isfinite.c: Likewise.
32729         * lib/signbitd.c: Likewise.
32730         * lib/signbitf.c: Likewise.
32731         * lib/vasnprintf.c: Likewise.
32732         * tests/test-ceilf1.c: Likewise.
32733         * tests/test-ceilf2.c: Likewise.
32734         * tests/test-floorf1.c: Likewise.
32735         * tests/test-floorf2.c: Likewise.
32736         * tests/test-frexp.c: Likewise.
32737         * tests/test-round1.c: Likewise.
32738         * tests/test-round2.c: Likewise.
32739         * tests/test-roundf1.c: Likewise.
32740         * tests/test-strtod.c: Likewise.
32741         * tests/test-trunc1.c: Likewise.
32742         * tests/test-trunc2.c: Likewise.
32743         * tests/test-truncf1.c: Likewise.
32744         * tests/test-truncf2.c: Likewise.
32745         * NEWS: Mention the renamed header files.
32746
32747 2008-07-11  Jim Meyering  <meyering@redhat.com>
32748
32749         vc-list-files: make the last-resort awk code more portable
32750         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
32751         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
32752         does not support it.
32753
32754 2008-07-10  Eric Blake  <ebb9@byu.net>
32755
32756         Work with tar's bootstrap.
32757         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
32758         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
32759         an m4 comment.
32760
32761 2008-07-09  Jim Meyering  <meyering@redhat.com>
32762
32763         posix-shell.m4: fix typo that made this test malfunction
32764         * m4/posix-shell.m4: Remove capitalization in variable name.
32765
32766 2008-07-08  Bruno Haible  <bruno@clisp.org>
32767
32768         * m4/onceonly.m4: Update comments.
32769         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32770
32771 2008-07-04  Jim Meyering  <meyering@redhat.com>
32772
32773         * users.txt: Add vc-dwim.
32774         (bison, coreutils): Use the gitweb URL.
32775
32776 2008-07-03  Jim Meyering  <meyering@redhat.com>
32777
32778         * users.txt: Add libffcall.  From Sam Steingold.
32779
32780 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
32781
32782         getdate.y: do not ignore TZ with relative day, month or year offset
32783         * lib/getdate.y (get_date): Move the tz-handling block to follow the
32784         relative-date-handling, since otherwise, the latter would clobber the
32785         sole output (an updated Start value) of the tz-handling block.
32786         * tests/test-getdate.c: Tests for the fix
32787
32788 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32789
32790         Recognize 'foo_LIBRARIES += libgnu.a'.
32791         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
32792         makefile snippet has already specified an installation location,
32793         also using '+='.
32794
32795 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
32796
32797         getdate.y: factor out common actions
32798         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
32799         Use them in place of open-coded actions.
32800
32801 2008-07-01  Simon Josefsson  <simon@josefsson.org>
32802
32803         Add self-test for getdate module.
32804         * modules/getdate-tests: New file.
32805         * tests/test-getdate.c: New file.
32806
32807 2008-06-29  Bruno Haible  <bruno@clisp.org>
32808
32809         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
32810         .gitignore.
32811         Reported by Sylvain Beucler <beuc@beuc.net>.
32812
32813 2008-06-29  Bruno Haible  <bruno@clisp.org>
32814
32815         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
32816         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
32817
32818 2008-06-29  Bruno Haible  <bruno@clisp.org>
32819
32820         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
32821         EXTRA_DIST.
32822         Reported by Sylvain Beucler <beuc@beuc.net>.
32823
32824 2008-06-26  Jim Meyering  <meyering@redhat.com>
32825
32826         make several modules depend on the "open" module
32827         This provides slightly increased consistency when opening-for-write
32828         the name of a non-directory spelled with a trailing slash.
32829         * modules/chdir-safer: Likewise.
32830         * modules/chown: Likewise.
32831         * modules/clean-temp: Likewise.
32832         * modules/copy-file: Likewise.
32833         * modules/fchdir: Likewise.
32834         * modules/fcntl-safer: Likewise.
32835         * modules/pipe: Likewise.
32836         * modules/utime: Likewise.
32837         Prompted by Eric Blake and Bruno Haible.
32838
32839 2008-06-24  Andreas Schwab  <schwab@suse.de>
32840
32841         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
32842         literals can be used as initializers for global variables.
32843
32844 2008-06-23  Eric Blake  <ebb9@byu.net>
32845
32846         Make gnulib-cache.m4 easier to diff.
32847         * gnulib-tool (func_import): Allow newlines when reading cached
32848         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
32849
32850 2008-06-23  Bruno Haible  <bruno@clisp.org>
32851
32852         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
32853         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
32854         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
32855         m4/signalblocking.m4.
32856         (gl_PREREQ_SIGACTION): Don't invoke it.
32857         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
32858         gl_PREREQ_SIG_HANDLER_H.
32859         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32860         Don't check for sigaction here.
32861
32862 2008-06-23  Bruno Haible  <bruno@clisp.org>
32863
32864         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
32865         (install_handlers): Don't set the SA_RESETHAND flag.
32866
32867 2008-06-23  Bruno Haible  <bruno@clisp.org>
32868
32869         * m4/sigaction.m4: Comment fixes.
32870         * lib/signal.in.h: Likewise.
32871
32872 2008-06-23  Eric Blake  <ebb9@byu.net>
32873
32874         Fix typo.
32875         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
32876
32877         Avoid SA_ namespace.
32878         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
32879         Reported by Ralf Wildenhues.
32880
32881         Avoid test failure due to SA_RESTORER.
32882         * tests/test-sigaction.c (SA_MASK): New macro.
32883         (main): Avoid failing due to extension flags being set.
32884         Reported by Jim Meyering.
32885
32886         Revert use of sig-handler.h in sigprocmask.c.
32887         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
32888         it requires the existence of struct sigaction.
32889         * lib/sigprocmask.c (handler_t): Restore typedef.
32890         (rpl_signal, old_handlers): Use local type.
32891
32892 2008-06-22  Bruno Haible  <bruno@clisp.org>
32893
32894         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
32895         conditionally.
32896         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32897
32898 2008-06-22  Bruno Haible  <bruno@clisp.org>
32899
32900         * doc/posix-functions/siginterrupt.texi: Move note.
32901
32902         * lib/signal.in.h (SA_RESTART): New macro.
32903         * lib/sigaction.c: Update comment.
32904
32905         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
32906
32907         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
32908         (gl_PREREQ_SIGPROCMASK): Invoke it.
32909         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
32910
32911         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
32912
32913         * lib/sigprocmask.c: Update a comment.
32914
32915 2008-06-21  Eric Blake  <ebb9@byu.net>
32916
32917         Use sigaction module rather than signal().
32918         * modules/c-stack (Depends-on): Add sigaction.
32919         * modules/fatal-signal (Depends-on): Likewise.
32920         * modules/nanosleep (Depends-on): Likewise.
32921         * modules/sigprocmask (Files): Add sig-handler.h.
32922         * modules/sigaction (Files): Likewise.
32923         * lib/sig-handler.h (get_handler): New file, suggested by Paul
32924         Eggert.
32925         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
32926         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
32927         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
32928         (init_fatal_signals): Likewise.
32929         * lib/nanosleep.c (rpl_nanosleep): Likewise.
32930         (siginterrupt): Delete fallback.
32931         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
32932         instead.
32933         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
32934         siginterrupt.
32935
32936         New module sigaction, for mingw.
32937         * modules/sigaction: New module...
32938         * modules/sigaction-tests: ...and its test.
32939         * m4/sigaction.m4: New file.
32940         * lib/sigaction.c: Likewise.
32941         * tests/test-sigaction.c: Likewise.
32942         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
32943         * modules/signal (Makefile.am): Likewise.
32944         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
32945         needed.
32946         * doc/posix-headers/signal.texi (signal.h): Mention provided
32947         types.
32948         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
32949         that sigaction is preferable.
32950         * doc/posix-functions/sigaction.texi (sigaction): Mention new
32951         module.
32952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32953         sigaction.
32954
32955         Improve robustness of sigprocmask by overriding signal.
32956         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
32957         is in use.
32958         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
32959         (SIGKILL, SIGSTOP): Provide fallbacks.
32960         (rpl_signal): Implement.
32961         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
32962         signal can be called inside handlers.
32963
32964         Fix nanosleep module on mingw.
32965         * modules/nanosleep (Depends-on): Add sys_select.
32966         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
32967
32968         Fix licensing of sigprocmask.
32969         * modules/raise (License): Relicense as LGPL.
32970
32971 2008-06-21  Bruno Haible  <bruno@clisp.org>
32972
32973         * lib/propername.c (proper_name_utf8): Don't use the transliterated
32974         result if it contains question marks.
32975         Reported by Michael Geng <linux@michaelgeng.de>.
32976
32977 2008-06-19  Bruno Haible  <bruno@clisp.org>
32978
32979         Fix CVS-ism.
32980         * doc/gnulib.texi: Include updated-stamp.texi.
32981         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
32982         (updated-stamp.texi): New rule.
32983         (gnulib.info): Depend on it.
32984         * doc/.gitignore: Add updated-stamp.texi.
32985         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
32986
32987 2008-06-19  Bruno Haible  <bruno@clisp.org>
32988
32989         * doc/Makefile (gnulib.info): Update and simplify dependencies.
32990         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32991
32992 2008-06-19  Eric Blake  <ebb9@byu.net>
32993
32994         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
32995         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
32996         Reported by Stepan Kasal.
32997
32998 2008-06-18  Bruno Haible  <bruno@clisp.org>
32999
33000         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33001         Reported by Eric Blake.
33002
33003 2008-06-18  Eric Blake  <ebb9@byu.net>
33004
33005         Work around cygwin 1.5.25 strsignal bug.
33006         * tests/test-strsignal.c: Allow for const char *.
33007         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33008
33009 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33010
33011         * users.txt: Update URL to article and add author/date
33012         information.
33013
33014 2008-06-17  Bruno Haible  <bruno@clisp.org>
33015
33016         New macro gl_DISABLE_THREADS.
33017         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33018         if the user did not pass --enable-threads or --disable-threads option.
33019         (gl_DISABLE_THREADS): New macro.
33020         Reported by Eric Blake <ebb9@byu.net>.
33021
33022 2008-06-17  Bruno Haible  <bruno@clisp.org>
33023
33024         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33025         when the macro ignores it.
33026         Based on a patch by Eric Blake <ebb9@byu.net>.
33027
33028 2008-06-17  Bruno Haible  <bruno@clisp.org>
33029
33030         * modules/tls (License): Change to LGPLv2+.
33031         Reported by Eric Blake.
33032
33033 2008-06-17  Eric Blake  <ebb9@byu.net>
33034
33035         Simplify c-stack prerequisites.
33036         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33037         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33038         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33039         check.
33040         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33041         <sys/resource.h>.
33042
33043         Move c-stack test into testsuite.
33044         * modules/c-stack-tests: New file.
33045         * lib/c-stack.c [DEBUG]: Move test program...
33046         * tests/test-c-stack.c: ...into this new file.  Skip rather than
33047         fail test if sigaltstack is lacking.
33048         * tests/test-c-stack.sh: New driver file.
33049
33050 2008-06-16  Eric Blake  <ebb9@byu.net>
33051
33052         Use raise module consistently.
33053         * modules/fatal-signal (Depends-on): Add raise.
33054         * modules/sigprocmask (Depends-on): Likewise.
33055         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
33056         * lib/sigprocmask.c (sigprocmask): Likewise.
33057         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33058         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
33059
33060         Fix compliance bug in sigpending.
33061         * lib/sigprocmask.c (sigpending): Return pending array via
33062         parameter, not return value.
33063
33064 2008-06-14  Eric Blake  <ebb9@byu.net>
33065
33066         Improve obstack-printf test code.
33067         * tests/test-obstack-printf.c (test_function): Fix comment, and
33068         simplify usage of obstack_* in macros.  Add a test for coverage.
33069         Reported by Bruno Haible.
33070
33071 2008-06-14  Bruno Haible  <bruno@clisp.org>
33072
33073         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33074         array size as a constant, not as a const variable.
33075         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33076         AC_USE_SYSTEM_EXTENSIONS.
33077         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33078         Test whether the obstack_printf function actually exists.
33079         * modules/obstack-printf (Depends-on): Add extensions.
33080         (Include): Remove obstack.h.
33081         * modules/obstack-printf-posix (Depends-on): Add extensions.
33082         (Include): Remove obstack.h.
33083
33084 2008-06-13  Eric Blake  <ebb9@byu.net>
33085
33086         Add obstack-printf and obstack-printf-posix modules.
33087         * modules/obstack-printf: New file.
33088         * modules/obstack-printf-posix: Likewise.
33089         * MODULES.html.sh (Misc): Mention them.
33090         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33091         Likewise.
33092         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33093         Likewise.
33094         * modules/stdio (Makefile.am): Accomodate new modules.
33095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33096         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33097         Declare.
33098         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33099         functions.
33100         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33101         (gl_REPLACE_OBSTACK_PRINTF): New macros
33102         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33103         * tests/test-obstack-printf.c: New file.
33104         * modules/obstack-printf-tests: Likewise.
33105         * modules/obstack-printf-posix-tests: Likewise.
33106
33107 2008-06-11  Bruno Haible  <bruno@clisp.org>
33108
33109         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33110         * lib/open.c: Include errno.h.
33111         (open): Fail when attempting to write to a file that has a trailing
33112         slash.
33113         * tests/test-open.c (main): Test against trailing slash bug.
33114         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33115
33116 2008-06-10  Bruno Haible  <bruno@clisp.org>
33117
33118         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33119         for $? to work inside the trap command, with various /bin/sh-s.
33120         * tests/test-vc-list-files-cvs.sh: Likewise.
33121
33122 2008-06-10  Bruno Haible  <bruno@clisp.org>
33123
33124         * lib/acl-internal.h: Don't include gettext.h here.
33125         * lib/set-mode-acl.c: Include gettext.h here.
33126         * lib/copy-acl.c: Likewise.
33127
33128 2008-06-10  Bruno Haible  <bruno@clisp.org>
33129
33130         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33131         * lib/wait-process.c (wait_subprocess): Likewise.
33132         * lib/execute.h (execute): Add termsigp argument.
33133         * lib/execute.c (execute): Likewise.
33134         * lib/csharpcomp.c (compile_csharp_using_pnet,
33135         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33136         * lib/csharpexec.c (execute_csharp_using_pnet,
33137         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33138         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33139         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33140         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33141         is_jikes_present): Update.
33142         * lib/javaexec.c (execute_java_class): Update.
33143         * lib/javaversion.c (execute_and_read_line): Update.
33144         * NEWS: Document the changes.
33145         Reported by Eric Blake.
33146
33147 2008-06-10  Eric Blake  <ebb9@byu.net>
33148
33149         Add missing include.
33150         * tests/test-strstr.c (includes): Add <signal.h>.
33151         * tests/test-strcasestr.c (includes): Likewise.
33152         * tests/test-memmem.c (includes): Likewise.
33153
33154 2008-06-10  Bruno Haible  <bruno@clisp.org>
33155
33156         * lib/wait-process.c (wait_subprocess): Add an assertion.
33157
33158 2008-06-10  Bruno Haible  <bruno@clisp.org>
33159
33160         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33161
33162 2008-06-10  Bruno Haible  <bruno@clisp.org>
33163
33164         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33165         using alarm().
33166         * tests/test-strcasestr.c (main): Likewise.
33167         * tests/test-strstr.c (main): Likewise.
33168
33169 2008-06-09  Bruno Haible  <bruno@clisp.org>
33170
33171         Work around the Solaris 10 ACE ACLs ABI change.
33172         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33173         declare if ACL_NO_TRIVIAL is present.
33174         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33175         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33176         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33177         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33178         define if ACL_NO_TRIVIAL is present.
33179         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33180         and use the current ABI.
33181         (file_has_acl): Use same #if condition as elsewhere.
33182         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33183         in use, and use the current ABI.
33184         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33185         Reported by Jim Meyering.
33186
33187 2008-06-09  Eric Blake  <ebb9@byu.net>
33188
33189         Work around environments that (stupidly) ignore SIGALRM.
33190         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33191         before using alarm().
33192         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33193         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33194         Reported by Ian Beckwith <ianb@erislabs.net>.
33195
33196         Produce autobuild blurb earlier in log.
33197         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33198
33199 2008-06-09  Jim Meyering  <meyering@redhat.com>
33200         and OndÅ™ej Vašík  <ovasik@redhat.com>
33201
33202         utimens.c: correct kernel bug work-around
33203         OndÅ™ej Vašík found that the invalid return value of 280 indicates
33204         failure, not success, and the kernel bug we're trying to work
33205         around affects not just the utimensat call, but also the fallback
33206         futimens call.
33207         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33208         not success.
33209         [HAVE_FUTIMENS]: Use the same work-around, here.
33210
33211 2008-06-09  Jim Meyering  <meyering@redhat.com>
33212
33213         add more guards around definition of ACE_-related code
33214         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33215         ALLOW and ACE_OWNER are also defined.
33216
33217 2008-06-08  Bruno Haible  <bruno@clisp.org>
33218
33219         * lib/acl-internal.h: Add me as co-author.
33220         * lib/file-has-acl.c: Likewise.
33221         * lib/set-mode-acl.c: Likewise.
33222         * lib/copy-acl.c: Likewise.
33223
33224 2008-06-08  Bruno Haible  <bruno@clisp.org>
33225
33226         Add support for AIX ACLs.
33227         * lib/acl-internal.h (acl_nontrivial): New declaration.
33228         * lib/file-has-acl.c (acl_nontrivial): New function.
33229         (file_has_acl): Add implementation using AIX 4 ACL API.
33230         * lib/set-mode-acl.c (qset_acl): Likewise.
33231         * lib/copy-acl.c (qcopy_acl): Likewise.
33232
33233 2008-06-08  Bruno Haible  <bruno@clisp.org>
33234
33235         Add support for HP-UX ACLs.
33236         * lib/acl-internal.h (acl_nontrivial): New declaration.
33237         * lib/file-has-acl.c (acl_nontrivial): New function.
33238         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33239         * lib/set-mode-acl.c (qset_acl): Likewise.
33240         * lib/copy-acl.c (qcopy_acl): Likewise.
33241
33242 2008-06-08  Bruno Haible  <bruno@clisp.org>
33243
33244         Add support for Cygwin ACLs.
33245         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33246         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33247         the chmod_or_fchmod call.
33248         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33249
33250 2008-06-08  Bruno Haible  <bruno@clisp.org>
33251
33252         Fix bug with setuid modes in Solaris 10+ code.
33253         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33254         succeeded, when the mode contains some special bits.
33255
33256 2008-06-08  Bruno Haible  <bruno@clisp.org>
33257
33258         Add support for Solaris 7..10 ACLs.
33259         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33260         declarations.
33261         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33262         functions.
33263         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33264         * lib/set-mode-acl.c (qset_acl): Likewise.
33265         * lib/copy-acl.c (qcopy_acl): Likewise.
33266
33267 2008-06-08  Bruno Haible  <bruno@clisp.org>
33268
33269         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33270         declaration.
33271         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33272         (acl_access_nontrivial): Remove MacOS X case.
33273         (file_has_acl): Use acl_extended_nontrivial.
33274         * lib/copy-acl.c (qcopy_acl): Likewise.
33275
33276 2008-06-08  Bruno Haible  <bruno@clisp.org>
33277
33278         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33279
33280 2008-06-08  Jim Meyering  <meyering@redhat.com>
33281
33282         * modules/acl (Maintainer): Add Bruno Haible.
33283
33284 2008-06-07  Bruno Haible  <bruno@clisp.org>
33285
33286         Improve support for Tru64 ACLs.
33287         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33288         ACL on OSF/1.
33289
33290 2008-06-07  Bruno Haible  <bruno@clisp.org>
33291
33292         Add support for MacOS X ACLs.
33293         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33294         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33295         * lib/set-mode-acl.c (qset_acl): Likewise.
33296         * lib/copy-acl.c (qcopy_acl): Likewise.
33297
33298 2008-06-07  Bruno Haible  <bruno@clisp.org>
33299
33300         Fix memory leak introduced on 2008-05-22.
33301         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33302         use.
33303
33304 2008-06-07  Bruno Haible  <bruno@clisp.org>
33305
33306         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33307         to construct an empty ACL.
33308
33309 2008-06-07  Bruno Haible  <bruno@clisp.org>
33310
33311         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33312         precisely.
33313         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33314
33315 2008-06-07  Bruno Haible  <bruno@clisp.org>
33316
33317         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33318         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33319
33320 2008-06-07  Bruno Haible  <bruno@clisp.org>
33321
33322         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33323         regardless of POSIX.
33324         * doc/posix-functions/_longjmp.texi: Likewise.
33325         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33326         SystemV platform in this case.
33327
33328 2008-06-06  Eric Blake  <ebb9@byu.net>
33329
33330         Document abort() bugs.
33331         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33332
33333         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33334         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33335         sigsetjmp.
33336         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33337         siglongjmp, but only as a macro.
33338         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33339         is obsolete.
33340         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33341
33342         Tweak documentation to cover cygwin argz bugs.
33343         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33344         argz bug fix; no code change needed since no cygwin releases
33345         occurred between the last fix and the bug being tested.
33346         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33347         module and recently fixed cygwin bugs.
33348         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33349         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33350         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33351         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33352         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33353         Likewise.
33354         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33355         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33356         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33357         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33358         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33359         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33360         Likewise.
33361
33362         Avoid gcc warning on cygwin.
33363         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33364         !ACL_NO_TRIVIAL]: Avoid unused variable.
33365
33366 2008-06-05  Eric Blake  <ebb9@byu.net>
33367
33368         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33369         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33370         git-version-gen fails to come up with a version.
33371         Reported by Simon Josefsson.
33372
33373 2008-06-05  Jim Meyering  <meyering@redhat.com>
33374             Paul Eggert  <eggert@cs.ucla.edu>
33375
33376         utimens.c: work around a probable Linux kernel bug
33377         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33378         appears to be a kernel bug that causes utimensat to return 280
33379         instead of 0, indicating success.
33380
33381 2008-06-04  Bruno Haible  <bruno@clisp.org>
33382
33383         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
33384         2008-06-01 commit.
33385
33386 2008-06-04  Bruno Haible  <bruno@clisp.org>
33387
33388         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
33389         * lib/file-has-acl.c (acl_access_nontrivial): New function.
33390         (file_has_acl): Use it. Save errno afterwards.
33391         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
33392
33393 2008-06-03  Bruno Haible  <bruno@clisp.org>
33394
33395         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
33396         draft code. Simplify #ifs.
33397         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
33398         Put Solaris code after POSIX-draft code. Fix comments regarding
33399         Solaris 10, HP-UX. Mention Cygwin.
33400         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
33401
33402 2008-06-03  Eric Blake  <ebb9@byu.net>
33403
33404         Provide fallback for older kernels.
33405         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
33406         Provide runtime fallback if kernel lacks support.
33407         Reported by Mike Frysinger.
33408
33409 2008-06-02  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
33412         it exists.
33413
33414 2008-06-02  Bruno Haible  <bruno@clisp.org>
33415
33416         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
33417         * lib/copy-acl.c (qcopy_acl): Update comment.
33418
33419 2008-06-02  Bruno Haible  <bruno@clisp.org>
33420
33421         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
33422         like ACL APIs.
33423
33424 2008-06-02  Bruno Haible  <bruno@clisp.org>
33425
33426         * tests/test-file-has-acl.sh: Use different code for Cygwin.
33427         * tests/test-set-mode-acl.sh: Likewise.
33428         * tests/test-copy-acl.sh: Likewise.
33429         * tests/test-copy-file.sh: Likewise.
33430
33431 2008-06-02  Bruno Haible  <bruno@clisp.org>
33432
33433         * tests/test-file-has-acl.sh: Remove unused code.
33434
33435 2008-06-01  Bruno Haible  <bruno@clisp.org>
33436
33437         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
33438         (copy_acl): Just a wrapper around qcopy_acl that emits the error
33439         messages.
33440         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33441
33442 2008-06-01  Bruno Haible  <bruno@clisp.org>
33443
33444         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
33445         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
33446         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
33447         APIs.
33448         * modules/acl-tests (configure.ac): Remove tests now contained in
33449         m4/acl.m4.
33450
33451 2008-06-02  Jim Meyering  <meyering@redhat.com>
33452
33453         announce-gen: use a better key-server host name
33454         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33455         it may be more consistently reliable.  Suggested by Werner Koch
33456         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
33457
33458 2008-06-01  Bruno Haible  <bruno@clisp.org>
33459
33460         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
33461         Reported by Voroskoi Andras <voroskoi@gmail.com>.
33462
33463 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
33464
33465         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
33466
33467 2008-06-01  Bruno Haible  <bruno@clisp.org>
33468
33469         New ACL tests.
33470         * tests/test-file-has-acl.sh: New file.
33471         * tests/test-file-has-acl.c: New file.
33472         * tests/test-set-mode-acl.sh: New file.
33473         * tests/test-set-mode-acl.c: New file.
33474         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
33475         * tests/test-copy-acl.c: New file.
33476         * modules/acl-tests: New file, based on modules/copy-file-tests.
33477         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
33478         (Depends-on): Add acl-tests.
33479         (configure.ac): Remove checks.
33480         (Makefile.am): Don't create test-sameacls program here any more.
33481
33482 2008-06-01  Bruno Haible  <bruno@clisp.org>
33483
33484         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
33485         * tests/test-sameacls.c: Include progname.h.
33486         (main): Invoke set_program_name. Portability fixes for MacOS X,
33487         Solaris, HP-UX.
33488
33489 2008-06-01  Bruno Haible  <bruno@clisp.org>
33490
33491         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
33492         function.
33493         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
33494
33495 2008-06-01  Bruno Haible  <bruno@clisp.org>
33496
33497         * modules/rpmatch (Depends-on): Add strdup.
33498
33499 2008-06-01  Bruno Haible  <bruno@clisp.org>
33500
33501         * lib/pipe.c: Include unistd-safer.h.
33502         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
33503         * modules/pipe (Depends-on): Add unistd-safer.
33504
33505 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33506
33507         * modules/autobuild (configure.ac): Call AB_INIT.
33508
33509 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33510
33511         * tests/test-getaddrinfo.c: Don't print debug messages by default.
33512         Suggested by Bruno Haible <bruno@clisp.org>.
33513
33514 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33515
33516         * tests/test-base64.c: Cast size_t to unsigned long when invoking
33517         printf.  Use %lu instead of %d.  Reported by Bruno Haible
33518         <bruno@clisp.org>.
33519
33520 2008-05-29  Eric Blake  <ebb9@byu.net>
33521
33522         Prefer new POSIX 200x interfaces over futimesat.
33523         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
33524         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
33525         when available.
33526         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
33527
33528 2008-05-28  Bruno Haible  <bruno@clisp.org>
33529
33530         * modules/stpcpy (License): Change to LGPLv2+.
33531         Requested by David Lutterkort <dlutter@redhat.com>.
33532
33533 2008-05-27  Bruno Haible  <bruno@clisp.org>
33534
33535         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
33536         current mingw.
33537         Reported by Jose E. Marchesi <jemarch@gnu.org>.
33538
33539 2008-05-27  Bruno Haible  <bruno@clisp.org>
33540
33541         * modules/iconv_open (Link): New section, from module 'iconv'.
33542         * modules/striconv (Link): Likewise.
33543         * modules/striconveh (Link): Likewise.
33544         * modules/xstriconv (Link): Likewise.
33545         * modules/unicodeio (Link): Likewise.
33546         * modules/propername (Link): Likewise.
33547         Reported by Jim Meyering.
33548
33549 2008-05-26  Jim Meyering  <meyering@redhat.com>
33550
33551         sha256: do not artificially restrict buffer length to be < 2^32
33552         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
33553         uint32_t to size_t.
33554         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
33555         to match.
33556
33557         avoid unaligned access errors, e.g., on sparc
33558         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
33559         direct access through a possibly-unaligned uint64* pointer.
33560         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
33561         direct access through a possibly-unaligned uint32* pointer.
33562         Prompted by this patch from Tom "spot" Callaway:
33563         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
33564
33565         sha512.c: fix typo in comment
33566         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
33567
33568 2008-05-25  Bruno Haible  <bruno@clisp.org>
33569
33570         * lib/set-mode-acl.c: Renamed from lib/acl.c.
33571         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
33572         (Makefile.am): Update lib_SOURCES.
33573
33574 2008-05-25  Bruno Haible  <bruno@clisp.org>
33575
33576         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
33577
33578 2008-05-25  Jim Meyering  <meyering@redhat.com>
33579
33580         useless-if-before-free: freed expr may have white-space differences
33581         * build-aux/useless-if-before-free: Recognize cases in which the
33582         freed expression differs from the tested one in embedded white
33583         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
33584         $1 was used, so we can't make any regexp shy.  Improved tests now
33585         detect this.
33586
33587         useless-if-before-free: accept white space in the expression.
33588         * build-aux/useless-if-before-free: For now, any white space
33589         in the expression must be identical in the free argument.
33590
33591         useless-if-before-free: efficiency tweak
33592         * build-aux/useless-if-before-free: Make the expression-matching
33593         regexp "shy".
33594         Make the *outer* regexp shy, not the expr-matching one.
33595
33596         update code-in-comment to accept cast of free arg
33597         * build-aux/useless-if-before-free: Update regexp.
33598
33599 2008-05-25  Bruno Haible  <bruno@clisp.org>
33600
33601         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
33602         * modules/copy-file-tests (Files, Makefile.am): Update.
33603         * tests/test-copy-file.c (func_test_copy): Update.
33604
33605 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
33606
33607         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
33608
33609 2008-05-23  Bruno Haible  <bruno@clisp.org>
33610
33611         Improve support for ACLs on OSF/1.
33612         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
33613         Remove fallback for unknown flavors of ACLs.
33614
33615 2008-05-22  Bruno Haible  <bruno@clisp.org>
33616
33617         Add support for ACLs on OSF/1.
33618         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
33619         replacements.
33620         (acl_free_text): New macro fallback.
33621         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
33622         acl_free.
33623         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
33624         acl_free_text function. Require AC_C_INLINE.
33625
33626 2008-05-22  Bruno Haible  <bruno@clisp.org>
33627
33628         Make copy_acl work on MacOS X 10.5.
33629         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
33630         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
33631         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
33632         If MODE_INSIDE_ACL, don't assume that every system has the same text
33633         representation for ACLs as FreeBSD.
33634         * lib/copy-acl.c (copy_acl): Add support for platforms with
33635         !MODE_INSIDE_ACL.
33636         * lib/file-has-acl.c (file_has_acl): Likewise.
33637         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
33638         FreeBSD, MacOS X, or IRIX, respectively.
33639
33640 2008-05-22  Bruno Haible  <bruno@clisp.org>
33641
33642         * lib/acl.h: Don't include <sys/acl.h>.
33643         (GETACLCNT): Move fallback to lib/acl-internal.h.
33644         * lib/acl-internal.h: Include <sys/acl.h> here.
33645         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
33646
33647 2008-05-22  Bruno Haible  <bruno@clisp.org>
33648
33649         Split off copy_acl function to separate file.
33650         * lib/copy-acl.c: New file, extracted from lib/acl.c.
33651         * lib/acl.c (copy_acl): Moved function to separate file.
33652         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
33653         * modules/acl (Files): Add lib/copy-acl.c.
33654         (Makefiles.am): Augment lib_SOURCES.
33655
33656 2008-05-22  Bruno Haible  <bruno@clisp.org>
33657
33658         * modules/copy-file-tests: New file.
33659         * tests/test-copy-file.sh: New file.
33660         * tests/test-copy-file.c: New file.
33661         * tests/test-copy-file-sameacls.c: New file.
33662
33663 2008-05-22  Eric Blake  <ebb9@byu.net>
33664
33665         Avoid gcc warning.
33666         * tests/test-memcmp.c (main): Pass NULL indirectly.
33667
33668 2008-05-21  Bruno Haible  <bruno@clisp.org>
33669
33670         Add reference doc about ACLs.
33671         * doc/acl-resources.txt: New file.
33672         * doc/acl-cygwin.txt: New file.
33673
33674 2008-05-21  Bruno Haible  <bruno@clisp.org>
33675
33676         Avoid one more warning from gcc.
33677         * lib/vasnprintf.c (IF_LINT): Update comments.
33678         (VASNPRINTF): Use it also for the 'prefix' array initializer.
33679
33680 2008-05-21  Jim Meyering  <meyering@redhat.com>
33681
33682         avoid a warning from gcc
33683         * lib/vasnprintf.c (IF_LINT): Define.
33684         (scale10_round_decimal_long_double):
33685         Use it to avoid a "may be used uninitialized" warning.
33686         (scale10_round_decimal_double): Likewise.
33687
33688 2008-05-21  Simon Josefsson  <simon@josefsson.org>
33689
33690         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
33691         declared.
33692
33693 2008-05-20  Bruno Haible  <bruno@clisp.org>
33694
33695         * tests/test-memcmp.c (main): Test also the sign of the result. Test
33696         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
33697
33698 2008-05-20  Simon Josefsson  <simon@josefsson.org>
33699
33700         * modules/memcmp-tests: New file.
33701         * tests/test-memcmp.c: New file.
33702
33703 2008-05-19  Bruno Haible  <bruno@clisp.org>
33704
33705         * modules/propername (Notice, configure.ac): Put quoted "..." into
33706         --keyword option.
33707         * lib/propername.h: Update comments accordingly.
33708         Reported by Eric Blake.
33709
33710 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
33711
33712         * modules/getpass-gnu (Depends-on): Add fseeko.
33713
33714 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33715
33716         * modules/base64-tests: New file.
33717
33718 2008-05-19  Bo Borgerson <gigabo@gmail.com>
33719
33720         * lib/base64.c (base64_decode_ctx): If a decode context structure
33721         was passed in use it to ignore newlines.  If a context structure
33722         was _not_ passed in, continue to treat newlines as garbage (this
33723         is the historical behavior).  Formerly base64_decode.
33724         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33725         takes a decode context structure.
33726         * lib/base64.h (base64_decode): Macro for four-argument calls.
33727         (base64_decode_alloc): Likewise.
33728         * lib/base64.c (base64_decode_ctx): If a decode context structure
33729         was passed in use it to ignore newlines.  If a context structure
33730         was _not_ passed in, continue to treat newlines as garbage (this
33731         is the historical behavior).  Formerly base64_decode.
33732         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33733         takes a decode context structure.
33734         * lib/base64.h (base64_decode): Macro for four-argument calls.
33735         (base64_decode_alloc): Likewise.
33736
33737 2008-05-19  Jim Meyering  <meyering@redhat.com>
33738
33739         avoid a warning from gcc
33740         * lib/trim.c (IF_LINT): Define.
33741         (trim2): Use it to avoid a "may be used uninitialized" warning.
33742
33743         Fix doc typo.
33744         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
33745
33746 2008-05-19  Bruno Haible  <bruno@clisp.org>
33747
33748         * doc/glibc-functions/getpass.texi: Document limits of other
33749         implementations.
33750
33751 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33752             Bruno Haible <bruno@clisp.org>
33753
33754         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
33755
33756 2008-05-18  Bruno Haible  <bruno@clisp.org>
33757
33758         * modules/propername: New file, from GNU gettext.
33759         * lib/propername.h: New file, from GNU gettext.
33760         * lib/propername.c: New file, from GNU gettext.
33761         * MODULES.html.sh (Internationalization functions): Add propername.
33762
33763 2008-05-16  Jim Meyering  <meyering@redhat.com>
33764             Bruno Haible  <bruno@clisp.org>
33765
33766         Avoid some warnings from "gcc -Wshadow".
33767         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
33768
33769 2008-05-15  Eric Blake  <ebb9@byu.net>
33770
33771         Extend previous patch to cygwin 1.7.0.
33772         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
33773         fast implementation in cygwin >= 1.7.0.
33774         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33776
33777 2008-05-15  Bruno Haible  <bruno@clisp.org>
33778
33779         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
33780         implementation in glibc >= 2.9.
33781         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33783
33784 2008-05-15  Bruno Haible  <bruno@clisp.org>
33785
33786         * MODULES.html.sh (Internationalization functions): Remove linebreak.
33787         (Unicode string functions): Add unilbrk/*.
33788         Reported by Karl Berry.
33789
33790 2008-05-15  Eric Blake  <ebb9@byu.net>
33791
33792         Fix violation of <stdbool.h> replacement in regex.
33793         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
33794         * lib/regexec.c (re_search_internal): Likewise.
33795         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
33796
33797 2008-05-15  Jim Meyering  <meyering@redhat.com>
33798
33799         avoid distracting test output when git or cvs is not found
33800         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
33801         * tests/test-vc-list-files-git.sh: Likewise.
33802
33803 2008-05-15  Eric Blake  <ebb9@byu.net>
33804
33805         Glibc finally accepted the memmem speedup code, bugzilla #5514.
33806         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
33807         glibc version.
33808         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33809         * doc/posix-functions/strstr.texi (strstr): Likewise.
33810         * lib/str-two-way.h (MAX): Sychronize with glibc.
33811
33812 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
33813
33814         * lib/regcomp.c (optimize_utf8): Add a note on why we test
33815         opr.ctx_type.
33816         (calc_first): Initialize constraint field.
33817         (duplicate_node_closure): Use it instead of special casing ANCHORS.
33818         Fix grammar.
33819         (duplicate_node): Merge constraint field for all node types.
33820         (calc_eclosure_iter): Look at constraint field for all node types.
33821         * lib/regex_internal.c (create_cd_newstate): Don't look at
33822         opr.ctx_type.
33823
33824 2008-05-14  Bruno Haible  <bruno@clisp.org>
33825
33826         Help GCC to do better code generation.
33827         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
33828         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
33829         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
33830         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
33831         Declare with attribute 'malloc' if supported.
33832
33833 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
33834
33835         use "echo STR|wc -c" rather than unportable "expr length STR"
33836         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
33837         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
33838
33839 2008-05-14  Jim Meyering  <meyering@redhat.com>
33840
33841         use dd ibs=$n count=1 ... rather than less-portable head -c$n
33842         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
33843         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
33844         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
33845         via Collin Lasse.
33846
33847 2008-05-14  Eric Blake  <ebb9@byu.net>
33848
33849         Avoid quadratic growth in gl_LIBSOURCES.
33850         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
33851         Suggested by Bruno Haible.
33852
33853         Test xmemdup0.
33854         * modules/xmemdup0-tests: New file.
33855         * tests/test-xmemdup0.c: Likewise.
33856
33857 2008-05-13  Eric Blake  <ebb9@byu.net>
33858
33859         Split xmemdup0 into its own module.
33860         * modules/xmemdup0: New file.
33861         * lib/xmemdup0.h: Likewise.
33862         * lib/xmemdup0.c: Likewise.
33863         * MODULES.html.sh (Memory management functions): Add xmemdup0.
33864         * lib/xalloc.h (xmemdup0): Remove.
33865         * lib/xmalloc.c (xmemdup0): Likewise.
33866
33867 2008-05-13  Eric Blake  <ebb9@byu.net>
33868             Bruno Haible  <bruno@clisp.org>
33869
33870         Reduce number of forks required during autoconf.
33871         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
33872         and gl_LIBSOURCES_DIR.
33873         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
33874         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
33875         m4_syscmd per file.
33876         <m4_foreach_w>: Move...
33877         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
33878
33879 2008-05-13  Eric Blake  <ebb9@byu.net>
33880
33881         * gnulib-tool: Fix various comment typos.
33882
33883 2008-05-12  Bruno Haible  <bruno@clisp.org>
33884
33885         Tailor the linebreaking algorithm.
33886         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
33887
33888 2008-05-12  Bruno Haible  <bruno@clisp.org>
33889
33890         Update to Unicode 5.0.0.
33891         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33892         LBP_JV, LBP_JT. Redistribute values.
33893         (unilbrk_table): Change size.
33894         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
33895         Unicode TR#14 rev. 22.
33896         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33897         LBP_JV, LBP_JT. Redistribute values.
33898         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
33899         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
33900         Update.
33901         * lib/unilbrk/lbrkprop1.h: Regenerated.
33902         * lib/unilbrk/lbrkprop2.h: Regenerated.
33903         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
33904         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
33905         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
33906         Likewise.
33907         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
33908         Likewise.
33909         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
33910         result.
33911         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
33912         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
33913         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
33914         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
33915         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
33916         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
33917
33918 2008-05-11  Bruno Haible  <bruno@clisp.org>
33919
33920         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
33921
33922 2008-05-11  Bruno Haible  <bruno@clisp.org>
33923
33924         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
33925         * modules/unilbrk/gen-lbrk: New file.
33926
33927 2008-05-11  Bruno Haible  <bruno@clisp.org>
33928
33929         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
33930         * m4/sha512.m4 (gl_SHA512): Likewise.
33931
33932 2008-05-11  Jim Meyering  <meyering@redhat.com>
33933
33934         New modules: crypto/sha256, crypto/sha512 (from coreutils)
33935         * modules/crypto/sha256: New file.
33936         * modules/crypto/sha512: Likewise.
33937         * lib/sha256.c: Likewise.
33938         * lib/sha256.h: Likewise.
33939         * lib/sha512.c: Likewise.
33940         * lib/sha512.h: Likewise.
33941         * lib/u64.h: Likewise.
33942         * m4/sha256.m4: Likewise.
33943         * m4/sha512.m4: Likewise.
33944         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
33945
33946 2008-05-10  Bruno Haible  <bruno@clisp.org>
33947
33948         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
33949         (Input/Output <stdio.h>): Add xprintf.
33950         (Signal handling <signal.h>): Add strsignal.
33951         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
33952         (Core language properties): Add func.
33953         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
33954         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
33955         strings.
33956         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
33957         (Input/output): New section.
33958         (File system functions): Add openat-die, stat-macros.
33959         (Networking functions): Add sockets.
33960         (Unicode string functions): Add unictype/*.
33961         (Support for building libraries and executables): Add gperf.
33962         (Support for building documentation): Add agpl-3.0.
33963         (Misc): Add nocrash.
33964
33965 2008-05-10  Bruno Haible  <bruno@clisp.org>
33966
33967         * modules/unictype/gen-ctype: New file.
33968
33969 2008-05-10  Jim Meyering  <meyering@redhat.com>
33970
33971         Make chdir-safer.c more efficient on a system with no symlinks.
33972         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
33973         also if ELOOP is zero.  Suggested by Bruno Haible.
33974
33975         Make chdir-safer.c slightly safer.
33976         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
33977         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
33978
33979         Avoid compile failure on systems without ELOOP (like mingw).
33980         * lib/chdir-safer.c (ELOOP): Define if not already defined.
33981         Reported by Bruno Haible.
33982
33983 2008-05-10  Bruno Haible  <bruno@clisp.org>
33984
33985         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
33986         (is_utf8_encoding): Use a case-insensitive comparison.
33987         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
33988         streq.
33989
33990 2008-05-10  Bruno Haible  <bruno@clisp.org>
33991
33992         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
33993         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
33994         * lib/unilbrk/ulc-common.h (iconv_string_length,
33995         iconv_string_keeping_offsets): Remove declarations.
33996         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
33997         Don't include <iconv.h>, streq.h, xsize.h.
33998         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
33999         conversion.
34000         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34001         <iconv.h>, streq.h, xsize.h.
34002         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34003         conversion.
34004         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34005         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34006         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34007         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34008
34009 2008-05-10  Bruno Haible  <bruno@clisp.org>
34010
34011         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34012         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34013
34014         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34015         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34016
34017         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34018         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34019
34020         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34021         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34022
34023         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34024         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34025
34026         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34027         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34028
34029         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34030         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34031
34032         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34033         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34034
34035 2008-05-10  Bruno Haible  <bruno@clisp.org>
34036
34037         Split up 'linebreak' module.
34038         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34039         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34040         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34041         modifications.
34042         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34043         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34044         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34045         lib/linebreak.c.
34046         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
34047         lib/linebreak.c.
34048         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
34049         lib/linebreak.c.
34050         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
34051         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
34052         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
34053         lib/linebreak.c.
34054         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
34055         lib/linebreak.c.
34056         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
34057         lib/linebreak.c.
34058         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
34059         lib/linebreak.c.
34060         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
34061         lib/linebreak.c.
34062         * modules/unilbrk/base: New file.
34063         * modules/unilbrk/tables: New file.
34064         * modules/unilbrk/u8-possible-linebreaks: New file.
34065         * modules/unilbrk/u16-possible-linebreaks: New file.
34066         * modules/unilbrk/u32-possible-linebreaks: New file.
34067         * modules/unilbrk/ulc-common: New file.
34068         * modules/unilbrk/ulc-possible-linebreaks: New file.
34069         * modules/unilbrk/u8-width-linebreaks: New file.
34070         * modules/unilbrk/u16-width-linebreaks: New file.
34071         * modules/unilbrk/u32-width-linebreaks: New file.
34072         * modules/unilbrk/ulc-width-linebreaks: New file.
34073         * lib/linebreak.h: Remove file.
34074         * lib/linebreak.c: Remove file.
34075         * m4/linebreak.m4: Remove file.
34076         * modules/linebreak: Remove file.
34077         * NEWS: Mention the changes.
34078
34079 2008-05-09  Eric Blake  <ebb9@byu.net>
34080
34081         Add xmemdup0.
34082         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34083         implementation.
34084         * lib/xmalloc.c (xmemdup0): New C implementation.
34085
34086 2008-05-08  Bruno Haible  <bruno@clisp.org>
34087
34088         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34089
34090 2008-05-07  Eric Blake  <ebb9@byu.net>
34091
34092         Support cross-compilation of <wctype.h>.
34093         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34094         AC_CACHE_CHECK.
34095
34096 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34097
34098         * build-aux/vc-list-files: Add support for bzr.
34099
34100 2008-05-03  Jim Meyering  <meyering@redhat.com>
34101
34102         avoid failed assertion with tight malloc
34103         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34104
34105 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34106
34107         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34108         are needed from arpa/inet.h.
34109         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34110         Reported by Bruno Haible.
34111
34112 2008-05-02  Jim Meyering  <meyering@redhat.com>
34113
34114         avoid compilation error on FreeBSD 6
34115         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34116
34117 2008-05-01  Jim Meyering  <meyering@redhat.com>
34118
34119         useless-if-before-free: correct --help's exit status description
34120         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34121         for one or more matches, etc.  Reported by Bruno Haible.
34122
34123         vc-list-files: make the stand-alone gnulib test work
34124         * modules/vc-list-files-tests (configure.ac):
34125         Define and AC_SUBST abs_aux_dir.
34126         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34127         $(abs_top_srcdir) to each script and having each of them
34128         duplicate the work of setting PATH, set PATH here, using
34129         the new variable, abs_aux_dir instead.
34130         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34131         * tests/test-vc-list-files-git.sh: Likewise.
34132         Reported by Bruno Haible.
34133
34134 2008-05-01  Bruno Haible  <bruno@clisp.org>
34135
34136         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34137         reallocation. Rename 'done' to 'found_delimiter'.
34138
34139 2008-05-01  Jim Meyering  <meyering@redhat.com>
34140
34141         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34142         * build-aux/vc-list-files: Use `...`, not $(...).
34143
34144 2008-04-30  Jim Meyering  <meyering@redhat.com>
34145
34146         add tests for vc-list-files
34147         * modules/vc-list-files-tests: New module.
34148         * tests/test-vc-list-files-cvs.sh: New file.
34149         * tests/test-vc-list-files-git.sh: New file.
34150
34151         avoid a warning from gcc
34152         * lib/getndelim2.c (IF_LINT): Define.
34153         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34154
34155         vc-list-files: work properly with build-aux/cvsu, too
34156         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34157         to all cvs-based clauses.
34158
34159         vc-list-files: work properly in the CVS+awk case, too
34160         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34161
34162         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34163         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34164         take more than one file argument, so .  Add quotes, just in case $dir
34165         ever contains a shell meta-character.  Prompted by Soren Hansen in
34166         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34167
34168 2008-04-29  Eric Blake  <ebb9@byu.net>
34169
34170         Optimize getndelim2 to use block operations when possible.
34171         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34172         freadseek, and memchr2.
34173         * lib/getndelim2.c (getndelim2): Use them for block reads.
34174
34175 2008-04-29  Bruno Haible  <bruno@clisp.org>
34176
34177         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34178         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34179         * modules/inet_ntop (Depends-on): Add extensions.
34180         * modules/inet_pton (Depends-on): Likewise.
34181         Reported by Simon Josefsson.
34182
34183 2008-04-29  Jim Meyering  <meyering@redhat.com>
34184
34185         When the is more than one match in a block, match all of them.
34186         * build-aux/useless-if-before-free: Iterate through each block
34187         until there are no more matches.
34188
34189         Fix broken useless-if-before-free script.
34190         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34191         the expression to match cast of argument to free-like function.
34192
34193 2008-04-29  Eric Blake  <ebb9@byu.net>
34194
34195         Use new header.
34196         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34197
34198 2008-04-29  Jim Meyering  <meyering@redhat.com>
34199
34200         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34201         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34202         by gnulib to exist and to declare e.g., inet_ntop.
34203         Don't include "inet_ntop.h", now removed.
34204
34205         * m4/arpa_inet_h.m4: Remove trailing blanks.
34206
34207 2008-04-29  Eric Blake  <ebb9@byu.net>
34208
34209         Silence valgrind on safe reads beyond potential array bounds.
34210         * lib/rawmemchr.valgrind: New file.
34211         * lib/strchrnul.valgrind: Likewise.
34212         * modules/rawmemchr (Files): Distribute new file.
34213         * modules/strchrnul (Files): Likewise.
34214         Suggested by Bruno Haible.
34215
34216 2008-04-29  Bruno Haible  <bruno@clisp.org>
34217
34218         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34219         (inet_ntop, inet_pton): Change portability warning's wording.
34220         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34221         Invoke gl_CHECK_NEXT_HEADERS.
34222         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34223         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34224         set ARPA_INET_H.
34225         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34226         * modules/arpa_inet (Description): No longer only for systems that
34227         lack it.
34228         (Depends-on): Add include_next.
34229         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34230         HAVE_ARPA_INET_H.
34231
34232 2008-04-29  Jim Meyering  <meyering@redhat.com>
34233
34234         * modules/mkdir (License): Re-license as LGPLv2+.
34235
34236 2008-04-29  Bruno Haible  <bruno@clisp.org>
34237
34238         * modules/rawmemchr (Maintainer): Set to Eric.
34239         * modules/strchrnul (Maintainer): Likewise.
34240
34241 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34242
34243         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34244         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34245
34246         * modules/arpa_inet (arpa/inet.h): Use them.
34247
34248 2008-04-28  Eric Blake  <ebb9@byu.net>
34249
34250         Test getndelim2.
34251         * modules/getndelim2-tests: New file.
34252         * tests/test-getndelim2.c: Likewise.
34253         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34254         stream.
34255         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34256
34257         * MODULES.html.sh: Document new module.
34258
34259 2008-04-20  Bruno Haible  <bruno@clisp.org>
34260
34261         * lib/c-stack.c (die): Use raise.
34262         * modules/c-stack (Depends-on): Add raise.
34263
34264 2008-04-28  Bruno Haible  <bruno@clisp.org>
34265
34266         Expect rpmatch to be declared.
34267         * lib/yesno.c (rpmatch): Remove declaration.
34268
34269         Declare rpmatch.
34270         * lib/stdlib.in.h (rpmatch): New declaration.
34271         * lib/rpmatch.c: Include <stdlib.h> first.
34272         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34273         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34274         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34275         HAVE_RPMATCH.
34276         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34277         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34278         (Include): Set to <stdlib.h>.
34279         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34280         HAVE_RPMATCH.
34281         * NEWS: Document the change.
34282
34283 2008-04-28  Bruno Haible  <bruno@clisp.org>
34284
34285         Change rpmatch to use nl_langinfo when appropriate.
34286         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34287         (N_): New macro.
34288         (localized_pattern): New function/macro.
34289         (try): Remove match, nomatch arguments. Copy the pattern into safe
34290         memory before caching it.
34291         (rpmatch): Use localized_pattern. Add translator comments.
34292         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34293         Suggested by Eric Blake.
34294         * modules/rpmatch (Depends-on): Add stdbool.
34295
34296 2008-04-28  Eric Blake  <ebb9@byu.net>
34297
34298         Add rawmemchr module, matching glibc.
34299         * modules/string (Makefile.am): New indicator.
34300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34301         * lib/string.in.h (rawmemchr): Declare when appropriate.
34302         * modules/rawmemchr: New file.
34303         * m4/rawmemchr.m4: Likewise.
34304         * lib/rawmemchr.c: Likewise.
34305         * modules/rawmemchr-tests: Likewise.
34306         * tests/test-rawmemchr.c: Likewise.
34307         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34308         module.
34309         * modules/strchrnul (Depends-on): Add rawmemchr.
34310         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34311
34312         Whitespace cleanup.
34313         * tests/test-strchrnul.c: Reindent.
34314         * lib/strchrnul.c: Likewise.
34315
34316         Optimize and test strchrnul.
34317         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34318         * modules/strchrnul-tests: New file.
34319         * tests/test-strchrnul.c: Likewise.
34320
34321         Remove intprops dependency.
34322         * modules/memchr (Depends-on): Remove intprops.
34323         * modules/memrchr (Depends-on): Likewise.
34324         * modules/memchr2 (Depends-on): Likewise.
34325         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34326         * lib/memrchr.c (__memrchr): Likewise.
34327         * lib/memrchr2.c (memchr2): Likewise.
34328         Reported by Simon Josefsson.
34329
34330 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34331
34332         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34333         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34334
34335 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34336
34337         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34338
34339         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34340
34341         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34342
34343         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34344         declarations.
34345         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34346
34347         * m4/inet_pton.m4: Don't check for header files.
34348
34349         * m4/inet_ntop.m4: Don't check for header files.
34350
34351 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34352
34353         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34354         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34355         trigger for cygwin).
34356         Reported by Bruno Haible  <bruno@clisp.org>.
34357
34358 2008-04-28  Bruno Haible  <bruno@clisp.org>
34359
34360         * doc/posix-functions/strdup.texi: Mention mingw problem.
34361
34362 2008-04-27  Bruno Haible  <bruno@clisp.org>
34363
34364         * modules/stat-time-tests (Depends-on): Add sleep.
34365         * tests/test-stat-time.c (force_unlink): New function.
34366         (cleanup): Use it.
34367         (test_mtime): Remove the ctime related tests.
34368         (test_ctime): New function, containing the ctime related tests.
34369         (main): Call test_ctime, except on native Windows platforms.
34370
34371 2008-04-27  Bruno Haible  <bruno@clisp.org>
34372
34373         * lib/rpmatch.c (rpmatch): Add some comments.
34374         Reported by James Youngman <jay@gnu.org>.
34375
34376 2008-04-27  Bruno Haible  <bruno@clisp.org>
34377
34378         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34379         quiet NaNs.
34380
34381 2008-04-27  Bruno Haible  <bruno@clisp.org>
34382
34383         Make test-yesno.sh work on mingw.
34384         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
34385         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
34386         (main): Set stdin to binary mode.
34387         * modules/yesno-tests (Depends-on): Add binary-io.
34388
34389 2008-04-27  Bruno Haible  <bruno@clisp.org>
34390
34391         Fix 'isfinite' on x86, x86_64, ia64 platforms.
34392         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
34393         argument that lie outside the IEEE 854 domain.
34394         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
34395         (gl_ISFINITE): Use it.
34396         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
34397
34398 2008-04-27  Bruno Haible  <bruno@clisp.org>
34399
34400         Allow local renaming in config.h.
34401         * lib/memrchr.c (memrchr): Don't undefine outside libc.
34402
34403 2008-04-27  Bruno Haible  <bruno@clisp.org>
34404
34405         * lib/memchr.c (__memchr): Change type of 'i'.
34406         * lib/memchr2.c (memchr2): Likewise.
34407
34408 2008-04-26  Eric Blake  <ebb9@byu.net>
34409         and Bruno Haible  <bruno@clisp.org>
34410
34411         Optimize and test memrchr.
34412         * modules/memrchr (Depends-on): Add intprops.
34413         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
34414         * modules/memrchr-tests: New file.
34415         * tests/test-memrchr.c: New file.
34416
34417 2008-04-26  Bruno Haible  <bruno@clisp.org>
34418
34419         Add tentative support for DragonFly BSD.
34420         * lib/stdio-impl.h: Add macros for DragonFly BSD.
34421         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
34422         fp.
34423         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34424         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
34425         * lib/fpurge.c (fpurge): Likewise.
34426         * lib/freadable.c (freaadable): Likewise.
34427         * lib/freadahead.c (freadahead): Likewise.
34428         * lib/freading.c (freading): Likewise.
34429         * lib/freadptr.c (freadptr): Likewise.
34430         * lib/freadseek.c (freadptrinc): Likewise.
34431         * lib/fseeko.c (fseeko): Likewise.
34432         * lib/fseterr.c (fseterr): Likewise.
34433         * lib/fwritable.c (fwritable): Likewise.
34434         * lib/fwriting.c (fwriting): Likewise.
34435
34436 2008-04-26  Bruno Haible  <bruno@clisp.org>
34437
34438         * lib/stdio-impl.h: New file.
34439         * lib/fbufmode.c: Include stdio-impl.h.
34440         (fbufmode): Use fp_, remove redundant #defines.
34441         * lib/fflush.c: Include stdio-impl.h.
34442         (clear_ungetc_buffer): Remove redundant #defines.
34443         * lib/fpurge.c: Include stdio-impl.h.
34444         (fpurge): Remove redundant #defines.
34445         * lib/freadable.c: Include stdio-impl.h.
34446         (freadable): Remove redundant #defines.
34447         * lib/freadahead.c: Include stdio-impl.h.
34448         (freadahead): Remove redundant #defines.
34449         * lib/freading.c: Include stdio-impl.h.
34450         (freading): Remove redundant #defines.
34451         * lib/freadptr.c: Include stdio-impl.h.
34452         (freadptr): Remove redundant #defines.
34453         * lib/freadseek.c: Include stdio-impl.h.
34454         (freadptrinc): Remove redundant #defines.
34455         * lib/fseeko.c: Include stdio-impl.h.
34456         (rpl_fseeko): Remove redundant #defines.
34457         * lib/fseterr.c: Include stdio-impl.h.
34458         (fseterr): Remove redundant #defines.
34459         * lib/fwritable.c: Include stdio-impl.h.
34460         (fwritable: Remove redundant #defines.
34461         * lib/fwriting.c: Include stdio-impl.h.
34462         (fwriting): Remove redundant #defines.
34463         * modules/fbufmode (Files): Add lib/stdio-impl.h.
34464         * modules/fflush (Files): Likewise.
34465         * modules/fpurge (Files): Likewise.
34466         * modules/freadable (Files): Likewise.
34467         * modules/freadahead (Files): Likewise.
34468         * modules/freading (Files): Likewise.
34469         * modules/freadptr (Files): Likewise.
34470         * modules/freadseek (Files): Likewise.
34471         * modules/fseeko (Files): Likewise.
34472         * modules/fseterr (Files): Likewise.
34473         * modules/fwritable (Files): Likewise.
34474         * modules/fwriting (Files): Likewise.
34475
34476 2008-04-26  Bruno Haible  <bruno@clisp.org>
34477
34478         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34479         restore_seek_optimization, update_fpos_cache): New functions, extracted
34480         from rpl_fflush.
34481         (rpl_fflush): Use them.
34482         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
34483         (gl_REPLACE_FFLUSH): Use it.
34484
34485 2008-04-26  Bruno Haible  <bruno@clisp.org>
34486
34487         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
34488         on Solaris.
34489         * tests/test-xstrtoimax.sh: Likewise.
34490         * tests/test-xstrtoumax.sh: Likewise.
34491         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34492
34493 2008-04-26  Bruno Haible  <bruno@clisp.org>
34494
34495         * modules/memchr-tests: New file.
34496         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
34497
34498 2008-04-26  Eric Blake  <ebb9@byu.net>
34499             Bruno Haible  <bruno@clisp.org>
34500
34501         * lib/memchr.c: Include intprops.h.
34502         (__memchr): Optimize parallel detection of matching bytes. Rename local
34503         variables. Add explanatory comments.
34504
34505 2008-04-26  Bruno Haible  <bruno@clisp.org>
34506
34507         Fix module 'memchr', broken since 2000-10-28.
34508         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
34509
34510 2008-04-26  Bruno Haible  <bruno@clisp.org>
34511
34512         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
34513         comments.
34514
34515 2008-04-25  Eric Blake  <ebb9@byu.net>
34516
34517         Use native fstatat on cygwin 1.7.0.
34518         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
34519         first.
34520
34521 2008-04-23  Eric Blake  <ebb9@byu.net>
34522
34523         Improve memchr2 performance.
34524         * lib/memchr2.c (memchr2): Further optimize parallel detection of
34525         NUL bytes.
34526         * modules/memchr2 (Depends-on): Use intprops.h.
34527
34528 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34529
34530         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
34531         an inline function instead of a CPP macro.  Patch by Ben Pfaff
34532         <blp@cs.stanford.edu>.
34533
34534 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34535
34536         * lib/arpa_inet.in.h: New file.
34537
34538         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
34539         (Makefile.am): Sed in substitute header file.
34540
34541         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
34542         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
34543
34544         * modules/inet_ntop (configure.ac): Use
34545         gl_ARPA_INET_MODULE_INDICATOR.
34546
34547         * modules/inet_pton (configure.ac): Use
34548         gl_ARPA_INET_MODULE_INDICATOR.
34549
34550 2008-04-22  Jim Meyering  <meyering@redhat.com>
34551
34552         * modules/verify (License): Re-license as LGPLv2+.
34553
34554 2008-04-22  Simon Josefsson  <simon@josefsson.org>
34555
34556         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
34557         parameter to void* as per POSIX standard (MinGW uses char*).
34558
34559 2008-04-21  Bruno Haible  <bruno@clisp.org>
34560
34561         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34562         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34563         Define to replacements if REPLACE_ISWCNTRL is 1.
34564         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
34565         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
34566         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
34567         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
34568         what it fixes.
34569         * doc/posix-functions/iswalpha.texi: Likewise.
34570         * doc/posix-functions/iswblank.texi: Likewise.
34571         * doc/posix-functions/iswcntrl.texi: Likewise.
34572         * doc/posix-functions/iswdigit.texi: Likewise.
34573         * doc/posix-functions/iswgraph.texi: Likewise.
34574         * doc/posix-functions/iswlower.texi: Likewise.
34575         * doc/posix-functions/iswprint.texi: Likewise.
34576         * doc/posix-functions/iswpunct.texi: Likewise.
34577         * doc/posix-functions/iswspace.texi: Likewise.
34578         * doc/posix-functions/iswupper.texi: Likewise.
34579         * doc/posix-functions/iswxdigit.texi: Likewise.
34580         Reported by Alain Guibert.
34581
34582 2008-04-21  Bruno Haible  <bruno@clisp.org>
34583
34584         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
34585         Patch by Alain Guibert.
34586
34587 2008-04-21  Bruno Haible  <bruno@clisp.org>
34588
34589         Fix test failures on mingw.
34590         * tests/test-xstrtol.c (print_no_progname): New function.
34591         (main): Install it in error_print_progname hook.
34592         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
34593         * tests/test-xstrtoimax.sh: Likewise.
34594         * tests/test-xstrtoumax.sh: Likewise.
34595
34596 2008-04-21  Bruno Haible  <bruno@clisp.org>
34597
34598         Fix test failure on mingw.
34599         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
34600
34601 2008-04-21  Bruno Haible  <bruno@clisp.org>
34602
34603         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
34604         Actually assign a value.
34605
34606 2008-04-20  Bruno Haible  <bruno@clisp.org>
34607
34608         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
34609         take 2.
34610         * lib/canonicalize.c (canonicalize_file_name): Elide if the
34611         'canonicalize-lgpl' module is also used.
34612         * lib/canonicalize-lgpl.c: Undo last change.
34613         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
34614
34615 2008-04-20  Bruno Haible  <bruno@clisp.org>
34616
34617         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
34618         config.h. Provide _mkdir based fallback for mingw.
34619         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
34620         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
34621         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
34622         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
34623         rather than defining mkdir in config.h.
34624         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
34625         (gl_SYS_STAT_H_DEFAULTS): New macro.
34626         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
34627         HAVE_IO_H any more.
34628         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
34629         HAVE_DECL_MKDIR and HAVE_IO_H.
34630
34631 2008-04-20  Bruno Haible  <bruno@clisp.org>
34632
34633         * lib/isapipe.c: Port to native Windows platforms.
34634
34635 2008-04-20  Bruno Haible  <bruno@clisp.org>
34636
34637         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
34638
34639 2008-04-21  Eric Blake  <ebb9@byu.net>
34640
34641         Work around preprocessors that don't handle UINTMAX_MAX.
34642         * lib/memchr2.c (memchr2): Avoid embedded #if.
34643         Reported by Alain Guibert, fix suggested by Bruno Haible.
34644
34645 2008-04-21  Simon Josefsson  <simon@josefsson.org>
34646
34647         * doc/posix-functions/strftime.texi (strftime): Explain better
34648         Windows incompatibility.  Suggested by Micah Cowan
34649         <micah@cowan.name>.
34650
34651 2008-04-20  Bruno Haible  <bruno@clisp.org>
34652
34653         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
34654         unistr/u8-mblen.
34655
34656 2008-04-20  Bruno Haible  <bruno@clisp.org>
34657
34658         Fix test failure on platforms with non-GNU iconv.
34659         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
34660         (U_TO_U8): Use it, rather than u16_to_u8.
34661         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
34662         units at the end of the input string.
34663         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
34664
34665 2008-04-20  Bruno Haible  <bruno@clisp.org>
34666
34667         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
34668         when the resulting length is 0.
34669         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
34670
34671 2008-04-20  Bruno Haible  <bruno@clisp.org>
34672
34673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
34674         works.
34675         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
34676
34677 2008-04-20  Bruno Haible  <bruno@clisp.org>
34678
34679         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
34680         * modules/tsearch-tests (configure.ac): Test for initstate function.
34681
34682 2008-04-20  Bruno Haible  <bruno@clisp.org>
34683
34684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
34685         for nlink_t if missing.
34686         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
34687
34688 2008-04-19  Bruno Haible  <bruno@clisp.org>
34689
34690         Work around snprintf bug on Linux libc5.
34691         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
34692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34693         gl_SNPRINTF_SIZE1.
34694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34695         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
34696         that test failed.
34697         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34698         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
34699         * modules/snprintf (Files): Add m4/printf.m4.
34700         * modules/vsnprintf (Files): Likewise.
34701         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
34702         * doc/posix-functions/vsnprintf.texi: Likewise.
34703
34704 2008-04-19  Bruno Haible  <bruno@clisp.org>
34705
34706         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
34707         from 0.0058 to less than 10^-7.
34708
34709 2008-04-19  Bruno Haible  <bruno@clisp.org>
34710
34711         Fix rounding when a precision is given.
34712         * lib/vasnprintf.c (is_borderline): New function.
34713         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
34714         9...9x.
34715         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
34716         %e, %g.
34717         * tests/test-vasprintf-posix.c (test_function): Likewise.
34718         * tests/test-snprintf-posix.h (test_function): Likewise.
34719         * tests/test-sprintf-posix.h (test_function): Likewise.
34720         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
34721         * tests/test-printf-posix.h (test_function): Likewise.
34722         * tests/test-printf-posix.output: Update.
34723         Reported by John Darrington <john@darrington.wattle.id.au> via
34724         Ben Pfaff <blp@cs.stanford.edu>.
34725
34726 2008-04-18  Simon Josefsson  <simon@josefsson.org>
34727
34728         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
34729         Suggested by Bruno Haible <bruno@clisp.org>.
34730
34731 2008-04-17  Bruno Haible  <bruno@clisp.org>
34732
34733         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
34734         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
34735         implementation.
34736         Patch by Bruce Merry <bmerry@gmail.com>.
34737
34738 2008-04-17  Simon Josefsson  <simon@josefsson.org>
34739
34740         * doc/posix-functions/strftime.texi (strftime): Mention that %e
34741         doesn't work under Windows.
34742
34743 2008-04-16  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
34746         New macros.
34747         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
34748         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
34749         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
34750         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
34751         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
34752         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
34753         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
34754         macros.
34755         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
34756         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
34757         Northern Sotho, Uighur.
34758
34759 2008-04-16  Bruno Haible  <bruno@clisp.org>
34760
34761         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
34762         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
34763         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
34764         Reported by Daniel Bergström <daniel@octocode.com>.
34765
34766 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
34767             Bruno Haible  <bruno@clisp.org>
34768
34769         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
34770         function.
34771         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
34772         New functions, mostly extracted from gl_locale_name_default.
34773         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
34774
34775 2008-04-16  Eric Blake  <ebb9@byu.net>
34776
34777         Adjust strtod detection to catch glibc 2.7 bug.
34778         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
34779         Reported by John Gatewood Ham.
34780
34781 2008-04-16  Bruno Haible  <bruno@clisp.org>
34782
34783         Add tentative support for Linux libc5.
34784         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
34785         * lib/fpurge.c (fpurge): Likewise.
34786         * lib/freadable.c (freadable): Likewise.
34787         * lib/freadahead.c (freadahead): Likewise.
34788         * lib/freading.c (freading): Likewise.
34789         * lib/freadptr.c (freadptr): Likewise.
34790         * lib/freadseek.c (freadptrinc): Likewise.
34791         * lib/fseeko.c (rpl_fseeko): Likewise.
34792         * lib/fseterr.c (fseterr): Likewise.
34793         * lib/fwritable.c (fwritable): Likewise.
34794         * lib/fwriting.c (fwriting): Likewise.
34795         Reported by Alain Guibert <alguibert+bts@free.fr>.
34796
34797 2008-04-15  Bruno Haible  <bruno@clisp.org>
34798
34799         * modules/mathl (configure.ac): Define module indicator.
34800
34801 2008-04-15  Bruno Haible  <bruno@clisp.org>
34802
34803         * lib/logl.c (logl): Remove unused variables.
34804
34805 2008-04-15  Bruno Haible  <bruno@clisp.org>
34806
34807         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
34808         fails.
34809
34810 2008-04-15  Bruno Haible  <bruno@clisp.org>
34811
34812         * lib/trim.c (trim2): Fix argument of isspace() macro.
34813
34814 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
34815
34816         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
34817         to 0.
34818         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
34819
34820 2008-04-14  Bruno Haible  <bruno@clisp.org>
34821
34822         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
34823         AC_LANG_PROGRAM argument.
34824         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
34825         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
34826         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34827         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34828         * m4/math_h.m4 (gl_MATH_H): Likewise.
34829         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
34830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34831         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34832         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
34833         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
34834         * m4/regex.m4 (gl_REGEX): Likewise.
34835         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
34836         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
34837         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34838         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
34839         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
34840         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34841         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34842         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34843
34844 2008-04-14  Jim Meyering  <meyering@redhat.com>
34845
34846         test-strtod: fix typos: s/abs/fabs/
34847         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
34848
34849 2008-04-13  Bruno Haible  <bruno@clisp.org>
34850
34851         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
34852         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
34853         module is also used and while not building the reloc-wrapper.
34854
34855 2008-04-13  Bruno Haible  <bruno@clisp.org>
34856
34857         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
34858
34859 2008-04-13  Bruno Haible  <bruno@clisp.org>
34860
34861         Fix AIX compilation failure introduced on 2008-04-02.
34862         * tests/test-frexp.c (exp): Undefine before redefining.
34863         * tests/test-frexpl.c (exp): Likewise.
34864
34865 2008-04-13  Bruno Haible  <bruno@clisp.org>
34866
34867         Work around a HP-UX stdio bug.
34868         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
34869         * tests/test-ftello.c (main): Likewise.
34870         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
34871         * doc/posix-functions/ftello.texi: Likewise.
34872
34873 2008-04-13  Bruno Haible  <bruno@clisp.org>
34874
34875         Make test-signbit pass on HP-UX/hppa.
34876         * tests/test-signbit.c (minus_zerol): New variable.
34877         (test_signbitl): Use it.
34878
34879 2008-04-13  Bruno Haible  <bruno@clisp.org>
34880
34881         Make truncl work on OSF/1 4.0.
34882         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
34883         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34884         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
34886         HAVE_DECL_TRUNCL.
34887         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
34888         HAVE_DECL_TRUNCL.
34889         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
34890
34891 2008-04-13  Bruno Haible  <bruno@clisp.org>
34892
34893         * lib/unictype.h: Remove trailing comma from enumeration definitions.
34894
34895 2008-04-13  Bruno Haible  <bruno@clisp.org>
34896
34897         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
34898         expression, so as to avoid HP-UX 11 cc compiler bug.
34899
34900 2008-04-13  Bruno Haible  <bruno@clisp.org>
34901
34902         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
34903
34904 2008-04-13  Bruno Haible  <bruno@clisp.org>
34905
34906         * lib/git-merge-changelog.c: Remove empty declaration outside of
34907         functions.
34908
34909 2008-04-13  Bruno Haible  <bruno@clisp.org>
34910
34911         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
34912
34913 2008-04-13  Bruno Haible  <bruno@clisp.org>
34914
34915         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
34916         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
34917         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
34918         also if it exists but lacks definitions of the SHUT_* macros.
34919         * modules/sys_socket (Description): Update.
34920         Reported by Elbert Pol <e.pol@chello.nl>.
34921
34922 2008-04-13  Bruno Haible  <bruno@clisp.org>
34923
34924         * lib/localcharset.c (OS2): Don't redefine if already defined.
34925         Reported by Elbert Pol <e.pol@chello.nl>.
34926
34927 2008-04-13  Bruno Haible  <bruno@clisp.org>
34928
34929         * lib/binary-io.h [__EMX__]: Include <io.h>.
34930         Reported by Elbert Pol <e.pol@chello.nl>.
34931
34932 2008-04-12  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/fpucw.h: Enable the definitions also for x86_64.
34935         Needed for NetBSD/x86_64.
34936         Reported by Thomas Klausner <tk@giga.or.at>.
34937
34938 2008-04-12  Bruno Haible  <bruno@clisp.org>
34939
34940         * tests/test-strtod.c: Include isnand.h.
34941         (main): Use isnand instead of isnan.
34942         Reported by Jim Meyering.
34943
34944 2008-04-12  Bruno Haible  <bruno@clisp.org>
34945
34946         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
34947         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34948
34949 2008-04-12  Jim Meyering  <meyering@redhat.com>
34950
34951         * m4/math_h.m4 (gl_MATH_H): Fix typos.
34952
34953 2008-04-12  Bruno Haible  <bruno@clisp.org>
34954
34955         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
34956         Reported by Elbert Pol <e.pol@chello.nl>.
34957
34958 2008-04-12  Eric Blake  <ebb9@byu.net>
34959
34960         Work around Solaris 10 math.h bug.
34961         * m4/math_h.m4 (gl_MATH_H): Check for bug.
34962         (gl_MATH_H_DEFAULTS): Set up default.
34963         * modules/math (Makefile.am): Replace new indicators.
34964         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
34965         * tests/test-math.c (main): Test this.
34966         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
34967         * doc/posix-headers/math.texi (math.h): Mention bug.
34968         Reported by Nelson H. F. Beebe and Jim Meyering.
34969
34970 2008-04-11  Bruno Haible  <bruno@clisp.org>
34971
34972         Adapt to future versions of Apple GCC.
34973         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
34974         Reported by Peter O'Gorman <peter@pogma.com>.
34975
34976 2008-04-11  Bruno Haible  <bruno@clisp.org>
34977
34978         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
34979
34980 2008-04-11  Bruno Haible  <bruno@clisp.org>
34981
34982         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
34983
34984         * modules/getaddrinfo-tests (Makefile.am): Define
34985         test_getaddrinfo_LDADD.
34986
34987 2008-04-11  Bruno Haible  <bruno@clisp.org>
34988
34989         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
34990         (init): Fix syntax error.
34991         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
34992         is declared.
34993
34994 2008-04-11  Bruno Haible  <bruno@clisp.org>
34995
34996         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
34997         * modules/glob (Depends-on): Add stdbool.
34998
34999 2008-04-11  Bruno Haible  <bruno@clisp.org>
35000
35001         * lib/trim.c: Include <string.h>.
35002
35003 2008-04-11  Eric Blake  <ebb9@byu.net>
35004
35005         Avoid compile failure on OS/2.
35006         * lib/regex_internal.h (internal_function): Disable optimization
35007         on OS/2 (__EMX__), where it caused compiler error.
35008         Reported by Elbert Pol.
35009
35010 2008-04-11  Bruno Haible  <bruno@clisp.org>
35011
35012         Flush the standard error stream before aborting. Needed on mingw.
35013         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35014         * tests/test-array_list.c (ASSERT): Likewise.
35015         * tests/test-array_oset.c (ASSERT): Likewise.
35016         * tests/test-avltree_list.c (ASSERT): Likewise.
35017         * tests/test-avltree_oset.c (ASSERT): Likewise.
35018         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35019         * tests/test-binary-io.c (ASSERT): Likewise.
35020         * tests/test-byteswap.c (ASSERT): Likewise.
35021         * tests/test-c-ctype.c (ASSERT): Likewise.
35022         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35023         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35024         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35025         * tests/test-c-strstr.c (ASSERT): Likewise.
35026         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35027         * tests/test-canonicalize.c (ASSERT): Likewise.
35028         * tests/test-carray_list.c (ASSERT): Likewise.
35029         * tests/test-ceilf1.c (ASSERT): Likewise.
35030         * tests/test-ceilf2.c (ASSERT): Likewise.
35031         * tests/test-ceill.c (ASSERT): Likewise.
35032         * tests/test-count-one-bits.c (ASSERT): Likewise.
35033         * tests/test-fbufmode.c (ASSERT): Likewise.
35034         * tests/test-fflush2.c (ASSERT): Likewise.
35035         * tests/test-floorf1.c (ASSERT): Likewise.
35036         * tests/test-floorf2.c (ASSERT): Likewise.
35037         * tests/test-floorl.c (ASSERT): Likewise.
35038         * tests/test-fopen.c (ASSERT): Likewise.
35039         * tests/test-fpending.c (ASSERT): Likewise.
35040         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35041         * tests/test-fpurge.c (ASSERT): Likewise.
35042         * tests/test-freadable.c (ASSERT): Likewise.
35043         * tests/test-freadahead.c (ASSERT): Likewise.
35044         * tests/test-freading.c (ASSERT): Likewise.
35045         * tests/test-freadptr.c (ASSERT): Likewise.
35046         * tests/test-freadptr2.c (ASSERT): Likewise.
35047         * tests/test-freadseek.c (ASSERT): Likewise.
35048         * tests/test-freopen.c (ASSERT): Likewise.
35049         * tests/test-frexp.c (ASSERT): Likewise.
35050         * tests/test-frexpl.c (ASSERT): Likewise.
35051         * tests/test-fseek.c (ASSERT): Likewise.
35052         * tests/test-fseeko.c (ASSERT): Likewise.
35053         * tests/test-fstrcmp.c (ASSERT): Likewise.
35054         * tests/test-ftell.c (ASSERT): Likewise.
35055         * tests/test-ftello.c (ASSERT): Likewise.
35056         * tests/test-func.c (ASSERT): Likewise.
35057         * tests/test-fwritable.c (ASSERT): Likewise.
35058         * tests/test-fwriting.c (ASSERT): Likewise.
35059         * tests/test-getdelim.c (ASSERT): Likewise.
35060         * tests/test-getline.c (ASSERT): Likewise.
35061         * tests/test-i-ring.c (ASSERT): Likewise.
35062         * tests/test-iconv-utf.c (ASSERT): Likewise.
35063         * tests/test-iconv.c (ASSERT): Likewise.
35064         * tests/test-isfinite.c (ASSERT): Likewise.
35065         * tests/test-isnand.c (ASSERT): Likewise.
35066         * tests/test-isnanf.c (ASSERT): Likewise.
35067         * tests/test-isnanl.h (ASSERT): Likewise.
35068         * tests/test-ldexpl.c (ASSERT): Likewise.
35069         * tests/test-linked_list.c (ASSERT): Likewise.
35070         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35071         * tests/test-localename.c (ASSERT): Likewise.
35072         * tests/test-lseek.c (ASSERT): Likewise.
35073         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35074         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35075         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35076         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35077         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35078         * tests/test-mbschr.c (ASSERT): Likewise.
35079         * tests/test-mbscspn.c (ASSERT): Likewise.
35080         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35081         * tests/test-mbspbrk.c (ASSERT): Likewise.
35082         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35083         * tests/test-mbsrchr.c (ASSERT): Likewise.
35084         * tests/test-mbsspn.c (ASSERT): Likewise.
35085         * tests/test-mbsstr1.c (ASSERT): Likewise.
35086         * tests/test-mbsstr2.c (ASSERT): Likewise.
35087         * tests/test-mbsstr3.c (ASSERT): Likewise.
35088         * tests/test-memchr2.c (ASSERT): Likewise.
35089         * tests/test-memmem.c (ASSERT): Likewise.
35090         * tests/test-open.c (ASSERT): Likewise.
35091         * tests/test-printf-frexp.c (ASSERT): Likewise.
35092         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35093         * tests/test-printf-posix.c (ASSERT): Likewise.
35094         * tests/test-quotearg.c (ASSERT): Likewise.
35095         * tests/test-rbtree_list.c (ASSERT): Likewise.
35096         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35097         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35098         * tests/test-round1.c (ASSERT): Likewise.
35099         * tests/test-roundf1.c (ASSERT): Likewise.
35100         * tests/test-roundl.c (ASSERT): Likewise.
35101         * tests/test-signbit.c (ASSERT): Likewise.
35102         * tests/test-sleep.c (ASSERT): Likewise.
35103         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35104         * tests/test-snprintf.c (ASSERT): Likewise.
35105         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35106         * tests/test-stat-time.c (ASSERT): Likewise.
35107         * tests/test-strcasestr.c (ASSERT): Likewise.
35108         * tests/test-strerror.c (ASSERT): Likewise.
35109         * tests/test-striconv.c (ASSERT): Likewise.
35110         * tests/test-striconveh.c (ASSERT): Likewise.
35111         * tests/test-striconveha.c (ASSERT): Likewise.
35112         * tests/test-strsignal.c (ASSERT): Likewise.
35113         * tests/test-strstr.c (ASSERT): Likewise.
35114         * tests/test-strtod.c (ASSERT): Likewise.
35115         * tests/test-trunc1.c (ASSERT): Likewise.
35116         * tests/test-trunc2.c (ASSERT): Likewise.
35117         * tests/test-truncf1.c (ASSERT): Likewise.
35118         * tests/test-truncf2.c (ASSERT): Likewise.
35119         * tests/test-truncl.c (ASSERT): Likewise.
35120         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35121         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35122         * tests/test-vasnprintf.c (ASSERT): Likewise.
35123         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35124         * tests/test-vasprintf.c (ASSERT): Likewise.
35125         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35126         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35127         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35128         * tests/test-vsnprintf.c (ASSERT): Likewise.
35129         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35130         * tests/test-wcwidth.c (ASSERT): Likewise.
35131         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35132         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35133         * tests/test-xvasprintf.c (ASSERT): Likewise.
35134         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35135         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35136         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35137         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35138         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35139         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35140         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35141         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35142         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35143         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35144         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35145         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35146         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35147         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35148         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35149         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35150         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35151         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35152         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35153         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35154         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35155         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35156         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35157         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35158         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35159         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35160         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35161         * tests/unictype/test-combining.c (ASSERT): Likewise.
35162         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35163         * tests/unictype/test-digit.c (ASSERT): Likewise.
35164         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35165         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35166         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35167         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35168         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35169         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35170         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35171         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35172         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35173         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35174         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35175         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35176         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35177         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35178         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35179         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35180         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35181         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35182         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35183         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35184         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35185         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35186         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35187         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35188         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35189         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35190         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35191         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35192         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35193         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35194         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35195         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35196         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35197         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35198         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35199         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35200         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35201         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35202         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35203         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35204         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35205         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35206         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35207         Reported by Eric Blake.
35208
35209 2008-04-11  Bruno Haible  <bruno@clisp.org>
35210
35211         * lib/wchar.in.h: Tweak comment.
35212
35213 2008-04-11  Bruno Haible  <bruno@clisp.org>
35214
35215         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35216         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35217         gl_COMMON.
35218         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35219
35220 2008-04-11  Bruno Haible  <bruno@clisp.org>
35221
35222         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35223
35224 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35225
35226         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35227         of attempting to use non-existing /dev/*random.  Based on patch
35228         from Adam Strzelecki <ono@java.pl> in
35229         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35230
35231 2008-04-08  Bruno Haible  <bruno@clisp.org>
35232
35233         Add tentative support for emx+gcc.
35234         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35235         * lib/fpurge.c (fpurge): Likewise.
35236         * lib/freadable.c (freadable): Likewise.
35237         * lib/freadahead.c (freadahead): Likewise.
35238         * lib/freading.c (freading): Likewise.
35239         * lib/freadptr.c (freadptr): Likewise.
35240         * lib/freadseek.c (freadptrinc): Likewise.
35241         * lib/fseeko.c (rpl_fseeko): Likewise.
35242         * lib/fseterr.c (fseterr): Likewise.
35243         * lib/fwritable.c (fwritable): Likewise.
35244         * lib/fwriting.c (fwriting): Likewise.
35245         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35246
35247 2008-04-09  Eric Blake  <ebb9@byu.net>
35248
35249         Avoid some autoconf warnings.
35250         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35251         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35252         * m4/afs.m4 (gl_AFS): Likewise.
35253         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35254         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35255         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35256         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35257         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35258         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35259         (AC_CHECK_DECLS_ONCE): Likewise.
35260         Rename file...
35261         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35262         gnulib-tool requires autoconf 2.59 or better.
35263         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35264
35265 2008-04-08  Eric Blake  <ebb9@byu.net>
35266
35267         Use 'git describe --match' if present (added in git 1.5.5).
35268         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35269         if possible.
35270
35271 2008-04-08  Bruno Haible  <bruno@clisp.org>
35272
35273         Add tentative support for OpenServer.
35274         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35275         _ptr, _cnt.
35276         * lib/fpurge.c (fpurge): Likewise.
35277         * lib/freadable.c (freadable): Likewise.
35278         * lib/freadahead.c (freadahead): Likewise.
35279         * lib/freading.c (freading): Likewise.
35280         * lib/freadptr.c (freadptr): Likewise.
35281         * lib/freadseek.c (freadptrinc): Likewise.
35282         * lib/fseeko.c (rpl_fseeko): Likewise.
35283         * lib/fseterr.c (fseterr): Likewise.
35284         * lib/fwritable.c (fwritable): Likewise.
35285         * lib/fwriting.c (fwriting): Likewise.
35286         Reported by Roger Cornelius <rac@tenzing.org> and
35287         Brian K. White <brian@aljex.com>.
35288
35289 2008-04-06  Jim Meyering  <meyering@redhat.com>
35290
35291         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35292
35293 2008-04-06  Bruno Haible  <bruno@clisp.org>
35294
35295         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35296         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35297         * tests/test-printf-posix.sh: Likewise.
35298         * tests/test-vfprintf-posix.sh: Likewise.
35299         * tests/test-vprintf-posix.sh: Likewise.
35300         * tests/test-xprintf-posix.sh: Likewise.
35301
35302 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35303
35304         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35305         hide error from 'ls', needed on OS/2.
35306         Report by Elbert Pol <elbert.pol@gmail.com>.
35307
35308 2008-04-04  Eric Blake  <ebb9@byu.net>
35309
35310         Make test-fseeko.c failures meaningful.
35311         * tests/test-fseeko.c: Print line number on failure.
35312         * tests/test-fseek.c: Likewise.
35313         Reported by Nelson H. F. Beebe.
35314
35315         Improve strtod bug detection check.
35316         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35317         required for Solaris 10.
35318         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35319
35320 2008-04-04  Bruno Haible  <bruno@clisp.org>
35321
35322         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35323         by m4/setenv.m4.
35324
35325 2008-04-03  Eric Blake  <ebb9@byu.net>
35326
35327         Ensure sane .version contents.
35328         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35329         version string.
35330         * build-aux/git-version-gen: Improve documentation.
35331
35332         Make GNU make output nicer.
35333         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35334         MAKECMDGOALS to enforce message for all command line targets.  Set
35335         srcdir for use in maint.mk.
35336
35337         Another maintainer tweak.
35338         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35339         a target that regenerates version.
35340
35341 2008-04-03  Jim Meyering  <meyering@redhat.com>
35342
35343         vc-list-files: don't cause coreutils "make po-check" failure
35344         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35345
35346 2008-04-03  Eric Blake  <ebb9@byu.net>
35347
35348         Allow VPATH usage of vc-list-files.
35349         * build-aux/vc-list-files (scriptversion): Add timestamp.
35350         (options): Add --help, --version, -C.
35351         (CVS): Support installed cvsu.
35352
35353 2008-04-02  Bruno Haible  <bruno@clisp.org>
35354
35355         Avoid some "statement with no effect" warnings from gcc.
35356         * tests/test-wctype.c (main): Explicitly ignore unused values.
35357         Reported by Jim Meyering.
35358
35359 2008-04-02  Jim Meyering  <meyering@redhat.com>
35360
35361         Avoid some warnings from "gcc -Wshadow".
35362         * tests/test-frexp.c (exp): Define to a different identifier.
35363         * tests/test-frexpl.c (exp): Likewise.
35364
35365 2008-04-03  Jim Meyering  <meyering@redhat.com>
35366
35367         bootstrap: remove dangling *.[ch] symlinks from lib
35368         * build-aux/bootstrap [dangling symlink removal]: Move find's
35369         -depth option to precede all others, to avoid a warning.
35370         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35371
35372 2008-04-02  Bruno Haible  <bruno@clisp.org>
35373
35374         Avoid some warnings from "gcc -Wshadow".
35375         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35376         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35377         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35378         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35379         Reported by Jim Meyering.
35380
35381 2008-04-01  Bruno Haible  <bruno@clisp.org>
35382
35383         Fix test to work on IRIX 6.5 with cc.
35384         * tests/test-math.c (numeric_equal): New function.
35385         (main): Use it.
35386
35387 2008-04-01  Bruno Haible  <bruno@clisp.org>
35388
35389         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
35390
35391 2008-04-01  Bruno Haible  <bruno@clisp.org>
35392
35393         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
35394         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35395         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
35396         (Depends-on): Remove math.
35397
35398         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
35399         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35400         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
35401         (Depends-on): Remove math.
35402
35403         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
35404         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35405         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
35406         (Depends-on): Remove math.
35407         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
35408         (Depends-on): Remove math.
35409
35410         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
35411         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35412         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
35413         (Depends-on): Remove math.
35414         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
35415         (Depends-on): Remove math.
35416
35417         * tests/test-round1.c: Include nan.h.
35418         (main): Use NaNd instead of NAN.
35419         * modules/round-tests (Files): Add tests/nan.h.
35420
35421         * tests/test-trunc1.c: Include nan.h.
35422         (main): Use NaNd instead of NAN.
35423         * modules/trunc-tests (Files): Add tests/nan.h.
35424
35425         * tests/test-roundf1.c: Include nan.h.
35426         (main): Use NaNf instead of NAN.
35427         * modules/roundf-tests (Files): Add tests/nan.h.
35428
35429         * tests/test-truncf1.c: Include nan.h.
35430         (main): Use NaNf instead of NAN.
35431         * modules/truncf-tests (Files): Add tests/nan.h.
35432
35433         * tests/test-ceilf1.c: Include nan.h.
35434         (main): Use NaNf instead of NAN.
35435         * modules/ceilf-tests (Files): Add tests/nan.h.
35436
35437         * tests/test-floorf1.c: Include nan.h.
35438         (main): Use NaNf instead of NAN.
35439         * modules/floorf-tests (Files): Add tests/nan.h.
35440
35441         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
35442         (main): Use NaNf instead of NAN.
35443         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
35444
35445         * tests/test-isnand.c: Include nan.h instead of <math.h>.
35446         (main): Use NaNd instead of NAN.
35447         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
35448
35449         * tests/test-frexp.c: Include nan.h.
35450         (main): Use NaNd instead of NAN.
35451         * modules/frexp-tests (Files): Add tests/nan.h.
35452
35453         * lib/isnan.c: Don't include <math.h>.
35454         (FUNC): Don't use NAN macro.
35455         * modules/isnand-nolibm (Depends-on): Remove math.
35456         * modules/isnanf-nolibm (Depends-on): Remove math.
35457         * modules/isnanl (Depends-on): Remove math.
35458         * modules/isnanl-nolibm (Depends-on): Remove math.
35459
35460         * tests/nan.h: New file.
35461
35462 2008-04-01  Eric Blake  <ebb9@byu.net>
35463
35464         Fix typos.
35465         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
35466         values to be the right type.
35467
35468         For now, cater to gnulib strtod inaccuracies.
35469         * tests/test-strtod.c (main): Allow 1-ulp error on expected
35470         fractional results.  While not as nice from a QoI perspective, it
35471         is a quicker patch than correctly implementing decimal to binary
35472         rounding.
35473
35474 2008-03-31  Eric Blake  <ebb9@byu.net>
35475
35476         Guarantee a definition of NAN.
35477         * lib/math.in.h (NAN): Define if missing.
35478         * tests/test-math.c (main): Test it.
35479         * doc/posix-headers/math.texi (math.h): Document this.
35480         * lib/isnan.c (rpl_isnand): Use it.
35481         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
35482         * tests/test-floorf1.c (NaN): Likewise.
35483         * tests/test-frexp.c (NaN): Likewise.
35484         * tests/test-isnand.c (NaN): Likewise.
35485         * tests/test-isnanf.c (NaN): Likewise.
35486         * tests/test-round1.c (NaN): Likewise.
35487         * tests/test-roundf1.c (NaN): Likewise.
35488         * tests/test-snprintf-posix.h (NaN): Likewise.
35489         * tests/test-sprintf-posix.h (NaN): Likewise.
35490         * tests/test-trunc1.c (NaN): Likewise.
35491         * tests/test-truncf1.c (NaN): Likewise.
35492         * tests/test-vasnprintf-posix.c (NaN): Likewise.
35493         * tests/test-vasprintf-posix.c (NaN): Likewise.
35494         * modules/isnand-nolibm (Depends-on): Add math.
35495         * modules/isnanf-nolibm (Depends-on): Likewise.
35496         * modules/isnanl (Depends-on): Likewise.
35497         * modules/isnanl-nolibm (Depends-on): Likewise.
35498         * modules/snprintf-posix-tests (Depends-on): Likewise.
35499         * modules/sprintf-posix-tests (Depends-on): Likewise.
35500         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
35501         * modules/vsprintf-posix-tests (Depends-on): Likewise.
35502         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
35503         * modules/vasprintf-posix-tests (Depends-on): Likewise.
35504
35505 2008-03-31  Bruno Haible  <bruno@clisp.org>
35506
35507         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
35508         * doc/posix-functions/strtod.texi: Likewise.
35509
35510 2008-03-31  Bruno Haible  <bruno@clisp.org>
35511
35512         * tests/test-strtod.c (main): Don't use C99 syntax.
35513
35514 2008-03-31  Bruno Haible  <bruno@clisp.org>
35515
35516         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
35517         Reported by Eric Blake.
35518
35519 2008-03-31  Jim Meyering  <meyering@redhat.com>
35520
35521         Don't compare actual signbit return values.
35522         * tests/test-strtod.c (main): Rather, compare only their
35523         zero/non-zero nature.
35524
35525 2008-03-31  Eric Blake  <ebb9@byu.net>
35526
35527         More strtod documentation.
35528         * doc/posix-functions/strtod.texi (strtod): Interpret more test
35529         failures as distinct bugs.
35530
35531 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35532
35533         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
35534         Problem reported by Erik Benada in
35535         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
35536
35537 2008-03-30  Bruno Haible  <bruno@clisp.org>
35538
35539         * tests/test-strtod.c: Add comments about which assertion fails on which
35540         platform.
35541         * doc/posix-functions/strtod.texi: Add info about many more platforms.
35542
35543 2008-03-30  Eric Blake  <ebb9@byu.net>
35544
35545         Test signbit behavior on zeros.
35546         * tests/test-signbit.c (test_signbitf): Add tests for zero.
35547         (test_signbitd, test_signbitl): Likewise.
35548
35549         More strtod touchups.
35550         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
35551         sign of negative underflow, for now.  Use .5, not .1.
35552         * doc/posix-functions/strtod.texi (strtod): Mention these
35553         limitations.
35554         Reported by Jim Meyering.
35555
35556 2008-03-30  Bruno Haible  <bruno@clisp.org>
35557
35558         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
35559         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
35560
35561 2008-03-30  Bruno Haible  <bruno@clisp.org>
35562
35563         Avoid failure when attempting to return empty iconv results on some
35564         platforms.
35565         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
35566         allocation, don't report ENOMEM when the resulting string is empty.
35567
35568 2008-03-30  Bruno Haible  <bruno@clisp.org>
35569
35570         Fix buffer overrun.
35571         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
35572         Don't consider the width for tmp_length. Check count against tmp_length
35573         before doing the padding. Ensure enough allocation during padding.
35574
35575 2008-03-30  Eric Blake  <ebb9@byu.net>
35576
35577         strtod touchups.
35578         * lib/strtod.c (strtod): Avoid compiler warnings.
35579         Reported by Jim Meyering.
35580
35581 2008-03-30  Bruno Haible  <bruno@clisp.org>
35582
35583         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
35584         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
35585         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
35586         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
35587         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
35588         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
35589         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
35590         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
35591
35592         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
35593         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
35594         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
35595         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
35596         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
35597         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
35598         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
35599         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
35600
35601         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
35602         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
35603         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
35604         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
35605         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
35606         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
35607         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
35608         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
35609
35610         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
35611         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
35612
35613         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
35614         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
35615
35616         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
35617         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
35618
35619         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
35620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
35621         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
35622
35623         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
35624         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
35625         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
35626
35627         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
35628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
35629         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
35630
35631         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
35632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
35633         * modules/vasprintf (Depends-on): Add EOVERFLOW.
35634
35635         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
35636         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
35637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
35638         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
35639         (Depends-on): Add EOVERFLOW.
35640         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
35641         (Depends-on): Add EOVERFLOW.
35642         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35643         (Depends-on): Add EOVERFLOW.
35644         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35645         (Depends-on): Add EOVERFLOW.
35646         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35647         (Depends-on): Add EOVERFLOW.
35648         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35649         (Depends-on): Add EOVERFLOW.
35650         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35651         (Depends-on): Add EOVERFLOW.
35652         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35653         (Depends-on): Add EOVERFLOW.
35654
35655         * lib/sprintf.c (EOVERFLOW): Remove fallback.
35656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
35657         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
35658
35659         * lib/snprintf.c (EOVERFLOW): Remove fallback.
35660         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
35661         * modules/snprintf (Depends-on): Add EOVERFLOW.
35662
35663         * lib/poll.c (EOVERFLOW): Remove fallback.
35664         * modules/poll (Depends-on): Add EOVERFLOW.
35665
35666         * lib/getugroups.c (EOVERFLOW): Remove fallback.
35667         * modules/getugroups (Depends-on): Add EOVERFLOW.
35668
35669         * lib/getdelim.c (EOVERFLOW): Remove fallback.
35670         * modules/getdelim (Depends-on): Add EOVERFLOW.
35671
35672         * lib/ftell.c (EOVERFLOW): Remove fallback.
35673         * modules/ftell (Depends-on): Add EOVERFLOW.
35674
35675         * lib/fprintf.c (EOVERFLOW): Remove fallback.
35676         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
35677         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
35678
35679         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
35680
35681         * modules/EOVERFLOW-tests: New file.
35682         * tests/test-EOVERFLOW.c: New file.
35683
35684         * modules/EOVERFLOW: New file.
35685         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
35686
35687 2008-03-30  Bruno Haible  <bruno@clisp.org>
35688
35689         Fix bug introduced on 2007-06-10.
35690         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
35691         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
35692
35693 2008-03-30  Bruno Haible  <bruno@clisp.org>
35694
35695         Improve freadseek's efficiency after ungetc.
35696         * lib/freadseek.c: Include freadahead.h.
35697         (freadptrinc): New function, extracted from freadseek.
35698         (freadseek): Use it in a loop. Use freadahead to determine the number
35699         of loop iterations.
35700         * modules/freadseek (Depends-on): Add freadahead.
35701         (configure.ac): Require AC_C_INLINE.
35702
35703 2008-03-30  Bruno Haible  <bruno@clisp.org>
35704
35705         * lib/freadseek.c (freadseek): Don't ignore the return value of
35706         freadptr.
35707
35708 2008-03-29  Eric Blake  <ebb9@byu.net>
35709
35710         Add hex float support.
35711         * modules/strtod (Depends-on): Add c-ctype.
35712         (Link): Mention POW_LIB.
35713         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
35714         whitespace between 'e' and exponent.
35715         * tests/test-strtod.c (main): Enable hex float tests.
35716         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
35717         now provides.
35718
35719         Document various strtod bugs, with some fixes.
35720         * doc/posix-functions/strtod.texi (strtod): Document bugs with
35721         "-0x", "inf", "nan", and hex constants.
35722         * doc/posix-functions/atof.texi (atof): Likewise.
35723         * modules/stdlib (Makefile.am): Support strtod.
35724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35725         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
35726         detect additional strtod bugs.
35727         * lib/stdlib.in.h (rpl_strtod): Add declarations.
35728         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
35729         bool where appropriate.  Parse 'inf' and 'nan'.
35730         * tests/test-strtod.c: New file.
35731         * modules/strtod (Depends-on): Add stdbool, stdlib.
35732         (configure.ac): Turn on module indicator.
35733         * modules/strtod-tests: New module.
35734
35735 2008-03-29  Eric Blake  <ebb9@byu.net>
35736
35737         Fix ftell on mingw.
35738         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
35739         * modules/ftell-tests (Depends-on): Add binary-io.
35740         * modules/ftello-tests (Depends-on): Likewise.
35741         * tests/test-ftell.c (main): Enhance test to cover behavior after
35742         ungetc.  Enforce binary mode.
35743         * tests/test-ftello.c (main): Likewise.
35744
35745         Pass test-freadseek on cygwin.
35746         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
35747         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
35748         ungetc buffer.
35749
35750         * tests/test-fflush2.c (main): Fix typo.
35751
35752 2008-03-29  Bruno Haible  <bruno@clisp.org>
35753
35754         * tests/test-fflush2.c (main): Temporarily disable the contents of
35755         this test.
35756         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
35757         Reported by Eric Blake.
35758
35759 2008-03-28  Simon Josefsson  <simon@josefsson.org>
35760
35761         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
35762         (GC_SHA224_DIGEST_SIZE): Add.
35763
35764         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
35765         (gc_hash_digest_length): Likewise.
35766         (gc_hash_buffer): Likewise.
35767
35768 2008-03-25  Bruno Haible  <bruno@clisp.org>
35769
35770         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
35771         detail which gettext release to use.
35772         Reported by Simon Josefsson.
35773
35774 2008-03-26  Jim Meyering  <meyering@redhat.com>
35775
35776         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
35777         * modules/gnumakefile (clean-GNUmakefile): Also, use
35778         test ... && ... || : syntax rather than if-then ... fi.
35779
35780         gnumakefile: Don't double-quote-expand $(VPATH) value.
35781         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
35782
35783 2008-03-24  Eric Blake  <ebb9@byu.net>
35784
35785         Alter GNUmakefile to install into top directory.
35786         * modules/maintainer-makefile: Split, and add dependency...
35787         * modules/gnumakefile: to this new module.
35788         * build-aux/GNUmakefile: Move...
35789         * top/GNUmakefile: ...here.
35790         * build-aux/maint.mk: Move...
35791         * top/maint.mk: ...here.
35792         * MODULES.html.sh (Support for maintaining...): Document new
35793         module.
35794
35795 2008-03-23  Bruno Haible  <bruno@clisp.org>
35796
35797         * gnulib-tool: New options --vc-files, --no-vc-files.
35798         (func_usage): Document them.
35799         (vc_files): New variable.
35800         (func_import): Consider vc_files.
35801         (func_create_testdir): Set vc_files to empty.
35802         Suggested by Jim Meyering and Karl Berry.
35803
35804 2008-03-23  Bruno Haible  <bruno@clisp.org>
35805
35806         Fix regex compilation error on HP-UX 11.
35807         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
35808         * modules/regex (Files): Add m4/mbstate_t.m4.
35809         Reported by Ton Voon <ton.voon@altinity.com>.
35810
35811 2008-03-23  Bruno Haible  <bruno@clisp.org>
35812
35813         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
35814
35815 2008-03-23  Eric Blake  <ebb9@byu.net>
35816             Bruno Haible  <bruno@clisp.org>
35817
35818         Install files from top/ in the destination directory.
35819         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35820         augmentation also for the files from top/.
35821         (func_import, func_create_testdir): Rewrite file names:
35822         top/filename -> filename.
35823
35824 2008-03-23  Bruno Haible  <bruno@clisp.org>
35825
35826         Tweak "gnulib --version" output.
35827         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
35828
35829 2008-03-23  Bruno Haible  <bruno@clisp.org>
35830
35831         Tweak "gnulib --version" output.
35832         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
35833         rather than contents of ChangeLog, when possible.
35834
35835 2008-03-21  Eric Blake  <ebb9@byu.net>
35836
35837         More --version tweaks.
35838         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
35839         date of last ChangeLog entry.
35840
35841 2008-03-21  Jim Meyering  <meyering@redhat.com>
35842
35843         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
35844
35845 2008-03-20  Eric Blake  <ebb9@byu.net>
35846
35847         VPATH fix.
35848         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
35849
35850 2008-03-20  Simon Josefsson  <simon@josefsson.org>
35851
35852         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
35853         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
35854
35855 2008-03-20  Eric Blake  <ebb9@byu.net>
35856
35857         Sync GNUmakefile with coreutils.
35858         * build-aux/GNUmakefile (have-Makefile): Rename...
35859         (_have-Makefile): ...to this, for namespace consideration.
35860         (GNUmakefile.cfg): Include, if present.
35861         (_autoreconf): Define a default.
35862         (_is-dist-target): New rule for rebuilds to pick up intra-release
35863         version.
35864         (maint-cfg.mk): Rename...
35865         (cfg.mk): ...to this.
35866
35867 2008-03-18  Jim Meyering  <meyering@redhat.com>
35868
35869         New script and module: mktempd
35870         * MODULES.html.sh (maint+release support): Add mktempd.
35871         * build-aux/mktempd: New file.
35872         * modules/mktempd: New file.
35873
35874 2008-03-15  Jim Meyering  <meyering@redhat.com>
35875
35876         Undo last change.
35877         * lib/sha1.c, lib/md5.c: 63 != ~63.
35878         Reported by Andreas Schwab.
35879
35880         sha1.c, md5.c: Hoist a redundant expression.
35881         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
35882         "ctx->buflen" only once, before calling *_process_block.
35883         * lib/md5.c (md5_process_bytes): Likewise.
35884
35885 2008-03-14  Eric Blake  <ebb9@byu.net>
35886
35887         Bump copyright year in files generated by gnulib-tool.
35888         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
35889         gnulib-tool, rather than hard-coding it.
35890
35891         Fix 'gnulib-tool --version' output to work with git.
35892         * gnulib-tool (func_gnulib_dir): New function, extracted from...
35893         (startup): ...here.
35894         (func_version): Use it to invoke git-version-gen, rather than
35895         relying on CVS keyword expansion.  Modernize wording.
35896         (cvsdatestamp, last_checkin_date, version): Kill unused
35897         variables.
35898
35899 2008-03-12  Jim Meyering  <meyering@redhat.com>
35900
35901         Recognize optional cast of the argument to free.
35902         * build-aux/useless-if-before-free: Update regexps.
35903
35904         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
35905
35906 2008-03-11  Bruno Haible  <bruno@clisp.org>
35907
35908         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
35909         by a single package.
35910         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
35911         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
35912         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
35913         Reported by Sam Steingold <sds@gnu.org>.
35914
35915 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35916
35917         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
35918         repositories.
35919
35920 2008-03-11  Bruno Haible  <bruno@clisp.org>
35921
35922         Avoid conflicts between local macro definitions.
35923         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
35924         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
35925
35926 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
35927             Bruno Haible  <bruno@clisp.org>
35928
35929         Make va_copy work with some version of xlc on AIX 5.1.
35930         * lib/stdarg.in.h: New file.
35931         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
35932         On AIX, use a <stdarg.h> file substitute.
35933         * modules/stdarg (Files): Add lib/stdarg.in.h.
35934         (Depends-on): Add include_next.
35935         (Makefile.am): Build a stdarg.h substitute if requested.
35936         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
35937
35938 2008-03-10  Bruno Haible  <bruno@clisp.org>
35939
35940         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
35941         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35942         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
35943
35944 2008-03-10  Bruno Haible  <bruno@clisp.org>
35945
35946         * modules/stdlib (Depends-on): Add include_next, remove
35947         absolute-header.
35948
35949 2008-03-09  Bruno Haible  <bruno@clisp.org>
35950
35951         * lib/freadahead.h (freadahead): Document more precisely.
35952         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
35953         the sum of both buffer sizes.
35954         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
35955         * NEWS: Document the change.
35956
35957 2008-03-09  Bruno Haible  <bruno@clisp.org>
35958
35959         Extend freadptr to return also the buffer size.
35960         * lib/freadptr.h (freadptr): Add sizep argument.
35961         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
35962         (freadptr): Add sizep argument. Determine buffer size like freadahead
35963         does.
35964         * tests/test-freadptr.c: Don't include freadahead.h.
35965         (main): Adapt for new calling convention of freadptr.
35966         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
35967         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
35968         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
35969         tests/test-freadptr2.sh.
35970         (Depends): Remove freadahead.
35971         (TESTS): Add test-freadptr2.sh.
35972         (check_PROGRAMS): Add test-freadptr2.
35973
35974 2008-03-09  Bruno Haible  <bruno@clisp.org>
35975
35976         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
35977         Report and solution by Simon Josefsson.
35978
35979 2008-03-06  Bruno Haible  <bruno@clisp.org>
35980
35981         Make fflush after ungetc work on BSD platforms.
35982         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
35983         * tests/test-fflush2.c: New file.
35984         * tests/test-fflush2.sh: New file.
35985         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
35986         tests/test-fflush2.c.
35987         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
35988         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
35989
35990 2008-03-06  Eric Blake  <ebb9@byu.net>
35991
35992         Likewise for ftello.
35993         * modules/ftello (Dependencies): Add extensions.
35994         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
35995
35996 2008-03-06  Bruno Haible  <bruno@clisp.org>
35997
35998         * modules/fseeko (Dependencies): Add extensions.
35999         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36000         Needed on glibc systems.
36001
36002 2008-03-06  Bruno Haible  <bruno@clisp.org>
36003
36004         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36005         email address.
36006         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36007
36008 2008-03-06  Bruno Haible  <bruno@clisp.org>
36009
36010         * users.txt: Add libgnupdf.
36011
36012 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36013
36014         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36015         (Header File Substitutes, Function Substitutes,
36016         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36017         (Build robot for gnulib): Fix typo.
36018
36019 2008-03-06  Bruno Haible  <bruno@clisp.org>
36020
36021         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36022         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36023
36024 2008-03-06  Bruno Haible  <bruno@clisp.org>
36025
36026         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36027         * doc/gnulib.texi: Include it.
36028
36029 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36030
36031         * modules/func (License): Change license to unlimited; there was
36032         no LGPL parts in the module anyway.
36033
36034 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36035
36036         * modules/__func__: Renamed to modules/func.
36037         * modules/__func__-tests: Renamed to modules/func-tests.
36038         * tests/test-__func__.c: Renamed to tests/test-func.c.
36039         * m4/__func__.m4: Renamed to m4/func.m4.
36040         * doc/gnulib.texi (__func__): Section renamed to func.
36041         Suggested by Eric Blake <ebb9@byu.net>.
36042
36043 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36044
36045         * doc/gnulib.texi (__func__): Use C99 terminology when talking
36046         about __func__.  Make example self-contained.  Suggested by Eric
36047         Blake <ebb9@byu.net>.
36048
36049         * tests/test-__func__.c (main): Avoid extraneous () around __func.
36050         Suggested by Eric Blake <ebb9@byu.net>.
36051
36052 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36053
36054         * modules/__func__: New file.
36055         * modules/__func__-tests: New file.
36056         * tests/test-__func__.c: New file.
36057         * m4/__func__.m4: New file.
36058         * doc/gnulib.texi (__func__): Document __func__ module.
36059
36060 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36061
36062         * modules/byteswap (License): Re-license as LGPLv2+.
36063
36064 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36065
36066         * doc/Makefile: Add pdf target.
36067
36068 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36069
36070         * modules/inline (License): Use 'unlimited', since there are only
36071         *.m4 files in this module.
36072
36073 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36074             Bruno Haible  <bruno@clisp.org>
36075
36076         Add support for HP C 7.1 on OpenVMS 8.3.
36077         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36078
36079 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36080
36081         Update VMS specifics.
36082         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36083
36084 2008-03-02  Jim Meyering  <meyering@redhat.com>
36085
36086         Remove the last dependency on the "free" module.
36087         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36088         Reported by Bob Proulx.
36089
36090         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36091
36092         Remove useless "if" tests before free.  Deprecate "free" module.
36093         * doc/posix-functions/free.texi: Mention that this
36094         module is no longer useful.
36095         * modules/free (Notice): Say this module is obsolete.
36096         * modules/readutmp (Depends-on): Remove free.
36097         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36098         * lib/putenv.c (putenv): Likewise.
36099         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36100         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36101         * tests/test-c-strcasestr.c (main): Likewise.
36102         * tests/test-c-strstr.c (main): Likewise.
36103         * tests/test-mbscasestr1.c (main): Likewise.
36104         * tests/test-mbscasestr2.c (main): Likewise.
36105         * tests/test-mbsstr1.c (main): Likewise.
36106         * tests/test-mbsstr2.c (main): Likewise.
36107         * tests/test-memmem.c (main): Likewise.
36108         * tests/test-strcasestr.c (main): Likewise.
36109         * tests/test-striconv.c (main): Likewise.
36110         * tests/test-striconveh.c (main): Likewise.
36111         * tests/test-striconveha.c (main): Likewise.
36112         * tests/test-strstr.c (main): Likewise.
36113
36114         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36115
36116         bootstrap: sync from coreutils again
36117         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36118
36119 2008-03-01  Jim Meyering  <meyering@redhat.com>
36120
36121         bootstrap: sync from coreutils
36122         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36123         also when the target doesn't exist.
36124
36125 2008-03-01  Eric Blake  <ebb9@byu.net>
36126
36127         Fix bugs in last patch.
36128         * lib/memchr2.c (memchr2): Fix typo.
36129         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36130         extension.
36131         Reported by Bruce Korb.
36132
36133         New module 'memchr2'.
36134         * modules/memchr2: New file.
36135         * modules/memchr2-tests: Likewise.
36136         * lib/memchr2.h: Likewise.
36137         * lib/memchr2.c: Likewise, based on memchr.c.
36138         * tests/test-memchr2.c: New test.
36139         * MODULES.html.sh (String handling): Add memchr2.
36140
36141 2008-02-29  Bruno Haible  <bruno@clisp.org>
36142
36143         * modules/freadseek-tests: New file.
36144         * tests/test-freadseek.sh: New file.
36145         * tests/test-freadseek.c: New file.
36146
36147         New module 'freadseek'.
36148         * modules/freadseek: New file.
36149         * lib/freadseek.h: New file.
36150         * lib/freadseek.c: New file.
36151         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36152
36153 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36154
36155         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36156         wydawca.
36157
36158         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36159         program_invocation_name and program_invocation_short_name are
36160         present.
36161
36162 2008-02-28  Bruno Haible  <bruno@clisp.org>
36163
36164         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36165         * tests/test-freadptr.sh: Also test non-seekable stdin.
36166
36167 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36168
36169         * build-aux/bootstrap (source_base, m4_base)
36170         (doc_base, tests_base): New variables.
36171         (gnulib_tool_options): Do not hardcode base directories, use
36172         the above variables instead.
36173
36174 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36175
36176         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36177
36178 2008-02-28  Bruno Haible  <bruno@clisp.org>
36179
36180         * modules/freadptr-tests: New file.
36181         * tests/test-freadptr.sh: New file.
36182         * tests/test-freadptr.c: New file.
36183
36184         New module 'freadptr'.
36185         * modules/freadptr: New file.
36186         * lib/freadptr.h: New file.
36187         * lib/freadptr.c: New file.
36188         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36189
36190 2008-02-26  Karl Berry  <karl@freefriends.org>
36191
36192         Sync from Libtool:
36193         * libltdl/argz.c (argz_add, argz_count): New functions.
36194         * libltdl/argz.in.h: Declare them.
36195         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36196
36197 2008-02-22  Bruno Haible  <bruno@clisp.org>
36198
36199         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36200         is a pointer type.  Needed for HP-UX 10.
36201         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36202         * doc/posix-functions/gmtime_r.texi: Likewise.
36203         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36204
36205 2008-02-24  Bruno Haible  <bruno@clisp.org>
36206
36207         * modules/environ-tests: New file.
36208         * tests/test-environ.c: New file.
36209
36210         New module 'environ'.
36211         * modules/environ: New file.
36212         * lib/unistd.in.h (environ): New declaration.
36213         * m4/environ.m4: New file.
36214         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36215         after use.
36216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36217         HAVE_DECL_ENVIRON.
36218         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36219         HAVE_DECL_ENVIRON.
36220         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36221         wrong claim that 'environ' is missing on some systems.
36222         * modules/execute (Depends-on): Add environ.
36223         * lib/execute.c (environ): Remove fallback declaration.
36224         * modules/pipe (Depends-on): Add environ.
36225         * lib/pipe.c (environ): Remove fallback declaration.
36226         * modules/setenv (Depends-on): Add environ.
36227         * lib/setenv.c (environ): Remove fallback declaration.
36228         * modules/unsetenv (Depends-on): Add environ.
36229         * lib/unsetenv.c (environ): Remove fallback declaration.
36230         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36231         m4/environ.m4.
36232         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36233         (gl_PREREQ_UNSETENV): Likewise.
36234
36235 2008-02-24  Bruno Haible  <bruno@clisp.org>
36236
36237         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36238
36239 2008-02-20  Bob Proulx  <bob@proulx.com>
36240
36241         Enable use of older two part flavor 'git describe'.
36242         * build-aux/git-version-gen: If using the older two part flavor of
36243         git version then recreate the third part now present in the
36244         newer three part flavor of git describe.
36245
36246 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36247
36248         * lib/fts.c (fts_build): Typo correction to comment.
36249
36250 2008-02-17  Bruno Haible  <bruno@clisp.org>
36251
36252         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36253         generating no-op conflicts.
36254
36255 2008-02-17  Bruno Haible  <bruno@clisp.org>
36256
36257         Speed up by 10%.
36258         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36259         result_entries, rather than an index-based loop.
36260
36261 2008-02-17  Bruno Haible  <bruno@clisp.org>
36262
36263         Speed up by 25%.
36264         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36265         'hashcode_cached'.
36266         (entry_create): New function.
36267         (entry_hashcode): Use the cached hashcode if possible.
36268         (read_changelog_file, try_split_merged_entry): Use entry_create.
36269
36270 2008-02-17  Bruno Haible  <bruno@clisp.org>
36271
36272         Speed up from O(n^2) to O(n) for long ChangeLog files.
36273         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36274         (read_changelog_file): Change implementation of entries_reversed list
36275         to rbtreehash.
36276         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36277
36278 2008-02-17  Bruno Haible  <bruno@clisp.org>
36279
36280         New option --split-merged-entry.
36281         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36282         (find_paragraph_end, try_split_merged_entry): New functions.
36283         (long_options): Add option --split-merged-entry.
36284         (usage): Document option --split-merged-entry.
36285         (main): Implement option --split-merged-entry.
36286         Reported by Eric Blake.
36287
36288 2008-02-17  Bruno Haible  <bruno@clisp.org>
36289
36290         * lib/git-merge-changelog.c: Include c-strstr.h.
36291         (main): Support the "git pull --rebase" situation.
36292         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36293         Reported by Eric Blake.
36294
36295 2008-02-16  Eric Blake  <ebb9@byu.net>
36296
36297         Avoid doubling \ in common case of "c-maybe" quoting style.
36298         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36299         eliding outer quotes.
36300         * lib/quotearg.h: Document this.
36301         * tests/test-quotearg.c (result_strings, inputs, results_g)
36302         (flag_results, locale_results): Test it by adding a new string to
36303         each test group.
36304         (compare_strings): Test new string.
36305
36306 2008-02-13  Eric Blake  <ebb9@byu.net>
36307
36308         Avoid trigraph quoting in default output.
36309         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36310         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36311         unless explicitly requested.
36312         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36313
36314 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36315
36316         Don't rely on signed integer overflowing to negative value.
36317         * lib/getugroups.c (getugroups): Include <limits.h>.
36318         Instead, compare against INT_MAX, and increment only if the test passes.
36319
36320 2008-02-13  Jim Meyering  <meyering@redhat.com>
36321         and Eric Blake  <ebb9@byu.net>
36322
36323         Avoid shadowing warning and compile errors on Linux.
36324         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36325         forwarding macros on Linux.
36326         (dcgettext): Define a stub, for Linux.
36327         (results_g, main): Avoid warnings.
36328
36329 2008-02-12  Eric Blake  <ebb9@byu.net>
36330
36331         Silence warning in last patch.
36332         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36333
36334         Quotearg part 4: add tests, fix c-maybe colon quoting.
36335         * lib/quotearg.h: Improve documentation.
36336         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36337         escapes when adding outer quotes.  When quoting trigraphs, use
36338         valid C notation.  When quoting NUL, omit extra characters if next
36339         character is not digit.  Alter prototype.
36340         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36341         callers.
36342         * modules/quotearg-tests: New module.
36343         * tests/test-quotearg.c: New test.
36344
36345 2008-02-07  Eric Blake  <ebb9@byu.net>
36346
36347         Quotearg part 3: add flag to control outer quote elision.
36348         * lib/quotearg.h (c_maybe_quoting_style): New style.
36349         (enum quoting_flags): Better documentation of flags.
36350         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36351         c-maybe style.
36352         (quotearg_buffer_restyled): Handle new flag to elide outer
36353         quotes.
36354
36355         Quotearg part 2: add flag that can control NUL elision.
36356         * lib/quotearg.h (set_quoting_flags): New prototype.
36357         * lib/quotearg.c (struct quoting_options): Add flag field.
36358         (set_quoting_flags): New function.
36359         (quotearg_buffer_restyled): Add flags parameter.
36360         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36361         (quotearg_n_options): Set the flag, since length cannot be
36362         returned.
36363         (quoting_options_from_style): Default flags correctly.
36364
36365         Quotearg part 1: more wrappers, restore quotearg_char state.
36366         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36367         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36368         (quotearg_colon_mem): New wrappers.
36369         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36370         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36371         functions.
36372         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36373         (quotearg_colon_mem): New functions.
36374
36375 2008-02-11  Bruno Haible  <bruno@clisp.org>
36376
36377         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36378         library in the current directory: it does not work with parallel make.
36379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36380
36381 2008-02-11  Bruno Haible  <bruno@clisp.org>
36382
36383         * .gitattributes: New file.
36384
36385 2008-02-11  Jim Meyering  <meyering@redhat.com>
36386
36387         useless-if-before-free: Fix reversed exit values.
36388         * build-aux/useless-if-before-free: Use correct values
36389         for EXIT_MATCH and EXIT_NO_MATCH.
36390
36391         * build-aux/useless-if-before-free: Close stdout carefully.
36392
36393 2008-02-10  Bruno Haible  <bruno@clisp.org>
36394
36395         New module 'git-merge-changelog'.
36396         * modules/git-merge-changelog: New file.
36397         * lib/git-merge-changelog.c: New file.
36398
36399 2008-02-10  Jim Meyering  <meyering@redhat.com>
36400
36401         useless-if-before-free: New option: --list (-l).
36402
36403         useless-if-before-free: Don't exit immediately upon open failure.
36404         * build-aux/useless-if-before-free: Exit 2 for errors.
36405         Upon failure to open a file, don't exit immediately.
36406         Rather, just warn and continue with any remaining files.
36407
36408 2008-02-10  Bruno Haible  <bruno@clisp.org>
36409
36410         New abstract list operation 'node_set_value'.
36411         * lib/gl_list.h (gl_list_node_set_value): New function.
36412         (struct gl_list_implementation): New field node_set_value.
36413         * lib/gl_list.c (gl_list_node_set_value): New function.
36414         * lib/gl_array_list.c (gl_array_node_set_value): New function.
36415         (gl_array_list_implementation): Update.
36416         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
36417         (gl_carray_list_implementation): Update.
36418         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
36419         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36420         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36421         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
36422         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36423         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36424         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36425         Update.
36426         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36427         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
36428         (gl_sublist_list_implementation): Update.
36429
36430 2008-02-10  Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
36433         Needed when ELEMENT is #defined to 'some_type *'.
36434
36435 2008-02-10  Jim Meyering  <meyering@redhat.com>
36436
36437         New script and module: useless-if-before-free
36438         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
36439         * build-aux/useless-if-before-free: New file.
36440         * modules/useless-if-before-free: New file.
36441
36442         * build-aux/gitlog-to-changelog: Use committer date, not author date.
36443
36444         xstrtol_error: Fix typo.
36445         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
36446         s/exit_failure/exit_status/.
36447
36448 2008-02-09  Jim Meyering  <meyering@redhat.com>
36449
36450         New script and module: gitlog-to-changelog
36451         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36452         * modules/gitlog-to-changelog: New file.
36453         * build-aux/gitlog-to-changelog: New file.
36454
36455 2008-02-08  Jim Meyering  <meyering@redhat.com>
36456
36457         Avoid two "parameter unused" warnings.
36458         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
36459         Mark "st" as used.
36460
36461         Use "git COMMAND", not "git-COMMAND".
36462         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
36463         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
36464         * build-aux/git-version-gen: Use "git status", not "git-status".
36465
36466 2008-02-07  Bruno Haible  <bruno@clisp.org>
36467
36468         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
36469         Avoids a crash on Windows Vista.
36470         Reported by Adam Strzelecki <ono@java.pl> via
36471         Simon Josefsson <simon@josefsson.org>.
36472
36473 2008-02-06  Bruno Haible  <bruno@clisp.org>
36474
36475         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
36476         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
36477         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
36478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
36479         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36481         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
36482         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
36483         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36484         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36485         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36486         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36487         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36490         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
36491         left-adjust flag.
36492         * tests/test-snprintf-posix.h (test_function): Likewise.
36493         * tests/test-sprintf-posix.h (test_function): Likewise.
36494         * tests/test-vasprintf-posix.c (test_function): Likewise.
36495         * doc/posix-functions/fprintf.texi: Update.
36496         * doc/posix-functions/printf.texi: Update.
36497         * doc/posix-functions/snprintf.texi: Update.
36498         * doc/posix-functions/sprintf.texi: Update.
36499         * doc/posix-functions/vfprintf.texi: Update.
36500         * doc/posix-functions/vprintf.texi: Update.
36501         * doc/posix-functions/vsnprintf.texi: Update.
36502         * doc/posix-functions/vsprintf.texi: Update.
36503         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36504
36505 2008-02-06  Bruno Haible  <bruno@clisp.org>
36506
36507         Fix bug introduced on 2008-01-26.
36508         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
36509
36510 2008-02-06  Bruno Haible  <bruno@clisp.org>
36511
36512         Fix bug introduced on 2007-06-10.
36513         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
36514         !NEED_PRINTF_FLAG_ZERO.
36515
36516 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
36517
36518         getloadavg: use libperfstat on AIX5
36519         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
36520
36521 2008-02-03  Bruno Haible  <bruno@clisp.org>
36522
36523         * lib/diffseq.h: Add comments about required #includes.
36524         Reported by Michael Biggs <gnulib@doubleplum.net>.
36525
36526 2008-02-01  Bruno Haible  <bruno@clisp.org>
36527
36528         * users.txt: Add gnuit.
36529
36530 2008-01-31  Bruno Haible  <bruno@clisp.org>
36531
36532         * lib/md4.c (set_uint32): Mark as inline.
36533         * lib/md5.c (set_uint32): Likewise.
36534         * lib/sha1.c (set_uint32): Likewise.
36535         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
36536         * m4/md5.m4 (gl_MD5): Likewise.
36537         * m4/sha1.m4 (gl_SHA1): Likewise.
36538
36539 2008-01-31  Jim Meyering  <meyering@redhat.com>
36540
36541         Use "sizeof VAR", rather than a literal "4".
36542         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
36543         * lib/md4.c (md4_read_ctx): Likewise.
36544         * lib/sha1.c (sha1_read_ctx): Likewise.
36545
36546 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36547
36548         * tests/test-sha1.c: New file, based on test-md5.c.
36549
36550         * modules/crypto/sha1-tests: New file.
36551
36552 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36553
36554         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
36555
36556 2008-01-31  Jim Meyering  <meyering@redhat.com>
36557
36558         Prefer "sizeof v" over the equivalent "4".
36559         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
36560         * lib/md5.c (set_uint32): Likewise.
36561         * lib/sha1.c (set_uint32): Likewise.
36562
36563 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36564
36565         * lib/sha1.c (set_uint32): Mark function as static.
36566
36567 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36568
36569         md2: clarify comments to say that alignment is not required.
36570         * lib/md2.h: Remove warning about alignment in comment.
36571         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
36572         never been required.
36573
36574 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36575
36576         md4: adapt alignment constraint fix from sha1.
36577         * lib/md4.c (set_uint32): New function, from sha1.c
36578         (md4_read_ctx): Use it.
36579         (md4_finish_ctx): Doc fix.
36580         * lib/md4.h: Doc fix.
36581
36582 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36583
36584         md5: adapt alignment constraint fix from sha1.
36585         * lib/md5.c (set_uint32): New function, from sha1.c
36586         (md5_read_ctx): Use it.
36587         (md5_finish_ctx): Doc fix.
36588         * lib/md5.h: Doc fix.
36589
36590 2008-01-30  Peter Palfrader  <weasel@debian.org>
36591
36592         sha1: remove the result buffer alignment constraint
36593         * lib/sha1.c (set_uint32): New function.
36594         (sha1_read_ctx): Rewrite to remove the result buffer alignment
36595         constraint.
36596         (sha1_finish_ctx): Remove comment warning about alignment constraint.
36597         * lib/sha1.h: Likewise.
36598
36599 2008-01-30  Andreas Schwab  <schwab@suse.de>
36600             Bruno Haible  <bruno@clisp.org>
36601
36602         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
36603         correct definition of LDBL_MIN_EXP.
36604
36605 2008-01-30  Karl Berry  <karl@gnu.org>
36606
36607         * config/srclist-update: try to preserve x bit on updates.
36608         * config/srclistvars.sh: update for karl.
36609
36610 2008-01-29  Jim Meyering  <meyering@redhat.com>
36611
36612         vasnprintf.c: Avoid warning about unused label
36613         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
36614         "overflow" label definition and associated code with the
36615         same cpp condition that guards the sole use of that label.
36616
36617 2008-01-26  Bruno Haible  <bruno@clisp.org>
36618
36619         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
36620         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
36621         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
36622         * lib/isnanl-nolibm.h (isnanl): Likewise.
36623         Reported by Paul Eggert <eggert@cs.ucla.edu>.
36624
36625 2008-01-26  Bruno Haible  <bruno@clisp.org>
36626
36627         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
36628         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
36629
36630 2008-01-26  Bruno Haible  <bruno@clisp.org>
36631
36632         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
36633         GCC >= 4.0 built-in.
36634         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
36635
36636 2008-01-26  Bruno Haible  <bruno@clisp.org>
36637
36638         Rename isnan, applicable to 'double' only, to isnand.
36639         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
36640         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
36641         (configure.ac): Update.
36642         (Include): Replace "isnan.h" with "isnand.h".
36643         * m4/isnand.m4: Renamed from m4/isnan.m4.
36644         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
36645         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
36646         instead of isnan.c.
36647         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
36648         instead of HAVE_ISNAN_IN_LIBC.
36649         (isnand): Renamed from isnan.
36650         * lib/isnand.c: New file.
36651         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
36652         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
36653         (Makefile.am): Update.
36654         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
36655         Include isnand.h instead of isnan.h.
36656         (main): Test isnand instead of isnan.
36657         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
36658         isnan-nolibm.
36659         * modules/frexp (Depends-on): Likewise.
36660         * modules/frexp-tests (Depends-on): Likewise.
36661         * modules/frexp-nolibm (Depends-on): Likewise.
36662         * modules/frexp-nolibm-tests (Depends-on): Likewise.
36663         * modules/isfinite (Depends-on): Likewise.
36664         * modules/round-tests (Depends-on): Likewise.
36665         * modules/signbit (Depends-on): Likewise.
36666         * modules/signbit-tests (Depends-on): Likewise.
36667         * modules/snprintf-posix (Depends-on): Likewise.
36668         * modules/sprintf-posix (Depends-on): Likewise.
36669         * modules/trunc-tests (Depends-on): Likewise.
36670         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36671         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36672         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36673         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36674         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36675         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36676         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36677         * modules/vasnprintf-posix (Depends-on): Likewise.
36678         * modules/vasprintf-posix (Depends-on): Likewise.
36679         * modules/vfprintf-posix (Depends-on): Likewise.
36680         * modules/vsnprintf-posix (Depends-on): Likewise.
36681         * modules/vsprintf-posix (Depends-on): Likewise.
36682         * lib/frexp.c: Include isnand.h instead of isnan.h.
36683         (ISNAN): Set to isnand instead of isnan.
36684         * lib/isfinite.c: Include isnand.h instead of isnan.h.
36685         (gl_isfinited): Use isnand instead of isnan.
36686         * lib/signbitd.c: Include isnand.h instead of isnan.h.
36687         (gl_signbitd): Use isnand instead of isnan.
36688         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
36689         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
36690         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
36691         (main): Use isnand instead of isnan.
36692         * tests/test-round1.c: Include isnand.h.
36693         (main): Use isnand instead of isnan.
36694         * tests/test-round2.c: Include isnand.h instead of isnan.h.
36695         (ISNAN): Set to isnand instead of isnan.
36696         * tests/test-trunc1.c: Include isnand.h.
36697         (main): Use isnand instead of isnan.
36698         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
36699         (equal): Use isnand instead of isnan.
36700         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
36701         isnand-nolibm.
36702         * NEWS: Mention the change.
36703
36704 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36705             Bruno Haible  <bruno@clisp.org>
36706
36707         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
36708         the GCC builtins for signbits are present and set
36709         REPLACE_SIGNBIT_USING_GCC if so.
36710         * lib/math.in.h (signbit): Define using GCC builtins if
36711         REPLACE_SIGNBIT_USING_GCC is set.
36712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
36713         REPLACE_SIGNBIT_USING_GCC.
36714         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
36715
36716 2008-01-25  Jim Meyering  <meyering@redhat.com>
36717
36718         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
36719         * lib/poll.c: Include <config.h>, not "config.h".
36720         * tests/test-getaddrinfo.c: Likewise.
36721
36722 2008-01-25  Simon Josefsson  <simon@josefsson.org>
36723
36724         * modules/sockets-tests: New file.
36725
36726 2008-01-24  Simon Josefsson  <simon@josefsson.org>
36727
36728         * modules/sockets: New module, can be used to call WSA_Startup and
36729         WSA_Cleanup when needed.
36730
36731         * lib/sockets.h, lib/sockets.c: New files.
36732
36733         * m4/sockets.m4: New file.
36734
36735         * tests/test-sockets.c: New file.
36736
36737 2008-01-19  Bruno Haible  <bruno@clisp.org>
36738
36739         * doc/posix-headers: Renamed from doc/headers.
36740         * doc/posix-functions: Renamed from doc/functions.
36741         * doc/gnulib.texi: Update.
36742
36743 2008-01-19  Bruno Haible  <bruno@clisp.org>
36744
36745         * doc/glibc-functions/strcasestr.texi: Include contents of
36746         doc/functions/strcasestr.texi, fixing the list of platforms.
36747         * doc/functions/strcasestr.texi: Remove file.
36748
36749 2008-01-19  Bruno Haible  <bruno@clisp.org>
36750
36751         * doc/glibc-functions/memmem.texi: Include contents of
36752         doc/functions/memmem.texi.
36753         * doc/functions/memmem.texi: Remove file.
36754
36755 2008-01-18  Bruno Haible  <bruno@clisp.org>
36756
36757         * doc/glibc-functions/*.texi: New files.
36758         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
36759         to use the new files.
36760
36761 2008-01-17  Bruno Haible  <bruno@clisp.org>
36762
36763         * tests/test-gethostname.c (main): Fix printf statement.
36764
36765 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36766
36767         * modules/gethostname-tests: New file.
36768
36769         * tests/test-gethostname.c: New file.
36770
36771 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36772
36773         * lib/gethostname.c: Include string.h unconditionally, strncpy is
36774         used by the UNAME case.  Reported by Bruno Haible
36775         <bruno@clisp.org>.
36776
36777 2008-01-17  Eric Blake  <ebb9@byu.net>
36778
36779         Convert c-strcasestr to be more efficient.
36780         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
36781         (Depends-on): Add c-strcase, remove malloca, strnlen.
36782         * tests/test-c-strcasestr.c (main): Enhance test.
36783         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
36784
36785 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36786
36787         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
36788         Use it in creating po/Makevars.
36789
36790 2008-01-15  Simon Josefsson  <simon@josefsson.org>
36791
36792         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
36793         Applications that requires it should initialize libgcrypt
36794         manually.
36795
36796 2008-01-16  Simon Josefsson  <simon@josefsson.org>
36797
36798         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
36799
36800 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36801
36802         Fix problem with getdate on mingw32 reported by Simon Josefsson
36803         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
36804         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
36805         tzname", when deciding whether to declare tzname.
36806         * lib/strftime.c (tzname): Likewise.
36807
36808 2008-01-15  Bruno Haible  <bruno@clisp.org>
36809
36810         Work around a MacOS X 10.5 bug in frexpl().
36811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
36812         * doc/functions/frexpl.texi: Document the bug.
36813         Reported by Elias Pipping <pipping@gentoo.org>.
36814
36815 2008-01-14  Eric Blake  <ebb9@byu.net>
36816
36817         Touch up previous patch.
36818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
36819         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
36820
36821         Convert strcasestr module to use Two-Way algorithm.
36822         * modules/strcasestr-simple: New module, based on the old
36823         strcasestr, but with Two-Way rather than KMP.
36824         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
36825         * lib/string.in.h (rpl_strcasestr): Declare.
36826         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
36827         performance.
36828         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
36829         * modules/string (Makefile.am): Support strcasestr.
36830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36831         * modules/strcasestr-tests (Depends-on): Check for alarm.
36832         * tests/test-strcasestr.c: Augment test.
36833         * lib/str-two-way.h: Clean up stray macro.
36834         * NEWS: Document new module.
36835         * MODULES.html.sh (string handling): Likewise.
36836         * doc/functions/strcasestr.texi: New file.
36837         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
36838         here, since it is not a POSIX function.
36839
36840 2008-01-14  Colin Watson  <cjwatson@debian.org>
36841             Bruno Haible  <bruno@clisp.org>
36842
36843         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
36844         works fine; if not, set REPLACE_STRSIGNAL.
36845         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
36846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36847         REPLACE_STRSIGNAL.
36848         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
36849         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
36850         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
36851
36852 2008-01-14  Bruno Haible  <bruno@clisp.org>
36853
36854         * modules/strsignal (Include): Change to <string.h>.
36855
36856 2008-01-14  Colin Watson  <cjwatson@debian.org>
36857
36858         * modules/argp (Notice): Add a notice recommending to change
36859         XGETTEXT_OPTIONS.
36860         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
36861
36862 2008-01-13  Colin Watson  <cjwatson@debian.org>
36863
36864         * modules/strsignal-tests: New file.
36865         * tests/test-strsignal.c: New file.
36866
36867         * lib/strsignal.c: New file, from glibc with modifications.
36868         * lib/siglist.h: New file, from glibc with modifications.
36869         * lib/string.in.h (strsignal): New declaration.
36870         * m4/strsignal.m4: New file.
36871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36872         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
36873         * modules/strsignal: New file.
36874         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
36875         HAVE_DECL_STRSIGNAL.
36876
36877 2008-01-13  Bruno Haible  <bruno@clisp.org>
36878
36879         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
36880         locale encoding is not ASCII. Needed for OpenBSD 4.0.
36881         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36882         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36883
36884 2008-01-13  Bruno Haible  <bruno@clisp.org>
36885
36886         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
36887         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
36888         * lib/argp.h (__attribute__): Likewise.
36889         * lib/c-stack.c (__attribute__): Likewise.
36890         * lib/error.h (__attribute__): Likewise.
36891         * lib/fts.c (__attribute__): Likewise.
36892         * lib/openat.h (__attribute__): Likewise.
36893         * lib/stdio.in.h (__attribute__): Likewise.
36894         * lib/string.in.h (__attribute__): Likewise.
36895         * lib/utimens.c (__attribute__): Likewise.
36896         * lib/vasnprintf.h (__attribute__): Likewise.
36897         * lib/xalloc.h (__attribute__): Likewise.
36898         * lib/xprintf.h (__attribute__): Likewise.
36899         * lib/xstrtol.h (__attribute__): Likewise.
36900         * lib/xvasprintf.h (__attribute__): Likewise.
36901
36902 2008-01-12  Bruno Haible  <bruno@clisp.org>
36903
36904         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
36905         * doc/glibc-headers/a.out.texi: New file.
36906         * doc/glibc-headers/aliases.texi: New file.
36907         * doc/glibc-headers/alloca.texi: New file.
36908         * doc/glibc-headers/ar.texi: New file.
36909         * doc/glibc-headers/argp.texi: New file.
36910         * doc/glibc-headers/argz.texi: New file.
36911         * doc/glibc-headers/byteswap.texi: New file.
36912         * doc/glibc-headers/crypt.texi: New file.
36913         * doc/glibc-headers/endian.texi: New file.
36914         * doc/glibc-headers/envz.texi: New file.
36915         * doc/glibc-headers/err.texi: New file.
36916         * doc/glibc-headers/error.texi: New file.
36917         * doc/glibc-headers/execinfo.texi: New file.
36918         * doc/glibc-headers/fpu_control.texi: New file.
36919         * doc/glibc-headers/fstab.texi: New file.
36920         * doc/glibc-headers/fts.texi: New file.
36921         * doc/glibc-headers/getopt.texi: New file.
36922         * doc/glibc-headers/ieee754.texi: New file.
36923         * doc/glibc-headers/ifaddrs.texi: New file.
36924         * doc/glibc-headers/libintl.texi: New file.
36925         * doc/glibc-headers/mcheck.texi: New file.
36926         * doc/glibc-headers/mntent.texi: New file.
36927         * doc/glibc-headers/obstack.texi: New file.
36928         * doc/glibc-headers/paths.texi: New file.
36929         * doc/glibc-headers/printf.texi: New file.
36930         * doc/glibc-headers/pty.texi: New file.
36931         * doc/glibc-headers/resolv.texi: New file.
36932         * doc/glibc-headers/shadow.texi: New file.
36933         * doc/glibc-headers/sysexits.texi: New file.
36934         * doc/glibc-headers/ttyent.texi: New file.
36935
36936 2008-01-12  Jim Meyering  <meyering@redhat.com>
36937
36938         announce-gen: emit Gnulib's git-based version string.
36939         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
36940         New option --gnulib-version=V, where V is expected to be
36941         the output of running git describe in the gnulib directory.
36942         (get_tool_versions): Request feedback on xdelta.  I suspect it's
36943         not useful, and plan to stop publishing an xdelta file with each
36944         coreutils release.
36945
36946         * build-aux/announce-gen: Also check for lzma-compressed files.
36947
36948 2008-01-11  Bruno Haible  <bruno@clisp.org>
36949
36950         * tests/test-memmem.c (main): Increase maximum allowed time.
36951         * tests/test-strstr.c (main): Likewise.
36952
36953 2008-01-11  Bruno Haible  <bruno@clisp.org>
36954
36955         * doc/functions/memmem.texi: Add more precisions about platforms.
36956         * doc/functions/strstr.texi: Likewise.
36957
36958 2008-01-10  Eric Blake  <ebb9@byu.net>
36959
36960         * m4/strstr.m4: Delete cruft from copy-n-paste.
36961         Reported by Bruno Haible.
36962
36963 2008-01-10  Bruno Haible  <bruno@clisp.org>
36964
36965         Make c-strstr rely on strstr.
36966         * lib/c-strstr.c: Don't include str-kmp.h.
36967         (c_strstr): Define in terms of strstr.
36968         * modules/c-strstr (Files): Remove lib/str-kmp.h.
36969         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
36970
36971 2008-01-10  Bruno Haible  <bruno@clisp.org>
36972
36973         * doc/gnulib.texi (String Functions in C Locale): New section.
36974         * doc/c-ctype.texi: New file.
36975         * doc/c-strcase.texi: New file.
36976         * doc/c-strcaseeq.texi: New file.
36977         * doc/c-strcasestr.texi: New file.
36978         * doc/c-strstr.texi: New file.
36979         * doc/c-strtod.texi: New file.
36980         * doc/c-strtold.texi: New file.
36981
36982 2008-01-10  Eric Blake  <ebb9@byu.net>
36983
36984         * lib/relocatable.h: Fix a comment.
36985
36986 2008-01-10  Eric Blake  <ebb9@byu.net>
36987
36988         Share two-way algorithm.
36989         * lib/str-two-way.h: New file, merged from...
36990         * lib/memmem.c: ...here...
36991         * lib/strstr.c: ...and here.
36992         * modules/memmem (Files): Use it.
36993         * modules/strstr (Files): Likewise.
36994
36995         Avoid quadratic strstr implementations.
36996         * lib/strstr.c: New file.
36997         * m4/strstr.m4: Likewise.
36998         * modules/strstr: Likewise.
36999         * modules/strstr-tests: Likewise.
37000         * tests/test-strstr.c: Likewise.
37001         * lib/string.in.h (rpl_strstr): Declare.
37002         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37004         * modules/string (Makefile.am): Likewise.
37005         * MODULES.html.sh (string handling): Mention new module.
37006         * doc/functions/strstr.texi (strstr): Document the bug.
37007
37008 2008-01-10  Bruno Haible  <bruno@clisp.org>
37009
37010         * lib/relocatable.h (relocate): State whether result is freshly
37011         allocated or not.
37012         * lib/relocatable.c (relocate): Return a freshly allocated string
37013         instead of a pointer to a privately held string.
37014         Reported by Sylvain Beucler <beuc@gnu.org>.
37015
37016 2008-01-10  Colin Watson  <cjwatson@debian.org>
37017
37018         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37019         s/S_ISNLK/S_ISLNK/.
37020
37021 2008-01-09  Bruno Haible  <bruno@clisp.org>
37022
37023         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37024         and other files.
37025         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37026         if it's only a guess.
37027         * modules/memmem: Simplify by depending on memmem-simple.
37028
37029 2008-01-09  Bruno Haible  <bruno@clisp.org>
37030
37031         Work around OpenBSD 4.0 tdelete() bug.
37032         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37033         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37034         macros and don't redefine the enum values.
37035         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37036         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37037         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37038
37039 2008-01-09  Bruno Haible  <bruno@clisp.org>
37040
37041         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37042         (main): Don't perform the tests if setlocale did not install a UTF-8
37043         locale. Needed on OpenBSD 4.0.
37044         * modules/wcwidth-tests (Depends-on): Add localcharset.
37045
37046 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37047
37048         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
37049         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
37050         * NEWS: announce this.
37051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
37052
37053 2008-01-09  Simon Josefsson  <simon@josefsson.org>
37054         and Eric Blake  <ebb9@byu.net>
37055
37056         Add memmem-simple module.
37057         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
37058         (gl_FUNC_MEMMEM): Separate performance from presence checks.
37059         * modules/memmem-simple: New file.
37060         * modules/memmem (Description): Tweak.
37061         * MODULES.html.sh (string handling): Mention new module.
37062         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
37063         addressed by memmem-simple.
37064         * NEWS: Document the difference.
37065
37066 2008-01-09  Eric Blake  <ebb9@byu.net>
37067
37068         Give gcc some memmem optimization hints.
37069         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37070         (strcasestr): Declare as pure.
37071         * modules/memmem (Maintainer): Claim my implementation.
37072
37073 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37074
37075         Support AIX 6.1 and higher.
37076         * build-aux/config.libpath: Likewise.
37077         * build-aux/config.rpath: Likewise.
37078
37079 2008-01-08  Jim Meyering  <meyering@redhat.com>
37080             Bruno Haible  <bruno@clisp.org>
37081
37082         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37083         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37084         Reported by Peter Fales in
37085         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37086
37087 2008-01-08  Bruno Haible  <bruno@clisp.org>
37088
37089         * modules/unictype/category-of (Depends-on): Add
37090         unictype/category-none.
37091         * modules/unictype/category-and-tests (Depends-on): Add
37092         unictype/category-{L,N,Lu,Nd}.
37093         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37094         * modules/unictype/category-or-tests (Depends-on): Add
37095         unictype/category-{L,N}.
37096         * modules/unictype/category-name-tests (Depends-on): Add
37097         unictype/category-{Z,Nl}.
37098         Reported by Simon Josefsson.
37099
37100 2008-01-08  Bruno Haible  <bruno@clisp.org>
37101
37102         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37103         convention better.
37104         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37105         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37106         Reported by Peter Miller <millerp@canb.auug.org.au>.
37107
37108 2008-01-08  Eric Blake  <ebb9@byu.net>
37109
37110         Rewrite memmem to guarantee linear complexity without malloc.
37111         * lib/memmem.c (memmem): Use Two-Way rather than
37112         Knuth-Morris-Pratt, to allow O(1) space usage.
37113         (critical_factorization, two_way_short_needle)
37114         (two_way_long_needle): New functions.
37115         (knuth_morris_pratt): Delete.
37116         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37117         Add stdint.
37118         * tests/test-memmem.c (main): Add tests for periodic needle and
37119         sublinear performance.
37120         * doc/functions/memmem.texi (memmem): Document other deficiencies
37121         in cygwin and older glibc.
37122
37123 2008-01-08  Bruno Haible  <bruno@clisp.org>
37124
37125         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37126         augmentation.
37127
37128 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37129
37130         Add a configure time option: --disable-acl.
37131         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37132         AC_ARG_ENABLE(acl).
37133
37134 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37135
37136         * tests/test-localename.c: Don't include obsolete "setenv.h".
37137
37138         * modules/localename-tests (Depends-on): Need unsetenv.
37139
37140 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37141
37142         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37143
37144 2008-01-06  Colin Watson  <cjwatson@debian.org>
37145
37146         * users.txt: Add man-db.
37147
37148 2008-01-07  Bruno Haible  <bruno@clisp.org>
37149
37150         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37151         previous section name.
37152
37153 2008-01-07  Bruno Haible  <bruno@clisp.org>
37154
37155         * lib/progname.c (set_program_name): Don't strip off a leading
37156         "lt-" prefix outside a .libs directory.
37157         Suggested by Paul Eggert.
37158
37159 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37160             Bruno Haible  <bruno@clisp.org>
37161
37162         Improve memory cleanup in 'relocatable' module.
37163         * lib/relocatable.h (compute_curr_prefix): Change return type to
37164         'char *'.
37165         * lib/relocatable.c (compute_curr_prefix): Change return type to
37166         'char *'. Free curr_installdir after use.
37167         (relocate): Free curr_prefix_better after use.
37168         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37169
37170 2008-01-01  Bruno Haible  <bruno@clisp.org>
37171
37172         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37173         failure on older glibc systems.
37174         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37175
37176 2008-01-05  Eric Blake  <ebb9@byu.net>
37177
37178         Avoid quadratic system memmem.
37179         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37180         Reported by Ralf Wildenhues.
37181
37182         Fix memmem test for mingw.
37183         * modules/memmem-tests (configure.ac): Check for alarm.
37184         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37185         it.
37186         * doc/functions/memmem.texi: New file.
37187         * doc/gnulib.texi (Function Substitutes): Add memmem.
37188         Reported by Bruno Haible.
37189
37190 2008-01-04  Bruno Haible  <bruno@clisp.org>
37191
37192         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37193         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37194         gl_HEADER_STRING_H_DEFAULTS.
37195
37196 2008-01-04  Eric Blake  <ebb9@byu.net>
37197
37198         Shorten duration of memmem test.
37199         * tests/test-memmem.c (main): Use alarm to declare failure if test
37200         is taking too long.
37201         Reported by Ralf Wildenhues.
37202
37203 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37204
37205         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37206         string, needed by strerror.
37207
37208 2008-01-03  Colin Watson  <cjwatson@debian.org>
37209             Bruno Haible  <bruno@clisp.org>
37210
37211         * doc/gnulib-tool.texi (Localization): New section.
37212
37213 2008-01-02  Bruno Haible  <bruno@clisp.org>
37214
37215         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37216         variables to 'unsigned char *' type.
37217         Reported by Paul Eggert.
37218
37219 2008-01-02  Jim Meyering  <jim@meyering.net>
37220
37221         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37222
37223 2007-12-31  Jim Meyering  <jim@meyering.net>
37224
37225         Avoid use of private FTS type name.
37226         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37227
37228 2007-12-30  Karl Berry  <karl@gnu.org>
37229
37230         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37231         work around defect in Texinfo and/or the standalone Info browser.
37232
37233 2007-12-30  Bruno Haible  <bruno@clisp.org>
37234
37235         Unify 5 copies of the KMP code.
37236         * lib/str-kmp.h: New file.
37237         * lib/c-strcasestr.c: Include str-kmp.h.
37238         (knuth_morris_pratt): Remove function.
37239         (c_strcasestr): Update.
37240         * lib/c-strstr.c: Include str-kmp.h.
37241         (knuth_morris_pratt): Remove function.
37242         (c_strcasestr): Update.
37243         * lib/mbscasestr.c: Include str-kmp.h.
37244         (knuth_morris_pratt_unibyte): Remove function.
37245         * lib/mbsstr.c: Include str-kmp.h.
37246         (knuth_morris_pratt_unibyte): Remove function.
37247         * lib/strcasestr.c: Include str-kmp.h.
37248         (knuth_morris_pratt): Remove function.
37249         (strcasestr): Update.
37250         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37251         * modules/c-strstr (Files): Likewise.
37252         * modules/mbscasestr (Files): Likewise.
37253         * modules/mbsstr (Files): Likewise.
37254         * modules/strcasestr (Files): Likewise.
37255         Suggested by Paul Eggert.
37256
37257 2007-12-30  Bruno Haible  <bruno@clisp.org>
37258
37259         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37260         defined.
37261
37262 2007-12-30  Bruno Haible  <bruno@clisp.org>
37263
37264         * lib/xmalloca.h: Include xalloc.h.
37265         (xnmalloca): New macro.
37266
37267 2007-12-30  Bruno Haible  <bruno@clisp.org>
37268
37269         * lib/malloca.h (nmalloca): New macro.
37270         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37271         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37272         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37273         knuth_morris_pratt_multibyte): Likewise.
37274         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37275         knuth_morris_pratt_multibyte): Likewise.
37276         * lib/memmem.c (knuth_morris_pratt): Likewise.
37277         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37278
37279 2007-12-25  Bruno Haible  <bruno@clisp.org>
37280
37281         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37282         * lib/glob.c: Don't include openat.h.
37283         (link_exists2_p): Add back the code that deals with the
37284         !GLOB_ALTDIRFUNC case.
37285         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37286         let it do the filename concatenation.
37287         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37288         * modules/glob (Depends-on): Remove openat.
37289
37290 2007-12-31  Bruno Haible  <bruno@clisp.org>
37291
37292         * modules/dirfd (License): Change to LGPLv2+.
37293         Approved by Jim Meyering.
37294
37295 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37296
37297         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37298         when multiplying M by sizeof (size_t).
37299
37300 2007-12-10  Martin Lambers  <marlam@marlam.de>
37301
37302         Override getpagesize on mingw.
37303         * lib/getpagesize.c: New file.
37304         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37305         * modules/getpagesize (Files): Add lib/getpagesize.c.
37306         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37308         REPLACE_GETPAGESIZE.
37309         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37310
37311 2007-12-25  Bruno Haible  <bruno@clisp.org>
37312
37313         * modules/localcharset (Notice): New field.
37314         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37315         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37316
37317 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37318             Bruno Haible  <bruno@clisp.org>
37319
37320         Avoid using the syntax symbol() in formatted documentation.
37321         * MODULES.html.sh (func_module): When replacing symbol() with a
37322         hyperlink, remove the parentheses. Show an error if some remain.
37323         Recognize and render the '...' syntax.
37324         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37325         Rework. Add paragraph about GCC's inlining.
37326         * doc/alloca.texi: Likewise.
37327         * doc/error.texi: Remove parentheses from symbol reference.
37328         * doc/gnulib-intro.texi: Likewise.
37329         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37330         * modules/fnmatch (Description): Reword to say "the ... function".
37331         * modules/full-read (Description): Likewise.
37332         * modules/full-write (Description): Likewise.
37333         * modules/safe-read (Description): Likewise.
37334         * modules/safe-write (Description): Likewise.
37335         * modules/strchrnul (Description): Likewise.
37336         * modules/trim (Description): Likewise.
37337         * modules/error (Description): Remove parentheses from symbol
37338         references.
37339         * modules/verror (Description): Likewise.
37340         Reported by Karl Berry.
37341
37342 2007-12-25  Bruno Haible  <bruno@clisp.org>
37343
37344         Fixup after 2007-10-16 commit.
37345         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37346
37347 2007-12-24  Bruno Haible  <bruno@clisp.org>
37348
37349         Make --enable-relocatable work with DESTDIR.
37350         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37351         to compute installdir from destprog.
37352         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37353         also set the RELOC_DESTDIR variable.
37354         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37355
37356 2007-12-24  Bruno Haible  <bruno@clisp.org>
37357
37358         Fix link error due to xalloc_die().
37359         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37360         of xreadlink.
37361         * lib/relocwrapper.c: Update comments.
37362         * build-aux/install-reloc: Remove xreadlink.c from file list.
37363         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37364         xreadlink.c.
37365         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37366
37367 2007-12-24  Bruno Haible  <bruno@clisp.org>
37368
37369         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37370         * lib/setenv.h: Remove file.
37371         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37372         lib/setenv.h.
37373         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37374         (Depends-on): Add stdlib.
37375         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37376         gl_FUNC_UNSETENV.
37377         (Include): Replace setenv.h with <stdlib.h>.
37378         * modules/unsetenv: New file.
37379         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37380         * lib/unsetenv.c: Include <stdlib.h> first.
37381         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
37382         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
37383         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
37384         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
37385         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
37386         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
37388         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37389         * doc/functions/unsetenv.texi: Update.
37390         * modules/xsetenv (Depends-on): Add unsetenv.
37391         * modules/getdate (Depends-on): Likewise.
37392         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
37393         * lib/xsetenv.c: Don't include setenv.h.
37394         * lib/getdate.y: Likewise.
37395         * lib/relocwrapper.c: Likewise.
37396         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
37397         (Depends-on): Add stdlib.
37398         * NEWS: Mention the changes.
37399         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37400
37401 2007-12-23  Bruno Haible  <bruno@clisp.org>
37402
37403         * lib/memmem.c (memmem): Use lowercase variable names. Tab
37404         indentation.
37405
37406 2007-12-23  Bruno Haible  <bruno@clisp.org>
37407
37408         * lib/c-strcasestr.c: Add more comments.
37409         * lib/c-strstr.c: Likewise.
37410         * lib/mbscasestr.c: Likewise.
37411         * lib/mbsstr.c: Likewise.
37412         * lib/strcasestr.c: Likewise.
37413         * lib/memmem.c: Likewise.
37414
37415 2007-12-23  Bruno Haible  <bruno@clisp.org>
37416
37417         * tests/test-memmem.c: Include <string.h> first.
37418
37419 2007-12-22  Bruno Haible  <bruno@clisp.org>
37420
37421         * gnulib-tool (func_create_testdir): Change $auxdir while generating
37422         the contents of $testsbase.
37423         Reported by Ralf Wildenhues.
37424
37425 2007-12-22  Bruno Haible  <bruno@clisp.org>
37426
37427         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
37428         two variables local_ldadd_before, local_ldadd_last.
37429
37430 2007-12-20  Eric Blake  <ebb9@byu.net>
37431
37432         Work around circular library issue when cross-compiling.
37433         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
37434         that progname.o does not need to pull in rpl_memcmp.
37435
37436 2007-12-19  Eric Blake  <ebb9@byu.net>
37437
37438         Fix memmem to avoid O(n^2) worst-case complexity.
37439         * lib/memmem.c (knuth_morris_pratt): New function.
37440         (memmem): Use it if first few naive iterations fail.
37441         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
37442         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
37443         * modules/memchr (License): Likewise.
37444         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
37445         malloca.
37446         * tests/test-memmem.c: Rewrite, borrowing ideas from
37447         test-mbsstr1.c; the old version wouldn't even compile!
37448         * modules/memmem-tests: New file.
37449         * lib/string.in.h (rpl_memmem): Add declaration.
37450         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37452         REPLACE_MEMMEM.
37453
37454 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37455
37456         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
37457         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
37458         before any system include files, and undef after them all.  This
37459         should fix a problem on VMS reported by John E. Malmberg in
37460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
37461
37462 2007-12-17  Eric Blake  <ebb9@byu.net>
37463
37464         Revert addition of verify, for BSD/OS.
37465         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
37466         can't handle large files, for the sake of obsolete platforms.
37467         * modules/fseeko (Depends-on): Remove verify.
37468         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
37469         * doc/functions/ftello.texi (ftello): Likewise.
37470         * doc/functions/fgetpos.texi (fgetpos): Likewise.
37471         Reported by Larry Jones.
37472
37473 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
37474
37475         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
37476         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
37477
37478 2007-12-17  Jim Meyering  <meyering@redhat.com>
37479
37480         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
37481         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
37482         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
37483         * modules/getcwd (Depends-on): Add openat.
37484         Reported by Petr Salinger.
37485
37486 2007-12-17  Bruno Haible  <bruno@clisp.org>
37487
37488         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
37489         avoid a segmentation fault of the configure test on x86_64 systems.
37490
37491 2007-12-15  Jim Meyering  <meyering@redhat.com>
37492
37493         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
37494
37495 2007-12-13  Eric Blake  <ebb9@byu.net>
37496
37497         Another fseek test.
37498         * tests/test-fseek.c (main): Also test ungetc handling.
37499         * tests/test-fseeko.c (main): Likewise.
37500         * modules/fseeko (Depends-on): Add verify.
37501         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
37502         large.
37503         Reported by Larry Jones.
37504
37505         Fix fseeko on mingw.
37506         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
37507         seek.
37508
37509         Beef up fseek tests.
37510         * tests/test-fseek.c (main): Also test eof handling.
37511         * tests/test-fseeko.c (main): Likewise.
37512         Reported by Larry Jones.
37513
37514 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
37515
37516         Fix fseeko on BSD-based platforms.
37517         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
37518         successful seek.
37519
37520 2007-12-12  Eric Blake  <ebb9@byu.net>
37521
37522         Allow circular dependency of separate libtests.a
37523         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
37524         when use_libtests.
37525
37526 2007-12-11  Eric Blake  <ebb9@byu.net>
37527
37528         Fix bug with -0.0L in previous patch.
37529         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
37530         * tests/test-isnan.c (main): Also test on zeroes.
37531         * tests/test-isnanf.c (main): Likewise.
37532         * tests/test-isnanl.h (main): Likewise.
37533
37534         Detect pseudo-denormals on x86 even when cross-compiling.
37535         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
37536         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
37537         invalid bit patterns that happen to satisfy ==.
37538
37539         Avoid link failures with separate libtests.a.
37540         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
37541         last, to satisfy circular dependencies.
37542
37543 2007-12-11  Eric Blake  <ebb9@byu.net>
37544         and Bruno Haible  <bruno@clisp.org>
37545
37546         Fix OpenBSD 4.0 <float.h> handling of long double.
37547         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
37548         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
37549         * doc/headers/float.texi (float.h): Document OpenBSD bug.
37550
37551 2007-12-11  Jim Meyering  <meyering@redhat.com>
37552
37553         * users.txt: Add libvirt.
37554
37555         Support versions of autoconf prior to 2.59c.
37556         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
37557         if it is not already defined.
37558
37559 2007-12-09  Bruno Haible  <bruno@clisp.org>
37560
37561         Let 'gnulib-tool --import' collect sources needed for the tests in
37562         tests/ rather than in lib/.
37563         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
37564         argument. If true, add rules to generate libtests.a, and put libtests.a
37565         into $(LDADD). Consider source files in subdirectories and set
37566         uses_subdirs.
37567         (func_emit_initmacro_start, func_emit_initmacro_end,
37568         func_emit_initmacro_done): Pass all arguments explicitly.
37569         (func_import): Determine two module lists main_modules,
37570         testsrelated_modules. Determine use_libtests. Determine two variables
37571         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
37572         instead of just sed_transform_lib_file. Determine two variables
37573         main_files and testsrelated_files. Compute 'files' as the union of
37574         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
37575         func_add_or_update. In the generated gnulib-comp.m4, collect the
37576         object files for tests/ in different variables than those for lib/.
37577         Substitute LIBTESTS_LIBDEPS.
37578         (func_create_testdir): Combine the uses_subdirs results from
37579         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
37580
37581 2007-12-09  Bruno Haible  <bruno@clisp.org>
37582
37583         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
37584         the build-aux directory.
37585
37586 2007-12-09  Bruno Haible  <bruno@clisp.org>
37587
37588         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
37589         introduced on 2006-09-09.
37590
37591 2007-12-07  Jim Meyering  <meyering@redhat.com>
37592
37593         Let these macros work also with autoconf-2.59.
37594         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
37595         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
37596         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37597
37598 2007-12-06  Jim Meyering  <meyering@redhat.com>
37599
37600         Avoid a configure-time syntax error in gl_FUNC_ACL.
37601         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
37602         function in each branch, before testing the cache variable.
37603
37604 2007-12-04  Eric Blake  <ebb9@byu.net>
37605
37606         Make scripts executable.
37607         * build-aux/config.guess: Add execute permissions.
37608         * build-aux/config.sub: Likewise.
37609         * build-aux/gendocs.sh: Likewise.
37610
37611         Fix frexp on mingw.
37612         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
37613         cross-compiling.
37614         * doc/functions/frexp.texi (frexp): Document the bug.
37615
37616         Make cygwin fseeko check more reliable.
37617         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
37618         version numbers, rather than unrelated feature check.
37619         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
37620         * doc/functions/ftello.texi (ftello): Likewise.
37621         Reported by Bruno Haible.
37622
37623         * m4/strerror.m4: Bump version number.
37624
37625 2007-12-03  Bruno Haible  <bruno@clisp.org>
37626
37627         * doc/functions/mprotect.texi: Mention the mingw problem.
37628
37629 2007-12-03  Eric Blake  <ebb9@byu.net>
37630
37631         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
37632         REPLACE_STRERROR is initialized before this macro.
37633
37634 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37635
37636         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
37637         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
37638         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
37639         put -lsec in even for programs other than 'ls'.  This fixes a problem
37640         for gettext reported by Bruno Haible in
37641         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
37642         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
37643         Add support for Solaris 10.  This isn't efficient, but should get the
37644         job done for now.
37645
37646 2007-12-03  James Youngman  <jay@gnu.org>
37647
37648         * doc/regexprops-generic.texi: change "an close-group" to "a
37649         close-group" and "illegal" to "not allowed".
37650
37651 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37652
37653         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
37654         pr_byname.h. Needed for the rare case when the maintainer has done
37655         "make maintainer-clean" in the source directory and then attempts a
37656         build outside the source directory.
37657         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
37658         scripts_byname.h.
37659
37660 2007-12-02  Martin Lambers <marlam@marlam.de>
37661             Bruno Haible  <bruno@clisp.org>
37662
37663         * lib/getpagesize.h: Remove file.
37664         * lib/unistd.in.h: Include declaration of getpagesize here.
37665         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
37666         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
37667         HAVE_SYS_PARAM_H.
37668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
37669         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37670         * modules/getpagesize (Files): Remove lib/getpagesize.h.
37671         (Depends-on): Add unistd.
37672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37673         (Include): Use <unistd.h> instead of getpagesize.h.
37674         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
37675         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37676         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
37677         gl_GETPAGESIZE invocation, already handled by module dependency.
37678         * lib/pagealign_alloc.c: Don't include getpagesize.h.
37679
37680 2007-12-02  Bruno Haible  <bruno@clisp.org>
37681
37682         * modules/strings-tests: New file.
37683         * tests/test-strings.c: New file.
37684
37685         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
37686         * lib/strings.in.h: New file.
37687         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
37688         * m4/strings_h.m4: New file.
37689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
37690         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
37691         * modules/strings: New file.
37692         * modules/string (Makefile.am): Update.
37693         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
37694         Reported by Karl Berry.
37695
37696 2007-12-01  Eric Blake  <ebb9@byu.net>
37697
37698         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
37699         accomodate fix in cygwin 1.5.25.
37700
37701 2007-12-01  Jim Meyering  <meyering@redhat.com>
37702
37703         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
37704         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
37705         that would inhibit utf8-optimization of a regexp containing line-
37706         or buffer-anchors, e.g., `^', `$'.
37707
37708 2007-11-30  Bruno Haible  <bruno@clisp.org>
37709
37710         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
37711         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
37712         glthread_recursive_lock_init.
37713         * lib/lock.c (glthread_recursive_lock_init)
37714         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
37715         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37716
37717 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
37718
37719         New function qset_acl, like set_acl but with syscall semantics.
37720         * lib/acl.h (qset_acl): New decl.
37721         * lib/acl.c (qset_acl): New function.
37722         (set_acl): Use new function.  Use more-consistent diagnostics.
37723
37724 2007-11-28  Jim Meyering  <meyering@redhat.com>
37725
37726         * modules/physmem (License): Change from GPL to LGPLv2+.
37727
37728 2007-11-26  Bruno Haible  <bruno@clisp.org>
37729
37730         * lib/vasnprintf.c (decode_long_double): Don't abort if the
37731         'long double' type has excess precision.
37732         Reported by Jim Meyering in
37733         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
37734
37735 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37736
37737         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
37738         Sync from <http://gnu.org/licenses>.
37739         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
37740         with license text from same location.
37741         * doc/maintain.texi, doc/standards.texi:  Sync from
37742         <http://savannah.gnu.org/projects/gnustandards>.
37743
37744 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
37745         and Jim Meyering  <meyering@redhat.com>
37746
37747         Adjust getdate' grammar to accept a slightly more regular language.
37748         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
37749         Before, the former was rejected.
37750         * lib/getdate.y (digits_to_date_time): New function, factored
37751         out of ...
37752         (number): ...here.  Just call digits_to_date_time.
37753         (hybrid): New non-terminal to handle an <unsigned number,
37754         signed relative offset> sequence consistently.
37755
37756 2007-11-18  Jim Meyering  <meyering@redhat.com>
37757
37758         Pull my changes from coreutils:
37759         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
37760         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
37761         use of $gnulib_tool_option_extras, so that it's separated from the
37762         preceding argument.
37763
37764         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
37765         * build-aux/bootstrap (cp_mark_as_generated): Create any required
37766         parent destination directories before copying a file into place.
37767
37768 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
37769
37770         bootstrap: work also with 4-argument variant of AC_INIT
37771         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
37772
37773 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37774
37775         Port test-getaddrinfo to Solaris.
37776         Problem reported by Bruno Haible in
37777         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
37778         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
37779         explanation of setting 'hints'.
37780         Don't reject an implementation merely because it returns EAI_SERVICE.
37781         (EAI_SERVICE): Define to 0 if not defined.
37782
37783 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37784
37785         The license of gnu-make and posix-shell is now "GPLed build tool".
37786         * modules/gnu-make (License): Likewise.
37787         * modules/posix-shell (License): Likewise.
37788
37789         New module posix-shell, for determining a POSIX shell
37790         or perhaps something that is close enough to a POSIX shell.
37791         * m4/posix-shell.m4: New file.
37792         * modules/posix-shell: New file.
37793
37794         * MODULES.html.sh: Mention new module.
37795
37796         New module gnu-make, for determining whether we're using GNU Make.
37797         * m4/gnu-make.m4: New file.
37798         * modules/gnu-make: New file.
37799         * MODULES.html.sh: Mention new module.
37800
37801 2007-11-14  Jim Meyering  <meyering@redhat.com>
37802
37803         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
37804         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
37805         use this macro to create a function _definition_.
37806         Remove useless "#undef ARGMATCH_DIE".
37807
37808 2007-11-14  Bruno Haible  <bruno@clisp.org>
37809
37810         * lib/config.charset: Update for OpenBSD 4.1.
37811         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
37812
37813 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
37814
37815         Document 64-bit #if problems in stdint.texi.
37816         * doc/headers/stdint.texi (stdint.h): Mention problems with
37817         64-bit-#if, and how to work around them.
37818
37819         Don't insist on 'long long int' support in the preprocessor.  It
37820         breaks too many things.  For example, PRIdMAX still uses a 'long
37821         long int' format with the latest Sun compiler, even though
37822         HAVE_LONG_LONG_INT isn't defined due to that compiler's
37823         preprocessor problem.  This causes the latest coreutils to dump
37824         core on Solaris 10 sparc with the Sun C compiler.
37825         Instead, fix the 2007-10-16 problem in a different way, by evaluating
37826         the troublesome expressions at configure-time, not at #if-time.
37827         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
37828         preprocessor.
37829         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
37830         compile-time C checks, done at 'configure'-time.
37831         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
37832         * modules/inttypes (Makefile): Substitute the new symbols that
37833         gl_INTTYPES_H now generates.
37834         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
37835
37836 2007-11-12  Bruno Haible  <bruno@clisp.org>
37837
37838         Tests for Unicode character classification functions.
37839
37840         * modules/unictype/bidicategory-byname-tests: New file.
37841         * modules/unictype/bidicategory-name-tests: New file.
37842         * modules/unictype/bidicategory-of-tests: New file.
37843         * modules/unictype/bidicategory-test-tests: New file.
37844         * modules/unictype/block-list-tests: New file.
37845         * modules/unictype/block-of-tests: New file.
37846         * modules/unictype/block-test-tests: New file.
37847         * modules/unictype/category-C-tests: New file.
37848         * modules/unictype/category-Cc-tests: New file.
37849         * modules/unictype/category-Cf-tests: New file.
37850         * modules/unictype/category-Cn-tests: New file.
37851         * modules/unictype/category-Co-tests: New file.
37852         * modules/unictype/category-Cs-tests: New file.
37853         * modules/unictype/category-L-tests: New file.
37854         * modules/unictype/category-Ll-tests: New file.
37855         * modules/unictype/category-Lm-tests: New file.
37856         * modules/unictype/category-Lo-tests: New file.
37857         * modules/unictype/category-Lt-tests: New file.
37858         * modules/unictype/category-Lu-tests: New file.
37859         * modules/unictype/category-M-tests: New file.
37860         * modules/unictype/category-Mc-tests: New file.
37861         * modules/unictype/category-Me-tests: New file.
37862         * modules/unictype/category-Mn-tests: New file.
37863         * modules/unictype/category-N-tests: New file.
37864         * modules/unictype/category-Nd-tests: New file.
37865         * modules/unictype/category-Nl-tests: New file.
37866         * modules/unictype/category-No-tests: New file.
37867         * modules/unictype/category-P-tests: New file.
37868         * modules/unictype/category-Pc-tests: New file.
37869         * modules/unictype/category-Pd-tests: New file.
37870         * modules/unictype/category-Pe-tests: New file.
37871         * modules/unictype/category-Pf-tests: New file.
37872         * modules/unictype/category-Pi-tests: New file.
37873         * modules/unictype/category-Po-tests: New file.
37874         * modules/unictype/category-Ps-tests: New file.
37875         * modules/unictype/category-S-tests: New file.
37876         * modules/unictype/category-Sc-tests: New file.
37877         * modules/unictype/category-Sk-tests: New file.
37878         * modules/unictype/category-Sm-tests: New file.
37879         * modules/unictype/category-So-tests: New file.
37880         * modules/unictype/category-Z-tests: New file.
37881         * modules/unictype/category-Zl-tests: New file.
37882         * modules/unictype/category-Zp-tests: New file.
37883         * modules/unictype/category-Zs-tests: New file.
37884         * modules/unictype/category-and-not-tests: New file.
37885         * modules/unictype/category-and-tests: New file.
37886         * modules/unictype/category-byname-tests: New file.
37887         * modules/unictype/category-name-tests: New file.
37888         * modules/unictype/category-none-tests: New file.
37889         * modules/unictype/category-of-tests: New file.
37890         * modules/unictype/category-or-tests: New file.
37891         * modules/unictype/category-test-withtable-tests: New file.
37892         * modules/unictype/combining-class-tests: New file.
37893         * modules/unictype/ctype-alnum-tests: New file.
37894         * modules/unictype/ctype-alpha-tests: New file.
37895         * modules/unictype/ctype-blank-tests: New file.
37896         * modules/unictype/ctype-cntrl-tests: New file.
37897         * modules/unictype/ctype-digit-tests: New file.
37898         * modules/unictype/ctype-graph-tests: New file.
37899         * modules/unictype/ctype-lower-tests: New file.
37900         * modules/unictype/ctype-print-tests: New file.
37901         * modules/unictype/ctype-punct-tests: New file.
37902         * modules/unictype/ctype-space-tests: New file.
37903         * modules/unictype/ctype-upper-tests: New file.
37904         * modules/unictype/ctype-xdigit-tests: New file.
37905         * modules/unictype/decimal-digit-tests: New file.
37906         * modules/unictype/digit-tests: New file.
37907         * modules/unictype/mirror-tests: New file.
37908         * modules/unictype/numeric-tests: New file.
37909         * modules/unictype/property-alphabetic-tests: New file.
37910         * modules/unictype/property-ascii-hex-digit-tests: New file.
37911         * modules/unictype/property-bidi-arabic-digit-tests: New file.
37912         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
37913         * modules/unictype/property-bidi-block-separator-tests: New file.
37914         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
37915         * modules/unictype/property-bidi-common-separator-tests: New file.
37916         * modules/unictype/property-bidi-control-tests: New file.
37917         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
37918         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
37919         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
37920         * modules/unictype/property-bidi-european-digit-tests: New file.
37921         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
37922         * modules/unictype/property-bidi-left-to-right-tests: New file.
37923         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
37924         * modules/unictype/property-bidi-other-neutral-tests: New file.
37925         * modules/unictype/property-bidi-pdf-tests: New file.
37926         * modules/unictype/property-bidi-segment-separator-tests: New file.
37927         * modules/unictype/property-bidi-whitespace-tests: New file.
37928         * modules/unictype/property-byname-tests: New file.
37929         * modules/unictype/property-combining-tests: New file.
37930         * modules/unictype/property-composite-tests: New file.
37931         * modules/unictype/property-currency-symbol-tests: New file.
37932         * modules/unictype/property-dash-tests: New file.
37933         * modules/unictype/property-decimal-digit-tests: New file.
37934         * modules/unictype/property-default-ignorable-code-point-tests: New file.
37935         * modules/unictype/property-deprecated-tests: New file.
37936         * modules/unictype/property-diacritic-tests: New file.
37937         * modules/unictype/property-extender-tests: New file.
37938         * modules/unictype/property-format-control-tests: New file.
37939         * modules/unictype/property-grapheme-base-tests: New file.
37940         * modules/unictype/property-grapheme-extend-tests: New file.
37941         * modules/unictype/property-grapheme-link-tests: New file.
37942         * modules/unictype/property-hex-digit-tests: New file.
37943         * modules/unictype/property-hyphen-tests: New file.
37944         * modules/unictype/property-id-continue-tests: New file.
37945         * modules/unictype/property-id-start-tests: New file.
37946         * modules/unictype/property-ideographic-tests: New file.
37947         * modules/unictype/property-ids-binary-operator-tests: New file.
37948         * modules/unictype/property-ids-trinary-operator-tests: New file.
37949         * modules/unictype/property-ignorable-control-tests: New file.
37950         * modules/unictype/property-iso-control-tests: New file.
37951         * modules/unictype/property-join-control-tests: New file.
37952         * modules/unictype/property-left-of-pair-tests: New file.
37953         * modules/unictype/property-line-separator-tests: New file.
37954         * modules/unictype/property-logical-order-exception-tests: New file.
37955         * modules/unictype/property-lowercase-tests: New file.
37956         * modules/unictype/property-math-tests: New file.
37957         * modules/unictype/property-non-break-tests: New file.
37958         * modules/unictype/property-not-a-character-tests: New file.
37959         * modules/unictype/property-numeric-tests: New file.
37960         * modules/unictype/property-other-alphabetic-tests: New file.
37961         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
37962         * modules/unictype/property-other-grapheme-extend-tests: New file.
37963         * modules/unictype/property-other-id-continue-tests: New file.
37964         * modules/unictype/property-other-id-start-tests: New file.
37965         * modules/unictype/property-other-lowercase-tests: New file.
37966         * modules/unictype/property-other-math-tests: New file.
37967         * modules/unictype/property-other-uppercase-tests: New file.
37968         * modules/unictype/property-paired-punctuation-tests: New file.
37969         * modules/unictype/property-paragraph-separator-tests: New file.
37970         * modules/unictype/property-pattern-syntax-tests: New file.
37971         * modules/unictype/property-pattern-white-space-tests: New file.
37972         * modules/unictype/property-private-use-tests: New file.
37973         * modules/unictype/property-punctuation-tests: New file.
37974         * modules/unictype/property-quotation-mark-tests: New file.
37975         * modules/unictype/property-radical-tests: New file.
37976         * modules/unictype/property-sentence-terminal-tests: New file.
37977         * modules/unictype/property-soft-dotted-tests: New file.
37978         * modules/unictype/property-space-tests: New file.
37979         * modules/unictype/property-terminal-punctuation-tests: New file.
37980         * modules/unictype/property-test-tests: New file.
37981         * modules/unictype/property-titlecase-tests: New file.
37982         * modules/unictype/property-unassigned-code-value-tests: New file.
37983         * modules/unictype/property-unified-ideograph-tests: New file.
37984         * modules/unictype/property-uppercase-tests: New file.
37985         * modules/unictype/property-variation-selector-tests: New file.
37986         * modules/unictype/property-white-space-tests: New file.
37987         * modules/unictype/property-xid-continue-tests: New file.
37988         * modules/unictype/property-xid-start-tests: New file.
37989         * modules/unictype/property-zero-width-tests: New file.
37990         * modules/unictype/scripts-tests: New file.
37991         * modules/unictype/syntax-c-ident-tests: New file.
37992         * modules/unictype/syntax-c-whitespace-tests: New file.
37993         * modules/unictype/syntax-java-ident-tests: New file.
37994         * modules/unictype/syntax-java-whitespace-tests: New file.
37995         * tests/unictype/test-bidi_byname.c: New file.
37996         * tests/unictype/test-bidi_name.c: New file.
37997         * tests/unictype/test-bidi_of.c: New file.
37998         * tests/unictype/test-bidi_test.c: New file.
37999         * tests/unictype/test-block_list.c: New file.
38000         * tests/unictype/test-block_of.c: New file.
38001         * tests/unictype/test-block_test.c: New file.
38002         * tests/unictype/test-categ_and.c: New file.
38003         * tests/unictype/test-categ_and_not.c: New file.
38004         * tests/unictype/test-categ_byname.c: New file.
38005         * tests/unictype/test-categ_name.c: New file.
38006         * tests/unictype/test-categ_none.c: New file.
38007         * tests/unictype/test-categ_of.c: New file.
38008         * tests/unictype/test-categ_or.c: New file.
38009         * tests/unictype/test-categ_test_withtable.c: New file.
38010         * tests/unictype/test-combining.c: New file.
38011         * tests/unictype/test-decdigit.c: New file.
38012         * tests/unictype/test-digit.c: New file.
38013         * tests/unictype/test-mirror.c: New file.
38014         * tests/unictype/test-numeric.c: New file.
38015         * tests/unictype/test-pr_byname.c: New file.
38016         * tests/unictype/test-pr_test.c: New file.
38017         * tests/unictype/test-predicate-part1.h: New file.
38018         * tests/unictype/test-predicate-part2.h: New file.
38019         * tests/unictype/test-scripts.c: New file.
38020         * tests/unictype/test-sy_c_ident.c: New file.
38021         * tests/unictype/test-sy_java_ident.c: New file.
38022
38023         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38024         for Unicode 5.0.0.
38025         * tests/unictype/test-categ_Cc.c: Likewise.
38026         * tests/unictype/test-categ_Cf.c: Likewise.
38027         * tests/unictype/test-categ_Cn.c: Likewise.
38028         * tests/unictype/test-categ_Co.c: Likewise.
38029         * tests/unictype/test-categ_Cs.c: Likewise.
38030         * tests/unictype/test-categ_L.c: Likewise.
38031         * tests/unictype/test-categ_Ll.c: Likewise.
38032         * tests/unictype/test-categ_Lm.c: Likewise.
38033         * tests/unictype/test-categ_Lo.c: Likewise.
38034         * tests/unictype/test-categ_Lt.c: Likewise.
38035         * tests/unictype/test-categ_Lu.c: Likewise.
38036         * tests/unictype/test-categ_M.c: Likewise.
38037         * tests/unictype/test-categ_Mc.c: Likewise.
38038         * tests/unictype/test-categ_Me.c: Likewise.
38039         * tests/unictype/test-categ_Mn.c: Likewise.
38040         * tests/unictype/test-categ_N.c: Likewise.
38041         * tests/unictype/test-categ_Nd.c: Likewise.
38042         * tests/unictype/test-categ_Nl.c: Likewise.
38043         * tests/unictype/test-categ_No.c: Likewise.
38044         * tests/unictype/test-categ_P.c: Likewise.
38045         * tests/unictype/test-categ_Pc.c: Likewise.
38046         * tests/unictype/test-categ_Pd.c: Likewise.
38047         * tests/unictype/test-categ_Pe.c: Likewise.
38048         * tests/unictype/test-categ_Pf.c: Likewise.
38049         * tests/unictype/test-categ_Pi.c: Likewise.
38050         * tests/unictype/test-categ_Po.c: Likewise.
38051         * tests/unictype/test-categ_Ps.c: Likewise.
38052         * tests/unictype/test-categ_S.c: Likewise.
38053         * tests/unictype/test-categ_Sc.c: Likewise.
38054         * tests/unictype/test-categ_Sk.c: Likewise.
38055         * tests/unictype/test-categ_Sm.c: Likewise.
38056         * tests/unictype/test-categ_So.c: Likewise.
38057         * tests/unictype/test-categ_Z.c: Likewise.
38058         * tests/unictype/test-categ_Zl.c: Likewise.
38059         * tests/unictype/test-categ_Zp.c: Likewise.
38060         * tests/unictype/test-categ_Zs.c: Likewise.
38061         * tests/unictype/test-ctype_alnum.c: Likewise.
38062         * tests/unictype/test-ctype_alpha.c: Likewise.
38063         * tests/unictype/test-ctype_blank.c: Likewise.
38064         * tests/unictype/test-ctype_cntrl.c: Likewise.
38065         * tests/unictype/test-ctype_digit.c: Likewise.
38066         * tests/unictype/test-ctype_graph.c: Likewise.
38067         * tests/unictype/test-ctype_lower.c: Likewise.
38068         * tests/unictype/test-ctype_print.c: Likewise.
38069         * tests/unictype/test-ctype_punct.c: Likewise.
38070         * tests/unictype/test-ctype_space.c: Likewise.
38071         * tests/unictype/test-ctype_upper.c: Likewise.
38072         * tests/unictype/test-ctype_xdigit.c: Likewise.
38073         * tests/unictype/test-decdigit.h: Likewise.
38074         * tests/unictype/test-digit.h: Likewise.
38075         * tests/unictype/test-numeric.h: Likewise.
38076         * tests/unictype/test-pr_alphabetic.c: Likewise.
38077         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38078         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38079         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38080         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38081         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38082         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38083         * tests/unictype/test-pr_bidi_control.c: Likewise.
38084         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38085         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38086         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38087         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38088         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38089         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38090         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38091         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38092         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38093         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38094         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38095         * tests/unictype/test-pr_combining.c: Likewise.
38096         * tests/unictype/test-pr_composite.c: Likewise.
38097         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38098         * tests/unictype/test-pr_dash.c: Likewise.
38099         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38100         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38101         * tests/unictype/test-pr_deprecated.c: Likewise.
38102         * tests/unictype/test-pr_diacritic.c: Likewise.
38103         * tests/unictype/test-pr_extender.c: Likewise.
38104         * tests/unictype/test-pr_format_control.c: Likewise.
38105         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38106         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38107         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38108         * tests/unictype/test-pr_hex_digit.c: Likewise.
38109         * tests/unictype/test-pr_hyphen.c: Likewise.
38110         * tests/unictype/test-pr_id_continue.c: Likewise.
38111         * tests/unictype/test-pr_id_start.c: Likewise.
38112         * tests/unictype/test-pr_ideographic.c: Likewise.
38113         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38114         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38115         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38116         * tests/unictype/test-pr_iso_control.c: Likewise.
38117         * tests/unictype/test-pr_join_control.c: Likewise.
38118         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38119         * tests/unictype/test-pr_line_separator.c: Likewise.
38120         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38121         * tests/unictype/test-pr_lowercase.c: Likewise.
38122         * tests/unictype/test-pr_math.c: Likewise.
38123         * tests/unictype/test-pr_non_break.c: Likewise.
38124         * tests/unictype/test-pr_not_a_character.c: Likewise.
38125         * tests/unictype/test-pr_numeric.c: Likewise.
38126         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38127         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38128         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38129         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38130         * tests/unictype/test-pr_other_id_start.c: Likewise.
38131         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38132         * tests/unictype/test-pr_other_math.c: Likewise.
38133         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38134         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38135         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38136         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38137         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38138         * tests/unictype/test-pr_private_use.c: Likewise.
38139         * tests/unictype/test-pr_punctuation.c: Likewise.
38140         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38141         * tests/unictype/test-pr_radical.c: Likewise.
38142         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38143         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38144         * tests/unictype/test-pr_space.c: Likewise.
38145         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38146         * tests/unictype/test-pr_titlecase.c: Likewise.
38147         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38148         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38149         * tests/unictype/test-pr_uppercase.c: Likewise.
38150         * tests/unictype/test-pr_variation_selector.c: Likewise.
38151         * tests/unictype/test-pr_white_space.c: Likewise.
38152         * tests/unictype/test-pr_xid_continue.c: Likewise.
38153         * tests/unictype/test-pr_xid_start.c: Likewise.
38154         * tests/unictype/test-pr_zero_width.c: Likewise.
38155         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38156         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38157
38158 2007-11-12  Bruno Haible  <bruno@clisp.org>
38159
38160         Unicode character classification functions.
38161         * lib/unictype.h: New file.
38162         * modules/unictype/base: New file.
38163         * modules/unictype/category-L: New file.
38164         * modules/unictype/category-Lu: New file.
38165         * modules/unictype/category-Ll: New file.
38166         * modules/unictype/category-Lt: New file.
38167         * modules/unictype/category-Lm: New file.
38168         * modules/unictype/category-Lo: New file.
38169         * modules/unictype/category-M: New file.
38170         * modules/unictype/category-Mn: New file.
38171         * modules/unictype/category-Mc: New file.
38172         * modules/unictype/category-Me: New file.
38173         * modules/unictype/category-N: New file.
38174         * modules/unictype/category-Nd: New file.
38175         * modules/unictype/category-Nl: New file.
38176         * modules/unictype/category-No: New file.
38177         * modules/unictype/category-P: New file.
38178         * modules/unictype/category-Pc: New file.
38179         * modules/unictype/category-Pd: New file.
38180         * modules/unictype/category-Ps: New file.
38181         * modules/unictype/category-Pe: New file.
38182         * modules/unictype/category-Pi: New file.
38183         * modules/unictype/category-Pf: New file.
38184         * modules/unictype/category-Po: New file.
38185         * modules/unictype/category-S: New file.
38186         * modules/unictype/category-Sm: New file.
38187         * modules/unictype/category-Sc: New file.
38188         * modules/unictype/category-Sk: New file.
38189         * modules/unictype/category-So: New file.
38190         * modules/unictype/category-Z: New file.
38191         * modules/unictype/category-Zs: New file.
38192         * modules/unictype/category-Zl: New file.
38193         * modules/unictype/category-Zp: New file.
38194         * modules/unictype/category-C: New file.
38195         * modules/unictype/category-Cc: New file.
38196         * modules/unictype/category-Cf: New file.
38197         * modules/unictype/category-Cs: New file.
38198         * modules/unictype/category-Co: New file.
38199         * modules/unictype/category-Cn: New file.
38200         * modules/unictype/category-or: New file.
38201         * modules/unictype/category-of: New file.
38202         * modules/unictype/category-test: New file.
38203         * modules/unictype/category-test-withtable: New file.
38204         * modules/unictype/category-byname: New file.
38205         * modules/unictype/category-none: New file.
38206         * modules/unictype/category-and: New file.
38207         * modules/unictype/category-and-not: New file.
38208         * modules/unictype/category-name: New file.
38209         * modules/unictype/combining-class: New file.
38210         * modules/unictype/category-all: New file.
38211         * modules/unictype/bidicategory-all: New file.
38212         * modules/unictype/bidicategory-byname: New file.
38213         * modules/unictype/bidicategory-name: New file.
38214         * modules/unictype/bidicategory-of: New file.
38215         * modules/unictype/bidicategory-test: New file.
38216         * modules/unictype/decimal-digit: New file.
38217         * modules/unictype/digit: New file.
38218         * modules/unictype/numeric: New file.
38219         * modules/unictype/mirror: New file.
38220         * modules/unictype/property-white-space: New file.
38221         * modules/unictype/property-alphabetic: New file.
38222         * modules/unictype/property-other-alphabetic: New file.
38223         * modules/unictype/property-not-a-character: New file.
38224         * modules/unictype/property-default-ignorable-code-point: New file.
38225         * modules/unictype/property-other-default-ignorable-code-point: New
38226         file.
38227         * modules/unictype/property-deprecated: New file.
38228         * modules/unictype/property-logical-order-exception: New file.
38229         * modules/unictype/property-variation-selector: New file.
38230         * modules/unictype/property-private-use: New file.
38231         * modules/unictype/property-unassigned-code-value: New file.
38232         * modules/unictype/property-uppercase: New file.
38233         * modules/unictype/property-other-uppercase: New file.
38234         * modules/unictype/property-lowercase: New file.
38235         * modules/unictype/property-other-lowercase: New file.
38236         * modules/unictype/property-titlecase: New file.
38237         * modules/unictype/property-soft-dotted: New file.
38238         * modules/unictype/property-id-start: New file.
38239         * modules/unictype/property-other-id-start: New file.
38240         * modules/unictype/property-id-continue: New file.
38241         * modules/unictype/property-other-id-continue: New file.
38242         * modules/unictype/property-xid-start: New file.
38243         * modules/unictype/property-xid-continue: New file.
38244         * modules/unictype/property-pattern-white-space: New file.
38245         * modules/unictype/property-pattern-syntax: New file.
38246         * modules/unictype/property-join-control: New file.
38247         * modules/unictype/property-grapheme-base: New file.
38248         * modules/unictype/property-grapheme-extend: New file.
38249         * modules/unictype/property-other-grapheme-extend: New file.
38250         * modules/unictype/property-grapheme-link: New file.
38251         * modules/unictype/property-bidi-control: New file.
38252         * modules/unictype/property-bidi-left-to-right: New file.
38253         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38254         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38255         * modules/unictype/property-bidi-european-digit: New file.
38256         * modules/unictype/property-bidi-eur-num-separator: New file.
38257         * modules/unictype/property-bidi-eur-num-terminator: New file.
38258         * modules/unictype/property-bidi-arabic-digit: New file.
38259         * modules/unictype/property-bidi-common-separator: New file.
38260         * modules/unictype/property-bidi-block-separator: New file.
38261         * modules/unictype/property-bidi-segment-separator: New file.
38262         * modules/unictype/property-bidi-whitespace: New file.
38263         * modules/unictype/property-bidi-non-spacing-mark: New file.
38264         * modules/unictype/property-bidi-boundary-neutral: New file.
38265         * modules/unictype/property-bidi-pdf: New file.
38266         * modules/unictype/property-bidi-embedding-or-override: New file.
38267         * modules/unictype/property-bidi-other-neutral: New file.
38268         * modules/unictype/property-hex-digit: New file.
38269         * modules/unictype/property-ascii-hex-digit: New file.
38270         * modules/unictype/property-ideographic: New file.
38271         * modules/unictype/property-unified-ideograph: New file.
38272         * modules/unictype/property-radical: New file.
38273         * modules/unictype/property-ids-binary-operator: New file.
38274         * modules/unictype/property-ids-trinary-operator: New file.
38275         * modules/unictype/property-zero-width: New file.
38276         * modules/unictype/property-space: New file.
38277         * modules/unictype/property-non-break: New file.
38278         * modules/unictype/property-iso-control: New file.
38279         * modules/unictype/property-format-control: New file.
38280         * modules/unictype/property-dash: New file.
38281         * modules/unictype/property-hyphen: New file.
38282         * modules/unictype/property-punctuation: New file.
38283         * modules/unictype/property-line-separator: New file.
38284         * modules/unictype/property-paragraph-separator: New file.
38285         * modules/unictype/property-quotation-mark: New file.
38286         * modules/unictype/property-sentence-terminal: New file.
38287         * modules/unictype/property-terminal-punctuation: New file.
38288         * modules/unictype/property-currency-symbol: New file.
38289         * modules/unictype/property-math: New file.
38290         * modules/unictype/property-other-math: New file.
38291         * modules/unictype/property-paired-punctuation: New file.
38292         * modules/unictype/property-left-of-pair: New file.
38293         * modules/unictype/property-combining: New file.
38294         * modules/unictype/property-composite: New file.
38295         * modules/unictype/property-decimal-digit: New file.
38296         * modules/unictype/property-numeric: New file.
38297         * modules/unictype/property-diacritic: New file.
38298         * modules/unictype/property-extender: New file.
38299         * modules/unictype/property-ignorable-control: New file.
38300         * modules/unictype/property-test: New file.
38301         * modules/unictype/property-byname: New file.
38302         * modules/unictype/property-all: New file.
38303         * modules/unictype/scripts: New file.
38304         * modules/unictype/scripts-all: New file.
38305         * modules/unictype/block-of: New file.
38306         * modules/unictype/block-test: New file.
38307         * modules/unictype/block-list: New file.
38308         * modules/unictype/block-all: New file.
38309         * modules/unictype/syntax-c-whitespace: New file.
38310         * modules/unictype/syntax-java-whitespace: New file.
38311         * modules/unictype/syntax-c-ident: New file.
38312         * modules/unictype/syntax-java-ident: New file.
38313         * modules/unictype/ctype-alnum: New file.
38314         * modules/unictype/ctype-alpha: New file.
38315         * modules/unictype/ctype-cntrl: New file.
38316         * modules/unictype/ctype-digit: New file.
38317         * modules/unictype/ctype-graph: New file.
38318         * modules/unictype/ctype-lower: New file.
38319         * modules/unictype/ctype-print: New file.
38320         * modules/unictype/ctype-punct: New file.
38321         * modules/unictype/ctype-space: New file.
38322         * modules/unictype/ctype-upper: New file.
38323         * modules/unictype/ctype-xdigit: New file.
38324         * modules/unictype/ctype-blank: New file.
38325         * lib/unictype/bidi_byname.c: New file.
38326         * lib/unictype/bidi_name.c: New file.
38327         * lib/unictype/bidi_of.c: New file.
38328         * lib/unictype/bidi_test.c: New file.
38329         * lib/unictype/bitmap.h: New file.
38330         * lib/unictype/block_test.c: New file.
38331         * lib/unictype/blocks.c: New file.
38332         * lib/unictype/categ_C.c: New file.
38333         * lib/unictype/categ_Cc.c: New file.
38334         * lib/unictype/categ_Cf.c: New file.
38335         * lib/unictype/categ_Cn.c: New file.
38336         * lib/unictype/categ_Co.c: New file.
38337         * lib/unictype/categ_Cs.c: New file.
38338         * lib/unictype/categ_L.c: New file.
38339         * lib/unictype/categ_Ll.c: New file.
38340         * lib/unictype/categ_Lm.c: New file.
38341         * lib/unictype/categ_Lo.c: New file.
38342         * lib/unictype/categ_Lt.c: New file.
38343         * lib/unictype/categ_Lu.c: New file.
38344         * lib/unictype/categ_M.c: New file.
38345         * lib/unictype/categ_Mc.c: New file.
38346         * lib/unictype/categ_Me.c: New file.
38347         * lib/unictype/categ_Mn.c: New file.
38348         * lib/unictype/categ_N.c: New file.
38349         * lib/unictype/categ_Nd.c: New file.
38350         * lib/unictype/categ_Nl.c: New file.
38351         * lib/unictype/categ_No.c: New file.
38352         * lib/unictype/categ_P.c: New file.
38353         * lib/unictype/categ_Pc.c: New file.
38354         * lib/unictype/categ_Pd.c: New file.
38355         * lib/unictype/categ_Pe.c: New file.
38356         * lib/unictype/categ_Pf.c: New file.
38357         * lib/unictype/categ_Pi.c: New file.
38358         * lib/unictype/categ_Po.c: New file.
38359         * lib/unictype/categ_Ps.c: New file.
38360         * lib/unictype/categ_S.c: New file.
38361         * lib/unictype/categ_Sc.c: New file.
38362         * lib/unictype/categ_Sk.c: New file.
38363         * lib/unictype/categ_Sm.c: New file.
38364         * lib/unictype/categ_So.c: New file.
38365         * lib/unictype/categ_Z.c: New file.
38366         * lib/unictype/categ_Zl.c: New file.
38367         * lib/unictype/categ_Zp.c: New file.
38368         * lib/unictype/categ_Zs.c: New file.
38369         * lib/unictype/categ_and.c: New file.
38370         * lib/unictype/categ_and_not.c: New file.
38371         * lib/unictype/categ_byname.c: New file.
38372         * lib/unictype/categ_name.c: New file.
38373         * lib/unictype/categ_none.c: New file.
38374         * lib/unictype/categ_of.c: New file.
38375         * lib/unictype/categ_or.c: New file.
38376         * lib/unictype/categ_test.c: New file.
38377         * lib/unictype/combining.c: New file.
38378         * lib/unictype/ctype_alnum.c: New file.
38379         * lib/unictype/ctype_alpha.c: New file.
38380         * lib/unictype/ctype_blank.c: New file.
38381         * lib/unictype/ctype_cntrl.c: New file.
38382         * lib/unictype/ctype_digit.c: New file.
38383         * lib/unictype/ctype_graph.c: New file.
38384         * lib/unictype/ctype_lower.c: New file.
38385         * lib/unictype/ctype_print.c: New file.
38386         * lib/unictype/ctype_punct.c: New file.
38387         * lib/unictype/ctype_space.c: New file.
38388         * lib/unictype/ctype_upper.c: New file.
38389         * lib/unictype/ctype_xdigit.c: New file.
38390         * lib/unictype/decdigit.c: New file.
38391         * lib/unictype/digit.c: New file.
38392         * lib/unictype/identsyntaxmap.h: New file.
38393         * lib/unictype/mirror.c: New file.
38394         * lib/unictype/numeric.c: New file.
38395         * lib/unictype/pr_alphabetic.c: New file.
38396         * lib/unictype/pr_ascii_hex_digit.c: New file.
38397         * lib/unictype/pr_bidi_arabic_digit.c: New file.
38398         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
38399         * lib/unictype/pr_bidi_block_separator.c: New file.
38400         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
38401         * lib/unictype/pr_bidi_common_separator.c: New file.
38402         * lib/unictype/pr_bidi_control.c: New file.
38403         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
38404         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
38405         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
38406         * lib/unictype/pr_bidi_european_digit.c: New file.
38407         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
38408         * lib/unictype/pr_bidi_left_to_right.c: New file.
38409         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
38410         * lib/unictype/pr_bidi_other_neutral.c: New file.
38411         * lib/unictype/pr_bidi_pdf.c: New file.
38412         * lib/unictype/pr_bidi_segment_separator.c: New file.
38413         * lib/unictype/pr_bidi_whitespace.c: New file.
38414         * lib/unictype/pr_byname.c: New file.
38415         * lib/unictype/pr_byname.gperf: New file.
38416         * lib/unictype/pr_combining.c: New file.
38417         * lib/unictype/pr_composite.c: New file.
38418         * lib/unictype/pr_currency_symbol.c: New file.
38419         * lib/unictype/pr_dash.c: New file.
38420         * lib/unictype/pr_decimal_digit.c: New file.
38421         * lib/unictype/pr_default_ignorable_code_point.c: New file.
38422         * lib/unictype/pr_deprecated.c: New file.
38423         * lib/unictype/pr_diacritic.c: New file.
38424         * lib/unictype/pr_extender.c: New file.
38425         * lib/unictype/pr_format_control.c: New file.
38426         * lib/unictype/pr_grapheme_base.c: New file.
38427         * lib/unictype/pr_grapheme_extend.c: New file.
38428         * lib/unictype/pr_grapheme_link.c: New file.
38429         * lib/unictype/pr_hex_digit.c: New file.
38430         * lib/unictype/pr_hyphen.c: New file.
38431         * lib/unictype/pr_id_continue.c: New file.
38432         * lib/unictype/pr_id_start.c: New file.
38433         * lib/unictype/pr_ideographic.c: New file.
38434         * lib/unictype/pr_ids_binary_operator.c: New file.
38435         * lib/unictype/pr_ids_trinary_operator.c: New file.
38436         * lib/unictype/pr_ignorable_control.c: New file.
38437         * lib/unictype/pr_iso_control.c: New file.
38438         * lib/unictype/pr_join_control.c: New file.
38439         * lib/unictype/pr_left_of_pair.c: New file.
38440         * lib/unictype/pr_line_separator.c: New file.
38441         * lib/unictype/pr_logical_order_exception.c: New file.
38442         * lib/unictype/pr_lowercase.c: New file.
38443         * lib/unictype/pr_math.c: New file.
38444         * lib/unictype/pr_non_break.c: New file.
38445         * lib/unictype/pr_not_a_character.c: New file.
38446         * lib/unictype/pr_numeric.c: New file.
38447         * lib/unictype/pr_other_alphabetic.c: New file.
38448         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
38449         * lib/unictype/pr_other_grapheme_extend.c: New file.
38450         * lib/unictype/pr_other_id_continue.c: New file.
38451         * lib/unictype/pr_other_id_start.c: New file.
38452         * lib/unictype/pr_other_lowercase.c: New file.
38453         * lib/unictype/pr_other_math.c: New file.
38454         * lib/unictype/pr_other_uppercase.c: New file.
38455         * lib/unictype/pr_paired_punctuation.c: New file.
38456         * lib/unictype/pr_paragraph_separator.c: New file.
38457         * lib/unictype/pr_pattern_syntax.c: New file.
38458         * lib/unictype/pr_pattern_white_space.c: New file.
38459         * lib/unictype/pr_private_use.c: New file.
38460         * lib/unictype/pr_punctuation.c: New file.
38461         * lib/unictype/pr_quotation_mark.c: New file.
38462         * lib/unictype/pr_radical.c: New file.
38463         * lib/unictype/pr_sentence_terminal.c: New file.
38464         * lib/unictype/pr_soft_dotted.c: New file.
38465         * lib/unictype/pr_space.c: New file.
38466         * lib/unictype/pr_terminal_punctuation.c: New file.
38467         * lib/unictype/pr_test.c: New file.
38468         * lib/unictype/pr_titlecase.c: New file.
38469         * lib/unictype/pr_unassigned_code_value.c: New file.
38470         * lib/unictype/pr_unified_ideograph.c: New file.
38471         * lib/unictype/pr_uppercase.c: New file.
38472         * lib/unictype/pr_variation_selector.c: New file.
38473         * lib/unictype/pr_white_space.c: New file.
38474         * lib/unictype/pr_xid_continue.c: New file.
38475         * lib/unictype/pr_xid_start.c: New file.
38476         * lib/unictype/pr_zero_width.c: New file.
38477         * lib/unictype/scripts.c: New file.
38478         * lib/unictype/sy_c_ident.c: New file.
38479         * lib/unictype/sy_c_whitespace.c: New file.
38480         * lib/unictype/sy_java_ident.c: New file.
38481         * lib/unictype/sy_java_whitespace.c: New file.
38482
38483         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
38484         Unicode 5.0.0.
38485         * lib/unictype/blocks.h: Likewise.
38486         * lib/unictype/categ_C.h: Likewise.
38487         * lib/unictype/categ_Cc.h: Likewise.
38488         * lib/unictype/categ_Cf.h: Likewise.
38489         * lib/unictype/categ_Cn.h: Likewise.
38490         * lib/unictype/categ_Co.h: Likewise.
38491         * lib/unictype/categ_Cs.h: Likewise.
38492         * lib/unictype/categ_L.h: Likewise.
38493         * lib/unictype/categ_Ll.h: Likewise.
38494         * lib/unictype/categ_Lm.h: Likewise.
38495         * lib/unictype/categ_Lo.h: Likewise.
38496         * lib/unictype/categ_Lt.h: Likewise.
38497         * lib/unictype/categ_Lu.h: Likewise.
38498         * lib/unictype/categ_M.h: Likewise.
38499         * lib/unictype/categ_Mc.h: Likewise.
38500         * lib/unictype/categ_Me.h: Likewise.
38501         * lib/unictype/categ_Mn.h: Likewise.
38502         * lib/unictype/categ_N.h: Likewise.
38503         * lib/unictype/categ_Nd.h: Likewise.
38504         * lib/unictype/categ_Nl.h: Likewise.
38505         * lib/unictype/categ_No.h: Likewise.
38506         * lib/unictype/categ_P.h: Likewise.
38507         * lib/unictype/categ_Pc.h: Likewise.
38508         * lib/unictype/categ_Pd.h: Likewise.
38509         * lib/unictype/categ_Pe.h: Likewise.
38510         * lib/unictype/categ_Pf.h: Likewise.
38511         * lib/unictype/categ_Pi.h: Likewise.
38512         * lib/unictype/categ_Po.h: Likewise.
38513         * lib/unictype/categ_Ps.h: Likewise.
38514         * lib/unictype/categ_S.h: Likewise.
38515         * lib/unictype/categ_Sc.h: Likewise.
38516         * lib/unictype/categ_Sk.h: Likewise.
38517         * lib/unictype/categ_Sm.h: Likewise.
38518         * lib/unictype/categ_So.h: Likewise.
38519         * lib/unictype/categ_Z.h: Likewise.
38520         * lib/unictype/categ_Zl.h: Likewise.
38521         * lib/unictype/categ_Zp.h: Likewise.
38522         * lib/unictype/categ_Zs.h: Likewise.
38523         * lib/unictype/categ_of.h: Likewise.
38524         * lib/unictype/combining.h: Likewise.
38525         * lib/unictype/ctype_alnum.h: Likewise.
38526         * lib/unictype/ctype_alpha.h: Likewise.
38527         * lib/unictype/ctype_blank.h: Likewise.
38528         * lib/unictype/ctype_cntrl.h: Likewise.
38529         * lib/unictype/ctype_digit.h: Likewise.
38530         * lib/unictype/ctype_graph.h: Likewise.
38531         * lib/unictype/ctype_lower.h: Likewise.
38532         * lib/unictype/ctype_print.h: Likewise.
38533         * lib/unictype/ctype_punct.h: Likewise.
38534         * lib/unictype/ctype_space.h: Likewise.
38535         * lib/unictype/ctype_upper.h: Likewise.
38536         * lib/unictype/ctype_xdigit.h: Likewise.
38537         * lib/unictype/decdigit.h: Likewise.
38538         * lib/unictype/digit.h: Likewise.
38539         * lib/unictype/mirror.h: Likewise.
38540         * lib/unictype/numeric.h: Likewise.
38541         * lib/unictype/pr_alphabetic.h: Likewise.
38542         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38543         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38544         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38545         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38546         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38547         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38548         * lib/unictype/pr_bidi_control.h: Likewise.
38549         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38550         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38551         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38552         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38553         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38554         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38555         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38556         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38557         * lib/unictype/pr_bidi_pdf.h: Likewise.
38558         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38559         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38560         * lib/unictype/pr_combining.h: Likewise.
38561         * lib/unictype/pr_composite.h: Likewise.
38562         * lib/unictype/pr_currency_symbol.h: Likewise.
38563         * lib/unictype/pr_dash.h: Likewise.
38564         * lib/unictype/pr_decimal_digit.h: Likewise.
38565         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38566         * lib/unictype/pr_deprecated.h: Likewise.
38567         * lib/unictype/pr_diacritic.h: Likewise.
38568         * lib/unictype/pr_extender.h: Likewise.
38569         * lib/unictype/pr_format_control.h: Likewise.
38570         * lib/unictype/pr_grapheme_base.h: Likewise.
38571         * lib/unictype/pr_grapheme_extend.h: Likewise.
38572         * lib/unictype/pr_grapheme_link.h: Likewise.
38573         * lib/unictype/pr_hex_digit.h: Likewise.
38574         * lib/unictype/pr_hyphen.h: Likewise.
38575         * lib/unictype/pr_id_continue.h: Likewise.
38576         * lib/unictype/pr_id_start.h: Likewise.
38577         * lib/unictype/pr_ideographic.h: Likewise.
38578         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38579         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38580         * lib/unictype/pr_ignorable_control.h: Likewise.
38581         * lib/unictype/pr_iso_control.h: Likewise.
38582         * lib/unictype/pr_join_control.h: Likewise.
38583         * lib/unictype/pr_left_of_pair.h: Likewise.
38584         * lib/unictype/pr_line_separator.h: Likewise.
38585         * lib/unictype/pr_logical_order_exception.h: Likewise.
38586         * lib/unictype/pr_lowercase.h: Likewise.
38587         * lib/unictype/pr_math.h: Likewise.
38588         * lib/unictype/pr_non_break.h: Likewise.
38589         * lib/unictype/pr_not_a_character.h: Likewise.
38590         * lib/unictype/pr_numeric.h: Likewise.
38591         * lib/unictype/pr_other_alphabetic.h: Likewise.
38592         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38593         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38594         * lib/unictype/pr_other_id_continue.h: Likewise.
38595         * lib/unictype/pr_other_id_start.h: Likewise.
38596         * lib/unictype/pr_other_lowercase.h: Likewise.
38597         * lib/unictype/pr_other_math.h: Likewise.
38598         * lib/unictype/pr_other_uppercase.h: Likewise.
38599         * lib/unictype/pr_paired_punctuation.h: Likewise.
38600         * lib/unictype/pr_paragraph_separator.h: Likewise.
38601         * lib/unictype/pr_pattern_syntax.h: Likewise.
38602         * lib/unictype/pr_pattern_white_space.h: Likewise.
38603         * lib/unictype/pr_private_use.h: Likewise.
38604         * lib/unictype/pr_punctuation.h: Likewise.
38605         * lib/unictype/pr_quotation_mark.h: Likewise.
38606         * lib/unictype/pr_radical.h: Likewise.
38607         * lib/unictype/pr_sentence_terminal.h: Likewise.
38608         * lib/unictype/pr_soft_dotted.h: Likewise.
38609         * lib/unictype/pr_space.h: Likewise.
38610         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38611         * lib/unictype/pr_titlecase.h: Likewise.
38612         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38613         * lib/unictype/pr_unified_ideograph.h: Likewise.
38614         * lib/unictype/pr_uppercase.h: Likewise.
38615         * lib/unictype/pr_variation_selector.h: Likewise.
38616         * lib/unictype/pr_white_space.h: Likewise.
38617         * lib/unictype/pr_xid_continue.h: Likewise.
38618         * lib/unictype/pr_xid_start.h: Likewise.
38619         * lib/unictype/pr_zero_width.h: Likewise.
38620         * lib/unictype/scripts.h: Likewise.
38621         * lib/unictype/scripts_byname.gperf: Likewise.
38622         * lib/unictype/sy_c_ident.h: Likewise.
38623         * lib/unictype/sy_c_whitespace.h: Likewise.
38624         * lib/unictype/sy_java_ident.h: Likewise.
38625         * lib/unictype/sy_java_whitespace.h: Likewise.
38626
38627         * lib/unictype/Makefile: New file.
38628         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
38629         glibc.
38630         * lib/unictype/3level.h: New file, copied from glibc.
38631         * lib/unictype/3levelbit.h: New file.
38632
38633 2007-11-11  Bruno Haible  <bruno@clisp.org>
38634
38635         * modules/gperf: New file.
38636         * modules/iconv_open (Depends-on): Add it.
38637         (Makefile.am): Remove the GPERF definition.
38638
38639 2007-11-11  Bruno Haible  <bruno@clisp.org>
38640
38641         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
38642         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
38643
38644 2007-11-11  Bruno Haible  <bruno@clisp.org>
38645
38646         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
38647         (usage): Remove function.
38648
38649 2007-11-11  Bruno Haible  <bruno@clisp.org>
38650
38651         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
38652         gl_FUNC_CEILF_LIBS.
38653         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
38654         gl_FUNC_CEIL_LIBS.
38655         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
38656         gl_FUNC_CEILL_LIBS.
38657         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
38658         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
38659         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
38660
38661 2007-11-11  Bruno Haible  <bruno@clisp.org>
38662
38663         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
38664         roundf were declared but do not exist on functions.
38665         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
38666         roundl were declared but do not exist on functions.
38667         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
38668         HAVE_FLOORL_AND_CEILL, respectively.
38669         Needed for Sun C on Solaris 10.
38670
38671 2007-11-11  Bruno Haible  <bruno@clisp.org>
38672
38673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
38674         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
38675         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
38676         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
38677         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
38678         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
38679         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
38680         HAVE_DECL_ROUNDF.
38681         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
38682         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
38683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
38684         of HAVE_DECL_ROUND*.
38685         * modules/math (Makefile.am): Update.
38686
38687 2007-11-10  Bruno Haible  <bruno@clisp.org>
38688
38689         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
38690         ptrdiff_t as m4/intl.m4.
38691
38692 2007-11-10  Jim Meyering  <meyering@redhat.com>
38693
38694         Avoid link failure for the argmatch test.
38695         * tests/test-argmatch.c (usage): Define function to avoid a link
38696         failure: argmatch_die requires a usage function.
38697
38698 2007-11-09  Bruno Haible  <bruno@clisp.org>
38699
38700         * doc/functions/snprintf.texi: Mention BeOS deficiency.
38701         * doc/functions/vsnprintf.texi: Likewise.
38702         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
38703         with a size argument < 2.
38704
38705 2007-11-09  Bruno Haible  <bruno@clisp.org>
38706
38707         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
38708         buffer. Fixes an inefficiency introduced on 2007-11-03.
38709
38710 2007-11-09  Bruno Haible  <bruno@clisp.org>
38711
38712         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
38713         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
38714
38715 2007-11-08  Jim Meyering  <meyering@redhat.com>
38716
38717         Change cache variable name prefix "jm_" to "gl_" everywhere.
38718         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
38719         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
38720         * m4/uptime.m4: s/gl_/jm_/
38721
38722 2007-11-07  Bruno Haible  <bruno@clisp.org>
38723
38724         Update to GNU gettext 0.17.
38725         * m4/intl.m4: Update to GNU gettext 0.17.
38726         * m4/po.m4: Likewise.
38727         * modules/gettext (Files): Remove m4/ulonglong.m4.
38728         (configure.ac): Require gettext infrastructure from version 0.17.
38729
38730 2007-11-06  Bruno Haible  <bruno@clisp.org>
38731
38732         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
38733         symbolic values are not defined in a public header.
38734         * lib/freadable.c (freadable) [QNX]: Likewise.
38735         * lib/freadahead.c (freadahead) [QNX]: Likewise.
38736         * lib/freading.c (freading) [QNX]: Likewise.
38737         * lib/fseterr.c (fseterr) [QNX]: Likewise.
38738         * lib/fwritable.c (fwritable) [QNX]: Likewise.
38739         * lib/fwriting.c (fwriting) [QNX]: Likewise.
38740         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
38741         Reported by Alain Magloire.
38742
38743         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
38744
38745 2007-11-05  Bruno Haible  <bruno@clisp.org>
38746
38747         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
38748         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
38749         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
38750         Reported by Eric Blake.
38751
38752 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38753             Bruno Haible  <bruno@clisp.org>
38754
38755         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
38756         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
38757         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
38758         (malloc): Undefine also before including <stdlib.h>.
38759         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
38760         Needed on OSF/1 4.0.
38761
38762 2007-11-05  Jim Meyering  <meyering@redhat.com>
38763
38764         git-version-gen: sync from coreutils.
38765         * build-aux/git-version-gen: Add comments.
38766         Change the first '-' to '.' in the snapshot version string,
38767         e.g., 6.9-377-08144 -> 6.9.377-08144
38768         Remove first parameter.
38769         Don't declare a version "-dirty" merely because a time
38770         stamp has changed.
38771
38772 2007-11-04  Bruno Haible  <bruno@clisp.org>
38773
38774         * lib/lock.h: Protect all macro definitions containing an 'if'
38775         statement through a "do { ... } while (0)".
38776         * lib/tls.h: Likewise.
38777
38778 2007-11-04  Bruno Haible  <bruno@clisp.org>
38779
38780         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
38781
38782 2007-11-04  Bruno Haible  <bruno@clisp.org>
38783
38784         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
38785         * modules/fprintf-posix (Depends-on): Add nocrash.
38786         * modules/snprintf-posix (Depends-on): Likewise.
38787         * modules/sprintf-posix (Depends-on): Likewise.
38788         * modules/vasnprintf-posix (Depends-on): Likewise.
38789         * modules/vasprintf-posix (Depends-on): Likewise.
38790         * modules/vfprintf-posix (Depends-on): Likewise.
38791         * modules/vsnprintf-posix (Depends-on): Likewise.
38792         * modules/vsprintf-posix (Depends-on): Likewise.
38793         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38794         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38795         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38796         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38797         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38798         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38799         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38800
38801 2007-11-04  Bruno Haible  <bruno@clisp.org>
38802
38803         * modules/nocrash: New file.
38804         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
38805         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
38806
38807 2007-11-04  Bruno Haible  <bruno@clisp.org>
38808
38809         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
38810         precision handling.
38811         * tests/test-vasprintf-posix.c (test_function): Likewise.
38812         * tests/test-snprintf-posix.h (test_function): Likewise.
38813         * tests/test-sprintf-posix.h (test_function): Likewise.
38814
38815         Fix *printf behaviour for large precisions on mingw and BeOS.
38816         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
38817         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
38818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
38819         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38820         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38821         gl_PRINTF_PRECISION and test its result. Invoke
38822         gl_PREREQ_VASNPRINTF_PRECISION.
38823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38824         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38827         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38830         * doc/functions/fprintf.texi: Update.
38831         * doc/functions/printf.texi: Update.
38832         * doc/functions/snprintf.texi: Update.
38833         * doc/functions/sprintf.texi: Update.
38834         * doc/functions/vfprintf.texi: Update.
38835         * doc/functions/vprintf.texi: Update.
38836         * doc/functions/vsnprintf.texi: Update.
38837         * doc/functions/vsprintf.texi: Update.
38838
38839 2007-11-04  Bruno Haible  <bruno@clisp.org>
38840
38841         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
38842
38843 2007-11-04  Bruno Haible  <bruno@clisp.org>
38844
38845         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
38846         Reported by Sylvain Beucler <beuc@gnu.org>.
38847
38848 2007-11-03  Bruno Haible  <bruno@clisp.org>
38849
38850         * tests/test-fprintf-posix2.sh: New file.
38851         * tests/test-fprintf-posix2.c: New file.
38852         * modules/fprintf-posix-tests (Files): Add them.
38853         (TESTS): Add test-fprintf-posix2.sh.
38854         (configure.ac): Check for getrlimit and setrlimit.
38855         (check_PROGRAMS): Add test-fprintf-posix2.
38856
38857         * tests/test-printf-posix2.sh: New file.
38858         * tests/test-printf-posix2.c: New file.
38859         * modules/printf-posix-tests (Files): Add them.
38860         (TESTS): Add test-printf-posix2.sh.
38861         (configure.ac): Check for getrlimit and setrlimit.
38862         (check_PROGRAMS): Add test-printf-posix2.
38863
38864         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
38865         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
38866         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
38867         (decode_double): New function, copied from decode_long_double.
38868         (scale10_round_decimal_decoded): New function, extracted from
38869         scale10_round_decimal_long_double.
38870         (scale10_round_decimal_long_double): Use it.
38871         (scale10_round_decimal_double): New function.
38872         (floorlog10): New function.
38873         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
38874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
38875         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38876         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38877         gl_PRINTF_ENOMEM and test its result. Invoke
38878         gl_PREREQ_VASNPRINTF_ENOMEM.
38879         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38880         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38881         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38882         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38883         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38884         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38885         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38886         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
38887         * modules/snprintf-posix (Depends-on): Likewise.
38888         * modules/sprintf-posix (Depends-on): Likewise.
38889         * modules/vasnprintf-posix (Depends-on): Likewise.
38890         * modules/vasprintf-posix (Depends-on): Likewise.
38891         * modules/vfprintf-posix (Depends-on): Likewise.
38892         * modules/vsnprintf-posix (Depends-on): Likewise.
38893         * modules/vsprintf-posix (Depends-on): Likewise.
38894         * doc/functions/fprintf.texi: Update.
38895         * doc/functions/printf.texi: Update.
38896         * doc/functions/snprintf.texi: Update.
38897         * doc/functions/sprintf.texi: Update.
38898         * doc/functions/vfprintf.texi: Update.
38899         * doc/functions/vprintf.texi: Update.
38900         * doc/functions/vsnprintf.texi: Update.
38901         * doc/functions/vsprintf.texi: Update.
38902
38903 2007-11-03  Bruno Haible  <bruno@clisp.org>
38904
38905         * modules/frexp-nolibm-tests: New file.
38906
38907         * modules/frexp-nolibm: New file.
38908         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
38909
38910 2007-11-03  Bruno Haible  <bruno@clisp.org>
38911
38912         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
38913         value is C99 compliant.
38914         Needed for OSF/1 5.1.
38915
38916 2007-11-03  Bruno Haible  <bruno@clisp.org>
38917
38918         Fix out-of-memory handling of vasnprintf.
38919         * lib/printf-parse.c: Include <errno.h>.
38920         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
38921         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
38922         is already set.
38923
38924 2007-11-02  Eric Blake  <ebb9@byu.net>
38925
38926         Fix tests on cygwin.
38927         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
38928
38929 2007-11-01  Bruno Haible  <bruno@clisp.org>
38930
38931         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
38932         warning.
38933         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
38934         needed for POSIX compatibility.
38935
38936 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
38937
38938         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
38939         for compatibility with GNU.
38940
38941 2007-11-01  Bruno Haible  <bruno@clisp.org>
38942
38943         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
38944         (putenv): Renamed from rpl_putenv. Change argument type from
38945         'const char *' to 'char *'.
38946         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
38947         of defining putenv in config.h, just set REPLACE_PUTENV.
38948         * modules/putenv (Depends-on): Add stdlib.
38949         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38950         (Include): Use <stdlib.h>.
38951         * lib/stdlib.in.h (putenv): New declaration.
38952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
38953         REPLACE_PUTENV.
38954         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
38955         REPLACE_PUTENV.
38956         Needed for MacOS X 10.5.0.
38957         Reported by Peter O'Gorman <peter@pogma.com>.
38958
38959 2007-11-01  Jim Meyering  <meyering@redhat.com>
38960
38961         Treat an empty date string exactly like "0".
38962         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
38963         if the remaining date string (to be parsed) is empty, use "0".
38964         Reported by Mischa Molhoek and discussed in this thread:
38965         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
38966
38967 2007-10-31  Bruno Haible  <bruno@clisp.org>
38968
38969         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
38970         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
38971         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
38972         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
38973         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
38974         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
38975
38976 2007-10-31  Bruno Haible  <bruno@clisp.org>
38977
38978         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
38979         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
38980         (AC_TYPE_LONG_LONG_INT): Use it.
38981         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
38982         it as well.
38983         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
38984         to m4/longlong.m4.
38985         * modules/stdint (Files): Remove m4/ulonglong.m4.
38986         * modules/strtoull (Files): Use m4/longlong.m4 instead of
38987         m4/ulonglong.m4.
38988         * modules/strtoumax (Files): Likewise.
38989
38990 2007-10-30  Bruno Haible  <bruno@clisp.org>
38991
38992         * modules/xvasprintf-posix: New file.
38993         Suggested by Eric Blake.
38994
38995 2007-10-30  Bruno Haible  <bruno@clisp.org>
38996
38997         * modules/xprintf-posix-tests: New file.
38998         * tests/test-xprintf-posix.sh: New file.
38999         * tests/test-xprintf-posix.c: New file.
39000         * tests/test-xfprintf-posix.c: New file.
39001
39002         * modules/xprintf-posix: New file.
39003
39004 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39005
39006         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39007         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39008         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39009
39010 2007-10-29  Bruno Haible  <bruno@clisp.org>
39011
39012         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39013         contain the special marker '_cv_'.
39014         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39015         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39016         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39017         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39018         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39019         Reported by Ralf Wildenhues.
39020
39021 2007-10-29  Bruno Haible  <bruno@clisp.org>
39022
39023         * gnulib-tool (func_import): When --lgpl is not specified, set
39024         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39025         GPLv3.
39026         Reported by Simon Josefsson.
39027
39028 2007-10-28  Bruno Haible  <bruno@clisp.org>
39029
39030         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39031         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39032         HAVE_DECL_ISFINITE.
39033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39034         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39035         HAVE_DECL_ISFINITE.
39036
39037 2007-10-28  Bruno Haible  <bruno@clisp.org>
39038
39039         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39040         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39041
39042 2007-10-28  Bruno Haible  <bruno@clisp.org>
39043
39044         Fix link errors with Sun C 5.0 on Solaris 10.
39045         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
39046         function is declared but not present in the compiler's libm.
39047         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
39048         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
39049         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
39050         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
39051         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
39052         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
39053         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
39054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39055         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
39056         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
39057         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
39058         HAVE_DECL_FLOORL.
39059
39060 2007-10-28  Bruno Haible  <bruno@clisp.org>
39061
39062         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
39063         gl_FUNC_FLOORL. Cache the result.
39064         (gl_FUNC_FLOORL): Use it.
39065         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39066         gl_FUNC_CEILL. Cache the result.
39067         (gl_FUNC_CEILL): Use it.
39068
39069         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39070         gl_FUNC_FLOOR. Cache the result.
39071         (gl_FUNC_FLOOR): Use it.
39072         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39073         gl_FUNC_CEIL. Cache the result.
39074         (gl_FUNC_CEIL): Use it.
39075
39076         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39077         gl_FUNC_FLOORF. Cache the result.
39078         (gl_FUNC_FLOORF): Use it.
39079         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39080         gl_FUNC_CEILF. Cache the result.
39081         (gl_FUNC_CEILF): Use it.
39082
39083 2007-10-28  Bruno Haible  <bruno@clisp.org>
39084
39085         * gnulib-tool: Allow specifying the LGPL version number through
39086         --lgpl=2 or --lgpl=3.
39087         (func_usage): Document --lgpl with argument.
39088         Handle --lgpl=... arguments.
39089         (func_import): Recognize also gl_LGPL calls with an argument. When
39090         --lgpl=2 is used and the module's license is just LGPL, report an
39091         error. Set sed_transform_lib_file according to the lgpl variable. In
39092         the generated files, use --lgpl or gl_LGPL invocations with argument,
39093         if necessary.
39094         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39095         an LGPv2+ license.
39096         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39097         gl_LGPL macro.
39098
39099 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39100             Bruno Haible  <bruno@clisp.org>
39101
39102         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39103         (u16_uctomb_aux): Likewise.
39104         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39105         !HAVE_INLINE.
39106         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39107
39108 2007-10-28  Bruno Haible  <bruno@clisp.org>
39109
39110         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39111         Invoke AM_GETTEXT_OPTION if it exists.
39112         * modules/vasprintf: Likewise.
39113         * modules/verror: Likewise.
39114         * modules/xprintf: Likewise.
39115         * modules/xvasprintf: Likewise.
39116
39117 2007-10-27  Ben Pfaff  <blp@gnu.org>
39118
39119         * lib/math.in.h: Define isfinite macro and prototypes for
39120         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39121         implementations.
39122         * m4/math_h.m4: New substitutions for isfinite module.
39123         * lib/isfinite.c: New file.
39124         * m4/isfinite.m4: New file.
39125         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39126         * modules/isfinite: New file.
39127         * modules/isfinite-tests: New file.
39128         * tests/tests-isfinite.c: New file.
39129         * doc/functions/isfinite.texi: Mention isfinite module.
39130         * MODULES.html.sh: Mention new module.
39131
39132 2007-10-27  Ben Pfaff  <blp@gnu.org>
39133
39134         Ralf Wildenhues reported that Tru64 4.0D declares the round
39135         functions but does not have definitions.
39136         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39137         cannot be found in any library, set the output variable to
39138         "missing" instead of "".
39139         * m4/round.m4: Also use our substitute if we cannot find round in
39140         any library, even if it is declared.
39141         * m4/roundf.m4: Likewise for roundf.
39142         * m4/roundl.m4: Likewise for roundl.
39143         * lib/math.in.h: Undefine roundf, round, roundl before defining
39144         their replacements, to allow for hypothetical systems where these
39145         may be defined as macros but not available in libraries.
39146
39147 2007-10-27  Bruno Haible  <bruno@clisp.org>
39148
39149         * doc/gnulib.texi: Invoke @firstparagraphindent.
39150         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39151         changes in gnulib.
39152         (Source changes): New section.
39153
39154 2007-10-26  Bruno Haible  <bruno@clisp.org>
39155
39156         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39157         borrowed from autoconf.
39158
39159 2007-10-26  Bruno Haible  <bruno@clisp.org>
39160
39161         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39162         strerror returned the empty string. Needed on HP-UX 11.00.
39163
39164 2007-10-24  Micah Cowan  <micah@cowan.name>
39165
39166         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39167         * build-aux/bootstrap: Remove support for now-unnecessary option,
39168         --cvs-user, and envvars CVS_USER, CVS_RSH.
39169
39170 2007-10-24  Jim Meyering  <meyering@redhat.com>
39171
39172         Avoid diagnostics from sha1sum when there is no cached checksum.
39173         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39174         if the po.s1 file hasn't been created yet.
39175
39176         * build-aux/bootstrap: Sync from coreutils:
39177         2007-10-24  Jim Meyering  <meyering@redhat.com>
39178         Get gnulib from the git repository, not from an obsolete cvs one.
39179         * build-aux/bootstrap: Suggestion from Micah Cowan.
39180         2007-10-04  Jim Meyering  <jim@meyering.net>
39181         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39182         (update_po_files): Work also when there are no .po files in po/.
39183
39184 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39185
39186         * README: Append ".git" to git and cg examples.
39187         Problem reported by Benoit Sigoure.
39188
39189 2007-10-23  Micah Cowan  <micah@cowan.name>
39190
39191         * users.txt: Add wget.
39192
39193 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39194
39195         Fix linking of some unistdio tests on FreeBSD.
39196         * modules/unistdio/u16-vsnprintf-tests
39197         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39198         * modules/unistdio/u16-vsprintf-tests
39199         (test_u16_vsnprintf1_LDADD): Likewise.
39200         * modules/unistdio/u32-vsnprintf-tests
39201         (test_u32_vsnprintf1_LDADD): Likewise.
39202         * modules/unistdio/u32-vsprintf-tests
39203         (test_u32_vsprintf1_LDADD): Likewise.
39204         * modules/unistdio/u8-vsnprintf-tests
39205         (test_u8_vsnprintf1_LDADD): Likewise.
39206         * modules/unistdio/u8-vsprintf-tests
39207         (test_u8_vsprintf1_LDADD): Likewise.
39208         * modules/unistdio/ulc-vsnprintf-tests
39209         (test_ulc_vsnprintf1_LDADD): Likewise.
39210         * modules/unistdio/ulc-vsprintf-tests
39211         (test_ulc_vsprintf1_LDADD): Likewise.
39212
39213         Fix linking of some uniconv tests on FreeBSD.
39214         * modules/uniconv/u16-conv-from-enc-tests
39215         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39216         * modules/uniconv/u16-conv-to-enc-tests
39217         (test_u16_conv_to_enc_LDADD): Likewise.
39218         * modules/uniconv/u16-strconv-from-enc-tests
39219         (test_u16_strconv_from_enc_LDADD): Likewise.
39220         * modules/uniconv/u16-strconv-to-enc-tests
39221         (test_u16_strconv_to_enc_LDADD): Likewise.
39222         * modules/uniconv/u32-conv-from-enc-tests
39223         (test_u32_conv_from_enc_LDADD): Likewise.
39224         * modules/uniconv/u32-conv-to-enc-tests
39225         (test_u32_conv_to_enc_LDADD): Likewise.
39226         * modules/uniconv/u32-strconv-from-enc-tests
39227         (test_u32_strconv_from_enc_LDADD): Likewise.
39228         * modules/uniconv/u32-strconv-to-enc-tests
39229         (test_u32_strconv_to_enc_LDADD): Likewise.
39230         * modules/uniconv/u8-conv-from-enc-tests
39231         (test_u8_conv_from_enc_LDADD): Likewise.
39232         * modules/uniconv/u8-conv-to-enc-tests
39233         (test_u8_conv_to_enc_LDADD): Likewise.
39234         * modules/uniconv/u8-strconv-from-enc-tests
39235         (test_u8_strconv_from_enc_LDADD): Likewise.
39236         * modules/uniconv/u8-strconv-to-enc-tests
39237         (test_u8_strconv_to_enc_LDADD): Likewise.
39238
39239 2007-10-22  Bruno Haible  <bruno@clisp.org>
39240
39241         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39242         size.
39243
39244 2007-10-22  Eric Blake  <ebb9@byu.net>
39245
39246         Tweak x*printf documentation.
39247         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39248         variable name and comments.
39249         Suggested by Bruno Haible.
39250
39251 2007-10-22  Bruno Haible  <bruno@clisp.org>
39252
39253         * lib/acl.c (copy_acl): Fix file name in comment.
39254
39255 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39256
39257         Fix Tru64 problem with stdbool.h.
39258         * lib/stdbool.in.h (false, true):
39259         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39260         Don't declare as an enum in this situation; it runs afoul of Tru64.
39261         Problem reported by Steven M. Schweda in
39262         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39263
39264 2007-10-22  Eric Blake  <ebb9@byu.net>
39265
39266         Also wrap vf?printf.
39267         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39268         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39269         (xvprintf, xvfprintf): New functions.
39270
39271 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39272
39273         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39274         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39275
39276         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39277         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39278
39279 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39280
39281         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39282         by Bruno Haible.
39283
39284 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39285
39286         * lib/getloadavg.c
39287         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39288         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39289
39290         * tests/test-i-ring.c: Work for C89.
39291
39292 2007-10-22  Bruno Haible  <bruno@clisp.org>
39293
39294         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39295         -1u, in preprocessor expression, so that we don't test for the bug
39296         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39298
39299 2007-10-22  Eric Blake  <ebb9@byu.net>
39300
39301         * tests/test-yesno.sh: Silence stderr during test.
39302
39303 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39304
39305         * modules/crypto/gc-camellia: New file.
39306
39307         * m4/gc-camellia.m4: New file.
39308
39309         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39310
39311         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39312
39313 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39314
39315         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39316         --help to stdout.  Reported by sms@antinode.org (Steven
39317         M. Schweda).
39318
39319 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39320
39321         * users.txt: Fix link to libksba.
39322
39323 2007-10-21  Ben Pfaff  <blp@gnu.org>
39324
39325         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39326         round.c roundf implementation that depends on floorf and ceilf to
39327         be tested unconditionally.
39328
39329 2007-10-21  Ben Pfaff  <blp@gnu.org>
39330
39331         * m4/check-libm-func.m4: Removed.
39332         * m4/check-math-lib.m4: New file.
39333         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39334         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39335         definition and lack of AC_LIBOBJ([roundf]).
39336         * m4/roundl.m4: Ditto, and similarly for roundl.
39337         * modules/round: Reference new m4 file.
39338         * modules/roundf: Ditto.
39339         * modules/roundl: Ditto.
39340         * tests/test-round2.c (main): Use ROUND instead of round.
39341         Bug report from Bruno Haible.
39342
39343 2007-10-21  Bruno Haible  <bruno@clisp.org>
39344
39345         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39346         context.
39347
39348 2007-10-21  Bruno Haible  <bruno@clisp.org>
39349
39350         * tests/test-wcwidth.c (main): Allow negative result for some control
39351         characters.
39352
39353         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39354         Needed on OSF/1 5.1.
39355
39356 2007-10-21  Bruno Haible  <bruno@clisp.org>
39357
39358         * tests/test-floorf1.c: Include isnanf.h.
39359         (main): Use isnanf() instead of isnan().
39360         * tests/test-ceilf1.c: Include isnanf.h.
39361         (main): Use isnanf() instead of isnan().
39362         * tests/test-truncf1.c: Include isnanf.h.
39363         (main): Use isnanf() instead of isnan().
39364         * tests/test-roundf1.c: Include isnanf.h.
39365         (main): Use isnanf() instead of isnan().
39366
39367 2007-10-21  Eric Blake  <ebb9@byu.net>
39368
39369         * users.txt: Update URL for m4.
39370
39371 2007-10-21  Bruno Haible  <bruno@clisp.org>
39372
39373         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39374
39375 2007-10-21  Bruno Haible  <bruno@clisp.org>
39376
39377         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39378         Git's management files if the CVS files are not present.
39379
39380 2007-10-20  Bruno Haible  <bruno@clisp.org>
39381
39382         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
39383         gcc-3.4.x.
39384
39385 2007-10-20  Ben Pfaff  <blp@gnu.org>
39386
39387         * lib/math.in.h: Declare round, roundf, roundl if we are providing
39388         implementations.
39389         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
39390         * lib/round.c: New file.
39391         * lib/roundf.c: New file.
39392         * lib/roundl.c: New file.
39393         * m4/round.m4: New file.
39394         * m4/roundf.m4: New file.
39395         * m4/roundl.m4: New file.
39396         * m4/check-libm-func-m4: New file.
39397         * modules/math: Replace round, roundf, roundl related @VARS@ in
39398         math.in.h.
39399         * modules/round: New file.
39400         * modules/round-tests: New file.
39401         * modules/roundf: New file.
39402         * modules/roundf-tests: New file.
39403         * modules/roundl: New file.
39404         * modules/roundl-tests: New file.
39405         * tests/test-round1.c: New file.
39406         * tests/test-round2.c: New file.
39407         * tests/test-roundf1.c: New file.
39408         * tests/test-roundf2.c: New file.
39409         * tests/test-roundl.c: New file.
39410         * doc/functions/round.texi: Mention round module.
39411         * doc/functions/roundf.texi: Mention roundf module.
39412         * doc/functions/roundl.texi: Mention roundl module.
39413         * MODULES.html.sh: Mention new modules.
39414         Thanks to Bruno Haible for suggestions.
39415
39416 2007-10-20  Jim Meyering  <meyering@redhat.com>
39417
39418         * lib/xprintf.c: Include <config.h> unconditionally.
39419
39420         Change xprintf's license to GPL.
39421         * modules/xprintf (License): s/LGPL/GPL/, since this module
39422         depends on modules (exit and exitfail) which are GPL.
39423         Suggestion from Bruno Haible.
39424
39425         xprintf fixes.
39426         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
39427         Use a clearer diagnostic.
39428         Patch from Bruno Haible.
39429
39430 2007-10-20  Bruno Haible  <bruno@clisp.org>
39431
39432         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
39433         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
39434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39435
39436 2007-10-20  Bruno Haible  <bruno@clisp.org>
39437
39438         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
39439         precision in the comparison result > x - 1 or similar.
39440         * tests/test-ceilf2.c (correct_result_p): Likewise.
39441         * tests/test-truncf2.c (correct_result_p): Likewise.
39442         * tests/test-trunc2.c (correct_result_p): Likewise.
39443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39444
39445 2007-10-20  Bruno Haible  <bruno@clisp.org>
39446
39447         * modules/ceil: New file.
39448         * m4/ceil.m4: New file.
39449         * doc/functions/ceil.texi: Mention the 'ceil' module.
39450
39451 2007-10-20  Bruno Haible  <bruno@clisp.org>
39452
39453         * modules/floor: New file.
39454         * m4/floor.m4: New file.
39455         * doc/functions/floor.texi: Mention the 'floor' module.
39456
39457 2007-10-20  Bruno Haible  <bruno@clisp.org>
39458
39459         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
39460         of %a.
39461         * modules/floorf-tests (Depends-on): Likewise.
39462         * modules/truncf-tests (Depends-on): Likewise.
39463         * modules/trunc-tests (Depends-on): Likewise.
39464         Reported by Ben Pfaff.
39465
39466 2007-10-19  Jim Meyering  <meyering@redhat.com>
39467
39468         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
39469         Don't bother testing specific errno values.  Just test ferror.
39470
39471         New module: xprintf
39472         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
39473
39474 2007-10-19  Bruno Haible  <bruno@clisp.org>
39475
39476         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
39477         syntax.
39478         * modules/javaexec (Makefile.am): Likewise.
39479         * modules/relocatable-prog (Makefile.am): Likewise.
39480         Suggested by Jim Meyering.
39481
39482 2007-10-18  Bruno Haible  <bruno@clisp.org>
39483
39484         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
39485         Reported by Jim Meyering.
39486
39487 2007-10-18  Eric Blake  <ebb9@byu.net>
39488
39489         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
39490
39491 2007-10-18  Bruno Haible  <bruno@clisp.org>
39492
39493         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
39494         the format string into writable memory. Needed in Fortify conditions.
39495
39496 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
39497             Bruno Haible  <bruno@clisp.org>
39498
39499         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
39500         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
39501         * modules/trim (Depends-on): Add mbchar.
39502         (configure.ac): Add gl_FUNC_MBRTOWC.
39503         (Makefile.am): Augment lib_SOURCES.
39504
39505 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39506
39507         Modify glob.c to use fstatat and dirfd, to simplify it.
39508         Suggested by Eric Blake.
39509         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
39510         Don't include <stdbool.h>; not used.
39511         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
39512         (link_exists_p): Simplify implementation, since we can now assume
39513         dirfd and fstatat.
39514         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
39515
39516 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39517
39518         * gnulib-tool (func_get_dependencies): Fix sed script to
39519         match only tests.
39520
39521 2007-10-17  Bruno Haible  <bruno@clisp.org>
39522
39523         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
39524         allow locale names without encoding suffix.
39525         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39526         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39527
39528 2007-10-16  Bruno Haible  <bruno@clisp.org>
39529
39530         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
39531         * lib/getgroups.c (getgroups): Likewise.
39532         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
39533
39534 2007-10-16  Bruno Haible  <bruno@clisp.org>
39535
39536         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
39537         * modules/malloc-posix (License): Likewise.
39538         * modules/realloc-posix (License): Likewise.
39539         * modules/calloc-posix (License): Likewise.
39540         * modules/intprops (License): Change from GPL to LGPL, with
39541         Paul Eggert's approval.
39542
39543 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39544
39545         Merge glibc changes into lib/glob.c.
39546
39547         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
39548         2007-10-15 04:59:03 UTC.  Here are the changes:
39549
39550         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
39551
39552         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
39553
39554         * lib/glob.c: Add some branch prediction throughout.
39555
39556         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
39557
39558         [BZ #5103]
39559         * lib/glob.c (glob): Recognize patterns starting \/.
39560
39561         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
39562
39563         [BZ #3996]
39564         * lib/glob.c (attribute_hidden): Define if not defined.
39565         (glob): Unescape dirname, filename or username when needed and not
39566         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
39567         is NULL.  Handle unescaped [ in pattern without closing ].
39568         Don't pass GLOB_CHECK down to recursive glob for directories.
39569         (__glob_pattern_type): New function.
39570         (__glob_pattern_p): Implement using __glob_pattern_type.
39571         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
39572         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
39573         Remove unreachable code.
39574
39575         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
39576
39577         * lib/glob.c (glob_in_dir): Add some comments and asserts to
39578         explain why there are no leaks.
39579
39580         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
39581
39582         [BZ #3253]
39583         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
39584         time, rather allocate increasingly bigger arrays of pointers, if
39585         possible with alloca, if too large with malloc.
39586
39587 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39588
39589         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
39590         Problem reported by H.Merijn Brand in
39591         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
39592         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
39593         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39594
39595 2007-10-15  Bruno Haible  <bruno@clisp.org>
39596
39597         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
39598         with explicit rpl_ prefix.
39599         * lib/fopen.c (fopen): Likewise.
39600         * lib/freopen.c (freopen): Likewise.
39601         * lib/iconv.c (iconv): Likewise.
39602         * lib/iconv_close.c (iconv_close): Likewise.
39603
39604 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39605
39606         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
39607
39608 2007-10-15  Bruno Haible  <bruno@clisp.org>
39609
39610         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
39611         <stddef.h> instead of <stdlib.h> since we only need NULL.
39612         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39613
39614 2007-10-15  Bruno Haible  <bruno@clisp.org>
39615
39616         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
39617         Replace paragraph talking about LIBOBJS.
39618         Reported by Colin Watson <cjwatson@debian.org>.
39619
39620 2007-10-15  Bruno Haible  <bruno@clisp.org>
39621
39622         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
39623         <stdlib.h> before using NULL.
39624
39625 2007-10-15  Simon Josefsson  <simon@josefsson.org>
39626
39627         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
39628         Reported by Albert Chin <china@thewrittenword.com>.
39629
39630 2007-10-14  Bruno Haible  <bruno@clisp.org>
39631
39632         * modules/iconv_open-utf-tests: New file.
39633         * tests/test-iconv-utf.c: New file.
39634
39635         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
39636         * modules/iconv_open-utf: New file.
39637         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
39638         (iconv, iconv_close): New declarations.
39639         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
39640         be defined.
39641         (iconv_open): Add special handling of conversion between UTF-8 and
39642         UTF-{16,32}{BE,LE}.
39643         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
39644         * lib/iconv_close.c: New file.
39645         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
39646         gl_FUNC_ICONV_OPEN.
39647         (gl_FUNC_ICONV_OPEN): Use it.
39648         (gl_FUNC_ICONV_OPEN_UTF): New macro.
39649         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
39650         and REPLACE_ICONV_UTF.
39651         * modules/iconv_open (Depends-on): Add c-strcase.
39652         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
39653         ICONV_CONST.
39654         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
39655
39656 2007-10-13  Albert Chin  <china@thewrittenword.com>
39657             Bruno Haible  <bruno@clisp.org>
39658
39659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
39660         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
39661
39662 2007-10-13  Bruno Haible  <bruno@clisp.org>
39663
39664         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
39665         defined, use the ISO C99 inline semantics.
39666         * lib/argp.h (ARGP_EI): Likewise.
39667
39668 2007-10-13  Bruno Haible  <bruno@clisp.org>
39669
39670         Handle 'inline' change in gcc 4.3.0.
39671         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
39672         argp_fmtstream_write, argp_fmtstream_set_lmargin,
39673         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
39674         argp_fmtstream_point): Disable 'extern' declaration if the function
39675         definition is going to be provided inline.
39676         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
39677         semantics, not the ISO C99 inline semantics.
39678         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
39679         'extern' declaration if the function definition is going to be provided
39680         inline.
39681         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
39682         the GNU C inline semantics, not the ISO C99 inline semantics. With
39683         GCC 4.2, avoid a warning.
39684
39685 2007-10-13  Bruno Haible  <bruno@clisp.org>
39686
39687         * lib/freading.h (freading): Enable the use of __freading for
39688         glibc >= 2.7.
39689         * lib/freading.c (freading): Likewise.
39690
39691 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39692
39693         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
39694         "warning: C99 inline functions are not supported; using GNU89".
39695
39696 2007-10-12  Bruno Haible  <bruno@clisp.org>
39697
39698         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
39699         of 2.
39700         * tests/test-ceilf2.c: New file.
39701         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
39702
39703         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
39704         * modules/ceilf-tests: Update.
39705
39706 2007-10-12  Bruno Haible  <bruno@clisp.org>
39707
39708         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
39709         of 2.
39710         * tests/test-floorf2.c: New file.
39711         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
39712
39713         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
39714         * modules/floorf-tests: Update.
39715
39716 2007-10-12  Bruno Haible  <bruno@clisp.org>
39717
39718         * tests/test-trunc2.c: New file.
39719         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
39720
39721         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
39722         * modules/trunc-tests: Update.
39723
39724 2007-10-12  Bruno Haible  <bruno@clisp.org>
39725
39726         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
39727         of 2.
39728         * tests/test-truncf2.c: New file.
39729         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
39730
39731         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
39732         * modules/truncf-tests: Update.
39733
39734 2007-10-11  Eric Blake  <ebb9@byu.net>
39735
39736         Don't claim strerror is broken on Interix.
39737         * doc/functions/strerror.texi (strerror): Known broken systems are
39738         now Solaris 8, and not Interix.
39739         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
39740         Interix on cross-compile.
39741         Reported by Martin Koeppe in
39742         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
39743
39744 2007-10-11  Bruno Haible  <bruno@clisp.org>
39745
39746         * modules/i-ring-tests: New file.
39747         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
39748         instead of assert.
39749
39750 2007-10-11  Bruno Haible  <bruno@clisp.org>
39751
39752         * modules/filenamecat-tests: New file.
39753         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
39754         * lib/filenamecat.c: Remove test code.
39755
39756 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39757
39758         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
39759
39760         * lib/strerror.c: Include <string.h> always, to test interface,
39761         and to remove the need for the dummy.
39762         Include intprops.h to compute width instead of doing it ourselves
39763         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
39764         (strerror): Define it to return NULL if there's no system strerror.
39765         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
39766         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
39767         ancient pre-strerror Unix systems well any more.  Saying "unknown
39768         system error" is enough.
39769         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
39770         simpler strerror.c implementation.
39771         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
39772         Simplify the tests to reflect the simpler strerror implementation.
39773         * modules/strerror (Depends-on): Add intprops.
39774
39775 2007-10-09  Eric Blake  <ebb9@byu.net>
39776
39777         Silence test-fpending.
39778         * modules/fpending-tests (Files): Add wrapper script.
39779         * tests/test-fpending.sh: New file.
39780
39781 2007-10-09  Bruno Haible  <bruno@clisp.org>
39782
39783         * MODULES.html.sh (func_module): Don't create a hyperlink for
39784         function names like 'printf_frexp'.
39785         (Misc): Add crc, memxor.
39786         (Characteristics of floating types): New section.
39787         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
39788         isnanf-nolibm, signbit, trunc, truncf, truncl.
39789         (Enhancements for ISO C 99 functions): New subsection Input/output.
39790         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
39791         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
39792         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
39793         (Compatibility checks for POSIX:2001 functions): Add clock-time.
39794         (Enhancements for POSIX:2001 functions): Add chdir-long.
39795         (File system functions): Add areadlink, chdir-safer, read-file.
39796         Remove cycle-check.
39797         (File system as inode set): New section.
39798         (Date and time): Add gethrxtime.
39799         (Multithreading): Add openmp.
39800         (Internationalization functions): Add localename.
39801         (Unicode string functions): Add unistr/u*-mbsnlen.
39802         (Support for maintaining and releasing projects): Add git-version-gen.
39803         (Lone files): Remove directories.
39804
39805 2007-10-08  Ben Pfaff  <blp@gnu.org>
39806
39807         * lib/xmalloca.h: Fix typo in comment.
39808
39809 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39810
39811         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
39812         when avoiding problems with integer overflow.  Use a portable test
39813         instead.
39814
39815 2007-10-08  Simon Josefsson  <simon@josefsson.org>
39816
39817         * modules/dummy (License): Change to LGPLv2+.
39818         * modules/float (License): Likewise
39819         * modules/realloc (License): Likewise
39820         * modules/stdlib (License): Likewise
39821
39822 2007-10-07  Bruno Haible  <bruno@clisp.org>
39823
39824         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
39825         * floor.c (TWO_MANT_DIG): Likewise.
39826         * ceil.c (TWO_MANT_DIG): Likewise.
39827         Reported by Ben Pfaff.
39828
39829 2007-10-07  Bruno Haible  <bruno@clisp.org>
39830
39831         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
39832         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
39833         * lib/frexp.c (FUNC): Likewise.
39834         * lib/printf-frexp.h (printf_frexp): Likewise.
39835         * lib/printf-frexpl.h (printf_frexpl): Likewise.
39836         * lib/printf-frexp.c (FUNC): Likewise.
39837         Suggested by Jim Meyering.
39838
39839 2007-10-07  Jim Meyering  <meyering@redhat.com>
39840
39841         Make xnanosleep's integer overflow test more robust.
39842         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
39843         so that gcc-4.3.0 doesn't optimize away this test for overflow.
39844
39845 2007-10-07  Bruno Haible  <bruno@clisp.org>
39846
39847         * NEWS: Mention the license change.
39848
39849         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
39850         abbreviations in the modules files.
39851
39852         Change copyright notice from GPLv2+ to GPLv3+.
39853         * README: Change copyright notice.
39854         * MODULES.html.sh: Likewise.
39855         * build-aux/bootstrap.conf: Likewise.
39856         * build-aux/config.libpath: Likewise.
39857         * build-aux/csharpcomp.sh.in: Likewise.
39858         * build-aux/csharpexec.sh.in: Likewise.
39859         * build-aux/install-reloc: Likewise.
39860         * build-aux/javacomp.sh.in: Likewise.
39861         * build-aux/javaexec.sh.in: Likewise.
39862         * build-aux/ldd.sh.in: Likewise.
39863         * build-aux/reloc-ldflags: Likewise.
39864         * build-aux/relocatable.sh.in: Likewise.
39865         * build-aux/x-to-1.in: Likewise.
39866         * check-module: Likewise.
39867         * config/srclistvars.sh: Likewise.
39868         * gnulib-tool: Likewise.
39869         * lib/acl-internal.h: Likewise.
39870         * lib/acl.c: Likewise.
39871         * lib/acl.h: Likewise.
39872         * lib/acl_entries.c: Likewise.
39873         * lib/areadlink-with-size.c: Likewise.
39874         * lib/areadlink.c: Likewise.
39875         * lib/areadlink.h: Likewise.
39876         * lib/argmatch.c: Likewise.
39877         * lib/argmatch.h: Likewise.
39878         * lib/argp-ba.c: Likewise.
39879         * lib/argp-eexst.c: Likewise.
39880         * lib/argp-fmtstream.c: Likewise.
39881         * lib/argp-fmtstream.h: Likewise.
39882         * lib/argp-fs-xinl.c: Likewise.
39883         * lib/argp-help.c: Likewise.
39884         * lib/argp-namefrob.h: Likewise.
39885         * lib/argp-parse.c: Likewise.
39886         * lib/argp-pin.c: Likewise.
39887         * lib/argp-pv.c: Likewise.
39888         * lib/argp-pvh.c: Likewise.
39889         * lib/argp-xinl.c: Likewise.
39890         * lib/argp.h: Likewise.
39891         * lib/at-func.c: Likewise.
39892         * lib/atanl.c: Likewise.
39893         * lib/backupfile.c: Likewise.
39894         * lib/backupfile.h: Likewise.
39895         * lib/basename.c: Likewise.
39896         * lib/binary-io.h: Likewise.
39897         * lib/byteswap.in.h: Likewise.
39898         * lib/c-stack.c: Likewise.
39899         * lib/c-stack.h: Likewise.
39900         * lib/c-strcasestr.c: Likewise.
39901         * lib/c-strcasestr.h: Likewise.
39902         * lib/c-strstr.c: Likewise.
39903         * lib/c-strstr.h: Likewise.
39904         * lib/c-strtod.c: Likewise.
39905         * lib/calloc.c: Likewise.
39906         * lib/canon-host.c: Likewise.
39907         * lib/canon-host.h: Likewise.
39908         * lib/canonicalize-lgpl.c: Likewise.
39909         * lib/canonicalize.c: Likewise.
39910         * lib/canonicalize.h: Likewise.
39911         * lib/ceil.c: Likewise.
39912         * lib/ceilf.c: Likewise.
39913         * lib/ceill.c: Likewise.
39914         * lib/chdir-long.c: Likewise.
39915         * lib/chdir-long.h: Likewise.
39916         * lib/chdir-safer.c: Likewise.
39917         * lib/chdir-safer.h: Likewise.
39918         * lib/chown.c: Likewise.
39919         * lib/classpath.c: Likewise.
39920         * lib/classpath.h: Likewise.
39921         * lib/clean-temp.c: Likewise.
39922         * lib/clean-temp.h: Likewise.
39923         * lib/cloexec.c: Likewise.
39924         * lib/close-stream.c: Likewise.
39925         * lib/closein.c: Likewise.
39926         * lib/closein.h: Likewise.
39927         * lib/closeout.c: Likewise.
39928         * lib/closeout.h: Likewise.
39929         * lib/concat-filename.c: Likewise.
39930         * lib/copy-file.c: Likewise.
39931         * lib/copy-file.h: Likewise.
39932         * lib/count-one-bits.h: Likewise.
39933         * lib/crc.c: Likewise.
39934         * lib/crc.h: Likewise.
39935         * lib/creat-safer.c: Likewise.
39936         * lib/csharpcomp.c: Likewise.
39937         * lib/csharpcomp.h: Likewise.
39938         * lib/csharpexec.c: Likewise.
39939         * lib/csharpexec.h: Likewise.
39940         * lib/cycle-check.c: Likewise.
39941         * lib/cycle-check.h: Likewise.
39942         * lib/diacrit.c: Likewise.
39943         * lib/diacrit.h: Likewise.
39944         * lib/diffseq.h: Likewise.
39945         * lib/dirchownmod.c: Likewise.
39946         * lib/dirent.in.h: Likewise.
39947         * lib/dirfd.c: Likewise.
39948         * lib/dirfd.h: Likewise.
39949         * lib/dirname.c: Likewise.
39950         * lib/dirname.h: Likewise.
39951         * lib/dummy.c: Likewise.
39952         * lib/dup-safer.c: Likewise.
39953         * lib/dup2.c: Likewise.
39954         * lib/eealloc.h: Likewise.
39955         * lib/error.c: Likewise.
39956         * lib/error.h: Likewise.
39957         * lib/euidaccess.c: Likewise.
39958         * lib/exclude.c: Likewise.
39959         * lib/exclude.h: Likewise.
39960         * lib/execute.c: Likewise.
39961         * lib/execute.h: Likewise.
39962         * lib/exitfail.c: Likewise.
39963         * lib/exitfail.h: Likewise.
39964         * lib/expl.c: Likewise.
39965         * lib/fatal-signal.c: Likewise.
39966         * lib/fatal-signal.h: Likewise.
39967         * lib/fbufmode.c: Likewise.
39968         * lib/fbufmode.h: Likewise.
39969         * lib/fchdir.c: Likewise.
39970         * lib/fchmodat.c: Likewise.
39971         * lib/fchownat.c: Likewise.
39972         * lib/fcntl--.h: Likewise.
39973         * lib/fcntl-safer.h: Likewise.
39974         * lib/fcntl.in.h: Likewise.
39975         * lib/fd-safer.c: Likewise.
39976         * lib/fflush.c: Likewise.
39977         * lib/file-has-acl.c: Likewise.
39978         * lib/file-set.c: Likewise.
39979         * lib/file-type.c: Likewise.
39980         * lib/file-type.h: Likewise.
39981         * lib/fileblocks.c: Likewise.
39982         * lib/filemode.c: Likewise.
39983         * lib/filemode.h: Likewise.
39984         * lib/filename.h: Likewise.
39985         * lib/filenamecat.c: Likewise.
39986         * lib/filenamecat.h: Likewise.
39987         * lib/findprog.c: Likewise.
39988         * lib/findprog.h: Likewise.
39989         * lib/float.in.h: Likewise.
39990         * lib/floor.c: Likewise.
39991         * lib/floorf.c: Likewise.
39992         * lib/floorl.c: Likewise.
39993         * lib/fopen-safer.c: Likewise.
39994         * lib/fopen.c: Likewise.
39995         * lib/fpending.c: Likewise.
39996         * lib/fpending.h: Likewise.
39997         * lib/fprintf.c: Likewise.
39998         * lib/fprintftime.h: Likewise.
39999         * lib/fpucw.h: Likewise.
40000         * lib/fpurge.c: Likewise.
40001         * lib/fpurge.h: Likewise.
40002         * lib/freadable.c: Likewise.
40003         * lib/freadable.h: Likewise.
40004         * lib/freadahead.c: Likewise.
40005         * lib/freadahead.h: Likewise.
40006         * lib/freading.c: Likewise.
40007         * lib/freading.h: Likewise.
40008         * lib/free.c: Likewise.
40009         * lib/freopen.c: Likewise.
40010         * lib/frexp.c: Likewise.
40011         * lib/frexpl.c: Likewise.
40012         * lib/fseek.c: Likewise.
40013         * lib/fseterr.c: Likewise.
40014         * lib/fseterr.h: Likewise.
40015         * lib/fstatat.c: Likewise.
40016         * lib/fstrcmp.c: Likewise.
40017         * lib/fstrcmp.h: Likewise.
40018         * lib/fsusage.c: Likewise.
40019         * lib/fsusage.h: Likewise.
40020         * lib/ftell.c: Likewise.
40021         * lib/ftello.c: Likewise.
40022         * lib/fts-cycle.c: Likewise.
40023         * lib/fts.c: Likewise.
40024         * lib/fts_.h: Likewise.
40025         * lib/full-read.c: Likewise.
40026         * lib/full-read.h: Likewise.
40027         * lib/full-write.c: Likewise.
40028         * lib/full-write.h: Likewise.
40029         * lib/fwritable.c: Likewise.
40030         * lib/fwritable.h: Likewise.
40031         * lib/fwriteerror.c: Likewise.
40032         * lib/fwriteerror.h: Likewise.
40033         * lib/fwriting.c: Likewise.
40034         * lib/fwriting.h: Likewise.
40035         * lib/gcd.c: Likewise.
40036         * lib/gcd.h: Likewise.
40037         * lib/getcwd.c: Likewise.
40038         * lib/getdate.h: Likewise.
40039         * lib/getdate.y: Likewise.
40040         * lib/getdomainname.c: Likewise.
40041         * lib/getdomainname.h: Likewise.
40042         * lib/getgroups.c: Likewise.
40043         * lib/gethostname.c: Likewise.
40044         * lib/gethrxtime.c: Likewise.
40045         * lib/gethrxtime.h: Likewise.
40046         * lib/getloadavg.c: Likewise.
40047         * lib/getndelim2.c: Likewise.
40048         * lib/getndelim2.h: Likewise.
40049         * lib/getnline.c: Likewise.
40050         * lib/getnline.h: Likewise.
40051         * lib/getopt.c: Likewise.
40052         * lib/getopt.in.h: Likewise.
40053         * lib/getopt1.c: Likewise.
40054         * lib/getopt_int.h: Likewise.
40055         * lib/getpagesize.h: Likewise.
40056         * lib/getsubopt.c: Likewise.
40057         * lib/gettime.c: Likewise.
40058         * lib/getugroups.c: Likewise.
40059         * lib/getugroups.h: Likewise.
40060         * lib/getusershell.c: Likewise.
40061         * lib/gl_anyavltree_list1.h: Likewise.
40062         * lib/gl_anyavltree_list2.h: Likewise.
40063         * lib/gl_anyhash_list1.h: Likewise.
40064         * lib/gl_anyhash_list2.h: Likewise.
40065         * lib/gl_anylinked_list1.h: Likewise.
40066         * lib/gl_anylinked_list2.h: Likewise.
40067         * lib/gl_anyrbtree_list1.h: Likewise.
40068         * lib/gl_anyrbtree_list2.h: Likewise.
40069         * lib/gl_anytree_list1.h: Likewise.
40070         * lib/gl_anytree_list2.h: Likewise.
40071         * lib/gl_anytree_oset.h: Likewise.
40072         * lib/gl_anytreehash_list1.h: Likewise.
40073         * lib/gl_anytreehash_list2.h: Likewise.
40074         * lib/gl_array_list.c: Likewise.
40075         * lib/gl_array_list.h: Likewise.
40076         * lib/gl_array_oset.c: Likewise.
40077         * lib/gl_array_oset.h: Likewise.
40078         * lib/gl_avltree_list.c: Likewise.
40079         * lib/gl_avltree_list.h: Likewise.
40080         * lib/gl_avltree_oset.c: Likewise.
40081         * lib/gl_avltree_oset.h: Likewise.
40082         * lib/gl_avltreehash_list.c: Likewise.
40083         * lib/gl_avltreehash_list.h: Likewise.
40084         * lib/gl_carray_list.c: Likewise.
40085         * lib/gl_carray_list.h: Likewise.
40086         * lib/gl_linked_list.c: Likewise.
40087         * lib/gl_linked_list.h: Likewise.
40088         * lib/gl_linkedhash_list.c: Likewise.
40089         * lib/gl_linkedhash_list.h: Likewise.
40090         * lib/gl_list.c: Likewise.
40091         * lib/gl_list.h: Likewise.
40092         * lib/gl_oset.c: Likewise.
40093         * lib/gl_oset.h: Likewise.
40094         * lib/gl_rbtree_list.c: Likewise.
40095         * lib/gl_rbtree_list.h: Likewise.
40096         * lib/gl_rbtree_oset.c: Likewise.
40097         * lib/gl_rbtree_oset.h: Likewise.
40098         * lib/gl_rbtreehash_list.c: Likewise.
40099         * lib/gl_rbtreehash_list.h: Likewise.
40100         * lib/gl_sublist.c: Likewise.
40101         * lib/gl_sublist.h: Likewise.
40102         * lib/group-member.c: Likewise.
40103         * lib/group-member.h: Likewise.
40104         * lib/hard-locale.c: Likewise.
40105         * lib/hard-locale.h: Likewise.
40106         * lib/hash-pjw.c: Likewise.
40107         * lib/hash-pjw.h: Likewise.
40108         * lib/hash-triple.c: Likewise.
40109         * lib/hash.c: Likewise.
40110         * lib/hash.h: Likewise.
40111         * lib/human.c: Likewise.
40112         * lib/human.h: Likewise.
40113         * lib/i-ring.c: Likewise.
40114         * lib/i-ring.h: Likewise.
40115         * lib/idcache.c: Likewise.
40116         * lib/imaxabs.c: Likewise.
40117         * lib/imaxdiv.c: Likewise.
40118         * lib/inet_pton.c: Likewise.
40119         * lib/inet_pton.h: Likewise.
40120         * lib/intprops.h: Likewise.
40121         * lib/inttostr.c: Likewise.
40122         * lib/inttostr.h: Likewise.
40123         * lib/inttypes.in.h: Likewise.
40124         * lib/isapipe.c: Likewise.
40125         * lib/isdir.c: Likewise.
40126         * lib/isnan.c: Likewise.
40127         * lib/isnan.h: Likewise.
40128         * lib/isnanf.c: Likewise.
40129         * lib/isnanf.h: Likewise.
40130         * lib/isnanl-nolibm.h: Likewise.
40131         * lib/isnanl.c: Likewise.
40132         * lib/isnanl.h: Likewise.
40133         * lib/javacomp.c: Likewise.
40134         * lib/javacomp.h: Likewise.
40135         * lib/javaexec.c: Likewise.
40136         * lib/javaexec.h: Likewise.
40137         * lib/javaversion.c: Likewise.
40138         * lib/javaversion.h: Likewise.
40139         * lib/javaversion.java: Likewise.
40140         * lib/lbrkprop.h: Likewise.
40141         * lib/lchmod.h: Likewise.
40142         * lib/lchown.c: Likewise.
40143         * lib/ldexpl.c: Likewise.
40144         * lib/linebreak.c: Likewise.
40145         * lib/linebreak.h: Likewise.
40146         * lib/linebuffer.c: Likewise.
40147         * lib/linebuffer.h: Likewise.
40148         * lib/locale.in.h: Likewise.
40149         * lib/logl.c: Likewise.
40150         * lib/long-options.c: Likewise.
40151         * lib/long-options.h: Likewise.
40152         * lib/lstat.c: Likewise.
40153         * lib/lstat.h: Likewise.
40154         * lib/math.in.h: Likewise.
40155         * lib/mbchar.c: Likewise.
40156         * lib/mbchar.h: Likewise.
40157         * lib/mbfile.h: Likewise.
40158         * lib/mbiter.h: Likewise.
40159         * lib/mbscasecmp.c: Likewise.
40160         * lib/mbscasestr.c: Likewise.
40161         * lib/mbschr.c: Likewise.
40162         * lib/mbscspn.c: Likewise.
40163         * lib/mbslen.c: Likewise.
40164         * lib/mbsncasecmp.c: Likewise.
40165         * lib/mbsnlen.c: Likewise.
40166         * lib/mbspbrk.c: Likewise.
40167         * lib/mbspcasecmp.c: Likewise.
40168         * lib/mbsrchr.c: Likewise.
40169         * lib/mbssep.c: Likewise.
40170         * lib/mbsspn.c: Likewise.
40171         * lib/mbsstr.c: Likewise.
40172         * lib/mbstok_r.c: Likewise.
40173         * lib/mbswidth.c: Likewise.
40174         * lib/mbswidth.h: Likewise.
40175         * lib/mbuiter.h: Likewise.
40176         * lib/memcasecmp.c: Likewise.
40177         * lib/memcasecmp.h: Likewise.
40178         * lib/memchr.c: Likewise.
40179         * lib/memcmp.c: Likewise.
40180         * lib/memcoll.c: Likewise.
40181         * lib/memcoll.h: Likewise.
40182         * lib/memcpy.c: Likewise.
40183         * lib/memrchr.c: Likewise.
40184         * lib/mkancesdirs.c: Likewise.
40185         * lib/mkdir-p.c: Likewise.
40186         * lib/mkdir-p.h: Likewise.
40187         * lib/mkdir.c: Likewise.
40188         * lib/mkdirat.c: Likewise.
40189         * lib/mkdtemp.c: Likewise.
40190         * lib/mkstemp-safer.c: Likewise.
40191         * lib/mkstemp.c: Likewise.
40192         * lib/modechange.c: Likewise.
40193         * lib/modechange.h: Likewise.
40194         * lib/mountlist.c: Likewise.
40195         * lib/mountlist.h: Likewise.
40196         * lib/mpsort.c: Likewise.
40197         * lib/nanosleep.c: Likewise.
40198         * lib/obstack.c: Likewise.
40199         * lib/obstack.h: Likewise.
40200         * lib/open-safer.c: Likewise.
40201         * lib/open.c: Likewise.
40202         * lib/openat-die.c: Likewise.
40203         * lib/openat-priv.h: Likewise.
40204         * lib/openat-proc.c: Likewise.
40205         * lib/openat.c: Likewise.
40206         * lib/openat.h: Likewise.
40207         * lib/pagealign_alloc.c: Likewise.
40208         * lib/pagealign_alloc.h: Likewise.
40209         * lib/physmem.c: Likewise.
40210         * lib/physmem.h: Likewise.
40211         * lib/pipe-safer.c: Likewise.
40212         * lib/pipe.c: Likewise.
40213         * lib/pipe.h: Likewise.
40214         * lib/posixtm.c: Likewise.
40215         * lib/posixtm.h: Likewise.
40216         * lib/posixver.c: Likewise.
40217         * lib/printf-frexp.c: Likewise.
40218         * lib/printf-frexp.h: Likewise.
40219         * lib/printf-frexpl.c: Likewise.
40220         * lib/printf-frexpl.h: Likewise.
40221         * lib/printf.c: Likewise.
40222         * lib/progname.c: Likewise.
40223         * lib/progname.h: Likewise.
40224         * lib/progreloc.c: Likewise.
40225         * lib/putenv.c: Likewise.
40226         * lib/quote.c: Likewise.
40227         * lib/quote.h: Likewise.
40228         * lib/quotearg.c: Likewise.
40229         * lib/quotearg.h: Likewise.
40230         * lib/raise.c: Likewise.
40231         * lib/readline.c: Likewise.
40232         * lib/readline.h: Likewise.
40233         * lib/readlink.c: Likewise.
40234         * lib/readtokens.c: Likewise.
40235         * lib/readtokens.h: Likewise.
40236         * lib/readtokens0.c: Likewise.
40237         * lib/readtokens0.h: Likewise.
40238         * lib/readutmp.c: Likewise.
40239         * lib/readutmp.h: Likewise.
40240         * lib/realloc.c: Likewise.
40241         * lib/relocwrapper.c: Likewise.
40242         * lib/rename-dest-slash.c: Likewise.
40243         * lib/rename.c: Likewise.
40244         * lib/rmdir.c: Likewise.
40245         * lib/rpmatch.c: Likewise.
40246         * lib/safe-read.c: Likewise.
40247         * lib/safe-read.h: Likewise.
40248         * lib/safe-write.c: Likewise.
40249         * lib/safe-write.h: Likewise.
40250         * lib/same-inode.h: Likewise.
40251         * lib/same.c: Likewise.
40252         * lib/same.h: Likewise.
40253         * lib/save-cwd.c: Likewise.
40254         * lib/save-cwd.h: Likewise.
40255         * lib/savedir.c: Likewise.
40256         * lib/savedir.h: Likewise.
40257         * lib/savewd.c: Likewise.
40258         * lib/savewd.h: Likewise.
40259         * lib/search.in.h: Likewise.
40260         * lib/setenv.c: Likewise.
40261         * lib/setenv.h: Likewise.
40262         * lib/settime.c: Likewise.
40263         * lib/sh-quote.c: Likewise.
40264         * lib/sh-quote.h: Likewise.
40265         * lib/sig2str.c: Likewise.
40266         * lib/sig2str.h: Likewise.
40267         * lib/signal.in.h: Likewise.
40268         * lib/signbitd.c: Likewise.
40269         * lib/signbitf.c: Likewise.
40270         * lib/signbitl.c: Likewise.
40271         * lib/sigprocmask.c: Likewise.
40272         * lib/sincosl.c: Likewise.
40273         * lib/sleep.c: Likewise.
40274         * lib/sprintf.c: Likewise.
40275         * lib/sqrtl.c: Likewise.
40276         * lib/stat-time.h: Likewise.
40277         * lib/stdio--.h: Likewise.
40278         * lib/stdio-safer.h: Likewise.
40279         * lib/stdlib--.h: Likewise.
40280         * lib/stdlib-safer.h: Likewise.
40281         * lib/stdlib.in.h: Likewise.
40282         * lib/stpcpy.c: Likewise.
40283         * lib/stpncpy.c: Likewise.
40284         * lib/strchrnul.c: Likewise.
40285         * lib/strcspn.c: Likewise.
40286         * lib/strerror.c: Likewise.
40287         * lib/strftime.c: Likewise.
40288         * lib/strftime.h: Likewise.
40289         * lib/striconveh.c: Likewise.
40290         * lib/striconveh.h: Likewise.
40291         * lib/striconveha.c: Likewise.
40292         * lib/striconveha.h: Likewise.
40293         * lib/stripslash.c: Likewise.
40294         * lib/strnlen1.c: Likewise.
40295         * lib/strnlen1.h: Likewise.
40296         * lib/strtod.c: Likewise.
40297         * lib/strtoimax.c: Likewise.
40298         * lib/strtok_r.c: Likewise.
40299         * lib/strtol.c: Likewise.
40300         * lib/strtoll.c: Likewise.
40301         * lib/strtoul.c: Likewise.
40302         * lib/strtoull.c: Likewise.
40303         * lib/sysexits.in.h: Likewise.
40304         * lib/tempname.c: Likewise.
40305         * lib/tempname.h: Likewise.
40306         * lib/timespec.h: Likewise.
40307         * lib/tls.c: Likewise.
40308         * lib/tls.h: Likewise.
40309         * lib/tmpdir.c: Likewise.
40310         * lib/tmpdir.h: Likewise.
40311         * lib/tmpfile-safer.c: Likewise.
40312         * lib/tmpfile.c: Likewise.
40313         * lib/trigl.c: Likewise.
40314         * lib/trigl.h: Likewise.
40315         * lib/trim.c: Likewise.
40316         * lib/trim.h: Likewise.
40317         * lib/trunc.c: Likewise.
40318         * lib/truncf.c: Likewise.
40319         * lib/truncl.c: Likewise.
40320         * lib/tsearch.c: Likewise.
40321         * lib/unicodeio.c: Likewise.
40322         * lib/unicodeio.h: Likewise.
40323         * lib/unistd--.h: Likewise.
40324         * lib/unistd-safer.h: Likewise.
40325         * lib/unistdio/ulc-fprintf.c: Likewise.
40326         * lib/unistdio/ulc-vfprintf.c: Likewise.
40327         * lib/unlinkdir.c: Likewise.
40328         * lib/unlinkdir.h: Likewise.
40329         * lib/unlocked-io.h: Likewise.
40330         * lib/unsetenv.c: Likewise.
40331         * lib/userspec.c: Likewise.
40332         * lib/utime.c: Likewise.
40333         * lib/utimecmp.c: Likewise.
40334         * lib/utimecmp.h: Likewise.
40335         * lib/utimens.c: Likewise.
40336         * lib/verify.h: Likewise.
40337         * lib/verror.c: Likewise.
40338         * lib/verror.h: Likewise.
40339         * lib/version-etc-fsf.c: Likewise.
40340         * lib/version-etc.c: Likewise.
40341         * lib/version-etc.h: Likewise.
40342         * lib/vfprintf.c: Likewise.
40343         * lib/vprintf.c: Likewise.
40344         * lib/vsprintf.c: Likewise.
40345         * lib/w32spawn.h: Likewise.
40346         * lib/wait-process.c: Likewise.
40347         * lib/wait-process.h: Likewise.
40348         * lib/wcwidth.c: Likewise.
40349         * lib/write-any-file.c: Likewise.
40350         * lib/xalloc-die.c: Likewise.
40351         * lib/xalloc.h: Likewise.
40352         * lib/xasprintf.c: Likewise.
40353         * lib/xgetcwd.c: Likewise.
40354         * lib/xgetcwd.h: Likewise.
40355         * lib/xgetdomainname.c: Likewise.
40356         * lib/xgetdomainname.h: Likewise.
40357         * lib/xgethostname.c: Likewise.
40358         * lib/xmalloc.c: Likewise.
40359         * lib/xmalloca.c: Likewise.
40360         * lib/xmalloca.h: Likewise.
40361         * lib/xmemcoll.c: Likewise.
40362         * lib/xnanosleep.c: Likewise.
40363         * lib/xreadlink.c: Likewise.
40364         * lib/xreadlink.h: Likewise.
40365         * lib/xsetenv.c: Likewise.
40366         * lib/xsetenv.h: Likewise.
40367         * lib/xstriconv.c: Likewise.
40368         * lib/xstriconv.h: Likewise.
40369         * lib/xstrndup.c: Likewise.
40370         * lib/xstrndup.h: Likewise.
40371         * lib/xstrtod.c: Likewise.
40372         * lib/xstrtod.h: Likewise.
40373         * lib/xstrtol-error.c: Likewise.
40374         * lib/xstrtol.c: Likewise.
40375         * lib/xstrtol.h: Likewise.
40376         * lib/xtime.h: Likewise.
40377         * lib/xvasprintf.c: Likewise.
40378         * lib/xvasprintf.h: Likewise.
40379         * lib/yesno.c: Likewise.
40380         * lib/yesno.h: Likewise.
40381         * posix-modules: Likewise.
40382         * tests/test-alloca-opt.c: Likewise.
40383         * tests/test-arcfour.c: Likewise.
40384         * tests/test-arctwo.c: Likewise.
40385         * tests/test-argmatch.c: Likewise.
40386         * tests/test-argp-2.sh: Likewise.
40387         * tests/test-argp.c: Likewise.
40388         * tests/test-arpa_inet.c: Likewise.
40389         * tests/test-array_list.c: Likewise.
40390         * tests/test-array_oset.c: Likewise.
40391         * tests/test-atexit.c: Likewise.
40392         * tests/test-avltree_list.c: Likewise.
40393         * tests/test-avltree_oset.c: Likewise.
40394         * tests/test-avltreehash_list.c: Likewise.
40395         * tests/test-base64.c: Likewise.
40396         * tests/test-binary-io.c: Likewise.
40397         * tests/test-byteswap.c: Likewise.
40398         * tests/test-c-ctype.c: Likewise.
40399         * tests/test-c-strcasecmp.c: Likewise.
40400         * tests/test-c-strcasestr.c: Likewise.
40401         * tests/test-c-strncasecmp.c: Likewise.
40402         * tests/test-c-strstr.c: Likewise.
40403         * tests/test-canonicalize-lgpl.c: Likewise.
40404         * tests/test-canonicalize.c: Likewise.
40405         * tests/test-carray_list.c: Likewise.
40406         * tests/test-ceilf.c: Likewise.
40407         * tests/test-ceill.c: Likewise.
40408         * tests/test-count-one-bits.c: Likewise.
40409         * tests/test-crc.c: Likewise.
40410         * tests/test-dirname.c: Likewise.
40411         * tests/test-fbufmode.c: Likewise.
40412         * tests/test-fcntl.c: Likewise.
40413         * tests/test-fflush.c: Likewise.
40414         * tests/test-floorf.c: Likewise.
40415         * tests/test-floorl.c: Likewise.
40416         * tests/test-fopen.c: Likewise.
40417         * tests/test-fprintf-posix.c: Likewise.
40418         * tests/test-fprintf-posix.h: Likewise.
40419         * tests/test-fpurge.c: Likewise.
40420         * tests/test-freadable.c: Likewise.
40421         * tests/test-freadahead.c: Likewise.
40422         * tests/test-freading.c: Likewise.
40423         * tests/test-freopen.c: Likewise.
40424         * tests/test-frexp.c: Likewise.
40425         * tests/test-frexpl.c: Likewise.
40426         * tests/test-fseek.c: Likewise.
40427         * tests/test-fseeko.c: Likewise.
40428         * tests/test-fseterr.c: Likewise.
40429         * tests/test-fstrcmp.c: Likewise.
40430         * tests/test-ftell.c: Likewise.
40431         * tests/test-ftello.c: Likewise.
40432         * tests/test-fwritable.c: Likewise.
40433         * tests/test-fwriting.c: Likewise.
40434         * tests/test-getaddrinfo.c: Likewise.
40435         * tests/test-getpass.c: Likewise.
40436         * tests/test-gettimeofday.c: Likewise.
40437         * tests/test-hmac-md5.c: Likewise.
40438         * tests/test-hmac-sha1.c: Likewise.
40439         * tests/test-iconv.c: Likewise.
40440         * tests/test-iconvme.c: Likewise.
40441         * tests/test-inttypes.c: Likewise.
40442         * tests/test-isnan.c: Likewise.
40443         * tests/test-isnanf.c: Likewise.
40444         * tests/test-isnanl-nolibm.c: Likewise.
40445         * tests/test-isnanl.c: Likewise.
40446         * tests/test-isnanl.h: Likewise.
40447         * tests/test-ldexpl.c: Likewise.
40448         * tests/test-linked_list.c: Likewise.
40449         * tests/test-linkedhash_list.c: Likewise.
40450         * tests/test-locale.c: Likewise.
40451         * tests/test-localename.c: Likewise.
40452         * tests/test-lock.c: Likewise.
40453         * tests/test-lseek.c: Likewise.
40454         * tests/test-malloca.c: Likewise.
40455         * tests/test-math.c: Likewise.
40456         * tests/test-mbscasecmp.c: Likewise.
40457         * tests/test-mbscasestr1.c: Likewise.
40458         * tests/test-mbscasestr2.c: Likewise.
40459         * tests/test-mbscasestr3.c: Likewise.
40460         * tests/test-mbscasestr4.c: Likewise.
40461         * tests/test-mbschr.c: Likewise.
40462         * tests/test-mbscspn.c: Likewise.
40463         * tests/test-mbsncasecmp.c: Likewise.
40464         * tests/test-mbspbrk.c: Likewise.
40465         * tests/test-mbspcasecmp.c: Likewise.
40466         * tests/test-mbsrchr.c: Likewise.
40467         * tests/test-mbsspn.c: Likewise.
40468         * tests/test-mbsstr1.c: Likewise.
40469         * tests/test-mbsstr2.c: Likewise.
40470         * tests/test-mbsstr3.c: Likewise.
40471         * tests/test-md5.c: Likewise.
40472         * tests/test-memmem.c: Likewise.
40473         * tests/test-netinet_in.c: Likewise.
40474         * tests/test-open.c: Likewise.
40475         * tests/test-printf-frexp.c: Likewise.
40476         * tests/test-printf-frexpl.c: Likewise.
40477         * tests/test-printf-posix.c: Likewise.
40478         * tests/test-printf-posix.h: Likewise.
40479         * tests/test-rbtree_list.c: Likewise.
40480         * tests/test-rbtree_oset.c: Likewise.
40481         * tests/test-rbtreehash_list.c: Likewise.
40482         * tests/test-read-file.c: Likewise.
40483         * tests/test-rijndael.c: Likewise.
40484         * tests/test-search.c: Likewise.
40485         * tests/test-signbit.c: Likewise.
40486         * tests/test-sleep.c: Likewise.
40487         * tests/test-snprintf-posix.c: Likewise.
40488         * tests/test-snprintf-posix.h: Likewise.
40489         * tests/test-snprintf.c: Likewise.
40490         * tests/test-sprintf-posix.c: Likewise.
40491         * tests/test-sprintf-posix.h: Likewise.
40492         * tests/test-stat-time.c: Likewise.
40493         * tests/test-stdbool.c: Likewise.
40494         * tests/test-stdint.c: Likewise.
40495         * tests/test-stdio.c: Likewise.
40496         * tests/test-stdlib.c: Likewise.
40497         * tests/test-stpncpy.c: Likewise.
40498         * tests/test-strcasestr.c: Likewise.
40499         * tests/test-striconv.c: Likewise.
40500         * tests/test-striconveh.c: Likewise.
40501         * tests/test-striconveha.c: Likewise.
40502         * tests/test-string.c: Likewise.
40503         * tests/test-sys_select.c: Likewise.
40504         * tests/test-sys_socket.c: Likewise.
40505         * tests/test-sys_stat.c: Likewise.
40506         * tests/test-sys_time.c: Likewise.
40507         * tests/test-sysexits.c: Likewise.
40508         * tests/test-time.c: Likewise.
40509         * tests/test-tls.c: Likewise.
40510         * tests/test-trunc.c: Likewise.
40511         * tests/test-truncf.c: Likewise.
40512         * tests/test-truncl.c: Likewise.
40513         * tests/test-unistd.c: Likewise.
40514         * tests/test-vasnprintf-posix.c: Likewise.
40515         * tests/test-vasnprintf-posix2.c: Likewise.
40516         * tests/test-vasnprintf.c: Likewise.
40517         * tests/test-vasprintf-posix.c: Likewise.
40518         * tests/test-vasprintf.c: Likewise.
40519         * tests/test-verify.c: Likewise.
40520         * tests/test-vfprintf-posix.c: Likewise.
40521         * tests/test-vprintf-posix.c: Likewise.
40522         * tests/test-vsnprintf-posix.c: Likewise.
40523         * tests/test-vsnprintf.c: Likewise.
40524         * tests/test-vsprintf-posix.c: Likewise.
40525         * tests/test-wchar.c: Likewise.
40526         * tests/test-wctype.c: Likewise.
40527         * tests/test-wcwidth.c: Likewise.
40528         * tests/test-xstrtol.c: Likewise.
40529         * tests/test-xvasprintf.c: Likewise.
40530         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40531         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40532         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40533         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40534         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40535         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40536         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40537         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40538         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40539         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40540         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40541         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40542         * tests/uniname/test-uninames.c: Likewise.
40543         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40544         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
40545         * tests/unistdio/test-u16-printf1.h: Likewise.
40546         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40547         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40548         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40549         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40550         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40551         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40552         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40553         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
40554         * tests/unistdio/test-u32-printf1.h: Likewise.
40555         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40556         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40557         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40558         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40559         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40560         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40561         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40562         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
40563         * tests/unistdio/test-u8-printf1.h: Likewise.
40564         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40565         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40566         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40567         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40568         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40569         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40570         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40571         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
40572         * tests/unistdio/test-ulc-printf1.h: Likewise.
40573         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40574         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40575         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40576         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40577         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40578         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40579         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40580         * tests/uniwidth/test-u16-width.c: Likewise.
40581         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40582         * tests/uniwidth/test-u32-width.c: Likewise.
40583         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40584         * tests/uniwidth/test-u8-width.c: Likewise.
40585         * tests/uniwidth/test-uc_width.c: Likewise.
40586         * config/srclist-update: Likewise.
40587         (fixlicense): Update to GPLv3+.
40588
40589         Change copyright notice from LGPLv2.1+ to LGPLv3+.
40590         * tests/test-tsearch.c: Change copyright notice.
40591
40592         Change copyright notice from LGPLv2.0+ to LGPLv3+.
40593         * lib/c-strcaseeq.h: Change copyright notice.
40594         * lib/streq.h: Likewise.
40595         * lib/uniconv.h: Likewise.
40596         * lib/uniconv/u-conv-from-enc.h: Likewise.
40597         * lib/uniconv/u-conv-to-enc.h: Likewise.
40598         * lib/uniconv/u-strconv-from-enc.h: Likewise.
40599         * lib/uniconv/u-strconv-to-enc.h: Likewise.
40600         * lib/uniconv/u16-conv-from-enc.c: Likewise.
40601         * lib/uniconv/u16-conv-to-enc.c: Likewise.
40602         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
40603         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
40604         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
40605         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
40606         * lib/uniconv/u32-conv-from-enc.c: Likewise.
40607         * lib/uniconv/u32-conv-to-enc.c: Likewise.
40608         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
40609         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
40610         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
40611         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
40612         * lib/uniconv/u8-conv-from-enc.c: Likewise.
40613         * lib/uniconv/u8-conv-to-enc.c: Likewise.
40614         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
40615         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
40616         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
40617         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
40618         * lib/uniname.h: Likewise.
40619         * lib/uniname/uniname.c: Likewise.
40620         * lib/unistdio.h: Likewise.
40621         * lib/unistdio/u-asnprintf.h: Likewise.
40622         * lib/unistdio/u-asprintf.h: Likewise.
40623         * lib/unistdio/u-printf-args.c: Likewise.
40624         * lib/unistdio/u-printf-args.h: Likewise.
40625         * lib/unistdio/u-printf-parse.h: Likewise.
40626         * lib/unistdio/u-snprintf.h: Likewise.
40627         * lib/unistdio/u-sprintf.h: Likewise.
40628         * lib/unistdio/u-vasprintf.h: Likewise.
40629         * lib/unistdio/u-vsnprintf.h: Likewise.
40630         * lib/unistdio/u-vsprintf.h: Likewise.
40631         * lib/unistdio/u16-asnprintf.c: Likewise.
40632         * lib/unistdio/u16-asprintf.c: Likewise.
40633         * lib/unistdio/u16-printf-parse.c: Likewise.
40634         * lib/unistdio/u16-snprintf.c: Likewise.
40635         * lib/unistdio/u16-sprintf.c: Likewise.
40636         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
40637         * lib/unistdio/u16-u16-asprintf.c: Likewise.
40638         * lib/unistdio/u16-u16-snprintf.c: Likewise.
40639         * lib/unistdio/u16-u16-sprintf.c: Likewise.
40640         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
40641         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
40642         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
40643         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
40644         * lib/unistdio/u16-vasnprintf.c: Likewise.
40645         * lib/unistdio/u16-vasprintf.c: Likewise.
40646         * lib/unistdio/u16-vsnprintf.c: Likewise.
40647         * lib/unistdio/u16-vsprintf.c: Likewise.
40648         * lib/unistdio/u32-asnprintf.c: Likewise.
40649         * lib/unistdio/u32-asprintf.c: Likewise.
40650         * lib/unistdio/u32-printf-parse.c: Likewise.
40651         * lib/unistdio/u32-snprintf.c: Likewise.
40652         * lib/unistdio/u32-sprintf.c: Likewise.
40653         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
40654         * lib/unistdio/u32-u32-asprintf.c: Likewise.
40655         * lib/unistdio/u32-u32-snprintf.c: Likewise.
40656         * lib/unistdio/u32-u32-sprintf.c: Likewise.
40657         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
40658         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
40659         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
40660         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
40661         * lib/unistdio/u32-vasnprintf.c: Likewise.
40662         * lib/unistdio/u32-vasprintf.c: Likewise.
40663         * lib/unistdio/u32-vsnprintf.c: Likewise.
40664         * lib/unistdio/u32-vsprintf.c: Likewise.
40665         * lib/unistdio/u8-asnprintf.c: Likewise.
40666         * lib/unistdio/u8-asprintf.c: Likewise.
40667         * lib/unistdio/u8-printf-parse.c: Likewise.
40668         * lib/unistdio/u8-snprintf.c: Likewise.
40669         * lib/unistdio/u8-sprintf.c: Likewise.
40670         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
40671         * lib/unistdio/u8-u8-asprintf.c: Likewise.
40672         * lib/unistdio/u8-u8-snprintf.c: Likewise.
40673         * lib/unistdio/u8-u8-sprintf.c: Likewise.
40674         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
40675         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
40676         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
40677         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
40678         * lib/unistdio/u8-vasnprintf.c: Likewise.
40679         * lib/unistdio/u8-vasprintf.c: Likewise.
40680         * lib/unistdio/u8-vsnprintf.c: Likewise.
40681         * lib/unistdio/u8-vsprintf.c: Likewise.
40682         * lib/unistdio/ulc-asnprintf.c: Likewise.
40683         * lib/unistdio/ulc-asprintf.c: Likewise.
40684         * lib/unistdio/ulc-printf-parse.c: Likewise.
40685         * lib/unistdio/ulc-snprintf.c: Likewise.
40686         * lib/unistdio/ulc-sprintf.c: Likewise.
40687         * lib/unistdio/ulc-vasnprintf.c: Likewise.
40688         * lib/unistdio/ulc-vasprintf.c: Likewise.
40689         * lib/unistdio/ulc-vsnprintf.c: Likewise.
40690         * lib/unistdio/ulc-vsprintf.c: Likewise.
40691         * lib/unistr.h: Likewise.
40692         * lib/unistr/u-cpy-alloc.h: Likewise.
40693         * lib/unistr/u-cpy.h: Likewise.
40694         * lib/unistr/u-endswith.h: Likewise.
40695         * lib/unistr/u-move.h: Likewise.
40696         * lib/unistr/u-set.h: Likewise.
40697         * lib/unistr/u-startswith.h: Likewise.
40698         * lib/unistr/u-stpcpy.h: Likewise.
40699         * lib/unistr/u-stpncpy.h: Likewise.
40700         * lib/unistr/u-strcat.h: Likewise.
40701         * lib/unistr/u-strcpy.h: Likewise.
40702         * lib/unistr/u-strcspn.h: Likewise.
40703         * lib/unistr/u-strdup.h: Likewise.
40704         * lib/unistr/u-strlen.h: Likewise.
40705         * lib/unistr/u-strncat.h: Likewise.
40706         * lib/unistr/u-strncpy.h: Likewise.
40707         * lib/unistr/u-strnlen.h: Likewise.
40708         * lib/unistr/u-strpbrk.h: Likewise.
40709         * lib/unistr/u-strspn.h: Likewise.
40710         * lib/unistr/u-strstr.h: Likewise.
40711         * lib/unistr/u-strtok.h: Likewise.
40712         * lib/unistr/u16-check.c: Likewise.
40713         * lib/unistr/u16-chr.c: Likewise.
40714         * lib/unistr/u16-cmp.c: Likewise.
40715         * lib/unistr/u16-cpy-alloc.c: Likewise.
40716         * lib/unistr/u16-cpy.c: Likewise.
40717         * lib/unistr/u16-endswith.c: Likewise.
40718         * lib/unistr/u16-mblen.c: Likewise.
40719         * lib/unistr/u16-mbsnlen.c: Likewise.
40720         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40721         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40722         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40723         * lib/unistr/u16-mbtouc.c: Likewise.
40724         * lib/unistr/u16-mbtoucr.c: Likewise.
40725         * lib/unistr/u16-move.c: Likewise.
40726         * lib/unistr/u16-next.c: Likewise.
40727         * lib/unistr/u16-prev.c: Likewise.
40728         * lib/unistr/u16-set.c: Likewise.
40729         * lib/unistr/u16-startswith.c: Likewise.
40730         * lib/unistr/u16-stpcpy.c: Likewise.
40731         * lib/unistr/u16-stpncpy.c: Likewise.
40732         * lib/unistr/u16-strcat.c: Likewise.
40733         * lib/unistr/u16-strchr.c: Likewise.
40734         * lib/unistr/u16-strcmp.c: Likewise.
40735         * lib/unistr/u16-strcpy.c: Likewise.
40736         * lib/unistr/u16-strcspn.c: Likewise.
40737         * lib/unistr/u16-strdup.c: Likewise.
40738         * lib/unistr/u16-strlen.c: Likewise.
40739         * lib/unistr/u16-strmblen.c: Likewise.
40740         * lib/unistr/u16-strmbtouc.c: Likewise.
40741         * lib/unistr/u16-strncat.c: Likewise.
40742         * lib/unistr/u16-strncmp.c: Likewise.
40743         * lib/unistr/u16-strncpy.c: Likewise.
40744         * lib/unistr/u16-strnlen.c: Likewise.
40745         * lib/unistr/u16-strpbrk.c: Likewise.
40746         * lib/unistr/u16-strrchr.c: Likewise.
40747         * lib/unistr/u16-strspn.c: Likewise.
40748         * lib/unistr/u16-strstr.c: Likewise.
40749         * lib/unistr/u16-strtok.c: Likewise.
40750         * lib/unistr/u16-to-u32.c: Likewise.
40751         * lib/unistr/u16-to-u8.c: Likewise.
40752         * lib/unistr/u16-uctomb-aux.c: Likewise.
40753         * lib/unistr/u16-uctomb.c: Likewise.
40754         * lib/unistr/u32-check.c: Likewise.
40755         * lib/unistr/u32-chr.c: Likewise.
40756         * lib/unistr/u32-cmp.c: Likewise.
40757         * lib/unistr/u32-cpy-alloc.c: Likewise.
40758         * lib/unistr/u32-cpy.c: Likewise.
40759         * lib/unistr/u32-endswith.c: Likewise.
40760         * lib/unistr/u32-mblen.c: Likewise.
40761         * lib/unistr/u32-mbsnlen.c: Likewise.
40762         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40763         * lib/unistr/u32-mbtouc.c: Likewise.
40764         * lib/unistr/u32-mbtoucr.c: Likewise.
40765         * lib/unistr/u32-move.c: Likewise.
40766         * lib/unistr/u32-next.c: Likewise.
40767         * lib/unistr/u32-prev.c: Likewise.
40768         * lib/unistr/u32-set.c: Likewise.
40769         * lib/unistr/u32-startswith.c: Likewise.
40770         * lib/unistr/u32-stpcpy.c: Likewise.
40771         * lib/unistr/u32-stpncpy.c: Likewise.
40772         * lib/unistr/u32-strcat.c: Likewise.
40773         * lib/unistr/u32-strchr.c: Likewise.
40774         * lib/unistr/u32-strcmp.c: Likewise.
40775         * lib/unistr/u32-strcpy.c: Likewise.
40776         * lib/unistr/u32-strcspn.c: Likewise.
40777         * lib/unistr/u32-strdup.c: Likewise.
40778         * lib/unistr/u32-strlen.c: Likewise.
40779         * lib/unistr/u32-strmblen.c: Likewise.
40780         * lib/unistr/u32-strmbtouc.c: Likewise.
40781         * lib/unistr/u32-strncat.c: Likewise.
40782         * lib/unistr/u32-strncmp.c: Likewise.
40783         * lib/unistr/u32-strncpy.c: Likewise.
40784         * lib/unistr/u32-strnlen.c: Likewise.
40785         * lib/unistr/u32-strpbrk.c: Likewise.
40786         * lib/unistr/u32-strrchr.c: Likewise.
40787         * lib/unistr/u32-strspn.c: Likewise.
40788         * lib/unistr/u32-strstr.c: Likewise.
40789         * lib/unistr/u32-strtok.c: Likewise.
40790         * lib/unistr/u32-to-u16.c: Likewise.
40791         * lib/unistr/u32-to-u8.c: Likewise.
40792         * lib/unistr/u32-uctomb.c: Likewise.
40793         * lib/unistr/u8-check.c: Likewise.
40794         * lib/unistr/u8-chr.c: Likewise.
40795         * lib/unistr/u8-cmp.c: Likewise.
40796         * lib/unistr/u8-cpy-alloc.c: Likewise.
40797         * lib/unistr/u8-cpy.c: Likewise.
40798         * lib/unistr/u8-endswith.c: Likewise.
40799         * lib/unistr/u8-mblen.c: Likewise.
40800         * lib/unistr/u8-mbsnlen.c: Likewise.
40801         * lib/unistr/u8-mbtouc-aux.c: Likewise.
40802         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40803         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40804         * lib/unistr/u8-mbtouc.c: Likewise.
40805         * lib/unistr/u8-mbtoucr.c: Likewise.
40806         * lib/unistr/u8-move.c: Likewise.
40807         * lib/unistr/u8-next.c: Likewise.
40808         * lib/unistr/u8-prev.c: Likewise.
40809         * lib/unistr/u8-set.c: Likewise.
40810         * lib/unistr/u8-startswith.c: Likewise.
40811         * lib/unistr/u8-stpcpy.c: Likewise.
40812         * lib/unistr/u8-stpncpy.c: Likewise.
40813         * lib/unistr/u8-strcat.c: Likewise.
40814         * lib/unistr/u8-strchr.c: Likewise.
40815         * lib/unistr/u8-strcmp.c: Likewise.
40816         * lib/unistr/u8-strcpy.c: Likewise.
40817         * lib/unistr/u8-strcspn.c: Likewise.
40818         * lib/unistr/u8-strdup.c: Likewise.
40819         * lib/unistr/u8-strlen.c: Likewise.
40820         * lib/unistr/u8-strmblen.c: Likewise.
40821         * lib/unistr/u8-strmbtouc.c: Likewise.
40822         * lib/unistr/u8-strncat.c: Likewise.
40823         * lib/unistr/u8-strncmp.c: Likewise.
40824         * lib/unistr/u8-strncpy.c: Likewise.
40825         * lib/unistr/u8-strnlen.c: Likewise.
40826         * lib/unistr/u8-strpbrk.c: Likewise.
40827         * lib/unistr/u8-strrchr.c: Likewise.
40828         * lib/unistr/u8-strspn.c: Likewise.
40829         * lib/unistr/u8-strstr.c: Likewise.
40830         * lib/unistr/u8-strtok.c: Likewise.
40831         * lib/unistr/u8-to-u16.c: Likewise.
40832         * lib/unistr/u8-to-u32.c: Likewise.
40833         * lib/unistr/u8-uctomb-aux.c: Likewise.
40834         * lib/unistr/u8-uctomb.c: Likewise.
40835         * lib/unitypes.h: Likewise.
40836         * lib/uniwidth.h: Likewise.
40837         * lib/uniwidth/cjk.h: Likewise.
40838         * lib/uniwidth/u16-strwidth.c: Likewise.
40839         * lib/uniwidth/u16-width.c: Likewise.
40840         * lib/uniwidth/u32-strwidth.c: Likewise.
40841         * lib/uniwidth/u32-width.c: Likewise.
40842         * lib/uniwidth/u8-strwidth.c: Likewise.
40843         * lib/uniwidth/u8-width.c: Likewise.
40844         * lib/uniwidth/width.c: Likewise.
40845
40846 2007-10-07  Bruno Haible  <bruno@clisp.org>
40847
40848         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
40849         The file is still under LGPL (see modules/inttypes).
40850
40851 2007-10-06  Bruno Haible  <bruno@clisp.org>
40852
40853         * modules/trunc (Dependencies): Add 'extensions'.
40854         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
40855         Reported by Ben Pfaff <blp@gnu.org>.
40856
40857 2007-10-06  Bruno Haible  <bruno@clisp.org>
40858
40859         * modules/freopen-tests: New file.
40860         * tests/test-freopen.c: New file.
40861
40862         * modules/fopen-tests: New file.
40863         * tests/test-fopen.c: New file.
40864
40865         * modules/fopen: New file.
40866         * lib/fopen.c: New file.
40867         * m4/fopen.m4: New file.
40868         * modules/freopen: New file.
40869         * lib/freopen.c: New file.
40870         * m4/freopen.m4: New file.
40871         * lib/stdio.in.h (fopen, freopen): New declarations.
40872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
40873         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40874         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
40875         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40876         * doc/functions/fopen.texi: Mention the 'fopen' module.
40877         * doc/functions/freopen.texi: Mention the 'freopen' module.
40878
40879 2007-10-06  Bruno Haible  <bruno@clisp.org>
40880
40881         * modules/open-tests: New file.
40882         * tests/test-open.c: New file.
40883
40884         * modules/open: New file.
40885         * lib/open.c: New file.
40886         * m4/open.m4: New file.
40887         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
40888         lib/open.c does.
40889         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
40890         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
40891         macros.
40892         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
40893         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
40894         REPLACE_OPEN.
40895         * doc/functions/open.texi: Mention the 'open' module.
40896
40897 2007-10-04  Bruno Haible  <bruno@clisp.org>
40898
40899         * modules/ceill-tests: New file.
40900         * tests/test-ceill.c: New file.
40901
40902         * modules/ceill: New file.
40903         * lib/ceill.c: Replace entire file.
40904         * m4/ceill.m4: New file.
40905         * lib/math.in.h (ceill): Replace declaration.
40906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
40907         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
40908         * doc/functions/ceill.texi: Mention the 'ceill' module.
40909         * modules/mathl (Files): Remove lib/ceill.c.
40910         (Depends-on): Add ceill.
40911
40912 2007-10-04  Bruno Haible  <bruno@clisp.org>
40913
40914         * modules/ceilf-tests: New file.
40915         * tests/test-ceilf.c: New file.
40916
40917         * modules/ceilf: New file.
40918         * lib/ceil.c: New file.
40919         * lib/ceilf.c: New file.
40920         * m4/ceilf.m4: New file.
40921         * lib/math.in.h (ceilf): New declaration.
40922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
40923         HAVE_DECL_CEILF.
40924         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
40925         HAVE_DECL_CEILF.
40926         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
40927
40928 2007-10-04  Bruno Haible  <bruno@clisp.org>
40929
40930         * modules/floorl-tests: New file.
40931         * tests/test-floorl.c: New file.
40932
40933         * modules/floorl: New file.
40934         * lib/floorl.c: Replace entire file.
40935         * m4/floorl.m4: New file.
40936         * lib/math.in.h (floorl): Replace declaration.
40937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
40938         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
40939         * doc/functions/floorl.texi: Mention the 'floorl' module.
40940         * modules/mathl (Files): Remove lib/floorl.c.
40941         (Depends-on): Add floorl.
40942
40943 2007-10-04  Bruno Haible  <bruno@clisp.org>
40944
40945         * modules/floorf-tests: New file.
40946         * tests/test-floorf.c: New file.
40947
40948         * modules/floorf: New file.
40949         * lib/floor.c: New file.
40950         * lib/floorf.c: New file.
40951         * m4/floorf.m4: New file.
40952         * lib/math.in.h (floorf): New declaration.
40953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
40954         HAVE_DECL_FLOORF.
40955         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
40956         HAVE_DECL_FLOORF.
40957         * doc/functions/floorf.texi: Mention the 'floorf' module.
40958
40959 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
40960             Bruno Haible  <bruno@clisp.org>
40961
40962         Advertise for the Git server instead of the CVS server.
40963         * doc/gnulib-intro.texi (Steady Development): Mention the Git
40964         repository instead of the CVS one.
40965         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
40966         about all VCS systems generically.
40967         * doc/gnulib.texi (Introduction): Capitalize `Git'.
40968
40969 2007-10-04  Bruno Haible  <bruno@clisp.org>
40970
40971         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
40972         means.
40973         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
40974
40975 2007-10-04  Bruno Haible  <bruno@clisp.org>
40976
40977         * modules/truncl-tests: New file.
40978         * tests/test-truncl.c: New file.
40979
40980         * modules/truncl: New file.
40981         * lib/truncl.c: New file.
40982         * m4/truncl.m4: New file.
40983         * lib/math.in.h (truncl): New declaration.
40984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
40985         HAVE_DECL_TRUNCL.
40986         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
40987         HAVE_DECL_TRUNCL.
40988         * doc/functions/truncl.texi: Mention the 'truncl' module.
40989
40990 2007-10-04  Bruno Haible  <bruno@clisp.org>
40991
40992         * modules/truncf-tests: New file.
40993         * tests/test-truncf.c: New file.
40994
40995         * modules/truncf: New file.
40996         * lib/trunc.c: Make paramerizable through USE_* macros.
40997         * lib/truncf.c: New file.
40998         * m4/truncf.m4: New file.
40999         * lib/math.in.h (truncf): New declaration.
41000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41001         HAVE_DECL_TRUNCF.
41002         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41003         HAVE_DECL_TRUNCF.
41004         * doc/functions/truncf.texi: Mention the 'truncf' module.
41005
41006 2007-10-03  Bruno Haible  <bruno@clisp.org>
41007
41008         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41009         augmentation also for tests modules.
41010         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41011         * modules/atexit-tests (Makefile.am): Likewise.
41012         * modules/binary-io-tests (Makefile.am): Likewise.
41013         * modules/c-strcase-tests (Makefile.am): Likewise.
41014         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41015         * modules/canonicalize-tests (Makefile.am): Likewise.
41016         * modules/closein-tests (Makefile.am): Likewise.
41017         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41018         * modules/freadahead-tests (Makefile.am): Likewise.
41019         * modules/fseek-tests (Makefile.am): Likewise.
41020         * modules/fseeko-tests (Makefile.am): Likewise.
41021         * modules/ftell-tests (Makefile.am): Likewise.
41022         * modules/ftello-tests (Makefile.am): Likewise.
41023         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41024         * modules/isnanl-tests (Makefile.am): Likewise.
41025         * modules/lseek-tests (Makefile.am): Likewise.
41026         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41027         * modules/mbscasestr-tests (Makefile.am): Likewise.
41028         * modules/mbschr-tests (Makefile.am): Likewise.
41029         * modules/mbscspn-tests (Makefile.am): Likewise.
41030         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41031         * modules/mbspbrk-tests (Makefile.am): Likewise.
41032         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41033         * modules/mbsrchr-tests (Makefile.am): Likewise.
41034         * modules/mbsspn-tests (Makefile.am): Likewise.
41035         * modules/mbsstr-tests (Makefile.am): Likewise.
41036         * modules/printf-posix-tests (Makefile.am): Likewise.
41037         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41038         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41039         * modules/tsearch-tests (Makefile.am): Likewise.
41040         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41041         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41042         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41043         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41044         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41045         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
41046         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
41047         * modules/vprintf-posix-tests (Makefile.am): Likewise.
41048         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
41049         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
41050         * modules/xstrtoimax-tests (Makefile.am): Likewise.
41051         * modules/xstrtol-tests (Makefile.am): Likewise.
41052         * modules/xstrtoumax-tests (Makefile.am): Likewise.
41053         * modules/yesno-tests (Makefile.am): Likewise.
41054
41055 2007-10-03  Bruno Haible  <bruno@clisp.org>
41056
41057         * modules/trunc-tests: New file.
41058         * tests/test-trunc.c: New file.
41059
41060         * modules/trunc: New file.
41061         * lib/trunc.c: New file.
41062         * m4/trunc.m4: New file.
41063         * lib/math.in.h (trunc): New declaration.
41064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41065         HAVE_DECL_TRUNC.
41066         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41067         HAVE_DECL_TRUNC.
41068         * doc/functions/trunc.texi: Mention the 'trunc' module.
41069
41070 2007-10-03  Bruno Haible  <bruno@clisp.org>
41071
41072         * tests/test-fpending.c: New file, mostly copied
41073         from coreutils/lib/t-fpending.c.
41074         * modules/fpending-tests: New file.
41075
41076 2007-10-03  Bruno Haible  <bruno@clisp.org>
41077
41078         Port the stdio extensions to QNX (untested).
41079         * lib/fseterr.c (fseterr): Add support for QNX.
41080         * lib/fbufmode.c (fbufmode): Likewise.
41081         * lib/freadable.c (freadable): Likewise.
41082         * lib/fwritable.c (fwritable): Likewise.
41083         * lib/freading.c (freading): Likewise.
41084         * lib/fwriting.c (fwriting): Likewise.
41085         * lib/freadahead.c (freadahed): Likewise.
41086         * lib/fpurge.c (fpurge): Likewise.
41087         * lib/fseeko.c (rpl_fseeko): Likewise.
41088
41089 2007-10-03  Bruno Haible  <bruno@clisp.org>
41090             Jim Meyering  <jim@meyering.net>
41091             Eric Blake  <ebb9@byu.net>
41092
41093         * doc/relocatable.texi: Use @command instead of @program.
41094
41095 2007-10-02  Jim Meyering  <jim@meyering.net>
41096
41097         Perform one more "_.h" -> ".in.h" substitution.
41098         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41099         instead of unistd_.h here, too.
41100
41101 2007-10-01  Bruno Haible  <bruno@clisp.org>
41102
41103         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41104         Needed for the alloca-opt module.
41105
41106 2007-09-30  Bruno Haible  <bruno@clisp.org>
41107
41108         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41109         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41110         alloca_.h.
41111         * lib/argz.in.h: Renamed from lib/argz_.h.
41112         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41113         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41114         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41115         byteswap_.h.
41116         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41117         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41118         dirent_.h.
41119         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41120         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41121         fcntl_.h.
41122         * lib/float.in.h: Renamed from lib/float_.h.
41123         * modules/float (Files, Makefile.am): Use float.in.h instead of
41124         float_.h.
41125         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41126         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41127         fnmatch_.h.
41128         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41129         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41130         getopt_.h.
41131         * lib/glob.in.h: Renamed from lib/glob_.h.
41132         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41133         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41134         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41135         iconv_.h.
41136         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41137         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41138         inttypes_.h.
41139         * lib/locale.in.h: Renamed from lib/locale_.h.
41140         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41141         locale_.h.
41142         * lib/math.in.h: Renamed from lib/math_.h.
41143         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41144         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41145         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41146         of netinet_in_.h. Add dependency.
41147         * lib/poll.in.h: Renamed from lib/poll_.h.
41148         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41149         * lib/search.in.h: Renamed from lib/search_.h.
41150         * modules/search (Files, Makefile.am): Use search.in.h instead of
41151         search_.h.
41152         * lib/signal.in.h: Renamed from lib/signal_.h.
41153         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41154         _signal.h.
41155         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41156         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41157         stdbool_.h.
41158         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41159         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41160         stdint_.h.
41161         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41162         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41163         stdio_.h.
41164         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41165         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41166         stdlib_.h.
41167         * lib/string.in.h: Renamed from lib/string_.h.
41168         * modules/string (Files, Makefile.am): Use string.in.h instead of
41169         string_.h.
41170         * doc/gnulib-tool.texi (Initial import): Update.
41171         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41172         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41173         of sys_select_.h. Add dependency.
41174         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41175         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41176         of sys_socket_.h.
41177         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41178         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41179         sys_stat_.h.
41180         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41181         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41182         sys_time_.h.
41183         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41184         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41185         sysexits_.h.
41186         * lib/time.in.h: Renamed from lib/time_.h.
41187         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41188         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41189         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41190         unistd_.h.
41191         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41192         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41193         wchar_.h.
41194         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41195         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41196         wctype_.h.
41197         * build-aux/bootstrap (slurp): Update.
41198         * lib/.cppi-disable: Update.
41199
41200 2007-09-30  Bruno Haible  <bruno@clisp.org>
41201
41202         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41203         Needed on BeOS.
41204
41205 2007-09-30  Bruno Haible  <bruno@clisp.org>
41206
41207         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41208
41209 2007-09-29  Bruno Haible  <bruno@clisp.org>
41210
41211         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41212
41213 2007-09-29  Bruno Haible  <bruno@clisp.org>
41214
41215         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41216         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41217         * build-aux/install-reloc: Compile also areadlink.c.
41218         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41219
41220 2007-09-29  Bruno Haible  <bruno@clisp.org>
41221
41222         * gnulib-tool (func_emit_initmacro_done): Indentation.
41223
41224 2007-09-29  Bruno Haible  <bruno@clisp.org>
41225
41226         * README: Add CVS checkout update instructions.
41227         Info from Bob Proulx <bob@proulx.com>.
41228
41229 2007-09-28  Eric Blake  <ebb9@byu.net>
41230
41231         Provide move-if-change.
41232         * build-aux/move-if-change: New file, based on best practice
41233         rather than any canonical upstream location.
41234
41235 2007-09-28  Jim Meyering  <jim@meyering.net>
41236
41237         Fix canonicalize loop-detection corner case.
41238         Do not attempt to stat the symlink values stored via seen_triple.
41239         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41240         on linux-2.6.18, (but not 2.6.22).
41241         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41242         triple_compare.  The former compares dev,ino,filename, while the latter
41243         would actually stat dirname(filename) when dev and ino were equal.
41244         * lib/hash-triple.c: Install <string.h>.
41245         (STREQ): Define.
41246         (triple_compare_ino_str): New function.
41247         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41248
41249 2007-09-28  Eric Blake  <ebb9@byu.net>
41250
41251         Enforce that AC_REPLACE_FUNCS files exist.
41252         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41253         override check for typos.
41254
41255         Fix test-closein on Solaris 10.
41256         * tests/test-closein.c (main): Don't assume stdin can be inherited
41257         closed on all systems.
41258         * tests/test-closein.sh: Likewise.
41259         Reported by Piotr Tarnowski.
41260
41261 2007-09-28  Jim Meyering  <jim@meyering.net>
41262
41263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41264
41265 2007-09-27  Jim Meyering  <jim@meyering.net>
41266
41267         canonicalize: Avoid a false-positive cycle failure.
41268         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41269         Sort.  Remove cycle-check.
41270         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41271         not cycle-check.h.
41272         (seen_triple): New function.
41273         (canonicalize_filename_mode): Use it instead of cycle-check.
41274         * tests/test-canonicalize.c: Add a test for this bug.
41275         * tests/test-canonicalize.sh: Set up and run the test.
41276
41277         New module, file-set, from coreutils.
41278         * modules/file-set: Define it.
41279         * lib/file-set.c, lib/file-set.h: Implement.
41280
41281         New module, hash-triple, from coreutils.
41282         * modules/hash-triple: Define it.
41283         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41284
41285 2007-09-25  Eric Blake  <ebb9@byu.net>
41286
41287         Fix strerror on Interix.
41288         * lib/string_.h (strerror): Declare replacement.
41289         * doc/functions/strerror.texi (strerror): Document the Interix
41290         shortcoming.
41291         * modules/string (Makefile.am): Support new hooks.
41292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41293         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41294         gl_FUNC_STRERROR_SEPARATE.
41295         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41296         * lib/strerror.c (rpl_strerror): Provide replacement.
41297         * modules/strerror (Depends-on): Add string.
41298         (configure.ac): Detect use of module.
41299         * tests/test-strerror.c: New file.
41300         * modules/strerror-tests: New test module.
41301         * modules/argp (Depends-on): Add strerror.
41302         * modules/error (Depends-on): Likewise.
41303         Reported by Martin Koeppe.
41304
41305 2007-09-24  Bruno Haible  <bruno@clisp.org>
41306
41307         * README: Update git instructions.
41308
41309 2007-09-24  Eric Blake  <ebb9@byu.net>
41310
41311         Revert fpending breakage from 2007-09-08.
41312         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41313         __fpending.c.
41314
41315 2007-09-24  Jim Meyering  <jim@meyering.net>
41316
41317         filenamecat.c: Add a test.
41318         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41319         showing how the function works when DIR is the empty string.
41320
41321 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41322
41323         * tests/test-canonicalize.sh: Turn on executable bit.
41324
41325 2007-09-19  Eric Blake  <ebb9@byu.net>
41326
41327         * README: Update CVS instructions.
41328
41329 2007-09-18  Bruno Haible  <bruno@clisp.org>
41330
41331         * modules/areadlink: New file.
41332         * lib/areadlink.h (areadlink): New declaration.
41333         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41334
41335 2007-09-17  Jim Meyering  <jim@meyering.net>
41336
41337         * lib/savewd.c (ESTALE) [!defined]: Define.
41338         Reported to be required on Interix by Martin Koeppe.
41339
41340 2007-09-17  Bruno Haible  <bruno@clisp.org>
41341
41342         * gnulib-tool (func_version): Use $version.
41343
41344 2007-09-16  Bruno Haible  <bruno@clisp.org>
41345
41346         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41347         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41348         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41349         Reported by Greg Schafer <gschafer@zip.com.au>.
41350
41351 2007-09-15  Bruno Haible  <bruno@clisp.org>
41352
41353         * gnulib-tool (sed): Try a little harder to make bash understand the
41354         alias.
41355         Reported by Bruce Korb <bruce.korb@gmail.com>.
41356
41357 2007-09-13  Eric Blake  <ebb9@byu.net>
41358
41359         * ChangeLog: Remove conflict markers.
41360
41361 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41362
41363         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41364         Reported by Bruno Haible <bruno@clisp.org>.
41365
41366 2007-09-12  Bruno Haible  <bruno@clisp.org>
41367
41368         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41369         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41370         is not defined.
41371
41372 2007-09-12  Eric Blake  <ebb9@byu.net>
41373
41374         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41375         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41376         Autoconf definition.
41377         * modules/euidaccess (Depends-on): Add extensions, for
41378         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41379         * modules/fnmatch (Depends-on): Likewise.
41380         * modules/getaddrinfo (Depends-on): Likewise.
41381         * modules/getdelim (Depends-on): Likewise.
41382         * modules/getline (Depends-on): Likewise.
41383         * modules/getsubopt (Depends-on): Likewise.
41384         * modules/gettext (Depends-on): Likewise.
41385         * modules/group-member (Depends-on): Likewise.
41386         * modules/mbchar (Depends-on): Likewise.
41387         * modules/memmem (Depends-on): Likewise.
41388         * modules/mempcpy (Depends-on): Likewise.
41389         * modules/memrchr (Depends-on): Likewise.
41390         * modules/pagealign_alloc (Depends-on): Likewise.
41391         * modules/readutmp (Depends-on): Likewise.
41392         * modules/stpcpy (Depends-on): Likewise.
41393         * modules/stpncpy (Depends-on): Likewise.
41394         * modules/strchrnul (Depends-on): Likewise.
41395         * modules/strndup (Depends-on): Likewise.
41396         * modules/strsep (Depends-on): Likewise.
41397         * modules/strverscmp (Depends-on): Likewise.
41398         * modules/vasprintf (Depends-on): Likewise.
41399         * modules/wcwidth (Depends-on): Likewise.
41400         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
41401         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
41402         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
41403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
41404         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41405         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41406         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
41407         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41408         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
41409         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
41410         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41411         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
41412         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
41413         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41414         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
41415         * m4/readutmp.m4 (gl_READUTMP): Likewise.
41416         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41417         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
41418         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41419         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
41420         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41421         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
41422         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
41423         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
41424         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
41425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41426         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
41427         so that lock.m4 can be used in gettext without extensions module.
41428
41429 2007-09-11  Bruno Haible  <bruno@clisp.org>
41430
41431         * m4/isc-posix.m4: Remove file.
41432         Suggested by Eric Blake.
41433
41434 2007-09-11  Eric Blake  <ebb9@byu.net>
41435
41436         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
41437
41438 2007-09-10  Bruno Haible  <bruno@clisp.org>
41439
41440         * posix-modules: Fix typo in error message.
41441         Reported by Matt <mkraai@beckman.com>.
41442
41443 2007-09-09  Bruno Haible  <bruno@clisp.org>
41444
41445         * doc/functions/getdelim.texi: Update list of platforms lacking the
41446         function.
41447         * doc/functions/getline.texi: Likewise.
41448
41449 2007-09-09  Jim Meyering  <jim@meyering.net>
41450
41451         * lib/hash.c (hash_initialize): Detect calloc failure.
41452         Reported by Bruno Haible.
41453
41454 2007-09-09  Bruno Haible  <bruno@clisp.org>
41455
41456         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
41457         malloc or realloc fails.
41458
41459 2007-09-09  Bruno Haible  <bruno@clisp.org>
41460
41461         * modules/getcwd (Depends-on): Add malloc-posix.
41462         * modules/glob (Depends-on): Likewise.
41463         * modules/putenv (Depends-on): Likewise.
41464         * modules/strdup (Depends-on): Likewise.
41465         * modules/getdelim (Depends-on): Add realloc-posix.
41466         * modules/read-file (Depends-on): Likewise.
41467
41468 2007-09-09  Bruno Haible  <bruno@clisp.org>
41469
41470         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
41471         (gl_FUNC_MALLOC_POSIX): Require it.
41472         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
41473         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
41474         * modules/realloc (Files): Add m4/malloc.m4.
41475         * modules/calloc (Files): Likewise.
41476
41477 2007-09-09  Bruno Haible  <bruno@clisp.org>
41478
41479         * modules/malloc-posix: New file.
41480         * modules/malloc (Depends-on): Add malloc-posix.
41481         * lib/malloc.c: Include errno.h.
41482         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
41483         and a POSIX-compatible malloc into a single function. Set ENOMEM
41484         when returning NULL.
41485         * m4/malloc.m4: New file.
41486         * doc/functions/malloc.texi: Mention the malloc-posix module.
41487         * lib/stdlib_.h (malloc): New declaration.
41488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41489         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
41490         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
41491         and HAVE_MALLOC_POSIX.
41492
41493 2007-09-09  Bruno Haible  <bruno@clisp.org>
41494
41495         * modules/realloc-posix: New file.
41496         * modules/realloc (Depends-on): Add realloc-posix.
41497         * lib/realloc.c: Include errno.h.
41498         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
41499         and a POSIX-compatible realloc into a single function. Set ENOMEM
41500         when returning NULL.
41501         * m4/realloc.m4: New file.
41502         * doc/functions/realloc.texi: Mention the realloc-posix module.
41503         * lib/stdlib_.h (realloc): New declaration.
41504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41505         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
41506         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
41507         and HAVE_REALLOC_POSIX.
41508
41509 2007-09-09  Bruno Haible  <bruno@clisp.org>
41510
41511         * modules/calloc-posix: New file.
41512         * modules/calloc (Depends-on): Add calloc-posix.
41513         * lib/calloc.c: Include errno.h.
41514         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
41515         and a POSIX-compatible calloc into a single function. Set ENOMEM
41516         when returning NULL.
41517         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
41518         * doc/functions/calloc.texi: Mention the calloc-posix module.
41519         * lib/stdlib_.h (calloc): New declaration.
41520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41521         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
41522         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
41523         and HAVE_CALLOC_POSIX.
41524
41525 2007-09-09  Bruno Haible  <bruno@clisp.org>
41526
41527         Allow for modules to show an arbitrary notice.
41528         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
41529         * gnulib-tool: New option --extract-notice.
41530         (func_usage): Document it.
41531         (sed_extract_prog): Update.
41532         (func_get_notice): New function.
41533         (func_modules_notice): New function.
41534         (func_import, func_create_testdir): Invoke it.
41535         Suggested by Jim Meyering.
41536
41537 2007-09-09  Bruno Haible  <bruno@clisp.org>
41538
41539         * gnulib-tool: New options --verbose, --quiet.
41540         (func_usage): Document them.
41541         (verbose): New variable.
41542         (func_execute_command): New function.
41543         (func_import): Don't show the module list and the file list if
41544         $verbose < 0.
41545         (func_create_testdir): Likewise. Use func_execute_command.
41546         (func_create_megatestdir): Use func_execute_command.
41547
41548 2007-09-08  Bruno Haible  <bruno@clisp.org>
41549
41550         * gnulib-tool (func_import): Prefer rsync over wget when available,
41551         for fetching the PO files.
41552
41553 2007-09-08  Bruno Haible  <bruno@clisp.org>
41554
41555         * posix-modules: New file. Portions copied from gnulib-tool.
41556         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
41557
41558 2007-09-08  Jim Meyering  <jim@meyering.net>
41559
41560         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
41561         * lib/fpending.h: Rename from __fpending.h.
41562         * lib/fpending.c: Rename from __fpending.c.
41563         Include "fpending.h", not "__fpending.h".
41564         * lib/__fpending.h, lib/__fpending.c: Remove files.
41565         * modules/fpending (Files): Reflect new file names.
41566         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
41567
41568 2007-09-08  Bruno Haible  <bruno@clisp.org>
41569
41570         * m4/inttypes-h.m4: Remove stub file.
41571
41572 2007-09-07  Simon Josefsson  <simon@josefsson.org>
41573
41574         * doc/headers/stdint.texi: Discuss #include_next issue.
41575
41576 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41577
41578         * build-aux/bootstrap: Remove obsolete comment about wget --help.
41579
41580 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41581
41582         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
41583         in variable name.
41584
41585 2007-09-03  Jim Meyering  <jim@meyering.net>
41586
41587         New module: git-version-gen.
41588         * modules/git-version-gen: New file.
41589
41590         Import changes from coreutils for bootstrap script.
41591
41592         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
41593
41594         bootstrap: uses rsync to download the .po files
41595         * build-aux/bootstrap (po_download_command_format): New global.
41596         (download_po_files): Use rsync.
41597         (update_po_files): Don't remove .po files after download,
41598         so future rsync runs can take advantage of the copies.
41599
41600         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
41601
41602         Solve the unnecessary-.po-file-regeneration problem once and for all.
41603         * build-aux/bootstrap (download_po_files): New function, renamed from
41604         get_translations.  Now, downloads, but doesn't update LINGUAS.
41605         (update_po_files): New function.
41606
41607         bootstrap: Ignore more.
41608         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
41609         uniwidth to e.g., lib/.gitignore.
41610         (slurp): Handle the sys_stat_.h -> sys mapping, too.
41611
41612         * build-aux/bootstrap: New setting: vc_ignore.
41613         (insert_sorted_if_absent): Create $file if absent.
41614         Adapt to new, possibly empty, list: $vc_ignore.
41615
41616         bootstrap: generate more ignorable names
41617         * build-aux/bootstrap (slurp): When generating ignorable names,
41618         also map .sin to .sed, .gperf to .c, and .y to .c.
41619
41620 2007-09-03  Jim Meyering  <jim@meyering.net>
41621
41622         * build-aux/git-version-gen: New file, from coreutils.  For details, see
41623         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
41624
41625 2007-09-02  Bruno Haible  <bruno@clisp.org>
41626
41627         Fix mis-recognition of 'mcs' on QNX 6.
41628         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
41629         output contains the string "Mono".
41630         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
41631         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
41632
41633 2007-09-01  Bruno Haible  <bruno@clisp.org>
41634
41635         Fix collision between uniwidth/* and linebreak modules.
41636         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
41637         u32_width): Remove declarations.
41638         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
41639         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
41640         streq3, streq2, streq1, streq0): Remove functions.
41641         (STREQ): Remove macro.
41642         (is_cjk_encoding): Remove function.
41643         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
41644         (uc_width, u8_width, u16_width, u32_width): Remove functions.
41645         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
41646         * NEWS: Document the change.
41647
41648 2007-09-01  Bruno Haible  <bruno@clisp.org>
41649
41650         * lib/streq.h: Add double-inclusion guard.
41651
41652 2007-09-01  Karl Berry  <karl@gnu.org>
41653
41654         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
41655
41656 2007-08-28  Jim Meyering  <jim@meyering.net>
41657
41658         Rename mreadlink_with_size to areadlink_with_size.
41659         * NEWS: Document the change.
41660         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
41661         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
41662         * lib/mreadlink.h: Rename this to...
41663         * lib/areadlink.h: ...this.
41664         * modules/mreadlink-with-size: Rename this to...
41665         * modules/areadlink-with-size: ...this.
41666         * lib/canonicalize.c: Reflect the renaming.
41667         * modules/canonicalize: Likewise.
41668
41669 2007-08-26  Bruno Haible  <bruno@clisp.org>
41670
41671         * gnulib-tool (func_import): When deciding which files to remove,
41672         consider also dangling symbolic links.
41673         Reported by Eric Blake.
41674
41675 2007-08-26  Bruno Haible  <bruno@clisp.org>
41676
41677         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
41678
41679 2007-08-23  Simon Josefsson  <simon@josefsson.org>
41680
41681         * lib/readline.c: Don't include getline.h, the prototype is now
41682         found in stdio.h.
41683
41684 2007-08-23  Jim Meyering  <jim@meyering.net>
41685
41686         Getdelim touchup.
41687         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
41688         around the funlockfile call, since funlockfile never sets errno.
41689         Don't set errno upon failed realloc.
41690
41691 2007-08-22  Eric Blake  <ebb9@byu.net>
41692
41693         Getline touchups.
41694         * lib/getdelim.c (getdelim): Revert regression that required *n to
41695         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
41696         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
41697         getdelim, rather than whether implementation is missing.
41698         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
41699         * lib/stdio_.h (getline): Also declare if replacement is
41700         required.
41701         * doc/functions/getdelim.texi: New file.
41702         * doc/functions/getline.texi: Likewise.
41703         * doc/gnulib.texi (Function Substitutes): Add new files.
41704         Reported by Bruno Haible.
41705
41706 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
41707
41708         * users.txt: Add Guile.
41709
41710 2007-08-22  Eric Blake  <ebb9@byu.net>
41711
41712         * tests/test-getdelim.c (main): Use remove, not unlink.
41713         * tests/test-getline.c (main): Likewise.
41714
41715         Move getline and getdelim into stdio.h, per POSIX 200x.
41716         * modules/getline (Files): Remove getline.h.
41717         (Depends-on): Add stdio.
41718         (configure.ac): Add module indicator.
41719         * modules/getdelim (Files): Remove getdelim.h.
41720         (Depends-on): Add stdio.
41721         (configure.ac): Add module indicator.
41722         * modules/stdio (Makefile.am): Work with new indicators.
41723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41724         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
41725         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41726         * lib/getdelim.h: Delete.
41727         * lib/getline.h: Delete.
41728         * lib/stdio_.h (getdelim, getline): Declare.
41729         * modules/getdelim-tests: New module.
41730         * modules/getline-tests: Likewise.
41731         * tests/test-getdelim.c: New file.
41732         * tests/test-getline.c: Likewise.
41733         * NEWS: Document the change.
41734         * lib/getline.c: Update choice of header.
41735         * lib/csharpcomp.c: Likewise.
41736         * lib/getpass.c: Likewise.
41737         * lib/javacomp.c: Likewise.
41738         * lib/javaversion.c: Likewise.
41739         * lib/yesno.c: Likewise.
41740         * lib/getdelim.c: Likewise.
41741         (getdelim): Set errno on failure, and avoid memory leak.
41742
41743 2007-08-19  Bruno Haible  <bruno@clisp.org>
41744
41745         * modules/closein (Depends-on): Add freadahead.
41746         * lib/closein.c: Include freadahead.h.
41747         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
41748         is zero.
41749
41750 2007-08-19  Bruno Haible  <bruno@clisp.org>
41751
41752         * modules/freadahead-tests: New file.
41753         * tests/test-freadahead.sh: New file.
41754         * tests/test-freadahead.c: New file.
41755
41756         * modules/freadahead: New file.
41757         * lib/freadahead.h: New file.
41758         * lib/freadahead.c: New file.
41759         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
41760         fbufmode, fpurge, freadable, fwritable.
41761
41762 2007-08-19  Eric Blake  <ebb9@byu.net>
41763
41764         Test yesno in combination with closein.
41765         * lib/yesno.c (yesno): Document use of stdin.
41766         * modules/yesno-tests (Files): New module.
41767         * tests/test-yesno.c (main): New file.
41768         * tests/test-yesno.sh: Likewise.
41769
41770 2007-08-19  Bruno Haible  <bruno@clisp.org>
41771
41772         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
41773         * lib/fseeko.c (rpl_fseeko): Likewise.
41774         * lib/fseterr.c (fseterr): Likewise.
41775
41776 2007-08-19  Bruno Haible  <bruno@clisp.org>
41777
41778         * tests/test-lseek.c (main): Disable a test for BeOS.
41779         * doc/functions/lseek.texi: Document the BeOS bug.
41780
41781 2007-08-19  Bruno Haible  <bruno@clisp.org>
41782             Eric Blake  <ebb9@byu.net>
41783
41784         * lib/lseek.c: Include <sys/stat.h>.
41785         (rpl_lseek): Add workaround code also for Unix platforms.
41786         Needed for BeOS.
41787         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
41788         * doc/functions/lseek.texi: Document BeOS definiency.
41789
41790 2007-08-18  Bruno Haible  <bruno@clisp.org>
41791
41792         * modules/fstrcmp-tests: New file.
41793         * tests/test-fstrcmp.c: New file.
41794
41795 2007-08-18  Bruno Haible  <bruno@clisp.org>
41796
41797         * modules/fstrcmp: New file, from GNU gettext with modifications.
41798         * lib/fstrcmp.h: New file, from GNU gettext.
41799         * lib/fstrcmp.c: New file, from GNU gettext.
41800         * MODULES.html.sh (String handling): Add fstrcmp.
41801
41802 2007-08-18  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
41805         'bool'.
41806         (diag, compareseq): Remove const from the ctxt argument.
41807         (USE_HEURISTIC): Undefine at the end.
41808
41809 2007-08-18  Jim Meyering  <jim@meyering.net>
41810
41811         New file: lib/idcache.h
41812         * NEWS: Mention the addition.
41813         * modules/idcache (Files): Add lib/idcache.h
41814         * lib/idcache.c: Include "idcache.h".
41815         Don't include <sys/types.h>.
41816         Add a FIXME comment.
41817         Move file-scoped "static" declarations to the top.
41818         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
41819
41820 2007-08-17  Bruno Haible  <bruno@clisp.org>
41821         and Paul Eggert  <eggert@cs.ucla.edu>
41822
41823         * MODULES.html.sh: Add diffseq.
41824         * modules/diffseq: New file.
41825         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
41826         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
41827
41828 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41829
41830         Import changes from coreutils for bootstrap script.
41831
41832         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
41833
41834         * build-aux/bootstrap (slurp): Work even in environments where
41835         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
41836         current code does not slurp files whose names start with ".", and
41837         this looks like it might be a troublesome area.
41838
41839         2007-07-11  Jim Meyering  <jim@meyering.net>
41840
41841         If there's a GPL vN copyright comment, require that N == 3.
41842
41843         2007-07-08  Jim Meyering  <jim@meyering.net>
41844
41845         Run the coreutils-specific code only if tests/Makefile.am.in exists.
41846         * build-aux/bootstrap (mam_template): Move definition out of loop.
41847
41848         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
41849
41850         * build-aux/bootstrap (symlink_to_dir): Rename function from
41851         symlink_to_gnulib.  Add a directory parameter.  Update all
41852         callers.
41853         (cp_mark_as_generated): Also check for -- and link to -- files in
41854         gl/.
41855
41856         2007-07-08  Jim Meyering  <jim@meyering.net>
41857
41858         Adapt to deeper hierarchy in gnulib.
41859         * build-aux/bootstrap (symlink_to_dir): If the destination
41860         directory doesn't exist, create it. This is required at least for
41861         "lib/uniwidth/cjk.h".
41862
41863         2007-05-15  Jim Meyering  <jim@meyering.net>
41864
41865         * build-aux/bootstrap: Now that generated Makefile.am files
41866         are no longer under version control, they must be created at
41867         bootstrap time.
41868
41869 2007-08-14  Ben Pfaff  <blp@gnu.org>
41870
41871         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
41872
41873 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41874
41875         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
41876         given the changes below.
41877         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
41878         even on hosts that have padding bits beyond the supported 64.
41879
41880 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41881
41882         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
41883         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
41884         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
41885         depends on it.
41886         (xstrtol_error): Remove.
41887         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
41888         but with a different signature.
41889         (ATTRIBUTE_NORETURN, __attribute__): New macros.
41890         * lib/xstrtol-error.c: Include exitfail.h.
41891         (xstrtol_fatal): New function, with a different signature from the
41892         old xstrtol_error, so that the caller need not worry about passing
41893         in an exit status, or about storage management of the option argument.
41894         (xstrtol_error): Now a static function.  Redo signature to
41895         implement xstrtol_fatal.  Output the correct number of hyphens in
41896         front of the option so that the caller need not worry about
41897         storage management.
41898         (N_): New macro.
41899         (_): Remove; not used now.
41900         * modules/xstrtol: Depend on getopt.
41901         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
41902         of old STRTOL_FATAL_ERROR macro.
41903         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
41904         of test program.
41905         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
41906         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
41907
41908 2007-08-08  Eric Blake  <ebb9@byu.net>
41909
41910         * lib/xstrtol-error.c: Add missing include.
41911
41912         Move xstrtol messages into gnulib domain, when --pobase is used.
41913         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
41914         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
41915         * modules/xstrtol (Files): Distribute new file.
41916         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
41917         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
41918         * tests/test-xstrtol.c: ...into new file.
41919         * tests/test-xstrtoul.c: Also test xstrtoul.
41920         * tests/test-xstrtoimax.c: Also test xstrtoimax.
41921         * tests/test-xstrtoumax.c: Also test xstrtoumax.
41922         * tests/test-xstrtol.sh: Drive the tests.
41923         * tests/test-xstrtoimax.sh: Likewise.
41924         * tests/test-xstrtoumax.sh: Likewise.
41925         * modules/xstrtol-tests: New module.
41926         * modules/xstrtoimax-tests: Likewise.
41927         * modules/xstrtoumax-tests: Likewise.
41928
41929 2007-08-08  Jim Meyering  <jim@meyering.net>
41930
41931         New function: mfile_name_concat.
41932         * lib/filenamecat.c (mfile_name_concat): New function, just like
41933         file_name_concat, but return NULL upon failure rather than exiting
41934         with a diagnostic.
41935         * lib/filenamecat.h: Declare it.
41936
41937 2007-08-07  Bruno Haible  <bruno@clisp.org>
41938
41939         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
41940         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
41941         warning from gcc.
41942         Reported by Eric Blake.
41943
41944 2007-08-07  Simon Josefsson  <simon@josefsson.org>
41945
41946         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
41947         * modules/crypto/arcfour (License): Likewise.
41948         * modules/crypto/des-tests (License): Likewise.
41949         * modules/crypto/gc-arctwo-tests (License): Likewise.
41950         * modules/crypto/gc-des-tests (License): Likewise.
41951         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
41952         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
41953         * modules/crypto/gc-md2-tests (License): Likewise.
41954         * modules/crypto/gc-md4-tests (License): Likewise.
41955         * modules/crypto/gc-md5-tests (License): Likewise.
41956         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
41957         * modules/crypto/gc-rijndael-tests (License): Likewise.
41958         * modules/crypto/gc-sha1-tests (License): Likewise.
41959         * modules/crypto/gc-tests (License): Likewise.
41960         * modules/crypto/hmac-md5 (License): Likewise.
41961         * modules/crypto/hmac-sha1 (License): Likewise.
41962         * modules/crypto/md2-tests (License): Likewise.
41963         * modules/crypto/md4-tests (License): Likewise.
41964         * modules/crypto/md5 (License): Likewise.
41965         * modules/crypto/rijndael (License): Likewise.
41966         * modules/crypto/sha1 (License): Likewise.
41967         * modules/memxor (License): Likewise.
41968
41969 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41970         and Bruno Haible  <bruno@clisp.org>
41971
41972         * NEWS: Describe interface changes to human, xstrtol.
41973         * lib/human.h: Include <xstrtol.h>.
41974         (human_options): Return enum strtol_error, not int.  Remove
41975         bool arg; take int * instead.
41976         * lib/human.c: Don't include "gettext.h".
41977         (_): Remove; no longer used.
41978         Don't include <xstrtol.h>, since human.h does it.
41979         (human_options): Adjust to abovementioned interface changes.
41980         Do not report error to stderr; that's now the caller's
41981         responsibility.
41982         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
41983         interface change.
41984         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
41985         Str, Argument_type_string.  All uses changed.  Put " argument"
41986         in diagnostics to make them clearer.  Change wording of suffix
41987         message for clarity.
41988         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
41989         Argument_type_string.
41990         (STRTOL_FATAL_WARN): Remove; no longer used.
41991         * modules/human (Depends-on): Remove gettext-h.
41992
41993 2007-08-06  Simon Josefsson  <simon@josefsson.org>
41994
41995         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
41996
41997 2007-07-31  Bruno Haible  <bruno@clisp.org>
41998
41999         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42000         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42001         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42002
42003 2007-07-31  Bruno Haible  <bruno@clisp.org>
42004
42005         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42006         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42007
42008 2007-07-30  Bruno Haible  <bruno@clisp.org>
42009
42010         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42011         * modules/c-ctype (License): Likewise.
42012         * modules/c-strcase (License): Likewise.
42013         * modules/check-version (License): Likewise.
42014         * modules/iconv (License): Likewise.
42015         * modules/iconv_open (License): Likewise.
42016         * modules/read-file (License): Likewise.
42017         * modules/striconv (License): Likewise.
42018         * modules/strverscmp (License): Likewise.
42019         * modules/vasprintf (License): Likewise.
42020         * modules/crypto/des (License): Likewise.
42021         * modules/crypto/gc (License): Likewise.
42022         * modules/crypto/gc-arcfour (License): Likewise.
42023         * modules/crypto/gc-arctwo (License): Likewise.
42024         * modules/crypto/gc-des (License): Likewise.
42025         * modules/crypto/gc-hmac-md5 (License): Likewise.
42026         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42027         * modules/crypto/gc-md2 (License): Likewise.
42028         * modules/crypto/gc-md4 (License): Likewise.
42029         * modules/crypto/gc-md5 (License): Likewise.
42030         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42031         * modules/crypto/gc-random (License): Likewise.
42032         * modules/crypto/gc-rijndael (License): Likewise.
42033         * modules/crypto/gc-sha1 (License): Likewise.
42034         * modules/crypto/md2 (License): Likewise.
42035         * modules/crypto/md4 (License): Likewise.
42036
42037 2007-07-30  Jim Meyering  <jim@meyering.net>
42038
42039         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42040         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42041         it has valid stat data.  This bug would cause du not to count the
42042         sizes of inaccessible directories.
42043         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42044         in <http://bugzilla.redhat.com/250077>.
42045
42046 2007-07-25  Peter O'Gorman  <peter@pogma.com>
42047             Bruno Haible  <bruno@clisp.org>
42048
42049         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
42050         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
42051         #include_next, gives a diagnostic about it, but reports no error in
42052         the exit code.
42053         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42054
42055 2007-07-24  Ben Pfaff  <blp@gnu.org>
42056
42057         Improve name: "count-one-bits" is better than "popcount".
42058         * MODULES.html.sh: Update name.
42059         * lib/popcount.h: Renamed lib/count-one-bits.h.
42060         (popcount): Renamed count_one_bits.
42061         (popcountl): Renamed count_one_bits_l.
42062         (popcountll): Renamed count_one_bits_ll.
42063         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
42064         * modules/popcount: Renamed module/count-one-bits.
42065         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42066         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42067
42068 2007-07-23  Ben Pfaff  <blp@gnu.org>
42069
42070         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42071         better code generation, and add U to large constants to avoid
42072         warnings, in non-GCC case.
42073         Suggested by Bruno Haible.
42074
42075 2007-07-23  Ben Pfaff  <blp@gnu.org>
42076
42077         * lib/popcount.h: Use verify_true instead of if...abort.
42078         * modules/popcount: Depend on verify module.
42079         Suggested by Jim Meyering.
42080
42081 2007-07-23  Bruno Haible  <bruno@clisp.org>
42082
42083         * gnulib-tool (func_import): Create a .cvsignore file also when the
42084         directory is not yet in CVS but the toplevel directory is. When
42085         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42086         Reported by Karl Berry.
42087
42088 2007-07-22  Ben Pfaff  <blp@gnu.org>
42089
42090         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42091         case.
42092         Suggested by Eric Blake.
42093
42094 2007-07-22  Ben Pfaff  <blp@gnu.org>
42095
42096         New module: popcount.
42097         * MODULES.html.sh: Add popcount.
42098         * modules/popcount: New file.
42099         * modules/popcount-tests: New file.
42100         * tests/test-popcount.c: New file.
42101         * lib/popcount.h: New file.
42102         * m4/popcount.m4: New file.
42103
42104 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42105
42106         * build-aux/announce-gen: Update to GPLv3.
42107
42108         * build-aux/config.guess: Update from config.
42109
42110 2007-07-21  Bruno Haible  <bruno@clisp.org>
42111
42112         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42113         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42114
42115 2007-07-20  Jim Meyering  <jim@meyering.net>
42116
42117         * check-module: Diagnose a self-dependency.
42118
42119 2007-07-19  Bruno Haible  <bruno@clisp.org>
42120
42121         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42122         empty.
42123         Reported by Eric Blake.
42124
42125 2007-07-18  Bruno Haible  <bruno@clisp.org>
42126
42127         * gnulib-tool: New options --po-base, --po-domain.
42128         (func_usage): Document them.
42129         (pobase, po_domain): New variables.
42130         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42131         DEFAULT_TEXT_DOMAIN.
42132         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42133         (func_import): Consider pobase and po_domain. Create a po/ directory.
42134         (func_create_testdir): Set pobase and po_domain to empty.
42135         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42136         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42137
42138 2007-07-18  Bruno Haible  <bruno@clisp.org>
42139
42140         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42141         EXTRA_DIST augmentation for files in build-aux/.
42142
42143 2007-07-16  Bruno Haible  <bruno@clisp.org>
42144
42145         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42146         * modules/getdelim (License): Likewise.
42147
42148 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42149
42150         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42151         * modules/d-type (License): Likewise.
42152         * modules/extensions (License): Likewise.
42153         * modules/fnmatch (License): Likewise.
42154         * modules/fseeko (License): Likewise.
42155         * modules/getaddrinfo (License): Likewise.
42156         * modules/getline (License): Likewise.
42157         * modules/getlogin_r (License): Likewise.
42158         * modules/getpass (License): Likewise.
42159         * modules/gettimeofday (License): Likewise.
42160         * modules/glob (License): Likewise.
42161         * modules/inet_ntop (License): Likewise.
42162         * modules/malloc (License): Likewise.
42163         * modules/malloca (License): Likewise.
42164         * modules/memmem (License): Likewise.
42165         * modules/mempcpy (License): Likewise.
42166         * modules/memset (License): Likewise.
42167         * modules/minmax (License): Likewise.
42168         * modules/mktime (License): Likewise.
42169         * modules/netinet_in (License): Likewise.
42170         * modules/pathmax (License): Likewise.
42171         * modules/poll (License): Likewise.
42172         * modules/regex (License): Likewise.
42173         * modules/snprintf (License): Likewise.
42174         * modules/stdbool (License): Likewise.
42175         * modules/stdint (License): Likewise.
42176         * modules/stdio (License): Likewise.
42177         * modules/strcase (License): Likewise.
42178         * modules/strcasestr (License): Likewise.
42179         * modules/strdup (License): Likewise.
42180         * modules/string (License): Likewise.
42181         * modules/strndup (License): Likewise.
42182         * modules/strnlen (License): Likewise.
42183         * modules/strpbrk (License): Likewise.
42184         * modules/strptime (License): Likewise.
42185         * modules/strsep (License): Likewise.
42186         * modules/sys_select (License): Likewise.
42187         * modules/sys_socket (License): Likewise.
42188         * modules/sys_stat (License): Likewise.
42189         * modules/sys_time (License): Likewise.
42190         * modules/time (License): Likewise.
42191         * modules/time_r (License): Likewise.
42192         * modules/timegm (License): Likewise.
42193         * modules/unistd (License): Likewise.
42194         * modules/vsnprintf (License): Likewise.
42195         * modules/wctype (License): Likewise.
42196
42197 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42198
42199         * modules/argz (License): LGPLv2+.
42200
42201 2007-07-15  Karl Berry  <karl@gnu.org>
42202
42203         * doc/gnulib.texi: revise node structure per new fdl.texi.
42204
42205 2007-07-14  Bruno Haible  <bruno@clisp.org>
42206
42207         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42208         the output file.
42209         * lib/uniname/uninames.h: Regenerated.
42210
42211 2007-07-14  Karl Berry  <karl@gnu.org>
42212
42213         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42214         omitting sectioning and index commands.
42215
42216 2007-07-13  Bruno Haible  <bruno@clisp.org>
42217
42218         New gnulib-tool option --more-symlinks.
42219         * gnulib-tool (func_usage): Document --more-symlinks.
42220         (do_copyrights): New variable.
42221         Recognize option --more-symlinks.
42222         (func_import): Don't add a copyright notice transform to
42223         sed_transform_lib_file if do_copyrights is empty.
42224
42225 2007-07-13  Bruno Haible  <bruno@clisp.org>
42226
42227         * lib/vasnprintf.c (decimal_point_char): Define also if
42228         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42229         && !NEED_PRINTF_DIRECTIVE_A.
42230         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42231         Gary V. Vaughan <gary@gnu.org>.
42232
42233 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42234
42235         * lib/inttypes_.h: Undo previous change, since it was fixed
42236         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42237
42238 2007-07-13  Bruno Haible  <bruno@clisp.org>
42239
42240         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42241         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42242
42243 2007-07-13  Jim Meyering  <jim@meyering.net>
42244
42245         df: Don't fail for Tru64's "file-on-file mount".
42246         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42247         so we fall through and use statfs instead.  Details here:
42248         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42249         Reported by Albert Chin.
42250
42251 2007-07-13  Bruno Haible  <bruno@clisp.org>
42252
42253         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42254         * modules/configmake (License): Likewise.
42255         * modules/gettext (License): Likewise.
42256         * modules/gettext-h (License): Likewise.
42257         * modules/include_next (License): Likewise.
42258         * modules/link-warning (License): Likewise.
42259         * modules/localcharset (License): Likewise.
42260         * modules/localename (License): Likewise.
42261         * modules/lock (License): Likewise.
42262         * modules/relocatable-lib-lgpl (License): Likewise.
42263         * modules/size_max (License): Likewise.
42264         * modules/vasnprintf (License): Likewise.
42265         * modules/wchar (License): Likewise.
42266         * modules/xsize (License): Likewise.
42267
42268 2007-07-13  Bruno Haible  <bruno@clisp.org>
42269
42270         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42271         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42272
42273 2007-07-12  Bruno Haible  <bruno@clisp.org>
42274
42275         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42276         in the modules files.
42277
42278 2007-07-11  Karl Berry  <karl@gnu.org>
42279
42280         * MODULES.html.sh (func_module): use
42281          sed -e '\|^'"${includefile}"'$|d'
42282          instead of /.../d, to avoid errors on $includefile's containing /.
42283
42284 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42285
42286         * gnulib-tool (func_import): Avoid duplication of --avoid
42287         statements
42288         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42289         names to `_' in variable names.
42290
42291 2007-07-10  Eric Blake  <ebb9@byu.net>
42292
42293         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42294         * NEWS: Document this change.
42295
42296 2007-07-08  Bruno Haible  <bruno@clisp.org>
42297
42298         Update to Unicode 5.0.
42299         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42300         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42301         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42302         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42303         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42304         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42305         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42306         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42307         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42308         U+10A3F, U+1D242..U+1D244.
42309         (nonspacing_table_ind): Update.
42310         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42311         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42312
42313 2007-07-08  Bruno Haible  <bruno@clisp.org>
42314
42315         Update to Unicode 5.0.
42316         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42317         code transform. Extend the name index field of unicode_name_to_code and
42318         unicode_code_to_name from 16 to 24 bits.
42319         * lib/uniname/uniname.c (unicode_character_name,
42320         unicode_name_character): Add the range 0x12xxx to the code transform.
42321         * lib/uniname/uninames.h: Regenerated.
42322         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42323
42324 2007-07-07  Bruno Haible  <bruno@clisp.org>
42325
42326         * modules/wcwidth-tests: New file.
42327         * tests/test-wcwidth.c: New file.
42328
42329         Work around MacOS X wcwidth() bug.
42330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42331         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42332         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42333         original wcwidth in non-UTF-8 locales.
42334         * modules/wcwidth (Depends-on): Add localcharset, streq,
42335         uniwidth/width.
42336         * doc/functions/wcwidth.texi: Update.
42337
42338 2007-07-07  Bruno Haible  <bruno@clisp.org>
42339
42340         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42341         (wcwidth): New declaration.
42342         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42343         macros.
42344         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42345         here. Prepare for creating <wchar.h> unconditionally.
42346         * modules/wchar (Depends-on): Add link-warning.
42347         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42348         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42349         * lib/wcwidth.h: Remove file.
42350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42351         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42352         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42353         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42354         (Include): Replace wcwidth.h with <wchar.h>.
42355         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42356         * lib/mbchar.h: Don't include wcwidth.h.
42357         * lib/mbswidth.c: Likewise.
42358         * NEWS: Mention the change.
42359
42360 2007-07-07  Bruno Haible  <bruno@clisp.org>
42361
42362         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42363         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42364         definition with an external declaration.
42365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42366         defined as a function. Remove AC_C_INLINE requirement.
42367         * modules/wcwidth (Files): Add lib/wcwidth.c.
42368         (Makefile.am): Remove redundant statement.
42369
42370 2007-07-07  Bruno Haible  <bruno@clisp.org>
42371
42372         * MODULES.html.sh (Unicode string functions): Add the new modules.
42373
42374         * tests/uniwidth/test-u32-strwidth.c: New file.
42375         * modules/uniwidth/u32-strwidth-tests: New file.
42376
42377         * lib/uniwidth/u32-strwidth.c: New file.
42378         * modules/uniwidth/u32-strwidth: New file.
42379
42380         * tests/uniwidth/test-u16-strwidth.c: New file.
42381         * modules/uniwidth/u16-strwidth-tests: New file.
42382
42383         * lib/uniwidth/u16-strwidth.c: New file.
42384         * modules/uniwidth/u16-strwidth: New file.
42385
42386         * tests/uniwidth/test-u8-strwidth.c: New file.
42387         * modules/uniwidth/u8-strwidth-tests: New file.
42388
42389         * lib/uniwidth/u8-strwidth.c: New file.
42390         * modules/uniwidth/u8-strwidth: New file.
42391
42392         * tests/uniwidth/test-u32-width.c: New file.
42393         * modules/uniwidth/u32-width-tests: New file.
42394
42395         * lib/uniwidth/u32-width.c: New file.
42396         * modules/uniwidth/u32-width: New file.
42397
42398         * tests/uniwidth/test-u16-width.c: New file.
42399         * modules/uniwidth/u16-width-tests: New file.
42400
42401         * lib/uniwidth/u16-width.c: New file.
42402         * modules/uniwidth/u16-width: New file.
42403
42404         * tests/uniwidth/test-u8-width.c: New file.
42405         * modules/uniwidth/u8-width-tests: New file.
42406
42407         * lib/uniwidth/u8-width.c: New file.
42408         * modules/uniwidth/u8-width: New file.
42409
42410         * tests/uniwidth/test-uc_width.c: New file.
42411         * modules/uniwidth/width-tests: New file.
42412
42413         * lib/uniwidth/width.c: New file, from GNU libiconv.
42414         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
42415         * modules/uniwidth/width: New file.
42416
42417         * lib/uniwidth.h: New file, from GNU libiconv.
42418         * modules/uniwidth/base: New file.
42419
42420 2007-07-07  Bruno Haible  <bruno@clisp.org>
42421
42422         * lib/uniname.h: New file, from GNU gettext.
42423         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
42424         * lib/uniname/uninames.h: New file, from GNU gettext.
42425         * lib/uniname/uniname.c: New file, from GNU gettext.
42426         * tests/uniname/test-uninames.sh: New file.
42427         * tests/uniname/test-uninames.c: New file, from GNU gettext.
42428         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
42429         * modules/uniname/base: New file.
42430         * modules/uniname/uniname: New file.
42431         * modules/uniname/uniname-tests: New file.
42432         * MODULES.html.sh (Unicode string functions): Add the new modules.
42433
42434 2007-07-06  Bruno Haible  <bruno@clisp.org>
42435
42436         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
42437
42438 2007-07-06  Bruno Haible  <bruno@clisp.org>
42439
42440         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
42441         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
42442         includes <cygwin/sys_time.h> which includes <sys/select.h> which
42443         include <sys/time.h>.
42444         Reported by Eric Blake.
42445
42446 2007-07-06  Eric Blake  <ebb9@byu.net>
42447
42448         Fix testing canonicalize on cygwin.
42449         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42450         Revert patch from 2007-06-19.
42451         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42452         canonicalize module is also in use.
42453         * tests/test-canonicalize.c: New file.
42454         * tests/test-canonicalize.sh: Likewise.
42455         * modules/canonicalize-tests: Likewise.
42456
42457 2007-07-06  Jim Meyering  <jim@meyering.net>
42458
42459         * lib/getugroups.c (getugroups): Detect getgrent failure.
42460         Adjust comment to reflect reality: this function may return -1.
42461
42462 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
42463
42464         * build-aux/bootstrap (TP_URL,get_translations): Update to use
42465         the new TP address.
42466         (usage): Fix typo
42467         (gnulib_mk): New variable.
42468
42469 2007-07-05  Jim Meyering  <jim@meyering.net>
42470
42471         Don't let endgrent clobber errno, no matter how improbable.
42472         * lib/getugroups.c (getugroups): Save and restore errno around
42473         endgrent call.
42474
42475         Close the group DB even when failing with 2^31 or more members.
42476         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
42477
42478 2007-07-04  Jim Meyering  <jim@meyering.net>
42479
42480         * lib/getugroups.h: New file.
42481         * lib/getugroups.c: Include "getugroups.h".
42482         Remove uses of "register" keyword.
42483         Move local variable, "cp", down into scope where used.
42484         Give "username" parameter the "const" attribute.
42485         * modules/getugroups (Files): Add lib/getugroups.h
42486
42487 2007-07-04  Karl Berry  <karl@gnu.org>
42488
42489         * MODULES.html.sh (func_all_modules): Complete rename of
42490         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
42491
42492 2007-07-02  Bruno Haible  <bruno@clisp.org>
42493
42494         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
42495         mode, when inttypes.h comes from gnulib.
42496         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42497
42498 2007-07-02  Simon Josefsson  <simon@josefsson.org>
42499
42500         * NEWS: Mention lgpl module name change.
42501
42502         * modules/lgpl-2.1: Renamed from lgpl.
42503
42504         * NEWS: Mention gpl module name change.
42505
42506         * modules/gpl-3.0: New file, based on gpl-2.0.
42507
42508         * modules/gpl-2.0: Renamed from gpl.
42509
42510         * modules/gpl: Fix filename, doc/gpl.texi is now found at
42511         doc/gpl-2.0.texi.
42512
42513 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42514
42515         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
42516         #define __STDC_LIMIT_MACROS temporarily while including
42517         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
42518         Problem reported by Joel E. Denny in
42519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
42520
42521 2007-07-01  Bruno Haible  <bruno@clisp.org>
42522
42523         * lib/unistdio.h: New file.
42524         * lib/unistdio/u-asnprintf.h: New file.
42525         * lib/unistdio/u-asprintf.h: New file.
42526         * lib/unistdio/u-printf-args.c: New file.
42527         * lib/unistdio/u-printf-args.h: New file.
42528         * lib/unistdio/u-printf-parse.h: New file.
42529         * lib/unistdio/u-snprintf.h: New file.
42530         * lib/unistdio/u-sprintf.h: New file.
42531         * lib/unistdio/u-vasprintf.h: New file.
42532         * lib/unistdio/u-vsnprintf.h: New file.
42533         * lib/unistdio/u-vsprintf.h: New file.
42534         * lib/unistdio/ulc-asnprintf.c: New file.
42535         * lib/unistdio/ulc-asprintf.c: New file.
42536         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
42537         * lib/unistdio/ulc-printf-parse.c: New file.
42538         * lib/unistdio/ulc-snprintf.c: New file.
42539         * lib/unistdio/ulc-sprintf.c: New file.
42540         * lib/unistdio/ulc-vasnprintf.c: New file.
42541         * lib/unistdio/ulc-vasprintf.c: New file.
42542         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
42543         * lib/unistdio/ulc-vsnprintf.c: New file.
42544         * lib/unistdio/ulc-vsprintf.c: New file.
42545         * lib/unistdio/u8-asnprintf.c: New file.
42546         * lib/unistdio/u8-asprintf.c: New file.
42547         * lib/unistdio/u8-printf-parse.c: New file.
42548         * lib/unistdio/u8-snprintf.c: New file.
42549         * lib/unistdio/u8-sprintf.c: New file.
42550         * lib/unistdio/u8-vasnprintf.c: New file.
42551         * lib/unistdio/u8-vasprintf.c: New file.
42552         * lib/unistdio/u8-vsnprintf.c: New file.
42553         * lib/unistdio/u8-vsprintf.c: New file.
42554         * lib/unistdio/u8-u8-asnprintf.c: New file.
42555         * lib/unistdio/u8-u8-asprintf.c: New file.
42556         * lib/unistdio/u8-u8-snprintf.c: New file.
42557         * lib/unistdio/u8-u8-sprintf.c: New file.
42558         * lib/unistdio/u8-u8-vasnprintf.c: New file.
42559         * lib/unistdio/u8-u8-vasprintf.c: New file.
42560         * lib/unistdio/u8-u8-vsnprintf.c: New file.
42561         * lib/unistdio/u8-u8-vsprintf.c: New file.
42562         * lib/unistdio/u16-asnprintf.c: New file.
42563         * lib/unistdio/u16-asprintf.c: New file.
42564         * lib/unistdio/u16-printf-parse.c: New file.
42565         * lib/unistdio/u16-snprintf.c: New file.
42566         * lib/unistdio/u16-sprintf.c: New file.
42567         * lib/unistdio/u16-vasnprintf.c: New file.
42568         * lib/unistdio/u16-vasprintf.c: New file.
42569         * lib/unistdio/u16-vsnprintf.c: New file.
42570         * lib/unistdio/u16-vsprintf.c: New file.
42571         * lib/unistdio/u16-u16-asnprintf.c: New file.
42572         * lib/unistdio/u16-u16-asprintf.c: New file.
42573         * lib/unistdio/u16-u16-snprintf.c: New file.
42574         * lib/unistdio/u16-u16-sprintf.c: New file.
42575         * lib/unistdio/u16-u16-vasnprintf.c: New file.
42576         * lib/unistdio/u16-u16-vasprintf.c: New file.
42577         * lib/unistdio/u16-u16-vsnprintf.c: New file.
42578         * lib/unistdio/u16-u16-vsprintf.c: New file.
42579         * lib/unistdio/u32-asnprintf.c: New file.
42580         * lib/unistdio/u32-asprintf.c: New file.
42581         * lib/unistdio/u32-printf-parse.c: New file.
42582         * lib/unistdio/u32-snprintf.c: New file.
42583         * lib/unistdio/u32-sprintf.c: New file.
42584         * lib/unistdio/u32-vasnprintf.c: New file.
42585         * lib/unistdio/u32-vasprintf.c: New file.
42586         * lib/unistdio/u32-vsnprintf.c: New file.
42587         * lib/unistdio/u32-vsprintf.c: New file.
42588         * lib/unistdio/u32-u32-asnprintf.c: New file.
42589         * lib/unistdio/u32-u32-asprintf.c: New file.
42590         * lib/unistdio/u32-u32-snprintf.c: New file.
42591         * lib/unistdio/u32-u32-sprintf.c: New file.
42592         * lib/unistdio/u32-u32-vasnprintf.c: New file.
42593         * lib/unistdio/u32-u32-vasprintf.c: New file.
42594         * lib/unistdio/u32-u32-vsnprintf.c: New file.
42595         * lib/unistdio/u32-u32-vsprintf.c: New file.
42596         * tests/unistdio/test-ulc-asnprintf1.c: New file.
42597         * tests/unistdio/test-ulc-asnprintf1.h: New file.
42598         * tests/unistdio/test-ulc-printf1.h: New file.
42599         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
42600         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
42601         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
42602         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
42603         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
42604         * tests/unistdio/test-ulc-vasprintf1.c: New file.
42605         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
42606         * tests/unistdio/test-ulc-vsprintf1.c: New file.
42607         * tests/unistdio/test-u8-asnprintf1.c: New file.
42608         * tests/unistdio/test-u8-asnprintf1.h: New file.
42609         * tests/unistdio/test-u8-printf1.h: New file.
42610         * tests/unistdio/test-u8-vasnprintf1.c: New file.
42611         * tests/unistdio/test-u8-vasnprintf2.c: New file.
42612         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
42613         * tests/unistdio/test-u8-vasnprintf3.c: New file.
42614         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
42615         * tests/unistdio/test-u8-vasprintf1.c: New file.
42616         * tests/unistdio/test-u8-vsnprintf1.c: New file.
42617         * tests/unistdio/test-u8-vsprintf1.c: New file.
42618         * tests/unistdio/test-u16-asnprintf1.c: New file.
42619         * tests/unistdio/test-u16-asnprintf1.h: New file.
42620         * tests/unistdio/test-u16-printf1.h: New file.
42621         * tests/unistdio/test-u16-vasnprintf1.c: New file.
42622         * tests/unistdio/test-u16-vasnprintf2.c: New file.
42623         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
42624         * tests/unistdio/test-u16-vasnprintf3.c: New file.
42625         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
42626         * tests/unistdio/test-u16-vasprintf1.c: New file.
42627         * tests/unistdio/test-u16-vsnprintf1.c: New file.
42628         * tests/unistdio/test-u16-vsprintf1.c: New file.
42629         * tests/unistdio/test-u32-asnprintf1.c: New file.
42630         * tests/unistdio/test-u32-asnprintf1.h: New file.
42631         * tests/unistdio/test-u32-printf1.h: New file.
42632         * tests/unistdio/test-u32-vasnprintf1.c: New file.
42633         * tests/unistdio/test-u32-vasnprintf2.c: New file.
42634         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
42635         * tests/unistdio/test-u32-vasnprintf3.c: New file.
42636         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
42637         * tests/unistdio/test-u32-vasprintf1.c: New file.
42638         * tests/unistdio/test-u32-vsnprintf1.c: New file.
42639         * tests/unistdio/test-u32-vsprintf1.c: New file.
42640         * modules/unistdio/base: New file.
42641         * modules/unistdio/u-printf-args: New file.
42642         * modules/unistdio/ulc-asnprintf: New file.
42643         * modules/unistdio/ulc-asprintf: New file.
42644         * modules/unistdio/ulc-fprintf: New file.
42645         * modules/unistdio/ulc-printf-parse: New file.
42646         * modules/unistdio/ulc-snprintf: New file.
42647         * modules/unistdio/ulc-sprintf: New file.
42648         * modules/unistdio/ulc-vasnprintf: New file.
42649         * modules/unistdio/ulc-vasprintf: New file.
42650         * modules/unistdio/ulc-vfprintf: New file.
42651         * modules/unistdio/ulc-vsnprintf: New file.
42652         * modules/unistdio/ulc-vsprintf: New file.
42653         * modules/unistdio/u8-asnprintf: New file.
42654         * modules/unistdio/u8-asprintf: New file.
42655         * modules/unistdio/u8-printf-parse: New file.
42656         * modules/unistdio/u8-snprintf: New file.
42657         * modules/unistdio/u8-sprintf: New file.
42658         * modules/unistdio/u8-vasnprintf: New file.
42659         * modules/unistdio/u8-vasprintf: New file.
42660         * modules/unistdio/u8-vsnprintf: New file.
42661         * modules/unistdio/u8-vsprintf: New file.
42662         * modules/unistdio/u8-u8-asnprintf: New file.
42663         * modules/unistdio/u8-u8-asprintf: New file.
42664         * modules/unistdio/u8-u8-snprintf: New file.
42665         * modules/unistdio/u8-u8-sprintf: New file.
42666         * modules/unistdio/u8-u8-vasnprintf: New file.
42667         * modules/unistdio/u8-u8-vasprintf: New file.
42668         * modules/unistdio/u8-u8-vsnprintf: New file.
42669         * modules/unistdio/u8-u8-vsprintf: New file.
42670         * modules/unistdio/u16-asnprintf: New file.
42671         * modules/unistdio/u16-asprintf: New file.
42672         * modules/unistdio/u16-printf-parse: New file.
42673         * modules/unistdio/u16-snprintf: New file.
42674         * modules/unistdio/u16-sprintf: New file.
42675         * modules/unistdio/u16-vasnprintf: New file.
42676         * modules/unistdio/u16-vasprintf: New file.
42677         * modules/unistdio/u16-vsnprintf: New file.
42678         * modules/unistdio/u16-vsprintf: New file.
42679         * modules/unistdio/u16-u16-asnprintf: New file.
42680         * modules/unistdio/u16-u16-asprintf: New file.
42681         * modules/unistdio/u16-u16-snprintf: New file.
42682         * modules/unistdio/u16-u16-sprintf: New file.
42683         * modules/unistdio/u16-u16-vasnprintf: New file.
42684         * modules/unistdio/u16-u16-vasprintf: New file.
42685         * modules/unistdio/u16-u16-vsnprintf: New file.
42686         * modules/unistdio/u16-u16-vsprintf: New file.
42687         * modules/unistdio/u32-asnprintf: New file.
42688         * modules/unistdio/u32-asprintf: New file.
42689         * modules/unistdio/u32-printf-parse: New file.
42690         * modules/unistdio/u32-snprintf: New file.
42691         * modules/unistdio/u32-sprintf: New file.
42692         * modules/unistdio/u32-vasnprintf: New file.
42693         * modules/unistdio/u32-vasprintf: New file.
42694         * modules/unistdio/u32-vsnprintf: New file.
42695         * modules/unistdio/u32-vsprintf: New file.
42696         * modules/unistdio/u32-u32-asnprintf: New file.
42697         * modules/unistdio/u32-u32-asprintf: New file.
42698         * modules/unistdio/u32-u32-snprintf: New file.
42699         * modules/unistdio/u32-u32-sprintf: New file.
42700         * modules/unistdio/u32-u32-vasnprintf: New file.
42701         * modules/unistdio/u32-u32-vasprintf: New file.
42702         * modules/unistdio/u32-u32-vsnprintf: New file.
42703         * modules/unistdio/u32-u32-vsprintf: New file.
42704         * modules/unistdio/ulc-asnprintf-tests: New file.
42705         * modules/unistdio/ulc-vasnprintf-tests: New file.
42706         * modules/unistdio/ulc-vasprintf-tests: New file.
42707         * modules/unistdio/ulc-vsnprintf-tests: New file.
42708         * modules/unistdio/ulc-vsprintf-tests: New file.
42709         * modules/unistdio/u8-asnprintf-tests: New file.
42710         * modules/unistdio/u8-vasnprintf-tests: New file.
42711         * modules/unistdio/u8-vasprintf-tests: New file.
42712         * modules/unistdio/u8-vsnprintf-tests: New file.
42713         * modules/unistdio/u8-vsprintf-tests: New file.
42714         * modules/unistdio/u16-asnprintf-tests: New file.
42715         * modules/unistdio/u16-vasnprintf-tests: New file.
42716         * modules/unistdio/u16-vasprintf-tests: New file.
42717         * modules/unistdio/u16-vsnprintf-tests: New file.
42718         * modules/unistdio/u16-vsprintf-tests: New file.
42719         * modules/unistdio/u32-asnprintf-tests: New file.
42720         * modules/unistdio/u32-vasnprintf-tests: New file.
42721         * modules/unistdio/u32-vasprintf-tests: New file.
42722         * modules/unistdio/u32-vsnprintf-tests: New file.
42723         * modules/unistdio/u32-vsprintf-tests: New file.
42724         * MODULES.html.sh (Unicode string functions): Add the new modules.
42725
42726 2007-07-01  Bruno Haible  <bruno@clisp.org>
42727
42728         * lib/sprintf.c (sprintf): Limit the available length estimation,
42729         to avoid address wraparound.
42730         * lib/vsprintf.c (vsprintf): Likewise.
42731         * modules/sprintf-posix (Dependencies): Add stdint.
42732         * modules/vsprintf-posix (Dependencies): Likewise.
42733
42734 2007-07-01  Bruno Haible  <bruno@clisp.org>
42735
42736         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
42737         Windows PATH as well. Conservative double-quoting. Comments.
42738
42739 2007-07-01  Bruno Haible  <bruno@clisp.org>
42740             Eric Blake  <ebb9@byu.net>
42741             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42742
42743         * gnulib-tool (self_abspathname): Fix algorithm to cope with
42744         empty components in $PATH, denoting '.'.
42745
42746 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42747
42748         * gnulib-tool: Fix indentation.
42749         (func_create_megatestdir): Likewise.
42750         Report by Bruno Haible.
42751
42752 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42753
42754         Sync from Automake.
42755         * build-aux/gnupload: Fix shell portability issues with for loops.
42756         Report by Karl Berry.
42757
42758 2007-06-29  Simon Josefsson  <simon@josefsson.org>
42759
42760         * build-aux/maint.mk (POURL): Use translationproject.org.
42761
42762 2007-06-27  Simon Josefsson  <simon@josefsson.org>
42763             Bruno Haible  <bruno@clisp.org>
42764
42765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
42766         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
42767         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
42768         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
42769         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
42770
42771 2007-06-27  Bruno Haible  <bruno@clisp.org>
42772
42773         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
42774         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
42775
42776 2007-06-26  Karl Berry  <karl@gnu.org>
42777
42778         * MODULES.html.sh: remove xreadlink-with-size.
42779
42780 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42781
42782         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
42783         method that I hope also handles the double-include problem noted
42784         by Bruno Haible in
42785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
42786
42787 2007-06-23  Bruno Haible  <bruno@clisp.org>
42788
42789         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42790         Don't let the 'mostlyclean' target fail if the last subdirectory could
42791         not be removed.
42792         Reported by Karl Berry.
42793
42794 2007-06-23  Bruno Haible  <bruno@clisp.org>
42795
42796         * gnulib-tool (echo): Add a speedier workaround for ksh.
42797         * tests/test-echo.sh: Likewise.
42798
42799 2007-06-23  Bruno Haible  <bruno@clisp.org>
42800
42801         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
42802         * tests/test-echo.sh: Likewise.
42803
42804 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42805
42806         * gnulib-tool (IFS): Initialize early, so we don't set it to
42807         empty later.
42808         (self_abspathname): Rewrite algorithm to set it, reindent.
42809         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
42810         (func_create_megatestdir): Merge some sed scripts.
42811
42812 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42813
42814         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
42815         exposed by Sun Studio 11 cc on Solaris 8.
42816
42817 2007-06-22  Bruno Haible  <bruno@clisp.org>
42818
42819         * gnulib-tool (echo): Ensure the echo primitive does not interpret
42820         backslashes.
42821         * tests/test-echo.sh: New file.
42822
42823 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42824
42825         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
42826         simplify `sed_replace_build_aux' scripts, they are portable but
42827         echoing them with `echo' is not.
42828         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
42829
42830 2007-06-21  Karl Berry  <karl@gnu.org>
42831
42832         * config/srclist.txt: guess we can't handle the licenses via
42833         srclist at the moment.
42834
42835 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
42836
42837         * MODULES.html.sh: Add include_next.
42838         * modules/include_next: New file.
42839
42840 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
42841
42842         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
42843         INCLUDE_NEXT.
42844         (gl_CHECK_NEXT_HEADERS): New macro.
42845         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
42846         the obsolescent gl_ABSOLUTE_HEADER.
42847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
42848         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
42849         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42850         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42851         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
42852         * m4/math_h.m4 (gl_MATH_H): Likewise.
42853         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42854         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
42855         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
42856         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42857         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
42858         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
42859         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
42860         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42861         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42862         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
42863         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
42864         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42865         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
42866         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42867         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42868         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42869         * m4/inttypes.m4 (gl_INTTYPES_H): Define
42870         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
42871         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
42872         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
42873         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
42874         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
42875         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
42876         * lib/float_.h: Likewise.
42877         * lib/inttypes_.h: Likewise.
42878         * lib/math_.h: Likewise.
42879         * lib/search_.h: Likewise.
42880         * lib/signal_.h: Likewise.
42881         * lib/stdint_.h: Likewise.
42882         * lib/stdio_.h: Likewise.
42883         * lib/stdlib_.h: Likewise.
42884         * lib/string_.h: Likewise.
42885         * lib/sys_stat_.h: Likewise.
42886         * lib/sys_time_.h: Likewise.
42887         * lib/time_.h: Likewise.
42888         * lib/unistd_.h: Likewise.
42889         * lib/wchar_.h: Likewise.
42890         * lib/wctype_.h: Likewise.
42891         * lib/dirent_.h: Likewise.
42892         * lib/iconv_.h: Likewise.
42893         * lib/locale_.h: Likewise.
42894         * lib/netinet_in_.h: Likewise.
42895         * lib/sys_select_.h: Likewise.
42896         * lib/sys_socket_.h: Likewise.
42897         * lib/sysexits_.h: Likewise.
42898         * modules/fcntl (Depends-on): Depend on include_next, not
42899         absolute_header.
42900         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
42901         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
42902         * modules/fchdir: Likewise.
42903         * modules/float: Likewise.
42904         * modules/iconv_open: Likewise.
42905         * modules/inttypes: Likewise.
42906         * modules/locale: Likewise.
42907         * modules/math: Likewise.
42908         * modules/netinet_in: Likewise.
42909         * modules/search: Likewise.
42910         * modules/signal: Likewise.
42911         * modules/stdint: Likewise.
42912         * modules/stdio: Likewise.
42913         * modules/stdlib: Likewise.
42914         * modules/string: Likewise.
42915         * modules/sys_select: Likewise.
42916         * modules/sys_socket: Likewise.
42917         * modules/sys_stat: Likewise.
42918         * modules/sys_time: Likewise.
42919         * modules/sysexits: Likewise.
42920         * modules/time: Likewise.
42921         * modules/unistd: Likewise.
42922         * modules/wchar: Likewise.
42923         * modules/wctype: Likewise.
42924         * modules/sys_stat: Change maintainer to "all".
42925         * modules/unistd: Likewise.
42926
42927 2007-06-20  Karl Berry  <karl@gnu.org>
42928
42929         * config/srclist.txt: track www changes in license files.
42930
42931 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
42932
42933         * build-aux/bootstrap: Remove stray dot.
42934         Make sure build_aux settings are honored when linking
42935         gnulib_extra_files.
42936
42937 2007-06-19  Eric Blake  <ebb9@byu.net>
42938
42939         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42940         Allow compilation on cygwin.
42941
42942 2007-06-19  Jim Meyering  <jim@meyering.net>
42943
42944         xreadlink-with-size: Remove module.  No longer used.
42945         Ex-callers now use xreadlink or mreadlink-with-size.
42946         * modules/xreadlink-with-size: Remove module.
42947         * lib/xreadlink-with-size.c: Remove file.
42948         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
42949         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
42950         just before the function definition *is* accurate.
42951
42952         Eliminate one way canonicalize_filename_mode could exit.
42953         * lib/canonicalize.c (canonicalize_filename_mode):
42954         Use mreadlink_with_size, not xreadlink_with_size.
42955
42956 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
42957
42958         Detect porting problems to FreeBSD/arm, which has time_t wider than
42959         long int.  Original problem reported for GNU diff by Xin Li in
42960         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
42961         * modules/getdate (Depends-on): Add intprops, verify.
42962         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
42963         is an integer type no wider than long int.
42964
42965 2007-06-18  Jim Meyering  <jim@meyering.net>
42966
42967         New module: mreadlink-with-size.
42968         * MODULES.html.sh: Add mreadlink-with-size.
42969         * modules/mreadlink-with-size: New module
42970         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
42971         not xreadlink-with-size.
42972         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
42973
42974 2007-06-16  Bruno Haible  <bruno@clisp.org>
42975
42976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
42977         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
42978         Reported by Gary V. Vaughan <gary@gnu.org>.
42979
42980 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
42981
42982         Revamp lchown so that it lives in unistd.h where it belongs.
42983         * lib/lchown.h: Remove.
42984         * lib/dirchownmod.c: Don't include lib/lchown.h.
42985         * lib/fchownat.c: Likewise.
42986         * lib/openat.c: Likewise.
42987         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
42988         does not follow symlinks.
42989         (EOPNOTSUPP): Define if not defined.
42990         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
42991         is defined to 0.
42992         (lchown): New decl.
42993         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
42994         Do not check for lchown decl.
42995         Set REPLACE_LCHOWN.
42996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
42997         REPLACE_LCHOWN.
42998         * modules/chown: Make it clear it follows symlinks.
42999         * modules/lchown: Make it clear it doesn't follow symlinks.
43000         (Files): Remove lib/lchown.h
43001         (Depends-on): Add unistd.
43002         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43003         (Include): Include <unistd.h>, not "lchown.h".
43004         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43005         REPLACE_LCHOWN.
43006
43007 2007-06-15  Jim Meyering  <jim@meyering.net>
43008
43009         Change license (GPL to LGPL) of fsusage and dependents.
43010         * modules/fsusage (License): Change to LGPL.
43011         * modules/full-read (License): Likewise.
43012         * modules/full-write (License): Likewise.
43013         * modules/safe-read (License): Likewise.
43014         * modules/safe-write (License): Likewise.
43015
43016 2007-06-14  Ben Pfaff  <blp@gnu.org>
43017
43018         Missing part of allocsa -> malloca transition.
43019         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43020         gl_MALLOCA.
43021
43022 2007-06-12  Bruno Haible  <bruno@clisp.org>
43023
43024         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43025         to ia64, x86_64, i386.
43026         Reported by Eric Blake.
43027
43028 2007-06-12  Bruno Haible  <bruno@clisp.org>
43029
43030         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43031         cross-compiling to x86_64.
43032
43033 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43034
43035         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43036         glitch reported by Ralf Wildenhues in
43037         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43038
43039         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43040         Vin Shelton.
43041
43042 2007-06-11  Bruno Haible  <bruno@clisp.org>
43043
43044         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43045         replacement string.
43046         Reported by Eric Blake.
43047
43048 2007-06-10  Bruno Haible  <bruno@clisp.org>
43049
43050         Prepare vasnprintf code for use with Unicode strings.
43051         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
43052         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
43053         TYPE_U32_STRING.
43054         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
43055         a_u32_string variants.
43056         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43057         * lib/printf-args.c: Don't include config.h and the specification
43058         header if PRINTF_FETCHARGS is already defined.
43059         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43060         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
43061         TYPE_U16_STRING, TYPE_U32_STRING.
43062         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
43063         u16_directive, u16_directives, u32_directive, u32_directives): New
43064         types.
43065         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43066         New declarations.
43067         * lib/printf-parse.c: Don't include config.h and the specification
43068         header if PRINTF_PARSE is already defined. Eliminate the set of
43069         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43070         them now. Include c-ctype.h.
43071         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43072         directive and CHAR_T_ONLY_ASCII.
43073         * lib/vasnprintf.c: Don't include config.h and the specification header
43074         if VASNPRINTF is already defined.
43075         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43076         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43077         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43078         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43079         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43080         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43081         code accordingly.
43082         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43083         pad_ourselves also in this case, with the 'c' and 's' directives, and
43084         with a different notion of "width".
43085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43086
43087 2007-06-10  Bruno Haible  <bruno@clisp.org>
43088
43089         * modules/unistr/u32-mbsnlen: New file.
43090         * lib/unistr/u32-mbsnlen.c: New file.
43091
43092         * modules/unistr/u16-mbsnlen: New file.
43093         * lib/unistr/u16-mbsnlen.c: New file.
43094
43095         * modules/unistr/u8-mbsnlen: New file.
43096         * lib/unistr/u8-mbsnlen.c: New file.
43097
43098         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43099         declarations.
43100
43101 2007-06-10  Bruno Haible  <bruno@clisp.org>
43102
43103         * lib/string_.h (mbsnlen): New declaration.
43104         * lib/mbsnlen.c: New file.
43105         * m4/mbsnlen.m4: New file.
43106         * modules/mbsnlen: New file.
43107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43108         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43109         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43110
43111 2007-06-10  Bruno Haible  <bruno@clisp.org>
43112
43113         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43114
43115 2007-06-10  Bruno Haible  <bruno@clisp.org>
43116
43117         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43118         * lib/mbuiter.h: Likewise.
43119
43120 2007-06-10  Bruno Haible  <bruno@clisp.org>
43121
43122         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43123         declaration.
43124
43125 2007-06-10  Karl Berry  <karl@gnu.org>
43126
43127         * config/srclist.txt: remove gettext entries, Bruno prefers
43128         to update individually.
43129
43130 2007-06-10  Bruno Haible  <bruno@clisp.org>
43131
43132         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43133         'maxlen'. Ensure only length + width bytes are allocated, not
43134         length + 1 + width.
43135
43136 2007-06-09  Bruno Haible  <bruno@clisp.org>
43137
43138         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43139         (CHAR_T): Remove macro.
43140         (VASNPRINTF): Update.
43141
43142 2007-06-09  Bruno Haible  <bruno@clisp.org>
43143
43144         * MODULES.html.sh (Unicode string functions): Add the new modules.
43145
43146         * modules/uniconv/u32-conv-to-enc: New file.
43147         * lib/uniconv/u32-conv-to-enc.c: New file.
43148         * modules/uniconv/u32-conv-to-enc-tests: New file.
43149         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43150
43151         * modules/uniconv/u16-conv-to-enc: New file.
43152         * lib/uniconv/u16-conv-to-enc.c: New file.
43153         * lib/uniconv/u-conv-to-enc.h: New file.
43154         * modules/uniconv/u16-conv-to-enc-tests: New file.
43155         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43156
43157         * modules/uniconv/u8-conv-to-enc: New file.
43158         * lib/uniconv/u8-conv-to-enc.c: New file.
43159         * modules/uniconv/u8-conv-to-enc-tests: New file.
43160         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43161
43162         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43163         u32_conv_to_encoding): New declarations.
43164
43165 2007-06-09  Bruno Haible  <bruno@clisp.org>
43166
43167         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43168
43169 2007-06-09  Bruno Haible  <bruno@clisp.org>
43170
43171         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43172         * modules/malloca: Renamed from modules/allocsa, updated.
43173         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43174         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43175         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43176         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43177         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43178         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43179         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43180         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43181         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43182         * modules/c-strcasestr (Depends-on): Update.
43183         * lib/c-strcasestr.c: Update.
43184         * modules/c-strstr (Depends-on): Update.
43185         * lib/c-strstr.c: Update.
43186         * modules/canonicalize-lgpl (Depends-on): Update.
43187         * lib/canonicalize-lgpl.c: Update.
43188         * modules/clean-temp (Depends-on): Update.
43189         * lib/clean-temp.c: Update.
43190         * modules/csharpcomp (Depends-on): Update.
43191         * lib/csharpcomp.c: Update.
43192         * modules/csharpexec (Depends-on): Update.
43193         * lib/csharpexec.c: Update.
43194         * modules/javacomp (Depends-on): Update.
43195         * lib/javacomp.c: Update.
43196         * modules/javaexec (Depends-on): Update.
43197         * lib/javaexec.c: Update.
43198         * modules/mbscasestr (Depends-on): Update.
43199         * lib/mbscasestr.c: Update.
43200         * modules/mbsstr (Depends-on): Update.
43201         * lib/mbsstr.c: Update.
43202         * modules/setenv (Depends-on): Update.
43203         * lib/setenv.c: Update.
43204         * modules/strcasestr (Depends-on): Update.
43205         * lib/strcasestr.c: Update.
43206         * modules/striconveha (Depends-on): Update.
43207         * lib/striconveha.c: Update.
43208         * modules/relocatable-prog-wrapper (Files): Update.
43209         * lib/relocwrapper.c: Update.
43210         * build-aux/install-reloc: Update.
43211         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43212
43213 2007-06-08  Bruno Haible  <bruno@clisp.org>
43214
43215         Port to uClibc.
43216         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43217         * lib/fpurge.c (fpurge): Likewise.
43218         * lib/freading.c (freading): Likewise.
43219         * lib/fseeko.c (rpl_fseeko): Likewise.
43220         * lib/fseterr.c (fseterr): Likewise.
43221         * lib/fwriting.c (fwriting): Likewise.
43222         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43223
43224 2007-06-08  Bruno Haible  <bruno@clisp.org>
43225
43226         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43227         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43228         * modules/gettext (Files): Add m4/intlmacosx.m4.
43229
43230 2007-06-07  Bruno Haible  <bruno@clisp.org>
43231
43232         * modules/localename-tests: New file.
43233         * tests/test-localename.c: New file.
43234
43235         New module 'localename'.
43236         * lib/localename.h: New file.
43237         * lib/localename.c: New file, from GNU gettext.
43238         * m4/localename.m4: New file.
43239         * modules/localename: New file.
43240
43241 2007-06-07  Bruno Haible  <bruno@clisp.org>
43242
43243         Work around the lack of <wchar.h> on some builds of uClibc.
43244         * doc/headers/wchar.texi: Update.
43245         * lib/wchar_.h: Include <wchar.h> only if it exists.
43246         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43247         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43248         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43249         doesn't exist.
43250         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43251         * modules/mbfile (Depends-on): Add wchar.
43252         * modules/mbiter (Depends-on): Likewise.
43253         * modules/mbuiter (Depends-on): Likewise.
43254         Reported by Simon Josefsson.
43255
43256 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43257
43258         Work around problem reported by Steven M. Schweda in
43259         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43260         Tru64 5.1B with the Compaq compiler environment installed declares
43261         an 'isblank' function but does not define it in the C library.
43262         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43263         * lib/regex_internal.h (isblank): Likewise.
43264         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43265         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43266
43267 2007-06-05  Bruno Haible  <bruno@clisp.org>
43268
43269         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43270         ia64.
43271         * modules/printf-safe: New file.
43272         * modules/fprintf-posix (Depends-on): Add printf-safe.
43273         * modules/printf-posix (Depends-on): Likewise.
43274         * modules/snprintf-posix (Depends-on): Likewise.
43275         * modules/sprintf-posix (Depends-on): Likewise.
43276         * modules/vasnprintf-posix (Depends-on): Likewise.
43277         * modules/vasprintf-posix (Depends-on): Likewise.
43278         * modules/vfprintf-posix (Depends-on): Likewise.
43279         * modules/vprintf-posix (Depends-on): Likewise.
43280         * modules/vsnprintf-posix (Depends-on): Likewise.
43281         * modules/vsprintf-posix (Depends-on): Likewise.
43282         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43283         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43284         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43285         "no" on i386, x86_64, ia64.
43286         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
43287         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43288         on i386, x86_64, ia64.
43289         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
43290         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43291         on i386, x86_64, ia64.
43292         * tests/test-vasnprintf-posix.c: Include float.h.
43293         (LDBL80_WORDS): New macro.
43294         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43295         on i386, x86_64, ia64.
43296         * tests/test-vasprintf-posix.c: Include float.h.
43297         (LDBL80_WORDS): New macro.
43298         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43299         on i386, x86_64, ia64.
43300         * tests/test-snprintf-posix.c: Include float.h.
43301         * tests/test-sprintf-posix.c: Likewise.
43302         * tests/test-vsnprintf-posix.c: Likewise.
43303         * tests/test-vsprintf-posix.c: Likewise.
43304
43305 2007-06-05  Bruno Haible  <bruno@clisp.org>
43306
43307         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43308         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43309         non-IEEE numbers on i386, x86_64, ia64.
43310         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43311         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43312         * tests/test-isnanl.h: Include float.h.
43313         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43314
43315 2007-06-05  Bruno Haible  <bruno@clisp.org>
43316
43317         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43318         also the %a / %A. Handle the %a / %A code before this extra handling.
43319
43320 2007-06-05  Bruno Haible  <bruno@clisp.org>
43321
43322         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43323         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43324
43325 2007-06-05  Bruno Haible  <bruno@clisp.org>
43326
43327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43328         typo in variable name.
43329
43330 2007-06-05  Eric Blake  <ebb9@byu.net>
43331
43332         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43333         Reported by Simon Josefsson.
43334
43335 2007-06-04  Bruno Haible  <bruno@clisp.org>
43336
43337         Avoid test failures on some PowerPC platforms.
43338         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43339         Define differently for PowerPC.
43340         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43341         Reported by Gary V. Vaughan <gary@gnu.org>.
43342
43343 2007-06-02  Bruno Haible  <bruno@clisp.org>
43344
43345         Fix test-stdint failure on FreeBSD/ia64.
43346         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43347         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43348         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43349         * doc/headers/stdint.texi: Update.
43350
43351 2007-06-01  Bruno Haible  <bruno@clisp.org>
43352
43353         * tests/test-binary-io.c (main): Pass a third argument to open().
43354         Reported by Gary V. Vaughan <gary@gnu.org>.
43355
43356 2007-06-01  Bruno Haible  <bruno@clisp.org>
43357
43358         * doc/functions/frexpl.texi: Update for mingw.
43359
43360 2007-06-01  Bruno Haible  <bruno@clisp.org>
43361
43362         * tests/test-lseek.c (main): Disable test of errno for invalid third
43363         argument.
43364         * doc/functions/lseek.texi: Update.
43365         Reported by Gary V. Vaughan <gary@gnu.org>.
43366
43367 2007-05-28  Bruno Haible  <bruno@clisp.org>
43368
43369         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43370
43371 2007-05-31  Eric Blake  <ebb9@byu.net>
43372
43373         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43374         cross compiling.
43375
43376 2007-05-30  Eric Blake  <ebb9@byu.net>
43377         and Bruno Haible  <bruno@clisp.org>
43378
43379         Work around mingw test failures exposed by m4-1.4.9b.
43380         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
43381         * tests/test-unistd.c: Disable uid_t and git_t tests for the
43382         moment.
43383
43384 2007-05-30  Bruno Haible  <bruno@clisp.org>
43385
43386         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
43387         assuming that they are closed. Needed on HP-UX 11.
43388
43389 2007-05-29  Bruno Haible  <bruno@clisp.org>
43390
43391         Fix a problem with #include_next.
43392         * lib/dirent_.h: Split the double-inclusion guard.
43393         * lib/fcntl_.h: Likewise.
43394         * lib/float_.h: Likewise.
43395         * lib/iconv_.h: Likewise.
43396         * lib/inttypes_.h: Likewise.
43397         * lib/locale_.h: Likewise.
43398         * lib/math_.h: Likewise.
43399         * lib/netinet_in_.h: Likewise.
43400         * lib/search_.h: Likewise.
43401         * lib/signal_.h: Likewise.
43402         * lib/stdint_.h: Likewise.
43403         * lib/stdio_.h: Likewise.
43404         * lib/stdlib_.h: Likewise.
43405         * lib/string_.h: Likewise.
43406         * lib/sys_select_.h: Likewise.
43407         * lib/sys_socket_.h: Likewise.
43408         * lib/sys_stat_.h: Likewise.
43409         * lib/sys_time_.h: Likewise.
43410         * lib/sysexits_.h: Likewise.
43411         * lib/time_.h: Likewise.
43412         * lib/unistd_.h: Likewise.
43413         * lib/wchar_.h: Likewise.
43414         * lib/wctype_.h: Likewise.
43415
43416 2007-05-29  Bruno Haible  <bruno@clisp.org>
43417
43418         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
43419         for the moment.
43420
43421 2007-05-29  Bruno Haible  <bruno@clisp.org>
43422
43423         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
43424         invocation.
43425         Reported by Eric Blake.
43426
43427 2007-05-29  Bruno Haible  <bruno@clisp.org>
43428
43429         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
43430         compiling case.
43431
43432 2007-05-29  Eric Blake  <ebb9@byu.net>
43433             Bruno Haible  <bruno@clisp.org>
43434
43435         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
43436         cross compiles.
43437
43438 2007-05-28  Eric Blake  <ebb9@byu.net>
43439
43440         * modules/closein-tests (test_closein_LDADD): Support test on
43441         cygwin with libtool.
43442
43443 2007-05-28  Bruno Haible  <bruno@clisp.org>
43444
43445         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
43446         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43447         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43448         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43449         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43450         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43451         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43452         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43453         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43454
43455 2007-05-28  Eric Blake  <ebb9@byu.net>
43456
43457         Unconditionally include <config.h> in unit tests.
43458         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
43459         * tests/test-allocsa.c, tests/test-arcfour.c,
43460         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
43461         tests/test-array_list.c, tests/test-array_oset.c,
43462         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
43463         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
43464         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
43465         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
43466         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
43467         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
43468         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
43469         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
43470         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
43471         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
43472         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
43473         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
43474         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
43475         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
43476         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
43477         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
43478         test-md5.c, test-memmem.c, test-printf-posix.c,
43479         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
43480         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
43481         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
43482         test-strcasestr.c, test-striconv.c, test-striconveh.c,
43483         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
43484         test-vasnprintf-posix2.c, test-vasnprintf.c,
43485         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
43486         test-vfprintf-posix.c, test-vprintf-posix.c,
43487         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
43488         test-xvasprintf.c: Likewise.
43489
43490 2007-05-28  Bruno Haible  <bruno@clisp.org>
43491
43492         * gnulib-tool (func_import): Remember the --with-tests command-line
43493         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
43494         Reported by Eric Blake.
43495
43496 2007-05-28  Bruno Haible  <bruno@clisp.org>
43497
43498         * modules/ftell-tests: New file.
43499         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
43500         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
43501
43502         * lib/ftell.c: New file.
43503         * modules/ftell: New file.
43504         * m4/ftell.m4: New file.
43505         * doc/functions/ftell.texi: Update.
43506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
43507         REPLACE_FTELL.
43508         * lib/stdio_.h (rpl_ftell): New declaration.
43509         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
43510         REPLACE_FTELL.
43511
43512 2007-05-28  Eric Blake  <ebb9@byu.net>
43513
43514         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
43515
43516 2007-05-28  Bruno Haible  <bruno@clisp.org>
43517
43518         * modules/fseek-tests: New file.
43519         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
43520         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
43521
43522         * lib/fseek.c: New file.
43523         * modules/fseek: New file.
43524         * m4/fseek.m4: New file.
43525         * doc/functions/fseek.texi: Update.
43526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
43527         REPLACE_FSEEK.
43528         * lib/stdio_.h (rpl_fseek): New declaration.
43529         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
43530         REPLACE_FSEEK.
43531
43532 2007-05-28  Bruno Haible  <bruno@clisp.org>
43533
43534         * lib/stdio_.h (fflush): More comments.
43535
43536 2007-05-28  Bruno Haible  <bruno@clisp.org>
43537
43538         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
43539         runtime test.
43540
43541 2007-05-28  Eric Blake  <ebb9@byu.net>
43542
43543         Improve lseek module.
43544         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
43545         * lib/unistd_.h (lseek): Scale back link warning message.
43546         * tests/test-lseek.c: Beef up test.
43547         * tests/test-lseek.sh: Exercise more facets of lseek.
43548         Reported by Bruno Haible.
43549
43550 2007-05-28  Bruno Haible  <bruno@clisp.org>
43551
43552         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
43553         to define.
43554
43555 2007-05-27  Bruno Haible  <bruno@clisp.org>
43556
43557         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
43558
43559 2007-05-27  Bruno Haible  <bruno@clisp.org>
43560
43561         * modules/openmp: New file.
43562         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
43563         Noah Misch.
43564
43565 2007-05-26  Bruno Haible  <bruno@clisp.org>
43566
43567         * modules/chdir-long (Depends-on): Add fchdir.
43568         * modules/chdir-safer (Depends-on): Likewise.
43569         * modules/fts (Depends-on): Likewise.
43570         * modules/fts-lgpl (Depends-on): Likewise.
43571         * modules/openat (Depends-on): Likewise.
43572         * modules/savewd (Depends-on): Likewise.
43573
43574 2007-05-24  Eric Blake  <ebb9@byu.net>
43575
43576         Fix lseek on mingw.
43577         * modules/lseek: New module.
43578         * m4/lseek.m4: New file.
43579         * lib/lseek.c: New file.
43580         * modules/lseek-tests: New file.
43581         * tests/test-lseek.c: New file.
43582         * tests/test-lseek.sh: New file.
43583         * MODULES.html.sh: Document lseek module.
43584         * modules/fflush (Depends-on): Add lseek, fseeko.
43585         * modules/fseeko (Depends-on): Likewise.
43586         * modules/ftello (Depends-on): Likewise.
43587         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
43588         broken.
43589         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
43590         broken.
43591         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
43592         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
43593         * lib/ftello.c (rpl_ftello): Likewise.
43594         * tests/test-fseeko.c (main): Test this.
43595         * tests/test-fseeko.sh: Likewise.
43596         * tests/test-ftello.c (main): Likewise.
43597         * tests/test-ftello.sh: Likewise.
43598         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
43599         implies replacing fseek.
43600         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
43601         HAVE_FTELLO.
43602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
43603         * modules/unistd (Makefile.am): Likewise.
43604         * lib/unistd_.h (lseek): Declare a replacement.
43605         * doc/functions/lseek.texi (lseek): Document this fix.
43606         * doc/functions/fseek.texi (fseek): Likewise.
43607         * doc/functions/ftell.texi (ftell): Likewise.
43608
43609 2007-05-24  Bruno Haible  <bruno@clisp.org>
43610
43611         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
43612         in the printed representation of a NaN.
43613         * tests/test-vasprintf-posix.c (test_function): Likewise.
43614         * tests/test-snprintf-posix.h (test_function): Likewise.
43615         * tests/test-sprintf-posix.h (test_function): Likewise.
43616         Reported by Eric Blake.
43617
43618 2007-05-23  Eric Blake  <ebb9@byu.net>
43619
43620         Fix fseeko/ftello on cygwin 1.5.24.
43621         * doc/functions/fseeko.texi (fseeko): Document the fix.
43622         * doc/functions/ftello.texi (ftello): Document the fix.
43623         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
43624         * doc/functions/stdout.text (stdout): New file.
43625         * doc/functions/stderr.text (stderr): New file.
43626         * doc/gnulib.texi (Function Substitutes): Use new files.
43627         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
43628         prior to 1.7.0.
43629         * tests/test-ftello.c (main): Likewise for ftello.
43630         * tests/test-fseeko.sh: New file.
43631         * tests/test-ftello.sh: New file.
43632         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
43633         with seekable stdin.
43634         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
43635         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
43636         (gl_REPLACE_FSEEKO): New macro.
43637         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
43638         * modules/fseeko (Files): Distribute fseeko.c.
43639         * modules/ftello (Files): Distribute ftello.c.
43640         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
43641         mode.
43642         * lib/ftello.c (rpl_ftello): New file.
43643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
43644         fseeko, ftello.
43645         (gl_STDIN_LARGE_OFFSET): New macro.
43646         * modules/stdio (Makefile.am): Perform the replacement.
43647         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
43648
43649 2007-05-23  Bruno Haible  <bruno@clisp.org>
43650
43651         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
43652         GNULIB_POSIXCHECK is defined.
43653
43654 2007-05-21  Bruno Haible  <bruno@clisp.org>
43655
43656         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
43657         Check also the output for NaN arguments. When cross-compiling, guess
43658         no on IRIX.
43659         * lib/vasnprintf.c: Update comments.
43660         * tests/test-vasnprintf-posix.c (strisnan): New function.
43661         (test_function): Use it.
43662         * tests/test-vasprintf-posix.c (strisnan): New function.
43663         (test_function): Use it.
43664         * tests/test-snprintf-posix.h (strisnan): New function.
43665         (test_function): Use it.
43666         * tests/test-sprintf-posix.h (strisnan): New function.
43667         (test_function): Use it.
43668         Reported by Eric Blake.
43669
43670 2007-05-20  Bruno Haible  <bruno@clisp.org>
43671
43672         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
43673         numbers that fails on BeOS.
43674         * doc/functions/frexpl.texi: Update.
43675
43676 2007-05-20  Jim Meyering  <jim@meyering.net>
43677
43678         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
43679         forced upon us by glibc-2.6.
43680
43681 2007-05-20  Bruno Haible  <bruno@clisp.org>
43682
43683         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
43684         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
43685         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
43686         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
43687         NEED_PRINTF_INFINITE.
43688         (is_infinitel): New function.
43689         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
43690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
43691         gl_PREREQ_VASNPRINTF_INFINITE.
43692         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
43693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43694         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
43695         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
43696         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
43697         gl_PREREQ_VASNPRINTF_INFINITE.
43698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43699         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43700         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43705         * doc/functions/fprintf.texi: Update.
43706         * doc/functions/printf.texi: Update.
43707         * doc/functions/snprintf.texi: Update.
43708         * doc/functions/sprintf.texi: Update.
43709         * doc/functions/vfprintf.texi: Update.
43710         * doc/functions/vprintf.texi: Update.
43711         * doc/functions/vsnprintf.texi: Update.
43712         * doc/functions/vsprintf.texi: Update.
43713
43714 2007-05-20  Bruno Haible  <bruno@clisp.org>
43715
43716         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
43717         was not found in libc.
43718         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43719
43720 2007-05-20  Bruno Haible  <bruno@clisp.org>
43721
43722         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43723         printed as "-nan" instead of "nan".
43724         * tests/test-vasprintf-posix.c (test_function): Likewise.
43725         * tests/test-snprintf-posix.h (test_function): Likewise.
43726         * tests/test-sprintf-posix.h (test_function): Likewise.
43727         Needed for HP-UX 11.
43728
43729 2007-05-20  Jim Meyering  <jim@meyering.net>
43730
43731         Fix buggy test for the fchownat-deref bug.
43732         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
43733         symlink required for the run-test.  Without it, this test would
43734         always declare that fchownat doesn't work, and client code would
43735         unnecessarily use the replacement function with fixed libc.
43736         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
43737         Reported by Greg Schafer.
43738
43739 2007-05-19  Bruno Haible  <bruno@clisp.org>
43740
43741         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
43742         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
43743         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
43744         Needed for IRIX 6.5 and Solaris 2.5.1.
43745
43746 2007-05-19  Bruno Haible  <bruno@clisp.org>
43747
43748         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
43749         (test_function): Skip tests involving -0.0 on platforms where
43750         -0.0 = 0.0.
43751         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
43752         (test_function): Skip tests involving -0.0 on platforms where
43753         -0.0 = 0.0.
43754         * tests/test-snprintf-posix.h (have_minus_zero): New function.
43755         (test_function): Skip tests involving -0.0 on platforms where
43756         -0.0 = 0.0.
43757         * tests/test-sprintf-posix.h (have_minus_zero): New function.
43758         (test_function): Skip tests involving -0.0 on platforms where
43759         -0.0 = 0.0.
43760         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
43761         tests.
43762         * tests/test-printf-posix.h (test_function): Likewise.
43763         * tests/test-printf-posix.output: Remove all -0.0 related results.
43764         Needed for IRIX 6.5.
43765
43766 2007-05-19  Bruno Haible  <bruno@clisp.org>
43767
43768         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43769         printed as "nan0x7fffffff" instead of "nan".
43770         * tests/test-vasprintf-posix.c (test_function): Likewise.
43771         * tests/test-snprintf-posix.h (test_function): Likewise.
43772         * tests/test-sprintf-posix.h (test_function): Likewise.
43773         * tests/test-fprintf-posix.h (NaN): Remove macro.
43774         (test_function): Remove all NaN related tests.
43775         * tests/test-printf-posix.h (NaN): Remove macro.
43776         (test_function): Remove all NaN related tests.
43777         * tests/test-printf-posix.output: Remove all NaN related results.
43778         Needed for IRIX 6.5.
43779
43780 2007-05-19  Bruno Haible  <bruno@clisp.org>
43781
43782         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
43783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43784
43785 2007-05-19  Bruno Haible  <bruno@clisp.org>
43786
43787         * lib/float_.h: New file.
43788         * m4/float_h.m4: New file.
43789         * modules/float: New file.
43790         * modules/isnanl (Dependencies): Add float.
43791         * modules/isnanl-nolibm (Dependencies): Likewise.
43792         * modules/mathl (Dependencies): Likewise.
43793         * modules/printf-frexpl (Dependencies): Likewise.
43794         * modules/signbit (Dependencies): Likewise.
43795         * modules/vasnprintf (Dependencies): Likewise.
43796         * doc/headers/float.texi: Update.
43797
43798 2007-05-19  Jim Meyering  <jim@meyering.net>
43799
43800         * lib/utimens.c (gl_futimens): Rename from futimens,
43801         now that glibc-2.6 declares futimens.
43802         * lib/utimens.h: Likewise.
43803
43804 2007-05-19  Bruno Haible  <bruno@clisp.org>
43805
43806         Avoid test failures on mingw.
43807         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
43808         * tests/test-printf-posix.sh: Likewise.
43809         * tests/test-vfprintf-posix.sh: Likewise.
43810         * tests/test-vprintf-posix.sh: Likewise.
43811
43812 2007-05-19  Bruno Haible  <bruno@clisp.org>
43813
43814         Fix *printf result for NaN, Inf, -0.0 on mingw.
43815         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
43816         * lib/vasnprintf.c: Include math.h and isnan.h.
43817         (is_infinite_or_zero): New function.
43818         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
43819         values in the %f, %F, %e, %E, %g, %G directives.
43820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
43821         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43822         gl_PRINTF_INFINITE and test its result. Invoke
43823         gl_PREREQ_VASNPRINTF_INFINITE.
43824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43828         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43829         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43830         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43831         * doc/functions/fprintf.texi: Update.
43832         * doc/functions/printf.texi: Update.
43833         * doc/functions/snprintf.texi: Update.
43834         * doc/functions/sprintf.texi: Update.
43835         * doc/functions/vfprintf.texi: Update.
43836         * doc/functions/vprintf.texi: Update.
43837         * doc/functions/vsnprintf.texi: Update.
43838         * doc/functions/vsprintf.texi: Update.
43839
43840 2007-05-19  Bruno Haible  <bruno@clisp.org>
43841
43842         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
43843         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
43844         Instead of multiplying with 10^k, set extra_zeroes to k.
43845         (scale10_round_long_double): Remove function.
43846
43847 2007-05-18  Bruno Haible  <bruno@clisp.org>
43848
43849         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
43850         introduced on 2007-05-06.
43851
43852 2007-05-18  Bruno Haible  <bruno@clisp.org>
43853
43854         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
43855         %g directives.
43856         * tests/test-vasprintf-posix.c (test_function): Likewise.
43857         * tests/test-snprintf-posix.h (test_function): Likewise.
43858         * tests/test-sprintf-posix.h (test_function): Likewise.
43859
43860 2007-05-18  Bruno Haible  <bruno@clisp.org>
43861
43862         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
43863         (strmatch): New function.
43864         (test_function): Test the %f directive on numbers of various exponents.
43865         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
43866         (strmatch): New function.
43867         (test_function): Test the %f directive on numbers of various exponents.
43868         * tests/test-snprintf-posix.h (strmatch): New function.
43869         (test_function): Test the %f directive on numbers of various exponents.
43870         * tests/test-sprintf-posix.h (strmatch): New function.
43871         (test_function): Test the %f directive on numbers of various exponents.
43872         * tests/test-snprintf-posix.c (SIZEOF): New macro.
43873         * tests/test-sprintf-posix.c (SIZEOF): New macro.
43874         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
43875         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
43876
43877 2007-05-18  Bruno Haible  <bruno@clisp.org>
43878
43879         Add support for 'long double' number output.
43880         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
43881         * lib/vasnprintf.c: Include math.h and float+.h.
43882         (mp_limb_t): New type.
43883         (GMP_LIMB_BITS): New macro.
43884         (mp_twolimb_t): New type.
43885         (GMP_TWOLIMB_BITS): New macro.
43886         (mpn_t): New type.
43887         (multiply, divide, convert_to_decimal, decode_long_double,
43888         scale10_round_long_double, scale10_round_decimal_long_double,
43889         floorlog10l): New functions.
43890         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
43891         for the %f, %F, %e, %E, %g, %G directives.
43892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
43893         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43894         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
43895         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
43896         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43898         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43899         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43900         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43903         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
43904         * modules/snprintf-posix (Depends-on): Likewise.
43905         * modules/sprintf-posix (Depends-on): Likewise.
43906         * modules/vasnprintf-posix (Depends-on): Likewise.
43907         * modules/vasprintf-posix (Depends-on): Likewise.
43908         * modules/vfprintf-posix (Depends-on): Likewise.
43909         * modules/vsnprintf-posix (Depends-on): Likewise.
43910         * modules/vsprintf-posix (Depends-on): Likewise.
43911         * modules/vasnprintf (Files): Add lib/float+.h.
43912         * doc/functions/fprintf.texi: Update.
43913         * doc/functions/printf.texi: Update.
43914         * doc/functions/snprintf.texi: Update.
43915         * doc/functions/sprintf.texi: Update.
43916         * doc/functions/vfprintf.texi: Update.
43917         * doc/functions/vprintf.texi: Update.
43918         * doc/functions/vsnprintf.texi: Update.
43919         * doc/functions/vsprintf.texi: Update.
43920
43921 2007-05-18  Bruno Haible  <bruno@clisp.org>
43922
43923         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
43924
43925 2007-05-18  Bruno Haible  <bruno@clisp.org>
43926
43927         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
43928         for printing 64-bit integers. Needed for mingw.
43929
43930 2007-05-18  Bruno Haible  <bruno@clisp.org>
43931
43932         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43933         gl_FUNC_FREXPL_WORKS.
43934         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
43935
43936 2007-05-18  Bruno Haible  <bruno@clisp.org>
43937
43938         * modules/frexpl-nolibm-tests: New file.
43939
43940         * modules/frexpl-nolibm: New file.
43941         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
43942
43943 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43944
43945         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
43946         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
43947         GCC 4.2, which otherwise issues a lot of warnings.
43948         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
43949         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
43950         Likewise.
43951         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
43952         * modules/iconv_open (iconv.h): Likewise.
43953         * modules/locale (locale.h): Likewise.
43954         * modules/netinet_in (netinet/in.h): Likewise.
43955         * modules/sys_select (sys_select.h): Likewise.
43956         * modules/sys_socket (sys/socket.h): Likewise.
43957         * modules/sys_stat (sys/stat.h): Likewise.
43958         * modules/sysexits (sysexits.h): Likewise.
43959         * modules/unistd (unistd.h): Likewise.
43960
43961 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43962
43963         * modules/closein-tests (Makefile.am): Distribute
43964         `test-closein.sh'.
43965
43966 2007-05-17  Bruno Haible  <bruno@clisp.org>
43967
43968         * tests/test-printf-posix.output: Renamed from
43969         tests/test-fprintf-posix.out.
43970         * modules/fprintf-posix-tests: Update.
43971         * modules/printf-posix-tests: Update.
43972         * modules/vfprintf-posix-tests: Update.
43973         * modules/vprintf-posix-tests: Update.
43974         * tests/test-fprintf-posix.sh: Update.
43975         * tests/test-printf-posix.sh: Update.
43976         * tests/test-vfprintf-posix.sh: Update.
43977         * tests/test-vprintf-posix.sh: Update.
43978         Reported by Ralf Wildenhues.
43979
43980 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43981
43982         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
43983         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
43984         GCC 4.2, which otherwise issues a lot of warnings.
43985         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
43986         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
43987         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
43988         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
43989         it should no longer be needed.
43990         * lib/string_.h: Likewise.
43991         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
43992         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
43993         * modules/inttypes (inttypes.h): Likewise.
43994         * modules/math (math.h): Likewise.
43995         * modules/search (search.h): Likewise.
43996         * modules/signal (signal.h): Likewise.
43997         * modules/stdint (stdint.h): Likewise.
43998         * modules/stdio (stdio.h): Likewise.
43999         * modules/stdlib (stdlib.h): Likewise.
44000         * modules/string (string.h): Likewise.
44001         * modules/sys_time (sys/time.h): Likewise.
44002         * modules/time (time.h): Likewise.
44003         * modules/wchar (wchar.h): Likewise.
44004         * modules/wctype (wtype.h): Likewise.
44005
44006 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44007
44008         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44009
44010 2007-05-13  Bruno Haible  <bruno@clisp.org>
44011
44012         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44013         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44014         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44015         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44016         (gl_PREREQ_STRTOK_R): Don't require it here.
44017
44018 2007-05-13  Bruno Haible  <bruno@clisp.org>
44019
44020         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44021         when used in C++ mode.
44022
44023 2007-05-12  Bruno Haible  <bruno@clisp.org>
44024
44025         * lib/linebuffer.h: Tweak doc.
44026         * lib/linebuffer.c: Likewise.
44027
44028 2007-05-12  James Youngman  <jay@gnu.org>
44029
44030         * lib/linebuffer.c (readlinebuffer_delim): New function,
44031         like readlinebuffer, but use a caller-specified delimiter.
44032         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44033         as the delimiter.
44034         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44035
44036 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44037
44038         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44039         * modules/openat (Files): Remove openat-die.c.
44040         (Depends-on): Add openat-die.
44041         * modules/openat-die: New module.
44042
44043 2007-05-06  Bruno Haible  <bruno@clisp.org>
44044
44045         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
44046         Update with info about Cygwin.
44047         * doc/functions/fprintf.texi: Update.
44048         * doc/functions/printf.texi: Update.
44049         * doc/functions/snprintf.texi: Update.
44050         * doc/functions/sprintf.texi: Update.
44051         * doc/functions/vfprintf.texi: Update.
44052         * doc/functions/vprintf.texi: Update.
44053         * doc/functions/vsnprintf.texi: Update.
44054         * doc/functions/vsprintf.texi: Update.
44055         Reported by Eric Blake.
44056
44057 2007-05-06  Bruno Haible  <bruno@clisp.org>
44058
44059         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
44060         padding ourselves for the floating-point directives.
44061         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
44062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
44063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44064         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44065         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44067         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44073         * tests/test-snprintf-posix.h (test_function): Also check the width
44074         and some flags in the %f directive.
44075         * tests/test-sprintf-posix.h (test_function): Likewise.
44076         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44077         * tests/test-vasprintf-posix.c (test_function): Likewise.
44078         * doc/functions/fprintf.texi: Update.
44079         * doc/functions/printf.texi: Update.
44080         * doc/functions/snprintf.texi: Update.
44081         * doc/functions/sprintf.texi: Update.
44082         * doc/functions/vfprintf.texi: Update.
44083         * doc/functions/vprintf.texi: Update.
44084         * doc/functions/vsnprintf.texi: Update.
44085         * doc/functions/vsprintf.texi: Update.
44086
44087 2007-05-06  Bruno Haible  <bruno@clisp.org>
44088
44089         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44090         pass the ' flag character to sprintf or snprintf.
44091         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44092         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44093         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44094         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44095         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44097         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44099         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44100         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44102         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44103         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44104         flag.
44105         * tests/test-sprintf-posix.h (test_function): Likewise.
44106         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44107         * tests/test-vasprintf-posix.c (test_function): Likewise.
44108         * doc/functions/fprintf.texi: Update.
44109         * doc/functions/printf.texi: Update.
44110         * doc/functions/snprintf.texi: Update.
44111         * doc/functions/sprintf.texi: Update.
44112         * doc/functions/vfprintf.texi: Update.
44113         * doc/functions/vprintf.texi: Update.
44114         * doc/functions/vsnprintf.texi: Update.
44115         * doc/functions/vsprintf.texi: Update.
44116
44117 2007-05-01  Bruno Haible  <bruno@clisp.org>
44118
44119         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44120
44121 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44122
44123         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44124         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44125
44126 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44127
44128         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44129         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44130         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44131
44132 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44133
44134         * lib/argp-help.c (struct hol_entry): New member `ord'.
44135         (HOL_ENTRY_PTRCMP): Use ord for comparison
44136         (hol_sort): Initialize ord.
44137
44138 2007-05-01  Bruno Haible  <bruno@clisp.org>
44139
44140         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44141         Reported by Eric Blake.
44142         * doc/gnulib.texi (Function Substitutes): Update.
44143
44144 2007-05-01  Bruno Haible  <bruno@clisp.org>
44145
44146         * doc/functions.texi: Remove file, now redundant through
44147         doc/functions/*.texi.
44148
44149 2007-05-01  Bruno Haible  <bruno@clisp.org>
44150
44151         * modules/argp (Depends-on): Add sleep.
44152
44153 2007-05-01  Bruno Haible  <bruno@clisp.org>
44154
44155         * modules/sleep-tests: New file.
44156         * tests/test-sleep.c: New file.
44157
44158         * modules/sleep: New file.
44159         * lib/sleep.c: New file.
44160         * m4/sleep.m4: New file.
44161         * lib/unistd_.h (sleep): New declaration.
44162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44163         HAVE_SLEEP.
44164         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44165         * doc/functions/sleep.texi: Document the sleep module.
44166
44167 2007-05-01  Bruno Haible  <bruno@clisp.org>
44168
44169         * lib/sigprocmask.h: Remove file.
44170         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44171         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44172         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44173         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44174         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44175         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44176         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44177         HAVE_SIGSET_T as a shell variable.
44178         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44179         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44180         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44181         (Depends-on): Add signal. Remove verify.
44182         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44183         (Include): Mention <signal.h> instead of sigprocmask.h.
44184         * NEWS: Mention the change.
44185         * lib/fatal-signal.c: Don't include sigprocmask.h.
44186
44187 2007-05-01  Bruno Haible  <bruno@clisp.org>
44188
44189         * modules/signal: New file.
44190         * lib/signal_.h: New file.
44191         * m4/signal_h.m4: New file.
44192
44193 2007-05-01  Bruno Haible  <bruno@clisp.org>
44194
44195         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44196         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44197         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44198         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44199
44200 2007-05-01  Bruno Haible  <bruno@clisp.org>
44201
44202         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44203         configure time.
44204         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44205         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44206         * modules/sys_stat (Makefile.am): Substitute their values into
44207         sys/stat.h.
44208
44209 2007-05-01  Bruno Haible  <bruno@clisp.org>
44210
44211         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44212         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44213         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44214
44215 2007-05-01  Bruno Haible  <bruno@clisp.org>
44216
44217         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44218         'assert' module here.
44219
44220 2007-05-01  Bruno Haible  <bruno@clisp.org>
44221
44222         * doc/functions/*.texi: New files.
44223         * doc/functions/google-ranking.txt: New file.
44224         * doc/gnulib.texi (Function Substitutes): New chapter.
44225         (ctime, inet_ntoa): Remove sections.
44226         * doc/ctime.texi: Remove file.
44227         * doc/inet_ntoa.texi: Remove file.
44228         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44229         dependencies.
44230         (%.info): New rule, specifying a --reference-limit.
44231
44232 2007-05-01  Bruno Haible  <bruno@clisp.org>
44233
44234         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44235
44236 2007-05-01  Bruno Haible  <bruno@clisp.org>
44237
44238         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44239         the portability of 'mkdir' to mingw systems.
44240
44241 2007-05-01  Bruno Haible  <bruno@clisp.org>
44242
44243         * doc/headers/google-ranking.txt: New file.
44244
44245 2007-04-30  Eric Blake  <ebb9@byu.net>
44246
44247         Prefer fseeko to fseek.
44248         * modules/getpass (Depends-on): Add fseeko.
44249         * lib/getpass.c (getpass): Use fseeko, not fseek.
44250
44251 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44252
44253         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44254         assumes the sorting is stable, while most qsort implementations
44255         are not.  Use argument addresses to ensure they never compare as
44256         equal.
44257
44258         * tests/test-argp-2.sh (usage-indent test): Fix output
44259         (func_compare): Restore diff options
44260         * tests/test-argp.c: Restore #include "progname.h"
44261
44262 2007-04-29  Bruno Haible  <bruno@clisp.org>
44263
44264         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44265         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44266         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44268         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44269         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44270         (TESTS, check_PROGRAMS): Add test-snprintf.
44271         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44272         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44273         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44274         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44275         assertions that fail on HP-UX, OSF/1, or IRIX.
44276         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44277
44278 2007-04-29  Bruno Haible  <bruno@clisp.org>
44279
44280         * MODULES.html.sh (posix_functions): Remove 'contents'.
44281
44282 2007-04-29  Karl Berry  <karl@gnu.org>
44283
44284         * config/srclist.txt (gendocs_template_min): new entry.
44285
44286 2007-04-29  Bruno Haible  <bruno@clisp.org>
44287
44288         Work around fpurge bug on BSD systems.
44289         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44290         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44291         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44292         fpurge to rpl_fpurge if the system already has this function.
44293         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44294         the case where the system already has this function. Correct invariants
44295         on BSD systems.
44296         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44297         BSD systems.
44298
44299 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44300
44301         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44302         proposed by Sven Verdoolaege.
44303
44304         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44305         options.
44306         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44307         (usage and help tests): Update
44308
44309 2007-04-29  Bruno Haible  <bruno@clisp.org>
44310
44311         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44312         Print more information in case of failure. Disable a test on BeOS.
44313
44314 2007-04-29  Bruno Haible  <bruno@clisp.org>
44315
44316         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44317         This helps debugging on systems on which no gdb is available.
44318
44319 2007-04-29  Bruno Haible  <bruno@clisp.org>
44320
44321         * lib/freading.h: Improve comments.
44322         * lib/fwriting.h: Likewise.
44323         * tests/test-freading.c (main): Don't check freading immediately after
44324         repositioning. Needed for glibc.
44325
44326 2007-04-29  Bruno Haible  <bruno@clisp.org>
44327
44328         * lib/freading.c (freading): Trivial simplification.
44329
44330 2007-04-28  Bruno Haible  <bruno@clisp.org>
44331
44332         * tests/test-fwriting.c (main): Also test the interaction between
44333         fflush and fwriting.
44334         * modules/fwriting-tests (Depends-on): Add fflush.
44335
44336         * tests/test-freading.c (main): Also test the interaction between
44337         fflush and freading.
44338         * modules/freading-tests (Depends-on): Add fflush.
44339
44340 2007-04-28  Bruno Haible  <bruno@clisp.org>
44341
44342         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44343         fseeko and ftello.
44344         Suggested by Eric Blake.
44345
44346 2007-04-28  Jim Meyering  <jim@meyering.net>
44347
44348         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44349         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44350         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44351
44352 2007-04-27  Eric Blake  <ebb9@byu.net>
44353
44354         * doc/headers/assert.texi (assert.h): Document assert module use.
44355
44356 2007-04-27  Bruno Haible  <bruno@clisp.org>
44357
44358         * doc/headers/*.texi: New files.
44359         * doc/gnulib.texi (Header File Substitutes): New chapter.
44360         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44361         dependencies.
44362         (standards.info ,standards.html, standards.dvi): Update dependencies.
44363         (mostlyclean, clean): New targets.
44364
44365 2007-04-27  Bruno Haible  <bruno@clisp.org>
44366
44367         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44368         * modules/sysexits (Files, Makefile.am): Update.
44369
44370         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44371         * modules/sys_socket (Files, Makefile.am): Update.
44372
44373         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44374         * modules/sys_stat (Files, Makefile.am): Update.
44375
44376 2007-04-27  Eric Blake  <ebb9@byu.net>
44377
44378         * lib/freading.h: Improve comments.
44379         * lib/fwriting.h: Likewise.
44380         * lib/fflush.c: Likewise.
44381
44382         Fix closein for mingw.
44383         * modules/closein-tests: Add tests for closein.
44384         * tests/test-closein.c: New file.
44385         * tests/test-closein.sh: Likewise.
44386         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
44387         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
44388
44389 2007-04-27  Bruno Haible  <bruno@clisp.org>
44390
44391         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
44392         version is < 6.
44393         * lib/math_.h [__DECC]: Likewise.
44394         * lib/stdio_.h [__DECC]: Likewise.
44395         * lib/stdlib_.h [__DECC]: Likewise.
44396         * lib/string_.h [__DECC]: Likewise.
44397         * lib/time_.h [__DECC]: Likewise.
44398         * lib/wchar_.h [__DECC]: Likewise.
44399         * lib/wctype_.h [__DECC]: Likewise.
44400
44401 2007-04-27  Bruno Haible  <bruno@clisp.org>
44402
44403         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
44404
44405 2007-04-27  Bruno Haible  <bruno@clisp.org>
44406
44407         * lib/fflush.c: Add comments.
44408         * modules/fpurge-tests (Depends-on): Add fflush.
44409         * modules/freadable-tests (Depends-on): Likewise.
44410         * modules/fwritable-tests (Depends-on): Likewise.
44411
44412 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
44413
44414         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
44415         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
44416         Report by Bruno Haible <bruno@clisp.org>.
44417
44418 2007-04-26  Eric Blake  <ebb9@byu.net>
44419
44420         Fix fflush on mingw.
44421         * modules/fflush (Depends-on): Add freading.
44422         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
44423         but unread data.
44424
44425 2007-04-26  Eric Blake  <ebb9@byu.net>
44426         and Bruno Haible  <bruno@clisp.org>
44427
44428         Implement freading and fwriting.
44429         * lib/freading.c: New file.
44430         * lib/freading.h: Likewise.
44431         * m4/freading.m4: Likewise.
44432         * modules/freading: Likewise.
44433         * modules/freading-tests: Likewise.
44434         * tests/test-freading.c: Likewise.
44435         * lib/fwriting.c: New file.
44436         * lib/fwriting.h: Likewise.
44437         * m4/fwriting.m4: Likewise.
44438         * modules/fwriting: Likewise.
44439         * modules/fwriting-tests: Likewise.
44440         * tests/test-fwriting.c: Likewise.
44441         * MODULES.html.sh (File stream based Input/Output): Mention them.
44442
44443 2007-04-26  Bruno Haible  <bruno@clisp.org>
44444
44445         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
44446         'long' when we assume it.
44447         Suggested by Eric Blake.
44448
44449 2007-04-26  Bruno Haible  <bruno@clisp.org>
44450
44451         Ensure fseeko, ftello are declared on glibc systems.
44452         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44453         * modules/fseeko (configure.ac-early): Likewise.
44454         * modules/ftello (configure.ac-early): Likewise.
44455         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
44456         AC_FUNC_FSEEKO for this.
44457         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
44458         (gl_CHECK_FSEEKO): Remove macro.
44459
44460 2007-04-26  Bruno Haible  <bruno@clisp.org>
44461
44462         * tests/test-fflush.c (main): Also check the ftell result after
44463         fflush and fseek/fseeko.
44464         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
44465         file descriptor position cache in the stream.
44466         * lib/fseeko.c (rpl_fseeko): Likewise.
44467
44468 2007-04-26  Bruno Haible  <bruno@clisp.org>
44469
44470         * modules/fflush-tests (Depends-on): Add fseeko.
44471
44472 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
44473             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44474
44475         * lib/argz_.h: ensure error_t definition is obtained in same
44476         mechanism system argz.h would have.
44477         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
44478         argz facilities are known bad.  Err on the side of caution if
44479         cross-compiling.
44480
44481 2007-04-25  Eric Blake  <ebb9@byu.net>
44482
44483         * lib/fpurge.c (includes): Use stdlib.h for free.
44484         * tests/test-fflush.c (main): Also test fflush-fseeko.
44485
44486 2007-04-25  Bruno Haible  <bruno@clisp.org>
44487
44488         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
44489         * lib/fseeko.c: New file.
44490         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
44491         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
44492         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
44493         gl_FUNC_FSEEKO.
44494         (gl_FUNC_FSEEKO): Invoke it.
44495         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
44496         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
44497         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
44498
44499 2007-04-25  Bruno Haible  <bruno@clisp.org>
44500
44501         * modules/fflush (Depends-on): Add ftello.
44502
44503 2007-04-25  Bruno Haible  <bruno@clisp.org>
44504
44505         * modules/ftello-tests: New file.
44506         * tests/test-ftello.c: New file.
44507
44508         * modules/ftello: New file.
44509         * m4/ftello.m4: New file.
44510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
44511         HAVE_FTELLO.
44512         * lib/stdio_.h (ftello): New declaration.
44513         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
44514         HAVE_FTELLO.
44515
44516 2007-04-25  Bruno Haible  <bruno@clisp.org>
44517
44518         * modules/fseeko-tests: New file.
44519         * tests/test-fseeko.c: New file.
44520
44521         * modules/fseeko: New file.
44522         * m4/fseeko.m4: New file.
44523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
44524         HAVE_FSEEKO.
44525         * lib/stdio_.h (fseeko): New declaration.
44526         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
44527         HAVE_FSEEKO.
44528
44529 2007-04-25  Bruno Haible  <bruno@clisp.org>
44530
44531         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
44532
44533 2007-04-25  Bruno Haible  <bruno@clisp.org>
44534
44535         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
44536         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
44537         * tests/test-unistd.c: Likewise.
44538         * tests/test-fcntl.c: Likewise.
44539
44540 2007-04-23  Eric Blake  <ebb9@byu.net>
44541
44542         * lib/fflush.c: Fix missing include.
44543         Reported by Bruno Haible.
44544
44545 2007-04-23  Bruno Haible  <bruno@clisp.org>
44546
44547         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
44548         Reported by Eric Blake.
44549
44550 2007-04-23  Bruno Haible  <bruno@clisp.org>
44551
44552         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
44553
44554 2007-04-23  Bruno Haible  <bruno@clisp.org>
44555
44556         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
44557
44558 2007-04-23  Bruno Haible  <bruno@clisp.org>
44559
44560         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
44561         Needed on HP-UX 11.
44562
44563 2007-04-16  Eric Blake  <ebb9@byu.net>
44564
44565         Make fflush rely on fpurge.
44566         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
44567         open coding all variants.
44568         * modules/fflush (Depends-on): Add fpurge and unistd.
44569         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
44570         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
44571
44572         Fix --with-tests compilation on cygwin.
44573         * modules/argmatch-tests (Makefile.am): List gnulib library first
44574         in LDADD.
44575         * modules/argp-tests (Makefile.am): Likewise.
44576         * modules/array-list-tests (Makefile.am): Likewise.
44577         * modules/array-oset-tests (Makefile.am): Likewise.
44578         * modules/avltree-list-tests (Makefile.am): Likewise.
44579         * modules/avltree-oset-tests (Makefile.am): Likewise.
44580         * modules/avltreehash-list-tests (Makefile.am): Likewise.
44581         * modules/carray-list-tests (Makefile.am): Likewise.
44582         * modules/dirname-tests (Makefile.am): Likewise.
44583         * modules/frexp-tests (Makefile.am): Likewise.
44584         * modules/isnanl-tests (Makefile.am): Likewise.
44585         * modules/linked-list-tests (Makefile.am): Likewise.
44586         * modules/linkedhash-list-tests (Makefile.am): Likewise.
44587         * modules/lock-tests (Makefile.am): Likewise.
44588         * modules/rbtree-list-tests (Makefile.am): Likewise.
44589         * modules/rbtree-oset-tests (Makefile.am): Likewise.
44590         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
44591         * modules/tls-tests (Makefile.am): Likewise.
44592         * modules/tsearch-tests (Makefile.am): Likewise.
44593         * modules/xvasprintf-tests (Makefile.am): Likewise.
44594
44595         Fix fpurge for cygwin.
44596         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
44597         value.
44598         * modules/fpurge-tests (Depends-on): Clean up trash.
44599
44600 2007-04-16  Simon Josefsson  <simon@josefsson.org>
44601
44602         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
44603
44604         * m4/autobuild.m4: Re-indent.
44605
44606 2007-04-13  Bruno Haible  <bruno@clisp.org>
44607
44608         * modules/fpurge-tests: New file.
44609         * tests/test-fpurge.c: New file.
44610
44611         * modules/fpurge: New file.
44612         * lib/fpurge.h: New file.
44613         * lib/fpurge.c: New file.
44614         * m4/fpurge.m4: New file.
44615
44616 2007-04-13  Bruno Haible  <bruno@clisp.org>
44617
44618         * modules/fbufmode-tests: New file.
44619         * tests/test-fbufmode.c: New file.
44620
44621         * modules/fbufmode: New file.
44622         * lib/fbufmode.h: New file.
44623         * lib/fbufmode.c: New file.
44624         * m4/fbufmode.m4: New file.
44625
44626 2007-04-13  Bruno Haible  <bruno@clisp.org>
44627
44628         * modules/fwritable-tests: New file.
44629         * tests/test-fwritable.c: New file.
44630
44631         * modules/fwritable: New file.
44632         * lib/fwritable.h: New file.
44633         * lib/fwritable.c: New file.
44634         * m4/fwritable.m4: New file.
44635
44636 2007-04-13  Bruno Haible  <bruno@clisp.org>
44637
44638         * modules/freadable-tests: New file.
44639         * tests/test-freadable.c: New file.
44640
44641         * modules/freadable: New file.
44642         * lib/freadable.h: New file.
44643         * lib/freadable.c: New file.
44644         * m4/freadable.m4: New file.
44645
44646 2007-04-13  Bruno Haible  <bruno@clisp.org>
44647
44648         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
44649         MOSTLYCLEANFILES.
44650
44651 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44652
44653         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
44654         gzip bootstrap.conf to avoid dragging in i18n machinery.
44655         (gnulib_tool_option): Use it.
44656
44657 2007-04-13  Bruno Haible  <bruno@clisp.org>
44658
44659         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
44660         %F directives.
44661         * tests/test-vasprintf-posix.c (test_function): Likewise.
44662         * tests/test-snprintf-posix.h (test_function): Likewise.
44663         * tests/test-sprintf-posix.h (test_function): Likewise.
44664         * tests/test-fprintf-posix.h (test_function): Likewise.
44665         * tests/test-printf-posix.h (test_function): Likewise.
44666         * tests/test-fprintf-posix.out: Likewise.
44667
44668 2007-04-13  Bruno Haible  <bruno@clisp.org>
44669
44670         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
44671         * modules/tls-tests (configure.ac): Likewise.
44672         Reported by Arto C. Nirkko <anirkko@insel.ch>.
44673
44674 2007-04-13  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/tls.c (glthread_tls_get): Fix return type.
44677         Patch by Arto C. Nirkko <anirkko@insel.ch>.
44678
44679 2007-04-12  Eric Blake  <ebb9@byu.net>
44680
44681         * modules/gettime (Depends-on): Remove gettime.
44682         Reported by Dmitry V. Levin.
44683
44684 2007-04-12  Bruno Haible  <bruno@clisp.org>
44685
44686         * modules/fflush (Include): Mention <stdio.h>.
44687         * modules/strtoimax (Include): Mention <inttypes.h>.
44688         * modules/strtoumax (Include): Likewise.
44689
44690 2007-04-12  Eric Blake  <ebb9@byu.net>
44691
44692         * .cvsignore: New file.
44693         * .gitignore: Likewise.
44694
44695 2007-04-12  Bruno Haible  <bruno@clisp.org>
44696
44697         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
44698         not before, since $(LDADD) often contains libgnu.a.
44699         * modules/striconv-tests (test_striconv_LDADD): Likewise.
44700         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
44701         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
44702         Needed on Cygwin.
44703
44704 2007-04-12  Eric Blake  <ebb9@byu.net>
44705
44706         Work around glibc's failure to flush stdin on fclose.
44707         * lib/closein.c (close_stdin): Flush stdin before closing.
44708
44709         Work around glibc's failure to reset seekable stdin on exit.
44710         * modules/closein: New module.
44711         * lib/closein.c: New file.
44712         * lib/closein.h: Likewise.
44713         * m4/closein.m4: Likewise.
44714         * MODULES.html.sh (File stream based Input/Output): Document it.
44715
44716 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44717
44718         * gnulib-tool: Rename generated 'autobuild' script to
44719         'do-autobuild' in --create-megatestdir output.
44720
44721         * doc/gnulib.texi (Build robot for gnulib): Fix.
44722
44723 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44724
44725         * modules/sysexits (Depends-on): Add absolute-header.
44726
44727 2007-04-12  Eric Blake  <ebb9@byu.net>
44728
44729         No need to preserve errno on success.
44730         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
44731         Reported by Bruno Haible.
44732
44733 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44734
44735         * MODULES.html.sh (Support for maintaining and releasing
44736         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
44737
44738 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44739
44740         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
44741
44742 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44743
44744         * modules/autobuild: New module.
44745
44746         * m4/autobuild.m4: New file.
44747
44748 2007-04-11  Bruno Haible  <bruno@clisp.org>
44749
44750         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
44751         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
44752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
44753         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
44754         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44755         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44756         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44757         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44758         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44759         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44760         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
44761         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44762         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
44764         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44765         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44766         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
44767         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44768         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
44770         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44771         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
44773         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44774         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44775         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
44776         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44777         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44778         Reported by Eric Blake.
44779
44780 2007-04-11  Bruno Haible  <bruno@clisp.org>
44781
44782         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
44783
44784 2007-04-10  Bruno Haible  <bruno@clisp.org>
44785
44786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
44787         for NaN and Infinity. Needed on FreeBSD 6.1.
44788         * tests/test-vasnprintf-posix.c (test_function): Undo last change
44789         regarding results for "%010a" of Infinity and NaN.
44790         * tests/test-vasprintf-posix.c (test_function): Likewise.
44791         * tests/test-snprintf-posix.h (test_function): Likewise.
44792         * tests/test-sprintf-posix.h (test_function): Likewise.
44793         * tests/test-fprintf-posix.h (test_function): Likewise.
44794         * tests/test-printf-posix.h (test_function): Likewise.
44795         * tests/test-fprintf-posix.out: Likewise.
44796
44797 2007-04-10  Bruno Haible  <bruno@clisp.org>
44798
44799         * modules/locale-tests: New file.
44800         * tests/test-locale.c: New file.
44801
44802         * modules/locale: New file.
44803         * lib/locale_.h: New file.
44804         * m4/locale_h.m4: New file.
44805
44806 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
44807             Bruno Haible  <bruno@clisp.org>
44808
44809         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
44810         be determined, test for availability of the copysignf, copysign,
44811         copysignl functions.
44812         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
44813         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
44814         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
44815
44816 2007-04-09  Eric Blake  <ebb9@byu.net>
44817
44818         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
44819         * modules/stdio (Makefile.am): Support fflush.
44820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44821         * modules/fflush: New file.
44822         * lib/fflush.c: Likewise.
44823         * m4/fflush.m4: Likewise.
44824         * modules/fflush-tests: New test.
44825         * tests/test-fflush.c: Likewise.
44826         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
44827
44828 2007-04-06  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
44831         (VASNPRINTF): Use signbit for faster determination whether to print a
44832         minus sign.
44833         * modules/vasnprintf (Files): Remove lib/float+.h.
44834         * modules/fprintf-posix (Depends-on): Add signbit.
44835         * modules/snprintf-posix (Depends-on): Likewise.
44836         * modules/sprintf-posix (Depends-on): Likewise.
44837         * modules/vasnprintf-posix (Depends-on): Likewise.
44838         * modules/vasprintf-posix (Depends-on): Likewise.
44839         * modules/vfprintf-posix (Depends-on): Likewise.
44840         * modules/vsnprintf-posix (Depends-on): Likewise.
44841         * modules/vsprintf-posix (Depends-on): Likewise.
44842
44843 2007-04-06  Bruno Haible  <bruno@clisp.org>
44844
44845         * tests/test-frexp.c (main): Test also the sign bit of zero results.
44846         * tests/test-frexpl.c (main): Likewise.
44847         * tests/test-ldexpl.c (main): Likewise.
44848         * modules/frexp-tests (Depends-on): Add signbit.
44849         * modules/frexpl-tests (Depdends-on): Likewise.
44850         * modules/ldexpl-tests (Depdends-on): Likewise.
44851
44852 2007-04-06  Bruno Haible  <bruno@clisp.org>
44853
44854         * modules/signbit-tests: New file.
44855         * tests/test-signbit.c: New file.
44856
44857         * modules/signbit: New file.
44858         * lib/signbitf.c: New file.
44859         * lib/signbitd.c: New file.
44860         * lib/signbitl.c: New file.
44861         * m4/signbit.m4: New file.
44862         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
44863         (signbit): New macro.
44864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
44865         REPLACE_SIGNBIT.
44866         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
44867         REPLACE_FREXPL into math.h.
44868
44869 2007-04-06  Bruno Haible  <bruno@clisp.org>
44870
44871         * modules/isnanf-nolibm-tests: New file.
44872         * tests/test-isnanf.c: New file.
44873
44874         * modules/isnanf-nolibm: New file.
44875         * lib/isnanf.h: New file.
44876         * lib/isnanf.c: New file.
44877         * lib/isnan.c: Consider the USE_FLOAT macro.
44878         * m4/isnanf.m4: New file.
44879
44880 2007-04-06  Bruno Haible  <bruno@clisp.org>
44881
44882         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
44883         (Link): New section.
44884
44885         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
44886
44887 2007-04-06  Bruno Haible  <bruno@clisp.org>
44888
44889         Assume the 'long double' type.
44890         * m4/longdouble.m4: Remove file.
44891         * config/srclist.txt: Don't mention longdouble.m4.
44892         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
44893         * lib/float+.h: Likewise.
44894         * lib/frexp.c: Likewise.
44895         * lib/printf-args.h: Likewise.
44896         * lib/printf-args.c: Likewise.
44897         * lib/printf-frexp.c: Likewise.
44898         * lib/printf-parse.c: Likewise.
44899         * lib/vasnprintf.c: Likewise.
44900         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
44901         * m4/intl.m4: Likewise.
44902         * m4/isnanl.m4: Likewise.
44903         * m4/printf.m4: Likewise.
44904         * m4/printf-frexpl.m4: Likewise.
44905         * m4/vasnprintf.m4: Likewise.
44906         * modules/allocsa (Files): Remove m4/longdouble.m4.
44907         * modules/gettext (Files): Likewise.
44908         * modules/relocatable-prog-wrapper (Files): Likewise.
44909         * modules/vasnprintf (Files): Likewise.
44910         * modules/isnanl (Files): Likewise.
44911         (Include): Simplify.
44912         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
44913         (Include): Simplify.
44914         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
44915         (Include): Simplify.
44916         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
44917         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44918         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
44919         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44920         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
44921         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44922         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
44923         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44924         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
44925         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44926         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
44927         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44928         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
44929         * tests/test-isnanl.c: Likewise.
44930         * tests/test-snprintf-posix.h: Likewise.
44931         * tests/test-sprintf-posix.h: Likewise.
44932         * tests/test-vasnprintf-posix.c: Likewise.
44933         * tests/test-vasnprintf-posix2.c: Likewise.
44934         * tests/test-vasprintf-posix.c: Likewise.
44935
44936 2007-04-06  Bruno Haible  <bruno@clisp.org>
44937
44938         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
44939         * lib/math_.h [__DECC]: Include the overridden include file through
44940         #include_next, outside the double-inclusion guard.
44941         * lib/stdio_.h [__DECC]: Likewise.
44942         * lib/stdlib_.h [__DECC]: Likewise.
44943         * lib/string_.h [__DECC]: Likewise.
44944         * lib/time_.h [__DECC]: Likewise.
44945         * lib/wchar_.h [__DECC]: Likewise.
44946         * lib/wctype_.h [__DECC]: Likewise.
44947         * lib/inttypes_.h [__DECC]: Likewise.
44948         Reported by Albert Chin <china@thewrittenword.com> in
44949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
44950
44951 2007-04-04  Eric Blake  <ebb9@byu.net>
44952
44953         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
44954         1.5.x.
44955
44956 2007-04-04  Bruno Haible  <bruno@clisp.org>
44957
44958         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
44959         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
44960
44961 2007-04-04  Bruno Haible  <bruno@clisp.org>
44962
44963         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
44964         results for "%010a" of Infinity and NaN.
44965         * tests/test-vasprintf-posix.c (test_function): Likewise.
44966         * tests/test-snprintf-posix.h (test_function): Likewise.
44967         * tests/test-sprintf-posix.h (test_function): Likewise.
44968         * tests/test-fprintf-posix.h (test_function): Remove these tests.
44969         * tests/test-printf-posix.h (test_function): Likewise.
44970         * tests/test-fprintf-posix.out: Update.
44971         Needed for FreeBSD 6.1.
44972
44973 2007-04-04  Bruno Haible  <bruno@clisp.org>
44974
44975         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
44976         directly used by the gnulib modules nor by gnulib-tool.
44977
44978 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
44979
44980         * DEPENDENCIES: Give overall description of version dependency
44981         desirability.  Use more-typical names for apps.
44982         Add shell, coreutils, diffutils, grep, tar, gzip.
44983
44984 2007-04-04  Simon Josefsson  <simon@josefsson.org>
44985
44986         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
44987
44988 2007-04-04  Karl Berry  <karl@gnu.org>
44989
44990         * MODULES.html.sh (func_module): missing '.
44991
44992 2007-04-03  Bruno Haible  <bruno@clisp.org>
44993
44994         * modules/argmatch-tests (Makefile.am): New variable
44995         test_argmatch_LDADD.
44996         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
44997         * modules/array-list-tests (Makefile.am): New variable
44998         test_array_list_LDADD.
44999         * modules/array-oset-tests (Makefile.am): New variable
45000         test_array_oset_LDADD.
45001         * modules/avltree-list-tests (Makefile.am): New variable
45002         test_avltree_list_LDADD.
45003         * modules/avltree-oset-tests (Makefile.am): New variable
45004         test_avltree_oset_LDADD.
45005         * modules/avltreehash-list-tests (Makefile.am): New variable
45006         test_avltreehash_list_LDADD.
45007         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45008         test_canonicalize_lgpl_LDADD.
45009         * modules/carray-list-tests (Makefile.am): New variable
45010         test_carray_list_LDADD.
45011         * modules/dirname-tests (Makefile.am): New variable
45012         test_dirname_LDADD.
45013         * modules/linked-list-tests (Makefile.am): New variable
45014         test_linked_list_LDADD.
45015         * modules/linkedhash-list-tests (Makefile.am): New variable
45016         test_linkedhash_list_LDADD.
45017         * modules/rbtree-list-tests (Makefile.am): New variable
45018         test_rbtree_list_LDADD.
45019         * modules/rbtree-oset-tests (Makefile.am): New variable
45020         test_rbtree_oset_LDADD.
45021         * modules/rbtreehash-list-tests (Makefile.am): New variable
45022         test_rbtreehash_list_LDADD.
45023         * modules/xvasprintf-tests (Makefile.am): New variable
45024         test_xvasprintf_LDADD.
45025         Reported by Eric Blake.
45026
45027 2007-04-03  Eric Blake  <ebb9@byu.net>
45028
45029         * DEPENDENCIES: Weaken m4 requirements.
45030
45031 2007-04-03  Bruno Haible  <bruno@clisp.org>
45032
45033         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45034         * modules/isnanl-tests (configure.ac): Likewise.
45035
45036 2007-04-03  Ben Pfaff  <blp@gnu.org>
45037
45038         * modules/iconv_open: Add $(srcdir)/ to source directory
45039         references in Makefile fragments that call gperf, to fix VPATH
45040         builds.
45041
45042 2007-04-03  Bruno Haible  <bruno@clisp.org>
45043
45044         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45045         * lib/ldexpl.c: Undo last change.
45046
45047 2007-04-03  Bruno Haible  <bruno@clisp.org>
45048
45049         * modules/printf-frexpl (Depends-on): Undo last change.
45050         (Files): Add m4/ldexpl.m4.
45051
45052 2007-04-03  Bruno Haible  <bruno@clisp.org>
45053
45054         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
45055         * modules/isnanl (Link): New section.
45056
45057         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
45058         * modules/frexp (Link): New section.
45059
45060         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
45061         * modules/frexpl (Link): New section.
45062
45063         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
45064         * modules/ldexpl (Link): New section.
45065
45066 2007-04-03  Bruno Haible  <bruno@clisp.org>
45067
45068         * modules/TEMPLATE-EXTENDED: New file.
45069         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45070
45071 2007-04-03  Bruno Haible  <bruno@clisp.org>
45072
45073         * DEPENDENCIES: New file.
45074         Suggested by Simon Josefsson.
45075
45076 2007-04-03  Bruno Haible  <bruno@clisp.org>
45077
45078         * doc/gnulib.texi: Escape @.
45079
45080 2007-04-03  James Youngman  <jay@gnu.org>
45081         and Paul Eggert  <eggert@cs.ucla.edu>
45082
45083         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45084         birthtime on all systems that have birthtime, not just those which
45085         use st_birthtimensec rather than st_birthtim.  Putting zero in
45086         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45087         that the birth time is not available for files on an NFS mount.
45088
45089 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45090
45091         * modules/memxor: Move back from crypto/, suggested by Bruno.
45092         * modules/crypto/hmac-sha1: Fix memxor dependency.
45093
45094         * modules/crypto/gc: Moved from ../.
45095
45096 2007-04-02  Eric Blake  <ebb9@byu.net>
45097
45098         * lib/ldexpl.c (includes): Avoid libm.
45099
45100         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45101
45102 2007-04-02  Bruno Haible  <bruno@clisp.org>
45103
45104         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45105         on IRIX.
45106
45107 2007-04-02  Bruno Haible  <bruno@clisp.org>
45108
45109         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45110         x86 or x86_64 platforms running MacOS X.
45111         Reported by Ryan Schmidt <@ryandesign.com>.
45112
45113 2007-04-02  Bruno Haible  <bruno@clisp.org>
45114
45115         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45116         i386.
45117
45118 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45119
45120         * modules/crypto/arcfour: Moved from ../.
45121         * modules/crypto/arcfour-tests: Moved from ../.
45122         * modules/crypto/arctwo: Moved from ../.
45123         * modules/crypto/arctwo-tests: Moved from ../.
45124         * modules/crypto/des: Moved from ../.
45125         * modules/crypto/des-tests: Moved from ../.
45126         * modules/crypto/gc-arcfour: Moved from ../.
45127         * modules/crypto/gc-arcfour-tests: Moved from ../.
45128         * modules/crypto/gc-arctwo: Moved from ../.
45129         * modules/crypto/gc-arctwo-tests: Moved from ../.
45130         * modules/crypto/gc-des: Moved from ../.
45131         * modules/crypto/gc-des-tests: Moved from ../.
45132         * modules/crypto/gc-hmac-md5: Moved from ../.
45133         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45134         * modules/crypto/gc-hmac-sha1: Moved from ../.
45135         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45136         * modules/crypto/gc-md2: Moved from ../.
45137         * modules/crypto/gc-md2-tests: Moved from ../.
45138         * modules/crypto/gc-md4: Moved from ../.
45139         * modules/crypto/gc-md4-tests: Moved from ../.
45140         * modules/crypto/gc-md5: Moved from ../.
45141         * modules/crypto/gc-md5-tests: Moved from ../.
45142         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45143         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45144         * modules/crypto/gc-random: Moved from ../.
45145         * modules/crypto/gc-rijndael: Moved from ../.
45146         * modules/crypto/gc-rijndael-tests: Moved from ../.
45147         * modules/crypto/gc-sha1: Moved from ../.
45148         * modules/crypto/gc-sha1-tests: Moved from ../.
45149         * modules/crypto/gc-tests: Moved from ../.
45150         * modules/crypto/hmac-md5: Moved from ../.
45151         * modules/crypto/hmac-md5-tests: Moved from ../.
45152         * modules/crypto/hmac-sha1: Moved from ../.
45153         * modules/crypto/hmac-sha1-tests: Moved from ../.
45154         * modules/crypto/md2: Moved from ../.
45155         * modules/crypto/md2-tests: Moved from ../.
45156         * modules/crypto/md4: Moved from ../.
45157         * modules/crypto/md4-tests: Moved from ../.
45158         * modules/crypto/md5: Moved from ../.
45159         * modules/crypto/md5-tests: Moved from ../.
45160         * modules/crypto/memxor: Moved from ../.
45161         * modules/crypto/rijndael: Moved from ../.
45162         * modules/crypto/rijndael-tests: Moved from ../.
45163         * modules/crypto/sha1: Moved from ../.
45164
45165 2007-03-30  James Youngman  <jay@gnu.org>
45166
45167         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45168         rename() to change the ctime of a file (because ctime is unaffected
45169         by rename on jfs2 on AIX 5.1).
45170         (main): Start by doing cleanup, in case a previous run failed leaving
45171         test files behind.
45172
45173 2007-03-31  Bruno Haible  <bruno@clisp.org>
45174
45175         Support old proprietary implementations of iconv.
45176         * modules/iconv_open: New file.
45177         * lib/iconv_.h: New file.
45178         * m4/iconv_h.m4: New file.
45179         * lib/iconv_open.c: New file.
45180         * lib/iconv_open-aix.gperf: New file.
45181         * lib/iconv_open-hpux.gperf: New file.
45182         * lib/iconv_open-irix.gperf: New file.
45183         * lib/iconv_open-osf.gperf: New file.
45184         * m4/iconv_open.m4: New file.
45185         * modules/linebreak (Depends-on): Add iconv_open.
45186         * modules/striconv (Depends-on): Likewise.
45187         * modules/striconveh (Depends-on): Likewise.
45188         * modules/unicodeio (Depends-on): Likewise.
45189         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45190         (iconv_t)(-1).
45191         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45192         conversion if cd is (iconv_t)(-1).
45193         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45194         is not possible.
45195
45196 2007-03-31  Bruno Haible  <bruno@clisp.org>
45197
45198         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45199         work on Solaris either. Protect also second use of "autodetect_jp".
45200
45201 2007-03-31  Bruno Haible  <bruno@clisp.org>
45202
45203         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45204         the function is not present.
45205
45206 2007-03-31  Bruno Haible  <bruno@clisp.org>
45207
45208         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45209         the function is not present.
45210
45211 2007-03-31  Bruno Haible  <bruno@clisp.org>
45212
45213         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45214         a bug in HP-UX iconv_open().
45215
45216 2007-03-31  Bruno Haible  <bruno@clisp.org>
45217
45218         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45219         (Mathematics <math.h>): New section, add fpieee.
45220         (Input/output <stdio.h>): Add fseterr.
45221         (Mathematics <math.h>): New section, add printf-frexp.
45222         (Container data structures): Add sublist.
45223         (Core language properties): Add fpucw, inline.
45224         (Functions for greatest-width integer types <inttypes.h>): Add
45225         imaxabs, imaxdiv, inttypes.
45226         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45227         isnanl-nolibm, ldexp.
45228         (Mathematics <math.h>): New section, add printf-frexpl.
45229         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45230         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45231         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45232         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45233         (Unicode string functions): Add unistr/u*-mbtoucr.
45234         (Java): Add javacomp-script, javaexec-script.
45235         (C#): Add csharpcomp-script, csharpexec-script.
45236         (Support for building libraries and executables): Add havelib,
45237         relocatable-*.
45238         (Support for maintaining and releasing projects): Renamed from
45239         'Support for maintaining and release projects'. Add announce-gen.
45240
45241 2007-03-31  Bruno Haible  <bruno@clisp.org>
45242
45243         * README: Talk primarily about git.
45244         (git and CVS): Renamed from CVS.
45245         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45246         gnulib is available through git.
45247         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45248
45249 2007-03-30  Bruno Haible  <bruno@clisp.org>
45250
45251         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45252         * lib/poll_.h: Likewise.
45253         * lib/stat_.h: Likewise.
45254         * lib/sys_time_.h: Likewise.
45255         * lib/sysexit_.h: Likewise.
45256         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45257         * lib/stdbool_.h: Likewise.
45258         * lib/byteswap_.h: Add double-inclusion guard.
45259
45260 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45261
45262         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45263
45264 2007-03-30  Karl Berry  <karl@gnu.org>
45265
45266         * config/srclist-update: double space after USA in the license
45267         substitution, since that's how it's usually (?) written.
45268
45269 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45270
45271         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45272         reported by Bruno Haible.
45273
45274 2007-03-29  Bruno Haible  <bruno@clisp.org>
45275
45276         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45277         a bug in AIX iconv().
45278
45279 2007-03-29  Bruno Haible  <bruno@clisp.org>
45280
45281         * modules/ldexpl-tests: New file.
45282         * tests/test-ldexpl.c: New file.
45283
45284 2007-03-29  Bruno Haible  <bruno@clisp.org>
45285
45286         * lib/ldexpl.c: Include fpucw.h.
45287         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45288         multiplication.
45289         * modules/ldexpl (Depends-on): Add fpucw.
45290
45291 2007-03-29  Bruno Haible  <bruno@clisp.org>
45292
45293         * modules/ldexpl: New file.
45294         * m4/ldexpl.m4: New file.
45295         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45296         set.
45297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45298         REPLACE_LDEXPL.
45299         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45300         REPLACE_LDEXPL.
45301         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45302         gl_FUNC_LDEXPL_WORKS.
45303         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45304         * modules/mathl (Files): Remove lib/ldexpl.c.
45305         (Depends-on): Add ldexpl.
45306
45307 2007-03-29  Bruno Haible  <bruno@clisp.org>
45308
45309         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45310
45311 2007-03-29  Bruno Haible  <bruno@clisp.org>
45312
45313         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45314         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45315         and possibly also HP-UX.
45316         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45317         work on AIX, IRIX, HP-UX, OSF/1.
45318         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45319         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45320         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45321         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45322         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45323         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45324
45325 2007-03-29  Bruno Haible  <bruno@clisp.org>
45326
45327         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45328
45329 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45330
45331         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45332         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45333
45334 2007-03-29  Eric Blake  <ebb9@byu.net>
45335
45336         * lib/acl-internal.h: Remove redundant include.
45337         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45338         Cygwin when a file is locked.
45339
45340 2007-03-29  Bruno Haible  <bruno@clisp.org>
45341
45342         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45343         file.
45344         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45345
45346 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45347
45348         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45349         try to remove a parent directory if the child couldn't be removed
45350         (except for the first rmdir, which could fail because the child
45351         doesn't exist).  Problem reported by Jeff Blaine in
45352         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45353
45354 2007-03-28  Bruno Haible  <bruno@clisp.org>
45355
45356         * lib/striconveh.c (utf8conv_carefully): New function.
45357         (mem_cd_iconveh_internal): Invoke it.
45358
45359 2007-03-28  Bruno Haible  <bruno@clisp.org>
45360
45361         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45362         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45363         input.
45364         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45365         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45366         unistr/u8-uctomb.
45367
45368 2007-03-28  Bruno Haible  <bruno@clisp.org>
45369
45370         * modules/unistr/u8-mbtoucr: New file.
45371         * lib/unistr/u8-mbtoucr.c: New file.
45372         * modules/unistr/u16-mbtoucr: New file.
45373         * lib/unistr/u16-mbtoucr.c: New file.
45374         * modules/unistr/u16-mbtoucr: New file.
45375         * lib/unistr/u16-mbtoucr.c: New file.
45376         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45377
45378 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45379             Bruno Haible  <bruno@clisp.org>
45380
45381         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
45382         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
45383         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
45384
45385         * m4/stdio_h.m4: Add stubs for vasprintf too.
45386
45387         * modules/stdio: Support vasprintf in sed command.
45388
45389         * modules/vasprintf: Depend on stdio for prototypes.  Remove
45390         vasprintf.h.  Add stdio module indicator.
45391
45392         * lib/stdio_.h: Declare asprintf and vasprintf, based on
45393         vasprintf.h.
45394
45395         * lib/vasprintf.h: File removed.
45396
45397         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
45398         * lib/vasprintf.c: Ditto.
45399         * lib/xvasprintf.c: Ditto.
45400         * tests/test-vasprintf-posix.c: Ditto.
45401         * tests/test-vasprintf.c: Ditto.
45402
45403 2007-03-27  Bruno Haible  <bruno@clisp.org>
45404
45405         Make vasnprintf multithread-safe.
45406         * lib/vasnprintf.c (decimal_point_char): New function.
45407         (VASNPRINTF): Use it.
45408         Suggested by Simon Josefsson.
45409
45410 2007-03-27  Eric Blake  <ebb9@byu.net>
45411
45412         Support sub-second birthtime on cygwin.
45413         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
45414         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
45415         (get_stat_birthtime): Also work with st_birthtim.
45416
45417 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
45418
45419         * lib/stat-time.h (USE_BIRTHTIME): Remove.
45420         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
45421         (get_stat_birthtime_ns): Do not try to use "spare" fields.
45422         (get_stat_birthtime_ns): Simplify compile-time tests.
45423         (get_stat_birthtime): Change the API to look like
45424         get_stat_mtime etc., except return a negative tv_nsec on error.
45425         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
45426         Don't check for "spare" fields.
45427         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
45428         or for struct stat.st_birthtime, as these tests aren't used.
45429         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
45430
45431 2007-03-27  Bruno Haible  <bruno@clisp.org>
45432
45433         * lib/stat-time.h: Include <sys/stat.h>.
45434
45435 2007-03-27  James Youngman  <jay@gnu.org>
45436
45437         * lib/stat-time.h (get_stat_birthtime): New function for
45438           retrieving st_birthtime as provided by UFS2 (hence *BSD).
45439         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
45440           and its variants.
45441         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
45442         * modules/stat-time-test: New file.
45443         * tests/test-stat-time.c: New test, devised by Bruno Haible.
45444
45445 2007-03-26  Bruno Haible  <bruno@clisp.org>
45446
45447         Better support of signalling NaNs.
45448         * lib/atanl.c: Include isnanl.h.
45449         (atanl): Perform test for NaN at the beginning of the function and
45450         through a call to isnanl.
45451         * lib/cosl.c: Include isnanl.h.
45452         (cosl): Perform test for NaN at the beginning of the function and
45453         through a call to isnanl.
45454         * lib/ldexpl.c: Include isnanl.h.
45455         (ldexpl): Perform test for NaN through a call to isnanl.
45456         * lib/logl.c: Include isnanl.h.
45457         (logl): Perform test for NaN at the beginning of the function and
45458         through a call to isnanl.
45459         * lib/sinl.c: Include isnanl.h.
45460         (sinl): Perform test for NaN at the beginning of the function and
45461         through a call to isnanl.
45462         * lib/sqrtl.c: Include isnanl.h.
45463         (sqrtl): Perform test for NaN at the beginning of the function and
45464         through a call to isnanl.
45465         * lib/tanl.c: Include isnanl.h.
45466         (tanl): Perform test for NaN at the beginning of the function and
45467         through a call to isnanl.
45468         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
45469         * modules/mathl (Depends-on): Add isnanl.
45470
45471 2007-03-26  Eric Blake  <ebb9@byu.net>
45472
45473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
45474         regression in logic sense of previous patch.
45475
45476 2007-03-26  Bruno Haible  <bruno@clisp.org>
45477
45478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
45479         unportable shell command "if ! ...".
45480         Reported by Ralf Wildenhues.
45481
45482 2007-03-25  Bruno Haible  <bruno@clisp.org>
45483
45484         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
45485         <sysexits.h> file, and only add EX_CONFIG.
45486         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
45487         absolute file name and whether it is sufficient. Substitute also
45488         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
45489         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
45490         ABSOLUTE_SYSEXITS_H into sysexits.h.
45491
45492 2007-03-25  Bruno Haible  <bruno@clisp.org>
45493
45494         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
45495         hints is NULL.
45496
45497 2007-03-25  Bruno Haible  <bruno@clisp.org>
45498
45499         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
45500         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
45501
45502 2007-03-25  Bruno Haible  <bruno@clisp.org>
45503
45504         * lib/vasnprintf.c: Include langinfo.h.
45505         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
45506         multithread-safe.
45507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
45508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
45509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45511         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45512         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45513         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
45515         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45516         Reported by Simon Josefsson.
45517
45518 2007-03-25  Bruno Haible  <bruno@clisp.org>
45519
45520         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
45521         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
45522         * modules/vasnprintf (Depends-on): Add stdint.
45523
45524 2007-03-25  Bruno Haible  <bruno@clisp.org>
45525
45526         * modules/fpieee: New file.
45527         * m4/fpieee.m4: New file.
45528         * modules/isnan-nolibm (Depends-on): Add fpieee.
45529         * modules/isnanl-nolibm (Depends-on): Add fpieee.
45530         * modules/isnanl (Depends-on): Add fpieee.
45531
45532 2007-03-25  Bruno Haible  <bruno@clisp.org>
45533
45534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
45535
45536 2007-03-25  Bruno Haible  <bruno@clisp.org>
45537
45538         Avoid test failures on IRIX 6.5.
45539         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
45540         (main): Use it.
45541         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
45542         macros.
45543         (main): Use them.
45544
45545 2007-03-25  Bruno Haible  <bruno@clisp.org>
45546
45547         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
45548         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
45549         exists but doesn't work.
45550         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
45551         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
45552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
45553         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
45554
45555 2007-03-25  Bruno Haible  <bruno@clisp.org>
45556
45557         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
45558         returns inf. Needed on IRIX 6.5.
45559
45560 2007-03-25  Bruno Haible  <bruno@clisp.org>
45561
45562         * tests/test-frexpl.c: Include isnanl-nolibm.h.
45563         (main): Use isnanl instead of x != x idiom.
45564         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
45565
45566         * tests/test-frexp.c: Include isnan.h.
45567         (main): Use isnan instead of x != x idiom.
45568         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
45569
45570 2007-03-25  Bruno Haible  <bruno@clisp.org>
45571
45572         * tests/test-frexp.c (NaN): New function/macro.
45573         (main): Use it instead of 0.0 / 0.0.
45574         * tests/test-isnan.c (NaN): New function/macro.
45575         (main): Use it instead of 0.0 / 0.0.
45576         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
45577         (test_function): Use it instead of 0.0 / 0.0.
45578         * tests/test-vasprintf-posix.c (NaN): New function/macro.
45579         (test_function): Use it instead of 0.0 / 0.0.
45580         * tests/test-snprintf-posix.h (NaN): New function/macro.
45581         (test_function): Use it instead of 0.0 / 0.0.
45582         * tests/test-sprintf-posix.h (NaN): New function/macro.
45583         (test_function): Use it instead of 0.0 / 0.0.
45584         * tests/test-fprintf-posix.h (NaN): New function/macro.
45585         (test_function): Use it instead of 0.0 / 0.0.
45586         * tests/test-printf-posix.h (NaN): New function/macro.
45587         (test_function): Use it instead of 0.0 / 0.0.
45588
45589         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
45590
45591 2007-03-25  Bruno Haible  <bruno@clisp.org>
45592
45593         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
45594
45595 2007-03-25  Bruno Haible  <bruno@clisp.org>
45596
45597         * lib/regexec.c (merge_state_with_log): Make static.
45598
45599 2007-03-25  Bruno Haible  <bruno@clisp.org>
45600
45601         * lib/trigl.c (kernel_rem_pio2): Make static.
45602
45603 2007-03-25  Bruno Haible  <bruno@clisp.org>
45604
45605         * lib/sincosl.c (sincosl_table): Make static.
45606
45607 2007-03-25  Bruno Haible  <bruno@clisp.org>
45608
45609         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
45610         if the compiler does not support C99.
45611
45612 2007-03-25  Bruno Haible  <bruno@clisp.org>
45613
45614         * modules/time (Makefile.am): Ensure all rule action lines start with a
45615         tab.
45616
45617 2007-03-24  Bruno Haible  <bruno@clisp.org>
45618
45619         * modules/tsearch-tests: New file.
45620         * tests/test-tsearch.sh: New file.
45621         * tests/test-tsearch.c: New file, mostly copied from glibc.
45622
45623         * modules/search-tests: New file.
45624         * tests/test-search.c: New file.
45625
45626         * modules/search: New file.
45627         * lib/search_.h: New file, incorporating lib/tsearch.h.
45628         * m4/search_h.m4: New file.
45629         * lib/tsearch.h: Remove file.
45630         * lib/tsearch.c: Include search.h instead of tsearch.h.
45631         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
45632         HAVE_TSEARCH.
45633         * modules/tsearch (Files): Remove lib/tsearch.h.
45634         (Depends-on): Add search.
45635         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
45636         (Include): Change tsearch.h into search.h.
45637
45638 2007-03-24  Bruno Haible  <bruno@clisp.org>
45639
45640         * modules/fpucw: New file.
45641         * lib/fpucw.h: New file.
45642         * lib/frexp.c: Include fpucw.h.
45643         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45644         (FUNC): Use them.
45645         * lib/printf-frexp.c: Include fpucw.h.
45646         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45647         (FUNC): Use them.
45648         * lib/vasnprintf.c: Include fpucw.h.
45649         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
45650         'long double' calculations.
45651         * tests/test-frexpl.c: Include fpucw.h.
45652         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45653         * tests/test-printf-frexpl.c: Include fpucw.h.
45654         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45655         * modules/frexpl (Depends-on): Add fpucw.
45656         * modules/printf-frexpl (Depends-on): Likewise.
45657         * modules/fprintf-posix (Depends-on): Likewise.
45658         * modules/snprintf-posix (Depends-on): Likewise.
45659         * modules/sprintf-posix (Depends-on): Likewise.
45660         * modules/vasnprintf-posix (Depends-on): Likewise.
45661         * modules/vasprintf-posix (Depends-on): Likewise.
45662         * modules/vfprintf-posix (Depends-on): Likewise.
45663         * modules/vsnprintf-posix (Depends-on): Likewise.
45664         * modules/vsprintf-posix (Depends-on): Likewise.
45665         * modules/frexpl-tests (Depends-on): Likewise.
45666         * modules/printf-frexpl-tests (Depends-on): Likewise.
45667
45668 2007-03-24  Bruno Haible  <bruno@clisp.org>
45669
45670         * lib/float+.h: New file.
45671         * lib/isnan.c: Include float+.h.
45672         (SIZE): New macro.
45673         (FUNC): Compare only SIZE bytes of the value.
45674         * lib/vasnprintf.c: Include float+.h.
45675         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
45676         SIZEOF_LDBL or SIZEOF_DBL bytes.
45677         * modules/isnan-nolibm (Files): Add lib/float+.h.
45678         * modules/isnanl-nolibm (Files): Add lib/float+.h.
45679         * modules/isnanl (Files): Add lib/float+.h.
45680         * modules/vasnprintf (Files): Add lib/float+.h.
45681
45682 2007-03-24  Bruno Haible  <bruno@clisp.org>
45683
45684         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
45685         include isnanl-nolibm.h.
45686
45687 2007-03-24  Bruno Haible  <bruno@clisp.org>
45688
45689         * tests/test-read-file.c (main): Don't produce spurious output for
45690         expected situations. Make the test fail if it encountered unexpected
45691         results.
45692
45693 2007-03-24  Bruno Haible  <bruno@clisp.org>
45694
45695         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
45696         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
45697
45698 2007-03-24  Bruno Haible  <bruno@clisp.org>
45699
45700         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
45701
45702 2007-03-24  Bruno Haible  <bruno@clisp.org>
45703
45704         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
45705         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
45706
45707         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
45708         * modules/utf8-ucs4: Turn into a symbolic link to module
45709         unistr/u8-mbtouc.
45710
45711         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
45712         utf8-ucs4-unsafe.
45713         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
45714         unistr/u8-mbtouc-unsafe.
45715
45716         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
45717         * modules/utf16-ucs4: Turn into a symbolic link to module
45718         unistr/u16-mbtouc.
45719
45720         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
45721         utf16-ucs4-unsafe.
45722         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
45723         unistr/u16-mbtouc-unsafe.
45724
45725         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
45726         * modules/ucs4-utf8: Turn into a symbolic link to module
45727         unistr/u8-ubtomb.
45728
45729         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
45730         * modules/ucs4-utf16: Turn into a symbolic link to module
45731         unistr/u16-ubtomb.
45732
45733 2007-03-24  Bruno Haible  <bruno@clisp.org>
45734
45735         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
45736         Enable the function only if HAVE_INLINE.
45737         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
45738         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45739         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
45740         Enable the function only if HAVE_INLINE.
45741         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
45742         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45743         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
45744         Enable the function only if HAVE_INLINE.
45745         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
45746         Enable the function only if HAVE_INLINE.
45747         * modules/utf8-ucs4: Update.
45748         * modules/utf8-ucs4-unsafe: Update.
45749         * modules/utf16-ucs4: Update.
45750         * modules/utf16-ucs4-unsafe: Update.
45751         * modules/ucs4-utf8: Update.
45752         * modules/ucs4-utf16: Update.
45753
45754 2007-03-24  Bruno Haible  <bruno@clisp.org>
45755
45756         * lib/utf8-ucs4.h: Remove file.
45757         * lib/utf8-ucs4-unsafe.h: Remove file.
45758         * lib/utf16-ucs4.h: Remove file.
45759         * lib/utf16-ucs4-unsafe.h: Remove file.
45760         * lib/ucs4-utf8.h: Remove file.
45761         * lib/ucs4-utf16.h: Remove file.
45762         * lib/unistr.h: Include their previous contents.
45763         * m4/utf-ucs4.m4: Remove file.
45764         * m4/ucs4-utf.m4: Remove file.
45765         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
45766         (Depends-on): Add unistr/base.
45767         (configure.ac): Remove gl_UTF_UCS4.
45768         (Makefile.am): Update.
45769         (Include): Change to unistr.h.
45770         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
45771         (Depends-on): Add unistr/base.
45772         (configure.ac): Remove gl_UTF_UCS4.
45773         (Makefile.am): Update.
45774         (Include): Change to unistr.h.
45775         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
45776         (Depends-on): Add unistr/base.
45777         (configure.ac): Remove gl_UTF_UCS4.
45778         (Makefile.am): Update.
45779         (Include): Change to unistr.h.
45780         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
45781         (Depends-on): Add unistr/base.
45782         (configure.ac): Remove gl_UTF_UCS4.
45783         (Makefile.am): Update.
45784         (Include): Change to unistr.h.
45785         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
45786         (Depends-on): Add unistr/base.
45787         (configure.ac): Remove gl_UCS4_UTF.
45788         (Makefile.am): Update.
45789         (Include): Change to unistr.h.
45790         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
45791         (Depends-on): Add unistr/base.
45792         (configure.ac): Remove gl_UCS4_UTF.
45793         (Makefile.am): Update.
45794         (Include): Change to unistr.h.
45795         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
45796         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
45797         utf8-ucs4-unsafe.h.
45798         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
45799         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
45800         utf16-ucs4-unsafe.h.
45801         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
45802         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
45803         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
45804         * lib/unistr/u8-strchr.c: Likewise.
45805         * lib/unistr/u8-strrchr.c: Likewise.
45806         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
45807         * lib/unistr/u16-strchr.c: Likewise.
45808         * lib/unistr/u16-strrchr.c: Likewise.
45809         * lib/striconveh.c: Update.
45810         * lib/linebreak.c: Update.
45811
45812 2007-03-24  Bruno Haible  <bruno@clisp.org>
45813
45814         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
45815         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
45816
45817 2007-03-22  Bruno Haible  <bruno@clisp.org>
45818
45819         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
45820
45821 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
45822
45823         * MODULES.html.sh (File system functions): New module write-any-file.
45824         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
45825         * m4/write-any-file.m4: New files.
45826
45827 2007-03-23  Eric Blake  <ebb9@byu.net>
45828
45829         * gnulib-tool: Rearrange space-tab sequences, since some editors
45830         like to eat them.
45831
45832 2007-03-23  Eric Blake  <ebb9@byu.net>
45833
45834         * lib/version-etc.c (version_etc_va): Update license wording to
45835         be more concise.  Recommended by Richard Stallman.
45836
45837 2007-03-22  Bruno Haible  <bruno@clisp.org>
45838
45839         * lib/poll.c (MSG_PEEK): New fallback definition.
45840
45841 2007-03-22  Bruno Haible  <bruno@clisp.org>
45842
45843         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
45844         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
45845         (main): Update.
45846         Fixes a compilation error on BeOS.
45847
45848 2007-03-22  Bruno Haible  <bruno@clisp.org>
45849
45850         * modules/frexpl-tests: New file.
45851         * tests/test-frexpl.c: New file.
45852
45853         * modules/frexpl: New file.
45854         * m4/frexpl.m4: New file.
45855         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
45856         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
45857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
45858         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
45859         (Depends-on): Add frexpl. Remove isnanl-nolibm.
45860         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
45861
45862 2007-03-22  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/frexpl.c: Share code with lib/frexp.c.
45865         * modules/mathl (Files): Add lib/frexp.c.
45866         (Depends-on): Add isnanl-nolibm.
45867
45868 2007-03-22  Bruno Haible  <bruno@clisp.org>
45869
45870         * modules/printf-frexp (Files): Add m4/frexp.m4.
45871         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
45872         only if the found frexp function actually works.
45873
45874 2007-03-22  Bruno Haible  <bruno@clisp.org>
45875
45876         * lib/frexp.c: Remove older implementation that uses divisions.
45877
45878 2007-03-21  Bruno Haible  <bruno@clisp.org>
45879
45880         * modules/frexp-tests: New file.
45881         * tests/test-frexp.c: New file.
45882
45883         * modules/frexp: New file.
45884         * lib/frexp.c: New file.
45885         * m4/frexp.m4: New file.
45886         * lib/math_.h (frexp): New declaration.
45887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
45888         REPLACE_FREXP.
45889         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
45890
45891 2007-03-21  Bruno Haible  <bruno@clisp.org>
45892
45893         * modules/isnanl-tests: New file.
45894         * tests/test-isnanl.c: New file.
45895
45896         * modules/isnanl: New file.
45897         * lib/isnanl.h: New file.
45898         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
45899         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
45900         gl_FUNC_ISNANL_WORKS.
45901         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
45902         New macros.
45903
45904 2007-03-21  Bruno Haible  <bruno@clisp.org>
45905
45906         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
45907         lib/isnanl.h.
45908         (Include): Update.
45909         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
45910         * lib/vasnprintf.c: Update.
45911         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
45912         tests/test-isnanl.h, remove tests/test-isnanl.c.
45913         (Makefile.am): Update.
45914         * tests/test-isnanl-nolibm.c: New file.
45915         * tests/test-isnanl.h: New file.
45916         * tests/test-isnanl.c: Remove file.
45917
45918 2007-03-21  Jim Meyering  <jim@meyering.net>
45919
45920         When trying to open ".", treat ESTALE like EACCES.
45921         * lib/savewd.c (savewd_save): Resort to forking not just upon
45922         failure with EACCES, but also when errno is ESTALE.
45923
45924 2007-03-20  Bruno Haible  <bruno@clisp.org>
45925
45926         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
45927         Needed on AIX 5.1. Reported by Matthew Woehlke.
45928
45929 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45930
45931         Suggestions by Bruno Haible:
45932         * lib/acl-internal.h: Include "gettext.h" rather than rolling
45933         our own.
45934         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
45935         * modules/acl (Depends-on): Add gettext.
45936
45937 2007-03-19  Bruno Haible  <bruno@clisp.org>
45938
45939         * modules/iconvme: Remove file.
45940         * lib/iconvme.h: Remove file.
45941         * lib/iconvme.c: Remove file.
45942         * m4/iconvme.m4: Remove file.
45943
45944 2007-03-19  Bruno Haible  <bruno@clisp.org>
45945
45946         * doc/relocatable-maint.texi: Break long shell script line.
45947         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
45948
45949 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45950
45951         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
45952         handle file_has_acl.
45953         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
45954         * lib/acl.c: Move header inclusions and related macro defns into
45955         lib/acl-internal.h.
45956         (S_ISLNK): Remove defn, since that's now done for us.
45957         (file_has_acl): Move to lib/file-has-acl.c.
45958         Call acl_trivial if available.  This is the crucial part of the fix.
45959         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
45960         shared within the library.  Rewrite a bit, partly to make it compatible
45961         with the GNU coding style.
45962         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
45963         Remove unnecessary double-quotes.
45964         Don't test for acl_to_text; the build will catch that.
45965         Replace acl_entries if it doesn't exist and it is needed.
45966         Check for -lsec and acl_trivial (as used on Solaris 10).
45967         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
45968         lib/file-has-acl.c.
45969         (Depends-on): Add sys_stat, for S_ISLNK.
45970
45971 2007-03-19  Ben Pfaff  <blp@gnu.org>
45972
45973         * doc/gnulib.texi: Fix typos.
45974         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
45975
45976 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45977
45978         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
45979         If size is zero here, buf must be zero.
45980
45981 2007-03-19  Simon Josefsson  <simon@josefsson.org>
45982
45983         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
45984         <bruno@clisp.org>.
45985
45986 2007-03-18  Bruno Haible  <bruno@clisp.org>
45987
45988         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
45989         Suggested by Eric Blake.
45990
45991 2007-03-18  Ben Pfaff  <blp@gnu.org>
45992
45993         * doc/relocatable.texi: Recommend using as prefix a directory
45994         that does not exist and will never be created.  Based on
45995         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
45996         and others.
45997
45998 2007-03-17  Bruno Haible  <bruno@clisp.org>
45999
46000         * lib/fchownat.c: Include lchown.h.
46001
46002 2007-03-17  Bruno Haible  <bruno@clisp.org>
46003
46004         Fix endless loop when the given allocated size was > INT_MAX.
46005         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46006         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46007         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46008         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46009         * lib/sprintf.c (sprintf): Likewise.
46010
46011 2007-03-17  Bruno Haible  <bruno@clisp.org>
46012
46013         * tests/test-argp-2.sh (func_compare): Output a context diff.
46014
46015 2007-03-17  Bruno Haible  <bruno@clisp.org>
46016
46017         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46018         locale's decimal-point character.
46019
46020 2007-03-17  Bruno Haible  <bruno@clisp.org>
46021
46022         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46023         before comparing it. Needed because on some platforms (e.g. x86) a
46024         'long double' occupies less bytes than sizeof (long double).
46025
46026 2007-03-17  Bruno Haible  <bruno@clisp.org>
46027
46028         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46029         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46030         * tests/test-getaddrinfo.c (simple): Likewise.
46031         * tests/test-read-file.c (main): Likewise.
46032
46033 2007-03-17  Bruno Haible  <bruno@clisp.org>
46034
46035         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46036
46037 2007-03-17  Bruno Haible  <bruno@clisp.org>
46038
46039         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46040         unused variable.
46041
46042 2007-03-17  Bruno Haible  <bruno@clisp.org>
46043
46044         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46045         * tests/test-c-strncasecmp.c: Likewise.
46046
46047 2007-03-17  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/stdlib (Depends-on): Add unistd.
46050         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
46051         Needed for MacOS X 10.3.
46052
46053 2007-03-17  Bruno Haible  <bruno@clisp.org>
46054
46055         * lib/unistr/u-strdup.h: Include <stdlib.h>.
46056
46057 2007-03-17  Bruno Haible  <bruno@clisp.org>
46058
46059         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
46060
46061 2007-03-17  Bruno Haible  <bruno@clisp.org>
46062
46063         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
46064         to reflect files copied from gnulib (with or without modifications).
46065         Suggested by Jim Meyering.
46066
46067 2007-03-17  Eric Blake  <ebb9@byu.net>
46068
46069         * NEWS: Document stdlib change from 2007-02-18.
46070
46071 2007-03-17  Jim Meyering  <jim@meyering.net>
46072
46073         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46074         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46075         someone uses a name containing shell meta-characters.
46076         Reported by Alfred M. Szmidt.
46077
46078         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46079
46080 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46081
46082         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46083         and copy gettext configuration files only if configure.ac contains
46084         a use of AM_GNU_GETTEXT_VERSION.
46085
46086 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46087
46088         * build-aux/bootstrap (gnulib_name): New variable.
46089         (gnulib_tool_options): Use it.
46090
46091 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46092
46093         * tests/test-des.c: Use new namespace.
46094
46095 2007-03-15  Bruno Haible  <bruno@clisp.org>
46096
46097         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46098         Reported by James Youngman <jay@gnu.org>.
46099
46100 2007-03-15  Bruno Haible  <bruno@clisp.org>
46101
46102         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46103         declared prototype. Needed with cc on OSF/1 5.1.
46104
46105 2007-03-15  Bruno Haible  <bruno@clisp.org>
46106
46107         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46108         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46109         (struct gl_list_implementation): Add dispose_fn argument to the
46110         'create_empty', 'create' methods.
46111         (struct gl_list_impl_base): Add field 'dispose_fn'.
46112         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46113         argument.
46114         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46115         dispose_fn argument.
46116         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46117         dispose_fn on the dropped values.
46118         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46119         dispose_fn argument.
46120         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46121         dropped values.
46122         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46123         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46124         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46125         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46126         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46127         argument.
46128         (gl_tree_list_free): Call dispose_fn on the dropped values.
46129         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46130         the dropped values.
46131         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46132         Add dispose_fn argument.
46133         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46134         Call dispose_fn on the dropped values.
46135         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46136         Add dispose_fn argument.
46137         (gl_sublist_create): Initialize the 'dispose_fn' field.
46138         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46139         * tests/test-array_list.c (main): Update.
46140         * tests/test-carray_list.c (main): Update.
46141         * tests/test-avltree_list.c (main): Update.
46142         * tests/test-rbtree_list.c (main): Update.
46143         * tests/test-avltreehash_list.c (main): Update.
46144         * tests/test-rbtreehash_list.c (main): Update.
46145         * tests/test-linked_list.c (main): Update.
46146         * tests/test-linkedhash_list.c (main): Update.
46147         * tests/test-array_oset.c (main): Update.
46148
46149 2007-03-15  Bruno Haible  <bruno@clisp.org>
46150
46151         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46152         (gl_oset_create_empty): Add dispose_fn argument.
46153         (struct gl_oset_implementation): Add dispose_fn argument to
46154         'create_empty' method.
46155         (struct gl_oset_impl_base): Add dispose_fn field.
46156         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46157         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46158         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46159         values.
46160         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46161         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46162         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46163         dropped value.
46164         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46165         dropped value.
46166         * tests/test-array_oset.c (main): Update.
46167         * tests/test-avltree_oset.c (main): Update.
46168         * tests/test-rbtree_oset.c (main): Update.
46169         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46170
46171 2007-03-13  Bruno Haible  <bruno@clisp.org>
46172
46173         * tests/test-stdbool.c (i): Update after last patch.
46174
46175 2007-03-12  Bruno Haible  <bruno@clisp.org>
46176
46177         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46178         the iswprint macro. Needed on Solaris 2.5.1.
46179
46180 2007-03-12  Bruno Haible  <bruno@clisp.org>
46181
46182         * tests/test-printf-frexp.c (main): Declare x as volatile.
46183
46184 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46185
46186         * doc/gnulib.texi (Build robot for gnulib): New section.
46187
46188 2007-03-12  Jim Meyering  <jim@meyering.net>
46189
46190         * build-aux/bootstrap: New file.
46191         * build-aux/bootstrap.conf: New file, from coreutils.
46192
46193 2007-03-11  Bruno Haible  <bruno@clisp.org>
46194
46195         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46196
46197 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46198
46199         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46200         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46201         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46202
46203 2007-03-11  Bruno Haible  <bruno@clisp.org>
46204
46205         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46206         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46207
46208 2007-03-11  Bruno Haible  <bruno@clisp.org>
46209
46210         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46211         formula. Needed for SunPRO C 5.0.
46212
46213 2007-03-11  Bruno Haible  <bruno@clisp.org>
46214
46215         * modules/long-options (Depends-on): Add getopt.
46216
46217 2007-03-11  Bruno Haible  <bruno@clisp.org>
46218
46219         * modules/modechange (Depends-on): Add stdbool.
46220
46221 2007-03-11  Bruno Haible  <bruno@clisp.org>
46222
46223         * modules/i-ring (Depends-on): Add stdbool.
46224
46225 2007-03-11  Bruno Haible  <bruno@clisp.org>
46226
46227         * modules/gc-des (Depends-on): Add stdbool.
46228
46229 2007-03-11  Bruno Haible  <bruno@clisp.org>
46230
46231         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46232
46233 2007-03-11  Bruno Haible  <bruno@clisp.org>
46234
46235         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46236
46237 2007-03-11  Bruno Haible  <bruno@clisp.org>
46238
46239         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46240
46241 2007-03-11  Bruno Haible  <bruno@clisp.org>
46242
46243         * lib/vasnprintf.c (sprintf): Undefine.
46244
46245 2007-03-11  Bruno Haible  <bruno@clisp.org>
46246
46247         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46248         initializers in SunPRO C and Compaq C compilers.
46249
46250 2007-03-11  Bruno Haible  <bruno@clisp.org>
46251
46252         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46253         decrementing code ANSI C compliant.
46254
46255 2007-03-11  Bruno Haible  <bruno@clisp.org>
46256
46257         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46258         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46259
46260 2007-03-11  Bruno Haible  <bruno@clisp.org>
46261
46262         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46263         <stdbool.h> substitute doesn't pass.
46264
46265 2007-03-11  Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46268
46269 2007-03-11  Bruno Haible  <bruno@clisp.org>
46270
46271         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46272         script, for submission to autobuild.josefsson.org.
46273
46274 2007-03-10  Bruno Haible  <bruno@clisp.org>
46275
46276         * modules/canonicalize-lgpl-tests: New file.
46277         * tests/test-canonicalize-lgpl.sh: New file.
46278         * tests/test-canonicalize-lgpl.c: New file.
46279
46280         * modules/c-strcase-tests: New file.
46281         * tests/test-c-strcase.sh: New file.
46282         * tests/test-c-strcasecmp.c: New file.
46283         * tests/test-c-strncasecmp.c: New file.
46284
46285         * modules/atexit-tests: New file.
46286         * tests/test-atexit.sh: New file.
46287         * tests/test-atexit.c: New file.
46288
46289 2007-03-10  Bruno Haible  <bruno@clisp.org>
46290
46291         * tests/test-binary-io.sh: Use temporary filenames that are not so
46292         likely to clash with those of other tests (in a parallel make).
46293         * tests/test-binary-io.c: Likewise.
46294
46295 2007-03-10  Bruno Haible  <bruno@clisp.org>
46296
46297         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46298         fallback; use #error instead.
46299         Suggested by Simon Josefsson.
46300
46301 2007-03-10  Bruno Haible  <bruno@clisp.org>
46302
46303         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46304         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46305         first and the last.
46306
46307 2007-03-10  Bruno Haible  <bruno@clisp.org>
46308
46309         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46310
46311 2007-03-10  Bruno Haible  <bruno@clisp.org>
46312
46313         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46314         "make distcheck".
46315         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46316         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46317         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46318
46319 2007-03-10  Bruno Haible  <bruno@clisp.org>
46320
46321         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46322         variable.
46323         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46324         variable.
46325
46326 2007-03-09  Eric Blake  <ebb9@byu.net>
46327         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46328
46329         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46330         types are not being provided by gnulib.
46331         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46332         types are supported.
46333
46334 2007-03-10  Bruno Haible  <bruno@clisp.org>
46335
46336         * lib/stdio_.h (__attribute__): New macro.
46337         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46338         vsprintf): Specify __attribute__ __format__ for GCC.
46339         Suggested by Eric Blake.
46340
46341 2007-03-09  Bruno Haible  <bruno@clisp.org>
46342
46343         * modules/printf-posix-tests: New file.
46344         * tests/test-printf-posix.sh: New file.
46345         * tests/test-printf-posix.c: New file.
46346
46347         * modules/printf-posix: New file.
46348         * lib/printf.c: New file.
46349         * m4/printf-posix-rpl.m4: New file.
46350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46351         REPLACE_PRINTF.
46352         * lib/stdio_.h (printf): New declaration.
46353         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46354         ____strfmon____): New macros.
46355         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46356         REPLACE_PRINTF.
46357
46358 2007-03-09  Bruno Haible  <bruno@clisp.org>
46359
46360         * tests/test-vasnprintf-posix2.sh: New file.
46361         * tests/test-vasnprintf-posix2.c: New file.
46362         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46363         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46364         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46365
46366         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46367         a locale dependent decimal point, rather than always '.'.
46368
46369 2007-03-09  Eric Blake  <ebb9@byu.net>
46370
46371         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46372         spite of platforms like Tandem/NSK that define it to -1.
46373
46374 2007-03-08  Bruno Haible  <bruno@clisp.org>
46375
46376         * modules/vprintf-posix-tests: New file.
46377         * tests/test-vprintf-posix.sh: New file.
46378         * tests/test-vprintf-posix.c: New file.
46379         * tests/test-printf-posix.h: New file.
46380
46381         * modules/vprintf-posix: New file.
46382         * lib/vprintf.c: New file.
46383         * m4/vprintf-posix.m4: New file.
46384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
46385         REPLACE_VPRINTF.
46386         * lib/stdio_.h (vprintf): New declaration.
46387         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
46388         REPLACE_VPRINTF.
46389
46390 2007-03-08  Bruno Haible  <bruno@clisp.org>
46391
46392         * modules/fprintf-posix-tests: New file.
46393         * tests/test-fprintf-posix.sh: New file.
46394         * tests/test-fprintf-posix.c: New file.
46395
46396         * modules/fprintf-posix: New file.
46397         * lib/fprintf.c: New file.
46398         * m4/fprintf-posix.m4: New file.
46399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
46400         REPLACE_FPRINTF.
46401         * lib/stdio_.h (fprintf): New declaration.
46402         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
46403         REPLACE_FPRINTF.
46404
46405 2007-03-08  Bruno Haible  <bruno@clisp.org>
46406
46407         * modules/vfprintf-posix-tests: New file.
46408         * tests/test-vfprintf-posix.sh: New file.
46409         * tests/test-vfprintf-posix.c: New file.
46410         * tests/test-fprintf-posix.h: New file.
46411         * tests/test-fprintf-posix.out: New file.
46412
46413         * modules/vfprintf-posix: New file.
46414         * lib/vfprintf.c: New file.
46415         * m4/vfprintf-posix.m4: New file.
46416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
46417         REPLACE_VFPRINTF.
46418         * lib/stdio_.h (vfprintf): New declaration.
46419         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
46420         REPLACE_VFPRINTF.
46421
46422 2007-03-08  Bruno Haible  <bruno@clisp.org>
46423
46424         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
46425
46426 2007-03-08  Bruno Haible  <bruno@clisp.org>
46427
46428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
46429         instead of 'expr' invocations.
46430         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46431         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46432         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46435         Suggested by Paul Eggert.
46436
46437 2007-03-08  Bruno Haible  <bruno@clisp.org>
46438
46439         * modules/fseterr-tests: New file.
46440         * tests/test-fseterr.c: New file.
46441
46442         * modules/fseterr: New file.
46443         * lib/fseterr.h: New file.
46444         * lib/fseterr.c: New file.
46445
46446 2007-03-08  Bruno Haible  <bruno@clisp.org>
46447
46448         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
46449         * lib/getopt_.h: Likewise.
46450         * lib/mbswidth.h: Likewise.
46451         * lib/setenv.h: Likewise.
46452         * lib/vasnprintf.h: Likewise.
46453         * lib/vasprintf.h: Likewise.
46454         * lib/verror.h: Likewise.
46455         * lib/xsetenv.h: Likewise.
46456         * lib/xvasprintf.h: Likewise.
46457
46458 2007-03-08  Jim Meyering  <jim@meyering.net>
46459
46460         * users.txt: Add parted.
46461
46462         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
46463
46464 2007-03-07  Bruno Haible  <bruno@clisp.org>
46465
46466         * m4/printf.m4: Make the shell script snippets copy&pastable.
46467
46468 2007-03-02  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/netinet_in_.h: New file.
46471         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
46472         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
46473         * modules/netinet_in (Files): Add lib/netinet_in_.h.
46474         (Depends-on): Add absolute-header.
46475         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
46476         into netinet/in.h.
46477
46478 2007-03-03  Bruno Haible  <bruno@clisp.org>
46479
46480         * lib/sys_select_.h: New file.
46481         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
46482         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
46483         * modules/sys_select (Files): Add lib/sys_select_.h.
46484         (Depends-on): Add absolute-header.
46485         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
46486         into sys/select.h.
46487
46488 2007-03-02  Bruno Haible  <bruno@clisp.org>
46489
46490         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
46491         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
46492         values.
46493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
46494         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
46495         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
46496         * modules/sys_socket (Depends-on): Add absolute-header.
46497         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
46498         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
46499         (Include): Remove requirement of inclusion of <sys/types.h>.
46500
46501 2007-03-02  Bruno Haible  <bruno@clisp.org>
46502
46503         * lib/byteswap_.h (bswap_32): Fix formula.
46504
46505 2007-03-06  Bruno Haible  <bruno@clisp.org>
46506
46507         * modules/sprintf-posix-tests: New file.
46508         * tests/test-sprintf-posix.c: New file.
46509
46510         * modules/sprintf-posix: New file.
46511         * lib/sprintf.c: New file.
46512         * m4/sprintf-posix.m4: New file.
46513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
46514         REPLACE_SPRINTF.
46515         * lib/stdio_.h (sprintf): New declaration.
46516         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
46517         REPLACE_SPRINTF.
46518
46519 2007-03-06  Bruno Haible  <bruno@clisp.org>
46520
46521         * modules/vsprintf-posix-tests: New file.
46522         * tests/test-vsprintf-posix.c: New file.
46523         * tests/test-sprintf-posix.h: New file.
46524
46525         * modules/vsprintf-posix: New file.
46526         * lib/vsprintf.c: New file.
46527         * m4/vsprintf-posix.m4: New file.
46528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
46529         REPLACE_VSPRINTF.
46530         * lib/stdio_.h (vsprintf): New declaration.
46531         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
46532         REPLACE_VSPRINTF.
46533
46534 2007-03-06  Bruno Haible  <bruno@clisp.org>
46535
46536         * modules/vsnprintf (Depend-on): Remove minmax.
46537
46538 2007-03-06  Bruno Haible  <bruno@clisp.org>
46539
46540         * modules/snprintf-posix-tests: New file.
46541         * tests/test-snprintf-posix.c: New file.
46542
46543         * modules/snprintf-posix: New file.
46544         * m4/snprintf-posix.m4: New file.
46545         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
46546         gl_FUNC_SNPRINTF.
46547         (gl_FUNC_SNPRINTF): Invoke it.
46548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
46549         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
46550         is set.
46551         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
46552
46553 2007-03-06  Bruno Haible  <bruno@clisp.org>
46554
46555         * modules/vsnprintf-posix-tests: New file.
46556         * tests/test-vsnprintf-posix.c: New file.
46557         * tests/test-snprintf-posix.h: New file.
46558
46559         * modules/vsnprintf-posix: New file.
46560         * m4/vsnprintf-posix.m4: New file.
46561         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
46562         gl_FUNC_VSNPRINTF.
46563         (gl_FUNC_VSNPRINTF): Invoke it.
46564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
46565         * lib/stdio_.h (vsnprintf): Define as a replacement if
46566         REPLACE_VSNPRINTF is set.
46567         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
46568
46569 2007-03-06  Bruno Haible  <bruno@clisp.org>
46570
46571         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
46572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
46573
46574 2007-03-06  Bruno Haible  <bruno@clisp.org>
46575
46576         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
46577         (asinl): Declare also if HAVE_DECL_ASINL is set.
46578         (atanl): Declare also if HAVE_DECL_ATANL is set.
46579         (ceill): Declare also if HAVE_DECL_CEILL is set.
46580         (cosl): Declare also if HAVE_DECL_COSL is set.
46581         (expl): Declare also if HAVE_DECL_EXPL is set.
46582         (floorl): Declare also if HAVE_DECL_FLOORL is set.
46583         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
46584         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
46585         (logl): Declare also if HAVE_DECL_LOGL is set.
46586         (sinl): Declare also if HAVE_DECL_SINL is set.
46587         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
46588         (tanl): Declare also if HAVE_DECL_TANL is set.
46589         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
46590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
46591         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
46592         declaration of frexpl, ldexpl.
46593         * modules/printf-frexpl (Depends-on): Add math.
46594         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
46595
46596 2007-03-05  Bruno Haible  <bruno@clisp.org>
46597
46598         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
46599         frexpl and ldexpl are declared.
46600         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
46601
46602 2007-03-05  Bruno Haible  <bruno@clisp.org>
46603
46604         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
46605         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
46606
46607 2007-03-05  Bruno Haible  <bruno@clisp.org>
46608
46609         * lib/stdio_.h: Include <stddef.h>.
46610
46611 2007-03-05  Bruno Haible  <bruno@clisp.org>
46612
46613         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
46614
46615 2007-03-05  Bruno Haible  <bruno@clisp.org>
46616
46617         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
46618         NetBSD 4, from Ralf Wildenhues.
46619
46620 2007-03-04  Bruno Haible  <bruno@clisp.org>
46621
46622         * lib/vasprintf.h: Update #if logic for the case when the functions
46623         exist but are overridden.
46624
46625 2007-03-04  Bruno Haible  <bruno@clisp.org>
46626
46627         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
46628         implementations: glibc-2.4 and MacOS X 10.3.
46629         * tests/test-vasnprintf-posix.c (test_function): Test also the case
46630         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
46631         * tests/test-vasprintf-posix.c (test_function): Likewise.
46632
46633 2007-03-04  Bruno Haible  <bruno@clisp.org>
46634
46635         * modules/vasprintf-posix-tests: New file.
46636         * tests/test-vasprintf-posix.c: New file.
46637
46638         * modules/vasprintf-posix: New file.
46639         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
46640         defined.
46641         * m4/vasprintf-posix.m4: New file.
46642         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
46643         gl_FUNC_VASPRINTF.
46644         (gl_FUNC_VASPRINTF): Invoke it.
46645         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
46646         here.
46647         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
46648
46649 2007-03-04  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
46652         REPLACE_GETTIMEOFDAY.
46653         * modules/sys_time (Makefile.am): Likewise.
46654         * m4/sys_time_h.m4: Likewise.
46655         * m4/gettimeofday.m4: Likewise.
46656
46657 2007-03-04  Bruno Haible  <bruno@clisp.org>
46658
46659         * modules/vasnprintf-posix-tests: New file.
46660         * tests/test-vasnprintf-posix.c: New file.
46661
46662         * modules/vasnprintf-posix: New file.
46663         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
46664         printf-frexpl.h.
46665         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
46666         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
46667         REPLACE_VASNPRINTF is defined.
46668         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
46669         gl_FUNC_VASNPRINTF.
46670         (gl_FUNC_VASNPRINTF): Invoke it.
46671         * m4/vasnprintf-posix.m4: New file.
46672         * m4/printf.m4: New file.
46673
46674 2007-03-04  Bruno Haible  <bruno@clisp.org>
46675
46676         Compile progreloc.c only if --enable-relocatable is specified.
46677         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
46678         if --enable-relocatable was specified.
46679         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
46680         lib_SOURCES.
46681
46682 2007-03-04  Jim Meyering  <jim@meyering.net>
46683
46684         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
46685         Use it consistently, rather than enumerating errno constants.
46686
46687 2007-03-04  Bruno Haible  <bruno@clisp.org>
46688
46689         * modules/xvasprintf-tests: New file.
46690         * tests/test-xvasprintf.c: New file.
46691
46692         * modules/vasprintf-tests: New file.
46693         * tests/test-vasprintf.c: New file.
46694
46695         * modules/vasnprintf-tests: New file.
46696         * tests/test-vasnprintf.c: New file.
46697
46698         * modules/vsnprintf-tests: New file.
46699         * tests/test-vsnprintf.c: New file.
46700
46701         * modules/snprintf-tests: New file.
46702         * tests/test-snprintf.c: New file.
46703
46704 2007-03-04  Bruno Haible  <bruno@clisp.org>
46705
46706         Compile relocatable.c only if --enable-relocatable is specified.
46707         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
46708         gl_RELOCATABLE_LIBRARY.
46709         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
46710         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
46711         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
46712         gl_RELOCATABLE_LIBRARY.
46713         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
46714         (Makefile.am): Remove lib_SOURCES.
46715         * modules/relocatable-lib-lgpl (configure.ac): Invoke
46716         gl_RELOCATABLE_LIBRARY.
46717         (Makefile.am): Remove lib_SOURCES.
46718         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
46719         always.
46720         * modules/relocatable-prog-wrapper (configure.ac): Invoke
46721         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
46722
46723 2007-03-04  Bruno Haible  <bruno@clisp.org>
46724
46725         * modules/argmatch-tests: New file.
46726         * tests/test-argmatch.c: New file.
46727
46728         * tests/test-allocsa.c (main): Halve the number of loop runs.
46729
46730         * modules/alloca-opt-tests: New file.
46731         * tests/test-alloca-opt.c: New file.
46732
46733 2007-03-04  Jim Meyering  <jim@meyering.net>
46734
46735         Work around difference between Linux ACLs and Solaris 10 ZFS.
46736         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
46737         for EINVAL.
46738
46739 2007-03-03  Bruno Haible  <bruno@clisp.org>
46740
46741         * modules/relocatable-prog (Depends-on): Add back progreloc's
46742         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
46743
46744 2007-03-03  Bruno Haible  <bruno@clisp.org>
46745
46746         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
46747         * modules/relocatable-lib: New file.
46748
46749 2007-03-03  Bruno Haible  <bruno@clisp.org>
46750
46751         * modules/relocatable-prog: Renamed from modules/relocatable.
46752         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
46753
46754 2007-03-03  Bruno Haible  <bruno@clisp.org>
46755
46756         * modules/relocatable-script (Files): Add doc/relocatable.texi,
46757         m4/relocatable-lib.m4.
46758         (Depends-on): Remove 'relocatable'.
46759         (configure.ac): Add gl_RELOCATABLE_NOP.
46760
46761 2007-03-03  Bruno Haible  <bruno@clisp.org>
46762
46763         * modules/relocatable-prog-wrapper: New file.
46764         * modules/relocatable (Depends-on): Add it. Remove all other
46765         dependencies except progname.
46766         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
46767
46768         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
46769         (gl_FUNC_STRERROR): Nop.
46770         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
46771
46772         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
46773         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
46774
46775         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
46776         (gl_FUNC_READLINK): Update.
46777
46778         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
46779
46780 2007-03-03  Bruno Haible  <bruno@clisp.org>
46781
46782         * lib/xreadlink.c: Include <unistd.h> unconditionally.
46783         * modules/xreadlink (Depends-on): Add unistd.
46784         * modules/xreadlink-with-size (Depends-on): Likewise.
46785
46786 2007-03-03  Bruno Haible  <bruno@clisp.org>
46787
46788         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
46789         extracted from gt_FUNC_SETENV.
46790         (gt_FUNC_SETENV): Remove macro.
46791         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
46792         remove gt_FUNC_SETENV.
46793
46794 2007-03-03  Bruno Haible  <bruno@clisp.org>
46795
46796         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
46797         ENABLE_RELOCATABLE here.
46798         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
46799
46800 2007-03-03  Bruno Haible  <bruno@clisp.org>
46801
46802         * modules/rbtreehash-list-tests (Depends-on): Add progname.
46803         * tests/test-rbtreehash_list.c: Include progname.h.
46804         (main): Call set_program_name.
46805
46806         * modules/rbtree-oset-tests (Depends-on): Add progname.
46807         * tests/test-rbtree_oset.c: Include progname.h.
46808         (main): Call set_program_name.
46809
46810         * modules/rbtree-list-tests (Depends-on): Add progname.
46811         * tests/test-rbtree_list.c: Include progname.h.
46812         (main): Call set_program_name.
46813
46814         * modules/linked-list-tests (Depends-on): Add progname.
46815         * tests/test-linked_list.c: Include progname.h.
46816         (main): Call set_program_name.
46817
46818 2007-03-03  Bruno Haible  <bruno@clisp.org>
46819
46820         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
46821         All uses of __restrict changed to _Restrict_.
46822         * lib/glob_.h (__restrict): Remove macro.
46823
46824 2007-03-02  Bruno Haible  <bruno@clisp.org>
46825
46826         * modules/gettext (configure.ac): Require gettext infrastructure
46827         from version 0.16.1.
46828
46829 2007-03-02  Bruno Haible  <bruno@clisp.org>
46830
46831         * modules/linkedhash-list-tests (Depends-on): Add progname.
46832         * tests/test-linkedhash_list.c: Include progname.h.
46833         (main): Call set_program_name.
46834
46835         * modules/carray-list-tests (Depends-on): Add progname.
46836         * tests/test-carray_list.c: Include progname.h.
46837         (main): Call set_program_name.
46838
46839         * modules/avltreehash-list-tests (Depends-on): Add progname.
46840         * tests/test-avltreehash_list.c: Include progname.h.
46841         (main): Call set_program_name.
46842
46843         * modules/avltree-oset-tests (Depends-on): Add progname.
46844         * tests/test-avltree_oset.c: Include progname.h.
46845         (main): Call set_program_name.
46846
46847         * modules/avltree-list-tests (Depends-on): Add progname.
46848         * tests/test-avltree_list.c: Include progname.h.
46849         (main): Call set_program_name.
46850
46851         * modules/array-oset-tests (Depends-on): Add progname.
46852         * tests/test-array_oset.c: Include progname.h.
46853         (main): Call set_program_name.
46854
46855         * modules/array-list-tests (Depends-on): Add progname.
46856         * tests/test-array_list.c: Include progname.h.
46857         (main): Call set_program_name.
46858
46859         * modules/argp-tests (Depends-on): Add progname.
46860         * tests/test-argp.c: Include argp.h first. Include progname.h.
46861         (main): Call set_program_name.
46862
46863 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
46864
46865         * doc/gnulib-tool.texi (Initial import): Reword description of
46866         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
46867         limited effect even if defined after the first system include.
46868
46869 2007-03-01  Bruno Haible  <bruno@clisp.org>
46870
46871         * build-aux/config.libpath: Update to libtool-1.5.22.
46872         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46873
46874 2007-03-01  Bruno Haible  <bruno@clisp.org>
46875
46876         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
46877         foo_CFLAGS.
46878         Reported by Ralf Wildenhues.
46879
46880 2007-03-01  Bruno Haible  <bruno@clisp.org>
46881
46882         * build-aux/install-reloc: Remove object files left over by some
46883         compilers.
46884         Reported by Ralf Wildenhues.
46885
46886 2007-03-01  Bruno Haible  <bruno@clisp.org>
46887
46888         * build-aux/install-reloc: Break long lines.
46889
46890 2007-03-01  Bruno Haible  <bruno@clisp.org>
46891
46892         * doc/relocatable.texi: Document that it may not work on OpenBSD.
46893         Reported by Ralf Wildenhues.
46894
46895 2007-03-01  Bruno Haible  <bruno@clisp.org>
46896
46897         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
46898         include ordering constraints.
46899
46900 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46901
46902         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
46903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
46904         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
46905         as another example.
46906         * lib/time_.h: Fix misspelling.
46907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46908         Require gl_HEADER_TIME_H_DEFAULTS.
46909         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
46910         * m4/time_r.m4 (gl_TIME_R): Likewise.
46911         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
46912
46913 2007-03-01  Bruno Haible  <bruno@clisp.org>
46914
46915         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
46916         * m4/utimens.m4 (gl_UTIMENS): Likewise.
46917
46918 2007-03-01  Jim Meyering  <jim@meyering.net>
46919
46920         * modules/xreadlink (Maintainer): Add my name.
46921         * modules/xreadlink-with-size (Depends-on): Alphabetize.
46922
46923 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
46924             Bruno Haible  <bruno@clisp.org>
46925
46926         * build-aux/install-reloc: Compile also c-ctype.c.
46927         * build-aux/relocatable.sh.in: New file.
46928         * doc/relocatable.texi: New file.
46929         * doc/relocatable-maint.texi: New file.
46930         * doc/gnulib.texi: Include relocatable-maint.texi.
46931         * lib/progreloc.c: Include unistd.h unconditionally.
46932         * lib/relocwrapper.c: Include unistd.h unconditionally.
46933         Include c-ctype.h.
46934         (add_dotbin): Use c_tolower.
46935         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
46936         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
46937         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
46938         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
46939         to m4/relocatable-lib.m4.
46940         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
46941         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
46942         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
46943         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
46944         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
46945         * modules/relocatable: New file.
46946         * modules/relocatable-lib: New file.
46947         * modules/relocatable-script: New file.
46948
46949 2007-02-28  Bruno Haible  <bruno@clisp.org>
46950
46951         Import --enable-relocatable infrastructure.
46952         * build-aux/config.libpath: New file, from GNU gettext.
46953         * build-aux/install-reloc: New file, from GNU gettext.
46954         * build-aux/reloc-ldflags: New file, from GNU gettext.
46955         * lib/relocatable.h: New file, from GNU gettext.
46956         * lib/relocatable.c: New file, from GNU gettext.
46957         * lib/relocwrapper.c: New file, from GNU gettext.
46958         * m4/relocatable.m4: New file, from GNU gettext.
46959
46960 2007-02-28  Bruno Haible  <bruno@clisp.org>
46961
46962         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
46963
46964         * modules/xreadlink: New file, from GNU gettext with modifications.
46965         * lib/xreadlink.c: New file, from GNU gettext.
46966         * lib/xreadlink.h: Add comments.
46967         (xreadlink): New declaration.
46968
46969         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
46970         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
46971         lib/xreadlink-with-size.c.
46972         (configure.ac): Remove gl_XREADLINK invocation.
46973         (Makefile.am): Augment lib_SOURCES.
46974         * m4/xreadlink.m4: Remove file.
46975         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
46976         (xreadlink_with_size): Renamed from xreadink.
46977         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
46978         * modules/canonicalize (Depends-on): Replace xreadlink with
46979         xreadlink-with-size.
46980         * lib/canonicalize.c (canonicalize_filename_mode): Update.
46981
46982 2007-02-25  Jim Meyering  <jim@meyering.net>
46983
46984         * build-aux/announce-gen: When complaining about excess arguments,
46985         list them.
46986
46987 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
46988
46989         * README: Document signed integer overflow situation more
46990         accurately.
46991
46992 2007-02-25  Bruno Haible  <bruno@clisp.org>
46993
46994         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
46995         'a' or 'A' conversion.
46996
46997 2007-02-25  Bruno Haible  <bruno@clisp.org>
46998
46999         * modules/filename: Renamed from modules/pathname.
47000         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47001         lib/concatpath.c with lib/concat-filename.c.
47002         (Makefile.am): Update.
47003         (Include): Replace pathname.h with filename.h.
47004         * lib/filename.h: Renamed from lib/pathname.h.
47005         (concatenated_filename): Renamed from concatenated_pathname.
47006         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47007         (concatenated_filename): Renamed from concatenated_pathname.
47008         * lib/findprog.c: Include filename.h instead of pathname.h.
47009         (find_in_path): Update.
47010         * lib/javacomp.c: Include filename.h instead of pathname.h.
47011         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47012         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47013         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47014         is_oldgcj_14_13_usable, is_javac_usable): Update.
47015         * lib/javaexec.c: Include filename.h instead of pathname.h.
47016         (execute_java_class): Update.
47017         * modules/findprog: Update.
47018         * modules/javacomp: Update.
47019         * modules/javaexec: Update.
47020         * MODULES.html.sh (File system functions): Add 'filename', remove
47021         'pathname'.
47022
47023 2007-02-25  Bruno Haible  <bruno@clisp.org>
47024
47025         * modules/printf-frexpl-tests: New file.
47026         * tests/test-printf-frexpl.c: New file.
47027
47028         * modules/printf-frexpl: New file.
47029         * lib/printf-frexpl.h: New file.
47030         * lib/printf-frexpl.c: New file.
47031         * m4/printf-frexpl.m4: New file.
47032
47033 2007-02-25  Bruno Haible  <bruno@clisp.org>
47034
47035         * modules/printf-frexp-tests: New file.
47036         * tests/test-printf-frexp.c: New file.
47037
47038         * modules/printf-frexp: New file.
47039         * lib/printf-frexp.h: New file.
47040         * lib/printf-frexp.c: New file.
47041         * m4/printf-frexp.m4: New file.
47042
47043 2007-02-25  Bruno Haible  <bruno@clisp.org>
47044
47045         Assume automake >= 1.10 for the tests.
47046         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
47047         * modules/arctwo-tests: Likewise.
47048         * modules/argp-tests: Likewise.
47049         * modules/avltree-list-tests: Likewise.
47050         * modules/avltree-oset-tests: Likewise.
47051         * modules/avltreehash-list-tests: Likewise.
47052         * modules/carray-list-tests: Likewise.
47053         * modules/crc-tests: Likewise.
47054         * modules/des-tests: Likewise.
47055         * modules/gc-arcfour-tests: Likewise.
47056         * modules/gc-arctwo-tests: Likewise.
47057         * modules/gc-des-tests: Likewise.
47058         * modules/gc-hmac-md5-tests: Likewise.
47059         * modules/gc-hmac-sha1-tests: Likewise.
47060         * modules/gc-md2-tests: Likewise.
47061         * modules/gc-md4-tests: Likewise.
47062         * modules/gc-md5-tests: Likewise.
47063         * modules/gc-pbkdf2-sha1-tests: Likewise.
47064         * modules/gc-rijndael-tests: Likewise.
47065         * modules/gc-sha1-tests: Likewise.
47066         * modules/gc-tests: Likewise.
47067         * modules/getaddrinfo-tests: Likewise.
47068         * modules/hmac-md5-tests: Likewise.
47069         * modules/hmac-sha1-tests: Likewise.
47070         * modules/linked-list-tests: Likewise.
47071         * modules/linkedhash-list-tests: Likewise.
47072         * modules/lock-tests: Likewise.
47073         * modules/md2-tests: Likewise.
47074         * modules/md4-tests: Likewise.
47075         * modules/md5-tests: Likewise.
47076         * modules/rbtree-list-tests: Likewise.
47077         * modules/rbtree-oset-tests: Likewise.
47078         * modules/rbtreehash-list-tests: Likewise.
47079         * modules/read-file-tests: Likewise.
47080         * modules/rijndael-tests: Likewise.
47081         * modules/stdint-tests: Likewise.
47082         * modules/tls-tests: Likewise.
47083
47084 2007-02-24  Bruno Haible  <bruno@clisp.org>
47085
47086         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47087         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47088         function; instead check whether isnan with a double argument links.
47089         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47090         function; instead check whether isnan with a 'long double' argument
47091         links.
47092         Reported by Eric Blake <ebb9@byu.net>.
47093
47094 2007-02-24  Bruno Haible  <bruno@clisp.org>
47095
47096         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47097         defined.
47098         * lib/isnanl.c: Remove all code. Just include isnan.c.
47099         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47100
47101 2007-02-25  Jim Meyering  <jim@meyering.net>
47102
47103         Avoid conflicting types for 'unsetenv' on FreeBSD.
47104         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47105         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47106         in stdlib.h.
47107
47108 2007-02-24  Bruno Haible  <bruno@clisp.org>
47109
47110         * modules/isnanl-nolibm-tests: New file.
47111         * tests/test-isnanl.c: New file.
47112
47113         * modules/isnanl-nolibm: New file.
47114         * lib/isnanl.h: New file.
47115         * lib/isnanl.c: New file.
47116         * m4/isnanl.m4: New file.
47117
47118 2007-02-24  Bruno Haible  <bruno@clisp.org>
47119
47120         * modules/isnan-nolibm-tests: New file.
47121         * tests/test-isnan.c: New file.
47122
47123         * modules/isnan-nolibm: New file.
47124         * lib/isnan.h: New file.
47125         * lib/isnan.c: New file.
47126         * m4/isnan.m4: New file.
47127
47128 2007-02-24  Bruno Haible  <bruno@clisp.org>
47129
47130         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47131         assume that an exponent fits in 20 bits.
47132
47133 2007-02-24  Jim Meyering  <jim@meyering.net>
47134
47135         * m4/regex.m4: Update the description of the configure-time option,
47136         --without-included-regex, to state accurately what the defaults are,
47137         and perhaps to give people an idea why using this option is risky.
47138
47139 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47140
47141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47142         loops on small arguments.  This attempts to avoid the problem
47143         Bruno Haible reported for AIX 4.3.2 in
47144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47145
47146 2007-02-23  Bruno Haible  <bruno@clisp.org>
47147
47148         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47149         Needed for help2man.
47150
47151 2007-02-23  Karl Berry  <karl@gnu.org>
47152
47153         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47154         exists, foo.h should be cvs-ignored, not committed.
47155
47156 2007-02-23  Eric Blake  <ebb9@byu.net>
47157
47158         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47159         * lib/stat-time.h (includes): Likewise.
47160         * lib/utimecmp.c (includes): Likewise.
47161         * lib/utimens.h (includes): Likewise.
47162         * lib/getdate.y (includes): Also include "timespec.h" for use
47163         internal to the module.
47164         * modules/utimens (Depends-on): Revert yesterday's patch.
47165         * modules/nanosleep (Depends-on): Add missing dependency.
47166
47167 2007-02-22  Bruno Haible  <bruno@clisp.org>
47168
47169         * lib/glob.c: Don't include getlogin_r.h.
47170
47171 2007-02-22  Jim Meyering  <jim@meyering.net>
47172
47173         * modules/utimens (Depends-on): Add timespec, required for
47174         utimens.h's inclusion of timespec.h.
47175
47176 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47177
47178         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47179         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47180         Schwab in
47181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47182         I'll try to think of a better way to fix the Solaris problem.
47183
47184         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47185         like glibc; on Solaris 10, it fails with errno == EINVAL.
47186         POSIX says the behavior is unspecified if the first argument is NULL,
47187         so play it safe and never pass NULL to the system getcwd.
47188
47189 2007-02-21  Jim Meyering  <jim@meyering.net>
47190
47191         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47192         of gettimeofday.  It would conflict with the one now always
47193         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47194         an IRIX 6.5 build failure.
47195
47196 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47197
47198         Minor fixups to port to Solaris 10 with Sun C 5.8.
47199         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47200         * modules/getcwd (Depends-on): Add dirfd.
47201         * lib/putenv.c (putenv): #undef it.
47202         (rpl_putenv): New decl.
47203         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47204
47205 2007-02-20  Bruno Haible  <bruno@clisp.org>
47206
47207         * modules/stdio-tests: New file.
47208         * tests/test-stdio.c: New file.
47209
47210         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47211         (Depends-on): Add stdio.
47212         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47213         (Include): Use <stdio.h> instead of vsnprintf.h.
47214         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47215         HAVE_DECL_VSNPRINTF.
47216         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47217
47218         * modules/snprintf (Files): Remove lib/snprintf.h.
47219         (Depends-on): Add stdio.
47220         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47221         (Include): Use <stdio.h> instead of snprintf.h.
47222         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47223         HAVE_DECL_SNPRINTF.
47224         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47225         * lib/getaddrinfo.c: Likewise.
47226
47227         * modules/stdio: New file.
47228         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47229         * lib/snprintf.h: Remove file.
47230         * lib/vsnprintf.h: Remove file.
47231         * lib/.cppi-disable: Remove snprintf.h.
47232         * m4/stdio_h.m4: New file.
47233         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47234
47235 2007-02-20  Jim Meyering  <jim@meyering.net>
47236
47237         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47238         used by e.g., mingw.  From Bruno Haible.
47239
47240 2007-02-19  Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47243         warnings.
47244         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47245
47246 2007-02-19  Bruno Haible  <bruno@clisp.org>
47247
47248         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47249         from mingw users.
47250
47251 2007-02-19  Bruno Haible  <bruno@clisp.org>
47252
47253         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47254         warnings.
47255         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47256
47257 2007-02-19  Jim Meyering  <jim@meyering.net>
47258
47259         Don't use FD after a successful "fdopendir (fd)".
47260         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47261         Reset it by calling dirfd on the just-obtained DIR*.
47262
47263         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47264         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47265
47266 2007-02-18  Bruno Haible  <bruno@clisp.org>
47267
47268         * lib/readlink.c: Include <unistd.h>.
47269         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47270         HAVE_READLINK.
47271         * modules/readlink (Depends-on): Add unistd.
47272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47273         (Include): Add <unistd.h>.
47274
47275         * lib/getlogin_r.h: Remove file.
47276         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47277         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47278         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47279         HAVE_DECL_GETLOGIN_R.
47280         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47281         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47282         (Include): Use <unistd.h> instead of getlogin_r.h.
47283
47284         * lib/getcwd.h: Remove file.
47285         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47286         * lib/xgetcwd.c: Likewise.
47287         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47288         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47289         * modules/getcwd (Files): Remove lib/getcwd.h.
47290         (Depends-on): Add unistd.
47291         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47292         (Include): Use <unistd.h> instad of getcwd.h.
47293
47294         * lib/ftruncate.c: Include <unistd.h> first.
47295         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47296         Set HAVE_FTRUNCATE.
47297         * modules/ftruncate (Depends-on): Add unistd.
47298         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47299
47300         * lib/fchdir.c: Include <unistd.h> first.
47301         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47303         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47304         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47305         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47306
47307         * lib/dup2.c: Include <unistd.h> first.
47308         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47309         HAVE_DUP2.
47310         * modules/dup2 (Depends-on): Add unistd.
47311         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47312
47313         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47314         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47315         REPLACE_CHOWN. Don't define chown as a macro here.
47316         * modules/chown (Depends-on): Add unistd.
47317         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47318
47319         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47320         Add definition for GL_LINK_WARNING.
47321         (chown, dup2): New declarations.
47322         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47323         link warning.
47324         (ftruncate): New declaration.
47325         (getcwd): New declaration, taken from old getcwd.h.
47326         (getlogin_r): New declaration, taken from old getlogin_r.h.
47327         (readlink): New declaration.
47328         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47329         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47330         (gl_PREREQ_UNISTD): Remove macro.
47331         (gl_UNISTD_MODULE_INDICATOR): New macro.
47332         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47333         many new variables. Don't set UNISTD_H.
47334         * modules/unistd (Description): Change.
47335         (Depends-on): Add link-warning.
47336         (configure.ac): Update.
47337         (Makefile.am): Create unistd.h always. Substitute many new variables
47338         into it.
47339
47340 2007-02-18  Bruno Haible  <bruno@clisp.org>
47341
47342         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47343         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47344         HAVE_GETSUBOPT.
47345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47346         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47347         * lib/getsubopt.h: Remove file.
47348         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47349         (Depends-on): Add stdlib.
47350         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47351         (Includes): Use <stdlib.h> instead of getsubopt.h.
47352         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47353         Set HAVE_GETSUBOPT.
47354         * lib/getsubopt.c: Don't include getsubopt.h.
47355
47356 2007-02-18  Bruno Haible  <bruno@clisp.org>
47357
47358         * modules/fchdir (Depends-on): Add dup2.
47359
47360 2007-02-18  Bruno Haible  <bruno@clisp.org>
47361
47362         * lib/stdlib_.h: Handle glibc's special invocation convention
47363         specially.
47364
47365 2007-02-18  Bruno Haible  <bruno@clisp.org>
47366
47367         * modules/stdlib-tests: New file.
47368         * tests/test-stdlib.c: New file.
47369
47370         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47371         (Depends-on): Add stdlib.
47372         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47373         (Includes): Use <stdlib.h> instead of mkstemp.h.
47374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47375         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47376         * lib/mkstemp.c: Don't include mkstemp.h.
47377         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47378         * lib/stdlib--.h: Don't include mkstemp.h.
47379
47380         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
47381         (Depends-on): Add stdlib.
47382         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47383         (Includes): Use <stdlib.h> instead of mkdtemp.h.
47384         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47385         HAVE_MKDTEMP.
47386         * lib/mkdtemp.c: Don't include mkdtemp.h.
47387         * lib/clean-temp.c: Don't include mkdtemp.h.
47388
47389         * modules/exit (Files): Remove lib/exit.h.
47390         (Depends-on): Add stdlib.
47391         (Makefile.am): Remove lib_SOURCES.
47392         (Include): Use <stdlib.h> instead of exit.h.
47393         * lib/argmatch.c: Don't include exit.h.
47394         * lib/execute.c: Likewise.
47395         * lib/pagealign_alloc.c: Likewise.
47396         * lib/pipe.c: Likewise.
47397         * lib/wait-process.c: Likewise.
47398         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
47399         * lib/exitfail.c: Likewise.
47400         * lib/savewd.c: Likewise.
47401         * lib/xsetenv.c: Likewise.
47402
47403         * modules/stdlib: New file.
47404         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
47405         and extra comments about mkstemp().
47406         * lib/exit.h: Remove file.
47407         * lib/mkdtemp.h: Remove file.
47408         * lib/mkstemp.h: Remove file.
47409         * m4/stdlib_h.m4: New file.
47410         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
47411
47412 2007-02-18  Bruno Haible  <bruno@clisp.org>
47413
47414         * modules/math-tests: New file.
47415         * tests/test-math.c: New file.
47416
47417         * modules/math: New file.
47418         * modules/mathl (Files): Remove lib/mathl.h.
47419         (Depends-on): Add math.
47420         (Makefile.am): Don't mention mathl.h.
47421         (Include): Use <math.h> instead of mathl.h.
47422         * lib/math_.h: New file.
47423         * lib/mathl.h: Remove file.
47424         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
47425         mathl.h.
47426         * lib/asinl.c: Likewise.
47427         * lib/atanl.c: Likewise.
47428         * lib/ceill.c: Likewise.
47429         * lib/cosl.c: Likewise.
47430         * lib/expl.c: Likewise.
47431         * lib/floorl.c: Likewise.
47432         * lib/frexpl.c: Likewise.
47433         * lib/ldexpl.c: Likewise.
47434         * lib/logl.c: Likewise.
47435         * lib/sincosl.c: Likewise.
47436         * lib/sinl.c: Likewise.
47437         * lib/sqrtl.c: Likewise.
47438         * lib/tanl.c: Likewise.
47439         * lib/trigl.c: Likewise.
47440         * m4/math_h.m4: New file.
47441         * MODULES.html.sh (Mathematics): Add math.
47442
47443 2007-02-17  Bruno Haible  <bruno@clisp.org>
47444
47445         * modules/wctype-tests: New file.
47446         * tests/test-wctype.c: New file.
47447
47448         * modules/wchar-tests: New file.
47449         * tests/test-wchar.c: New file.
47450
47451         * modules/unistd-tests: New file.
47452         * tests/test-unistd.c: New file.
47453
47454         * modules/time-tests: New file.
47455         * tests/test-time.c: New file.
47456
47457         * modules/sysexits-tests: New file.
47458         * tests/test-sysexits.c: New file.
47459
47460         * modules/sys_time-tests: New file.
47461         * tests/test-sys_time.c: New file.
47462
47463         * modules/sys_stat-tests: New file.
47464         * tests/test-sys_stat.c: New file.
47465
47466         * modules/sys_socket-tests: New file.
47467         * tests/test-sys_socket.c: New file.
47468
47469         * modules/sys_select-tests: New file.
47470         * tests/test-sys_select.c: New file.
47471
47472         * modules/string-tests: New file.
47473         * tests/test-string.c: New file.
47474
47475         * modules/stdbool-tests: New file.
47476         * tests/test-stdbool.c: New file.
47477
47478         * modules/netinet_in-tests: New file.
47479         * tests/test-netinet_in.c: New file.
47480
47481         * modules/inttypes-tests: New file.
47482         * tests/test-inttypes.c: New file.
47483
47484         * modules/fcntl-tests: New file.
47485         * tests/test-fcntl.c: New file.
47486
47487         * modules/byteswap-tests: New file.
47488         * tests/test-byteswap.c: New file.
47489
47490         * modules/arpa_inet-tests: New file.
47491         * tests/test-arpa_inet.c: New file.
47492
47493 2007-02-17  Bruno Haible  <bruno@clisp.org>
47494
47495         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
47496         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
47497         if the corresponding module is not enabled. Emit link warnings if
47498         the function is used nevertheless.
47499         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
47500         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
47501         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
47502         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
47503         * modules/inttypes (Depends-on): Add link-warning.
47504         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47505         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
47506         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
47507         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
47508         * modules/imaxdiv (configure.ac): Likewise.
47509         * modules/strtoimax (configure.ac): Likewise.
47510         * modules/strtoumax (configure.ac): Likewise.
47511
47512 2007-02-17  Bruno Haible  <bruno@clisp.org>
47513
47514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
47515         gl_STRING_MODULE_INDICATOR_DEFAULTS.
47516         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
47517         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
47518
47519 2007-02-17  Bruno Haible  <bruno@clisp.org>
47520
47521         * modules/link-warning: New file.
47522         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
47523         * lib/string_.h (GL_LINK_WARNING): Remove definition.
47524         * modules/string (Depends-on): Add link-warning.
47525         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47526         string.h.
47527         * MODULES.html.sh (Support for building libraries and executables): Add
47528         link-warning.
47529
47530 2007-02-17  Bruno Haible  <bruno@clisp.org>
47531
47532         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
47533         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
47534         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
47535         long lines.
47536
47537 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
47538             Bruno Haible  <bruno@clisp.org>
47539
47540         * modules/tmpfile: New file.
47541         * lib/tmpfile.c: New file.
47542         * m4/tmpfile.m4: New file.
47543         * MODULES.html.sh (func_all_modules): New section "Input/output".
47544
47545 2007-02-15  Bruno Haible  <bruno@clisp.org>
47546
47547         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
47548         (supports_delete_on_close): New function.
47549         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
47550
47551 2007-02-14  Bruno Haible  <bruno@clisp.org>
47552
47553         * modules/mbspcasecmp-tests: New file.
47554         * tests/test-mbspcasecmp.sh: New file.
47555         * tests/test-mbspcasecmp.c: New file.
47556
47557         New module mbspcasecmp.
47558         * modules/mbspcasecmp: New file.
47559         * lib/mbspcasecmp.c: New file.
47560         * lib/string_.h (strncasecmp): Change warning message.
47561         (mbspcasecmp): New declaration.
47562         * m4/mbspcasecmp.m4: New file.
47563         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47564         GNULIB_MBSPCASECMP.
47565         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
47566         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
47567
47568 2007-02-14  Bruno Haible  <bruno@clisp.org>
47569
47570         * modules/mbsncasecmp-tests: New file.
47571         * tests/test-mbsncasecmp.sh: New file.
47572         * tests/test-mbsncasecmp.c: New file.
47573
47574         New module mbsncasecmp.
47575         * modules/mbsncasecmp: New file.
47576         * lib/mbsncasecmp.c: New file.
47577         * lib/string_.h (mbsncasecmp): New declaration.
47578         * m4/mbsncasecmp.m4: New file.
47579         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47580         GNULIB_MBSNCASECMP.
47581         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
47582         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
47583
47584 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47585
47586         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
47587         Verify that it doesn't overlap with our flags.
47588         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
47589         do not have the desired effect in multibyte locales; instead, use
47590         mbscasecmp.
47591         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
47592         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
47593         we don't require GNU fnmatch ourselves (if our users require it, they
47594         should do so explicitly).
47595
47596         Fix regex code so it doesn't rely on strcasecmp.
47597         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
47598         Otherwise, include gnulib's langinfo.h.
47599         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
47600         undesirable behavior in non-C locales.  Instead, rely on localecharset.
47601         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
47602         * modules/regex (FILES): Remove m4/codeset.m4.
47603         (Depends-on): Add localcharset.  Remove strcase.
47604
47605 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47606
47607         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
47608         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47609
47610 2007-02-13  Bruno Haible  <bruno@clisp.org>
47611
47612         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
47613         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47614
47615 2007-02-12  Bruno Haible  <bruno@clisp.org>
47616
47617         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47618         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
47619         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
47620         time warning rather than a link error.
47621
47622 2007-02-12  Bruno Haible  <bruno@clisp.org>
47623
47624         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
47625         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47626         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47627
47628 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47629
47630         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
47631         args, not 2.
47632
47633 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47634
47635         New module 'time', so that apps can include <time.h> as per
47636         POSIX and GNU instead of separate include files like time_r.h
47637         and timegm.h.  This implementation tries out a simpler approach
47638         for replacing decls in standard include files (as compared to
47639         the string module), somewhat as an experiment.
47640
47641         * config/srclist.txt: Comment out mktime.c for now.
47642         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
47643         since it doesn't apply any more.  Use generic wording instead.
47644         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
47645         'time'.
47646         * lib/time_.h, m4/time_h.m4, modules/time: New files.
47647         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
47648         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
47649         Don't include <sys/types.h>; no longer needed since we assume C89.
47650         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
47651         * lib/strftime.c: Likewise.
47652         * lib/time_r.c: Likewise.
47653         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
47654         * lib/nanosleep.c: Include <time.h> first, to check interface.
47655         * lib/strptime.c: Likewise.
47656         * lib/time_r.c: Likewise.
47657         * lib/timegm.c: Likewise.
47658         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
47659         needed.
47660         * lib/timegm.c: Don't include timegm.h; no longer needed.
47661         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
47662         time.h now handles any problems in that area.
47663         (struct timespec, nanosleep): Remove; time.h now arranges for these.
47664         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
47665         that time.h defines struct timespec.
47666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
47667         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
47668         handles that.
47669         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
47670         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
47671         needed.  Set REPLACE_LOCALTIME.
47672         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
47673         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
47674         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
47675         nanosleep; time_h.m4 now does that.  Don't require
47676         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
47677         module handles this now.
47678         * modules/getdate (Depends-on): Remove timespec.  Add time.
47679         * modules/nanosleep (Depends-on): Likewise.
47680         * modules/stat-time (Depends-on): Likewise.
47681         * modules/nanosleep (Include): Include time.h, not timespec.h.
47682         * modules/strptime (Files): Remove lib/strptime.h.
47683         (Depends-on): Add extensions, time.
47684         (Include): Include time.h, not strptime.h.
47685         * modules/time_r (Files): Remove lib/time_r.h.
47686         (Depends-on): Add time.
47687         (Include): Include time.h, not time_r.h.
47688         * modules/timegm: Likewise.
47689         * modules/timespec (Description): Now does timespec-related decls
47690         of our own, instead of struct timespec itself.
47691         (Depends-on): Add time; remove extensions.
47692         (Maintainer): Add self.
47693         * modules/utimecmp (Depends-on): Add time; remove timespec.
47694         * modules/utimens (Depends-on): Likewise.
47695         * modules/xnanosleep (Depends-on): Likewise.
47696
47697 2007-02-11  Bruno Haible  <bruno@clisp.org>
47698
47699         * lib/c-strstr.c: Include allocsa.h.
47700         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47701         * lib/c-strcasestr.c: Include allocsa.h.
47702         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47703         * lib/strcasestr.c: Include allocsa.h.
47704         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47705         * lib/mbsstr.c: Include allocsa.h.
47706         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47707         allocsa/freesa instead of malloc/free.
47708         * lib/mbscasestr.c: Include allocsa.h.
47709         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47710         allocsa/freesa instead of malloc/free.
47711         * modules/c-strstr (Depends-on): Add allocsa.
47712         * modules/c-strcasestr (Depends-on): Likewise.
47713         * modules/strcasestr (Depends-on): Likewise.
47714         * modules/mbsstr (Depends-on): Likewise.
47715         * modules/mbscasestr (Depends-on): Likewise.
47716
47717 2007-02-11  Bruno Haible  <bruno@clisp.org>
47718
47719         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
47720
47721         * modules/mbsspn-tests: New file.
47722         * tests/test-mbsspn.sh: New file.
47723         * tests/test-mbsspn.c: New file.
47724
47725 2007-02-11  Bruno Haible  <bruno@clisp.org>
47726
47727         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
47728
47729         * modules/mbspbrk-tests: New file.
47730         * tests/test-mbspbrk.sh: New file.
47731         * tests/test-mbspbrk.c: New file.
47732
47733 2007-02-11  Bruno Haible  <bruno@clisp.org>
47734
47735         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
47736         unneeded cast.
47737
47738         * modules/mbscspn-tests: New file.
47739         * tests/test-mbscspn.sh: New file.
47740         * tests/test-mbscspn.c: New file.
47741
47742 2007-02-11  Bruno Haible  <bruno@clisp.org>
47743
47744         * modules/mbscasecmp-tests: New file.
47745         * tests/test-mbscasecmp.sh: New file.
47746         * tests/test-mbscasecmp.c: New file.
47747
47748 2007-02-11  Bruno Haible  <bruno@clisp.org>
47749
47750         Ensure O(n) worst-case complexity of mbscasestr.
47751         * lib/mbscasestr.c: Include stdbool.h.
47752         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47753         functions.
47754         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
47755         the bookkeeping indicates that it's worth it.
47756         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
47757
47758         * modules/mbscasestr-tests: New file.
47759         * tests/test-mbscasestr1.c: New file.
47760         * tests/test-mbscasestr2.sh: New file.
47761         * tests/test-mbscasestr2.c: New file.
47762         * tests/test-mbscasestr3.sh: New file.
47763         * tests/test-mbscasestr3.c: New file.
47764         * tests/test-mbscasestr4.sh: New file.
47765         * tests/test-mbscasestr4.c: New file.
47766         * m4/locale-tr.m4: New file.
47767
47768 2007-02-11  Bruno Haible  <bruno@clisp.org>
47769
47770         Ensure O(n) worst-case complexity of mbsstr.
47771         * lib/mbsstr.c: Include stdbool.h.
47772         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47773         functions.
47774         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
47775         bookkeeping indicates that it's worth it.
47776         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
47777
47778         * modules/mbsstr-tests: New file.
47779         * tests/test-mbsstr1.c: New file.
47780         * tests/test-mbsstr2.sh: New file.
47781         * tests/test-mbsstr2.c: New file.
47782         * tests/test-mbsstr3.sh: New file.
47783         * tests/test-mbsstr3.c: New file.
47784         * m4/locale-fr.m4: New file.
47785
47786 2007-02-11  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/mbsrchr.c (mbsrchr): Fix bug.
47789
47790         * modules/mbsrchr-tests: New file.
47791         * tests/test-mbsrchr.sh: New file.
47792         * tests/test-mbsrchr.c: New file.
47793
47794 2007-02-11  Bruno Haible  <bruno@clisp.org>
47795
47796         * lib/mbschr.c (mbschr): Fix bug.
47797
47798         * modules/mbschr-tests: New file.
47799         * tests/test-mbschr.sh: New file.
47800         * tests/test-mbschr.c: New file.
47801         * m4/locale-zh.m4: New file.
47802
47803 2007-02-11  Bruno Haible  <bruno@clisp.org>
47804
47805         Support for copying multibyte string iterators.
47806         * lib/mbiter.h: Include <string.h>.
47807         (mbiter_multi_copy): New function.
47808         (mbi_copy): New macro.
47809         * lib/mbuiter.h: Include <string.h>.
47810         (mbuiter_multi_copy): New function.
47811         (mbui_copy): New macro.
47812
47813 2007-02-11  Bruno Haible  <bruno@clisp.org>
47814
47815         New module mbslen.
47816         * modules/mbslen: New file.
47817         * lib/mbslen.c: New file.
47818         * lib/string_.h (mbslen): New declaration.
47819         * m4/mbslen.m4: New file.
47820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47821         GNULIB_MBSLEN.
47822         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
47823         * MODULES.html.sh (Internationalization functions): Add mbslen.
47824
47825 2007-02-11  Bruno Haible  <bruno@clisp.org>
47826
47827         Ensure O(n) worst-case complexity of strcasestr substitute.
47828         * lib/strcasestr.c: Include stdbool.h.
47829         (knuth_morris_pratt): New function.
47830         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47831         bookkeeping indicates that it's worth it.
47832         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
47833
47834         * modules/strcasestr-tests: New file.
47835         * tests/test-strcasestr.c: New file.
47836
47837 2007-02-11  Bruno Haible  <bruno@clisp.org>
47838
47839         Ensure O(n) worst-case complexity of c_strcasestr.
47840         * lib/c-strcasestr.c: Include stdbool.h, string.h.
47841         (knuth_morris_pratt): New function.
47842         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
47843         the bookkeeping indicates that it's worth it.
47844         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
47845
47846         * modules/c-strcasestr-tests: New file.
47847         * tests/test-c-strcasestr.c: New file.
47848
47849 2007-02-11  Bruno Haible  <bruno@clisp.org>
47850
47851         Ensure O(n) worst-case complexity of c_strstr.
47852         * lib/c-strstr.c: Include stdbool.h, string.h.
47853         (knuth_morris_pratt): New function.
47854         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47855         bookkeeping indicates that it's worth it.
47856         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
47857
47858         * lib/c-strstr.c: Complete rewrite for maintainability.
47859
47860         * modules/c-strstr-tests: New file.
47861         * tests/test-c-strstr.c: New file.
47862
47863 2007-02-11  Bruno Haible  <bruno@clisp.org>
47864
47865         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
47866         5.2.1 and earlier, whereby \055 was treated just like the range
47867         delimiter '-'.
47868         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47869
47870 2007-02-08  Bruno Haible  <bruno@clisp.org>
47871
47872         * modules/regex (Depends-on): Add stdbool.
47873         Reported by Dalibor Topic <robilad@kaffe.org>.
47874
47875 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47876
47877         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
47878         Prefer returning from main to exiting from it.
47879         Remove unnecessary parens after sizeof.
47880
47881 2007-02-05  Bruno Haible  <bruno@clisp.org>
47882
47883         New module mbssep.
47884         * modules/mbssep: New file.
47885         * lib/mbssep.c: New file.
47886         * lib/string_.h (strsep): Add a conditional link warning.
47887         (mbssep): New declaration.
47888         * m4/mbssep.m4: New file.
47889         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47890         GNULIB_MBSSEP.
47891         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
47892         * MODULES.html.sh (Internationalization functions): Add mbssep.
47893
47894 2007-02-05  Bruno Haible  <bruno@clisp.org>
47895
47896         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
47897         Optimize search in case of 1 delimiter.
47898
47899 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47900
47901         * lib/acl.h: Include sys/types.h before sys/acl.h.
47902
47903 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47904
47905         Merge upstream fix for glibc bugzilla #3957:
47906
47907         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
47908
47909         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
47910         bit for RE_HAT_LISTS_NOT_NEWLINE.
47911         (build_charclass_op): Remove bogus comment.
47912
47913 2007-02-05  Simon Josefsson  <simon@josefsson.org>
47914
47915         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
47916
47917 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
47918
47919         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
47920         * lib/memmem.c [!defined _LIBC]: Include config.h.
47921
47922 2007-02-04  Bruno Haible  <bruno@clisp.org>
47923
47924         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
47925         warning message.
47926
47927 2007-02-04  Bruno Haible  <bruno@clisp.org>
47928
47929         New module mbstok_r.
47930         * modules/mbstok_r: New file.
47931         * lib/mbstok_r.c: New file.
47932         * lib/string_.h (strtok_r): Change argument names to match the
47933         comments. Add a conditional link warning.
47934         (mbstok_r): New declaration.
47935         * m4/mbstok_r.m4: New file.
47936         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47937         GNULIB_MBSTOK_R.
47938         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
47939         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
47940
47941 2007-02-04  Bruno Haible  <bruno@clisp.org>
47942
47943         New module mbsspn.
47944         * modules/mbsspn: New file.
47945         * lib/mbsspn.c: New file.
47946         * lib/string_.h (strspn): Add a conditional link warning.
47947         (mbsspn): New declaration.
47948         * m4/mbsspn.m4: New file.
47949         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47950         GNULIB_MBSSPN.
47951         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
47952         * MODULES.html.sh (Internationalization functions): Add mbsspn.
47953
47954 2007-02-04  Bruno Haible  <bruno@clisp.org>
47955
47956         New module mbspbrk.
47957         * modules/mbspbrk: New file.
47958         * lib/mbspbrk.c: New file.
47959         * lib/string_.h (strpbrk): Add a conditional link warning.
47960         (mbspbrk): New declaration.
47961         * m4/mbspbrk.m4: New file.
47962         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47963         GNULIB_MBSPBRK.
47964         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
47965         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
47966
47967 2007-02-04  Bruno Haible  <bruno@clisp.org>
47968
47969         New module mbscspn.
47970         * modules/mbscspn: New file.
47971         * lib/mbscspn.c: New file.
47972         * lib/string_.h (strcspn): Add a conditional link warning.
47973         (mbscspn): New declaration.
47974         * m4/mbscspn.m4: New file.
47975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47976         GNULIB_MBSCSPN.
47977         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
47978         * MODULES.html.sh (Internationalization functions): Add mbscspn.
47979
47980 2007-02-04  Bruno Haible  <bruno@clisp.org>
47981
47982         New module mbscasestr, reduced goal of strcasestr.
47983         * modules/mbscasestr: New file.
47984         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
47985         (mbscasestr): Renamed from strcasestr.
47986         * lib/strcasestr.c: Don't include mbuiter.h.
47987         (strcasestr): Remove support for multibyte locales.
47988         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
47989         Change the conditional link warning.
47990         (mbscasestr): New declaration.
47991         * m4/mbscasestr.m4: New file.
47992         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
47993         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
47994         REPLACE_STRCASESTR.
47995         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
47996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47997         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
47998         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
47999         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48000         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48001         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48002         (Depends-on): Remove mbuiter.
48003         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48004
48005 2007-02-04  Bruno Haible  <bruno@clisp.org>
48006
48007         Simplify handling of strncasecmp.
48008         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48009         the conditional link warning.
48010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48011         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48012         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48013         * modules/strcase (configure.ac): Don't invoke
48014         gl_STRING_MODULE_INDICATOR.
48015         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48016
48017 2007-02-04  Bruno Haible  <bruno@clisp.org>
48018
48019         New module mbscasecmp, reduced goal of strcasecmp.
48020         * modules/mbscasecmp: New file.
48021         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48022         (mbscasecmp): Renamed from strcasecmp.
48023         * lib/strcasecmp.c: Don't include mbuiter.h.
48024         (strcasecmp): Remove support for multibyte locales.
48025         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48026         Change the conditional link warning.
48027         (mbscasecmp): New declaration.
48028         * m4/mbscasecmp.m4: New file.
48029         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48030         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48031         REPLACE_STRCASECMP.
48032         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48034         GNULIB_MBSCASECMP.
48035         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48036         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48037         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48038         (Depends-on): Remove mbuiter.
48039         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48040
48041 2007-02-04  Bruno Haible  <bruno@clisp.org>
48042
48043         New module mbsstr. Remove module strstr.
48044         * modules/mbsstr: New file.
48045         * modules/strstr: Remove file.
48046         * lib/mbsstr.c: Renamed from lib/strstr.c.
48047         (mbsstr): Renamed from strstr.
48048         * lib/string_.h (strstr): Remove declaration. Change the conditional
48049         link warning.
48050         (mbsstr): New declaration.
48051         * m4/mbsstr.m4: New file.
48052         * m4/strstr.m4: Remove file.
48053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48054         REPLACE_STRSTR.
48055         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
48056         Don't initialize GNULIB_STRSTR.
48057         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
48058         substitute GNULIB_STRSTR and REPLACE_STRSTR.
48059         * MODULES.html.sh (Internationalization functions): Add mbsstr.
48060         (Support for systems lacking ANSI C 89): Remove strstr.
48061
48062 2007-02-04  Bruno Haible  <bruno@clisp.org>
48063
48064         New module mbsrchr.
48065         * modules/mbsrchr: New file.
48066         * lib/mbsrchr.c: New file.
48067         * lib/string_.h (strrchr): Add a conditional link warning.
48068         (mbsrchr): New declaration.
48069         * m4/mbsrchr.m4: New file.
48070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48071         GNULIB_MBSRCHR.
48072         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48073         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48074
48075 2007-02-04  Bruno Haible  <bruno@clisp.org>
48076
48077         New module mbschr.
48078         * modules/mbschr: New file.
48079         * lib/mbschr.c: New file.
48080         * lib/string_.h (strchr): Add a conditional link warning.
48081         (mbschr): New declaration.
48082         * m4/mbschr.m4: New file.
48083         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48084         GNULIB_MBSCHR.
48085         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48086         * MODULES.html.sh (Internationalization functions): Add mbschr.
48087
48088 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48089
48090         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48091
48092         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48093
48094 2007-02-04  Bruno Haible  <bruno@clisp.org>
48095
48096         New module description section 'configure.ac-early'.
48097         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48098         (func_get_autoconf_early_snippet): New function.
48099         (func_import, func_create_testdir): Use it. Remove special cases for
48100         modules 'extensions' and 'lock'.
48101         * modules/extensions (configure.ac-early): Require
48102         gl_USE_SYSTEM_EXTENSIONS.
48103         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48104
48105 2007-02-04  Bruno Haible  <bruno@clisp.org>
48106
48107         Make use of gcj-4.3's -fsource and -ftarget option.
48108         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48109         and if so try the options -fsource and -ftarget.
48110         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48111         source_version, ftarget_option, target_version arguments.
48112         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48113         (is_envjavac_oldgcj_14_14_usable): Renamed from
48114         is_envjavac_gcj_14_14_usable.
48115         (is_envjavac_oldgcj_14_13_usable): Renamed from
48116         is_envjavac_gcj_14_13_usable.
48117         (is_gcj_present): Update.
48118         (is_gcj_43, is_gcj43_usable): New functions.
48119         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48120         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48121         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48122         try the options -fsource and -ftarget.
48123
48124 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48125
48126         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48127         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48128         larger value.
48129
48130 2007-02-03  Jim Meyering  <jim@meyering.net>
48131
48132         Give tools a better chance to allocate space for very large buffers.
48133         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48134
48135         Make pwd and readlink work also when run with an unreadable parent dir
48136         on systems with openat support.
48137         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48138         provided getcwd function, even when we have openat support.
48139         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48140
48141 2007-02-02  Bruno Haible  <bruno@clisp.org>
48142
48143         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48144         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48145         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48146         portability problems if one of these functions is only used on specific
48147         platforms.
48148         Reported by Paul Eggert.
48149
48150 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48151
48152         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48153         is causing more trouble than it's curing.
48154         * lib/regex_internal.h (__mempcpy): Remove.
48155         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48156         (and make the code a tad smaller to boot).
48157         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48158
48159 2007-02-02  Jim Meyering  <jim@meyering.net>
48160
48161         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48162         section, not in the Makefile.am: one.
48163
48164 2007-02-02  Eric Blake  <ebb9@byu.net>
48165
48166         * lib/strchrnul.c: Always include config.h first.
48167
48168         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48169         gnulib strstr is not necessary here.
48170
48171 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48172
48173         * m4/socklen.m4: Fix typo.
48174
48175 2007-02-02  Eric Blake  <ebb9@byu.net>
48176
48177         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48178         * modules/netinet_in (Makefile.am): Likewise.
48179
48180 2007-02-01  Bruno Haible  <bruno@clisp.org>
48181
48182         * lib/string_.h (GL_LINK_WARNING): New macro.
48183         (strcasecmp, strstr, strcasestr): If provided by the system,
48184         conditionally define as a macro that leads to a warning instead of to
48185         an error.
48186         (strncasecmp): Conditionally define as a macro that leads to a warning.
48187
48188 2007-02-01  Karl Berry  <karl@gnu.org>
48189
48190         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48191
48192 2007-02-01  Bruno Haible  <bruno@clisp.org>
48193
48194         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48195         renamings.
48196
48197 2007-02-01  Eric Blake  <ebb9@byu.net>
48198
48199         * modules/regex (Depends-on): Revert dependence on mempcpy.
48200         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48201         module's definition of mempcpy.
48202         Reported by Paul Eggert.
48203
48204 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48205
48206         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48207         the symbol XYZ before redefining it.  This fixes a problem with
48208         programs that don't use XYZ, when compiled on systems that define
48209         XYZ to something else.
48210
48211 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48212
48213         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48214         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48215         writeable to group or other and (2) is intended to have a special
48216         mode bit that is set or cleared.  In such a case, the directory
48217         should be neither group- nor other-writeable until the special
48218         mode bits are right.
48219
48220 2007-01-31  Eric Blake  <ebb9@byu.net>
48221
48222         * modules/mountlist (Depends-on): Add strstr.
48223
48224         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48225         bug.
48226         * modules/string (Makefile.am): Remove redundant replacement.
48227         * modules/regex (Depends-on): Add mempcpy.
48228
48229 2007-01-31  Bruno Haible  <bruno@clisp.org>
48230
48231         New module description field 'Link'.
48232         * gnulib-tool (func_usage): Document --extract-link-directive.
48233         (sed_extract_prog): Recognize 'Link' directive.
48234         (func_get_link_directive): New function.
48235         (func_import): Show summary of link directives.
48236         Handle --extract-link-directive option.
48237         * modules/acl (Link): New section.
48238         * modules/clock-time (Link): New section.
48239         * modules/euidaccess (Link): New section.
48240         * modules/gettext (Link): New section.
48241         * modules/iconv (Link): New section.
48242         * modules/lock (Link): New section.
48243         * modules/nanosleep (Link): New section.
48244         * modules/readline (Link): New section.
48245
48246 2007-01-27  Bruno Haible  <bruno@clisp.org>
48247
48248         Enforce the use of gnulib modules for unportable <string.h> functions.
48249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48250         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48251         (gl_HEADER_STRING_H_BODY): Require it.
48252         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48253         the symbol XYZ to one that gives a link error.
48254         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48255         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48256         * modules/mempcpy (configure.ac): Likewise.
48257         * modules/memrchr (configure.ac): Likewise.
48258         * modules/stpcpy (configure.ac): Likewise.
48259         * modules/stpncpy (configure.ac): Likewise.
48260         * modules/strcase (configure.ac): Likewise.
48261         * modules/strcasestr (configure.ac): Likewise.
48262         * modules/strchrnul (configure.ac): Likewise.
48263         * modules/strdup (configure.ac): Likewise.
48264         * modules/strndup (configure.ac): Likewise.
48265         * modules/strnlen (configure.ac): Likewise.
48266         * modules/strpbrk (configure.ac): Likewise.
48267         * modules/strsep (configure.ac): Likewise.
48268         * modules/strstr (configure.ac): Likewise.
48269         * modules/strtok_r (configure.ac): Likewise.
48270
48271 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48272
48273         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48274
48275 2007-01-30  Jim Meyering  <jim@meyering.net>
48276
48277         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48278
48279 2007-01-29  Bruno Haible  <bruno@clisp.org>
48280
48281         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48282         * lib/execute.c: Likewise.
48283         * lib/pipe.c: Likewise.
48284         * lib/printf-args.h: Likewise.
48285         * lib/printf-args.c: Likewise.
48286         * lib/printf-parse.c: Likewise.
48287         * lib/vasnprintf.c: Likewise.
48288
48289 2007-01-29  Eric Blake  <ebb9@byu.net>
48290
48291         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48292         declaration.
48293
48294 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48295
48296         * lib/strptime.h (strptime): Use 'restrict' for args where
48297         POSIX requires this.
48298         * lib/strptime.c (strptime): Likewise.
48299         Change license notice from LGPL to GPL, since gnulib-tool will
48300         change this as needed.
48301         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48302         defined.
48303         Include "strptime.h" first, to check interface.
48304         Do not #undef _LIBC and _NL_CURRENT.
48305         Do not include <stdlib.h>; no longer needed.
48306         Include "time_r.h" and declare ptime_locale_status
48307         only if _LIBC is not defined.
48308         (__P): Remove unused macro.
48309         (match_string): Bring back glibc version, but use it only if _LIBC
48310         is defined.
48311         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48312         Remove unnecessary assertion and abort() call.
48313         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48314         * m4/strptime.m4: Fix serial number comment.
48315         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48316         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48317         (Depends-on): Add time_r.
48318
48319 2007-01-29  Bruno Haible  <bruno@clisp.org>
48320
48321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48322         strptime.
48323         * modules/strptime (Depends-on): Add stdbool.
48324         * lib/strptime.h: Include <time.h> always. Add comments.
48325
48326 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48327
48328         * modules/strptime: New file.
48329         * lib/strptime.h: New file.
48330         * lib/strptime.c: New file.
48331         * m4/strptime.m4: New file.
48332
48333 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48334
48335         * MODULES.html.sh: New module mpsort.
48336         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48337
48338         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48339         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48341         All uses changed.
48342         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48343         All uses changed.
48344         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48345         to _Restrict_.
48346         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48347         the parameter matches the prototype.
48348
48349 2007-01-28  Jim Meyering  <jim@meyering.net>
48350
48351         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48352         sys/time.h here, reverting that part of the previous patch:
48353         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48354
48355 2007-01-28  Bruno Haible  <bruno@clisp.org>
48356
48357         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48358         value of $(SYS_TIME_H).
48359         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48360         remove it conditionally, too. [added by Jim Meyering]
48361         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48362         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48363         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48364         GETTIMEOFDAY_REPLACEMENT to 1.
48365
48366 2007-01-28  Bruno Haible  <bruno@clisp.org>
48367
48368         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48369         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48371         Set UNISTD_H instead of UNISTD_H2.
48372         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48373
48374 2007-01-28  Bruno Haible  <bruno@clisp.org>
48375
48376         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48377         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48378
48379 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48380
48381         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
48382         (func_create_testdir): Ensure C locale for `grep' and `tr'
48383         character ranges.
48384         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
48385         ACLOCAL_AMFLAGS parsing state machine.
48386
48387 2007-01-27  Bruno Haible  <bruno@clisp.org>
48388
48389         * modules/unistr/base: Update.
48390
48391 2007-01-27  Bruno Haible  <bruno@clisp.org>
48392
48393         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
48394         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
48395         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48396         modules/unistr/u32-mbtouc.
48397         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
48398         * lib/unistr.h: Update.
48399         * lib/linebreak.c: Update.
48400         * modules/unistr/u32-mbtouc: Renamed from
48401         modules/unistr/u32-mbtouc-safe.
48402         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
48403         * lib/unistr.h: Update.
48404         * lib/unistr/u32-to-u8.c: Update.
48405         * lib/unistr/u32-to-u16.c: Update.
48406
48407 2007-01-27  Bruno Haible  <bruno@clisp.org>
48408
48409         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
48410         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
48411         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
48412         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
48413         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
48414         * modules/unistr/u16-mbtouc-unsafe: Renamed from
48415         modules/unistr/u16-mbtouc.
48416         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
48417         * lib/unistr.h: Update.
48418         * lib/linebreak.c: Update.
48419         * modules/linebreak: Update.
48420         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
48421         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
48422         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
48423         * modules/unistr/u16-mbtouc: Renamed from
48424         modules/unistr/u16-mbtouc-safe.
48425         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
48426         * lib/unistr.h: Update.
48427         * lib/unistr/u16-to-u8.c: Update.
48428         * modules/unistr/u16-to-u8: Update.
48429         * lib/unistr/u16-to-u32.c: Update.
48430         * modules/unistr/u16-to-u32: Update.
48431
48432 2007-01-27  Bruno Haible  <bruno@clisp.org>
48433
48434         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
48435         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
48436         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
48437         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
48438         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
48439         * modules/unistr/u8-mbtouc-unsafe: Renamed from
48440         modules/unistr/u8-mbtouc.
48441         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
48442         * lib/unistr.h: Update.
48443         * lib/striconveh.c: Update.
48444         * modules/striconveh: Update.
48445         * lib/linebreak.c: Update.
48446         * modules/linebreak: Update.
48447         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
48448         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
48449         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
48450         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48451         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48452         * lib/unistr.h: Update.
48453         * lib/striconveh.c: Update.
48454         * modules/striconveh: Update.
48455         * lib/unistr/u8-to-u16.c: Update.
48456         * modules/unistr/u8-to-u16: Update.
48457         * lib/unistr/u8-to-u32.c: Update.
48458         * modules/unistr/u8-to-u32: Update.
48459
48460 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48461
48462         Sync from Libtool.
48463         * lib/argz.c: Do not include strings.h nor memory.h, include
48464         string.h unconditionally.  Patch by Simon Josefsson.
48465
48466 2007-01-27  Bruno Haible  <bruno@clisp.org>
48467
48468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
48469         from gl_HEADER_STRING_H_BODY.
48470         (gl_HEADER_STRING_H_BODY): Require it.
48471         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
48472         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48473         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48474         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48476         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
48477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48478         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48479         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
48480         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48481         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48482         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
48483         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48484         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48485         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48486
48487 2007-01-27  Bruno Haible  <bruno@clisp.org>
48488
48489         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
48490         check_PROGRAMS into noinst_PROGRAMS.
48491         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
48492         check_PROGRAMS in this case.
48493         (func_import): Set for_test to false.
48494         (func_create_testdir): Set for_test to true.
48495
48496 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48497             Bruno Haible  <bruno@clisp.org>
48498
48499         * modules/strcasestr (Files): Remove lib/strcasestr.h.
48500         (Depends-on): Add string.
48501         (Includes): Use <string.h> instead of strcasestr.h.
48502         * modules/string (Makefile.am): Also substitute the value of
48503         REPLACE_STRCASESTR.
48504         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
48505         assume strcasestr is declared in <string.h> not <strings.h>. Also
48506         set REPLACE_STRCASESTR.
48507         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
48508         REPLACE_STRCASESTR.
48509         * lib/strcasestr.h: Remove file.
48510         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
48511         * lib/string_.h (strcasestr): New declaration.
48512
48513 2007-01-27  Bruno Haible  <bruno@clisp.org>
48514
48515         * lib/string_.h: Use 'extern'.
48516
48517 2007-01-27  Jim Meyering  <jim@meyering.net>
48518
48519         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
48520         of set-but-not-used local, "q".
48521
48522         * lib/mempcpy.c: Include <config.h> before <string.h>.
48523         This fixes a compilation error on HP-UX, due to the system's
48524         "restrict"-using mempcpy prototype.
48525
48526 2007-01-26  Bruno Haible  <bruno@clisp.org>
48527
48528         Small optimization.
48529         * lib/javacomp.c: Include c-strstr.h.
48530          (is_envjavac_gcj): Use c_strstr instead of strstr.
48531         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
48532
48533 2007-01-26  Bruno Haible  <bruno@clisp.org>
48534
48535         * MODULES.html.sh (Unicode string functions): Add the new modules.
48536
48537         * modules/uniconv/u32-strconv-to-locale: New file.
48538         * lib/uniconv/u32-strconv-to-locale.c: New file.
48539
48540         * modules/uniconv/u16-strconv-to-locale: New file.
48541         * lib/uniconv/u16-strconv-to-locale.c: New file.
48542
48543         * modules/uniconv/u8-strconv-to-locale: New file.
48544         * lib/uniconv/u8-strconv-to-locale.c: New file.
48545
48546         * modules/uniconv/u32-strconv-from-locale: New file.
48547         * lib/uniconv/u32-strconv-from-locale.c: New file.
48548
48549         * modules/uniconv/u16-strconv-from-locale: New file.
48550         * lib/uniconv/u16-strconv-from-locale.c: New file.
48551
48552         * modules/uniconv/u8-strconv-from-locale: New file.
48553         * lib/uniconv/u8-strconv-from-locale.c: New file.
48554
48555         * modules/uniconv/u32-strconv-to-enc: New file.
48556         * lib/uniconv/u32-strconv-to-enc.c: New file.
48557         * modules/uniconv/u32-strconv-to-enc-tests: New file.
48558         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
48559
48560         * modules/uniconv/u16-strconv-to-enc: New file.
48561         * lib/uniconv/u16-strconv-to-enc.c: New file.
48562         * lib/uniconv/u-strconv-to-enc.h: New file.
48563         * modules/uniconv/u16-strconv-to-enc-tests: New file.
48564         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
48565
48566         * modules/uniconv/u8-strconv-to-enc: New file.
48567         * lib/uniconv/u8-strconv-to-enc.c: New file.
48568         * modules/uniconv/u8-strconv-to-enc-tests: New file.
48569         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
48570
48571         * modules/uniconv/u32-strconv-from-enc: New file.
48572         * lib/uniconv/u32-strconv-from-enc.c: New file.
48573         * modules/uniconv/u32-strconv-from-enc-tests: New file.
48574         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
48575
48576         * modules/uniconv/u16-strconv-from-enc: New file.
48577         * lib/uniconv/u16-strconv-from-enc.c: New file.
48578         * modules/uniconv/u16-strconv-from-enc-tests: New file.
48579         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
48580
48581         * modules/uniconv/u8-strconv-from-enc: New file.
48582         * lib/uniconv/u8-strconv-from-enc.c: New file.
48583         * lib/uniconv/u-strconv-from-enc.h: New file.
48584         * modules/uniconv/u8-strconv-from-enc-tests: New file.
48585         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
48586
48587         * modules/uniconv/u32-conv-from-enc: New file.
48588         * lib/uniconv/u32-conv-from-enc.c: New file.
48589         * modules/uniconv/u32-conv-from-enc-tests: New file.
48590         * tests/uniconv/test-u32-conv-from-enc.c: New file.
48591
48592         * modules/uniconv/u16-conv-from-enc: New file.
48593         * lib/uniconv/u16-conv-from-enc.c: New file.
48594         * lib/uniconv/u-conv-from-enc.h: New file.
48595         * modules/uniconv/u16-conv-from-enc-tests: New file.
48596         * tests/uniconv/test-u16-conv-from-enc.c: New file.
48597
48598         * modules/uniconv/u8-conv-from-enc: New file.
48599         * lib/uniconv/u8-conv-from-enc.c: New file.
48600         * modules/uniconv/u8-conv-from-enc-tests: New file.
48601         * tests/uniconv/test-u8-conv-from-enc.c: New file.
48602
48603         * modules/uniconv/base: New file.
48604         * lib/uniconv.h: New file.
48605
48606 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48607
48608         * doc/gnulib-tool.texi (Initial import): Update to match current
48609         behavior with strdup module.
48610         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
48611         * lib/memmem.h: Remove; all uses removed.  This is now done
48612         by <string.h>.
48613         * lib/mempcpy.h: Likewise.
48614         * lib/memrchr.h: Likewise.
48615         * lib/stpcpy.h: Likewise.
48616         * lib/stpncpy.h: Likewise.
48617         * lib/strcase.h: Likewise.
48618         * lib/strchrnul.h: Likewise.
48619         * lib/strdup.h: Likewise.
48620         * lib/strndup.h: Likewise.
48621         * lib/strnlen.h: Likewise.
48622         * lib/strpbrk.h: Likewise.
48623         * lib/strsep.h: Likewise.
48624         * lib/strstr.h: Likewise.
48625         * lib/strtok_r.h: Likewise.
48626         * lib/string_.h: New file.
48627         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
48628         Rely on <string.h> instead.
48629         * lib/canon-host.c: Likewise.
48630         * lib/chdir-long.c: Likewise.
48631         * lib/concatpath.c: Likewise.
48632         * lib/exclude.c: Likewise.
48633         * lib/fchdir.c: Likewise.
48634         * lib/getaddrinfo.c: Likewise.
48635         * lib/getcwd.c: Likewise.
48636         * lib/getsubopt.c: Likewise.
48637         * lib/glob.c: Likewise.
48638         * lib/hard-locale.c: Likewise.
48639         * lib/iconvme.c: Likewise.
48640         * lib/javacomp.c: Likewise.
48641         * lib/mempcpy.c: Likewise.
48642         * lib/memrchr.c: Likewise.
48643         * lib/regex_internal.h: Likewise.
48644         * lib/stpncpy.c: Likewise.
48645         * lib/strcasecmp.c: Likewise.
48646         * lib/strchrnul.c: Likewise.
48647         * lib/strdup.c: Likewise.
48648         * lib/striconv.c: Likewise.
48649         * lib/striconveh.c: Likewise.
48650         * lib/striconveha.c: Likewise.
48651         * lib/strncasecmp.c: Likewise.
48652         * lib/strndup.c: Likewise.
48653         * lib/strnlen.c: Likewise.
48654         * lib/strsep.c: Likewise.
48655         * lib/strstr.c: Likewise.
48656         * lib/strtok_r.c: Likewise.
48657         * lib/userspec.c: Likewise.
48658         * lib/w32spawn.h: Likewise.
48659         * lib/xstrndup.c: Likewise.
48660         * lib/mountlist.c (strstr): Remove decl.
48661         * m4/string_h.m4: New file.
48662         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
48663         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
48664         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
48665         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
48666         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
48667         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
48668         Set REPLACE_STRCASECMP if necessary.
48669         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
48670         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
48671         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
48672         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
48673         HAVE_DECL_STRDUP if necessary.
48674         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
48675         since gl_FUNC_STRNDUP does that now.
48676         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
48677         Check for decl here...
48678         (gl_PREREQ_STRNLEN): ... not here.
48679         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
48680         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
48681         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
48682         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
48683         necessary.
48684         * modules/string: New file.
48685         * modules/memmem (Files): Remove special-purpose include file.
48686         (Depends-on): Add string.
48687         (Include): Include <string.h>, not the removed file.
48688         * modules/mempcpy: Likewise.
48689         * modules/memrchr: Likewise.
48690         * modules/stpcpy: Likewise.
48691         * modules/stpncpy: Likewise.
48692         * modules/strcase: Likewise.
48693         * modules/strchrnul: Likewise.
48694         * modules/strdup: Likewise.
48695         * modules/strndup: Likewise.
48696         * modules/strnlen: Likewise.
48697         * modules/strpbrk: Likewise.
48698         * modules/strsep: Likewise.
48699         * modules/strstr: Likewise.
48700         * modules/strtok_r: Likewise.
48701         * tests/test-dirname.c: Don't include "strdup.h", since
48702         <string.h> now suffices.
48703         * tests/test-memmem.c: Don't include "memmem.h", since
48704         <string.h> now suffices.
48705
48706 2007-01-25  Bruno Haible  <bruno@clisp.org>
48707
48708         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
48709         *resultp is 0.
48710
48711         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
48712         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
48713         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
48714         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
48715
48716         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
48717         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
48718         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
48719         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
48720         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
48721         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
48722
48723 2007-01-24  Bruno Haible  <bruno@clisp.org>
48724
48725         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
48726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
48727         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
48728         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
48729         gl_FUNC_FTS_CORE.
48730         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
48731         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
48732         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48733         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
48734         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
48735         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
48736         gl_FUNC_FCHOWNAT.
48737         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
48738         gl_FUNC_STRFTIME.
48739         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
48740         Reported by Ralf Wildenhues.
48741
48742 2007-01-24  Bruno Haible  <bruno@clisp.org>
48743
48744         Drop AC_REQUIRE calls that are redundant with the module dependencies.
48745         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
48746         gl_GETADDRINFO.
48747         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
48748         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
48749         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
48750
48751 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
48752
48753         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
48754         Don't use 'exit'; just return from 'main'.
48755         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
48756
48757         * lib/fnmatch_.h: Readjust white space and comments to match
48758         glibc, to avoid spurious diffs.
48759
48760 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48761
48762         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
48763         2004-12-01 change by Jakub Jelinek, since this code won't compile
48764         if !LIBC.  Problem reported by Bob Proulx.
48765
48766 2007-01-23  Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/striconveh.c: Include c-strcaseeq.h.
48769         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
48770         * modules/striconveh (Depends-on): Add c-strcaseeq.
48771
48772 2007-01-23  Bruno Haible  <bruno@clisp.org>
48773
48774         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
48775
48776         * modules/c-strcaseeq: New file.
48777         * lib/c-strcaseeq.h: New file.
48778
48779         * modules/streq: New file.
48780         * lib/streq.h: New file.
48781
48782 2007-01-23  Bruno Haible  <bruno@clisp.org>
48783
48784         * modules/striconveha-tests: New file.
48785         * tests/test-striconveha.c: New file.
48786
48787         * lib/striconveha.h: Include <stdbool.h>.
48788         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
48789         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
48790         (mem_iconveha_notranslit): Renamed from mem_iconveha.
48791         (mem_iconveha): New function.
48792         (str_iconveha_notranslit): Renamed from str_iconveha.
48793         (str_iconveha): New function.
48794         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
48795         c-strcase.
48796
48797 2007-01-23  Bruno Haible  <bruno@clisp.org>
48798
48799         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
48800         encodings without forgiving before trying any encoding with handler.
48801         (str_iconveha): Try all encodings without forgiving before trying any
48802         encoding with handler.
48803
48804 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48805
48806         Import the following changes from libc.
48807
48808         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48809
48810         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
48811
48812         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
48813
48814         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
48815         normal_bracket label.
48816
48817         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
48818
48819         [BZ #361]
48820         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
48821         to normal_bracket after fetching the next character.
48822
48823 2007-01-22  Bruno Haible  <bruno@clisp.org>
48824
48825         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
48826         argument.
48827         * lib/striconveh.c (iconv_carefully_1): New function.
48828         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
48829         argument.
48830         (str_cd_iconveh): Update.
48831         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
48832         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
48833         * tests/test-striconveh.c (MAGIC): New macro.
48834         (new_offsets): New function.
48835         (main): Test call with and without offsets.
48836
48837 2007-01-22  Bruno Haible  <bruno@clisp.org>
48838
48839         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
48840         * modules/sys_select (Makefile.am): Likewise.
48841         * modules/sys_socket (Makefile.am): Likewise.
48842         * modules/sys_time (Makefile.am): Likewise.
48843
48844 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48845
48846         * modules/gettimeofday (License): Change from GPL to LGPL, since
48847         gettimeofday is a library function.
48848
48849 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48850
48851         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
48852
48853 2007-01-21  Bruno Haible  <bruno@clisp.org>
48854
48855         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
48856
48857 2007-01-21  Bruno Haible  <bruno@clisp.org>
48858
48859         * modules/striconveha: New file.
48860         * lib/striconveha.h: New file.
48861         * lib/striconveha.c: New file.
48862         * MODULES.html.sh (Internationalization functions): Add striconveha.
48863         * lib/striconv.c (str_iconv): Optimize the case of an empty input
48864         string.
48865         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
48866
48867 2007-01-21  Bruno Haible  <bruno@clisp.org>
48868
48869         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
48870         * lib/striconveh.c (str_iconveh): Likewise.
48871
48872 2007-01-21  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/striconveh.h (mem_iconveh): New declaration.
48875         * lib/striconveh.c (mem_iconveh): New function.
48876         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
48877
48878 2007-01-21  Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
48881
48882         * lib/striconveh.h (mem_cd_iconveh): Change specification.
48883         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
48884         original result buffer.
48885         (str_cd_iconveh): Update.
48886         * tests/test-striconveh.c (main): Update.
48887
48888         * lib/striconv.h (mem_cd_iconv): Change specification.
48889         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
48890         result buffer.
48891         (str_cd_iconv): Update.
48892         * tests/test-striconv.c (main): Update.
48893
48894 2007-01-21  Bruno Haible  <bruno@clisp.org>
48895
48896         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
48897
48898 2007-01-20  Jim Meyering  <jim@meyering.net>
48899
48900         * lib/userspec.c (parse_with_separator): If a user or group string
48901         starts with "+", skip the corresponding name-to-ID look-up, since
48902         such a look-up must fail: user and group names may not include "+".
48903
48904 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
48905
48906         * lib/poll.c: Include sys/time.h and time.h unconditionally,
48907         since we now assume the sys_time module.
48908         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
48909         check for sys/time.h; no longer needed.
48910         * modules/poll (Depends-on): Depend on sys_time.
48911
48912 2007-01-18  Bruno Haible  <bruno@clisp.org>
48913
48914         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
48915         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
48916
48917         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
48918         gettimeofday.
48919
48920         * tests/test-gettimeofday.c: Include <time.h>.
48921         (dummy): Remove variable.
48922
48923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
48924         gl_HEADER_SYS_TIME_H.
48925         (gl_HEADER_SYS_TIME_H): New macro.
48926
48927         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
48928         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48929         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
48930         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
48931         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48932         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
48933         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
48934         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48935         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
48936         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
48937         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48938
48939         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
48940         last change; it caused a compilation error when cross-compiling to
48941         Cygwin.
48942
48943 2007-01-18  Jim Meyering  <jim@meyering.net>
48944
48945         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
48946         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
48947         than the race-prone "test -d sys || mkdir sys".
48948         (configure.ac): Use AC_PROG_MKDIR_P.
48949         * modules/sys_select: Likewise.
48950         * modules/sys_socket: Likewise.
48951         * modules/sys_time: Likewise.
48952
48953 2007-01-18  Eric Blake  <ebb9@byu.net>
48954
48955         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
48956         replace gettimeofday.
48957         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
48958         name, to avoid infinite recursion.
48959
48960 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
48961
48962         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
48963         module sys_time.
48964         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
48965         assume timespec.h defines struct timeval.
48966         * lib/settime.c: Likewise.
48967         * lib/utimens.c: Likewise.
48968         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
48969         since we now assume the gettimeofday module.
48970         * lib/tempname.c (__gen_tempname): Likewise.
48971         * lib/gettimeofday.h: Remove.
48972         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
48973         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
48974         Include <time.h>, for 'time()'.
48975         (localtime_buffer_addr): Also use this workaround if
48976         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
48977         to simplify the uses.  All uses changed.
48978         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
48979         that #undef is inside {}, and 'const' follows type name consistently.
48980         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
48981         (gettimeofday): Do not use the maximum possible value for
48982         tv->tv_usec, since that might break usages other than ls.c.
48983         Instead, we'll leave ls.c alone.  This undoes today's patch
48984         by Bruno.  Add a compile-time warning for 1s-clock resolution;
48985         we've never observed the problem but might as well keep the
48986         canary.
48987         * lib/nanosleep.c: Include timespec.h first, for interface check.
48988         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
48989         now assume the sys_time module.
48990         * lib/tempname.c: Likewise.
48991         * lib/timespec.h: Likewise.
48992         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
48993         needed.
48994         * lib/strftime.c: Likewise.
48995         * lib/timespec.h: Likewise.
48996         * lib/posixtm.c: Include posixtm.h first, for interface check.
48997         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
48998         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
48999         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49000         * lib/sys_time_.h: New file.
49001         * lib/timespec.h (struct timespec): Use long int, not long.
49002         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49003         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49004         Remove obsolescent call to AC_HEADER_TIME.
49005         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49007         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49008         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49009         Likewise.
49010         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49011         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49012         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49013         into the sys_time module.  Check for gettimeofday just once.
49014         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49015         for gettimeofday signature to just check the signature.  Merely
49016         compile it, since linking doesn't test signature.  Improve test for
49017         whether gettimeofday.o is actually needed.
49018         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49019         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49020         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49021         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49022         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49023         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49024         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49025         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49026         than worrying about sys/time.h.
49027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49028         Don't bother worrying about TIME_WITH_SYS_TIME.
49029         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49030         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49031         * m4/sys_time_h.m4: New file.
49032         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49033         Don't include sys/time.h.  Return from main rather than exiting.
49034         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49035         all uses changed.
49036         * modules/gethrxtime (Depends-on): Add sys_time.
49037         * modules/gettime (Depends-on): Likewise.
49038         * modules/gettimeofday (Depends-on): Likewise.
49039         * modules/nanosleep (Depends-on): Likewise.
49040         * modules/settime (Depends-on): Likewise.
49041         * modules/tempname (Depends-on): Likewise.
49042         * modules/utimens (Depends-on): Likewise.
49043         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49044         (Include:) Change back to <sys/time.h>.
49045         (Maintainer:) Add self.
49046         * modules/sys_time: New file.
49047         * modules/tempname (Depends-on): Add gettimeofday.
49048         * tests/test-gettimeofday.c: Include <sys/time.h>
49049         rather than gettimeofday.h.
49050
49051 2007-01-17  Bruno Haible  <bruno@clisp.org>
49052
49053         * gnulib-tool (func_get_license): Revert last patch. Instead, let
49054         the license default to GPL.
49055         (func_create_testdir): Don't complain if a module is LGPL and its
49056         tests module depends on GPLed modules.
49057
49058 2007-01-17  Bruno Haible  <bruno@clisp.org>
49059
49060         * lib/gettimeofday.c (gettimeofday): Add code for the case
49061         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
49062         maximum possible value for tv->tv_usec, rather than the minimum one.
49063
49064 2005-10-08  Martin Lambers  <marlam@marlam.de>
49065 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49066 2007-01-16  Bruno Haible  <bruno@clisp.org>
49067
49068         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49069         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49070         gl_FUNC_GETTIMEOFDAY.
49071         (Include): Add gettimeofday.h.
49072         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49073         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49074         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49075         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49076         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49077         * lib/gettimeofday.h: New file.
49078         * lib/gettimeofday.c: Include <sys/timeb.h>.
49079         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49080         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49081         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49082         fall back on time().
49083
49084         * tests/test-gettimeofday.c: New file.
49085         * modules/gettimeofday-tests: New file.
49086
49087 2007-01-16  Eric Blake  <ebb9@byu.net>
49088
49089         * modules/fnmatch (Depends-on): Depend on wchar.
49090         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49091         * m4/fnmatch.m4: Likewise.
49092         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49093         * m4/mbchar.m4: Likewise.
49094         * modules/mbswidth (Depends-on): Depend on wchar.
49095         * lib/mbswidth.c: Assume <wchar.h>.
49096         * m4/mbswidth.m4: Likewise.
49097         * modules/quotearg (Depends-on): Depend on wchar.
49098         * lib/quotearg.c: Assume <wchar.h>.
49099         * m4/quotearg.m4: Likewise.
49100         * modules/regex (Depends-on): Depend on wchar.
49101         * lib/regex_internal.h: Assume <wchar.h>.
49102         * m4/regex.m4: Likewise.
49103         * modules/stdint (Depends-on): Depend on wchar.
49104         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49105         * m4/stdint.m4: Likewise.
49106         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49107         * modules/strftime (Depends-on): Depend on wchar.
49108         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49109         * modules/strtol (Depends-on): Depend on wchar.
49110         * lib/strtol.c: Assume <wchar.h>.
49111         * modules/wcwidth (Depends-on): Depend on wchar.
49112         * lib/wcwidth.h: Assume <wchar.h>.
49113         * m4/wcwidth.m4: Likewise.
49114
49115 2007-01-16  Bruno Haible  <bruno@clisp.org>
49116
49117         * modules/csharpexec-script: New, created from...
49118         * modules/csharpexec: ... this.
49119
49120 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49121
49122         * modules/javaexec-script: New, created from...
49123         * modules/javaexec: ... this.
49124
49125 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49126
49127         * modules/poll (Dependencies): Add sys_select.
49128
49129 2007-01-15  Jim Meyering  <jim@meyering.net>
49130
49131         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49132         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49133         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49134         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49135
49136 2007-01-15  Bruno Haible  <bruno@clisp.org>
49137
49138         * modules/striconveh: New file.
49139         * lib/striconveh.h: New file.
49140         * lib/striconveh.c: New file.
49141         * MODULES.html.sh (Internationalization functions): Add striconveh.
49142
49143         * modules/striconveh-tests: New file.
49144         * tests/test-striconveh.c: New file.
49145
49146 2007-01-15  Bruno Haible  <bruno@clisp.org>
49147
49148         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49149         not from GNU libiconv or GNU libc.
49150
49151 2007-01-15  Bruno Haible  <bruno@clisp.org>
49152
49153         * doc/gnulib-intro.texi (Copyright): Explain the different license
49154         terms for module descriptions, autoconf macros, tests, documentation.
49155
49156 2007-01-14  Bruno Haible  <bruno@clisp.org>
49157
49158         * modules/striconv-tests: New file.
49159         * tests/test-striconv.c: New file.
49160
49161 2007-01-14  Bruno Haible  <bruno@clisp.org>
49162
49163         * modules/iconv-tests: New file.
49164         * tests/test-iconv.c: New file.
49165
49166 2007-01-14  Bruno Haible  <bruno@clisp.org>
49167
49168         * gnulib-tool (func_get_license): For test modules, use the license of
49169         the main module.
49170
49171 2007-01-14  Bruno Haible  <bruno@clisp.org>
49172
49173         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49174         if iconv is found to exist.
49175
49176 2007-01-14  Bruno Haible  <bruno@clisp.org>
49177
49178         * modules/c-ctype-tests: New file.
49179         * tests/test-c-ctype.c: New file.
49180
49181 2007-01-14  Bruno Haible  <bruno@clisp.org>
49182
49183         * modules/binary-io-tests: New file.
49184         * tests/test-binary-io.sh: New file.
49185         * tests/test-binary-io.c: New file.
49186
49187 2007-01-14  Bruno Haible  <bruno@clisp.org>
49188
49189         * modules/array-oset-tests: New file.
49190         * tests/test-array_oset.c: New file.
49191
49192 2007-01-14  Bruno Haible  <bruno@clisp.org>
49193
49194         * modules/array-list-tests: New file.
49195         * tests/test-array_list.c: New file.
49196
49197 2007-01-14  Bruno Haible  <bruno@clisp.org>
49198
49199         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49200         and make.
49201         Reported by Simon Josefsson in
49202         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49203
49204 2007-01-14  Bruno Haible  <bruno@clisp.org>
49205
49206         * modules/allocsa-tests: New file.
49207         * tests/test-allocsa.c: New file.
49208
49209 2007-01-14  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/fchdir (Depends-on): Add absolute-header.
49212         * modules/unistd (Depends-on): Likewise.
49213
49214 2006-12-30  Bruno Haible  <bruno@clisp.org>
49215
49216         * modules/fchdir: New file.
49217         * modules/unistd (Files): Add lib/unistd_.h.
49218         (Makefile.am): Generate unistd.h from unistd_.h.
49219         * lib/fchdir.c: New file.
49220         * lib/dirent_.h: New file.
49221         * lib/unistd_.h: New file.
49222         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49223         * m4/fchdir.m4: New file.
49224         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49225         (gl_HEADER_UNISTD): Invoke it.
49226         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49227         function.
49228         * lib/backupfile.c (opendir, closedir): Undefine.
49229         * lib/chown.c (open, close): Undefine.
49230         * lib/clean-temp.c (open, close): Undefine.
49231         * lib/copy-file.c (open, close): Undefine.
49232         * lib/execute.c (open, close): Undefine.
49233         * lib/fsusage.c (open, close): Undefine.
49234         * lib/gc-gnulib.c (open, close): Undefine.
49235         * lib/getcwd.c (opendir, closedir): Undefine.
49236         * lib/glob.c (opendir, closedir): Undefine.
49237         * lib/javacomp.c (open, close): Undefine.
49238         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49239         * lib/openat-proc.c (open, close): Undefine.
49240         * lib/pagealign_alloc.c (open, close): Undefine.
49241         * lib/pipe.c (open, close): Undefine.
49242         * lib/progreloc.c (open, close): Undefine.
49243         * lib/savedir.c (opendir, closedir): Undefine.
49244         * lib/utime.c (open, close): Undefine.
49245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49246
49247 2007-01-10  Bruno Haible  <bruno@clisp.org>
49248
49249         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49250
49251 2007-01-12  Eric Blake  <ebb9@byu.net>
49252
49253         Provide a robust <wchar.h>.  Further simplifications are now
49254         possible in other modules, but not included here.
49255         * modules/wchar: New module.
49256         * m4/wchar.m4: New file.
49257         * lib/wchar_.h: Likewise.
49258         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49259         of the new module.
49260         * MODULES.html.sh (Extended multibyte and wide character utilities):
49261         New section.
49262
49263 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49264
49265         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49266         to a reasonable default for memory allocation.
49267         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49268         file system that reports garbage st_size values for symlinks.
49269         Problem reported by Liyang Hu.
49270
49271 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49272
49273         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49274         Emacs .#* auto-save files).
49275
49276 2007-01-11  Bruno Haible  <bruno@clisp.org>
49277
49278         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49279         directory.
49280
49281 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49282
49283         Use @...@ consistently in lib/wctype_.h.
49284         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49285         on it being set to 1 or 0.
49286         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49287         go back to AC_SUBSTing it.
49288         * modules/wctype (Makefile.am): Undo previous change.
49289
49290 2007-01-10  Eric Blake  <ebb9@byu.net>
49291
49292         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49293         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49294         * modules/wctype (Makefile.am): Likewise.
49295         Reported by Chris McGuire.
49296
49297 2007-01-10  Jim Meyering  <jim@meyering.net>
49298
49299         fts.c: a small readability/maintainability improvement
49300         * lib/fts.c (fts_read): Make this code slightly more readable and
49301         maintainable by hoisting the "sp->fts_cur = p" assignments to
49302         immediately follow the statements that set P.  Derived from
49303         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49304
49305 2007-01-10  Eric Blake  <ebb9@byu.net>
49306
49307         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49308         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49310         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49311         Reported by Chris McGuire.
49312
49313 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49314
49315         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49316         in sed script.
49317
49318 2007-01-09  Bruno Haible  <bruno@clisp.org>
49319
49320         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49321         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49322         variables.
49323         (func_module): Use them.
49324
49325 2007-01-09  Bruno Haible  <bruno@clisp.org>
49326
49327         * modules/unistr/base: New file.
49328         * lib/unistr.h: New file.
49329
49330         * modules/unistr/u8-to-u16: New file.
49331         * lib/unistr/u8-to-u16.c: New file.
49332
49333         * modules/unistr/u8-to-u32: New file.
49334         * lib/unistr/u8-to-u32.c: New file.
49335
49336         * modules/unistr/u16-to-u8: New file.
49337         * lib/unistr/u16-to-u8.c: New file.
49338
49339         * modules/unistr/u16-to-u32: New file.
49340         * lib/unistr/u16-to-u32.c: New file.
49341
49342         * modules/unistr/u32-to-u8: New file.
49343         * lib/unistr/u32-to-u8.c: New file.
49344
49345         * modules/unistr/u32-to-u16: New file.
49346         * lib/unistr/u32-to-u16.c: New file.
49347
49348         * modules/unistr/u8-check: New file.
49349         * modules/unistr/u16-check: New file.
49350         * modules/unistr/u32-check: New file.
49351         * lib/unistr/u8-check.c: New file.
49352         * lib/unistr/u16-check.c: New file.
49353         * lib/unistr/u32-check.c: New file.
49354
49355         * modules/unistr/u8-chr: New file.
49356         * modules/unistr/u16-chr: New file.
49357         * modules/unistr/u32-chr: New file.
49358         * lib/unistr/u8-chr.c: New file.
49359         * lib/unistr/u16-chr.c: New file.
49360         * lib/unistr/u32-chr.c: New file.
49361
49362         * modules/unistr/u8-cmp: New file.
49363         * modules/unistr/u16-cmp: New file.
49364         * modules/unistr/u32-cmp: New file.
49365         * lib/unistr/u8-cmp.c: New file.
49366         * lib/unistr/u16-cmp.c: New file.
49367         * lib/unistr/u32-cmp.c: New file.
49368
49369         * modules/unistr/u8-cpy: New file.
49370         * modules/unistr/u16-cpy: New file.
49371         * modules/unistr/u32-cpy: New file.
49372         * lib/unistr/u8-cpy.c: New file.
49373         * lib/unistr/u16-cpy.c: New file.
49374         * lib/unistr/u32-cpy.c: New file.
49375         * lib/unistr/u-cpy.h: New file.
49376
49377         * modules/unistr/u8-cpy-alloc: New file.
49378         * modules/unistr/u16-cpy-alloc: New file.
49379         * modules/unistr/u32-cpy-alloc: New file.
49380         * lib/unistr/u8-cpy-alloc.c: New file.
49381         * lib/unistr/u16-cpy-alloc.c: New file.
49382         * lib/unistr/u32-cpy-alloc.c: New file.
49383         * lib/unistr/u-cpy-alloc.h: New file.
49384
49385         * modules/unistr/u8-endswith: New file.
49386         * modules/unistr/u16-endswith: New file.
49387         * modules/unistr/u32-endswith: New file.
49388         * lib/unistr/u8-endswith.c: New file.
49389         * lib/unistr/u16-endswith.c: New file.
49390         * lib/unistr/u32-endswith.c: New file.
49391         * lib/unistr/u-endswith.h: New file.
49392
49393         * modules/unistr/u8-mblen: New file.
49394         * modules/unistr/u16-mblen: New file.
49395         * modules/unistr/u32-mblen: New file.
49396         * lib/unistr/u8-mblen.c: New file.
49397         * lib/unistr/u16-mblen.c: New file.
49398         * lib/unistr/u32-mblen.c: New file.
49399
49400         * modules/unistr/u8-mbtouc: New file.
49401         * modules/unistr/u16-mbtouc: New file.
49402         * modules/unistr/u32-mbtouc: New file.
49403         * lib/unistr/u8-mbtouc.c: New file.
49404         * lib/unistr/u16-mbtouc.c: New file.
49405         * lib/unistr/u32-mbtouc.c: New file.
49406
49407         * modules/unistr/u8-mbtouc-safe: New file.
49408         * modules/unistr/u16-mbtouc-safe: New file.
49409         * modules/unistr/u32-mbtouc-safe: New file.
49410         * lib/unistr/u8-mbtouc-safe.c: New file.
49411         * lib/unistr/u16-mbtouc-safe.c: New file.
49412         * lib/unistr/u32-mbtouc-safe.c: New file.
49413
49414         * modules/unistr/u8-move: New file.
49415         * modules/unistr/u16-move: New file.
49416         * modules/unistr/u32-move: New file.
49417         * lib/unistr/u8-move.c: New file.
49418         * lib/unistr/u16-move.c: New file.
49419         * lib/unistr/u32-move.c: New file.
49420         * lib/unistr/u-move.h: New file.
49421
49422         * modules/unistr/u8-next: New file.
49423         * modules/unistr/u16-next: New file.
49424         * modules/unistr/u32-next: New file.
49425         * lib/unistr/u8-next.c: New file.
49426         * lib/unistr/u16-next.c: New file.
49427         * lib/unistr/u32-next.c: New file.
49428
49429         * modules/unistr/u8-prev: New file.
49430         * modules/unistr/u16-prev: New file.
49431         * modules/unistr/u32-prev: New file.
49432         * lib/unistr/u8-prev.c: New file.
49433         * lib/unistr/u16-prev.c: New file.
49434         * lib/unistr/u32-prev.c: New file.
49435
49436         * modules/unistr/u8-set: New file.
49437         * modules/unistr/u16-set: New file.
49438         * modules/unistr/u32-set: New file.
49439         * lib/unistr/u8-set.c: New file.
49440         * lib/unistr/u16-set.c: New file.
49441         * lib/unistr/u32-set.c: New file.
49442         * lib/unistr/u-set.h: New file.
49443
49444         * modules/unistr/u8-startswith: New file.
49445         * modules/unistr/u16-startswith: New file.
49446         * modules/unistr/u32-startswith: New file.
49447         * lib/unistr/u8-startswith.c: New file.
49448         * lib/unistr/u16-startswith.c: New file.
49449         * lib/unistr/u32-startswith.c: New file.
49450         * lib/unistr/u-startswith.h: New file.
49451
49452         * modules/unistr/u8-stpcpy: New file.
49453         * modules/unistr/u16-stpcpy: New file.
49454         * modules/unistr/u32-stpcpy: New file.
49455         * lib/unistr/u8-stpcpy.c: New file.
49456         * lib/unistr/u16-stpcpy.c: New file.
49457         * lib/unistr/u32-stpcpy.c: New file.
49458         * lib/unistr/u-stpcpy.h: New file.
49459
49460         * modules/unistr/u8-stpncpy: New file.
49461         * modules/unistr/u16-stpncpy: New file.
49462         * modules/unistr/u32-stpncpy: New file.
49463         * lib/unistr/u8-stpncpy.c: New file.
49464         * lib/unistr/u16-stpncpy.c: New file.
49465         * lib/unistr/u32-stpncpy.c: New file.
49466         * lib/unistr/u-stpncpy.h: New file.
49467
49468         * modules/unistr/u8-strcat: New file.
49469         * modules/unistr/u16-strcat: New file.
49470         * modules/unistr/u32-strcat: New file.
49471         * lib/unistr/u8-strcat.c: New file.
49472         * lib/unistr/u16-strcat.c: New file.
49473         * lib/unistr/u32-strcat.c: New file.
49474         * lib/unistr/u-strcat.h: New file.
49475
49476         * modules/unistr/u8-strchr: New file.
49477         * modules/unistr/u16-strchr: New file.
49478         * modules/unistr/u32-strchr: New file.
49479         * lib/unistr/u8-strchr.c: New file.
49480         * lib/unistr/u16-strchr.c: New file.
49481         * lib/unistr/u32-strchr.c: New file.
49482
49483         * modules/unistr/u8-strcmp: New file.
49484         * modules/unistr/u16-strcmp: New file.
49485         * modules/unistr/u32-strcmp: New file.
49486         * lib/unistr/u8-strcmp.c: New file.
49487         * lib/unistr/u16-strcmp.c: New file.
49488         * lib/unistr/u32-strcmp.c: New file.
49489
49490         * modules/unistr/u8-strcpy: New file.
49491         * modules/unistr/u16-strcpy: New file.
49492         * modules/unistr/u32-strcpy: New file.
49493         * lib/unistr/u8-strcpy.c: New file.
49494         * lib/unistr/u16-strcpy.c: New file.
49495         * lib/unistr/u32-strcpy.c: New file.
49496         * lib/unistr/u-strcpy.h: New file.
49497
49498         * modules/unistr/u8-strcspn: New file.
49499         * modules/unistr/u16-strcspn: New file.
49500         * modules/unistr/u32-strcspn: New file.
49501         * lib/unistr/u8-strcspn.c: New file.
49502         * lib/unistr/u16-strcspn.c: New file.
49503         * lib/unistr/u32-strcspn.c: New file.
49504         * lib/unistr/u-strcspn.h: New file.
49505
49506         * modules/unistr/u8-strdup: New file.
49507         * modules/unistr/u16-strdup: New file.
49508         * modules/unistr/u32-strdup: New file.
49509         * lib/unistr/u8-strdup.c: New file.
49510         * lib/unistr/u16-strdup.c: New file.
49511         * lib/unistr/u32-strdup.c: New file.
49512         * lib/unistr/u-strdup.h: New file.
49513
49514         * modules/unistr/u8-strlen: New file.
49515         * modules/unistr/u16-strlen: New file.
49516         * modules/unistr/u32-strlen: New file.
49517         * lib/unistr/u8-strlen.c: New file.
49518         * lib/unistr/u16-strlen.c: New file.
49519         * lib/unistr/u32-strlen.c: New file.
49520         * lib/unistr/u-strlen.h: New file.
49521
49522         * modules/unistr/u8-strmblen: New file.
49523         * modules/unistr/u16-strmblen: New file.
49524         * modules/unistr/u32-strmblen: New file.
49525         * lib/unistr/u8-strmblen.c: New file.
49526         * lib/unistr/u16-strmblen.c: New file.
49527         * lib/unistr/u32-strmblen.c: New file.
49528
49529         * modules/unistr/u8-strmbtouc: New file.
49530         * modules/unistr/u16-strmbtouc: New file.
49531         * modules/unistr/u32-strmbtouc: New file.
49532         * lib/unistr/u8-strmbtouc.c: New file.
49533         * lib/unistr/u16-strmbtouc.c: New file.
49534         * lib/unistr/u32-strmbtouc.c: New file.
49535
49536         * modules/unistr/u8-strncat: New file.
49537         * modules/unistr/u16-strncat: New file.
49538         * modules/unistr/u32-strncat: New file.
49539         * lib/unistr/u8-strncat.c: New file.
49540         * lib/unistr/u16-strncat.c: New file.
49541         * lib/unistr/u32-strncat.c: New file.
49542         * lib/unistr/u-strncat.h: New file.
49543
49544         * modules/unistr/u8-strncmp: New file.
49545         * modules/unistr/u16-strncmp: New file.
49546         * modules/unistr/u32-strncmp: New file.
49547         * lib/unistr/u8-strncmp.c: New file.
49548         * lib/unistr/u16-strncmp.c: New file.
49549         * lib/unistr/u32-strncmp.c: New file.
49550
49551         * modules/unistr/u8-strncpy: New file.
49552         * modules/unistr/u16-strncpy: New file.
49553         * modules/unistr/u32-strncpy: New file.
49554         * lib/unistr/u8-strncpy.c: New file.
49555         * lib/unistr/u16-strncpy.c: New file.
49556         * lib/unistr/u32-strncpy.c: New file.
49557         * lib/unistr/u-strncpy.h: New file.
49558
49559         * modules/unistr/u8-strnlen: New file.
49560         * modules/unistr/u16-strnlen: New file.
49561         * modules/unistr/u32-strnlen: New file.
49562         * lib/unistr/u8-strnlen.c: New file.
49563         * lib/unistr/u16-strnlen.c: New file.
49564         * lib/unistr/u32-strnlen.c: New file.
49565         * lib/unistr/u-strnlen.h: New file.
49566
49567         * modules/unistr/u8-strpbrk: New file.
49568         * modules/unistr/u16-strpbrk: New file.
49569         * modules/unistr/u32-strpbrk: New file.
49570         * lib/unistr/u8-strpbrk.c: New file.
49571         * lib/unistr/u16-strpbrk.c: New file.
49572         * lib/unistr/u32-strpbrk.c: New file.
49573         * lib/unistr/u-strpbrk.h: New file.
49574
49575         * modules/unistr/u8-strrchr: New file.
49576         * modules/unistr/u16-strrchr: New file.
49577         * modules/unistr/u32-strrchr: New file.
49578         * lib/unistr/u8-strrchr.c: New file.
49579         * lib/unistr/u16-strrchr.c: New file.
49580         * lib/unistr/u32-strrchr.c: New file.
49581
49582         * modules/unistr/u8-strspn: New file.
49583         * modules/unistr/u16-strspn: New file.
49584         * modules/unistr/u32-strspn: New file.
49585         * lib/unistr/u8-strspn.c: New file.
49586         * lib/unistr/u16-strspn.c: New file.
49587         * lib/unistr/u32-strspn.c: New file.
49588         * lib/unistr/u-strspn.h: New file.
49589
49590         * modules/unistr/u8-strstr: New file.
49591         * modules/unistr/u16-strstr: New file.
49592         * modules/unistr/u32-strstr: New file.
49593         * lib/unistr/u8-strstr.c: New file.
49594         * lib/unistr/u16-strstr.c: New file.
49595         * lib/unistr/u32-strstr.c: New file.
49596         * lib/unistr/u-strstr.h: New file.
49597
49598         * modules/unistr/u8-strtok: New file.
49599         * modules/unistr/u16-strtok: New file.
49600         * modules/unistr/u32-strtok: New file.
49601         * lib/unistr/u8-strtok.c: New file.
49602         * lib/unistr/u16-strtok.c: New file.
49603         * lib/unistr/u32-strtok.c: New file.
49604         * lib/unistr/u-strtok.h: New file.
49605
49606         * modules/unistr/u8-uctomb: New file.
49607         * modules/unistr/u16-uctomb: New file.
49608         * modules/unistr/u32-uctomb: New file.
49609         * lib/unistr/u8-uctomb.c: New file.
49610         * lib/unistr/u16-uctomb.c: New file.
49611         * lib/unistr/u32-uctomb.c: New file.
49612
49613         * MODULES.html.sh (Unicode string functions): Add the new modules.
49614
49615 2007-01-08  Bruno Haible  <bruno@clisp.org>
49616
49617         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
49618         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
49619         subdirectories.
49620
49621 2007-01-08  Karl Berry  <karl@gnu.org>
49622
49623         * doc/error.texi: mention that main() fns must set program_name
49624         when progname is used.
49625
49626 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
49627
49628         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
49629         WCTYPE_H is empty, for the benefit of builds from non-distclean
49630         directories.  Problem reported by Eric Blake in
49631         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
49632
49633 2007-01-08  Bruno Haible  <bruno@clisp.org>
49634
49635         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
49636         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
49637         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
49638         PROVIDE_CANONICALIZE_FILENAME_MODE.
49639         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
49640
49641 2007-01-08  Bruno Haible  <bruno@clisp.org>
49642
49643         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
49644         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
49645         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
49646         * lib/fts.c: Likewise.
49647         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
49648
49649 2006-12-25  Bruno Haible  <bruno@clisp.org>
49650
49651         * modules/utf8-ucs4-safe: New file.
49652         * lib/utf8-ucs4-safe.h: New file.
49653         * lib/unistr/utf8-ucs4-safe.c: New file.
49654
49655         * modules/utf16-ucs4-safe: New file.
49656         * lib/utf16-ucs4-safe.h: New file.
49657         * lib/unistr/utf16-ucs4-safe.c: New file.
49658
49659         * MODULES.html.sh (Unicode string functions): Add the new modules.
49660
49661 2007-01-08  Bruno Haible  <bruno@clisp.org>
49662
49663         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
49664         (Depends-on): Add unitypes.
49665         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49666         (u8_mbtouc_aux): Move out to separate file.
49667         (u8_mbtouc): Use ucs4_t, uint8_t types.
49668         * lib/unistr/utf8-ucs4.c: New file.
49669
49670         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
49671         (Depends-on): Add unitypes.
49672         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49673         (u16_mbtouc_aux): Move out to separate file.
49674         (u16_mbtouc): Use ucs4_t, uint16_t types.
49675         * lib/unistr/utf16-ucs4.c: New file.
49676
49677         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
49678         (Depends-on): Add unitypes.
49679         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
49680         (u8_uctomb_aux): Move out to separate file.
49681         (u8_uctomb): Use ucs4_t, uint8_t types.
49682         * lib/unistr/ucs4-utf8.c: New file.
49683
49684         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
49685         (Depends-on): Add unitypes.
49686         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
49687         (u16_uctomb_aux): Move out to separate file.
49688         (u16_uctomb): Use ucs4_t, uint16_t types.
49689         * lib/unistr/ucs4-utf16.c: New file.
49690
49691 2006-12-25  Bruno Haible  <bruno@clisp.org>
49692
49693         * modules/unitypes: New file.
49694         * lib/unitypes.h: New file.
49695         * MODULES.html.sh (func_all_modules): New section "Unicode string
49696         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
49697         this section. Add unitypes.
49698
49699 2007-01-08  Bruno Haible  <bruno@clisp.org>
49700
49701         Avoid variable names that conflict with those from libtool.
49702         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
49703         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
49704         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
49705         library_names_spec to acl_library_names_spec, hardcode_* to
49706         acl_hardcode_*.
49707         Reported by Ralf Wildenhues.
49708
49709 2007-01-08  Bruno Haible  <bruno@clisp.org>
49710
49711         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
49712         definition.
49713         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
49714         definition.
49715         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
49716         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
49717         definition.
49718         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
49719         definition.
49720         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
49721         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
49722         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
49723         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
49724         definition.
49725         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
49726         definition.
49727         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
49728         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
49729         GC_USE_<algorithm>.
49730         * lib/gc-libgcrypt.c: Likewise.
49731         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
49732         * modules/gc-arctwo (configure.ac): Likewise.
49733         * modules/gc-des (configure.ac): Likewise.
49734         * modules/gc-hmac-md5 (configure.ac): Likewise.
49735         * modules/gc-hmac-sha1 (configure.ac): Likewise.
49736         * modules/gc-md2 (configure.ac): Likewise.
49737         * modules/gc-md4 (configure.ac): Likewise.
49738         * modules/gc-md5 (configure.ac): Likewise.
49739         * modules/gc-random (configure.ac): Likewise.
49740         * modules/gc-rijndael (configure.ac): Likewise.
49741         * modules/gc-sha1 (configure.ac): Likewise.
49742
49743 2007-01-08  Bruno Haible  <bruno@clisp.org>
49744
49745         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
49746         macro definition.
49747         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
49748         definition.
49749         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
49750         definition.
49751         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
49752         * modules/fcntl-safer (configure.ac): Likewise.
49753         * modules/fopen-safer (configure.ac): Likewise.
49754         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
49755         GNULIB_FWRITEERROR macro definition.
49756
49757 2007-01-08  Bruno Haible  <bruno@clisp.org>
49758
49759         * m4/gnulib-common.m4: New file.
49760         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
49761         (func_get_filelist): Add m4/gnulib-common.m4.
49762
49763 2007-01-08  Bruno Haible  <bruno@clisp.org>
49764
49765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
49766         command.
49767
49768 2007-01-08  Jim Meyering  <jim@meyering.net>
49769
49770         Use a more robust test for a "can't happen" condition.
49771         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
49772         narrowed the st_size value.  Presuming the "can't happen" condition
49773         is true, that narrowing could conceivably convert an invalid st_size
49774         value into a valid one.  Instead, use a change based on Matthew
49775         Woehlke's original patch.
49776
49777         Slight readability improvement: use an assert-like macro
49778         in place of literal "abort ()" uses.
49779         * lib/fts.c (fts_assert): Define.
49780         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
49781         Use this macro instead of a bare 'abort'.
49782
49783 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
49784
49785         Don't worry about using IRIX 5.3's wctype.h broken definitions;
49786         simply work around them.
49787         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
49788         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
49789         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
49790         declaring.
49791         Don't bother to define as macros, since the standard doesn't require it.
49792         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
49793         longer worry about IRIX 5.3.
49794         (HAVE_WCTYPE_CTMP_BUG): Remove.
49795
49796 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49797
49798         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
49799         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
49800         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49801         Problems reported by Georg Schwarz for IRIX 5.3.
49802
49803         * gnulib-tool (autoconf_minversion): Take the maximum version number
49804         found, not the minimum.  Problem reported by James Youngman.
49805
49806 2007-01-03  Karl Berry  <karl@gnu.org>
49807
49808         * doc/error.texi: new file, explaining interaction with progname.
49809         * doc/gnulib.texi: include it.  Update copyright.
49810
49811 2007-01-03  Simon Josefsson  <simon@josefsson.org>
49812
49813         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
49814         AC_CANONICAL_HOST, to improve autobuild outputs.
49815
49816 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
49817             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49818
49819         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
49820         sockets, server sockets, and other file descriptors.  Count errors
49821         to compute the return value.  Reorder the code a bit to be easier
49822         to follow.  Don't set event bits that were not requested (except
49823         POLLERR and POLLHUP).
49824
49825 2007-01-01  Bruno Haible  <bruno@clisp.org>
49826
49827         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
49828
49829 2007-01-03  Jim Meyering  <jim@meyering.net>
49830
49831         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
49832
49833 2007-01-02  Bruno Haible  <bruno@clisp.org>
49834
49835         * modules/settime (Include): Require timespec.h.
49836         * modules/nanosleep (Include): Likewise.
49837
49838 2007-01-01  Bruno Haible  <bruno@clisp.org>
49839
49840         * gnulib-tool (func_emit_copyright_notice): Bump year.
49841         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
49842
49843 2007-01-01  Bruno Haible  <bruno@clisp.org>
49844
49845         Improve support for OpenBSD.
49846         * build-aux/config.rpath (libname_spec): Export.
49847         (library_names_spec): New variable. Export.
49848         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
49849         library_names_spec from the config.rpath output. Locate shared library
49850         through the name pattern in library_names_spec.
49851
49852 2007-01-01  Eric Blake  <ebb9@byu.net>
49853
49854         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
49855
49856 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
49857
49858         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
49859         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
49860         assume the C locale, and avoid an "eval" that could cause trouble.
49861         Problem with SORT reported by Bob Proulx.
49862
49863         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
49864         Define.  Trivial patch from Henning Nielsen Lund, originally
49865         sent to bug-grep@gnu.org today.
49866
49867 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49868
49869         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
49870         struct stat.  Problem reported by Henning Nielsen Lund.
49871         * lib/acl.c: Include acl.h first, to check interface.  Don't
49872         bother to include sys/types.h and sys/stat.h again.
49873
49874 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49875
49876         Import the following change from libc; problem reported by
49877         Sven Verdoolaege.
49878
49879         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
49880
49881         [BZ #1373]
49882         * lib/argp.h: Remove __NTH for __argp_usage inline function.
49883
49884 2006-12-28  Jim Meyering  <jim@meyering.net>
49885
49886         * build-aux/announce-gen: Do not assume that the package
49887         builds any of tar.gz, tar.bz2, and .xdelta files.
49888         Suggestion from Simon Josefsson.
49889
49890 2006-12-28  Simon Josefsson  <simon@josefsson.org>
49891
49892         * modules/announce-gen: New file.
49893
49894 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
49895
49896         * lib/mbchar.h: Just include <wctype.h>; the wctype module
49897         handles its gotchas now.
49898         * lib/mbswidth.c: Likewise.
49899         * lib/wcwidth.h: Likewise.
49900         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
49901         and iswcntrl; the wctype module does this stuff now.
49902         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49904         * modules/mbchar (Depends-on): Add wctype.
49905         * modules/mbswidth (Depends-on): Likewise.
49906         * modules/wcwidth (Depends-on): Likewise.
49907
49908 2006-12-27  Eric Blake  <ebb9@byu.net>
49909
49910         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
49911         module uses more than what <wctype.h> is required to provide.
49912
49913 2006-12-26  Eric Blake  <ebb9@byu.net>
49914
49915         * gnulib-tool (sed_extract_prog): Avoid space-tab.
49916
49917 2006-12-26  Eric Blake  <ebb9@byu.net>
49918
49919         * modules/absolute-header: New module.
49920         * modules/fcntl (Depends-on): Depend on it.
49921         * modules/inttypes (Depends-on): Likewise.
49922         * modules/stdint (Depends-on): Likewise.
49923         * modules/sys_stat (Depends-on): Likewise.
49924         * modules/wctype (Depends-on): Likewise.
49925         * MODULES.html.sh (Support for building libraries and
49926         executables): Document it.
49927
49928 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49929
49930         * gnulib-tool (SED): Remove, undoing previous change.
49931         The problem was that it broke coreutils on Solaris, because
49932         "sed --posix" leaked into a makefile.
49933         (sed): New alias, if 'alias' and GNU sed.
49934
49935 2006-12-24  Jim Meyering  <jim@meyering.net>
49936
49937         Work around an fchownat bug in glibc-2.4:
49938         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
49939         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
49940         in spite of the -P option.
49941         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
49942         New macros.
49943         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
49944         * modules/openat (Files): Add lib/fchownat.c.
49945         * lib/openat.c (fchownat): Don't define here.  Move to...
49946         * lib/fchownat.c: ...this new file.
49947
49948 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49949
49950         Fix bug reported by Bruno Haible in
49951         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
49952         where quotearg.c didn't compile on Mac OS X 10.2 because it
49953         lacks <wchar.h> and wint_t.
49954         * lib/wctype_.h (__wctype_wint_t): New type.
49955         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
49956         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
49957         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
49958         Arg is now of type __wctype_wint_t, not wint_t.
49959         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
49960         substitute HAVE_WINT_T.
49961         * modules/wctype (Files): Add m4/wint_t.m4.
49962         (wctype.h): Substitute HAVE_WINT_T.
49963
49964 2006-12-23  Bruno Haible  <bruno@clisp.org>
49965
49966         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
49967
49968 2006-12-23  Bruno Haible  <bruno@clisp.org>
49969
49970         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
49971         S_ISLNK.
49972         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
49973         mingw.
49974
49975 2006-12-22  Bruno Haible  <bruno@clisp.org>
49976
49977         * lib/copy-file.c: Include acl.h.
49978         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
49979         Close the file descriptors only after being done with copy_acl.
49980         * modules/copy-file (Depends-on): Add acl.
49981
49982 2006-12-22  Bruno Haible  <bruno@clisp.org>
49983
49984         * gnulib-tool (SED): New variable.
49985         Use $SED instead of sed everywhere.
49986
49987 2006-12-22  Bruno Haible  <bruno@clisp.org>
49988
49989         * modules/no-c++: New file.
49990         * m4/no-c++.m4: New file.
49991         * MODULES.html.sh (Support for building libraries and executables):
49992         Add no-c++.
49993
49994 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
49995
49996         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49997         Include <limits.h>, and use its INT_MAX to rewrite the
49998         j loop so that it does not overflow 'int'.  Problem reported by
49999         Ralf Wildenhues in
50000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50001         Play it safe by shifting left by 1 rather than multiplying by 2,
50002         as GCC is less likely to optimize this away when the value
50003         is signed (when it assumes overflow leads to undefined behavior).
50004         Also, don't assume time_t uses two's complement.
50005
50006 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50007
50008         * MODULES.html.sh: New module wctype.
50009         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50010         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50011         <wctype.h>, since the new wctype module should fix this.
50012         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50013         the wctype module should arrange for it.
50014         * lib/regex_internal.h: Likewise.
50015         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50016         since the wctype module should handle this now.
50017         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50018         * modules/fnmatch (Depends-on): Add wctype.
50019         * modules/quotearg (Depends-on): Likewise.
50020         * modules/regex (Depends-on): Likewise.
50021
50022 2006-12-19  Bruno Haible  <bruno@clisp.org>
50023
50024         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50025         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50026
50027 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50028
50029         * modules/savewd (Depends-on): Fix dependency on fcntl.
50030
50031 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50032
50033         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50034         conforms to C99, rather than relying on the user's environment
50035         setting of STDINT_H.
50036
50037 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50038         and Eric Blake  <ebb9@byu.net>
50039
50040         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50041         This is more consistent with the other defines here.
50042         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50043         Port to z/OS.  Problem reported by Paul Gilmartin.
50044         Change local vars to use gl_ prefix rather than ac_.
50045         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
50046         with other defines.
50047         * modules/double-slash-root: New module.
50048         * modules/dirname (Files): Remove m4/double-slash-root.m4.
50049         (Depends-on): Add double-slash-root.
50050         * MODULES.html.sh (File system functions): Mention new module.
50051
50052 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
50053
50054         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
50055         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
50056         This is for the benefit of gzip, which doesn't do i18n.
50057
50058 2006-12-12  Jim Meyering  <jim@meyering.net>
50059
50060         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
50061         Reported by Andreas Schwab <schwab@suse.de>.
50062
50063 2006-12-12  Bruno Haible  <bruno@clisp.org>
50064
50065         Merge these changes.
50066         2006-09-05  Bruno Haible  <bruno@clisp.org>
50067         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50068         iconv_alloc succeeded.
50069         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50070         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50071         test for " && dest " at the end - dest is always != NULL there. Call
50072         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50073         with 2xNULL arguments, also to flush the state storage. Handle the
50074         IRIX iconv behaviour. Realloc the final result, to throw away unused
50075         memory.
50076
50077 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50078
50079         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50080         and fchmodat unconditionally, since glibc 2.4 has them.
50081         Problem reported by Arkadiusz Miskiewicz.
50082
50083 2006-12-10  Bruno Haible  <bruno@clisp.org>
50084
50085         * gnulib-tool (func_import): Show the include files only for those
50086         modules that are copied and specified.
50087         Reported by Karl Berry.
50088
50089 2006-12-08  Jim Meyering  <jim@meyering.net>
50090
50091         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50092         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50093
50094         * build-aux/announce-gen: Add two new options, both optional:
50095         --bootstrap-tools=TOOL_LIST
50096               a comma-separated list of tools, e.g.,
50097               autoconf,automake,bison,gnulib
50098         --gnulib-snapshot-date=DATE
50099               if gnulib is in the bootstrap tool list,
50100               then report this as the snapshot date.
50101               If not specified, use the current date/time.
50102               If you specify a date here, be sure it's UTC.
50103
50104 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50105
50106         * tests/test-argp-2.sh: Fix test to match actual output.
50107         (func_compare): Fix sed script to be portable.
50108
50109 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50110
50111         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50112         workaround for this case.  It is not autoconfigured now; offhand
50113         it's hard to see how to autoconfigure it.
50114
50115 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50116
50117         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50118         a directory that is about to be chowned.  Such a directory's
50119         initial file permissions should permit the owner only and this
50120         should not be changed until after the chown, since the group and
50121         other bits would be incorrect if they granted permission before
50122         the chown.
50123
50124         Fix porting problem for iswctype reported by Georg Schwarz in:
50125         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50126         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50127         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50128         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50129         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50130
50131 2006-12-03  Jim Meyering  <jim@meyering.net>
50132
50133         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50134         p->fts_statp may not yet be defined.
50135         (fts_read): Instead, set it in the caller, once p->fts_statp is
50136         sure to be defined, and corresponds to a top-level directory.
50137         This bug made du -x fail.  Here's the coreutils test case:
50138         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50139         Reported by Mike Frysinger.
50140
50141 2006-12-01  Jim Meyering  <jim@meyering.net>
50142
50143         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50144         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50145         Reported by Simon Josefsson.
50146
50147 2006-11-30  Jim Meyering  <jim@meyering.net>
50148
50149         * m4/warning.m4: Use the all-permissive copyright notice
50150         recommended by RMS (rather than LGPL).
50151         * m4/vararrays.m4: Likewise.
50152         * m4/flexmember.m4: Likewise.
50153
50154 2006-11-29  Bruno Haible  <bruno@clisp.org>
50155
50156         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50157         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50158         using +=.
50159         Reported by Simon Josefsson <simon@josefsson.org>.
50160
50161 2006-11-28  James Youngman <jay@gnu.org>
50162
50163         * README: Advise users that they might find the bug-gnulib@gnu.org
50164         and autotools-announce@gnu.org mailing lists useful.
50165
50166 2006-11-28  Bruno Haible  <bruno@clisp.org>
50167
50168         * m4/ptrdiff_max.m4: Remove file.
50169
50170 2006-11-21  Bruno Haible  <bruno@clisp.org>
50171
50172         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50173         _AC_COMPUTE_INT.
50174         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50175         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50176         _AC_COMPUTE_INT.
50177         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50178         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
50179         _AC_COMPUTE_INT.
50180         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50181
50182 2006-11-28  Jim Meyering  <jim@meyering.net>
50183
50184         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50185         warning from "gcc -Wshadow" about shadowing the builtin.
50186
50187 2006-11-27  Bruno Haible  <bruno@clisp.org>
50188
50189         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50190         _AC_COMPUTE_INT.
50191         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50192
50193 2006-11-27  Bruno Haible  <bruno@clisp.org>
50194             Paul Eggert  <eggert@cs.ucla.edu>
50195
50196         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50197
50198 2006-11-26  Bruno Haible  <bruno@clisp.org>
50199
50200         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50201         noinst_LTLIBRARIES.
50202
50203 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50204             Bruno Haible  <bruno@clisp.org>
50205
50206         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50207         if compiling with "gcc -ansi".
50208
50209 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50210
50211         Fix some incompatibilities with gcc -ansi -pedantic.
50212         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50213         if compiling pedantically with GCC, unless it's C99 or later.
50214         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50215         it mishandles gcc -ansi -pedantic as well.
50216         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50217         if gcc -pedantic.
50218         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50219         initializers for struct if -pedantic, unless it's C99 or later.
50220
50221 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50222
50223         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50224         Don't close an fd more than once. Identical atimes indicate
50225         success, not failure.
50226
50227 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50228
50229         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50230
50231 2006-11-23  Jim Meyering  <jim@meyering.net>
50232
50233         * build-aux/announce-gen: New file.  From coreutils.
50234
50235 2006-11-22  Jim Meyering  <jim@meyering.net>
50236
50237         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50238         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50239         (fts_read): Use a temporary to narrow the overused st_size member
50240         before using it in a switch statement.  Reported by Matthew Woehlke.
50241
50242         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50243         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50244
50245 2006-11-20  Bruno Haible  <bruno@clisp.org>
50246
50247         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50248         changequote instead of pairs of brackets.
50249         Reported by Andreas Schwab <schwab@suse.de>.
50250
50251 2006-11-21  Jim Meyering  <jim@meyering.net>
50252
50253         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50254         so as to remain compatible with older compilers.
50255         Patch from Michael Deutschmann.
50256
50257 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50258
50259         * MODULES.html.sh (File system functions): Add openat.
50260
50261         * lib/openat.h (rpl_fstatat): New macro, if
50262         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50263         (fstatat): Define to rpl_fstatat under the same conditions,
50264         unless COMPILING_FSTATAT.
50265         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50266         seems to have the bug.
50267         * lib/fstatat.c: New file.
50268         * modules/openat (Files): Add it.
50269
50270 2006-11-20  Bruno Haible  <bruno@clisp.org>
50271
50272         * Makefile: New file.
50273
50274 2006-11-20  Jim Meyering  <jim@meyering.net>
50275
50276         The beginnings of syntax-related checks for gnulib.
50277         * lib/Makefile: New file.
50278         * lib/t-idcache: New script.  Ensure that the two halves of
50279         idcache.c stay in sync.
50280
50281         * lib/idcache.c: Adjust comments in user- and group- portions to
50282         be more accurate, and to be consistent with one another.
50283
50284 2006-11-20  Jim Meyering  <jim@meyering.net>
50285
50286         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50287         continue using the flexible array member (thus, this module performs
50288         half as many malloc calls), with the addition that...
50289         (getgroup, getuser): Consistently record a non-match via an empty
50290         "name" string, and map an empty string match to a NULL return value.
50291         * modules/idcache (Depends-on): Re-add flexmember.
50292
50293         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50294         (getuidbyname, getgroup, getgidbyname): Likewise.
50295
50296         Use cleaner syntax: NULL rather than 0.
50297         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50298
50299 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50300
50301         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50302         It mishandled the case where the group was missing.
50303         Problem reported by Greg Schafer.
50304         * modules/idcache: Likewise.
50305
50306 2006-11-18  Jim Meyering  <jim@meyering.net>
50307
50308         * check-module (%exempt_header): Add exception for some
50309         conditionally-included headers.
50310
50311         * modules/i-ring (Depends-on): Add verify.
50312         (License): Change to LGPL.
50313
50314 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50315
50316         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50317         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50318         and inttostr.h.  Use snprintf rather than uinttostr, so that
50319         LGPLed code doesn't depend on GPLed.
50320
50321 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50322
50323         * modules/inline (License): Change from GPL to LGPL.
50324
50325 2006-11-17  Jim Meyering  <jim@meyering.net>
50326
50327         * modules/d-type (License): Switch to LGPL.
50328
50329 2006-11-15  Bruno Haible  <bruno@clisp.org>
50330
50331         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50332
50333 2006-11-15  Eric Blake  <ebb9@byu.net>
50334
50335         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50336         the module dependency.
50337
50338 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50339             Bruno Haible  <bruno@clisp.org>
50340
50341         * gnulib-tool (func_create_testdir): Add license consistency check.
50342
50343 2006-11-15  Eric Blake  <ebb9@byu.net>
50344
50345         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50346         random "(cached)" in configure output.
50347
50348 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50349
50350         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50351         test for conforming inttypes.h is both announced and cached.
50352
50353         * MODULES.html.sh (seen_modules, seen_files): New variables.
50354         (func_module): Rewrite to use a few less gnulib-tool and sed
50355         invocations.  Avoid a couple of quadratic algorithms for ...
50356         (missed_modules, missed_files): ... these, with ...
50357         (func_append, func_tmpdir): ... these new functions, from
50358         gnulib-tool.  Analogously, install traps for cleanup.
50359
50360         * tests/test-gc.c (main): Remove unused variables.
50361         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50362
50363 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50364
50365         * modules/inttostr (License): Change to LGPL.
50366
50367 2006-11-14  Eric Blake  <ebb9@byu.net>
50368
50369         * modules/tempname (License): Change to LGPL.
50370
50371 2006-11-14  Eric Blake  <ebb9@byu.net>
50372
50373         * doc/functions.texi (Function Portability): *printf functions on
50374         Cygwin now understand all POSIX size specifiers.
50375
50376 2006-11-14  Bruno Haible  <bruno@clisp.org>
50377
50378         * modules/c-ctype (License): Change to LGPL.
50379
50380 2006-11-12  Bruno Haible  <bruno@clisp.org>
50381
50382         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50383         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
50384         for GNOME libraries, for which the include files are installed in
50385         subdirectories of $prefix/include.
50386
50387 2006-11-12  Bruno Haible  <bruno@clisp.org>
50388
50389         * m4/lib-link.m4: Require at least autoconf-2.54.
50390         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
50391         name to underscores for the --with option.
50392
50393 2006-11-13  Bruno Haible  <bruno@clisp.org>
50394
50395         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
50396         the tests directory.
50397         Reported by Ralf Wildenhues.
50398
50399 2006-11-13  Bruno Haible  <bruno@clisp.org>
50400
50401         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
50402         (func_emit_initmacro_end): Undo the override here.
50403         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
50404         Works around the famous automake error in coreutils.
50405
50406 2006-11-13  Eric Blake  <ebb9@byu.net>
50407
50408         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
50409         element, not its node.
50410
50411 2006-11-12  Bruno Haible  <bruno@clisp.org>
50412
50413         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
50414         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
50415
50416 2006-11-12  Bruno Haible  <bruno@clisp.org>
50417
50418         * gnulib-tool: New option --local-symlink.
50419         (func_usage): Document it.
50420         (lsymbolic): New variable.
50421         (func_import, func_create_testdir): If --symlink was not specified,
50422         test whether --local-symlink was specified and the file comes from
50423         the local_gnulib_dir.
50424
50425 2006-11-12  Bruno Haible  <bruno@clisp.org>
50426
50427         * gnulib-tool (func_ln): New function.
50428         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
50429
50430 2006-11-12  Bruno Haible  <bruno@clisp.org>
50431
50432         Finish support for source files in subdirectories.
50433         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
50434         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
50435         AUTOMAKE_OPTIONS.
50436         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
50437
50438 2006-11-12  Bruno Haible  <bruno@clisp.org>
50439
50440         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50441         EXTRA_lib_SOURCES augmentation.
50442         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
50443
50444 2006-11-12  Jim Meyering  <jim@meyering.net>
50445
50446         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
50447         file descriptors.  This also averts a failure on systems with
50448         native openat support when a traversed directory lacks "x" access.
50449         * lib/fts_.h: Include "i-ring.h"
50450         (struct FTS) [fts_fd_ring]: New member.
50451         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50452         (FCHDIR): Add parentheses.
50453         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50454         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50455         When descending, rather than simply closing the previous
50456         fts_cwd_fd value, push that file descriptor onto the ring.
50457         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
50458         (fts_open): Initialize the new fd_ring member.
50459         (fts_close): Clear the ring.
50460         (fts_safe_changedir): When possible, use our new fd_ring to skip
50461         the diropen and fstat and dev/ino comparison that would normally
50462         accompany a virtual `chdir ("..")'.
50463
50464         * modules/fts (Depends-on): Add i-ring.
50465         * modules/i-ring: New module.
50466         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
50467         * m4/i-ring.m4: New file.
50468
50469 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50470
50471         * gnulib-tool (func_create_testdir): Fix replacement of
50472         `build-aux' in configure.ac.  Run autotools in gltests
50473         subdirectory.
50474         (func_create_testdir, func_create_megatestdir, test): There is
50475         no need for '--force' in most autotool invocations in a new
50476         tree.  Actually fail the whole test if any of the tools, or the
50477         configure or make stages fail.
50478
50479         Sync from Automake.
50480         * build-aux/gnupload: Revert last change.  Add pointer to upload
50481         instructions of the GNU Maintenance Instructions.
50482         Suggestion by Karl Berry.
50483
50484 2006-11-10  Jim Meyering  <jim@meyering.net>
50485
50486         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
50487
50488 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50489
50490         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
50491         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
50492         (bind_textdomain_codeset) [! ENABLE_NLS]:
50493         Evaluate all the arguments.  That way, callers get compatible behavior
50494         if the arguments have side effects.  Also, it avoids some GCC
50495         diagnostics in some cases; Joel E. Denny reported problems when Bison
50496         was configured with --enable-gcc-warnigs.
50497
50498 2006-11-10  Jim Meyering  <jim@meyering.net>
50499
50500         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
50501         relevant options in CFLAGS (like -O, -fno-inline) are taken into
50502         account.
50503
50504 2006-11-10  Jim Meyering  <jim@meyering.net>
50505
50506         * modules/inline: New file/module.
50507         * modules/xalloc (Files): Remove m4/inline.m4.
50508         (Depends-on): Add inline, instead.
50509         * modules/oset: Likewise.
50510         * modules/list: Likewise.
50511
50512 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50513
50514         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
50515         Problem reported by Matthew Woehlke.
50516
50517 2006-11-09  Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/tempname.c (gen_tempname): Remove variant that invokes
50520         __gen_tempname.
50521         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
50522         __gen_tempname.
50523
50524 2006-11-08  Bruno Haible  <bruno@clisp.org>
50525
50526         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
50527         to 'yes' instead of 'cross-compiling'.
50528
50529 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
50530
50531         * lib/quotearg.h (quotearg_free): New decl.
50532         * lib/quotearg.c (quotearg_free): New function.
50533         (slot0, nslots, slotvec0, slotvec):
50534         Now file-scope so that quotearg_free can get at them.
50535
50536 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50537
50538         Sync from Automake.
50539         * build-aux/gnupload: Add missing 'gnu' to example URL.
50540         Report by Karl Berry.
50541
50542 2006-11-08  Bruno Haible  <bruno@clisp.org>
50543
50544         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
50545         Suggested by Paul Eggert.
50546
50547 2006-11-08  Jim Meyering  <jim@meyering.net>
50548
50549         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
50550         It's already included if !_LIBC.
50551         (fts_safe_changedir): Add a comment.
50552
50553 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50554
50555         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
50556         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
50557         Matthew Woehlke.
50558
50559         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
50560         definitions up, to avoid colliding with change below.
50561         (static_inline) [HAVE_INLINE]: New macro.
50562         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
50563         Provide extern decls when !HAVE_INLINE.  Do not define unless
50564         static_inline is defined, either by us or by xmalloc.c.  Use
50565         static_inline rather than static inline.
50566         (XCALLOC): Optimize sizeof(T) = 1 case.
50567         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
50568
50569 2006-11-07  Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
50572         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
50573         AC_C_INLINE.
50574         * modules/xalloc (Files): Add m4/inline.m4.
50575
50576 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50577
50578         * README: Fix typo.
50579         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
50580         (Miscellanous Notes): ...from this.
50581
50582 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50583
50584         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
50585         Mention that offsetof should be used instead of sizeof.
50586         From Bruno Haible.
50587
50588 2006-11-07  Bruno Haible  <bruno@clisp.org>
50589
50590         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
50591
50592 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50593
50594         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50595         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
50596         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50597         (gl_tree_add_before, gl_tree_add_after):
50598         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
50599         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
50600         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50601         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
50602         (gl_linked_add_after, gl_linked_add_at): Likewise.
50603         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
50604         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50605         (gl_tree_add_before, gl_tree_add_after): Likewise.
50606         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
50607         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
50608         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
50609
50610 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50611
50612         * lib/gl_oset.h: Use C comment style, not C++ comment style.
50613
50614 2006-11-06  Bruno Haible  <bruno@clisp.org>
50615
50616         * m4/inline.m4: New file.
50617         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
50618         * modules/list (Files): Add m4/inline.m4.
50619         * modules/oset (Files): Likewise.
50620
50621 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50622
50623         * lib/idcache.c: Include <stddef.h>, for offsetof.
50624         (struct userid.name): Change from char * to a flexible array member.
50625         All uses changed.
50626         * modules/idcache (Depends-on): Add flexmember.
50627
50628         * MODULES.html.sh (Core language properties): New module flexmember.
50629         * modules/flexmember, m4/flexmember.m4: New files.
50630
50631         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
50632         inline functions that are identical with the old xnmalloc_inline,
50633         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
50634         that we can avoid some unnecessary integer multiplications and
50635         divisions in the common case where the element size is known at
50636         compile time.
50637         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
50638         needed.
50639         (xnboundedmalloc): Remove.
50640         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
50641         arguments, for consistency with rest of this header.
50642         (xcharalloc): Rewrite using XNMALLOC.
50643         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
50644         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
50645         versions have been moved to lib/xalloc.h and renamed to be the
50646         non-*_inline versions.
50647         (xmalloc, xrealloc): Implement without reference to the xnmalloc
50648         and xnrealloc functions, since those functions are now inline and
50649         now call us.
50650         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
50651         renaming described above.
50652         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
50653         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
50654         captures the dependency in AC_C_INLINE.
50655
50656         New module canonicalize-lgpl, proposed by Charles Wilson in
50657         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
50658         with a few small changes afterwards.
50659         * MODULES.html.sh (File system functions): New module
50660         canonicalize-lgpl.
50661         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
50662         and canonicalize_file_name.
50663         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
50664         * modules/canonicalize-lgpl: New files.
50665
50666 2006-11-05  Bruno Haible  <bruno@clisp.org>
50667
50668         * gnulib-tool (func_import, func_create_testdir): Create directories
50669         also for files in subdirectories of lib/.
50670
50671 2006-11-05  Bruno Haible  <bruno@clisp.org>
50672
50673         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
50674         ANSI C compliant.
50675
50676 2006-11-03  Bruno Haible  <bruno@clisp.org>
50677
50678         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50679         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
50680         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
50681         (xnboundedmalloc): New inline function.
50682         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
50683         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
50684         xmalloc.
50685         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
50686         xmalloc.
50687         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
50688         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
50689         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
50690         xmalloc.
50691         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50692         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
50693         xmalloc.
50694         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
50695         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50696         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
50697         xmalloc.
50698         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50699         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
50700         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50701         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
50702         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
50703         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
50704         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
50705
50706 2006-11-03  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/c-ctype.h [C++]: Define functions without name mangling.
50709         * lib/fwriteerror.h [C++]: Likewise.
50710         * lib/gcd.h [C++]: Likewise.
50711         * lib/linebreak.h [C++]: Likewise.
50712
50713 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50714
50715         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
50716         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
50717         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
50718         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50719         Check for functions and headers just once.
50720         Check for declaration of canonicalize_file_name.
50721         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
50722
50723 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50724
50725         * gnulib-tool (func_import): Fix typo in actioncmd.
50726
50727 2006-11-02  Bruno Haible  <bruno@clisp.org>
50728
50729         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
50730         newline sequence in the Makefile.am snippet as a space, like "make"
50731         does.
50732         Reported by Roger Persson <perrog@gmail.com>.
50733
50734 2006-11-01  Bruno Haible  <bruno@clisp.org>
50735
50736         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
50737         already declared in <string.h>.
50738         * lib/strcase.h (strncasecmp): Don't declare it if yes.
50739
50740 2006-11-01  Bruno Haible  <bruno@clisp.org>
50741
50742         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
50743         * lib/strcase.h: Include <string.h>.
50744         (strcasecmp): Define to rpl_strcasecmp here.
50745
50746 2006-11-01  Bruno Haible  <bruno@clisp.org>
50747
50748         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
50749
50750 2006-11-01  Eric Blake  <ebb9@byu.net>
50751
50752         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
50753
50754         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
50755
50756 2006-10-29  Bruno Haible  <bruno@clisp.org>
50757
50758         Make it compile in C++ mode.
50759         * lib/full-write.c (full_rw): Add a cast.
50760
50761 2006-11-01  Bruno Haible  <bruno@clisp.org>
50762
50763         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
50764         be POSIX compliant.
50765         Reported by Roger Persson <perrog@gmail.com>.
50766
50767 2006-11-01  Eric Blake  <ebb9@byu.net>
50768
50769         * lib/getopt_.h: Fix comments.
50770
50771 2006-10-31  Eric Blake  <ebb9@byu.net>
50772
50773         * modules/tmpdir (Depends-on): Add sys_stat.
50774         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
50775         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
50776         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
50777         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
50778         tempname.
50779
50780 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
50781
50782         Avoid some C++ diagnostics reported by Bruno Haible.
50783         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
50784         xmalloc.
50785         (quotearg_alloc): Use xcharalloc rather than xmalloc.
50786         (struct slotvec): Move to top level.
50787         (quotearg_n_options): Rewrite to avoid xmalloc.
50788         * lib/xalloc.h (xcharalloc): New function.
50789         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
50790         [defined __cplusplus]: Add function template that provides result
50791         type propagation.  This part of the change is from Bruno Haible.
50792
50793 2006-10-29  Bruno Haible  <bruno@clisp.org>
50794
50795         Make it compile in C++ mode.
50796         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
50797         * lib/strnlen1.c (strnlen1): Cast memchr result.
50798         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
50799         * lib/clean-temp.c (string_equals, string_hash): Add casts.
50800         (create_temp_dir): Rename local variable 'template'.
50801         (compile_csharp_using_sscli): Add cast.
50802         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
50803         * lib/findprog.c (find_in_path): Likewise.
50804         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
50805         * lib/wait-process.c (register_slave_subprocess): Likewise.
50806
50807 2006-10-22  Bruno Haible  <bruno@clisp.org>
50808
50809         * modules/tsearch: New file.
50810         * lib/tsearch.h: New file.
50811         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
50812         * m4/tsearch.m4: New file.
50813         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
50814
50815 2006-10-29  Eric Blake  <ebb9@byu.net>
50816
50817         * lib/arcfour.c: Assume config.h.
50818         * lib/arctwo.c: Likewise.
50819         * lib/base64.c: Likewise.
50820         * lib/check-version.c: Likewise.
50821         * lib/crc.c: Likewise.
50822         * lib/des.c: Likewise.
50823         * lib/gc-gnulib.c: Likewise.
50824         * lib/gc-libgcrypt.c: Likewise.
50825         * lib/gc-pbkdf2-sha1.c: Likewise.
50826         * lib/getaddrinfo.c: Likewise.
50827         * lib/getdelim.c: Likewise.
50828         * lib/getline.c: Likewise.
50829         * lib/hmac-md5.c: Likewise.
50830         * lib/hmac-sha1.c: Likewise.
50831         * lib/iconvme.c: Likewise.
50832         * lib/md2.c: Likewise.
50833         * lib/md4.c: Likewise.
50834         * lib/memxor.c: Likewise.
50835         * lib/read-file.c: Likewise.
50836         * lib/readline.c: Likewise.
50837         * lib/rijndael-alg-fst.c: Likewise.
50838         * lib/rijndael-api-fst.c: Likewise.
50839         * lib/xgetdomainname.c: Likewise.
50840
50841 2006-10-28  Eric Blake  <ebb9@byu.net>
50842
50843         * lib/xstrndup.c: Assume config.h.
50844
50845 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
50846
50847         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
50848         stat-macros.h is now for our own macros, whereas stat_h is for
50849         macros in the <sys/stat.h> name space.
50850         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
50851         (STAT_MACROS_H): Remove.
50852         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
50853         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
50854         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
50855         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
50856         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
50857         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
50858         Move these macros to ...
50859         * lib/stat_.h: here.  Don't include stat-macros.h.
50860         * lib/canonicalize.c: Don't include stat-macros.h.
50861         * lib/chown.c: Likewise.
50862         * lib/euidaccess.c: Likewise.
50863         * lib/file-type.c: Likewise.
50864         * lib/filemode.c: Likewise.
50865         * lib/glob.c: Likewise.
50866         * lib/isapipe.c: Likewise.
50867         * lib/lchown.c: Likewise.
50868         * lib/lstat.c: Likewise.
50869         * lib/mkdir-p.c: Likewise.
50870         * lib/rmdir.c: Likewise.
50871         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
50872         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
50873         unless mkdir isn't declared, to speed up 'configure'.
50874         Always create sys/stat.h, since it's unlikely any real sys/stat.h
50875         would define all the S_* symbols.
50876         * modules/canonicalize (Depends-on):
50877         Depend on sys_stat, not stat-macros.
50878         * modules/chown: Likewise.
50879         * modules/euidaccess: Likewise.
50880         * modules/filemode: Likewise.
50881         * modules/file-type: Likewise.
50882         * modules/glob: Likewise.
50883         * modules/isapipe: Likewise.
50884         * modules/lchown: Likewise.
50885         * modules/lstat: Likewise.
50886         * modules/mkancesdirs: Likewise.
50887         * modules/rmdir: Likewise.
50888         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
50889         * modules/modechange: Likewise.
50890         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
50891         (configure.ac): Remove gl_STAT_MACROS.
50892         * modules/sys_stat (Depends-on): Remove stat-macros.
50893
50894 2006-10-27  Bruno Haible  <bruno@clisp.org>
50895
50896         * m4/signed.m4: Remove file.
50897         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
50898         invocation.
50899         * modules/vasnprintf (Files): Remove m4/signed.m4.
50900
50901 2006-10-27  Bruno Haible  <bruno@clisp.org>
50902
50903         Update to GNU gettext 0.16.
50904         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
50905         m4/inttypes-h.m4, m4/signed.m4.
50906         * m4/gettext.m4: Update to GNU gettext 0.16.
50907         * m4/intl.m4: New file, from GNU gettext.
50908         * m4/intldir.m4: New file, from GNU gettext.
50909         * config/srclist.txt: Update
50910
50911 2006-10-27  Eric Blake  <ebb9@byu.net>
50912
50913         * MODULES.html.sh: Document tempname.
50914         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
50915         dependencies.
50916         (Files): Move lib/tempname.c...
50917         * modules/tempname: ...to this new module.
50918         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
50919         (gl_PREREQ_TEMPNAME): Move...
50920         * m4/tempname.m4: ...to this new file.
50921         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
50922         * modules/sys_stat (Depends-on): Add stat-macros.
50923         * lib/stat_.h (includes): Pick up stat macros.
50924         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
50925         if stat macros are broken.
50926         * lib/tempname.c (includes): No need to include "stat-macros.h".
50927         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
50928         (direxists, __path_search) [!_LIBC]: Don't compile these in
50929         gnulib; the tmpdir module covers that.
50930         * lib/tempname.h: New file.
50931
50932 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
50933
50934         * COPYING: Explain how gnulib-tool converts licence headers.
50935         Almost all wording by Eric Blake.
50936
50937 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
50938
50939         * lib/mbchar.h (is_basic_table): Make read-only.
50940         * lib/mbchar.c (is_basic_table): Likewise.
50941         Reported by John Darrington.
50942
50943 2006-10-25  Bruno Haible  <bruno@clisp.org>
50944
50945         * lib/progname.h (set_program_name): Undefine before defining.
50946
50947 2006-10-25  Bruno Haible  <bruno@clisp.org>
50948
50949         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
50950         false for non-gcc C++ compilers.
50951         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50952
50953 2006-10-24  Bruno Haible  <bruno@clisp.org>
50954
50955         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
50956         iconv implementations like Irix iconv.
50957
50958 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50959
50960         * modules/vararrays: New file.
50961         * m4/vararrays.m4: New file, taken from diffutils.
50962         * MODULES.html.sh: New module vararrays.
50963
50964 2006-10-24  Karl Berry  <karl@gnu.org>
50965
50966         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
50967         Don't call GNU Unix.
50968
50969 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50970
50971         * users.txt: Add Libtool.
50972
50973         Sync from Libtool:
50974
50975         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50976
50977         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
50978         to gnulib's policy of including config.h unconditionally.
50979
50980 2006-10-24  Bruno Haible  <bruno@clisp.org>
50981
50982         * modules/wcwidth (Files): Add m4/wint_t.m4.
50983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
50984         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
50985
50986 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50987
50988         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
50989         to pacify GCC with some -W flags enabled.  Problem reported by
50990         Bruno Haible.
50991
50992 2006-10-24  Jim Meyering  <jim@meyering.net>
50993
50994         * MODULES.html.sh: Remove uinttostr.  It's not a module.
50995         Reported by Karl Berry.
50996
50997 2006-10-23  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51000
51001 2006-10-24  Bruno Haible  <bruno@clisp.org>
51002
51003         * lib/gl_list.h: Use C comment style, not C++ comment style.
51004
51005 2006-10-23  Eric Blake  <ebb9@byu.net>
51006
51007         * lib/getaddrinfo.c (includes): Add missing include.
51008
51009 2006-10-23  Bruno Haible  <bruno@clisp.org>
51010             Paul Eggert  <eggert@cs.ucla.edu>
51011
51012         Ability to rename obstack_free.
51013         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51014         obstack_free.
51015         (obstack_free): Invoke the __obstack_free macro.
51016         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51017
51018 2006-10-23  Bruno Haible  <bruno@clisp.org>
51019             Paul Eggert  <eggert@cs.ucla.edu>
51020
51021         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51022         __argc, __argv from the declaration. (They are defined as macros on
51023         mingw.)
51024
51025 2006-10-22  Bruno Haible  <bruno@clisp.org>
51026
51027         * doc/gnulib-intro.texi: New file.
51028         * doc/gnulib.texi: Include it.
51029
51030 2006-10-21  Bruno Haible  <bruno@clisp.org>
51031
51032         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51033         "Introduction", "Miscellanous Notes", "Particular Modules".
51034
51035 2006-10-21  Bruno Haible  <bruno@clisp.org>
51036
51037         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51038         Change mostlyclean-local rule to avoid sh syntax error from bash
51039         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51040
51041 2006-10-23  Jim Meyering  <jim@meyering.net>
51042
51043         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51044         in place of snprintf.
51045
51046         * modules/inttostr (Files): Add lib/uinttostr.c.
51047         * lib/uinttostr.c (inttostr): New file/function.
51048         * lib/inttostr.h (uinttostr): Declare.
51049         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
51050         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51051         Add uinttostr.
51052         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
51053
51054 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51055
51056         * lib/canonicalize.c (ELOOP): Define if not already defined.
51057         Problem reported by Bruno Haible in
51058         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
51059
51060 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51061
51062         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
51063         Problem reported by Perry Smith and Ville Laurikari.
51064
51065         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51066         uses.
51067
51068 2006-10-19  Bruno Haible  <bruno@clisp.org>
51069
51070         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51071         for mingw.
51072
51073 2006-10-19  Bruno Haible  <bruno@clisp.org>
51074
51075         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51076         Needed for mingw.
51077
51078 2006-10-19  Bruno Haible  <bruno@clisp.org>
51079
51080         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51081
51082 2006-10-19  Bruno Haible  <bruno@clisp.org>
51083
51084         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51085         it.
51086
51087 2006-10-19  Bruno Haible  <bruno@clisp.org>
51088
51089         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51090         invocation.
51091
51092 2006-10-19  Bruno Haible  <bruno@clisp.org>
51093
51094         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51095         mountlist by default.
51096
51097 2006-10-16  Bruno Haible  <bruno@clisp.org>
51098
51099         * lib/c-strstr.c: Include c-strstr.h.
51100
51101 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51102
51103         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51104         in a slash.
51105
51106 2006-10-18  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/lock.h [C++]: Wrap definitions in extern "C".
51109
51110 2006-10-18  Bruno Haible  <bruno@clisp.org>
51111
51112         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51113         gl_LIBOBJS list.
51114
51115 2006-10-18  Bruno Haible  <bruno@clisp.org>
51116
51117         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51118
51119 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51120
51121         * lib/xstrtol.h: Include gettext.h.
51122         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51123         Problem reported by Eric Blake.
51124         * modules/xstrtol (Depends-on): Add gettext-h.
51125
51126 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51127
51128         * lib/strftime.c (advance): New macro.
51129         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51130         incomplete type, so you can't add 0 to it.  Problem and patch
51131         reported by Eelco Dolstra for dietlibc.
51132
51133 2006-10-18  Jim Meyering  <jim@meyering.net>
51134
51135         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51136         type for a local, and rename it: s/up/user_proc/.
51137
51138 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51139
51140         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51141         READ_UTMP_USER_PROCESS.
51142         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51143
51144 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51147         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51148
51149 2006-10-17  Eric Blake  <ebb9@byu.net>
51150
51151         * lib/sigprocmask.c (sigprocmask): Fix typo.
51152
51153         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51154
51155         * modules/clean-temp (Makefile.am): Don't add to make output...
51156         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51157         config.h.
51158
51159 2006-10-17  Bruno Haible  <bruno@clisp.org>
51160
51161         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51162         differently if DEFAULT_TEXT_DOMAIN is set.
51163
51164 2006-10-16  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/clean-temp.c: Include fwriteerror.h.
51167
51168 2006-10-16  Bruno Haible  <bruno@clisp.org>
51169
51170         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51171
51172 2006-10-16  Bruno Haible  <bruno@clisp.org>
51173
51174         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51175         * lib/sigprocmask.h: Include <sys/types.h>.
51176         (sigset_t): Use the system's definition if present.
51177
51178 2006-10-17  Eric Blake  <ebb9@byu.net>
51179
51180         * lib/xvasprintf.c (includes): Assume config.h.
51181         * lib/xasprintf.c (includes): Likewise.
51182
51183 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51184
51185         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51186         at least as wide as intmax_t.
51187
51188 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51189
51190         (Imported from Automake.)
51191         * build-aux/gnupload: Update to version 1.1 of directive file.
51192
51193 2006-10-16  Eric Blake  <ebb9@byu.net>
51194
51195         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51196         match Automake 1.10a.
51197
51198 2006-10-14  Bruno Haible  <bruno@clisp.org>
51199
51200         * modules/sigprocmask: New file.
51201         * lib/sigprocmask.h: New file.
51202         * lib/sigprocmask.c: New file.
51203         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51204         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51205         request sigprocmask.o.
51206         (gl_PREREQ_SIGPROCMASK): New macro.
51207         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51208         (Depends-on): Add sigprocmask.
51209         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51210         gt_SIGNALBLOCKING. Test for 'raise' only once.
51211         * lib/fatal-signal.c: Include sigprocmask.h.
51212         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51213         unblock_fatal_signals): Define always.
51214         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51215         sigprocmask.
51216
51217 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51218
51219         Sync from Automake.
51220         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51221         which incorrectly sets the mode of an existing destination
51222         directory.  In some cases the unpatched install-sh could do the
51223         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51224         system.  We hope this is rare in practice, but it's clearly worth
51225         fixing.  Problem reported by Alex Unleashed in
51226         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51227         Also, don't bother to check for -m bugs unless we're using -m;
51228         suggested by Stepan Kasal.
51229
51230 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51231
51232         Sync from Automake.
51233         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51234         `-c' flag, so they appear at the same position as in %FASTDEP%
51235         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51236         which ignores unknown options only after the first non-option.
51237         Bug report against M4 by Nelson H. F. Beebe.
51238
51239 2006-10-13  Jim Meyering  <jim@meyering.net>
51240
51241         Fix a bug in yesterday's change.
51242         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51243         p->fts_statp->st_dev would be used uninitialized.
51244         Ensures that we always call fts_stat on the very first entry.
51245         Miklos Szeredi reported that find -xdev stopped working.
51246
51247 2006-10-12  Bruno Haible  <bruno@clisp.org>
51248
51249         * gnulib-tool (func_get_automake_snippet): Append an automatically
51250         computed EXTRA_DIST augmentation.
51251         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51252         * modules/alloca-opt (Makefile.am): Likewise.
51253         * modules/allocsa (Makefile.am): Likewise.
51254         * modules/arcfour (Makefile.am): Likewise.
51255         * modules/arctwo (Makefile.am): Likewise.
51256         * modules/argmatch (Makefile.am): Likewise.
51257         * modules/argz (Makefile.am): Likewise.
51258         * modules/atexit (Makefile.am): Likewise.
51259         * modules/backupfile (Makefile.am): Likewise.
51260         * modules/byteswap (Makefile.am): Likewise.
51261         * modules/c-strtod (Makefile.am): Likewise.
51262         * modules/c-strtold (Makefile.am): Likewise.
51263         * modules/calloc (Makefile.am): Likewise.
51264         * modules/canon-host (Makefile.am): Likewise.
51265         * modules/canonicalize (Makefile.am): Likewise.
51266         * modules/chdir-long (Makefile.am): Likewise.
51267         * modules/chdir-safer (Makefile.am): Likewise.
51268         * modules/check-version (Makefile.am): Likewise.
51269         * modules/chown (Makefile.am): Likewise.
51270         * modules/cloexec (Makefile.am): Likewise.
51271         * modules/close-stream (Makefile.am): Likewise.
51272         * modules/closeout (Makefile.am): Likewise.
51273         * modules/crc (Makefile.am): Likewise.
51274         * modules/csharpexec (Makefile.am): Likewise.
51275         * modules/cycle-check (Makefile.am): Likewise.
51276         * modules/des (Makefile.am): Likewise.
51277         * modules/dev-ino (Makefile.am): Likewise.
51278         * modules/dirfd (Makefile.am): Likewise.
51279         * modules/dirname (Makefile.am): Likewise.
51280         * modules/dup2 (Makefile.am): Likewise.
51281         * modules/eealloc (Makefile.am): Likewise.
51282         * modules/error (Makefile.am): Likewise.
51283         * modules/euidaccess (Makefile.am): Likewise.
51284         * modules/exclude (Makefile.am): Likewise.
51285         * modules/exitfail (Makefile.am): Likewise.
51286         * modules/fcntl-safer (Makefile.am): Likewise.
51287         * modules/fcntl (Makefile.am): Likewise.
51288         * modules/file-type (Makefile.am): Likewise.
51289         * modules/fileblocks (Makefile.am): Likewise.
51290         * modules/filemode (Makefile.am): Likewise.
51291         * modules/filenamecat (Makefile.am): Likewise.
51292         * modules/fnmatch (Makefile.am): Likewise.
51293         * modules/fopen-safer (Makefile.am): Likewise.
51294         * modules/fpending (Makefile.am): Likewise.
51295         * modules/fprintftime (Makefile.am): Likewise.
51296         * modules/free (Makefile.am): Likewise.
51297         * modules/fsusage (Makefile.am): Likewise.
51298         * modules/ftruncate (Makefile.am): Likewise.
51299         * modules/fts (Makefile.am): Likewise.
51300         * modules/gc-arcfour (Makefile.am): Likewise.
51301         * modules/gc-des (Makefile.am): Likewise.
51302         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51303         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51304         * modules/gc-md4 (Makefile.am): Likewise.
51305         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51306         * modules/gc-sha1 (Makefile.am): Likewise.
51307         * modules/gc (Makefile.am): Likewise.
51308         * modules/getaddrinfo (Makefile.am): Likewise.
51309         * modules/getcwd (Makefile.am): Likewise.
51310         * modules/getdelim (Makefile.am): Likewise.
51311         * modules/getdomainname (Makefile.am): Likewise.
51312         * modules/getgroups (Makefile.am): Likewise.
51313         * modules/gethostname (Makefile.am): Likewise.
51314         * modules/gethrxtime (Makefile.am): Likewise.
51315         * modules/getline (Makefile.am): Likewise.
51316         * modules/getloadavg (Makefile.am): Likewise.
51317         * modules/getlogin_r (Makefile.am): Likewise.
51318         * modules/getndelim2 (Makefile.am): Likewise.
51319         * modules/getopt (Makefile.am): Likewise.
51320         * modules/getpagesize (Makefile.am): Likewise.
51321         * modules/getpass-gnu (Makefile.am): Likewise.
51322         * modules/getpass (Makefile.am): Likewise.
51323         * modules/getsubopt (Makefile.am): Likewise.
51324         * modules/gettime (Makefile.am): Likewise.
51325         * modules/gettimeofday (Makefile.am): Likewise.
51326         * modules/getugroups (Makefile.am): Likewise.
51327         * modules/getusershell (Makefile.am): Likewise.
51328         * modules/glob (Makefile.am): Likewise.
51329         * modules/group-member (Makefile.am): Likewise.
51330         * modules/hard-locale (Makefile.am): Likewise.
51331         * modules/hash (Makefile.am): Likewise.
51332         * modules/hmac-md5 (Makefile.am): Likewise.
51333         * modules/hmac-sha1 (Makefile.am): Likewise.
51334         * modules/human (Makefile.am): Likewise.
51335         * modules/idcache (Makefile.am): Likewise.
51336         * modules/imaxabs (Makefile.am): Likewise.
51337         * modules/imaxdiv (Makefile.am): Likewise.
51338         * modules/inet_ntop (Makefile.am): Likewise.
51339         * modules/inet_pton (Makefile.am): Likewise.
51340         * modules/intprops (Makefile.am): Likewise.
51341         * modules/inttostr (Makefile.am): Likewise.
51342         * modules/inttypes (Makefile.am): Likewise.
51343         * modules/isapipe (Makefile.am): Likewise.
51344         * modules/javaversion (Makefile.am): Likewise.
51345         * modules/lchmod (Makefile.am): Likewise.
51346         * modules/lchown (Makefile.am): Likewise.
51347         * modules/localcharset (Makefile.am): Likewise.
51348         * modules/long-options (Makefile.am): Likewise.
51349         * modules/lstat (Makefile.am): Likewise.
51350         * modules/malloc (Makefile.am): Likewise.
51351         * modules/mathl (Makefile.am): Likewise.
51352         * modules/mbchar (Makefile.am): Likewise.
51353         * modules/md2 (Makefile.am): Likewise.
51354         * modules/md4 (Makefile.am): Likewise.
51355         * modules/md5 (Makefile.am): Likewise.
51356         * modules/memcasecmp (Makefile.am): Likewise.
51357         * modules/memchr (Makefile.am): Likewise.
51358         * modules/memcmp (Makefile.am): Likewise.
51359         * modules/memcoll (Makefile.am): Likewise.
51360         * modules/memcpy (Makefile.am): Likewise.
51361         * modules/memmem (Makefile.am): Likewise.
51362         * modules/memmove (Makefile.am): Likewise.
51363         * modules/mempcpy (Makefile.am): Likewise.
51364         * modules/memrchr (Makefile.am): Likewise.
51365         * modules/memset (Makefile.am): Likewise.
51366         * modules/memxor (Makefile.am): Likewise.
51367         * modules/mkancesdirs (Makefile.am): Likewise.
51368         * modules/mkdir-p (Makefile.am): Likewise.
51369         * modules/mkdir (Makefile.am): Likewise.
51370         * modules/mkdtemp (Makefile.am): Likewise.
51371         * modules/mkstemp (Makefile.am): Likewise.
51372         * modules/mktime (Makefile.am): Likewise.
51373         * modules/modechange (Makefile.am): Likewise.
51374         * modules/mountlist (Makefile.am): Likewise.
51375         * modules/nanosleep (Makefile.am): Likewise.
51376         * modules/obstack (Makefile.am): Likewise.
51377         * modules/openat (Makefile.am): Likewise.
51378         * modules/pagealign_alloc (Makefile.am): Likewise.
51379         * modules/pathmax (Makefile.am): Likewise.
51380         * modules/physmem (Makefile.am): Likewise.
51381         * modules/poll (Makefile.am): Likewise.
51382         * modules/posixtm (Makefile.am): Likewise.
51383         * modules/posixver (Makefile.am): Likewise.
51384         * modules/putenv (Makefile.am): Likewise.
51385         * modules/quote (Makefile.am): Likewise.
51386         * modules/quotearg (Makefile.am): Likewise.
51387         * modules/raise (Makefile.am): Likewise.
51388         * modules/read-file (Makefile.am): Likewise.
51389         * modules/readline (Makefile.am): Likewise.
51390         * modules/readlink (Makefile.am): Likewise.
51391         * modules/readtokens (Makefile.am): Likewise.
51392         * modules/readutmp (Makefile.am): Likewise.
51393         * modules/realloc (Makefile.am): Likewise.
51394         * modules/regex (Makefile.am): Likewise.
51395         * modules/rename-dest-slash (Makefile.am): Likewise.
51396         * modules/rename (Makefile.am): Likewise.
51397         * modules/rijndael (Makefile.am): Likewise.
51398         * modules/rmdir (Makefile.am): Likewise.
51399         * modules/rpmatch (Makefile.am): Likewise.
51400         * modules/safe-read (Makefile.am): Likewise.
51401         * modules/safe-write (Makefile.am): Likewise.
51402         * modules/same-inode (Makefile.am): Likewise.
51403         * modules/same (Makefile.am): Likewise.
51404         * modules/save-cwd (Makefile.am): Likewise.
51405         * modules/savedir (Makefile.am): Likewise.
51406         * modules/setenv (Makefile.am): Likewise.
51407         * modules/settime (Makefile.am): Likewise.
51408         * modules/sha1 (Makefile.am): Likewise.
51409         * modules/sig2str (Makefile.am): Likewise.
51410         * modules/snprintf (Makefile.am): Likewise.
51411         * modules/stat-macros (Makefile.am): Likewise.
51412         * modules/stat-time (Makefile.am): Likewise.
51413         * modules/stdbool (Makefile.am): Likewise.
51414         * modules/stdint (Makefile.am): Likewise.
51415         * modules/stdlib-safer (Makefile.am): Likewise.
51416         * modules/stpcpy (Makefile.am): Likewise.
51417         * modules/stpncpy (Makefile.am): Likewise.
51418         * modules/strcase (Makefile.am): Likewise.
51419         * modules/strcasestr (Makefile.am): Likewise.
51420         * modules/strchrnul (Makefile.am): Likewise.
51421         * modules/strcspn (Makefile.am): Likewise.
51422         * modules/strdup (Makefile.am): Likewise.
51423         * modules/strerror (Makefile.am): Likewise.
51424         * modules/strftime (Makefile.am): Likewise.
51425         * modules/strndup (Makefile.am): Likewise.
51426         * modules/strnlen (Makefile.am): Likewise.
51427         * modules/strpbrk (Makefile.am): Likewise.
51428         * modules/strsep (Makefile.am): Likewise.
51429         * modules/strstr (Makefile.am): Likewise.
51430         * modules/strtod (Makefile.am): Likewise.
51431         * modules/strtoimax (Makefile.am): Likewise.
51432         * modules/strtok_r (Makefile.am): Likewise.
51433         * modules/strtol (Makefile.am): Likewise.
51434         * modules/strtoll (Makefile.am): Likewise.
51435         * modules/strtoul (Makefile.am): Likewise.
51436         * modules/strtoull (Makefile.am): Likewise.
51437         * modules/strtoumax (Makefile.am): Likewise.
51438         * modules/strverscmp (Makefile.am): Likewise.
51439         * modules/sys_socket (Makefile.am): Likewise.
51440         * modules/sys_stat (Makefile.am): Likewise.
51441         * modules/sysexits (Makefile.am): Likewise.
51442         * modules/time_r (Makefile.am): Likewise.
51443         * modules/timegm (Makefile.am): Likewise.
51444         * modules/timespec (Makefile.am): Likewise.
51445         * modules/tmpfile-safer (Makefile.am): Likewise.
51446         * modules/trim (Makefile.am): Likewise.
51447         * modules/unistd-safer (Makefile.am): Likewise.
51448         * modules/unlinkdir (Makefile.am): Likewise.
51449         * modules/unlocked-io (Makefile.am): Likewise.
51450         * modules/userspec (Makefile.am): Likewise.
51451         * modules/utime (Makefile.am): Likewise.
51452         * modules/utimecmp (Makefile.am): Likewise.
51453         * modules/utimens (Makefile.am): Likewise.
51454         * modules/vasnprintf (Makefile.am): Likewise.
51455         * modules/vasprintf (Makefile.am): Likewise.
51456         * modules/vsnprintf (Makefile.am): Likewise.
51457         * modules/xalloc (Makefile.am): Likewise.
51458         * modules/xgetcwd (Makefile.am): Likewise.
51459         * modules/xnanosleep (Makefile.am): Likewise.
51460         * modules/xreadlink (Makefile.am): Likewise.
51461         * modules/xstrtod (Makefile.am): Likewise.
51462         * modules/xstrtol (Makefile.am): Likewise.
51463         * modules/xstrtold (Makefile.am): Likewise.
51464         * modules/yesno (Makefile.am): Likewise.
51465         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
51466
51467 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51468
51469         * modules/error (Makefile.am): Distribute files through
51470         EXTRA_DIST, not lib_SOURCES.
51471
51472 2006-10-12  Eric Blake  <ebb9@byu.net>
51473
51474         * modules/error (Makefile.am): Distribute files in /lib.
51475         * modules/obstack (Makefile.am): Likewise.
51476
51477 2006-10-12  Bruno Haible  <bruno@clisp.org>
51478
51479         * modules/acl (Makefile.am): Distribute all files in lib/ through
51480         EXTRA_DIST.
51481         * modules/arcfour (Makefile.am): Likewise.
51482         * modules/arctwo (Makefile.am): Likewise.
51483         * modules/argmatch (Makefile.am): Likewise.
51484         * modules/argz (Makefile.am): Likewise.
51485         * modules/atexit (Makefile.am): Likewise.
51486         * modules/backupfile (Makefile.am): Likewise.
51487         * modules/c-strtod (Makefile.am): Likewise.
51488         * modules/c-strtold (Makefile.am): Likewise.
51489         * modules/calloc (Makefile.am): Likewise.
51490         * modules/canon-host (Makefile.am): Likewise.
51491         * modules/canonicalize (Makefile.am): Likewise.
51492         * modules/chdir-long (Makefile.am): Likewise.
51493         * modules/chdir-safer (Makefile.am): Likewise.
51494         * modules/check-version (Makefile.am): Likewise.
51495         * modules/chown (Makefile.am): Likewise.
51496         * modules/cloexec (Makefile.am): Likewise.
51497         * modules/close-stream (Makefile.am): Likewise.
51498         * modules/closeout (Makefile.am): Likewise.
51499         * modules/crc (Makefile.am): Likewise.
51500         * modules/cycle-check (Makefile.am): Likewise.
51501         * modules/des (Makefile.am): Likewise.
51502         * modules/dirfd (Makefile.am): Likewise.
51503         * modules/dirname (Makefile.am): Likewise.
51504         * modules/dup2 (Makefile.am): Likewise.
51505         * modules/euidaccess (Makefile.am): Likewise.
51506         * modules/exclude (Makefile.am): Likewise.
51507         * modules/exitfail (Makefile.am): Likewise.
51508         * modules/fcntl-safer (Makefile.am): Likewise.
51509         * modules/file-type (Makefile.am): Likewise.
51510         * modules/fileblocks (Makefile.am): Likewise.
51511         * modules/filemode (Makefile.am): Likewise.
51512         * modules/filenamecat (Makefile.am): Likewise.
51513         * modules/fnmatch (Makefile.am): Likewise.
51514         * modules/fopen-safer (Makefile.am): Likewise.
51515         * modules/fpending (Makefile.am): Likewise.
51516         * modules/fprintftime (Makefile.am): Likewise.
51517         * modules/free (Makefile.am): Likewise.
51518         * modules/fsusage (Makefile.am): Likewise.
51519         * modules/ftruncate (Makefile.am): Likewise.
51520         * modules/fts (Makefile.am): Likewise.
51521         * modules/gc (Makefile.am): Likewise.
51522         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51523         * modules/getaddrinfo (Makefile.am): Likewise.
51524         * modules/getcwd (Makefile.am): Likewise.
51525         * modules/getdelim (Makefile.am): Likewise.
51526         * modules/getdomainname (Makefile.am): Likewise.
51527         * modules/getgroups (Makefile.am): Likewise.
51528         * modules/gethostname (Makefile.am): Likewise.
51529         * modules/gethrxtime (Makefile.am): Likewise.
51530         * modules/getline (Makefile.am): Likewise.
51531         * modules/getloadavg (Makefile.am): Likewise.
51532         * modules/getlogin_r (Makefile.am): Likewise.
51533         * modules/getopt (Makefile.am): Likewise.
51534         * modules/getpass (Makefile.am): Likewise.
51535         * modules/getpass-gnu (Makefile.am): Likewise.
51536         * modules/getsubopt (Makefile.am): Likewise.
51537         * modules/gettime (Makefile.am): Likewise.
51538         * modules/gettimeofday (Makefile.am): Likewise.
51539         * modules/getugroups (Makefile.am): Likewise.
51540         * modules/getusershell (Makefile.am): Likewise.
51541         * modules/glob (Makefile.am): Likewise.
51542         * modules/group-member (Makefile.am): Likewise.
51543         * modules/hard-locale (Makefile.am): Likewise.
51544         * modules/hash (Makefile.am): Likewise.
51545         * modules/hmac-md5 (Makefile.am): Likewise.
51546         * modules/hmac-sha1 (Makefile.am): Likewise.
51547         * modules/human (Makefile.am): Likewise.
51548         * modules/idcache (Makefile.am): Likewise.
51549         * modules/imaxabs (Makefile.am): Likewise.
51550         * modules/imaxdiv (Makefile.am): Likewise.
51551         * modules/inet_ntop (Makefile.am): Likewise.
51552         * modules/inet_pton (Makefile.am): Likewise.
51553         * modules/inttostr (Makefile.am): Likewise.
51554         * modules/isapipe (Makefile.am): Likewise.
51555         * modules/lchown (Makefile.am): Likewise.
51556         * modules/long-options (Makefile.am): Likewise.
51557         * modules/lstat (Makefile.am): Likewise.
51558         * modules/malloc (Makefile.am): Likewise.
51559         * modules/mathl (Makefile.am): Likewise.
51560         * modules/mbchar (Makefile.am): Likewise.
51561         * modules/md2 (Makefile.am): Likewise.
51562         * modules/md4 (Makefile.am): Likewise.
51563         * modules/md5 (Makefile.am): Likewise.
51564         * modules/memcasecmp (Makefile.am): Likewise.
51565         * modules/memchr (Makefile.am): Likewise.
51566         * modules/memcmp (Makefile.am): Likewise.
51567         * modules/memcoll (Makefile.am): Likewise.
51568         * modules/memcpy (Makefile.am): Likewise.
51569         * modules/memmem (Makefile.am): Likewise.
51570         * modules/memmove (Makefile.am): Likewise.
51571         * modules/mempcpy (Makefile.am): Likewise.
51572         * modules/memrchr (Makefile.am): Likewise.
51573         * modules/memset (Makefile.am): Likewise.
51574         * modules/memxor (Makefile.am): Likewise.
51575         * modules/mkancesdirs (Makefile.am): Likewise.
51576         * modules/mkdir (Makefile.am): Likewise.
51577         * modules/mkdir-p (Makefile.am): Likewise.
51578         * modules/mkdtemp (Makefile.am): Likewise.
51579         * modules/mkstemp (Makefile.am): Likewise.
51580         * modules/mktime (Makefile.am): Likewise.
51581         * modules/modechange (Makefile.am): Likewise.
51582         * modules/mountlist (Makefile.am): Likewise.
51583         * modules/nanosleep (Makefile.am): Likewise.
51584         * modules/openat (Makefile.am): Likewise.
51585         * modules/pagealign_alloc (Makefile.am): Likewise.
51586         * modules/physmem (Makefile.am): Likewise.
51587         * modules/poll (Makefile.am): Likewise.
51588         * modules/posixtm (Makefile.am): Likewise.
51589         * modules/posixver (Makefile.am): Likewise.
51590         * modules/putenv (Makefile.am): Likewise.
51591         * modules/quote (Makefile.am): Likewise.
51592         * modules/quotearg (Makefile.am): Likewise.
51593         * modules/raise (Makefile.am): Likewise.
51594         * modules/read-file (Makefile.am): Likewise.
51595         * modules/readline (Makefile.am): Likewise.
51596         * modules/readlink (Makefile.am): Likewise.
51597         * modules/readtokens (Makefile.am): Likewise.
51598         * modules/readutmp (Makefile.am): Likewise.
51599         * modules/realloc (Makefile.am): Likewise.
51600         * modules/regex (Makefile.am): Likewise.
51601         * modules/rename (Makefile.am): Likewise.
51602         * modules/rename-dest-slash (Makefile.am): Likewise.
51603         * modules/rijndael (Makefile.am): Likewise.
51604         * modules/rmdir (Makefile.am): Likewise.
51605         * modules/rpmatch (Makefile.am): Likewise.
51606         * modules/safe-read (Makefile.am): Likewise.
51607         * modules/safe-write (Makefile.am): Likewise.
51608         * modules/same (Makefile.am): Likewise.
51609         * modules/save-cwd (Makefile.am): Likewise.
51610         * modules/savedir (Makefile.am): Likewise.
51611         * modules/setenv (Makefile.am): Likewise.
51612         * modules/settime (Makefile.am): Likewise.
51613         * modules/sha1 (Makefile.am): Likewise.
51614         * modules/sig2str (Makefile.am): Likewise.
51615         * modules/snprintf (Makefile.am): Likewise.
51616         * modules/stdlib-safer (Makefile.am): Likewise.
51617         * modules/stpcpy (Makefile.am): Likewise.
51618         * modules/stpncpy (Makefile.am): Likewise.
51619         * modules/strcase (Makefile.am): Likewise.
51620         * modules/strcasestr (Makefile.am): Likewise.
51621         * modules/strchrnul (Makefile.am): Likewise.
51622         * modules/strcspn (Makefile.am): Likewise.
51623         * modules/strdup (Makefile.am): Likewise.
51624         * modules/strerror (Makefile.am): Likewise.
51625         * modules/strftime (Makefile.am): Likewise.
51626         * modules/strndup (Makefile.am): Likewise.
51627         * modules/strnlen (Makefile.am): Likewise.
51628         * modules/strpbrk (Makefile.am): Likewise.
51629         * modules/strsep (Makefile.am): Likewise.
51630         * modules/strstr (Makefile.am): Likewise.
51631         * modules/strtod (Makefile.am): Likewise.
51632         * modules/strtoimax (Makefile.am): Likewise.
51633         * modules/strtok_r (Makefile.am): Likewise.
51634         * modules/strtol (Makefile.am): Likewise.
51635         * modules/strtoll (Makefile.am): Likewise.
51636         * modules/strtoul (Makefile.am): Likewise.
51637         * modules/strtoull (Makefile.am): Likewise.
51638         * modules/strtoumax (Makefile.am): Likewise.
51639         * modules/strverscmp (Makefile.am): Likewise.
51640         * modules/time_r (Makefile.am): Likewise.
51641         * modules/timegm (Makefile.am): Likewise.
51642         * modules/tmpfile-safer (Makefile.am): Likewise.
51643         * modules/unistd-safer (Makefile.am): Likewise.
51644         * modules/unlinkdir (Makefile.am): Likewise.
51645         * modules/userspec (Makefile.am): Likewise.
51646         * modules/utime (Makefile.am): Likewise.
51647         * modules/utimecmp (Makefile.am): Likewise.
51648         * modules/utimens (Makefile.am): Likewise.
51649         * modules/vasnprintf (Makefile.am): Likewise.
51650         * modules/vasprintf (Makefile.am): Likewise.
51651         * modules/vsnprintf (Makefile.am): Likewise.
51652         * modules/xalloc (Makefile.am): Likewise.
51653         * modules/xgetcwd (Makefile.am): Likewise.
51654         * modules/xnanosleep (Makefile.am): Likewise.
51655         * modules/xreadlink (Makefile.am): Likewise.
51656         * modules/xstrtod (Makefile.am): Likewise.
51657         * modules/xstrtol (Makefile.am): Likewise.
51658         * modules/xstrtold (Makefile.am): Likewise.
51659         * modules/yesno (Makefile.am): Likewise.
51660
51661 2006-10-12  Jim Meyering  <jim@meyering.net>
51662
51663         * m4/getloadavg.m4: Revert the change below.
51664
51665         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
51666         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
51667         fail with a symlink, which is what coreutils' ./bootstrap now
51668         creates by default.
51669
51670 2006-10-12  Bruno Haible  <bruno@clisp.org>
51671
51672         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
51673         mingw.
51674         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
51675         MSVC and mingw explicitly.
51676
51677 2006-10-11  Simon Josefsson  <jas@extundo.com>
51678             Bruno Haible  <bruno@clisp.org>
51679
51680         Add support for multiple gnulib-tool invocations in the scope of a
51681         single configure.ac file.
51682         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
51683         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
51684         with the same contents as the _LIBADD variable.
51685         (func_emit_initmacro_start, func_emit_initmacro_end,
51686         func_emit_initmacro_done): New functions.
51687         (func_import, func_create_testdir): Invoke them. Allow the identifiers
51688         gl_LIBOBJS and gl_LTLIBOBJS.
51689
51690 2006-10-11  Bruno Haible  <bruno@clisp.org>
51691
51692         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
51693         (func_create_testdir): Don't create po/Makefile.am, don't invoke
51694         autoreconf. Instead, invoke autopoint explicitly but move back the
51695         *.m4 files from gnulib.
51696
51697 2006-10-11  Bruno Haible  <bruno@clisp.org>
51698
51699         * gnulib-tool (func_usage): Make module names after --create-testdir
51700         optional.
51701         (func_create_testdir): If no module was specified, use nearly all
51702         modules.
51703
51704 2006-10-12  Jim Meyering  <jim@meyering.net>
51705
51706         Big performance improvement for fts-based tools that use FTS_NOSTAT.
51707         Avoid spurious inode-mismatch problems on non-POSIX file systems.
51708         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
51709         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
51710         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
51711         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
51712         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
51713         (fts_set_stat_required): New function.
51714         (fts_open): Defer the calls to fts_stat, if possible or requested.
51715         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
51716         into fts_stat itself.
51717         (fts_read): Perform any required (deferred) fts_stat call.
51718         (fts_build): Likewise, for the directory we're about to open and read.
51719         In the readdir loop, carefully decide whether each entry will require
51720         an eventual call to fts_stat, using dirent.d_type info if available.
51721         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
51722         a command line argument into this function.  Update all callers.
51723         Map a return value of FTS_DOT to FTS_D for a command line argument.
51724         * modules/fts (Depends-on): Add d-type.  Alphabetize.
51725         Thanks to Miklos Szeredi for his tenacity and for the initial
51726         bug report about "find" failing on a FUSE-based file system.
51727
51728         * lib/fts.c (fts_open): Use consistent indentation.
51729
51730 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51731
51732         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
51733         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
51734         reported by Jim Meyering.  All uses of cache variables renamed
51735         to match Autoconf's.
51736         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
51737         the other one.
51738
51739         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
51740         Fix misspelling in diagnostic.
51741
51742 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51743
51744         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
51745         defined.  Problem reported by Matthew Woehlke.
51746
51747         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
51748         Add support for Tandem NonStop R series.
51749         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
51750         Use new macro.
51751
51752         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
51753         (has_trailing_slash): Omit size arg; all callers changed.
51754         Omit 'inline', since it doesn't help performance and we'd
51755         need to configure it.
51756         Don't count //, ///, etc. as having a trailing slash.
51757         As a side effect, this removes a C99ism reported by Matthew Woehlke.
51758         (rpl_rename_dest_slash): On failure, use rename's errno rather
51759         than (in some cases) an incorrect or junk errno.
51760         Simplify code by removing need to compute length; this does
51761         cause it to make two passes instead of one over the file name,
51762         but it's worth it.
51763
51764         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
51765         change, since Autoconf's version may no longer be appropriate now
51766         that we are using CVS Autoconf's version.  Add support for Tandem.
51767
51768 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51769             Bruno Haible  <bruno@clisp.org>
51770
51771         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
51772         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
51773         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
51774         gl_AC_TYPE_LONG_LONG.
51775
51776         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
51777         instead of HAVE_LONG_LONG.
51778         * lib/printf-args.c (printf_fetchargs): Likewise.
51779         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
51780         * lib/vasnprintf.c (VASNPRINTF): Likewise.
51781         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
51782         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
51783         gl_AC_TYPE_LONG_LONG.
51784
51785 2006-10-11  Bruno Haible  <bruno@clisp.org>
51786
51787         * m4/longlong.m4: Add comments.
51788         * m4/ulonglong.m4: Likewise.
51789
51790 2006-10-10  Bruno Haible  <bruno@clisp.org>
51791
51792         Make it possible to #define stpcpy, strdup to aliases.
51793         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
51794         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
51795
51796 2006-10-10  Bruno Haible  <bruno@clisp.org>
51797
51798         Make it possible to #define gcd to an alias.
51799         * lib/gcd.c: Include config.h.
51800
51801 2006-10-10  Bruno Haible  <bruno@clisp.org>
51802
51803         Make it possible to #define c_isascii to an alias.
51804         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
51805         defined. Undefine the macros before defining them, to avoid gcc
51806         warnings.
51807         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
51808         define NO_C_CTYPE_MACROS early.
51809
51810 2006-10-10  Bruno Haible  <bruno@clisp.org>
51811
51812         Make it possible to #define set_program_name to an alias.
51813         * lib/progname.c: Don't undefine set_program_name; instead, undefine
51814         ENABLE_RELOCATABLE early.
51815
51816 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51817
51818         Port to Tandem NSK OSS, which has 64-bit signed int but at most
51819         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
51820         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
51821         More generally, don't assume that 64-bit signed int is available
51822         if unsigned int is, and vice versa.
51823         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
51824         unsigned symbols, not on their signed counterparts.
51825         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
51826         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
51827         (UINT64_C, UINTMAX_C):
51828         Likewise.
51829         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
51830         unsigned counterparts.
51831         (Have_long_long, Unsigned): New macros.
51832         (Int): Renamed from INT.
51833         (strtoimax): Use the new macros.
51834         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
51835         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
51836         * modules/inttypes (inttypes.h): Substitute
51837         HAVE_UNSIGNED_LONG_LONG_INT.
51838         * modules/stdint (stdint.h): Likewise.
51839         (Files): Add m4/ulonglong.m4.
51840
51841 2006-10-10  Bruno Haible  <bruno@clisp.org>
51842
51843         Fix a gcc -Wshadow warning.
51844         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
51845         to 'bucket'.
51846         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
51847         gl_linked_indexof_from_to): Likewise.
51848         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
51849         Likewise.
51850         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
51851         Likewise.
51852         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
51853         Reported by Eric Blake.
51854
51855 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
51856
51857         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
51858         for NetBSD.  Problem reported by Bruno Haible.
51859
51860 2006-10-09  Jim Meyering  <jim@meyering.net>
51861
51862         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
51863         Patch from Bruno Haible.
51864
51865 2006-10-09  Jim Meyering  <jim@meyering.net>
51866
51867         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
51868         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
51869         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
51870
51871 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51872
51873         Don't include <config.h> twice; this doesn't work in some cases,
51874         e.g., when config.h has "#define intmax_t long long int" and
51875         we include <config.h>, <inttypes.h>, <config.h> in that order.
51876         Problem reported by Matthew Woehlke in:
51877         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
51878         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
51879         * lib/fts-cycle.c: Don't include config.h.
51880         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
51881         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
51882         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
51883         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
51884         inttypes.h.
51885         * lib/xstrtoumax.c: Likewise.
51886         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
51887         __strtol and the like, so that this module is more like its siblings.
51888         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
51889         Remove; no longer needed now that we assume gnulib inttypes.h.
51890
51891 2006-10-08  Bruno Haible  <bruno@clisp.org>
51892
51893         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
51894         option.
51895
51896 2006-10-07  Jim Meyering  <jim@meyering.net>
51897
51898         * modules/inttypes (inttypes.h): Revert what seems to have been
51899         an inadvertent part of today's change: use "|", not "/" in the
51900         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
51901
51902 2006-10-07  Bruno Haible  <bruno@clisp.org>
51903
51904         * modules/sublist: New file.
51905
51906 2006-10-07  Bruno Haible  <bruno@clisp.org>
51907
51908         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
51909         * modules/argz (argz.h): Likewise.
51910         * modules/arpa_inet (arpa/inet.h): Likewise.
51911         * modules/byteswap (byteswap.h): Likewise.
51912         * modules/configmake (configmake.h): Likewise.
51913         * modules/fcntl (fcntl.h): Likewise.
51914         * modules/fnmatch (fnmatch.h): Likewise.
51915         * modules/getopt (getopt.h): Likewise.
51916         * modules/glob (glob.h): Likewise.
51917         * modules/inttypes (inttypes.h): Likewise.
51918         * modules/netinet_in (netinet/in.h): Likewise.
51919         * modules/poll (poll.h): Likewise.
51920         * modules/stdbool (stdbool.h): Likewise.
51921         * modules/stdint (stdint.h): Likewise.
51922         * modules/sys_select (sys/select.h): Likewise.
51923         * modules/sys_socket (sys/socket.h): Likewise.
51924         * modules/sys_stat (sys/stat.h): Likewise.
51925         * modules/sysexits (sysexits.h): Likewise.
51926         * modules/unistd (unistd.h): Likewise.
51927         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51928         Add a "DO NOT EDIT" comment to the generated file.
51929         (func_import): Likewise for gnulib-comp.m4.
51930
51931 2006-10-07  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/gl_sublist.h: New file.
51934         * lib/gl_sublist.c: New file.
51935
51936 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
51939         name (relative to the original working directory) and the file
51940         name component (relative to the temporary working directory).  All
51941         callers changed.
51942         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
51943         * lib/mkdir-p.c (make_dir_parents): Likewise.
51944         * lib/mkdir-p.h (make_dir_parents): Likewise.
51945
51946 2006-10-06  Eric Blake  <ebb9@byu.net>
51947
51948         Define several macros for use by the clean-temp module.
51949         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
51950         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
51951         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
51952
51953         * lib/clean-temp.h (close_stream_temp): New declaration.
51954         * lib/clean-temp.c (includes): Pull in headers according to what
51955         other modules are in use.
51956         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
51957
51958 2006-10-06  Bruno Haible  <bruno@clisp.org>
51959
51960         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
51961         instead of fopen, fwriteerror.
51962
51963 2006-10-06  Bruno Haible  <bruno@clisp.org>
51964
51965         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
51966         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
51967         int.
51968         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
51969         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
51970         Return an error indicator.
51971         Suggested by Eric Blake.
51972
51973 2006-10-06  Bruno Haible  <bruno@clisp.org>
51974
51975         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
51976         Reported by Eric Blake.
51977
51978 2006-10-06  Bruno Haible  <bruno@clisp.org>
51979
51980         * modules/closeout (Description): Mention stderr too.
51981
51982 2006-10-06  Bruno Haible  <bruno@clisp.org>
51983         and Paul Eggert  <eggert@cs.ucla.edu>
51984
51985         * lib/closeout.c (close_stdout): Also close stderr.
51986         * lib/closeout.h: Update comment.
51987
51988 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
51989
51990         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
51991         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
51992         * lib/dirchownmod.c: Include lchown.h.
51993         * lib/lchown.c: Don't include files that lchown.h now includes.
51994         Don't declare chown, since lchown.h now does that.
51995         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
51996         (lchown): Define to rpl_chown if lchown is declared but
51997         does not exist.  Declare using a prototype if lchown is not
51998         declared.  Add a copyright notice.
51999         * lib/mkstemp.h: Include <unistd.h>.
52000         * lib/openat.c: Include lchown.h.
52001
52002         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52003         we now test for that separately.
52004         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52005         rather than O_NOFOLLOW, when testing whether it's possible to
52006         avoid a race condition reliably.
52007         * lib/savewd.c (savewd_chdir): Likewise.
52008
52009         Remove macros that are no longer needed now that stdint.h is
52010         reliable.
52011         * lib/fsusage.c (UINTMAX_MAX): Remove.
52012         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52013         * lib/utimecmp.c (SIZE_MAX): Remove.
52014
52015         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52016
52017         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52018         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52019         O_NOATIME works.
52020
52021 2006-10-05  Bruno Haible  <bruno@clisp.org>
52022
52023         * lib/gl_list.h (gl_sortedlist_search_from_to,
52024         gl_sortedlist_indexof_from_to): New declarations.
52025         (gl_list_implementation): New fields sortedlist_search_from_to,
52026         sortedlist_indexof_from_to.
52027         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52028         inline functions.
52029         * lib/gl_list.c (gl_sortedlist_search_from_to,
52030         gl_sortedlist_indexof_from_to): New functions.
52031         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52032         function.
52033         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52034         (gl_array_sortedlist_search_from_to): New function.
52035         (gl_array_list_implementation): Update.
52036         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52037         function.
52038         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52039         (gl_carray_sortedlist_search_from_to): New function.
52040         (gl_carray_list_implementation): Update.
52041         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52042         gl_linked_sortedlist_indexof_from_to): New functions.
52043         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52044         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52045         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
52046         gl_tree_sortedlist_indexof_from_to): New functions.
52047         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52048         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52049         Update.
52050         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52051         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
52052         Update.
52053
52054 2006-10-05  Bruno Haible  <bruno@clisp.org>
52055
52056         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
52057         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
52058         (struct gl_list_implementation): Add fields search_from_to,
52059         indexof_from_to. Remove fields search, indexof.
52060         (gl_list_search): Use the search_from_to method.
52061         (gl_list_search_from, gl_list_search_from_to): New functions.
52062         (gl_list_indexof): Use the indexof_from_to method.
52063         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52064         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52065         (gl_list_search_from, gl_list_search_from_to): New functions.
52066         (gl_list_indexof): Use the indexof_from_to method.
52067         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52068         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52069         gl_array_indexof. Add start_index, end_index arguments.
52070         (gl_array_search_from_to): Renamed from gl_array_search. Add
52071         start_index, end_index arguments.
52072         (gl_array_remove, gl_array_list_implementation): Update.
52073         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52074         gl_carray_indexof. Add start_index, end_index arguments.
52075         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52076         start_index, end_index arguments.
52077         (gl_carray_remove, gl_carray_list_implementation): Update.
52078         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52079         gl_linked_search. Add start_index, end_index arguments.
52080         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52081         start_index, end_index arguments.
52082         (gl_linked_remove): Update.
52083         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52084         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52085         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52086         field to 'size_t'.
52087         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52088         gl_tree_search. Add start_index, end_index arguments.
52089         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52090         start_index, end_index arguments.
52091         (gl_tree_remove): Update.
52092         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52093         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52094         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52095         function.
52096         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52097         gl_tree_search. Add start_index, end_index arguments.
52098         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52099         start_index, end_index arguments.
52100         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52101         Update.
52102         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52103
52104 2006-10-05  Bruno Haible  <bruno@clisp.org>
52105
52106         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52107
52108         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52109         fwriteerror_temp): New declarations.
52110         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52111         (descriptors): New variable.
52112         (cleanup): First, close the descriptors.
52113         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52114         fclose_temp, fwriteerror_temp): New functions.
52115
52116 2006-10-04  Jim Meyering  <jim@meyering.net>
52117
52118         * lib/fts.c (fts_open): Tiny comment change.
52119
52120 2006-10-04  Bruno Haible  <bruno@clisp.org>
52121
52122         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52123         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52124         gl_LOCK_BODY.
52125         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52126         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52127         gl_LOCK_EARLY_BODY.
52128         (gl_LOCK): Require gl_LOCK_BODY.
52129
52130 2006-10-04  Bruno Haible  <bruno@clisp.org>
52131
52132         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52133         (gl_oset_search_atleast): New declaration.
52134         (struct gl_oset_implementation): Add field 'search_atleast'.
52135         (gl_oset_search_atleast): New inline function.
52136         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52137         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52138         (gl_array_oset_implementation): Update.
52139         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52140         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52141         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52142
52143 2006-10-04  Bruno Haible  <bruno@clisp.org>
52144
52145         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52146
52147 2006-10-03  Bruno Haible  <bruno@clisp.org>
52148
52149         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52150         from gl_avltreehash_list_implementation.
52151
52152 2006-10-03  Bruno Haible  <bruno@clisp.org>
52153
52154         * lib/gl_oset.c (gl_oset_add): Fix return type.
52155
52156 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52157
52158         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52159
52160 2006-10-02  Eric Blake  <ebb9@byu.net>
52161
52162         * modules/strnlen (Depends-on): Add extensions.
52163
52164 2006-10-02  Eric Blake  <ebb9@byu.net>
52165
52166         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52167         definition in 2.60+.
52168
52169 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52170
52171         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52172         checks.
52173
52174 2006-10-02  Bruno Haible  <bruno@clisp.org>
52175
52176         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52177         to the AUTOMAKE_OPTIONS.
52178         Reported by Jim Meyering.
52179
52180 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         Work around bug in Solaris 10 /proc file system:
52183         /proc/self/fd/NNN/.. isn't the parent directory of
52184         the directory whose file descriptor is NNN.  This needs to
52185         be worked around at run time, not compile time, since a
52186         program might be built on Solaris 8, where things work, and
52187         run on Solaris 10.
52188         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52189         to use the following interface instead:
52190         (OPENAT_BUFFER_SIZE): New macro.
52191         (openat_proc_name): New function.
52192         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52193         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52194         Likewise.
52195         * lib/openat-proc.c: New file.
52196         * modules/openat (Files): Add lib/openat-proc.c.
52197         (Depends-on): Add same-inode, stdbool.
52198         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52199
52200 2006-09-29  Bruno Haible  <bruno@clisp.org>
52201
52202         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52203         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52204         argument. Set stdout_closed before testing for ferror, not after.
52205         (fwriteerror, fwriteerror_no_ebadf): New functions.
52206
52207 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52208
52209         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52210
52211 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52212
52213         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52214         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52215
52216 2006-09-28  Jim Meyering  <jim@meyering.net>
52217
52218         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52219         Include <unistd.h>.
52220
52221 2006-09-28  Bruno Haible  <bruno@clisp.org>
52222
52223         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52224         * modules/linkedhash-list (Depends-on): Likewise.
52225         * modules/rbtreehash-list (Depends-on): Likewise.
52226
52227 2006-09-28  Bruno Haible  <bruno@clisp.org>
52228
52229         * lib/strndup.h: Simplify the redefinition of strndup.
52230         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52231         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52232
52233 2006-09-28  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52236         * lib/gl_linkedhash_list.c: Likewise.
52237         * lib/gl_rbtreehash_list.c: Likewise.
52238
52239 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52240
52241         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52242         getaddrinfo.
52243
52244         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52245         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52246         it causes <stdio_ext.h> to cause a compile-time error.
52247         Problem reported by Nelson H. F. Beebe.
52248         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52249         of HAVE_DECL___PENDING.
52250
52251         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52252         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52253         declaration.
52254
52255 2006-09-27  Jim Meyering  <jim@meyering.net>
52256
52257         This file could end up with a definition for a function
52258         named __strndup, rather than rpl_strndup on a system with
52259         incomplete weak_alias support.
52260         * lib/strndup.c (strndup): Rename from __strndup.
52261         Remove #defines that used to map __strndup to strndup.
52262         Don't use K&R prototypes.
52263         Remove LIBC-related code, since this file is not sync'd with glibc.
52264         * lib/strndup.h: Revamp, accordingly.
52265         * m4/strndup.m4: Modernize.
52266
52267 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52268
52269         * modules/savewd (Depends-on): Add 'raise'.
52270         * lib/savewd.c: Include <signal.h>, for 'raise'.
52271
52272 2006-09-26  Jim Meyering  <jim@meyering.net>
52273
52274         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52275         when we detect Darwin 8.7.0's acl_get_file bug.
52276         Rearrange to perform the new (below) run-test while $LIBS
52277         contains any acl-related library.  Set USE_ACL at the end.
52278         (gl_ACL_GET_FILE): New function.
52279
52280 2006-09-26  Eric Blake  <ebb9@byu.net>
52281
52282         * lib/verror.c: Include <config.h> unconditionally.
52283
52284 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52285
52286         * modules/clock-time (Maintainer): Add self.
52287         * modules/getlogin_r (Depends-on): Add extensions.
52288
52289 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52290
52291         * modules/clock-time: New module.
52292         * modules/nanosleep (Depends-on): Add clock-time.
52293         * modules/gethrxtime (Depends-on): Likewise.
52294         * modules/gettime (Depends-on): Likewise.
52295         * modules/settime (Depends-on): Likewise.
52296
52297         * modules/fts-lgpl: Depend on openat.
52298         * modules/mkancesdirs: Depend on savewd.
52299         * modules/mkdir-p: Likewise.
52300
52301 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52302
52303         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52304
52305         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52306         `gl_have_arbitrary_file_name_length_limit' to
52307         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52308         actually works between configure runs.
52309
52310 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52311             Bruno Haible  <bruno@clisp.org>
52312
52313         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52314
52315 2006-09-25  Jim Meyering  <jim@meyering.net>
52316
52317         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52318         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52319
52320 2006-09-25  Eric Blake  <ebb9@byu.net>
52321
52322         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52323         exec's in 2006-09-18 patch when shuffling fds.
52324
52325 2006-09-25  Bruno Haible  <bruno@clisp.org>
52326
52327         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52328         Reported by Jim Meyering.
52329
52330 2006-09-24  Jim Meyering  <jim@meyering.net>
52331
52332         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52333         compare a pointer against a literal "0".  That caused failures with
52334         at least HP-UX's hpcc.
52335
52336 2006-09-22  Simon Josefsson  <jas@extundo.com>
52337
52338         * modules/gc-sha1:
52339         * modules/gc-md4:
52340         * modules/gc-hmac-sha1:
52341         * modules/gc-hmac-md5:
52342         * modules/gc-des:
52343         * modules/gc-arcfour: Distribute more files.
52344
52345 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52346
52347         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52348         (gl_linked_iterator_from_to): Initialize struct completely.
52349         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52350         (gl_tree_iterator_from_to): Likewise
52351         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52352         * lib/gl_array_list.c [lint] (gl_array_iterator)
52353         (gl_array_iterator_from_to): Likewise.
52354         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52355         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52356         (gl_carray_iterator_from_to): Likewise.
52357
52358         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52359         * lib/md4.c (md4_process_block): Remove unused variable.
52360         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52361         parentheses for clarity.
52362
52363 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52364
52365         * modules/bison-i18n (Depends-on): Add gettext.
52366
52367 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52368
52369         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52370         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52371         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52372         also add missing comma that caused broken test.
52373         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52374         stdlib.h, for `abort'.
52375         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52376         variables.
52377         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52378         include unistd.h if present, for `rmdir'.
52379         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52380         variables.
52381         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
52382         in the process include standard headers for prototypes.
52383         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
52384         gets declared on GNU/Linux.
52385         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
52386         unistd.h, for `rmdir'.
52387         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
52388
52389         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
52390         always true.
52391         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
52392
52393         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
52394
52395 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52396
52397         * gnulib-tool (func_version): Create output all at once.  This
52398         may help avoid triggering unnecessary SIGPIPEs, and at any
52399         rate it doesn't hurt.
52400
52401 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52402             Bruno Haible  <bruno@clisp.org>
52403
52404         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
52405         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52406         * m4/signed.m4 (bh_C_SIGNED): Likewise.
52407
52408         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
52409         (gl_FUNC_VASPRINTF): Invoke it.
52410
52411 2006-09-22  Bruno Haible  <bruno@clisp.org>
52412
52413         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
52414         getloadavg.c as first argument.
52415
52416 2006-09-22  Bruno Haible  <bruno@clisp.org>
52417
52418         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
52419         at the beginning of the gl_INIT macro.
52420         * modules/getloadavg (configure.ac): Pass $gl_source_base to
52421         gl_GETLOADAVG.
52422
52423 2006-09-22  Bruno Haible  <bruno@clisp.org>
52424
52425         * gnulib-tool (func_create_megatestdir): Don't include the config-h
52426         module.
52427         Suggested by Ralf Wildenhues.
52428
52429 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52430
52431         Import this patch from libc:
52432
52433         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
52434
52435         * lib/regex_internal.c (re_string_reconstruct): Handle
52436         offset < pstr->valid_raw_len && pstr->offsets_needed case.
52437         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
52438         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
52439         re_string_context_at.
52440
52441         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
52442         now requires it.
52443         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
52444         gl_REGEX now does it for us.
52445         (gl_REGEX): Add test taken from
52446         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
52447
52448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
52449         Check that large offsets work.  Modernize Autoconf usages.
52450         Prefer "yes" to mean a good thing rather than a bad.
52451         Don't put "#define mkstemp" in config.h, as this might interfere
52452         with standard system headers that "#define mkstemp mkstemp64".
52453
52454         * modules/mkstemp (Depends-on): Add extensions, so that
52455         mkstemp is visible on some platforms.
52456         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
52457         (Include): Change to "mkstemp.h" from <stdlib.h>.
52458         (Files): Add mkstemp.h.
52459
52460         * lib/mkstemp.h: New file, since some standard headers
52461         #define mkstemp.
52462         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
52463         Include "mkstemp.h".
52464         Make the _LIBC code resemble glibc original more,
52465         e.g., use K&R style.
52466         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
52467         (mkstemp): Remove, since mkstemp.h does this for us.
52468         * lib/stdlib--.h: Include mkstemp.h.
52469
52470         Import this patch from libc:
52471
52472         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52473
52474         * lib/tempname.c (__gen_tempname): Change attempts_min
52475         into a macro.  Use preprocessor to decide how to initialize
52476         attempts [Coverity CID 67].
52477
52478 2006-09-20  Bruno Haible  <bruno@clisp.org>
52479
52480         * lib/mkdtemp.c: Import from libc.
52481         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52482                 * sysdeps/posix/tempname.c (__gen_tempname): Change
52483                 attempts_min into a macro.  Use preprocessor to decide how to
52484                 initialize attempts [Coverity CID 67].
52485         2001-11-27  Paul Eggert  <eggert@twinsun.com>
52486                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
52487                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
52488
52489 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52490
52491         * gnulib-tool (func_exit): New function, to allow to pass the
52492         exit status portably through the trap.  Use everywhere.
52493         (--help, --version): Signal a write error.
52494         (trap): catch SIGPIPE, for write errors.
52495         Exit at the end of the trap, with the correct exit status.
52496
52497 2006-09-19  Karl Berry  <karl@gnu.org>
52498
52499         * doc/gnulib.texi: note about the license texinfo files.
52500
52501 2006-09-19  Eric Blake  <ebb9@byu.net>
52502
52503         * gnulib-tool: Avoid space-tab.
52504
52505 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52506
52507         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
52508         that prevented coreutils 6.1 from building.  Problem reported
52509         by Petter Reinholdtsen.
52510
52511 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52512
52513         * gnulib-tool (avoidlist): Fix typo that broke options like
52514         --avoid=lock that are used by coreutils bootstrap.
52515
52516 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
52517
52518         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
52519         more systematically.
52520
52521 2006-09-18  Jim Meyering  <jim@meyering.net>
52522
52523         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
52524
52525 2006-09-18  Bruno Haible  <bruno@clisp.org>
52526
52527         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
52528
52529 2006-09-18  Bruno Haible  <bruno@clisp.org>
52530
52531         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
52532         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
52533         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
52534         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
52535         * m4/gettext.m4: Require autoconf >= 2.52.
52536         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
52537         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
52538         of gl_cv_header_inttypes_h.
52539
52540 2006-09-18  Bruno Haible  <bruno@clisp.org>
52541
52542         * lib/javaversion.c: Include configmake.h.
52543
52544 2006-09-18  Bruno Haible  <bruno@clisp.org>
52545
52546         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
52547         avoid that the while loops be executed in a subshell.
52548
52549 2006-09-18  Bruno Haible  <bruno@clisp.org>
52550
52551         * MODULES.html.sh (func_module): Break long lines.
52552         Suggested by Bruce Korb <bkorb@gnu.org>.
52553
52554 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52555
52556         Speed up by a factor of 1.12.
52557         * gnulib-tool (nl): New variable.
52558         (func_import): Rewrite include directive extraction to only read each
52559         directive once.
52560
52561 2006-09-17  Bruno Haible  <bruno@clisp.org>
52562
52563         * modules/javaversion (Makefile.am): Remove DEFS setting.
52564         (Depends-on): Add configmake, for PKGDATADIR definition.
52565
52566 2006-09-17  Bruno Haible  <bruno@clisp.org>
52567
52568         * gnulib-tool (func_create_testdir): Rewrite all files at once.
52569
52570 2006-09-17  Bruno Haible  <bruno@clisp.org>
52571
52572         * gnulib-tool (func_append): New function, stolen from libtool.m4.
52573         (func_modules_transitive_closure, func_modules_add_dummy,
52574         func_modules_to_filelist, func_import, func_create_testdir,
52575         func_create_megatestdir, ...): Use it wherever possible.
52576         Suggested by Ralf Wildenhues.
52577
52578 2006-09-16  Karl Berry  <karl@gnu.org>
52579
52580         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
52581         to avoid sectioning errors.
52582         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
52583         [ifinfo]: blank line after @center-ed titles.
52584         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
52585         Spell FSF address consistently with others.
52586         (These changes approved by rms.)
52587
52588 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52589
52590         Speed up by a factor of 1.61.
52591         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
52592         already checked module names again.
52593
52594 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52595
52596         Speed up by a factor of 1.13.
52597         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
52598         for new_files, and the input to func_add_or_update.
52599
52600 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52601
52602         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
52603         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
52604
52605 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52606
52607         * modules/mkancesdirs (Depends-on): Add fcntl.
52608         * modules/savewd: New file.
52609         * MODULES.html.sh (File system functions): Add savewd.
52610
52611         * modules/configmake (Makefile.am): Add support for the
52612         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
52613
52614 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52615
52616         * m4/savewd.m4: New file.
52617
52618 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52619
52620         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
52621         (dirchownmod): New arg FD.  All callers changed.
52622         Use FD rather than opening the directory ourself, as opening is
52623         now the caller's responsibility.
52624         * lib/dirchownmod.h: Likewise.
52625         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
52626         hosts that require <sys/types.h> before <sys/stat.h>.  Include
52627         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
52628         (test_dir): Remove.
52629         (mkancesdirs): Return length of prefix of FILE that has already
52630         been made, or -2 if there is a child doing the work.  Redo
52631         algorithm so that it is O(N) rather than O(N**2).  Optimize away
52632         ".", and treat ".." specially since it might stray back into
52633         already-created areas.  Use a subprocess if necessary.  New arg
52634         WD; all users changed.  MAKE_DIR function should now return 1
52635         if it creates a directory that is not readable.  Return -2 if
52636         a child process is spun off.
52637         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
52638         Adjust signature to match code.
52639         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
52640         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
52641         all users changed.
52642         * lib/savewd.c, lib/savewd.h: New files.
52643
52644 2006-09-15  Jim Meyering  <jim@meyering.net>
52645
52646         * modules/rename-dest-slash: New module.
52647         * MODULES.html.sh (posix_compat): Add it here.
52648
52649         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
52650
52651 2006-09-15  Jim Meyering  <jim@meyering.net>
52652
52653         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
52654         file.
52655
52656         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
52657
52658 2006-09-15  Jim Meyering  <jim@meyering.net>
52659
52660         * lib/rename-dest-slash.c (has_trailing_slash): Use
52661         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
52662         (rpl_rename_dest_slash): Perform the cheaper trailing slash
52663         test before testing whether SRC is a directory.
52664         Suggestions from Bruno Haible.
52665
52666         Avoid a warning about an unused variable.
52667         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
52668         into the #ifdef block where it's used.
52669
52670         * lib/rename-dest-slash.c: New file.
52671
52672 2006-09-14  Bruno Haible  <bruno@clisp.org>
52673
52674         * lib/allocsa.c: Include <config.h> unconditionally.
52675         * lib/asnprintf.c: Likewise.
52676         * lib/asprintf.c: Likewise.
52677         * lib/c-strcasecmp.c: Likewise.
52678         * lib/c-strcasestr.c: Likewise.
52679         * lib/c-strncasecmp.c: Likewise.
52680         * lib/c-strstr.c: Likewise.
52681         * lib/classpath.c: Likewise.
52682         * lib/clean-temp.c: Likewise.
52683         * lib/concatpath.c: Likewise.
52684         * lib/copy-file.c: Likewise.
52685         * lib/csharpcomp.c: Likewise.
52686         * lib/csharpexec.c: Likewise.
52687         * lib/execute.c: Likewise.
52688         * lib/fatal-signal.c: Likewise.
52689         * lib/findprog.c: Likewise.
52690         * lib/fwriteerror.c: Likewise.
52691         * lib/gl_array_list.c: Likewise.
52692         * lib/gl_array_oset.c: Likewise.
52693         * lib/gl_avltree_list.c: Likewise.
52694         * lib/gl_avltree_oset.c: Likewise.
52695         * lib/gl_avltreehash_list.c: Likewise.
52696         * lib/gl_carray_list.c: Likewise.
52697         * lib/gl_linked_list.c: Likewise.
52698         * lib/gl_linkedhash_list.c: Likewise.
52699         * lib/gl_list.c: Likewise.
52700         * lib/gl_oset.c: Likewise.
52701         * lib/gl_rbtree_list.c: Likewise.
52702         * lib/gl_rbtree_oset.c: Likewise.
52703         * lib/gl_rbtreehash_list.c: Likewise.
52704         * lib/imaxabs.c: Likewise.
52705         * lib/imaxdiv.c: Likewise.
52706         * lib/javacomp.c: Likewise.
52707         * lib/javaexec.c: Likewise.
52708         * lib/javaversion.c: Likewise.
52709         * lib/linebreak.c: Likewise.
52710         * lib/localcharset.c: Likewise.
52711         * lib/lock.c: Likewise.
52712         * lib/mbchar.c: Likewise.
52713         * lib/mbswidth.c: Likewise.
52714         * lib/mkdtemp.c: Likewise.
52715         * lib/pipe.c: Likewise.
52716         * lib/printf-args.c: Likewise.
52717         * lib/printf-parse.c: Likewise.
52718         * lib/progname.c: Likewise.
52719         * lib/progreloc.c: Likewise.
52720         * lib/readlink.c: Likewise.
52721         * lib/sh-quote.c: Likewise.
52722         * lib/stpcpy.c: Likewise.
52723         * lib/stpncpy.c: Likewise.
52724         * lib/strcasecmp.c: Likewise.
52725         * lib/strcasestr.c: Likewise.
52726         * lib/strcspn.c: Likewise.
52727         * lib/striconv.c: Likewise.
52728         * lib/strncasecmp.c: Likewise.
52729         * lib/strnlen1.c: Likewise.
52730         * lib/strstr.c: Likewise.
52731         * lib/strtok_r.c: Likewise.
52732         * lib/tls.c: Likewise.
52733         * lib/tmpdir.c: Likewise.
52734         * lib/unicodeio.c: Likewise.
52735         * lib/unsetenv.c: Likewise.
52736         * lib/vasnprintf.c: Likewise.
52737         * lib/vasprintf.c: Likewise.
52738         * lib/wait-process.c: Likewise.
52739         * lib/xallocsa.c: Likewise.
52740         * lib/xsetenv.c: Likewise.
52741         * lib/xstriconv.c: Likewise.
52742
52743 2006-09-13  Simon Josefsson  <jas@extundo.com>
52744
52745         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
52746         that internally, suggested by Ralf Wildenhues
52747         <Ralf.Wildenhues@gmx.de>.
52748
52749 2006-09-13  Simon Josefsson  <jas@extundo.com>
52750
52751         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
52752         @LIBOBJS@.
52753         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52754
52755 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52756
52757         * lib/_fpending.c: Include <config.h> unconditionally, since we no
52758         longer worry about uses that don't define HAVE_CONFIG_H.
52759         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
52760         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
52761         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
52762         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
52763         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
52764         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
52765         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
52766         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
52767         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
52768         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
52769         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
52770         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
52771         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
52772         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
52773         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
52774         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
52775         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
52776         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
52777         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
52778         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
52779         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
52780         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
52781         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
52782         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
52783         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
52784         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
52785         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
52786         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
52787         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
52788         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
52789         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
52790         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
52791         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
52792         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
52793         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
52794         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
52795         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
52796         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
52797         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
52798         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
52799         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
52800         Likewise.
52801
52802 2006-09-13  Eric Blake  <ebb9@byu.net>
52803
52804         * lib/getopt.c: Fix typo in last commit.
52805
52806 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52807
52808         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
52809         dgettext.
52810
52811 2006-09-12  Jim Meyering  <jim@meyering.net>
52812
52813         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
52814         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
52815         Reported by Nelson H. F. Beebe.
52816
52817 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52818
52819         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
52820         program_invocation_name and program_invocation_short_name are
52821         initialized.
52822         * lib/argp-namefrob.h: Move declarations of program_invocation_name
52823         and program_invocation_short_name to argp.h, so they are visible
52824         to user programs.
52825         * lib/argp.h: Likewise
52826
52827 2006-09-10  Bruno Haible  <bruno@clisp.org>
52828
52829         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52830         m4/inttypes_h.m4, m4/uintmax_t.m4.
52831
52832 2006-09-10  Bruno Haible  <bruno@clisp.org>
52833
52834         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
52835         gl_AC_TYPE_UINTMAX_T.
52836
52837 2006-09-10  Bruno Haible  <bruno@clisp.org>
52838
52839         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
52840
52841 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52842
52843         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
52844         convention.  Text proposed by Bruno Haible.
52845         (struct argp_option): Document the use of N_() wrappers.
52846
52847         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
52848         '\v', and translate the two parts separately, instead of feeding
52849         the whole string to gettext.  This allows to exclude
52850         '\v' from the strings visible to the translator by writing doc
52851         strings as N_("..") "\v" N_("..").
52852
52853 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
52854
52855         * config/srclist.txt: Undo latest change; the bug was fixed.
52856
52857 2006-09-09  Bruno Haible  <bruno@clisp.org>
52858
52859         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
52860         assignments if building a library without libtool.
52861         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
52862         in func_emit_lib_Makefile_am.
52863         (func_import): When building a static library libfoo.a, arrange to
52864         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
52865         (func_create_testdir): Likewise.
52866         * modules/gc (configure.ac, Makefile.am): If building statically,
52867         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
52868         * modules/iconvme (configure.ac, Makefile.am): Likewise.
52869         * modules/striconv (configure.ac, Makefile.am): Likewise.
52870         Based on a suggestion by Ralf Wildenhues.
52871
52872 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52873
52874         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52875         Check for unistd.h too, since Autoconf doesn't assume POSIX.
52876         Also:
52877
52878         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52879         Add year_2050_test to catch glibc bug 2821
52880         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52881
52882         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52883         Prefer #ifdef to #if.
52884
52885         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
52886         Return from 'main' instead of calling 'exit'.
52887
52888 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52889
52890         * lib/mktime.c (guess_time_tm): Fix bug where mktime
52891         returned the maximum time_t value rather than (time_t) -1.
52892         Problem originally reported by William Bardwell
52893         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52894
52895         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52896         Moved to here ...
52897         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52898         ... from here.
52899
52900 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52901
52902         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
52903         2821 is fixed.
52904
52905 2006-09-08  Jim Meyering  <jim@meyering.net>
52906
52907         Don't make generated files read-only.  That would bother too many
52908         people.  However, do retain the ability to work when targets are
52909         read-only: remove the destination and temporary files before writing
52910         them (when generated via sed or echo), or by using the -f option for
52911         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
52912         * modules/alloca-opt, modules/argz, modules/arpa_inet:
52913         * modules/byteswap, modules/configmake, modules/fcntl:
52914         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
52915         * modules/localcharset, modules/netinet_in, modules/poll:
52916         * modules/stdbool, modules/stdint, modules/sys_select:
52917         * modules/sys_socket, modules/sys_stat, modules/sysexits:
52918
52919 2006-09-08  Jim Meyering  <jim@meyering.net>
52920
52921         Avoid new build failure on FreeBSD 6.0.
52922         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
52923         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
52924         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
52925
52926 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52927
52928         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
52929
52930 2006-09-07  Jim Meyering  <jim@meyering.net>
52931
52932         Fix global typo in last change: use chmod u-w, not chmod u-x.
52933         Spotted by Paul Eggert and Bruce Korb.
52934         * modules/alloca-opt, modules/argz, modules/arpa_inet:
52935         * modules/byteswap, modules/configmake, modules/fcntl:
52936         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
52937         * modules/localcharset, modules/netinet_in, modules/poll:
52938         * modules/stdbool, modules/stdint, modules/sys_select:
52939         * modules/sys_socket, modules/sys_stat, modules/sysexits:
52940
52941 2006-09-06  Jim Meyering  <jim@meyering.net>
52942
52943         Make generated files be read-only.
52944         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
52945         Ensure that each generated file is now read-only.
52946         * modules/argz: Likewise.
52947         * modules/arpa_inet: Likewise.
52948         * modules/byteswap: Likewise.
52949         * modules/configmake: Likewise.
52950         * modules/fcntl: Likewise.
52951         * modules/fnmatch: Likewise.
52952         * modules/getopt: Likewise.
52953         * modules/glob: Likewise.
52954         * modules/inttypes: Likewise.
52955         * modules/netinet_in: Likewise.
52956         * modules/poll: Likewise.
52957         * modules/stdbool: Likewise.
52958         * modules/stdint: Likewise.
52959         * modules/sys_select: Likewise.
52960         * modules/sys_socket: Likewise.
52961         * modules/sys_stat: Likewise.
52962         * modules/sysexits: Likewise.
52963         * modules/localcharset: Same as above, but continue using temporary
52964         file named "t-$@" (why different?) rather than the "$@-t" used
52965         everywhere else.
52966
52967         * modules/sysexits (Makefile.am): Replace literal occurrences
52968         of "sysexit.h" more readable, and more consistent, "$@".
52969
52970 2006-09-06  Bruno Haible  <bruno@clisp.org>
52971
52972         * modules/striconv: New file.
52973         * modules/xstriconv: New file.
52974         * MODULES.html.sh (Internationalization functions): Add striconv,
52975         xstriconv.
52976
52977 2006-09-06  Bruno Haible  <bruno@clisp.org>
52978
52979         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
52980         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
52981         not using libtool correctly.
52982
52983 2006-09-06  Bruno Haible  <bruno@clisp.org>
52984
52985         * lib/striconv.h: New file.
52986         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
52987         iconvstring.c.
52988         * lib/xstriconv.h: New file.
52989         * lib/xstriconv.c: New file.
52990
52991 2006-09-06  Bruno Haible  <bruno@clisp.org>
52992
52993         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52994         lib_..._LDFLAGS.
52995
52996 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52997
52998         * lib/argz_.h: Sync from Libtool.
52999
53000         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53001                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53002
53003         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53004
53005 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53006
53007         * modules/trim: New file.
53008
53009 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53010
53011         * lib/trim.h: New file.
53012         * lib/trim.c: New file.
53013
53014 2006-09-05  Bruno Haible  <bruno@clisp.org>
53015
53016         * MODULES.html.sh (String handling): Add trim.
53017
53018 2006-09-04  Karl Berry  <karl@gnu.org>
53019
53020         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53021         until next release.
53022
53023 2006-09-03  Bruno Haible  <bruno@clisp.org>
53024
53025         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53026         correctly.
53027
53028 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53029
53030         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53031         not gl_GETLOADAVG.  Omit unneeded semicolons.
53032         Problems reported by Ralf Wildenhues in
53033         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53034         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53035         at the end, which is the usual gnulib style.
53036
53037         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53038         of doing all the work ourselves.
53039         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53040         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53041
53042 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53043
53044         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53045         Problem reported by Ralf Wildenhues in
53046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53047
53048         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
53049         HAVE_STRUCT_STATFS_F_FSTYPENAME.
53050
53051 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53052
53053         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
53054         yesterday's patch by changing test -n to test -z.
53055
53056 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53057
53058         * modules/getloadavg (Files): Add m4/getloadavg.m4.
53059         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
53060         the former is now obsolescent.
53061
53062         * modules/chdir-long (Depends-on): Add fcntl.
53063
53064 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53065
53066         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53067         obsolescent, and programs should use gnulib instead.
53068         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53069         but with prefixes changed.
53070
53071 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53072
53073         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53074         or stdbool.h, because they might not exist while configuring.
53075
53076         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53077         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53078         does that for us.
53079         (O_DIRECTORY): Remove.
53080
53081 2006-08-31  Eric Blake  <ebb9@byu.net>
53082
53083         * gnulib-tool: Don't let emacs change spaces to TAB.
53084
53085 2006-08-31  Bruno Haible  <bruno@clisp.org>
53086
53087         * gnulib-tool: When calling func_import more than once, do it in a
53088         subshell.
53089         Reported by Eric Blake <ebb9@byu.net>.
53090
53091 2006-08-31  Bruno Haible  <bruno@clisp.org>
53092
53093         * gnulib-tool (nl): Remove variable.
53094         (sed_transform_lib_file): Use more robust test for config-h module.
53095         (func_import): Fix typo in 2006-08-25 patch.
53096
53097 2006-08-31  Bruno Haible  <bruno@clisp.org>
53098
53099         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53100         specified, augment Makefile.am variables instead of assigning them.
53101
53102 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53103
53104         Work around a bug in both the Linux and SunOS 64-bit kernels:
53105         nanosleep mishandles sleeps for longer than 2**31 seconds.
53106         Problem reported by Frank v Waveren in
53107         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53109         Check for nanosleep bug.
53110         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53111
53112 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53113
53114         Work around a bug in both the Linux and SunOS 64-bit kernels:
53115         nanosleep mishandles sleeps for longer than 2**31 seconds.
53116         Problem reported by Frank v Waveren in
53117         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53118         * lib/nanosleep.c (BILLION): New constant.
53119         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53120         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53121         implementation.
53122
53123 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53124
53125         * modules/nanosleep (Depends-on): Add gettime.
53126
53127 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53128         and Simon Josefsson  <jas@extundo.com>
53129         and Oskar Liljeblad  <oskar@osk.mine.nu>
53130
53131         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53132         * gnulib-tool (func_import): New license type 'unmodifiable license
53133         text'.
53134         * modules/fdl: Use it.  Longer description.
53135         * module/gpl, module/lgpl: New files.
53136
53137 2006-08-30  Jim Meyering  <jim@meyering.net>
53138
53139         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53140         shadowing the parameter.
53141
53142 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53143
53144         Sync from Libtool:
53145
53146         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53147
53148         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53149         sharing with gnulib.  Report by Eric Blake.
53150
53151 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53152
53153         * modules/isapipe: New file.
53154         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53155
53156 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53157
53158         * modules/configmake (Makefile.am): Add a comment, and omit
53159         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53160         by Bruno Haible.
53161
53162 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53163
53164         * m4/isapipe.m4: New file.
53165
53166 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53167
53168         * lib/isapipe.c, lib/isapipe.h: New files.
53169
53170 2006-08-29  Jim Meyering  <jim@meyering.net>
53171
53172         * modules/configmake (Makefile.am): Make configmake.h depend on
53173         Makefile.  Otherwise, a stale configmake.h could hang around.
53174
53175 2006-08-29  Eric Blake  <ebb9@byu.net>
53176
53177         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53178         resolution of upstream bug 3044.
53179
53180 2006-08-29  Bruno Haible  <bruno@clisp.org>
53181
53182         * modules/localcharset (Depends-on): Add configmake.
53183         (Makefile.am): Remove setting of LIBDIR through DEFS.
53184
53185 2006-08-29  Bruno Haible  <bruno@clisp.org>
53186
53187         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53188         defined.
53189
53190 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53191
53192         * modules/fcntl: New file.
53193         * modules/chdir-safer (Depends-on): Add fcntl.
53194         * modules/fts: Likewise.
53195         * modules/mkdir-p: Likewise.
53196
53197         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53198         This undoes the most recent change, since we're now addressing the
53199         problem in a different way.
53200
53201         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53202         into output, since the output might be called Makefile.am even
53203         if $makefile_name is something different.
53204         (func_import): Use $makefile_am rather than
53205         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53206         empty.
53207
53208         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53209
53210 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53211
53212         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53213         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53214         recent change to stdint.m4, since we're now addressing the problem in a
53215         different way.
53216
53217 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53218
53219         * m4/fcntl_h.m4: New file.
53220
53221 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53222
53223         * lib/fcntl_.h: New file.
53224         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53225         the fcntl module.
53226         * lib/dirchownmod.c: Likewise.
53227         * lib/fts.c: Likewise.
53228
53229         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53230         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53231         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53232         just before including <inttypes.h>, to avoid circular inclusion.
53233
53234 2006-08-28  Jim Meyering  <jim@meyering.net>
53235
53236         * doc/visibility.texi: Actually read and correct the grammar of the
53237         sentence affected by yesterday's change.
53238
53239 2006-08-28  Eric Blake  <ebb9@byu.net>
53240
53241         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53242         needs wrapper.
53243
53244 2006-08-28  Eric Blake  <ebb9@byu.net>
53245
53246         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53247
53248 2006-08-28  Eric Blake  <ebb9@byu.net>
53249
53250         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53251
53252 2006-08-28  Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/c-strstr: New file, from GNU gettext.
53255         * MODULES.html.sh (String handling): Add c-strstr.
53256
53257 2006-08-28  Bruno Haible  <bruno@clisp.org>
53258
53259         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53260         macros.
53261         Reported by Eric Blake.
53262
53263 2006-08-28  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53266         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53267         * lib/vasprintf.c: Include errno.h, limits.h.
53268         (EOVERFLOW): New fallback definition.
53269         (vasprintf): Test here whether the string length is > INT_MAX.
53270         * lib/vsnprintf.c: Include errno.h, limits.h.
53271         (EOVERFLOW): New fallback definition.
53272         (vsnprintf): Fix bug when generated string was too long for the buffer.
53273         Test here whether the string length is > INT_MAX.
53274
53275 2006-08-28  Bruno Haible  <bruno@clisp.org>
53276
53277         * lib/inttypes_.h (SCNX*): Remove definitions.
53278         Reported by Eric Blake.
53279
53280 2006-08-28  Bruno Haible  <bruno@clisp.org>
53281
53282         * lib/c-strstr.h: New file, from GNU gettext.
53283         * lib/c-strstr.c: New file, from GNU gettext.
53284
53285 2006-08-28  Bruno Haible  <bruno@clisp.org>
53286
53287         * gnulib-tool: Reorder some statements.
53288
53289 2006-08-28  Bruno Haible  <bruno@clisp.org>
53290
53291         * gnulib-tool: New option --makefile-name.
53292         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53293         $makefile_name.
53294         (func_import): Write $makefile_name to the cache file, and read it from
53295         there unless explicitly specified. Use $makefile_name as file name
53296         instead of Makefile.am. Adjust the recommendations accordingly.
53297
53298 2006-08-28  Bruno Haible  <bruno@clisp.org>
53299
53300         * gnulib-tool (func_verify_module): Check against misapplying patch.
53301
53302 2006-08-28  Bruno Haible  <bruno@clisp.org>
53303
53304         * gnulib-tool (func_relativize, func_relconcat): New functions.
53305         Give an error if --local-dir is given with --update.
53306         Remove trailing slashes from $local_gnulib_dir.
53307         (func_import): Store the relativized $local_gnulib_dir in
53308         gnulib-cache.m4, and read it from there if not specified explicitly.
53309
53310 2006-08-28  Bruno Haible  <bruno@clisp.org>
53311
53312         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53313         is the current directory. Respect also $local_gnulib_dir.
53314
53315 2006-08-28  Bruno Haible  <bruno@clisp.org>
53316             Simon Josefsson  <jas@extundo.com>
53317
53318         BeOS portability.
53319         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53320
53321 2006-08-27  Jim Meyering  <jim@meyering.net>
53322
53323         * doc/visibility.texi: Remove duplicate word: "pointer".
53324
53325 2006-08-26  Bruno Haible  <bruno@clisp.org>
53326
53327         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53328         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53329         (Makefile.am): Create inttypes.h from inttypes_.h.
53330         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53331
53332         * modules/imaxabs: New file.
53333
53334         * modules/imaxdiv: New file.
53335
53336 2006-08-26  Bruno Haible  <bruno@clisp.org>
53337
53338         * m4/inttypes.m4: New file.
53339         * m4/_inttypes_h.m4: Remove file.
53340         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53341         PRI_MACROS_BROKEN.
53342         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53343
53344         * m4/imaxabs.m4: New file.
53345
53346         * m4/imaxdiv.m4: New file.
53347
53348 2006-08-26  Bruno Haible  <bruno@clisp.org>
53349
53350         * lib/inttypes_.h: New file.
53351         * lib/inttypes.h: Remove file.
53352         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53353
53354         * lib/imaxabs.c: New file.
53355
53356         * lib/imaxdiv.c: New file.
53357
53358 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53359
53360         New config-h module, so that "make" output needn't be cluttered
53361         by -DHAVE_CONFIG_H.
53362         * MODULES.html.sh (Support for building libraries and executables):
53363         Add config-h.
53364         * modules/config-h: New file.
53365         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53366         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53367         the config-h module is used.
53368
53369         New configmake module, so that "make" output needn't be cluttered
53370         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53371         * MODULES.html.sh (Support for building libraries and executables):
53372         Add configmake.
53373         * modules/configmake: New file.
53374
53375 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53376
53377         * m4/config-h.m4: New file.
53378
53379 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53380
53381         * config/srclist.txt: Add elisp-comp.
53382
53383 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53384
53385         * MODULES.html.sh (Support for building libraries and executables):
53386         Add elisp-comp.
53387         * build-aux/elisp-comp: New file.
53388         * modules/elisp-comp: New file.
53389
53390 2006-08-24  Bruno Haible  <bruno@clisp.org>
53391
53392         * gnulib-tool (func_create_testdir): Use non-default values of
53393         sourcebase and m4base.
53394
53395 2006-08-24  Bruno Haible  <bruno@clisp.org>
53396
53397         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
53398         HTML structure.
53399
53400 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53401
53402         * modules/openat (Depends-on): Add lchown.
53403
53404 2006-08-23  Bruno Haible  <bruno@clisp.org>
53405
53406         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
53407         of gl_LOCK_EARLY instead of gl_LOCK.
53408
53409 2006-08-23  Bruno Haible  <bruno@clisp.org>
53410
53411         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
53412         on OSF/1 to no.
53413         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
53414
53415 2006-08-23  Bruno Haible  <bruno@clisp.org>
53416
53417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
53418         as unusable.
53419
53420         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
53421         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
53422         (gl_LOCK): New macro.
53423
53424 2006-08-22  Simon Josefsson  <jas@extundo.com>
53425
53426         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
53427         to md5 module.
53428
53429 2006-08-22  Simon Josefsson  <jas@extundo.com>
53430
53431         * MODULES.html.sh: Add "Support for maintaining and release
53432         projects".
53433
53434         * build-aux/gnupload: New file, from coreutils.
53435
53436 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53437
53438         Avoid the need for AC_LIBSOURCES in m4 macros.
53439         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
53440         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
53441         * modules/check-version (EXTRA_DIST): Add check-version.h.
53442         * modules/crc (EXTRA_DIST): Add crc.h.
53443         * modules/des (EXTRA_DIST): Add des.h.
53444         * modules/gc (EXTRA_DIST): Add gc.h.
53445         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
53446         * modules/getline (EXTRA_DIST): Add getline.h.
53447         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
53448         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
53449         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
53450         * modules/md2 (EXTRA_DIST): Add md2.h.
53451         * modules/md4 (EXTRA_DIST): Add md4.h.
53452         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53453         * modules/read-file (EXTRA_DIST): Add read-file.h.
53454         * modules/readline (EXTRA_DIST): Add readline.h.
53455         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
53456         rijndael-api-fst.h.
53457
53458 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53459
53460         * m4/rijndael.m4 (gl_ARCFOUR):
53461         * m4/arctwo.m4 (gl_ARCTWO):
53462         * m4/check-version.m4 (gl_CHECK_VERSION):
53463         * m4/crc.m4 (gl_CRC):
53464         * m4/des.m4 (gl_DES):
53465         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
53466         * m4/gc.m4 (gl_GC):
53467         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
53468         * m4/getline.m4 (gl_FUNC_GETLINE):
53469         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
53470         * m4/hmac-md5.m4 (gl_HMAC_MD5):
53471         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
53472         * m4/md2.m4 (gl_MD2):
53473         * m4/md4.m4 (gl_MD4):
53474         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
53475         * m4/read-file.m4 (gl_FUNC_READ_FILE):
53476         * m4/readline.m4 (gl_FUNC_READLINE):
53477         * m4/rijndael.m4 (gl_RIJNDAEL):
53478         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53479         to get the necessary .h files and whatnot.
53480
53481 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53482
53483         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
53484         gnulib rather than the other way around.
53485         * config/srclistvars.sh (COREUTILS): Remove.
53486
53487 2006-08-22  Jim Meyering  <jim@meyering.net>
53488
53489         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
53490
53491         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
53492
53493 2006-08-22  Eric Blake  <ebb9@byu.net>
53494
53495         * modules/regexprops-generic: New file.
53496         * MODULES.html.sh (Support for building documentation): List it.
53497
53498 2006-08-22  Eric Blake  <ebb9@byu.net>
53499
53500         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
53501         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53502         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
53503         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
53504
53505 2006-08-22  Bruno Haible  <bruno@clisp.org>
53506
53507         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
53508         and lib_LTLIBRARIES like the other lib_* variables.
53509
53510 2006-08-22  Bruno Haible  <bruno@clisp.org>
53511
53512         * build-aux/x-to-1.in: New file, from GNU gettext.
53513
53514 2006-08-22  Bruno Haible  <bruno@clisp.org>
53515
53516         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
53517         <utmpx.h> exists.
53518
53519 2006-08-22  Bruno Haible  <bruno@clisp.org>
53520
53521         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
53522         <utmpx.h> exists.
53523
53524 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53525
53526         BeOS portability.
53527         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
53528         exist.
53529         Problem reported by Bruno Haible.
53530
53531 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53532
53533         Avoid the need for AC_LIBSOURCES in m4 macros.
53534         * modules/acl (EXTRA_DIST): Add acl.h.
53535         * modules/argmatch (Files): Add m4/argmatch.m4.
53536         (configure.ac): Add gl_ARGMATCH.
53537         (EXTRA_DIST): Renamed from lib_SOURCES, for
53538         consistency with the other modules.  Remove argmatch.c.
53539         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
53540         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
53541         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
53542         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
53543         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
53544         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
53545         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
53546         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
53547         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
53548         * modules/closeout (EXTRA_DIST): Add closeout.h.
53549         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
53550         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
53551         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
53552         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
53553         dirname.h; remove basename.c and stripslash.c.
53554         * modules/exclude (EXTRA_DIST): Add exclude.h.
53555         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
53556         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
53557         * modules/file-type (EXTRA_DIST): Add file-type.h.
53558         * modules/filemode (EXTRA_DIST): Add filemode.h.
53559         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
53560         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53561         * modules/fpending (EXTRA_DIST): Add __fpending.h.
53562         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
53563         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
53564         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
53565         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
53566         * modules/getdate (EXTRA_DIST): Add getdate.c.
53567         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
53568         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
53569         * modules/getpass (EXTRA_DIST): Add getpass.h.
53570         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
53571         * modules/group-member (EXTRA_DIST): Add group-member.h.
53572         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
53573         * modules/hash (EXTRA_DIST): Add hash.h.
53574         * modules/human (EXTRA_DIST): Add human.h.
53575         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
53576         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
53577         * modules/lchown (EXTRA_DIST): Add lchown.h.
53578         * modules/long-options (EXTRA_DIST): Add long-options.h.
53579         * modules/lstat (EXTRA_DIST): Add lstat.h.
53580         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
53581         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
53582         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
53583         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
53584         * modules/memxor (EXTRA_DIST): Add memxor.h.
53585         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
53586         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
53587         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
53588         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
53589         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
53590         * modules/physmem (EXTRA_DIST): Add physmem.h.
53591         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
53592         * modules/posixver (EXTRA_DIST): Add posixver.h.
53593         * modules/quote (EXTRA_DIST): Add quote.h.
53594         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
53595         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
53596         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
53597         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
53598         regex_internal.h regexec.c.
53599         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
53600         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
53601         * modules/same (EXTRA_DIST): Add same.h.
53602         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
53603         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
53604         * modules/savedir (EXTRA_DIST): Add savedir.h.
53605         * modules/sha1 (EXTRA_DIST): Add sha1.h.
53606         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
53607         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
53608         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
53609         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
53610         * modules/strdup (EXTRA_DIST): Add strdup.h.
53611         * modules/strftime (EXTRA_DIST): Add strftime.h.
53612         * modules/strndup (EXTRA_DIST): Add strndup.h.
53613         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
53614         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
53615         * modules/time_r (EXTRA_DIST): Add time_r.h.
53616         * modules/timespec (EXTRA_DIST): Add timespec.h.
53617         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53618         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
53619         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
53620         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
53621         * modules/userspec (EXTRA_DIST): Add userspec.h.
53622         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
53623         * modules/utimens (EXTRA_DIST): Add utimens.h.
53624         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
53625         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
53626         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
53627         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
53628         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
53629         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
53630         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
53631         * modules/yesno (EXTRA_DIST): Add yesno.h.
53632
53633 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53634
53635         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
53636
53637         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
53638         * m4/dev-ino.m4, same-inode.m4: Remove.
53639
53640         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
53641         * m4/acl.m4 (AC_FUNC_ACL):
53642         * m4/backupfile.m4 (gl_BACKUPFILE):
53643         * m4/c-strtod.m4 (gl_C99_STRTOLD):
53644         * m4/canon-host.m4 (gl_CANON_HOST):
53645         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53646         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
53647         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
53648         * m4/cloexec.m4 (gl_CLOEXEC):
53649         * m4/close-stream.m4 (gl_CLOSE_STREAM):
53650         * m4/closeout.m4 (gl_CLOSEOUT):
53651         * m4/dirfd.m4 (gl_FUNC_DIRFD):
53652         * m4/dirname.m4 (gl_DIRNAME):
53653         * m4/exclude.m4 (gl_EXCLUDE):
53654         * m4/exitfail.m4 (gl_EXITFAIL):
53655         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
53656         * m4/file-type.m4 (gl_FILE_TYPE):
53657         * m4/filemode.m4 (gl_FILEMODE):
53658         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
53659         * m4/fpending.m4 (gl_FUNC_FPENDING):
53660         * m4/fprintftime.m4 (gl_FPRINTFTIME):
53661         * m4/fts.m4 (gl_FUNC_FTS):
53662         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
53663         * m4/getdate.m4 (gl_GETDATE):
53664         * m4/gethrxtime.m4 (gl_GETHRXTIME):
53665         * m4/getpagesize.m4 (gl_GETPAGESIZE):
53666         * m4/getpass.m4 (gl_FUNC_GETPASS):
53667         * m4/gettime.m4 (gl_GETTIME):
53668         * m4/getugroups.m4 (gl_GETUGROUPS):
53669         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
53670         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
53671         * m4/hard-locale.m4 (gl_HARD_LOCALE):
53672         * m4/hash.m4 (gl_HASH):
53673         * m4/idcache.m4 (gl_IDCACHE):
53674         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
53675         * m4/lchown.m4 (gl_FUNC_LCHOWN):
53676         * m4/long-options.m4 (gl_LONG_OPTIONS):
53677         * m4/lstat.m4 (gl_FUNC_LSTAT):
53678         * m4/md5.m4 (gl_MD5):
53679         * m4/memcasecmp.m4 (gl_MEMCASECMP):
53680         * m4/memcoll.m4 (gl_MEMCOLL):
53681         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
53682         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
53683         * m4/memxor.m4 (gl_MEMXOR):
53684         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
53685         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
53686         * m4/modechange.m4 (gl_MODECHANGE):
53687         * m4/mountlist.m4 (gl_MOUNTLIST):
53688         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53689         * m4/openat.m4 (gl_FUNC_OPENAT):
53690         * m4/pathmax.m4 (gl_PATHMAX):
53691         * m4/physmem.m4 (gl_PHYSMEM):
53692         * m4/posixtm.m4 (gl_POSIXTM):
53693         * m4/posixver.m4 (gl_POSIXVER):
53694         * m4/quote.m4 (gl_QUOTE):
53695         * m4/quotearg.m4 (gl_QUOTEARG):
53696         * m4/readtokens.m4 (gl_READTOKENS):
53697         * m4/readutmp.m4 (gl_READUTMP):
53698         * m4/regex.m4 (gl_REGEX):
53699         * m4/safe-read.m4 (gl_SAFE_READ):
53700         * m4/safe-write.m4 (gl_SAFE_WRITE):
53701         * m4/same.m4 (gl_SAME):
53702         * m4/save-cwd.m4 (gl_SAVE_CWD):
53703         * m4/savedir.m4 (gl_SAVEDIR):
53704         * m4/settime.m4 (gl_SETTIME):
53705         * m4/sha1.m4 (gl_SHA1):
53706         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
53707         * m4/stat-macros.m4 (gl_STAT_MACROS):
53708         * m4/stat-time.m4 (gl_STAT_TIME):
53709         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
53710         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
53711         * m4/strdup.m4 (gl_FUNC_STRDUP):
53712         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
53713         * m4/strndup.m4 (gl_FUNC_STRNDUP):
53714         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
53715         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
53716         * m4/time_r.m4 (gl_TIME_R):
53717         * m4/timespec.m4 (gl_TIMESPEC):
53718         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
53719         * m4/unlinkdir.m4 (gl_UNLINKDIR):
53720         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
53721         * m4/userspec.m4 (gl_USERSPEC):
53722         * m4/utimecmp.m4 (gl_UTIMECMP):
53723         * m4/utimens.m4 (gl_UTIMENS):
53724         * m4/xalloc.m4 (gl_XALLOC):
53725         * m4/xgetcwd.m4 (gl_XGETCWD):
53726         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
53727         * m4/xreadlink.m4 (gl_XREADLINK):
53728         * m4/xstrtod.m4 (gl_XSTRTOD):
53729         * m4/yesno.m4 (gl_YESNO):
53730         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53731         to get the necessary .h files and whatnot.
53732
53733 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
53734             Bruno Haible  <bruno@clisp.org>
53735
53736         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
53737         /bin/sh understanding of '!' conditional negation.
53738
53739 2006-08-21  Jim Meyering  <jim@meyering.net>
53740
53741         * modules/openat (Depends-on): Really alphabetize.
53742
53743         * modules/acl (Depends-on): Add error and quote.
53744
53745         * check-module (find_included_lib_files): Add at-func.c to the
53746         ok-to-include-more-than-once white list.
53747
53748         * modules/openat (Depends-on): Add lstat.  Alphabetize.
53749
53750 2006-08-21  Bruno Haible  <bruno@clisp.org>
53751
53752         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53753         Emit a pkgdata_DATA variable only if some snippets add contents to it.
53754         Reported by Martin Lambers <marlam@marlam.de>.
53755
53756 2006-08-21  Bruno Haible  <bruno@clisp.org>
53757
53758         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
53759         specify an installation location, don't emit a noinst_LIBRARIES or
53760         noinst_LTLIBRARIES assignment.
53761
53762 2006-08-21  Bruno Haible  <bruno@clisp.org>
53763
53764         BeOS portability.
53765         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
53766         BeOS has mbrtowc() but no <wctype.h>.
53767
53768 2006-08-21  Bruno Haible  <bruno@clisp.org>
53769
53770         BeOS portability.
53771         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
53772         exist.
53773
53774 2006-08-21  Bruno Haible  <bruno@clisp.org>
53775
53776         BeOS portability.
53777         * lib/mbchar.h: Include <wctype.h> only if it exists.
53778
53779 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53780
53781         Remove files that are no longer needed by their respective modules.
53782         * m4/obstack.m4: Remove.
53783         * m4/strerror_r.m4: Remove.
53784         * m4/uint32_t.m4: Remove.
53785         * m4/uintptr_t.m4: Remove.
53786         * m4/ullong_max.m4: Remove.
53787         * m4/xstrtoimax.m4: Remove.
53788         * m4/xstrtoumax.m4: Remove.
53789
53790         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
53791         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
53792         dependencies now capture this.
53793
53794         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
53795         Do not use AC_LIBSOURCES, since gnulib modules now do this.
53796         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
53797         * m4/human.m4 (gl_HUMAN): Likewise.
53798         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
53799         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
53800
53801         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
53802
53803         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
53804         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
53805         stdint.
53806         * m4/human.m4 (gl_HUMAN): Likewise.
53807         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
53808         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
53809         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53810         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53811         * m4/xstrtol (gl_XSTRTOL): Likewise.
53812
53813         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
53814         AC_TYPE_LONG_LONG_INT.
53815         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53816         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
53817         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
53818         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53819
53820         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
53821         on stdbool.
53822
53823         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
53824         (gl_PREREQ_XSTRTOUL): Remove.
53825
53826         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
53827
53828         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
53829         mode.
53830
53831 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53832
53833         Add and change modules to make it easier for coreutils to use
53834         gnulib-tool.
53835         * modules/backupfile (Files): Remove m4/d-ino.m4.
53836         (Depends-on): Add d-ino.
53837         * modules/cycle-check (Depends-on): Add stdint.
53838         (lib_SOURCES): Add cycle-check.h.
53839         * modules/d-ino: New module.
53840         * modules/d-type: New module.
53841         * modules/error (Files): Remove m4/strerror_r.m4.
53842         * modules/filemode (Files): Add m4/st_dm_mode.m4.
53843         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53844         m4/inttypes_h.m4, m4/uintmax_t.m4.
53845         (Depends-on): Add stdint.
53846         (lib_SOURCES): Add fsusage.h.
53847         * modules/getcwd (Files): Remove d-ino.m4.
53848         (Depends-on): Add d-ino.
53849         * modules/getndelim2 (Depends-on): Add stdint.
53850         * modules/glob (Files): Remove m4/d-type.m4.
53851         (Depends-on): Add d-type.
53852         * modules/host-os: New module.
53853         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
53854         m4/inttypes_h.m4, m4/uintmax_t.m4.
53855         * Depends-on: Add stdint.
53856         (lib_SOURCES): Add human.h.
53857         * modules/inttostr (Files): Remove m4/intmax_t.m4,
53858         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
53859         m4/uintmax_t.m4, m4/ulonglong.m4.
53860         (Depends-on): Add stdint.
53861         (EXTRA_DIST): Add inttostr.h.
53862         * modules/lchmod: New module.
53863         * modules/link-follow: New module.
53864         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
53865         (Depends-on): Add lchmod.
53866         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
53867         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
53868         (Depends-on): Add stdint.
53869         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
53870         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
53871         (Depends-on): Add stdint.
53872         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
53873         * modules/perl: New module.
53874         * modules/regex (Depends-on): Add stdint.
53875         * modules/rmdir-errno: New module.
53876         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53877         m4/intmax_t.m4.
53878         (Depends-on): Add stdint.
53879         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53880         m4/uintmax_t.m4.
53881         (Depends-on): Add stdint.
53882         * modules/unlink-busy: New module.
53883         * modules/utimecmp (Depends-on): Add stdint.
53884         * modules/uptime: New module.
53885         * modules/winsz-ioctl: New module.
53886         * modules/winsz-termios: New module.
53887         * modules/xnanosleep (Depends-on): Add nanosleep.
53888         * modules/ullong_max: Remove.
53889         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
53890         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
53891         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
53892         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
53893         (Depends-on): Add inttypes.
53894         (lib_SOURCES): Add xstrtol.h.
53895         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
53896         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
53897         * MODULES.html.sh: Move 'assert' into the assert section.
53898         Move 'dummy' into the linking section.
53899         Remove ullong_max.
53900         Add section for compatibility checks for POSIX:2001 functions,
53901         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
53902         winsz-ioctl, and winsz-termios into it.
53903         Add lchmod.
53904         Add top-level Misc section and put host-os, perl, and uptime
53905         into it.
53906
53907 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53908
53909         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
53910         now assume the stdint module.  Do not include inttypes.h.
53911         * lib/fsusage.h: Likewise.
53912         * lib/getndelim2.c: Likewise.
53913         * lib/human.h: Likewise.
53914         * lib/inttostr.h: Likewise.
53915         * lib/obstack.c: Likewise.
53916         * lib/regex_internal.h: Likewise.
53917         * lib/tempname.c: Likewise.
53918         * lib/utimecmp.c: Likewise.
53919         * lib/xstrtol.h: Likewise.
53920
53921         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
53922
53923         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
53924         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
53925         * lib/xtime.h: Likewise.
53926
53927 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53928
53929         * modules/openat (Files): Add lib/fchmodat.c.
53930         Fixes problem reported by Jay Youngman.
53931
53932 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53933
53934         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
53935         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
53936
53937 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
53938             Bruno Haible  <bruno@clisp.org>
53939
53940         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
53941         and is a script that invokes bison. Tighten the code. Add comments.
53942
53943 2006-08-18  Jim Meyering  <jim@meyering.net>
53944
53945         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
53946         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
53947         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
53948         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
53949
53950 2006-08-18  Bruno Haible  <bruno@clisp.org>
53951
53952         * modules/bison-i18n: New file.
53953         * MODULES.html.sh (Internationalization functions): Add it.
53954
53955 2006-08-18  Bruno Haible  <bruno@clisp.org>
53956
53957         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
53958         sys/statvfs.h. When getmntinfo was found, check its declaration and
53959         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
53960
53961 2006-08-18  Bruno Haible  <bruno@clisp.org>
53962
53963         * m4/bison-i18n.m4: New file, from bison.
53964
53965 2006-08-18  Bruno Haible  <bruno@clisp.org>
53966
53967         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
53968         (ME_DUMMY): Treat "kernfs" as a dummy.
53969         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
53970
53971 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53972
53973         Update from coreutils.
53974
53975         2006-08-15  Jim Meyering  <jim@meyering.net>
53976
53977         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
53978
53979         2006-01-17  Jim Meyering  <jim@meyering.net>
53980
53981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
53982
53983         2006-01-11  Jim Meyering  <jim@meyering.net>
53984
53985         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
53986         Check for the lchmod function.
53987
53988 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53989
53990         Update from coreutils.
53991
53992         * lib/__fpending.h: Add copyright notice.
53993         * lib/fprintftime.h: Likewise.
53994         * lib/savedir.c: Use (C) in copyright notice.
53995         * lib/savedir.h: Likewise.
53996
53997         2006-08-15  Jim Meyering  <jim@meyering.net>
53998
53999         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54000         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54001         in support of the EXPECTED_ERRNO macro.
54002         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54003         definitions.  Instead, define the appropriate symbols and include
54004         "at-func.c".
54005         * lib/mkdirat.c (mkdirat): Likewise.
54006         * lib/fchmodat.c (fchmodat): Likewise.
54007         (ENOSYS): Remove definition.
54008         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54009         it.  Don't include "unistd--.h" -- it wasn't ever used.
54010
54011         2006-01-17  Jim Meyering  <jim@meyering.net>
54012
54013         Rewrite fts.c not to change the current working directory,
54014         by using openat, fstatat, fdopendir, etc..
54015
54016         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54017         (HAVE_OPENAT_SUPPORT): Define.
54018         [_LIBC] (fchdir): Don't undef or define; no longer used.
54019         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54020         Now, this `function' always succeeds, and consumes its file descriptor
54021         parameter -- so callers must not close such FDs.  Update callers.
54022         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54023         (diropen): Add parameter, SP.  Adjust all callers.
54024         Implement using diropen_fd, rather than open.
54025         (fts_open): Initialize new member, fts_cwd_fd.
54026         Remove fts_rft-setting code.
54027         (fts_close): Close fts_cwd_fd, if necessary.
54028         (__opendir2): Define in terms of opendir or opendirat,
54029         depending on whether the FST_NOCHDIR flag is set.
54030         (fts_build): Since fts_safe_changedir consumes its FD, and since
54031         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54032         and close the dup'd file descriptor upon failure.
54033         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54034         (fts_safe_changedir): Tweak semantics to reflect that this function
54035         now calls cwd_advance_fd and hence consumes its FD argument.
54036         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54037         [struct FTS] (fts_rft): Remove now-unused member.
54038         [struct FTS] (fts_cycle.state): Improve comment.
54039
54040         * lib/openat.c (openat_needs_fchdir): New function.
54041         * lib/openat.h (openat_needs_fchdir): Declare it.
54042
54043 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54044
54045         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
54046         Problem and fix reported by Pádraig Brady in
54047         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
54048
54049 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54050
54051         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
54052
54053 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54054
54055         * lib/memcoll.c (memcoll): Optimize for the common case where the
54056         arguments are bytewise equal.
54057
54058 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54059
54060         * doc/regexprops-generic.texi: Add a copyright notice.
54061
54062 2006-08-15  Bruno Haible  <bruno@clisp.org>
54063
54064         * modules/tmpdir (License): Change to LGPL.
54065
54066 2006-08-15  Bruno Haible  <bruno@clisp.org>
54067
54068         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54069         module.
54070
54071 2006-08-14  Simon Josefsson  <jas@extundo.com>
54072
54073         * config/srclist.txt: Add gnupload.
54074
54075 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54076
54077         Change copyright notice from LGPL 2 to GPL 2, since that's the
54078         standard form used in the gnulib repository.
54079         * tests/test-lock.c: Likewise.
54080         * tests/test-stdint.c: Likewise.
54081         * tests/test-tls.c: Likewise.
54082
54083         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54084         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54085         Add copyright notice.
54086
54087         * check-module: Add copyright notice.  Output a copyright
54088         notice if "--version" is specified.
54089         * modules/COPYING: New file.
54090         * tests/test-getaddrinfo.c: Add copyright notice.
54091         * tests/test-verify.c: Likewise.
54092
54093 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54094
54095         Change copyright notice from LGPL 2 to GPL 2, since that's the
54096         standard form used in the gnulib repository.
54097         * lib/lock.c: LGPL -> GPL.
54098         * lib/lock.h: Likewise.
54099         * lib/strnlen1.c: Likewise.
54100         * lib/strnlen1.h: Likewise.
54101         * lib/tls.c: Likewise.
54102         * lib/tls.h: Likewise.
54103         * lib/tmpdir.c: Likewise.
54104
54105         * lib/TODO: Remove; this belongs only in coreutils.
54106
54107 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54108
54109         Add copyright notices to long-enough files that lack them, since
54110         otherwise the files aren't clearly free.  Use the same notice that
54111         getdate.texi already uses.
54112         * doc/alloca-opt.texi: Add copyright notice.
54113         * doc/alloca.texi: Likewise.
54114         * doc/ctime.texi: Likewise.
54115         * doc/functions.texi: Likewise.
54116         * doc/gcd.texi: Likewise.
54117         * doc/gnulib-tool.texi: Likewise.
54118         * doc/inet_ntoa.texi: Likewise.
54119         * doc/visibility.texi: Likewise.
54120
54121         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54122         * doc/quote.texi: Add copyright notice.
54123
54124         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54125         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54126         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54127         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54128         is now obsolete, and give a pointer to the Sun list.
54129         Add copyright notice.
54130
54131 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54132
54133         * config/srclistvars.sh: Add copyright notice.
54134
54135 2006-08-14  Eric Blake  <ebb9@byu.net>
54136
54137         Import the following change from libc:
54138
54139         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54140
54141         Upstream bug 2997.
54142         * lib/misc/error.c: Add space between program name and message if file
54143         name is missing.
54144
54145 2006-08-12  Karl Berry  <karl@gnu.org>
54146
54147         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54148         remove, these originate in gnulib now.
54149
54150 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54151
54152         * doc/Makefile (standards.info standards.html standards.dvi):
54153         Also depend on make-stds.texi.
54154
54155 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54156
54157         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54158         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54159
54160         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54161         in wchar_t.  Problem reported by Eric Blake.
54162
54163         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54164         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54165         Also, help the compiler to keep LEN in a register.
54166
54167 2006-08-11  Eric Blake  <ebb9@byu.net>
54168
54169         * users.txt: Sort.  Add tar.
54170
54171 2006-08-11  Bruno Haible  <bruno@clisp.org>
54172
54173         * users.txt: New file.
54174
54175 2006-08-11  Bruno Haible  <bruno@clisp.org>
54176
54177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54178         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54179
54180 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54181
54182         * modules/snprintf (Depends-on): Remove minmax.
54183         (Maintainer): Add self and Bruno.
54184
54185 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54186
54187         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54188         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54189         (EOVERFLOW): Define if the system does not.
54190         Do not include "minmax.h"; it wasn't used.
54191         (snprintf): Don't assume size_t promotes to an unsigned type.
54192         Fix bug when generated string was too long for the buffer: the
54193         buffer's contents are supposed to be the initial prefix of the
54194         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54195         exceeds INT_MAX; do the check ourselves.
54196
54197         Import the following changes from libc:
54198
54199         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54200
54201         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54202         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54203         set wc to the byte which couldn't be converted.
54204         (re_string_reconstruct): Don't clear valid_raw_len before calling
54205         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54206         tip_context using re_string_context_at.
54207
54208         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54209
54210         * lib/posix/regex.h: g++ still cannot handled [restrict].
54211
54212         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54213
54214         * lib/posix/regex.h: Remove special handling for VMS.
54215
54216 2006-08-10  Jim Meyering  <jim@meyering.net>
54217
54218         * modules/same-inode: New module.
54219         * modules/dev-ino: New module.
54220         * modules/cycle-check: Depend on these modules, rather than simply
54221         including their .h files.
54222         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54223         required via m4/cycle-check.m4.
54224         * modules/same: Depend on new same-inode module, rather than
54225         including same-inode.h.
54226         * modules/chdir-safer: New file.
54227
54228         * modules/chown (Depends-on): Add stat-macros.
54229
54230 2006-08-10  Jim Meyering  <jim@meyering.net>
54231
54232         * m4/cycle-check.m4: New file.
54233         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54234         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54235
54236 2006-08-10  Eric Blake  <ebb9@byu.net>
54237
54238         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54239         in from original proposal.
54240
54241 2006-08-10  Eric Blake  <ebb9@byu.net>
54242         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54243
54244         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54245         namespace.
54246
54247 2006-08-10  Bruno Haible  <bruno@clisp.org>
54248
54249         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54250         as well.
54251
54252 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54253
54254         Sync from coreutils.
54255
54256         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54257
54258         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54259         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54260
54261 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54262
54263         * modules/restrict: Remove; no longer needed now that we assume
54264         Autoconf 2.59 or later.
54265         * MODULES.html.sh: Remove 'restrict'.
54266         * modules/argp (Depends-on): Remove 'restrict'.
54267         * modules/base64 (Depends-on): Likewise.
54268         * modules/gc (Depends-on): Likewise.
54269         * modules/getaddrinfo (Depends-on): Likewise.
54270         * modules/glob (Depends-on): Likewise.
54271         * modules/inet_ntop (Depends-on): Likewise.
54272         * modules/inet_pton (Depends-on): Likewise.
54273         * modules/memxor (Depends-on): Likewise.
54274         * modules/regex (Depends-on): Likewise.
54275         * modules/strtok_r (Depends-on): Likewise.
54276         * modules/time_r (Depends-on): Likewise.
54277
54278 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54279
54280         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54281         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54282         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54283         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54284         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54285         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54286         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54287         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54288
54289         Merge from coreutils.
54290         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54291         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54292         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54293         * m4/time_r.m4 (gl_TIME_R): Likewise.
54294
54295 2006-08-09  Karl Berry  <karl@gnu.org>
54296
54297         * config/srclist.txt: no more gettext-tools, per Bruno.
54298
54299 2006-08-08  Eric Blake  <ebb9@byu.net>
54300
54301         * modules/verror: New module.
54302         * MODULES.html.sh: Document it.
54303
54304 2006-08-08  Eric Blake  <ebb9@byu.net>
54305
54306         * lib/verror.h, lib/verror.c: New files.
54307
54308 2006-08-08  Eric Blake  <ebb9@byu.net>
54309
54310         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54311         verror_at_line output complies with GNU Coding Standards even when
54312         file is NULL.
54313
54314 2006-08-07  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54317         versions of AIX.
54318         Reported by Ralf Wildenhues.
54319
54320 2006-08-07  Bruno Haible  <bruno@clisp.org>
54321
54322         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54323         in an AC_DEFUN. Needed so that the autoconf snippets can use
54324         AC_REQUIRE.
54325
54326 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54327
54328         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54329         Initialize pkgdata_DATA.
54330         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54331         overriding it.
54332
54333 2006-08-06  Eric Blake  <ebb9@byu.net>
54334
54335         * lib/error.h: Fold in some upstream changes from glibc.
54336         * lib/error.c: Likewise.
54337
54338 2006-08-04  Bruno Haible  <bruno@clisp.org>
54339
54340         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54341         Make the mostlyclean-local rule depend on mostlyclean-generic.
54342         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54343
54344 2006-07-31  Bruno Haible  <bruno@clisp.org>
54345
54346         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54347         <stdlib.h>, <string.h>.
54348
54349 2006-07-30  Bruno Haible  <bruno@clisp.org>
54350
54351         * modules/readlink (License): Change to LGPL.
54352
54353 2006-07-30  Bruno Haible  <bruno@clisp.org>
54354
54355         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54356         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54357         set PKGDATADIR to point to it.
54358
54359 2006-07-30  Bruno Haible  <bruno@clisp.org>
54360
54361         * modules/csharpexec (configure.ac): Comment out macro invocation.
54362         * modules/javaexec (configure.ac): Likewise.
54363         * modules/javacomp-script (configure.ac): Likewise.
54364
54365         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54366
54367 2006-07-30  Bruno Haible  <bruno@clisp.org>
54368
54369         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54370         linked-list.
54371
54372 2006-07-30  Bruno Haible  <bruno@clisp.org>
54373
54374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54375
54376 2006-07-30  Bruno Haible  <bruno@clisp.org>
54377
54378         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54379         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54380         get removed.
54381
54382 2006-07-29  Bruno Haible  <bruno@clisp.org>
54383
54384         Make it possible for gnulib-tool to work with locally modified or
54385         augmented gnulib repositories.
54386         * gnulib-tool (func_usage): Document --local-dir option.
54387         (local_gnulib_dir): New variable.
54388         Handle --local-dir option.
54389         (func_lookup_file): New function.
54390         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
54391         (func_get_description, func_get_filelist, func_get_description,
54392         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
54393         func_get_automake_snippet, func_get_include_directive,
54394         func_get_license, func_get_maintainer): Use func_lookup_file.
54395         (func_import, func_create_testdir): Use func_lookup_file.
54396
54397 2006-07-29  Bruno Haible  <bruno@clisp.org>
54398
54399         * modules/setenv (Depends-on): Add unistd.
54400
54401 2006-07-29  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
54404
54405 2006-07-29  Bruno Haible  <bruno@clisp.org>
54406
54407         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
54408
54409 2006-07-29  Bruno Haible  <bruno@clisp.org>
54410
54411         * gnulib-tool (import, update): If there is no Makefile.am, look at
54412         aclocal.m4, instead of bailing out.
54413
54414 2006-07-29  Bruno Haible  <bruno@clisp.org>
54415
54416         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
54417         Categorize the options by when they are useful.
54418
54419 2006-07-29  Bruno Haible  <bruno@clisp.org>
54420
54421         * gnulib-tool (func_usage): Document option --no-libtool.
54422         Handle option --no-libtool.
54423         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
54424         for changed semantics of $libtool variable.
54425         (func_import): Likewise. If libtool is not used, show this through
54426         an option --no-libtool.
54427         (func_create_testdir): Update.
54428
54429 2006-07-29  Bruno Haible  <bruno@clisp.org>
54430
54431         * gnulib-tool (func_import): Extend error message about missing
54432         --doc-base.
54433
54434 2006-07-29  Bruno Haible  <bruno@clisp.org>
54435
54436         * gnulib-tool (func_import): Don't create the $docbase directory if
54437         there is no file to store there.
54438
54439 2006-07-29  Bruno Haible  <bruno@clisp.org>
54440
54441         * gnulib-tool (autoconf_minversion): If a --dir option is given and
54442         relevant, look for configure.ac there, not in the current directory.
54443         Also use a simple search for AC_PREREQ, not "autoconf --trace".
54444
54445 2006-07-29  Bruno Haible  <bruno@clisp.org>
54446
54447         * gnulib-tool (SORT): New variable.
54448         (func_usage): Undocument --assume-autoconf option.
54449         Remove --assume-autoconf option handling.
54450         (autoconf_minversion): Determine from the contents of configure.ac.
54451         (func_import): Remove autoconf_minversion handling.
54452         Suggested by Eric Blake.
54453
54454 2006-07-29  Bruno Haible  <bruno@clisp.org>
54455
54456         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
54457
54458 2006-07-29  Bruno Haible  <bruno@clisp.org>
54459
54460         * config/srclist.txt (*setenv.[ch]): Remove rules.
54461
54462 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54463
54464         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
54465
54466 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54467
54468         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
54469         arpa/inet.h.
54470
54471 2006-07-28  Simon Josefsson  <jas@extundo.com>
54472
54473         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
54474         * modules/inet_pton (Depends-on): Likewise.
54475
54476 2006-07-28  Simon Josefsson  <jas@extundo.com>
54477
54478         * m4/netinet_in_h.m4: New file.
54479
54480 2006-07-28  Simon Josefsson  <jas@extundo.com>
54481
54482         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
54483         #include's.
54484
54485 2006-07-28  Simon Josefsson  <jas@extundo.com>
54486
54487         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
54488         #include's.
54489
54490 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
54491
54492         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
54493         setgid on directories only if they set these bits.
54494         * lib/modechange.h: Remove obsolete comment about masks.
54495
54496 2006-07-28  Eric Blake  <ebb9@byu.net>
54497
54498         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
54499         macro expansion.
54500
54501 2006-07-28  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
54504
54505 2006-07-28  Bruno Haible  <bruno@clisp.org>
54506
54507         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
54508
54509 2006-07-28  Bruno Haible  <bruno@clisp.org>
54510
54511         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54512         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54513         Define fallbacks.
54514         Avoids link error on FreeBSD 4.x.
54515         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54516
54517         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
54518         encoding.
54519         * lib/mbswidth.c (iswcntrl): Likewise.
54520
54521 2006-07-27  Bruno Haible  <bruno@clisp.org>
54522
54523         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
54524         test.
54525
54526 2006-07-27  Bruno Haible  <bruno@clisp.org>
54527
54528         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
54529         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
54530         defined.
54531
54532 2006-07-26  Eric Blake  <ebb9@byu.net>
54533
54534         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
54535
54536 2006-07-26  Eric Blake  <ebb9@byu.net>
54537
54538         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
54539         like mingw that lack mkstemp.
54540         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
54541         avoid compilation warning on mingw.
54542
54543 2006-07-26  Bruno Haible  <bruno@clisp.org>
54544
54545         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
54546         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
54547         INT_FAST*_MIN, INTPTR_MIN.
54548
54549 2006-07-25  Bruno Haible  <bruno@clisp.org>
54550
54551         * modules/version-etc (Depends-on): Add stdarg.
54552
54553 2006-07-25  Bruno Haible  <bruno@clisp.org>
54554
54555         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
54556         complex commands.
54557
54558 2006-07-25  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
54561         defined in <stdarg.h> or config.h.
54562
54563 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
54566         (gl_STDIO_SAFER): Remove.
54567
54568 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54569
54570         * MODULES.html.sh (File stream based Input/Output):
54571         Add fopen-safer, tmpfile-safer; remove stdio-safer.
54572         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
54573         * modules/fopen-safer, modules/tmpfile-safer: New files.
54574         * modules/stdio-safer: Remove.
54575
54576 2006-07-24  Bruno Haible  <bruno@clisp.org>
54577
54578         * modules/tmpdir: New file.
54579         * MODULES.html.sh (File system functions): Add it.
54580
54581 2006-07-24  Bruno Haible  <bruno@clisp.org>
54582
54583         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
54584         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
54585
54586 2006-07-24  Bruno Haible  <bruno@clisp.org>
54587
54588         * modules/clean-temp: New file.
54589
54590 2006-07-24  Bruno Haible  <bruno@clisp.org>
54591
54592         * m4/tmpdir.m4: New file, from GNU gettext.
54593
54594 2006-07-24  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/tmpdir.h: New file, from GNU gettext.
54597         * lib/tmpdir.c: New file, from GNU gettext.
54598
54599 2006-07-24  Bruno Haible  <bruno@clisp.org>
54600
54601         * lib/clean-temp.h: New file, from GNU gettext.
54602         * lib/clean-temp.c: New file, from GNU gettext.
54603
54604 2006-07-23  Eric Blake  <ebb9@byu.net>
54605
54606         * modules/stdio-safer (Files): Add tmpfile-safer.c.
54607         (Depends-on): Add binary-io.
54608
54609 2006-07-23  Eric Blake  <ebb9@byu.net>
54610
54611         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
54612
54613 2006-07-23  Eric Blake  <ebb9@byu.net>
54614
54615         * lib/tmpfile-safer.c: New file.
54616         * lib/stdio-safer.h (fopen_safer): Add prototype.
54617         * lib/stdio--.h (tmpfile): Make safer.
54618
54619 2006-07-23  Bruno Haible  <bruno@clisp.org>
54620
54621         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
54622         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
54623         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
54624         gl_linked_remove_at): Use it.
54625
54626 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54627         and Simon Josefsson <jas@extundo.com>
54628
54629         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
54630
54631         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
54632
54633 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54634
54635         * modules/close-stream: New file.
54636         * modules/closeout (Description): Make it clear that it exits
54637         with a diagnostic on error.
54638         (Depends-on): Add close-stream.  Remove fpending, stdbool.
54639         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
54640
54641 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54642
54643         * m4/close-stream.m4: New file.
54644
54645 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54646
54647         * lib/close-stream.c, lib/close-stream.h: New files.
54648
54649 2006-07-22  Bruno Haible  <bruno@clisp.org>
54650
54651         Merge from GNU gettext 0.15.
54652
54653         2006-05-01  Bruno Haible  <bruno@clisp.org>
54654
54655                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
54656
54657         2006-07-22  Bruno Haible  <bruno@clisp.org>
54658
54659                 * modules/javaversion: New file.
54660                 * MODULES.html.sh (Java): Add javaversion.
54661
54662         2006-03-12  Bruno Haible  <bruno@clisp.org>
54663
54664                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
54665
54666         2005-12-04  Bruno Haible  <bruno@clisp.org>
54667
54668                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
54669                 (untested).
54670
54671         2006-06-21  Bruno Haible  <bruno@clisp.org>
54672
54673                 Avoid warnings from recent versions of mcs.
54674                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
54675                 -o, -L, -r any more. Use options documented since mcs-1.0
54676                 instead. Similarly for -g.
54677
54678         2005-12-04  Bruno Haible  <bruno@clisp.org>
54679
54680                 * build-aux/csharpcomp.sh.in: Suffix for resources is
54681                 .resources, not .resource.
54682
54683         2005-07-09  Bruno Haible  <bruno@clisp.org>
54684
54685                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
54686                 add a .dll suffix.
54687                 Reported by Mark Junker <mjscod@gmx.de>.
54688
54689         2006-07-22  Bruno Haible  <bruno@clisp.org>
54690
54691                 * modules/gettext: Upgrade to gettext-0.15.
54692                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
54693                 m4/visibility.m4.
54694                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
54695
54696 2006-07-22  Bruno Haible  <bruno@clisp.org>
54697
54698         Merge from GNU gettext 0.15.
54699
54700         2006-03-25  Bruno Haible  <bruno@clisp.org>
54701
54702                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
54703
54704         2006-07-21  Bruno Haible  <bruno@clisp.org>
54705
54706                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
54707                 "1.1".
54708
54709         2006-05-09  Bruno Haible  <bruno@clisp.org>
54710
54711                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
54712                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
54713                 for the conftestver execution.
54714
54715         2006-05-01  Bruno Haible  <bruno@clisp.org>
54716
54717                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
54718                 optional target-version argument. Verify that the compiler
54719                 groks source of the specified source-version, or add -source
54720                 option as necessary. Verify that the compiler produces
54721                 bytecode in the specified target-version, or add -target and
54722                 -source options as necessary. Make the result of the test
54723                 available as variable CONF_JAVAC. Also log error output in
54724                 config.log.
54725
54726         2006-03-11  Bruno Haible  <bruno@clisp.org>
54727
54728                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
54729
54730         2006-05-09  Bruno Haible  <bruno@clisp.org>
54731
54732                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
54733                 CLASSPATH_SEPARATOR to a semicolon.
54734
54735         2006-03-12  Bruno Haible  <bruno@clisp.org>
54736
54737                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
54738                 available as variable CONF_JAVA, for subsequent autoconf
54739                 tests. Also log error output in config.log.
54740
54741         2006-07-19  Bruno Haible  <bruno@clisp.org>
54742
54743                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
54744                 that getline works on glibc2 systems. Needed to avoid trouble
54745                 in relocatable.c.
54746                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
54747
54748         2005-12-04  Bruno Haible  <bruno@clisp.org>
54749
54750                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
54751                 launcher (untested).
54752
54753         2005-12-04  Bruno Haible  <bruno@clisp.org>
54754
54755                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
54756
54757         2006-07-22  Bruno Haible  <bruno@clisp.org>
54758
54759                 * gettext.m4: Update from GNU gettext-0.15.
54760                 * nls.m4: Likewise.
54761                 * po.m4: Likewise.
54762                 * inttypes-pri.m4: Likewise.
54763                 * inttypes-h.m4: Renamed from inttypes.m4.
54764                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
54765
54766 2006-07-22  Bruno Haible  <bruno@clisp.org>
54767
54768         Merge from GNU gettext 0.15.
54769
54770         2005-07-05  Bruno Haible  <bruno@clisp.org>
54771
54772                 * printf-args.c (printf_fetchargs): Work around broken
54773                 definition of wint_t on mingw.
54774
54775         2005-02-12  Bruno Haible  <bruno@clisp.org>
54776
54777                 * xallocsa.h: Add extern "C" for C++.
54778
54779         2006-05-17  Bruno Haible  <bruno@clisp.org>
54780
54781                 Cygwin portability.
54782                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
54783
54784         2006-04-30  Bruno Haible  <bruno@clisp.org>
54785
54786                 * progreloc.c: Include <mach-o/dyld.h> if available.
54787                 (find_executable): Use _NSGetExecutablePath when possible.
54788
54789         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54790
54791                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
54792                 function.
54793
54794         2005-12-29  Bruno Haible  <bruno@clisp.org>
54795
54796                 * progreloc.c (set_program_name_and_installdir): Fix
54797                 compilation error.
54798
54799         2005-12-04  Bruno Haible  <bruno@clisp.org>
54800
54801                 Cygwin portability.
54802                 * progreloc.c: Include <windows.h> also on Cygwin.
54803                 (find_executable): Add support for Cygwin.
54804                 (set_program_name_and_installdir): Handle also platforms with
54805                 nonempty EXEEXT.
54806
54807         2006-07-11  Bruno Haible  <bruno@clisp.org>
54808
54809                 * javacomp.c: Fix a comment.
54810                 Reported by Jim Meyering.
54811
54812         2006-04-30  Bruno Haible  <bruno@clisp.org>
54813
54814                 * javacomp.h (compile_java_class): Add source_version,
54815                 target_version arguments.
54816                 * javacomp.c: Rewritten to choose only a compiler that
54817                 respects the specified source_version and target_version.
54818
54819         2006-06-27  Bruno Haible  <bruno@clisp.org>
54820
54821                 Assume correct S_ISDIR macro.
54822                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
54823
54824         2006-07-22  Bruno Haible  <bruno@clisp.org>
54825
54826                 * javaversion.h: New file, from GNU gettext.
54827                 * javaversion.c: New file, from GNU gettext.
54828                 * javaversion.java: New file, from GNU gettext.
54829                 * javaversion.class: New file, from GNU gettext.
54830
54831         2006-05-17  Bruno Haible  <bruno@clisp.org>
54832
54833                 Cygwin portability.
54834                 * javaexec.c (execute_java_class): Test for jview program
54835                 also on Cygwin.
54836
54837         2006-04-09  Bruno Haible  <bruno@clisp.org>
54838
54839                 * fatal-signal.c: Don't include string.h.
54840                 (at_fatal_signal): Use a copying loop instead of memcpy.
54841
54842         2005-12-04  Bruno Haible  <bruno@clisp.org>
54843
54844                 * csharpexec.c: Add support for 'clix' launcher (untested).
54845                 (execute_csharp_using_sscli): New function.
54846                 (execute_csharp_program): Call it.
54847
54848         2006-06-21  Bruno Haible  <bruno@clisp.org>
54849
54850                 Avoid warnings from recent versions of mcs.
54851                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
54852                 -o, -L, -r any more. Use options documented since mcs-1.0
54853                 instead. Similarly for -g.
54854
54855         2005-07-09  Bruno Haible  <bruno@clisp.org>
54856
54857                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
54858                 add a .dll suffix.
54859                 Reported by Mark Junker <mjscod@gmx.de>.
54860
54861         2006-06-17  Bruno Haible  <bruno@clisp.org>
54862
54863                 * config.charset: Update for NetBSD 3.0.
54864
54865         2006-05-17  Bruno Haible  <bruno@clisp.org>
54866
54867                 Cygwin portability.
54868                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
54869
54870         2006-05-16  Bruno Haible  <bruno@clisp.org>
54871
54872                 * localcharset.c [CYGWIN]: Include <windows.h>.
54873                 (get_charset_aliases): For Cygwin, return the same CPxxx
54874                 aliases list as under WIN32.
54875                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
54876                 the environment variables. Fall back to GetACP().
54877
54878         2006-04-05  Bruno Haible  <bruno@clisp.org>
54879
54880                 * config.charset: Update Juan Manuel Guerrero's address.
54881
54882         2005-02-12  Bruno Haible  <bruno@clisp.org>
54883
54884                 * allocsa.h: Add extern "C" for C++.
54885
54886         2005-02-10  Bruno Haible  <bruno@clisp.org>
54887
54888                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
54889                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
54890
54891         2006-07-22  Bruno Haible  <bruno@clisp.org>
54892
54893                 * gettext.h: Update to GNU gettext-0.15.
54894
54895 2006-07-22  Bruno Haible  <bruno@clisp.org>
54896
54897         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
54898         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
54899         lib-prefix.m4, longdouble.m4, ssize_t.m4.
54900
54901 2006-07-21  Eric Blake  <ebb9@byu.net>
54902
54903         * modules/stdlib-safer: New file.
54904         * MODULES.html.sh (File stream based Input/Output): Add
54905         stdlib-safer.
54906
54907 2006-07-21  Eric Blake  <ebb9@byu.net>
54908
54909         * lib/stdlib-safer.h: New file from coreutils, required by
54910         stdlib--.h.
54911
54912 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
54913
54914         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
54915
54916 2006-07-20  Bruno Haible  <bruno@clisp.org>
54917
54918         * gnulib-tool: Recognize new option --assume-autoconf.
54919         (autoconf_minversion): New variable.
54920         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
54921
54922 2006-07-20  Bruno Haible  <bruno@clisp.org>
54923
54924         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
54925
54926 2006-07-19  Derek R. Price  <derek@ximbiot.com>
54927
54928         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
54929         Reindent and repaginate.
54930
54931 2006-07-19  Derek Price  <derek@ximbiot.com>
54932
54933         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
54934         Correct grammar.
54935
54936 2006-07-17  Bruno Haible  <bruno@clisp.org>
54937
54938         * modules/list: New file.
54939         * modules/array-list: New file.
54940         * modules/carray-list, modules/carray-list-tests: New files.
54941         * modules/linked-list, modules/linked-list-tests: New files.
54942         * modules/avltree-list, modules/avltree-list-tests: New files.
54943         * modules/rbtree-list, modules/rbtree-list-tests: New files.
54944         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
54945         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
54946         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
54947         * modules/oset: New file.
54948         * modules/array-oset: New file.
54949         * modules/avltree-oset, modules/avltree-oset-tests: New files.
54950         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
54951         * tests/test-carray_list.c: New file.
54952         * tests/test-linked_list.c: New file.
54953         * tests/test-avltree_list.c: New file.
54954         * tests/test-rbtree_list.c: New file.
54955         * tests/test-linkedhash_list.c: New file.
54956         * tests/test-avltreehash_list.c: New file.
54957         * tests/test-rbtreehash_list.c: New file.
54958         * tests/test-avltree_oset.c: New file.
54959         * tests/test-rbtree_oset.c: New file.
54960         * MODULES.html.sh (Container data structures): New section.
54961
54962 2006-07-17  Bruno Haible  <bruno@clisp.org>
54963
54964         * m4/gl_list.m4: New file.
54965
54966 2006-07-17  Bruno Haible  <bruno@clisp.org>
54967
54968         * lib/gl_list.h: New file.
54969         * lib/gl_list.c: New file.
54970         * lib/gl_array_list.h: New file.
54971         * lib/gl_array_list.c: New file.
54972         * lib/gl_carray_list.h: New file.
54973         * lib/gl_carray_list.c: New file.
54974         * lib/gl_linked_list.h: New file.
54975         * lib/gl_linked_list.c: New file.
54976         * lib/gl_anylinked_list1.h: New file.
54977         * lib/gl_anylinked_list2.h: New file.
54978         * lib/gl_avltree_list.h: New file.
54979         * lib/gl_avltree_list.c: New file.
54980         * lib/gl_anyavltree_list1.h: New file.
54981         * lib/gl_anyavltree_list2.h: New file.
54982         * lib/gl_rbtree_list.h: New file.
54983         * lib/gl_rbtree_list.c: New file.
54984         * lib/gl_anyrbtree_list1.h: New file.
54985         * lib/gl_anyrbtree_list2.h: New file.
54986         * lib/gl_anytree_list1.h: New file.
54987         * lib/gl_anytree_list2.h: New file.
54988         * lib/gl_linkedhash_list.h: New file.
54989         * lib/gl_linkedhash_list.c: New file.
54990         * lib/gl_anyhash_list1.h: New file.
54991         * lib/gl_anyhash_list2.h: New file.
54992         * lib/gl_avltreehash_list.h: New file.
54993         * lib/gl_avltreehash_list.c: New file.
54994         * lib/gl_rbtreehash_list.h: New file.
54995         * lib/gl_rbtreehash_list.c: New file.
54996         * lib/gl_anytreehash_list1.h: New file.
54997         * lib/gl_anytreehash_list2.h: New file.
54998
54999         * lib/gl_oset.h: New file.
55000         * lib/gl_oset.c: New file.
55001         * lib/gl_array_oset.h: New file.
55002         * lib/gl_array_oset.c: New file.
55003         * lib/gl_avltree_oset.h: New file.
55004         * lib/gl_avltree_oset.c: New file.
55005         * lib/gl_rbtree_oset.h: New file.
55006         * lib/gl_rbtree_oset.c: New file.
55007         * lib/gl_anytree_oset.h: New file.
55008
55009 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55010
55011         * m4/mkancesdirs.m4: New file.
55012         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55013         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55014         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55015         it.
55016
55017 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55018
55019         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55020         * lib/mkancesdirs.h: New files.
55021         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55022         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55023         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55024         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55025         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55026         callers changed.  Revamp internals significantly, by not
55027         attempting to create directories that are temporarily more
55028         permissive than the final results.  Do not attempt to use
55029         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55030         This removes some race conditions, fixes some bugs, and simplifies
55031         things.  Use new dirchownmod function to do owner and mode changes.
55032         * lib/mkdir-p.h: Likewise.
55033         * lib/modechange.c (octal_to_mode): New function.
55034         (struct mode_change): New member mentioned.
55035         (make_node_op_equals): New arg mentioned.  All callers changed.
55036         (mode_compile): Keep track of which mode bits the user has explicitly
55037         mentioned.
55038         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55039         New arg PMODE_BITS, to keep track of which mode bits the user
55040         mentioned; it treats S_ISUID and S_ISGID speciall.
55041         All callers changed.
55042         * lib/modechange.h: Likewise.
55043
55044 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55045
55046         * MODULES.html.sh: Add mkancestors.
55047         * modules/mkancesdirs: New module.
55048         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
55049         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
55050         The chdir-safer and afs files are now orphans; I'll remove them
55051         unless someone speaks up.
55052         Add lib/dirchownmod.c, lib/dirchownmod.h.
55053         (Depends-on): Remove alloca, chown, save-cwd, dirname.
55054         Add lchown, mkancesdirs.
55055         (Maintainer): Add self.
55056
55057 2006-07-15  Karl Berry  <karl@gnu.org>
55058
55059         * gnulib-tool: help message wording/arrangement.
55060
55061 2006-07-14  Simon Josefsson  <jas@extundo.com>
55062
55063         * doc/gnulib.texi (Libtool and Windows): New section.
55064
55065 2006-07-12  Simon Josefsson  <jas@extundo.com>
55066
55067         * modules/gendocs (License): Fix license, approved by Karl.
55068
55069 2006-07-12  Eric Blake  <ebb9@byu.net>
55070
55071         * MODULES.html.sh: Add gendocs.
55072
55073 2006-07-11  Eric Blake  <ebb9@byu.net>
55074
55075         * modules/fdl: New module, to install doc/fdl.texi.
55076         * MODULES.html.sh: Add new section for documentation modules.
55077         * gnulib-tool: Avoid space-tab.
55078         (--doc-base): New option, to manage files from doc.
55079
55080 2006-07-11  Eric Blake  <ebb9@byu.net>
55081
55082         * m4/absolute-header.m4: Fix comments to match recent change.
55083
55084 2006-07-11  Eric Blake  <ebb9@byu.net>
55085
55086         * gnulib-tool: List --doc-base before --tests-base.
55087
55088 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55089
55090         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55091
55092 2006-07-11  Bruno Haible  <bruno@clisp.org>
55093
55094         * README: Mention where to put documentation.
55095
55096 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55097
55098         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55099
55100 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55101
55102         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55103         to stdint.m4.
55104
55105 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55106
55107         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55108         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55109         "no/such/file/stdint.h" when there is no such file, so that
55110         the resulting C code can be parsed by dodgy compilers.
55111         Problems reported by Bob Proulx.
55112
55113 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55114
55115         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55116         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55117         macros into the GNU _D_EXACT_NAMLEN.
55118         * lib/savedir.c:  Likewise.
55119         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55120
55121 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55122         and Paul Eggert  <eggert@cs.ucla.edu>
55123
55124         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55125         * m4/savedir.m4:
55126         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55127         macros into the GNU _D_EXACT_NAMLEN.
55128
55129 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55130
55131         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55132         around the absolute name, to work around a problem with the HP-UX
55133         11.23 native C compiler, reported by Bob Proulx.
55134
55135 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55136
55137         * doc/maintain.texi, make-stds.texi: Sync from
55138         <http://savannah.gnu.org/projects/gnustandards>.
55139
55140 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55141
55142         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55143
55144 2006-07-09  Jim Meyering  <jim@meyering.net>
55145
55146         * m4/glob.m4: Remove a doubled word in a comment.
55147
55148 2006-07-09  Jim Meyering  <jim@meyering.net>
55149
55150         * lib/argp-pv.c: Remove a doubled word in a comment.
55151         * lib/check-version.c (check_version): Likewise.
55152         * lib/javacomp.c (compile_java_class): Likewise.
55153
55154 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55155
55156         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55157         for the benefit of people using Autoconf 2.60.  If you want to
55158         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55159         (or m4/onceonly.m4, if pre-2.57) manually.
55160
55161 2006-07-08  Jim Meyering  <jim@meyering.net>
55162
55163         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55164         comment.
55165         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55166         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55167         comment.
55168
55169 2006-07-08  Jim Meyering  <jim@meyering.net>
55170
55171         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55172
55173 2006-07-07  Simon Josefsson  <jas@extundo.com>
55174
55175         * tests/test-crc.c: Change expected crc value, the test vector
55176         were probably computed using the old broken crc.c?
55177
55178 2006-07-06  Simon Josefsson  <jas@extundo.com>
55179
55180         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55181         now the canonical place for the M4 file).
55182
55183         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55184         from the sys_socket dependency now.
55185
55186         * modules/inet_pton (Files): Ditto.
55187
55188         * modules/inet_ntop (Files): Ditto.
55189
55190 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55191
55192         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55193         not gl_PREREQ_GETUSERSHELL.
55194
55195 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55196
55197         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55198         with only one argument, for Autoconf 2.60.
55199         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55200         expand to nothing, so add a shell command to avoid syntax error.
55201         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55202
55203 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55204
55205         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55206
55207 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55208
55209         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55210         no longer needed.  Check for isblank decl.
55211         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55212         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55213         of existence.
55214
55215 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55216
55217         * lib/getloadavg.c: Use __VMS, not VMS.
55218         * lib/getopt.c: Likewise.
55219         * lib/getpagesize.h: Likewise.
55220         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55221         and probably does not work.
55222
55223 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55224
55225         * lib/.cppi-disable: Add wcwidth.
55226         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55227         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55228         (ISGRAPH): Remove.  All uses changed to isgraph.
55229         (FOLD) [!defined _LIBC]: Remove special case.
55230         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55231         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55232         HAVE_ISBLANK.
55233         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55234         case.
55235
55236 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55237
55238         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55239         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55240         brackets.  Other minor changes to suppress some compiler
55241         warnings.
55242
55243 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55244         and Paul Eggert  <eggert@cs.ucla.edu>
55245
55246         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55247         of invoking obsolescent AC_HEADER_DIRENT macro.
55248         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55249         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55250         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55252         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55253         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55254         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55255         * m4/readdir.m4: Remove; no longer needed.
55256
55257 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55258         and Paul Eggert  <eggert@cs.ucla.edu>
55259
55260         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55261         Don't worry about this obsolete case any more.
55262         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55263         directories.
55264         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55265         worry about this obsolete case any more.
55266         * lib/fts.c: Likewise.
55267         * lib/getcwd.c: Likewise.
55268         * lib/glob.h: Likewise.
55269         * lib/savedir.c: Likewise.
55270
55271 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55274         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55275         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55276         needed.
55277         All uses removed.
55278         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55279         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55280         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55281         needed.
55282         * m4/getdate.m4 (gl_GETDATE): Likewise.
55283         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55284         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55285         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55286         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55287         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55288         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55289         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55290         needed.
55291
55292 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55293
55294         * lib/memcasecmp.c: Include <limits.h>.
55295         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55296         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55297         Don't assume isdigit succeeds only on '0' through '9'.
55298
55299 2006-07-05  Eric Blake  <ebb9@byu.net>
55300
55301         * modules/getaddrinfo (Depends-on): Add snprintf.
55302
55303 2006-07-05  Eric Blake  <ebb9@byu.net>
55304
55305         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55306         to avoid 'header present but could not be compiled' on cygwin.
55307
55308 2006-07-05  Eric Blake  <ebb9@byu.net>
55309
55310         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55311         missing from netdb.h.
55312         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55313
55314 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55315
55316         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55317         no longer needed.
55318         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55319         * m4/getdate.m4 (gl_GETDATE): Likewise.
55320         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55321         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55322         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55323         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55324         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55325
55326 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55327
55328         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55329         All uses of is_space replaced by isspace.
55330         * lib/exit.h: Don't talk about STDC_HEADERS.
55331         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55332         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55333         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55334         replaced by isprint etc.
55335         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55336         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55337         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55338         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55339         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55340         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55341
55342 2006-07-05  Bruno Haible  <bruno@clisp.org>
55343
55344         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55345         the function exists, before testing against AIX.
55346         Reported by Martin Lambers <marlam@marlam.de>.
55347
55348 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55349
55350         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55351         From Mark D. Baushke.
55352
55353 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55354
55355         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55356         to the absolute name, not just one, to bypass Sun C 5.8's
55357         "warning: #include of /usr/include/... may be non-portable".
55358
55359 2006-07-04  Eric Blake  <ebb9@byu.net>
55360
55361         * modules/dirname-tests: New test module.
55362         * tests/test-dirname.c: New file, replacing dirname.c
55363         TEST_DIRNAME section that was recently deleted.
55364
55365 2006-07-04  Bruno Haible  <bruno@clisp.org>
55366
55367         Assume ANSI C header files and <ctype.h> functions.
55368         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55369         (mbsnwidth): Use isprint, iscntrl instead.
55370
55371 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55372
55373         Merge from coreutils.
55374         * MODULES.html.sh: Add xstrtold.
55375         * modules/xstrtold: New file.
55376         * modules/cycle-check (Files): Add lib/same-inode.h.
55377         * modules/dirname (Files): Add m4/double-slash-root.m4.
55378         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55379         * modules/mkdir-p (Files): Add lib/same-inode.h.
55380         * modules/same (Files): Add lib/same-inode.h.
55381
55382 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55383
55384         * m4/absolute-header.m4: Renamed from full-header-path.m4.
55385         This is to keep the terminology clean; POSIX talks about
55386         "absolute pathnames", not "full pathnames", but the GNU
55387         Coding Standards say to use "path" for something else;
55388         so use "absolute" to keep both sides happy.
55389         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
55390         Set gl_absolute_header, not gl_full_header_path.
55391         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
55392         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
55393         All uses changed.
55394
55395         Merge from coreutils.
55396
55397         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55398
55399         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
55400         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
55401         want to require the building of c-strtod.o.
55402         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
55403         needs -lm directly.
55404         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
55405
55406         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55407
55408         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
55409         --as-needed option if available.  Problem reported by Albert Chin in
55410         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
55411         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
55412         cc merely issues a bunch of annoying warnings for --as-needed
55413         (this problem was reported by Bob Proulx).  Also, try linking with
55414         -lm to detect a bug in binutils 2.16 (this problem was reported
55415         by Ralf Wildenhues).
55416
55417         2006-06-18  Jim Meyering  <jim@meyering.net>
55418
55419         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
55420         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
55421         macro.
55422         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
55423         also check for glibc-2.4's abort-inducing bug.
55424
55425         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
55426         Low-probability clean-up should be to use rmdir to get rid of
55427         the just-created directory, not unlink.
55428
55429         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
55430         configure fail, and request a bug report to inform us about it.
55431         Add a comment that, barring reports to the contrary, in 2007 we'll
55432         assume ftruncate is universally available.
55433
55434         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55435
55436         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
55437
55438         2006-03-12  Jim Meyering  <jim@meyering.net>
55439
55440         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
55441         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
55442         * m4/same.m4 (gl_SAME): Likewise.
55443         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
55444
55445         2006-03-11  Eric Blake  <ebb9@byu.net>
55446
55447         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
55448         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
55449         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
55450         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55451
55452 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55453
55454         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55455         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
55456         reported by Mark D. Baushke, one in
55457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
55458
55459         Merge from coreutils.
55460
55461         * lib/.cppi-disable: Add stdint_.h.
55462         * lib/.cvsignore: Add stdint.h.
55463
55464         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55465
55466         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
55467         both double and long double versions.
55468         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
55469         * lib/xstrtold.c: New file.
55470         * lib/xstrtod.h (xstrtold): New decl.
55471
55472         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55473
55474         * lib/filemode.c (setst): Remove.
55475         (strmode): Rewrite to avoid setst.  This makes the code shorter,
55476         (arguably) clearer, and the generated code is a bit smaller on my
55477         Debian GNU/Linux stable x86 host.
55478
55479         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55480
55481         * lib/filemode.c: Include "filemode.h" first, to test the interface.
55482         Assume that filemode.h includes sys/types.h and sys/stat.h.
55483         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
55484         (ftypelet): Reorder to put common cases first, for efficiency.
55485         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
55486         to do 'M'.
55487         (strmode): Renamed from mode_string, and now stores 12 bytes instead
55488         of 10, for compatibility with FreeBSD.  All callers changed.
55489         (filemodestring): Now stores 12 bytes instead of 10, and sets file
55490         types that can't be deduced solely from st_mode.  First arg is now a
55491         const pointer.
55492         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
55493         (strmode): Renamed from mode_string.
55494         (filemodestring): New decl.
55495         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
55496         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
55497         needed.
55498         (S_ISPORT, S_ISWHT): New macros, if not already defined.
55499
55500         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55501
55502         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
55503         fsusage.h now does that.  Include fsusage.h first, to test interface.
55504         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
55505         at most one method (the old code could have generated decls that
55506         didn't conform to C89, not that this was ever exercised).
55507         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
55508
55509         2006-03-19  Jim Meyering  <jim@meyering.net>
55510
55511         Work even in a chroot where d_ino values for entries in "/"
55512         don't match the stat.st_ino values for the same names.
55513         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
55514         number, iterate through all entries again, using lstat instead.
55515         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
55516         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
55517
55518         * lib/getcwd.c (__getcwd): Clarify a comment.
55519         Use memcpy in place of a call to strcpy.
55520
55521         2006-03-12  Jim Meyering  <jim@meyering.net>
55522
55523         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
55524         matches that of the current directory (which we're about to chdir ".."
55525         out of), then save the dev-ino of the parent, instead.
55526
55527         * lib/same-inode.h (SAME_INODE): New file/macro.
55528         * lib/chdir-safer.c (SAME_INODE): Remove definition.
55529         Include "same-inode.h", instead.
55530         * lib/same.c: Likewise.
55531         * lib/cycle-check.h: Include "same-inode.h".
55532         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
55533         * lib/cycle-check.c (SAME_INODE): Remove definition.
55534         * lib/root-dev-ino.h: Include "same-inode.h".
55535
55536         2006-03-11  Eric Blake  <ebb9@byu.net>
55537
55538         * lib/same.c (same_name): s/base_name/last_component/
55539         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
55540         * lib/filenamecat.c (file_name_concat): Likewise.
55541
55542         2006-03-11  Eric Blake  <ebb9@byu.net>,
55543                     Paul Eggert  <eggert@cs.ucla.edu>
55544
55545         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
55546         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
55547         drive prefix.
55548         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
55549         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
55550         (last_component): New method.
55551         * lib/dirname.c (dir_len): Determine when drive letters need a
55552         subsequent slash.  Preserve // when it is special.
55553         (dir_name): Don't append dot when drive letter is absolute.
55554         [TEST_DIRNAME]: Move into a full-blown gnulib test.
55555         * lib/basename.c (base_name): New semantics - malloc the result.
55556         Preserve // when it is special.  Preserve relative files that look
55557         like drive letters.
55558         (base_len): Preserve // when it is special.
55559         (last_component): New method, similar to old base_name semantics.
55560         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
55561         base_name.  Strip redundant slashes from ///.
55562
55563 2006-07-03  Jim Meyering  <jim@meyering.net>
55564
55565         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
55566         macro is used before the first cycle_check call.
55567
55568 2006-07-03  Eric Blake  <ebb9@byu.net>
55569
55570         * modules/dirname (Depends-on): Add xstrndup.
55571
55572 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55573
55574         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
55575         test cases, so that config.log is a bit easier to follow.
55576
55577 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55578
55579         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
55580         both are 64 bits, since this seems to be the tradition, and this
55581         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
55582         we ever run into a host that prefers long long to long in this
55583         case, we'll need another configure-time test.  Problem reported by
55584         Jim Meyering.
55585
55586 2006-07-02  Eric Blake  <ebb9@byu.net>
55587
55588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
55589
55590 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55591
55592         * modules/inttypes (Depends-on): No longer depends on stdint.
55593         * modules/stdint (Description): Say more about assumptions.
55594         Say that the fast types might differ.  Say macros are used.
55595         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
55596         (Makefile.am): Revise list of substituted symbols to match
55597         new stdint.m4.
55598         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
55599         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
55600         * tests/test-stdint.c (verify_same_types)
55601         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
55602         the code conforms to C99/C89.
55603         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
55604         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
55605
55606 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55607
55608         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
55609         but fix a bug, by requiring at least 64 bits.
55610         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55611         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
55612         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
55613         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
55614
55615         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
55616         changes.  Make 2.59 a prerequisite.  Check and substitute for
55617         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
55618         inttypes.h.  Do not use special include files; just use the
55619         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
55620         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
55621         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
55622         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
55623         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
55624         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
55625         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
55626         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
55627         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
55628         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
55629         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
55630         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
55631         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
55632         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
55633         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
55634         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
55635         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
55636         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
55637         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
55638         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
55639         WINT_MAX.  Check for C99 conformance more strictly, by detecting
55640         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
55641         not check for things that C99 does not require, e.g., int8_t.  If
55642         a test isn't needed unless <stdint.h> isn't working, and is
55643         unlikely to be needed for any other reason, then don't do it
55644         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
55645         size_t, since we assume C89 freestanding at least.  Do not check
55646         for sig_atomic_t, wchar_t, or wint_t, since the code now does
55647         the right thing even if the types are not defined.  Instead use:
55648         (gl_STDINT_TYPE_PROPERTIES): New macro.
55649         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
55650         testing whether <sys/types.h> clashes, as Autoconf does this for
55651         us now.  All uses removed.
55652         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
55653         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
55654         (gl_CHECK_TYPE_SAME):
55655         Remove; no longer needed.
55656         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
55657         exists, since we'll return 0 anyway in that case.
55658         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
55659
55660 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55661
55662         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
55663         possible collision with system files.
55664         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
55665         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
55666         WCHAR_MIN and WCHAR_MAX in this case.
55667         (<stddef.h>): Do not include; no longer needed.
55668         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
55669         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
55670         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
55671         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
55672         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
55673         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
55674         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
55675         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
55676         !defined(__c99))]: Include in this case too, since it's harmless
55677         now.
55678         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
55679         dangerous to do so.
55680         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
55681         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
55682         (_STDINT_MIN, _STDINT_MAX): New macros.
55683         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
55684         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
55685         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
55686         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
55687         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
55688         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
55689         macros, not typedefs; this simplifies things quite a bit.
55690         Use long int for all types narrower than int64_t.
55691         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
55692         Define in terms of long long int or int64_t or long int,
55693         not int64_t or int32_t.  This saves some compile-time testing.
55694         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
55695         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
55696         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
55697         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
55698         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
55699         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
55700         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
55701         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
55702         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
55703         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
55704         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55705         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55706         undef any previous version and define our own version, for
55707         simplicity and consistency with the new macros for types.
55708         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55709         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55710         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
55711         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
55712         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
55713         @WINT_T_SUFFIX@ to keep things simple here.
55714         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
55715         Simplify by assuming typical 8/16/32/64 host, since we're
55716         already doing that elsewhere anyway.
55717         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
55718         and assume long long int is 64 bits if available.  This
55719         speeds up 'configure'.
55720
55721 2006-07-01  Eric Blake  <ebb9@byu.net>
55722
55723         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
55724         Reported by Andreas Buening.
55725
55726 2006-07-01  Eric Blake  <ebb9@byu.net>
55727
55728         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
55729
55730 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55731
55732         * lib/getaddrinfo.c: fixed typo
55733
55734 2006-06-29  Jim Meyering  <jim@meyering.net>
55735
55736         * modules/strftime (Maintainer): Add my name, since with the
55737         FPRINTFTIME changes strftime.c has forked from glibc.
55738
55739 2006-06-29  Eric Blake  <ebb9@byu.net>
55740
55741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
55742
55743 2006-06-29  Eric Blake  <ebb9@byu.net>
55744
55745         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
55746
55747 2006-06-29  Eric Blake  <ebb9@byu.net>
55748
55749         * lib/stat_.h: New file.
55750
55751 2006-06-29  Eric Blake  <ebb9@byu.net>
55752
55753         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
55754         unused static function.
55755
55756 2006-06-29  Eric Blake  <ebb9@byu.net>
55757
55758         * doc/functions.texi (Function Portability): Document missing lstat
55759         on mingw.
55760
55761 2006-06-29  Eric Blake  <ebb9@byu.net>
55762
55763         * MODULES.html.sh: Add sys_stat.
55764         * modules/sys_stat: New module.
55765         * modules/mkstemp (Depends-on): Add sys_stat.
55766
55767 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55768
55769         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
55770
55771 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55772
55773         * m4/c-bs-a.m4: Removed.
55774
55775 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55776
55777         * lib/strftime.c: Assume strftime() exists.
55778
55779 2006-06-29  Derek Price  <derek@ximbiot.com>
55780
55781         * modules/c-bs-a: Removed - \a is C89.
55782         * MODULES.html.sh: Remove c-bs-a.
55783
55784 2006-06-29  Bruno Haible  <bruno@clisp.org>
55785
55786         * modules/wcwidth (License): Change to LGPL.
55787
55788 2006-06-28  Simon Josefsson  <jas@extundo.com>
55789
55790         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
55791         on _WIN32.
55792
55793         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
55794         getnameinfo.
55795
55796 2006-06-28  Simon Josefsson  <jas@extundo.com>
55797
55798         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
55799
55800 2006-06-28  Simon Josefsson  <jas@extundo.com>
55801
55802         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
55803         functions there.  It will succeed on Windows XP, but on Windows
55804         2000 and (presumably) earlier, it will fail, and use the internal
55805         re-implementation.
55806         (use_win32_p): New function.
55807         (getaddrinfo): Use strtoul on servname, to support numeric ports.
55808         Support AI_NUMERICSERV to disable getservbyname.
55809         (getnameinfo): New function, only supports
55810         NI_NUMERICHOST|NI_NUMERICSERV for now.
55811
55812         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
55813         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
55814         getnameinfo.
55815
55816 2006-06-28  Eric Blake  <ebb9@byu.net>
55817
55818         * modules/wcwidth: New file.
55819         * modules/mbchar (Depends-on): Add wcwidth.
55820         * modules/mbswidth (Depends-on): Add wcwidth.
55821         * MODULES.html.sh: Add wcwidth.
55822
55823 2006-06-28  Eric Blake  <ebb9@byu.net>
55824
55825         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
55826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
55827
55828 2006-06-28  Eric Blake  <ebb9@byu.net>
55829
55830         * lib/xvasprintf.h: Fix comments.
55831
55832 2006-06-28  Eric Blake  <ebb9@byu.net>
55833
55834         * lib/mbchar.h (wcwidth): Include wcwidth.h.
55835         * lib/mbswidth.c (wcwidth): Move from here...
55836         * lib/wcwidth.h: ...to this new file.
55837
55838 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55839
55840         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
55841
55842         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
55843         it's obsolete.
55844         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
55845
55846 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55847
55848         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
55849         Autoconf 2.60 says this stuff was obsolete.
55850
55851 2006-06-28  Bruno Haible  <bruno@clisp.org>
55852
55853         * modules/wcwidth (Files): Add m4/wchar_t.m4.
55854
55855 2006-06-28  Bruno Haible  <bruno@clisp.org>
55856
55857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
55858         gt_TYPE_WCHAR_T.
55859
55860 2006-06-28  Bruno Haible  <bruno@clisp.org>
55861
55862         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
55863         declaration for wcwidth.
55864         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
55865
55866 2006-06-28  Bruno Haible  <bruno@clisp.org>
55867
55868         * lib/mkdtemp.c [MINGW]: Include <io.h>.
55869         (mkdir): Define using _mkdir.
55870
55871 2006-06-28  Bruno Haible  <bruno@clisp.org>
55872
55873         * lib/getaddrinfo.h: Fix POSIX URL.
55874         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
55875         _WIN32.
55876         (use_win32_p): Make static.
55877         (getaddrinfo): Reject service name if it is empty or does not consist
55878         solely of decimal digits, or if its value is > 65535.
55879         (getnameinfo): Remove useless casts.
55880
55881 2006-06-27  Simon Josefsson  <jas@extundo.com>
55882
55883         * modules/sys_select: New file, suggested by Bruno Haible, Paul
55884         Eggert and Martin Lambers.
55885
55886 2006-06-27  Simon Josefsson  <jas@extundo.com>
55887
55888         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
55889         Eggert and Martin Lambers.
55890
55891 2006-06-27  Bruno Haible  <bruno@clisp.org>
55892
55893         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
55894         result to 0, not to empty.
55895         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
55896
55897 2006-06-27  Bruno Haible  <bruno@clisp.org>
55898
55899         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
55900
55901 2006-06-26  Simon Josefsson  <jas@extundo.com>
55902
55903         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
55904         present.
55905
55906 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
55907
55908         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
55909         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
55910         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
55911
55912 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
55913
55914         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
55915
55916 2006-06-26  Bruno Haible  <bruno@clisp.org>
55917
55918         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
55919
55920 2006-06-26  Bruno Haible  <bruno@clisp.org>
55921
55922         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
55923
55924 2006-06-26  Bruno Haible  <bruno@clisp.org>
55925
55926         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
55927         SGI C compiler in pre-C99 mode.
55928         Suggested by Mark D. Baushke and Larry Jones.
55929
55930 2006-06-26  Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
55933         WCHAR_MAX.
55934         Reported by Mark D. Baushke and Larry Jones.
55935
55936 2006-06-26  Bruno Haible  <bruno@clisp.org>
55937
55938         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
55939         in pre-C99 mode.
55940         Suggested by Mark D. Baushke and Larry Jones.
55941
55942 2006-06-23  Simon Josefsson  <jas@extundo.com>
55943             Bruno Haible  <bruno@clisp.org>
55944
55945         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
55946         Emit mostlyclean-local rule.
55947         (func_emit_tests_Makefile_am): Likewise.
55948         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
55949
55950 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
55951
55952         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
55953
55954 2006-06-23  Bruno Haible  <bruno@clisp.org>
55955
55956         * tests/test-stdint.c: Update to match ISO C 99 Technical
55957         Corrigendum 1.
55958
55959 2006-06-23  Bruno Haible  <bruno@clisp.org>
55960
55961         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
55962
55963 2006-06-23  Bruno Haible  <bruno@clisp.org>
55964
55965         * lib/stdint_.h: Treat IRIX like OpenBSD.
55966
55967 2006-06-23  Bruno Haible  <bruno@clisp.org>
55968
55969         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
55970         ISO C 99 Technical Corrigendum 1.
55971
55972 2006-06-22  Simon Josefsson  <jas@extundo.com>
55973
55974         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
55975         MinGW.
55976
55977 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55978
55979         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
55980         needed.  Some compiler complained about some of them.  Problem reported
55981         by Larry Jones in
55982         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
55983
55984 2006-06-21  Simon Josefsson  <jas@extundo.com>
55985
55986         * tests/test-getaddrinfo.c: New file.
55987
55988         * modules/getaddrinfo-tests: New file.
55989
55990         * MODULES.html.sh: Add inet_pton.
55991
55992         * modules/inet_pton: New file.
55993
55994 2006-06-21  Simon Josefsson  <jas@extundo.com>
55995
55996         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
55997         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
55998         of using the (limited) gnulib implementation on Windows XP.
55999
56000         * m4/inet_pton.m4: New file.
56001
56002 2006-06-21  Simon Josefsson  <jas@extundo.com>
56003
56004         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56005         variable.
56006
56007         * lib/socket_.h: Don't define WINVER.
56008
56009         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56010         slightly modified to work in gnulib.
56011
56012 2006-06-21  Simon Josefsson  <jas@extundo.com>
56013
56014         * doc/gnulib.texi (Windows sockets): Add.
56015
56016 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56017
56018         * lib/read-file.c (fread_file): Start with buffer allocation of
56019         0 bytes rather than 1 byte; this simplifies the code.
56020         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56021         code to free buffer and save/restore errno.
56022         (internal_read_file): Remove unused local.
56023
56024 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56025
56026         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56027         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56028         Problem reported by Denis Excoffier in
56029         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56030
56031 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56032
56033         * modules/sys_socket, modules/socklen: Include sys/types since
56034         FreeBSD 4.x's sys/socket.h needs it.
56035
56036 2006-06-19  Simon Josefsson  <jas@extundo.com>
56037
56038         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56039
56040 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56041
56042         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56043
56044 2006-06-19  Bruno Haible  <bruno@clisp.org>
56045
56046         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
56047         and FULL_PATH_INTTYPES_H in angle brackets.
56048         Reported by Mark D. Baushke <mdb@gnu.org>.
56049
56050 2006-06-17  Eric Blake  <ebb9@byu.net>
56051
56052         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
56053         errno.
56054
56055 2006-06-17  Bruno Haible  <bruno@clisp.org>
56056
56057         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
56058         <sys/inttypes.h>.
56059
56060 2006-06-17  Bruno Haible  <bruno@clisp.org>
56061
56062         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
56063         whether errno is declared. Assume <errno.h> declares errno.
56064
56065 2006-06-17  Bruno Haible  <bruno@clisp.org>
56066
56067         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56068
56069 2006-06-17  Bruno Haible  <bruno@clisp.org>
56070
56071         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56072         problem on Solaris 2.5.1.
56073
56074 2006-06-16  Eric Blake  <ebb9@byu.net>
56075
56076         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56077         * lib/unicodeio.c [!defined errno]: Likewise.
56078         * lib/strtol.c [!defined errno]: Likewise.
56079         * lib/strtod.c [!defined errno]: Likewise.
56080
56081 2006-06-15  Eric Blake  <ebb9@byu.net>
56082
56083         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56084
56085 2006-06-15  Eric Blake  <ebb9@byu.net>
56086
56087         * config/srclist.txt (ssize_t.m4): Lose sync.
56088
56089 2006-06-15  Bruno Haible  <bruno@clisp.org>
56090
56091         * modules/stdint (Files): Include m4/full-header-path.m4,
56092         m4/size_max.m4, m4/wchar_t.m4.
56093         (Makefile.am): Many more substitutions.
56094         * modules/stdint-tests: New file.
56095         * tests/test-stdint.c: New file.
56096
56097 2006-06-15  Bruno Haible  <bruno@clisp.org>
56098
56099         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56100         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56101         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56102         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56103         gl_CHECK_TYPE_SAME): New macros.
56104
56105 2006-06-15  Bruno Haible  <bruno@clisp.org>
56106
56107         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56108
56109 2006-06-15  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/stdint_.h: Rewritten to be fully auto-configured.
56112         Fixes bug on HP-UX/IA64.
56113
56114 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56115
56116         * lib/getdate.y (__attribute__): Don't define if already defined.
56117         Problem reported by Larry Jones.
56118         * lib/utimens.c (__attribute__): Likewise.
56119
56120 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56121
56122         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56123         reported by Andreas Schwab.
56124
56125 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56126             Bruno Haible  <bruno@clisp.org>
56127
56128         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56129         check for the declaration of strnlen and a run test that exposes the
56130         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56131         rpl_strndup.
56132
56133 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56134             Bruno Haible  <bruno@clisp.org>
56135
56136         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56137
56138 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56139
56140         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56141         compile test, for Tru64 4.0D.
56142
56143 2006-05-28  Karl Berry  <karl@gnu.org>
56144
56145         * config/srclist.txt (printf-args.c): lose sync.
56146
56147 2006-05-26  Martin Lambers  <marlam@marlam.de>
56148
56149         * lib/getpass.c: Updates the test for the native W32 API, and adds
56150         missing includes, thus fixing compilation warnings.
56151
56152 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56153
56154         * lib/exclude.c (exclude_fnmatch): New function.
56155         (excluded_file_name): Call exclude_fnmatch.
56156         * lib/exclude.h (excluded_file_name): New prototype
56157
56158 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56159
56160         * lib/tempname.c (small_open, large_open): New macros.
56161         (__open, __open64) [!_LIBC]: Remove.
56162         (__gen_tempname): Use small_open and large_open instead of __open
56163         and __open64.  This fixes a portability bug on HP-UX 11.11i
56164         reported by Simon Wing-Tang in
56165         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56166
56167 2006-05-24  Bruno Haible  <bruno@clisp.org>
56168
56169         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56170         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56171         Reported by Thorsten Maerz <torte@netztorte.de> via
56172         Aaron Stone <aaron@serendipity.cx>.
56173
56174 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56175
56176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56177         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56178         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56179         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56180         not really conditional on the cache.
56181         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56182
56183 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56184
56185         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56186         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56187         (my_usleep): Don't mishandle maximum value.
56188
56189 2006-05-19  Jim Meyering  <jim@meyering.net>
56190
56191         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56192
56193 2006-05-17  Bruno Haible  <bruno@clisp.org>
56194
56195         Cygwin portability.
56196         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56197
56198 2006-05-17  Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/stdint_.h: Fix recognition of Cygwin.
56201
56202 2006-05-15  Bruno Haible  <bruno@clisp.org>
56203
56204         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56205         on libtool patch by Ralf Wildenhues.
56206
56207 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56208
56209         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56210         test for C99 conformance; (bool) 0.5 is an integer constant
56211         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56212         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56213
56214 2006-05-11  Simon Josefsson  <jas@extundo.com>
56215
56216         * m4/xvasprintf.m4: Fix obvious typo.
56217
56218 2006-05-11  Jim Meyering  <jim@meyering.net>
56219
56220         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56221         James Lemley.
56222
56223 2006-05-10  Simon Josefsson  <jas@extundo.com>
56224
56225         * lib/md4.c: Typo fix, update copyright years.
56226         (K1, K2): Don't use L because it turn computations into 64-bit on
56227         64-bit platforms.
56228
56229 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56230
56231         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56232         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56233         unwanted sign propagation, e.g., on hosts with 64-bit int.
56234         There still are some problems with reeelly weird theoretical hosts
56235         (e.g., 33-bit int) but it's not worth worrying about now.
56236         * lib/sha1.c (rol): Likewise.
56237         (K1, K2, K3, K4): Remove unnecessary L suffix.
56238
56239 2006-05-10  Bruno Haible  <bruno@clisp.org>
56240
56241         * lib/des.c: Cast to avoid warnings.
56242
56243 2006-05-09  Bruno Haible  <bruno@clisp.org>
56244
56245         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56246         (Depends-on): Depend also on xsize, stdarg.
56247         (configure.ac): Add gl_XVASPRINTF.
56248
56249 2006-05-09  Bruno Haible  <bruno@clisp.org>
56250
56251         * m4/xvasprintf.m4: New file.
56252
56253 2006-05-09  Bruno Haible  <bruno@clisp.org>
56254
56255         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56256         (EOVERFLOW): Define fallback value.
56257         (xstrcat): New function.
56258         (xvasprintf): Recognize the special case of a string concatenation.
56259
56260 2006-05-08  Eric Blake  <ebb9@byu.net>
56261
56262         * gnulib-tool (func_version): Base copyright year on CVS date.
56263         (func_emit_copyright_notice): New function.
56264         (func_emit_lib_Makefile_am): Use it.
56265         (func_emit_tests_Makefile_am): Likewise.
56266         (func_import): Likewise.
56267
56268 2006-05-08  Bruno Haible  <bruno@clisp.org>
56269
56270         * modules/stdarg: New file.
56271         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56272
56273 2006-05-08  Bruno Haible  <bruno@clisp.org>
56274
56275         * m4/stdarg.m4: New file, from GNU gettext.
56276
56277 2006-05-08  Bruno Haible  <bruno@clisp.org>
56278
56279         * config/srclist.txt (build-aux/config.rpath): different from latest
56280         release.
56281
56282 2006-05-08  Bruno Haible  <bruno@clisp.org>
56283
56284         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56285
56286 2006-05-05  Jim Meyering  <jim@meyering.net>
56287
56288         * m4/warning.m4: New file, derived from bison's file by the same name.
56289
56290 2006-05-03  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/stdint_.h: Shorter URL.
56293         * lib/inttypes.h: Likewise.
56294
56295 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56296
56297         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56298
56299 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56300
56301         * lib/verify.h: Document the internals better.  Most of this change
56302         was written by Bruno Haible.
56303
56304 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56305
56306         * doc/verify.texi: New file, partly based on a proposal by
56307         Bruno Haible.
56308
56309 2006-05-02  Bruno Haible  <bruno@clisp.org>
56310
56311         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56312         test from here...
56313         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56314
56315 2006-04-29  Bruno Haible  <bruno@clisp.org>
56316
56317         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56318         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56319
56320 2006-04-29  Bruno Haible  <bruno@clisp.org>
56321
56322         * gnulib-tool: Make --update option actually work.
56323
56324 2006-04-29  Bruno Haible  <bruno@clisp.org>
56325
56326         * doc/gcd.texi: New file.
56327         * doc/gnulib.texi: Include it.
56328
56329 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56330
56331         * lib/getdate.y (get_date): When adding relative date, start with the
56332         initial time, not with the result of the first mktime call.
56333
56334 2006-04-25  Bruno Haible  <bruno@clisp.org>
56335
56336         * gnulib-tool (func_import): Output the include directives in three
56337         blocks, sorted separately.
56338         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56339
56340 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56341
56342         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56343         to define main with arguments, for C++.  Reported by Eric Blake.
56344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56345         Prefer 'int main ()' to 'int main (void)', for C++.
56346         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56348         for 'main', for C99 and C++.
56349
56350 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56351
56352         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56353         Don't assume that exit status -1 is valid.
56354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56355         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56356         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56357         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56358         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56359         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56360         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56361         functions can be used without declaring them, or that you can
56362         exit with status -1.
56363         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56364
56365 2006-04-24  Karl Berry  <karl@gnu.org>
56366
56367         * config/srclist.txt (longdouble.m4): sync lost.
56368
56369 2006-04-24  Eric Blake  <ebb9@byu.net>
56370
56371         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56372
56373 2006-04-24  Bruno Haible  <bruno@clisp.org>
56374
56375         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56376         poll() implementation in AIX.
56377         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56378
56379 2006-04-24  Bruno Haible  <bruno@clisp.org>
56380
56381         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
56382         assigned exactly once.
56383
56384 2006-04-23  Claudio Fontana  <claudio@gnu.org>
56385             Bruno Haible  <bruno@clisp.org>
56386
56387         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
56388         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
56389         for AM_CPPFLAGS.
56390
56391 2006-04-23  Bruno Haible  <bruno@clisp.org>
56392
56393         * modules/copy-file: Depend on unistd.
56394         * modules/execute: Likewise.
56395         * modules/fatal-signal: Likewise.
56396         * modules/findprog: Likewise.
56397         * modules/mkdtemp : Likewise.
56398         * modules/pipe: Likewise.
56399         * modules/wait-process: Likewise.
56400
56401 2006-04-23  Bruno Haible  <bruno@clisp.org>
56402
56403         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
56404         condition was already detected.
56405         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56406
56407 2006-04-23  Bruno Haible  <bruno@clisp.org>
56408
56409         * lib/copy-file.c: Include <unistd.h> unconditionally.
56410         * lib/execute.c: Likewise.
56411         * lib/fatal-signal.c: Likewise.
56412         * lib/findprog.c: Likewise.
56413         * lib/mkdtemp.c: Likewise.
56414         * lib/pipe.h: Likewise.
56415         * lib/pipe.c: Likewise.
56416         * lib/wait-process.h: Likewise.
56417
56418 2006-04-23  Bruno Haible  <bruno@clisp.org>
56419
56420         * gnulib-tool (func_usage): Fix --import description. Document
56421         --update.
56422         (func_import): Create temporary file in a temporary directory, if
56423         --dry-run is specified. Silence errors from 'grep' when there are no
56424         m4 files in $m4dir.
56425         (func_create_testdir): Silence errors from 'grep' when there are no
56426         m4 files in $m4dir.
56427         Reported by Karl Berry <karl@freefriends.org>.
56428
56429 2006-04-20  Bruno Haible  <bruno@clisp.org>
56430
56431         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
56432         one argument, so that the code will be portable to Autoconf 2.60.
56433         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
56434         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56435         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
56436
56437 2006-04-19  Derek Price  <derek@ximbiot.com>
56438             Eric Blake  <ebb9@byu.net>
56439
56440         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
56441         rather than "/full/path.h".  Update comment to match.  Shorten &
56442         generalize m4_translit call via AS_TR_CPP.
56443
56444 2006-04-19  Derek Price  <derek@ximbiot.com>
56445             Eric Blake  <ebb9@byu.net>
56446
56447         * lib/inttypes.h: Correct grammar in comment.
56448
56449 2006-04-18  Derek Price  <derek@ximbiot.com>
56450             Paul Eggert  <eggert@cs.ucla.edu>
56451
56452         * modules/inttypes: New file.
56453         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56454
56455 2006-04-18  Derek Price  <derek@ximbiot.com>
56456             Paul Eggert  <eggert@cs.ucla.edu>
56457
56458         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
56459         New files.
56460
56461 2006-04-18  Derek Price  <derek@ximbiot.com>
56462             Paul Eggert  <eggert@cs.ucla.edu>
56463
56464         * lib/inttypes.h: New file.
56465         * lib/strtoimax.c: Assume <inttypes.h>.
56466
56467 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
56468
56469         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
56470         isn't mounted.  Problem reported by Kir Kolyshkin.
56471
56472 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56473
56474         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
56475         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
56476         Derek R. Price.
56477         * lib/regex.h (RE_DUP_MAX): Update comment to match current
56478         implementation.
56479
56480 2006-04-12  Eric Blake  <ebb9@byu.net>
56481
56482         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
56483         is now done automatically by the corresponding Autoconf macro.
56484
56485 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
56486
56487         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
56488         time_r.h.
56489
56490 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56491
56492         Merge regex changes from libc, removing some of our
56493         POSIX-conformance changes that were rejected and redoing them in a
56494         less-intrusive way.
56495
56496         * lib/regcomp.c (re_compile_internal, init_dfa):
56497         Length arg is now size_t, not Idx.  All uses changed.
56498         (peek_token): Forward decl now says internal_function.
56499         (__re_error_msgid, __re_error_msgid_idx):
56500         Now static rather than extern with attribute_hidden.
56501         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
56502         For some reason libc prefers K&R style defns for external functions.
56503         (regerror) [!defined _LIBC]: Likewise.
56504         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
56505         (seek_collating_symbol_entry, lookup_collation_sequence_value):
56506         (build_range_exp, build_collating_symbol):
56507         Use K&R-style defn.
56508         (re_compile_fastmap): Use '\0' to memset, not 0.
56509         (utf8_sb_map): Make the calculations more obvious.
56510         (init_dfa, parse_bracket_exp, build_charclass_op):
56511         Call calloc and cast result, as glibc does.
56512         (init_word_char, fetch_token, peek_token, peek_token_bracket):
56513         (build_range_exp, build_collating_symbol):
56514         Now internal functions.
56515
56516         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
56517
56518         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
56519         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
56520         Don't depend on VMS; depend on __VMS instead, for POSIX
56521         namespace cleanness.
56522         (regoff_t): Define to ssize_t, not long int.
56523
56524         Remove the REG_ macros named below.  Instead, make the old names
56525         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
56526         __USE_GNU_REGEX.
56527         (REG_BACKSLASH_ESCAPE_IN_LISTS):
56528         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
56529         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
56530         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
56531         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
56532         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
56533         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
56534         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
56535         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
56536         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
56537         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
56538         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
56539         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
56540         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
56541         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
56542         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
56543         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
56544         (REG_NREGS):
56545         Remove.  All uses replaced by the old RE_* names.
56546         (RE_BACKSLASH_ESCAPE_IN_LISTS):
56547         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
56548         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
56549         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
56550         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
56551         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
56552         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
56553         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
56554         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
56555         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
56556         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
56557         Don't bother having these macros be independent of each others'
56558         values, since they no longer exist in the POSIX name space.
56559
56560         Rename the following member names back to their old names,
56561         unless !__USE_GNU_REGEX.  All uses changed back.
56562         (buffer): Renamed from re_buffer.
56563         (allocated): Renamed from re_allocated.
56564         (used): Renamed from re_used.
56565         (syntax): Renamed from re_syntax.
56566         (fastmap): Renamed from re_fastmap.
56567         (translate): Renamed from re_translate.
56568         (can_be_null): Renamed from re_can_be_null.
56569         (regs_allocated): Renamed from re_regs_allocated.
56570         (fastmap_accurate): Renamed from re_fastmap_accurate.
56571         (no_sub): Renamed from re_no_sub.
56572         (not_bol): Renamed from re_not_bol.
56573         (not_eol): Renamed from re_not_eol.
56574         (newline_anchor): Renamed from re_newline_anchor.
56575         (num_regs): Renamed from rm_num_regs.
56576         (start): Renamed from rm_start.
56577         (end): Renamed from rm_end.
56578
56579         (free_state): Move up a bit.
56580
56581         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
56582         #define to be empty.
56583         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
56584         when that is what is intended.
56585         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
56586         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
56587         (MAX): New macro.
56588         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
56589         All uses changed back to re_malloc, etc.  It's now the caller's
56590         responsibility to check for overflow; all callers changed.
56591         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
56592         (re_x2nrealloc): Remove.
56593         (free_state): Remove decl.
56594
56595         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
56596         (re_set_registers, re_exec):
56597         Use K&R-style defn.
56598
56599         2006-01-31  Roland McGrath  <roland@redhat.com>
56600
56601         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
56602         Reported by Mike Frysinger <vapier@gentoo.org>.
56603
56604         2006-01-15  Andreas Jaeger  <aj@suse.de>
56605
56606         [BZ #1950]
56607         * lib/regex_internal.c (re_string_reconstruct): Adjust for
56608         build_wcs_upper_buffer change.
56609         (build_wcs_upper_buffer): Change return type.
56610
56611         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
56612
56613         * lib/regex_internal.h: Include <stdint.h> if available.
56614
56615         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
56616
56617         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
56618
56619         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56620
56621         * lib/regcomp.c: Adjust for changed secondary hash function.
56622
56623         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
56624
56625         * lib/regex.h: Pretty printing.
56626         Clean up namespace a bit.
56627
56628         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
56629
56630         * lib/regexec.c (update_cur_sifted_state, check_arrival,
56631         check_arrival_add_next_nodes): Avoid using uninitialized variable.
56632
56633         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56634                     Ulrich Drepper  <drepper@redhat.com>
56635
56636         [BZ #1302]
56637         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
56638         changed.
56639         (bitset_word_t): Renamed from bitset_word.  All uses changed.
56640
56641         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
56642
56643         [BZ #281]
56644         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
56645         * lib/regcomp.c: Remove unnecessary uses of
56646         unsigned RE_TRANSLATE_TYPE.
56647         * lib/regex_internal.h: Likewise.
56648         * lib/regex_internal.c: Likewise.
56649         * lib/regexec.c: Likewise.
56650         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
56651
56652         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
56653
56654         * lib/regexec.c (find_recover_state): Remove unnecessary
56655         initialization.
56656         (transit_state_bkref): Make DFA a const pointer.
56657         (get_subexp): Likewise.
56658         (check_arrival): Likewise.
56659         (update_cur_sifted_state): Likewise.
56660         (re_search_internal): Likewise.
56661         (prune_impossible_nodes): Likewise.
56662         (acquire_init_state_context): Likewise.
56663         (proceed_next_node): Likewise.
56664         (set_regs): Likewise.
56665         (free_fail_stack_return): Likewise.
56666         (check_arrival_expand_ecl): Mark DFA parameter as const.
56667         (check_arrival_expand_ecl_sub): Likewise.
56668         (check_subexp_limits): Likewise.
56669         (sub_epsilon_src_nodes):  Likewise.
56670         (add_epsilon_src_nodes):  Likewise.
56671         (merge_state_array): Likewise.
56672         (update_regs): Likewise.
56673         (build_trtable): Likewise.
56674         (sift_states_backward): Mark MCTX parameter as const.
56675         (build_sifted_states): Likewise.
56676         (update_cur_sifted_state): Likewise.
56677         (sift_states_mkref): Likewise.
56678         (check_arrival_expand_ecl): Mark eclosure as const.
56679         (check_dst_limits_calc_pos_1): Likewise.
56680         * lib/regex_internal.h (re_match_context_t): Make dfa a const
56681         pointer.
56682
56683         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
56684
56685         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
56686         (transit_state_sb): Likewise.
56687         (transit_state_mb): Likewise.
56688         (sift_states_iter_mb): Likewise.
56689         (check_arrival_add_next_nodes): Likewise.
56690         (check_node_accept_bytes): Change first parameter to pointer-to-const.
56691         [_LIBC] (re_search_2_stub): Use mempcpy.
56692
56693         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
56694         mbrtowc for very simple UTF-8 case.
56695
56696         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
56697         a pointer-to-const.
56698         (re_acquire_state_context): Likewise.
56699         * lib/regex_internal.h: Adjust prototypes.
56700
56701         * lib/regex.c: Prevent using C++ compilers.
56702
56703         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
56704         (re_acquire_state_context): Likewise.
56705
56706 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56707
56708         * modules/regex (Depends-on): Add ssize_t.
56709
56710 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56711
56712         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
56713         translation table.
56714
56715 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56716
56717         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
56718
56719 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
56720             Bruno Haible  <bruno@clisp.org>
56721
56722         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
56723         <sys/types.h> and <inttypes.h>.
56724
56725 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56726
56727         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
56728         `__error_t_defined', so argp.h will not typedef the former.
56729
56730 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
56731
56732         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
56733         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
56734         glibc names.  Even if glibc is changed to conform to POSIX, the
56735         traditional names will be available anyway, since regex depends on
56736         the extensions module.  Also, fix a longstanding typo in the
56737         implementation of Spencer ERE test #75 from grep 2.3.  Problems
56738         reported by Emanuele Giaquinta.  Also, change sense of cached
56739         variable, so that the message makes sense.
56740
56741 2006-03-24  Simon Josefsson  <jas@extundo.com>
56742
56743         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
56744         including some doc fixes.
56745         (base64_encode_alloc): Fix +1 bug on allocation failures.
56746
56747 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56748
56749         * lib/base64.c (base64_encode): Do not read past end of array with
56750         unsanitized input on systems with CHAR_BIT > 8.
56751
56752 2006-03-24  Eric Blake  <ebb9@byu.net>
56753
56754         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
56755
56756 2006-03-22  Karl Berry  <karl@gnu.org>
56757
56758         * config/srclist.txt (*setenv.[ch]): get from coreutils.
56759         * config/srclistvars.sh (COREUTILS): new var.
56760
56761 2006-03-17  Jim Meyering  <jim@meyering.net>
56762
56763         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
56764         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
56765
56766 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56767
56768         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
56769         no longer needs it.  Instead, check that regoff_t is as least
56770         as wide as ptrdiff_t.
56771
56772         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
56773         so that our regex.h stays compatible with the installed regex.
56774         This is helpful for installers who configure --without-included-regex.
56775         Problem reported by Emanuele Giaquinta.
56776
56777 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56778
56779         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
56780         Typedef to long int, not to off_, as POSIX will likely change
56781         in that direction.
56782
56783 2006-03-15  Eric Blake  <ebb9@byu.net>
56784
56785         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
56786
56787 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
56788
56789         * lib/argp-help.c (validate_uparams): Fix typo
56790         * lib/argp-parse.c (argp_default_options): Consistently begin help
56791         messages with a lowercase letter.
56792
56793 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
56794
56795         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
56796         overrun buffers and shouldn't be used (much as gets shouldn't be
56797         used).
56798         * lib/time_r.c (asctime_r, ctime_r): Likewise.
56799
56800 2006-03-08  Simon Josefsson  <jas@extundo.com>
56801
56802         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
56803         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56804
56805 2006-03-08  Simon Josefsson  <jas@extundo.com>
56806
56807         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
56808         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56809
56810 2006-03-08  Simon Josefsson  <jas@extundo.com>
56811
56812         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
56813         signal that configure disabled the device.
56814
56815 2006-03-08  Simon Josefsson  <jas@extundo.com>
56816
56817         * build-aux/maint.mk: Fix refresh-po, to handle no translated
56818         languages.
56819
56820 2006-03-07  Simon Josefsson  <jas@extundo.com>
56821
56822         * modules/getopt (Depends-on): Add unistd.
56823
56824         * modules/unistd: New file.
56825
56826 2006-03-07  Simon Josefsson  <jas@extundo.com>
56827
56828         * modules/gc-random: New file.
56829
56830 2006-03-07  Simon Josefsson  <jas@extundo.com>
56831
56832         * m4/unistd_h.m4: New file.
56833
56834 2006-03-07  Simon Josefsson  <jas@extundo.com>
56835
56836         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
56837         test to be side-effect free by storing the result in the cache
56838         variable gl_cv_lib_readline, and moving the assignment of
56839         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
56840         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56841
56842 2006-03-07  Simon Josefsson  <jas@extundo.com>
56843
56844         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
56845         error on missing devices (the functions will return an error).
56846
56847         * m4/gc.m4: Move random stuff to gc-random.m4
56848
56849 2006-03-07  Simon Josefsson  <jas@extundo.com>
56850
56851         * lib/unistd_.h: New file.
56852
56853 2006-03-07  Simon Josefsson  <jas@extundo.com>
56854
56855         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
56856
56857 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56858
56859         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
56860         Problem reported by Juan Manuel Guerrero.
56861
56862 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56863
56864         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
56865         the unistd module.
56866         * lib/getlogin_r.c: Likewise.
56867         * lib/getlogin_r.h: Likewise.
56868         * lib/glob.c: Likewise.
56869         * lib/pagealign_alloc.c: Likewise.
56870         * lib/unistd_.h: Remove; no longer needed.
56871
56872 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56873
56874         * MODULES.html.sh (Support for systems lacking POSIX:2001):
56875         Add unistd.
56876         * modules/c-stack (Depends-on): Add unistd.
56877         * modules/getlogin_r: Likewise.
56878         * modules/glob: Likewise.
56879         * modules/pagealign_alloc: Likewise.
56880         * modules/unistd (Files): Remove lib/unistd_.h.
56881         (EXTRA_DIST): Remove.
56882         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
56883         need unistd_.h.
56884         (MOSTLYCLEANFILES): Remove unistd.h-t.
56885
56886 2006-03-03  Simon Josefsson  <jas@extundo.com>
56887
56888         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
56889
56890 2006-03-03  Simon Josefsson  <jas@extundo.com>
56891
56892         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
56893         libidn and bison.
56894
56895 2006-03-03  Simon Josefsson  <jas@extundo.com>
56896
56897         * build-aux/maint.mk: Add indent target.
56898
56899 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
56900
56901         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
56902         our replacement poll.h in any case, to avoid a differing
56903         declaration from a system header.  Seen on AIX.
56904
56905 2006-03-01  Simon Josefsson  <jas@extundo.com>
56906
56907         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
56908         <kasal@ucw.cz>.
56909
56910 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56911
56912         * modules/gettime (Depends-on): Add extensions module.
56913         * modules/nanosleep (Depends-on): Likewise.
56914         * modules/settime (Depends-on): Likewise.
56915
56916 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56917
56918         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
56919         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
56920         pedantically.
56921         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56922         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
56923
56924         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
56925         not "==".  Reported by Ralf Wildenhues.
56926
56927 2006-03-01  Karl Berry  <karl@gnu.org>
56928
56929         * doc/Copyright/request-*: new files, synced from gnuorg.
56930
56931 2006-03-01  Karl Berry  <karl@gnu.org>
56932
56933         * config/srclist.txt (Copyright/*): new entries.
56934
56935 2006-02-28  Simon Josefsson  <jas@extundo.com>
56936
56937         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
56938
56939 2006-02-27  Simon Josefsson  <jas@extundo.com>
56940
56941         * lib/base64.h: Indent #define's.  From Jim Meyering
56942         <jim@meyering.net>.
56943
56944 2006-02-27  Jim Meyering  <jim@meyering.net>
56945
56946         Revert the change of 2006-02-24, so these files can continue
56947         to be sync'd from gettext.
56948         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
56949         of `config.h'.
56950
56951 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56952
56953         * modules/intprops: New file.
56954         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56955         Add intprops.
56956         * modules/getloadavg (Files): Remove lib/intprops.h.
56957         (Depends-on): Add intprops.
56958         * modules/human: Likewise.
56959         * modules/inttostr: Likewise.
56960         * modules/openat: Likewise.
56961         * modules/sig2str: Likewise.
56962         * modules/userspec: Likewise.
56963         * modules/utimecmp: Likewise.
56964         * modules/xnanosleep: Likewise.
56965         * modules/xstrtol: Likewise.
56966
56967 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
56968
56969         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
56970         * modules/lock-tests (TESTS): Use $(EXEEXT).
56971         * modules/tls-tests: Likewise.
56972         * modules/argp-tests: Likewise.
56973         (check_PROGRAMS): New var, replacing...
56974         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
56975
56976 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56977
56978         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
56979         `config.h'.
56980
56981 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56982
56983         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
56984
56985 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56986
56987         Sync from coreutils.
56988         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
56989         gl_CHDIR_SAFER.
56990
56991 2006-02-22  Jim Meyering  <jim@meyering.net>
56992
56993         Sync from coreutils.
56994         * m4/chdir-safer.m4: New file.
56995
56996 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56997
56998         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
56999         AT_FDCWD exceeds INT_MAX.
57000         * lib/openat.h (AT_FDCWD): Likewise.
57001
57002 2006-02-17  Eric Blake  <address@hidden>
57003
57004         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57005
57006 2006-02-16  Simon Josefsson  <jas@extundo.com>
57007
57008         * modules/getaddrinfo (Depends-on): Add sys_socket.
57009
57010 2006-02-15  Simon Josefsson  <jas@extundo.com>
57011
57012         * build-aux/maint.mk: Add dsyntax-check rule.
57013
57014 2006-02-15  Eric Blake  <ebb9@byu.net>
57015
57016         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57017         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57018         'present but cannot compile' warnings on cygwin.
57019         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57020         use ws2tcpip.h if sys/socket.h works.
57021         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57022         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57023
57024 2006-02-14  Simon Josefsson  <jas@extundo.com>
57025
57026         * modules/maintainer-makefile (Files): Rename.
57027
57028         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57029         and (the local) Makefile.cfg to maint-cfg.mk.
57030
57031         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57032         to the latter.
57033
57034         * modules/maintainer-makefile: New module.
57035
57036         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57037         severaly stripped to make it possible to build it up from scratch
57038         with reliable tests.
57039
57040         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57041         fixes to permit overriding the default actions when configure and
57042         makefile are not available.
57043
57044 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57045
57046         Sync from coreutils.
57047         * modules/lstat (Depends-on): Don't depend on xalloc.
57048         (License): Change from GPL to LGPL, since this is now simply a
57049         replacement for a libc function.
57050
57051 2006-02-14  Jim Meyering  <jim@meyering.net>
57052
57053         Sync from coreutils.
57054
57055         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
57056         failure on deficient systems, and simplify gnulib lgpl dependencies.
57057         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
57058         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
57059
57060         * lib/xalloc-die.c: Remove unused definition of N_.
57061
57062 2006-02-14  Jim Meyering  <jim@meyering.net>
57063
57064         Sync from coreutils.
57065         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57066         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57067         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57068         double-quote uses of that variable, to accommodate the rare case in
57069         which getmntent is available in none of the libraries checked.  This
57070         happens at least on FreeBSD 5.0.
57071
57072 2006-02-13  Simon Josefsson  <jas@extundo.com>
57073
57074         * gnulib-tool (Usage): Fix --import, from
57075         karl@freefriends.org (Karl Berry).
57076
57077 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57078
57079         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57080
57081 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57082
57083         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57084         "autoupdate" on 2005-12-12.
57085
57086 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57087
57088         * modules/closeout (Depends-on): Remove atexit.
57089
57090 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57091
57092         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57093         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57094
57095 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57098         __EXTENSIONS__ if this causes compilation to fail.  Problem
57099         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57100         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57101
57102 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57103
57104         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57105         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57106         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57107         All uses changed.
57108
57109 2006-01-26  Simon Josefsson  <jas@extundo.com>
57110
57111         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57112         prototype is visible on mingw32.
57113
57114         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57115         for mingw32.
57116
57117         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57118         mingw32).
57119
57120 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57121
57122         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57123         attempt to open for write; this always fails, at least on POSIX
57124         hosts.  This reinstates the 2006-01-09 change, which was
57125         inadvertently removed.
57126
57127 2006-01-26  Bruno Haible  <bruno@clisp.org>
57128
57129         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57130         Reported by Paul Eggert.
57131
57132 2006-01-26  Bruno Haible  <bruno@clisp.org>
57133             Paul Eggert  <eggert@cs.ucla.edu>
57134
57135         * lib/stdbool_.h (_Bool)
57136         [(! (defined __cplusplus || defined __BEOS__)
57137           && !defined __GNUC__
57138           && !(defined __HP_cc || defined __xlc__
57139                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57140                || defined __sgi))]:
57141         #define to signed char in these cases too; this simplifies
57142         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57143         etc., separately) and makes it more conservative.
57144
57145 2006-01-25  Simon Josefsson  <jas@extundo.com>
57146
57147         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57148         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57149         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57150
57151 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57152
57153         * lib/argp-namefrob.h: Bugfix. Remove stray #
57154
57155 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57156
57157         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57158         so that we test the test.
57159         Check for yet another HP-UX cc bug involving *bool |= bool.
57160
57161 2006-01-25  Karl Berry  <karl@gnu.org>
57162
57163         * config/srclist.txt (vasnprintf.c): sync lost.
57164
57165 2006-01-25  Jim Meyering  <jim@meyering.net>
57166
57167         Sync from the stable (b5) branch of coreutils:
57168
57169         * lib/fts.c (fts_children): Don't let close() clobber errno from
57170         failed fchdir().
57171
57172         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57173         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57174         a dangling symlink.  That can also happen at least for ELOOP.
57175         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57176         FYI, this bug predates the inclusion of fts.c in coreutils.
57177
57178         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57179         in their own block, so pre-c99 compilers don't object.
57180
57181         Avoid the double-free (first in fts_read, second in fts_close) that
57182         would occur when an `active' directory is made inaccessible (e.g.,
57183         via chmod a-x) during a traversal.
57184         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57185         before returning.  Reproduce this failure by
57186         mkdir -p a/b; cd a; chmod a-x . b
57187         Reported by Stavros Passas.
57188
57189 2006-01-25  Jim Meyering  <jim@meyering.net>
57190
57191         * lib/fileblocks.c: Remove more useless parentheses.
57192         * lib/readutmp.h: Likewise.
57193
57194 2006-01-25  Bruno Haible  <bruno@clisp.org>
57195
57196         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57197         warnings.
57198         Reported by Paul Eggert.
57199
57200 2006-01-25  Bruno Haible  <bruno@clisp.org>
57201
57202         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57203         rid of a trap command. For Solaris sh.
57204         Reported by Mark D. Baushke <mdb@gnu.org>.
57205
57206 2006-01-24  Simon Josefsson  <jas@extundo.com>
57207
57208         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57209         Bruno.
57210
57211 2006-01-24  Karl Berry  <karl@gnu.org>
57212
57213         * config/srclist.txt (argp-namefrob.h): sync lost.
57214
57215 2006-01-24  Jim Meyering  <jim@meyering.net>
57216
57217         * modules/openat (Files): Add lib/intprops.h.
57218         From Mark D. Baushke.
57219
57220 2006-01-24  Jim Meyering  <jim@meyering.net>
57221
57222         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57223         Reported by Mark D. Baushke.
57224
57225 2006-01-24  Jim Meyering  <jim@meyering.net>
57226
57227         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57228
57229 2006-01-24  Bruno Haible  <bruno@clisp.org>
57230
57231         * modules/strnlen (Maintainer): Change from glibc to all.
57232
57233 2006-01-24  Bruno Haible  <bruno@clisp.org>
57234
57235         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57236         Patch by Paul Eggert.
57237
57238 2006-01-24  Bruno Haible  <bruno@clisp.org>
57239
57240         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57241         already has it.
57242         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57243         2005-11-26.
57244
57245         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57246         'signed char' to avoid problems with the built-in _Bool type.
57247         Reported by Paul Eggert on 2005-11-26.
57248
57249 2006-01-24  Bruno Haible  <bruno@clisp.org>
57250
57251         * gnulib-tool (func_import): Avoid constructing complicated sed
57252         expressions inside backquote.
57253         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57254
57255 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57256
57257         These changes imported from libc.
57258         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57259         test and two separate function calls.
57260         * lib/strndup.c (__strndup): Add libc_hidden_def.
57261
57262 2006-01-23  Simon Josefsson  <jas@extundo.com>
57263
57264         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57265         Remove the test_*_SOURCES variable: automake infers it by default.
57266         * modules/tls-tests: Likewise.
57267
57268 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57269
57270         Work around porting bugs reported by Dieter in
57271         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57272         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57273         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57274         Include "getopt.h" first, to check interface.
57275         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57276         !HAVE_DECL_GETENV.
57277         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57278         (__strndup): Revert to K&R-style function dfns, the glibc style.
57279         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57280         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57281         Include strnlen.h first, to get prototype properly.
57282         (strnlen): Renamed from __strnlen.
57283         Remove weak alias.
57284
57285 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57286
57287         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57288
57289 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57290
57291         * config/srclist.txt: Adjust to reflect glibc reorganization.
57292         This affects only comments.
57293
57294 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57295
57296          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57297          Reported by Bruce Korb <bkorb@gnu.org>.
57298
57299 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57300
57301         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57302         to pacify gcc -Wswitch-default.
57303
57304 2006-01-22  Bruno Haible  <bruno@clisp.org>
57305
57306         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57307         temporary buffer for sprintf, take into account the precision also
57308         for 'd', 'i', 'u', 'o', 'x', 'X'.
57309
57310 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57311
57312         * modules/argp-tests: New module
57313         * tests/test-argp.c: New file
57314         * tests/test-argp-2.sh: New file
57315
57316 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57317
57318         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57319         (__argp_base_name): Removed
57320         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57321         typo.
57322         (__argp_base_name): Provide macro definition or extern declaration
57323         depending on the configuration
57324
57325 2006-01-20  Simon Josefsson  <jas@extundo.com>
57326
57327         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57328
57329 2006-01-20  Simon Josefsson  <jas@extundo.com>
57330
57331         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57332
57333 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57334
57335         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57336         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57337         Suggested by Bruno Haible.
57338
57339 2006-01-20  Karl Berry  <karl@gnu.org>
57340
57341         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57342         until changes propagate, I guess.
57343
57344 2006-01-19  Simon Josefsson  <jas@extundo.com>
57345
57346         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57347
57348 2006-01-19  Simon Josefsson  <jas@extundo.com>
57349
57350         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57351
57352 2006-01-19  Simon Josefsson  <jas@extundo.com>
57353
57354         * gnulib-tool: Set check_PROGRAMS.
57355
57356         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57357         modules/des-tests, modules/gc-arcfour-tests,
57358         modules/gc-arctwo-tests, modules/gc-des-tests,
57359         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57360         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57361         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57362         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57363         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57364         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57365         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57366         test_*_SOURCES.
57367
57368 2006-01-18  Simon Josefsson  <jas@extundo.com>
57369
57370         * modules/socklen (Depends-on): Depend on sys_socket.
57371
57372 2006-01-18  Simon Josefsson  <jas@extundo.com>
57373
57374         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57375         modules/des-tests, modules/gc-arcfour-tests,
57376         modules/gc-arctwo-tests, modules/gc-des-tests,
57377         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57378         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57379         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57380         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57381         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57382         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
57383         $(EXEEXT) to automake TESTS variable, for mingw32.
57384
57385 2006-01-17  Simon Josefsson  <jas@extundo.com>
57386
57387         * modules/socklen (Include): Need sys/socket.h.
57388
57389 2006-01-17  Bruno Haible  <bruno@clisp.org>
57390
57391         * modules/ssize_t (Include): Add <sys/types.h>.
57392
57393 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57394
57395         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
57396         it's not portable and it doesn't work with cross-compiles.
57397         Problem reported by Bruno Haible.  Fix missing-$ typo in
57398         'test "gl_cv_ignore_unused_libraries" ...' that prevented
57399         -zignore from being used with Sun's C compiler.
57400
57401 2006-01-12  Simon Josefsson  <jas@extundo.com>
57402
57403         * lib/base64.c: Fix warning, reported by Bruno Haible
57404         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
57405
57406 2006-01-12  Bruno Haible  <bruno@clisp.org>
57407
57408         * modules/ldd: New file.
57409         * build-aux/ldd.sh.in: New file.
57410         * MODULES.html.sh (Support for building libraries and executables): Add
57411         ldd.
57412
57413 2006-01-12  Bruno Haible  <bruno@clisp.org>
57414
57415         * m4/ldd.m4: New file.
57416
57417 2006-01-12  Bruno Haible  <bruno@clisp.org>
57418
57419         * gnulib-tool (func_import, func_create_testdir): Don't go into an
57420         endless loop while replacing $auxdir with build-aux.
57421
57422 2006-01-11  Simon Josefsson  <jas@extundo.com>
57423
57424         * lib/stdint_.h (SIZE_MAX): Add missing (.
57425
57426 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57427
57428         Sync from coreutils.
57429         * lib/md5.c: Fix commentary typos.
57430         (alignof, UNALIGNED_P): No need for a GCC-specific version.
57431         * lib/md5.h (__attribute__): Remove; unused.
57432         * lib/sha1.c: Fix commentary to match md5 better.
57433         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
57434         so that we don't need to worry about alignment.  All uses changed.
57435         This merges the 2005-10-28 md5 change into sha1.
57436
57437 2006-01-11  Jim Meyering  <jim@meyering.net>
57438
57439         Sync from coreutils.
57440         * lib/md5.c (OP): Fix spacing.
57441
57442 2006-01-11  Bruno Haible  <bruno@clisp.org>
57443
57444         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57445         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
57446         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
57447
57448 2006-01-11  Bruno Haible  <bruno@clisp.org>
57449
57450         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57451         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57452         the "early" section as well.
57453
57454 2006-01-11  Bruno Haible  <bruno@clisp.org>
57455
57456         Avoid "ar: no archive members specified" error on MacOS X.
57457         * gnulib-tool (func_modules_add_dummy): New function.
57458         (func_import, func_create_testdir): Invoke it.
57459
57460 2006-01-11  Bruno Haible  <bruno@clisp.org>
57461
57462         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
57463         with $auxdir in AC_CONFIG_FILES statements.
57464
57465 2006-01-11  Bruno Haible  <bruno@clisp.org>
57466
57467         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57468         Initialize also noinst_HEADERS to empty.
57469
57470 2006-01-11  Bruno Haible  <bruno@clisp.org>
57471
57472         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
57473         variables.
57474         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
57475         autoreconf.
57476
57477 2006-01-11  Bruno Haible  <bruno@clisp.org>
57478
57479         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
57480         overridable by the user.
57481         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57482
57483 2006-01-10  Simon Josefsson  <jas@extundo.com>
57484
57485         * modules/sys_socket: New file.
57486
57487 2006-01-10  Simon Josefsson  <jas@extundo.com>
57488
57489         * m4/sys_socket_h.m4: New file.
57490
57491 2006-01-10  Simon Josefsson  <jas@extundo.com>
57492
57493         * lib/socket_.h: New file.
57494
57495 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57496
57497         * modules/readutmp (Maintainer): Add myself.
57498
57499 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57500
57501         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
57502         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
57503         People who are still concerned with buggy memcmp implementations
57504         can invoke gl_FUNC_MEMCMP themselves.
57505
57506 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57507
57508         * lib/regex_internal.h (BITSET_WORD_BITS):
57509         Work around a bug in 64-bit PGC (before version 6.1-2), where the
57510         preprocessor mishandles large unsigned values as if they were signed.
57511         Problem reported by Claudio Fontana in
57512         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
57513
57514 2006-01-10  Jim Meyering  <jim@meyering.net>
57515
57516         Avoid the double-free (first in fts_read, second in fts_close) that
57517         would occur when an `active' directory is made inaccessible (e.g.,
57518         via chmod a-x) during a traversal.
57519         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57520         before returning.  Reproduce this failure by
57521         mkdir -p a/b; cd a; chmod a-x . b
57522         Reported by Stavros Passas.
57523
57524         Sync from coreutils.
57525         * lib/sha1.c: Tweak grammar in a comment.
57526
57527 2006-01-10  Jim Meyering  <jim@meyering.net>
57528
57529         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
57530         Patch by Joerg Sonnenberger.
57531
57532 2006-01-10  Bruno Haible  <bruno@clisp.org>
57533
57534         * modules/readutmp: Depend on module free.
57535         * modules/strtok_r: Depend on module restrict.
57536
57537 2006-01-10  Bruno Haible  <bruno@clisp.org>
57538
57539         * modules/gettext (configure.ac): Add an invocation of
57540         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
57541
57542 2006-01-10  Bruno Haible  <bruno@clisp.org>
57543
57544         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
57545         Reported by Werner Lemberg <wl@gnu.org>.
57546
57547 2006-01-10  Bruno Haible  <bruno@clisp.org>
57548
57549         * lib/localcharset.c: Update from GNU gettext.
57550
57551 2006-01-10  Bruno Haible  <bruno@clisp.org>
57552
57553         * lib/argp.h (__const): Remove macro. Use const instead.
57554         * lib/argp-fmtstream.h (__const): Likewise.
57555         * lib/glob_.h (__const): Remove macro.
57556         * lib/glob-libc.h: Use const instead of __const.
57557
57558 2006-01-10  Bruno Haible  <bruno@clisp.org>
57559
57560         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
57561         variable.
57562         Needed to avoid an automake error regarding the 'gettext' module.
57563
57564 2006-01-09  Simon Josefsson  <jas@extundo.com>
57565
57566         * modules/inet_ntop (Depends-on): Add restrict.
57567
57568 2006-01-09  Simon Josefsson  <jas@extundo.com>
57569
57570         * modules/gc-rijndael-tests (License): Put under LGPL.
57571
57572         * modules/gc-des-tests (License): Likewise.
57573
57574         * modules/gc-arcfour-tests (License): Likewise.
57575
57576         * modules/gc-arctwo-tests (License): Likewise.
57577
57578         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
57579
57580         * modules/gc-hmac-sha1-tests (Files): Likewise.
57581
57582         * modules/gc-hmac-md5-tests (License): Likewise.
57583
57584         * modules/gc-sha1-tests (License): Likewise.
57585
57586         * modules/gc-md5-tests (License): Likewise.
57587
57588         * modules/gc-md4-tests (License): Likewise.
57589
57590         * modules/gc-md2-tests (License): Likewise.
57591
57592         * modules/gc-tests (License): Likewise.
57593
57594         * modules/des-tests (License): Likewise.
57595
57596         * modules/md4-tests (License): Likewise.
57597
57598         * modules/md2-tests (License): Likewise.
57599
57600 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57601
57602         Sync from coreutils:
57603
57604         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
57605         * modules/lib-ignore: New file.
57606         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
57607         chdir-safer.m4, lchmod.m4.
57608         * modules/openat: Add mkdirat.c, openat-priv.h.
57609
57610 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57611
57612         Sync from coreutils.
57613         * m4/lib-ignore.m4: New file.
57614         * m4/lchmod.m4: New file.
57615
57616 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57617
57618         Sync from coreutils.
57619         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
57620         for write access: POSIX says that must fail.
57621         * lib/fts.c (diropen): Likewise.
57622         * lib/save-cwd.c (save_cwd): Likewise.
57623         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
57624         well, for minor improvements on hosts that lack O_DIRECTORY.
57625         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
57626         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
57627         Fall back on chown if open failed with EACCES.
57628
57629         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
57630         Report an error at compile-time if only a 1-second nominal clock
57631         resolution is found.
57632
57633         * lib/lchmod.h: New file.
57634         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
57635         (make_dir_parents): Use lchown rather than chown, and
57636         lchmod rather than chmod.
57637
57638         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
57639         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
57640         "proc" reported by n0dalus.
57641
57642         * lib/mountlist.c: Include <limits.h>.
57643         (dev_from_mount_options)
57644         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
57645         New function.  It no longer assumes "dev=" has the System V meaning
57646         on Linux (since it doesn't).  It also parses "dev=" more carefully.
57647         (read_file_system_list)
57648         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
57649         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
57650         dev= in that case.
57651
57652         * lib/posixtm.h (PDS_PRE_2000): New macro.
57653         * lib/posixtm.c (year): Arg is now syntax_bits rather than
57654         allow_century.  All usages changed.  Reject dates outside the range
57655         1969-1999 if PDS_PRE_2000 is used.
57656
57657 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57658
57659         Sync from coreutils.
57660         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
57661         (Time of day items): Mention the possibility of leap seconds.
57662         Problem reported by Dr. David Alan Gilbert.
57663
57664 2006-01-09  Jim Meyering  <jim@meyering.net>
57665
57666         Sync from coreutils.
57667
57668         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
57669
57670         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
57671
57672         * lib/modechange.c (mode_compile): Reject an invalid mode string
57673         that starts with an octal digit.  From Andreas Gruenbacher.
57674
57675         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
57676         and dup to open_safer and dup_safer, respectively.
57677         (openat_permissive): Fix typo in comment.
57678
57679         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
57680         "gettext.h"; either no longer needed or are guaranteed by openat.h.
57681         (_): Remove; no longer needed.
57682         (openat): Renamed from rpl_openat; no need for rpl_openat
57683         since openat.h renames openat for us.
57684         Replace most of the body with a call to openat_permissive,
57685         to avoid duplicate code.
57686         Port to (probably hypothetical) environments were mode_t is
57687         wider than int.
57688         (openat_permissive): Require mode arg, so that we can check
57689         types better.  Put it just after flags.  Change cwd failure
57690         indicator from pointer-to-bool to pointer-to-errno-value.
57691         All callers changed.
57692         Invoke openat_save_fail and/or openat_restore_fail if
57693         cwd_errno is null, so that openat can call us.
57694         (openat_permissive, fdopendir, fstatat, unlinkat):
57695         Simplify errno handling to avoid some duplicate code,
57696         as it's OK to set errno on success.
57697         * lib/openat.h: Revamp code so that function macros depend on
57698         __OPENAT_PREFIX only, not also on AT_FDCWD.
57699         (openat_ro): Remove.  Caller changed to use openat_permissive.
57700         (openat_permissive): Now a macro, if not a function.
57701         (openat_restore_fail, openat_save_fail): Now always functions,
57702         since mkdirat needs them even if __OPENAT_PREFIX is defined.
57703
57704         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
57705         and openat.c.
57706         * lib/mkdirat.c: Include openat-priv.h.
57707         Remove definitions of macros defined therein.
57708         * lib/openat.c: Likewise.
57709
57710         * lib/mkdirat.c (mkdirat): New file and function.
57711         * lib/openat.h (mkdirat): Declare.
57712
57713         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
57714
57715         * lib/openat.h (openat_permissive): Declare.
57716         (openat_ro): Define.
57717
57718         * lib/openat.c (EXPECTED_ERRNO): New macro.
57719         (openat_permissive): New function -- used in remove.c rewrite.
57720         (all functions): Set errno just before returning, only if there
57721         was an actual failure.
57722         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
57723
57724         Emulate openat-family functions using Linux's procfs, if possible.
57725         Idea and some code based on Ulrich Drepper's glibc changes.
57726
57727         * lib/openat.c: (BUILD_PROC_NAME): New macro.
57728         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
57729         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
57730         before falling back on save_cwd and restore_cwd.
57731         (fdopendir, fstatat, unlinkat): Likewise.
57732
57733         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
57734         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
57735
57736         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
57737         as second argument to va_arg.  Otherwise, some versions of gcc
57738         warn that `if this code is reached, the program will abort'.
57739
57740 2006-01-09  Jim Meyering  <jim@meyering.net>
57741
57742         Sync from coreutils.
57743         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
57744         Require openat-priv.h.
57745
57746 2006-01-09  Bruno Haible  <bruno@clisp.org>
57747
57748         * modules/strnlen (Include): Use strnlen.h.
57749
57750 2006-01-09  Bruno Haible  <bruno@clisp.org>
57751
57752         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
57753
57754 2006-01-09  Bruno Haible  <bruno@clisp.org>
57755
57756         * lib/sysexit_.h (EX_OK): New macro.
57757         Suggested by Martin Lambers <marlam@marlam.de>.
57758
57759 2006-01-09  Bruno Haible  <bruno@clisp.org>
57760
57761         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
57762         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
57763
57764 2006-01-09  Bruno Haible  <bruno@clisp.org>
57765
57766         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
57767         numbers.
57768
57769 2006-01-09  Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
57772         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
57773         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
57774         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
57775
57776 2006-01-09  Bruno Haible  <bruno@clisp.org>
57777
57778         * build-aux/javacomp.sh.in: New file, moved from lib/.
57779         * modules/javacomp-script (Files): Update.
57780         (configure.ac): Add AC_CONFIG_FILES invocation.
57781         (EXTRA_DIST): Remove variable.
57782
57783         * build-aux/javaexec.sh.in: New file, moved from lib/.
57784         * modules/javaexec (Files): Update.
57785         (configure.ac): Add AC_CONFIG_FILES invocation.
57786         (EXTRA_DIST): Remove javaexec.sh.in.
57787
57788         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
57789         * modules/csharpcomp-script (Files): Update.
57790         (configure.ac): Add AC_CONFIG_FILES invocation.
57791         (EXTRA_DIST): Remove variable.
57792
57793         * build-aux/csharpexec.sh.in: New file, moved from lib/.
57794         * modules/csharpexec (Files): Update.
57795         (configure.ac): Add AC_CONFIG_FILES invocation.
57796         (EXTRA_DIST): Remove csharpexec.sh.in.
57797
57798 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57799
57800         Sync from coreutils.
57801
57802         Add POSIX ACL support
57803         * lib/acl.h (copy_acl, set_acl): Add declarations.
57804         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
57805         systems other than Linux.
57806         (chmod_or_fchmod): New function: use fchmod when possible,
57807         and chmod otherwise.
57808         (file_has_acl): Add a POSIX ACL implementation, with a
57809         Linux-specific subcase.
57810         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
57811         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
57812         acls are unsupported.
57813         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
57814         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
57815         are unsupported.
57816
57817 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57818
57819         Sync from coreutils.
57820         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
57821
57822 2006-01-07  Bruno Haible  <bruno@clisp.org>
57823
57824         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
57825         gl_EARLY.
57826
57827 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57828
57829         * lib/strftime.c (tzname): Don't declare if it is already #defined.
57830         Problem reported for Mingw by Mark Junker.
57831
57832 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57833
57834         * README: Gnulib normally doesn't generate a tarball.
57835
57836 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
57837
57838         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
57839         long int, not int, for nanosecond counts, so that people who are
57840         used to POSIX struct timespec won't be surprised.  Reported by Jim
57841         Meyering.
57842
57843 2005-12-28  Bruno Haible  <bruno@clisp.org>
57844
57845         * build-aux/config.rpath: Update from GNU gettext.
57846
57847 2005-12-16  Jim Meyering  <jim@meyering.net>
57848
57849         * modules/fprintftime: New module.
57850         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
57851
57852 2005-12-16  Jim Meyering  <jim@meyering.net>
57853
57854         * m4/fprintftime.m4: New file.
57855
57856 2005-12-16  Jim Meyering  <jim@meyering.net>
57857
57858         * lib/fprintftime.c, lib/fprintftime.h: New files.
57859
57860 2005-12-15  Simon Josefsson  <jas@extundo.com>
57861
57862         * modules/socklen (configure.ac): Fix M4 macro name, to align with
57863         new m4/socklen.m4.
57864
57865 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57866
57867         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
57868         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
57869
57870 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57871
57872         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
57873         * lib/argp-help.c (fill_in_uparams): Check if the constructed
57874         struct uparams is valid. Fall back to the default values if it is
57875         not.
57876
57877 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57878
57879         * modules/argp (Files): Add argp-pin.c
57880         (Depends-on): dirname
57881         (lib_SOURCES): Add argp-pin.c
57882
57883 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57884
57885         * m4/argp.m4:  Check if program_invocation_name and
57886         program_invocation_short_name are declared and define appropriate
57887         macros if they are not.
57888
57889 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57890
57891         * lib/argp-help.c (__argp_base_name): New function
57892         (__argp_short_program_name): Rewrite using __argp_base_name
57893         * lib/argp-namefrob.h: Define program_invocation_name and
57894         program_invocation_short_name if requested
57895         (__argp_base_name): Add prototype
57896         * lib/argp-parse.c (argp_def): Use gettext wrappers
57897         (argp_default_parser): Use __argp_base_name
57898         * lib/argp-pin.c: New file. Defines program_invocation_name and
57899         program_invocation_short_name on systems that lack them.
57900
57901 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57902
57903         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
57904         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57905         porting problem reported by Georg Schwarz in
57906         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57907
57908 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57909
57910         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
57911         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57912         porting problem reported by Georg Schwarz in
57913         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57914
57915 2005-12-05  Bruno Haible  <bruno@clisp.org>
57916
57917         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
57918         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
57919         Reported by Mark Junker <mjscod@gmx.de>.
57920
57921 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
57922
57923         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
57924         Use implementation from Albert Chin, with some
57925         comments/corrections by Stepan Kasal and myself.
57926
57927 2005-12-02  Bruno Haible  <bruno@clisp.org>
57928
57929         * gnulib-tool (func_import): Accept GPLed build tool modules when
57930         --lgpl is given.
57931         * modules/csharpcomp-script: New file.
57932         * modules/csharpcomp: Depend on it.
57933         * modules/javacomp-script: New file.
57934         * modules/javacomp: Depend on it.
57935         Suggested by Simon Josefsson.
57936
57937 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
57938
57939         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
57940         statement, to work around an HP-UX 10.20 compiler bug reported by
57941         Peter O'Gorman.
57942
57943 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
57944
57945         * modules/savedir (Depends-on): Add openat.
57946
57947 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
57948
57949         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
57950         (uintmax_t) [defined uintmax_t]: Do not declare.
57951         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
57952         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
57953         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
57954         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
57955         sake of portability to weird hosts that C allows (though we don't
57956         know of any practical examples).
57957
57958         * lib/savedir.h (fdsavedir): New decl.
57959         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
57960         contains most of the former guts of savedir.
57961         (savedir): Use savedirstream.
57962         Include "openat.h".
57963
57964 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57965
57966         * modules/obstack (Files): Add m4/ulonglong.m4.
57967         Problem reported by Davide Angelocola.
57968
57969 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57970
57971         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
57972         coreutils no longer futzes with rounding modes.
57973
57974 2005-11-14  Jim Meyering  <jim@meyering.net>
57975
57976         * lib/mkstemp-safer.c: Include <config.h>, required for possible
57977         replacement of mkstemp.
57978
57979 2005-11-10  Simon Josefsson  <jas@extundo.com>
57980
57981         * lib/readline.c: Remove EOL.
57982
57983 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57984
57985         * modules/gethrxtime (Depends-on): Add gettime.
57986
57987 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57988
57989         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
57990         or gettimeofday; no longer needed.
57991
57992 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
57995         time business.
57996         (gethrxtime) [! (HAVE_NANOUPTIME
57997         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
57998         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
57999         our own approximation.
58000
58001 2005-11-08  Eric Blake  <ebb9@byu.net>
58002
58003         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58004
58005 2005-11-08  Eric Blake  <ebb9@byu.net>
58006
58007         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58008
58009 2005-11-04  Bruno Haible  <bruno@clisp.org>
58010
58011         * gnulib-tool: Implement --update mode.
58012
58013 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58014
58015         Fix porting problem reported by Theodoros V. Kalamatianos.
58016         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58017         Don't assume that futimes failing means we must fail.
58018
58019 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58020
58021         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58022         variables to suggest the intended function of the PATH_MAX check.
58023
58024 2005-10-30  Kean Johnston  <jkj@sco.com>
58025
58026         Trivial changes to support SCO systems.
58027         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58028         as PATH_MAX.
58029         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58030         where __ptr is null when no I/O is pending.
58031
58032 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58033
58034         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58035         leave errno alone.  Problem reported by Dmitry V. Levin.
58036
58037 2005-10-28  Simon Josefsson  <jas@extundo.com>
58038
58039         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58040         Test more.
58041
58042         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58043
58044         * modules/md2, modules/md2-tests: New files.
58045
58046 2005-10-28  Simon Josefsson  <jas@extundo.com>
58047
58048         * m4/inet_ntop.m4: More tests.
58049
58050         * m4/gc-md2.m4, md2.m4: New file.
58051
58052 2005-10-28  Simon Josefsson  <jas@extundo.com>
58053
58054         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
58055         "restrict" keywords, as per POSIX.  Protect the function
58056         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
58057         Don't use K&R prototypes.  Check the sprintf return values.
58058         Re-define EAFNOSUPPORT if not present.  Indent.
58059
58060         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
58061         suggested by Bruno Haible <bruno@clisp.org>.
58062
58063         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
58064
58065         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58066
58067         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58068         libgcrypt).
58069
58070         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58071
58072         * lib/md2.h, lib/md2.c: New files.
58073
58074 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58075
58076         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58077         errno alone.  Problem reported by Frederic Jolliton.
58078
58079 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58080
58081         * modules/verify (License): Change from GPL to LGPL.  This is a
58082         tiny module and there are apparently near-equivalents that are
58083         under the BSD license.
58084
58085 2005-10-24  Simon Josefsson  <jas@extundo.com>
58086
58087         * modules/sha1: Relicense to LGPL.
58088
58089 2005-10-24  Simon Josefsson  <jas@extundo.com>
58090
58091         * lib/md4.h: Shrink buffer size, now that we changed the type.
58092
58093 2005-10-23  Simon Josefsson  <jas@extundo.com>
58094
58095         * gnulib-tool (func_import): Fix --tests-base.
58096
58097 2005-10-22  Simon Josefsson  <jas@extundo.com>
58098
58099         * modules/arcfour (Depends-on): Need stdint.
58100
58101 2005-10-22  Simon Josefsson  <jas@extundo.com>
58102
58103         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58104         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58105
58106 2005-10-22  Simon Josefsson  <jas@extundo.com>
58107
58108         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58109         suggested by Bruno Haible <bruno@clisp.org>.
58110
58111 2005-10-22  Simon Josefsson  <jas@extundo.com>
58112
58113         * lib/crc.h: Include stddef.h, for size_t.
58114
58115 2005-10-22  Simon Josefsson  <jas@extundo.com>
58116
58117         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58118         arcfour_context struct (simplify test vector testing in GNU
58119         Shishi).
58120
58121 2005-10-21  Simon Josefsson  <jas@extundo.com>
58122
58123         * modules/des, modules/des-tests: New files.
58124
58125         * modules/gc-des, modules/gc-des-tests: New files.
58126
58127         * tests/test-des.c, tests/test-gc-des.c: New file.
58128
58129 2005-10-21  Simon Josefsson  <jas@extundo.com>
58130
58131         * modules/arctwo, modules/arctwo-tests: New files.
58132
58133         * tests/test-arctwo.c: New file.
58134
58135         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58136
58137         * tests/test-gc-arctwo.c: New file.
58138
58139 2005-10-21  Simon Josefsson  <jas@extundo.com>
58140
58141         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58142         Bruno Haible <bruno@clisp.org>.
58143
58144         * m4/gc-des.m4: New file.
58145
58146 2005-10-21  Simon Josefsson  <jas@extundo.com>
58147
58148         * m4/arctwo.m4: New file.
58149
58150         * m4/gc-arctwo.m4: New file.
58151
58152 2005-10-21  Simon Josefsson  <jas@extundo.com>
58153
58154         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58155         block.
58156
58157 2005-10-21  Simon Josefsson  <jas@extundo.com>
58158
58159         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58160         <bruno@clisp.org>.
58161
58162         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58163
58164         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58165         Bruno Haible <bruno@clisp.org>.
58166
58167         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58168         <bruno@clisp.org>.
58169
58170 2005-10-21  Simon Josefsson  <jas@extundo.com>
58171
58172         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58173
58174 2005-10-21  Simon Josefsson  <jas@extundo.com>
58175
58176         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58177
58178 2005-10-21  Simon Josefsson  <jas@extundo.com>
58179
58180         * lib/des.h, lib/des.c: New files.
58181
58182         * lib/gc-gnulib.c: Support DES.c
58183
58184 2005-10-21  Simon Josefsson  <jas@extundo.com>
58185
58186         * lib/arctwo.h, lib/arctwo.c: New files.
58187
58188         * lib/gc-gnulib.c: Support ARCTWO.
58189
58190 2005-10-21  Simon Josefsson  <jas@extundo.com>
58191
58192         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58193         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58194
58195 2005-10-21  Simon Josefsson  <jas@extundo.com>
58196
58197         * gnulib-tool (func_import, func_create_testdir): Define automake
58198         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58199         Makefile.am snippet),
58200         suggested by Bruno Haible <bruno@clisp.org>.
58201
58202         * modules/gc (Makefile.am): Use it.
58203
58204 2005-10-21  Bruno Haible  <bruno@clisp.org>
58205
58206         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58207         patch.
58208
58209 2005-10-19  Simon Josefsson  <jas@extundo.com>
58210
58211         * tests/test-gc-rijndael.c: New file.
58212
58213         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58214
58215 2005-10-19  Simon Josefsson  <jas@extundo.com>
58216
58217         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58218         interface too.
58219
58220 2005-10-19  Simon Josefsson  <jas@extundo.com>
58221
58222         * tests/test-gc-arcfour.c: New file.
58223
58224         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58225
58226 2005-10-19  Simon Josefsson  <jas@extundo.com>
58227
58228         * modules/gc-md4, modules/gc-md4-tests: New file.
58229
58230         * tests/test-gc-md4.c: New file.
58231
58232 2005-10-19  Simon Josefsson  <jas@extundo.com>
58233
58234         * m4/gc-md4.m4: New file.
58235
58236 2005-10-19  Simon Josefsson  <jas@extundo.com>
58237
58238         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58239         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58240         <kasal@ucw.cz>.
58241
58242 2005-10-19  Simon Josefsson  <jas@extundo.com>
58243
58244         * m4/gc-arcfour.m4: New file.
58245
58246         * m4/gc-rijndael.m4: New file.
58247
58248 2005-10-19  Simon Josefsson  <jas@extundo.com>
58249
58250         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58251
58252 2005-10-19  Simon Josefsson  <jas@extundo.com>
58253
58254         * lib/gc-gnulib.c: Support ARCFOUR.
58255
58256 2005-10-19  Simon Josefsson  <jas@extundo.com>
58257
58258         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58259         support.
58260
58261         * lib/gc.h: Add ECB enum type.
58262
58263         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58264
58265 2005-10-18  Simon Josefsson  <jas@extundo.com>
58266
58267         * tests/test-md5.c: New file.
58268
58269         * modules/md5-tests: New file.
58270
58271 2005-10-18  Simon Josefsson  <jas@extundo.com>
58272
58273         * tests/test-md4.c: New file.
58274
58275         * modules/md4, modules/md4-tests: New files.
58276
58277 2005-10-18  Simon Josefsson  <jas@extundo.com>
58278
58279         * m4/md4.m4: New file.
58280
58281 2005-10-18  Simon Josefsson  <jas@extundo.com>
58282
58283         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58284
58285 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58286
58287         * gnulib-tool (func_create_testdir): Omit the second check whether
58288         BUILT_SOURCES in nonempty.
58289
58290 2005-10-17  Simon Josefsson  <jas@extundo.com>
58291
58292         * tests/test-rijndael.c: New file.
58293
58294 2005-10-17  Simon Josefsson  <jas@extundo.com>
58295
58296         * modules/sha1: Depend on stdint instead of md5.
58297
58298         * modules/md5: Depend on stdint, remove uint32_t.
58299
58300 2005-10-17  Simon Josefsson  <jas@extundo.com>
58301
58302         * modules/gc-sha1-tests: New file.
58303
58304         * tests/test-gc-sha1.c: New file.
58305
58306 2005-10-17  Simon Josefsson  <jas@extundo.com>
58307
58308         * m4/md5.m4: Remove call to uint32_t.m4.
58309
58310 2005-10-17  Simon Josefsson  <jas@extundo.com>
58311
58312         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58313
58314         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58315         md5.h.
58316
58317         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58318
58319         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58320
58321 2005-10-17  Simon Josefsson  <jas@extundo.com>
58322
58323         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58324
58325 2005-10-17  Simon Josefsson  <jas@extundo.com>
58326
58327         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58328
58329 2005-10-17  Simon Josefsson  <jas@extundo.com>
58330
58331         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58332
58333         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58334
58335 2005-10-17  Bruno Haible  <bruno@clisp.org>
58336
58337         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58338         that it can also be used in a test.
58339
58340 2005-10-16  Bruno Haible  <bruno@clisp.org>
58341
58342         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58343         TESTS_ENVIRONMENT, so that individual tests can augment it.
58344
58345         * gnulib-tool (func_create_testdir): Use an intermediate target for
58346         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58347         macros, like $(ALLOCA_H), which cannot be passed through the command
58348         line.
58349
58350 2005-10-15  Simon Josefsson  <jas@extundo.com>
58351
58352         * modules/rijndael-tests: New file.
58353
58354         * modules/rijndael: New file.
58355
58356 2005-10-15  Simon Josefsson  <jas@extundo.com>
58357
58358         * m4/rijndael.m4: New file.
58359
58360 2005-10-15  Simon Josefsson  <jas@extundo.com>
58361
58362         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58363
58364         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58365
58366 2005-10-14  Simon Josefsson  <jas@extundo.com>
58367
58368         * tests/test-arcfour.c: New file.
58369
58370         * modules/arcfour, modules/arcfour-tests: New files.
58371
58372 2005-10-14  Simon Josefsson  <jas@extundo.com>
58373
58374         * m4/arcfour.m4: New file.
58375
58376 2005-10-14  Simon Josefsson  <jas@extundo.com>
58377
58378         * lib/arcfour.h, lib/arcfour.c: New files.
58379
58380 2005-10-14  Roland McGrath  <roland@redhat.com>
58381
58382         Import from libc.  [BZ #1331]
58383         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
58384         macro argument.
58385         Reported by Matej Vela <vela@debian.org>.
58386
58387 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
58390         include <wchar.h>; no longer needed.
58391
58392 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58393
58394         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
58395
58396 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
58397         and  Ulrich Drepper  <drepper@redhat.com>
58398
58399         Import from libc.
58400         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
58401         instead of inline stream orientation test and two separate
58402         function calls.  Pay no attention to USE_IN_LIBIO.
58403
58404 2005-10-13  Simon Josefsson  <jas@extundo.com>
58405
58406         * modules/gc-hmac-md5-tests: New file.
58407
58408         * tests/test-gc-hmac-sha1.c: New file.
58409
58410         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
58411
58412         * modules/gc-hmac-md5-tests: New file.
58413
58414         * tests/test-gc-md5.c: New file.
58415
58416         * modules/gc-md5-tests: New file.
58417
58418 2005-10-13  Simon Josefsson  <jas@extundo.com>
58419
58420         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
58421         Move memory allocation outside of loop.
58422
58423 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
58424
58425         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
58426         intermediate directory is in a read-only file system.  Problem
58427         reported by Eric Blake.
58428
58429 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
58430
58431         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
58432
58433 2005-10-12  Simon Josefsson  <jas@extundo.com>
58434
58435         * tests/test-hmac-sha1.c: New file.
58436
58437         * modules/hmac-sha1-tests: New file.
58438
58439         * modules/hmac-sha1: New file.
58440
58441 2005-10-12  Simon Josefsson  <jas@extundo.com>
58442
58443         * modules/gc-sha1: New file.
58444
58445 2005-10-12  Simon Josefsson  <jas@extundo.com>
58446
58447         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
58448
58449         * tests/test-gc-pbkdf2-sha1.c: New file.
58450
58451 2005-10-12  Simon Josefsson  <jas@extundo.com>
58452
58453         * modules/gc-md5, modules/gc-hmac-md5: New files.
58454
58455         * modules/gc (Files): Remove md5, memxor and hmac files.
58456
58457 2005-10-12  Simon Josefsson  <jas@extundo.com>
58458
58459         * m4/gc-pbkdf2-sha1.m4: New file.
58460
58461         * m4/gc-hmac-sha1.m4: New file.
58462
58463         * m4/gc-sha1: New file.
58464
58465         * m4/hmac-sha1.m4: New file.
58466
58467 2005-10-12  Simon Josefsson  <jas@extundo.com>
58468
58469         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
58470
58471         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
58472
58473 2005-10-12  Simon Josefsson  <jas@extundo.com>
58474
58475         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
58476         suggested by Bruno Haible <bruno@clisp.org>.
58477
58478 2005-10-12  Simon Josefsson  <jas@extundo.com>
58479
58480         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
58481
58482 2005-10-12  Simon Josefsson  <jas@extundo.com>
58483
58484         * lib/gc-pbkdf2-sha1.c: New file.
58485
58486         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
58487
58488 2005-10-12  Simon Josefsson  <jas@extundo.com>
58489
58490         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
58491
58492         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
58493
58494 2005-10-12  Simon Josefsson  <jas@extundo.com>
58495
58496         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
58497         GC_USE_HMAC_MD5, respectively.
58498
58499         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
58500         (gc_md5): Fix typo.
58501
58502         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
58503
58504         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
58505
58506         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
58507
58508 2005-10-12  Bruno Haible  <bruno@clisp.org>
58509
58510         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
58511         Reported by Stepan Kasal <kasal@ucw.cz>.
58512
58513 2005-10-11  Simon Josefsson  <jas@extundo.com>
58514
58515         * tests/test-crc.c: New file.
58516
58517         * modules/crc, modules/crc-tests: New files.
58518
58519 2005-10-11  Simon Josefsson  <jas@extundo.com>
58520
58521         * m4/crc.m4: New file.
58522
58523 2005-10-11  Simon Josefsson  <jas@extundo.com>
58524
58525         * lib/gc.h: Add gc_hash and gc_hash_buffer.
58526
58527         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
58528
58529         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
58530
58531 2005-10-11  Simon Josefsson  <jas@extundo.com>
58532
58533         * lib/crc.h, lib/crc.c: New files.
58534
58535         * lib/gc.h (gc_hash_buffer): Add doc.
58536
58537 2005-10-11  Bruno Haible  <bruno@clisp.org>
58538
58539         * modules/c-strcasestr: New file.
58540         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
58541
58542 2005-10-11  Bruno Haible  <bruno@clisp.org>
58543
58544         * modules/c-strcase: New file.
58545         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
58546
58547 2005-10-11  Bruno Haible  <bruno@clisp.org>
58548
58549         * lib/strcasecmp.c: Include limits.h.
58550         (strcasecmp): Avoid integer overflow on exotic platforms.
58551         * lib/strncasecmp.c: Include limits.h.
58552         (strncasecmp): Avoid integer overflow on exotic platforms.
58553         Reported by Paul Eggert.
58554
58555 2005-10-11  Bruno Haible  <bruno@clisp.org>
58556
58557         * lib/c-strcasestr.h: New file, from GNU gettext.
58558         * lib/c-strcasestr.c: New file, from GNU gettext.
58559
58560 2005-10-11  Bruno Haible  <bruno@clisp.org>
58561
58562         * lib/c-strcase.h: New file, from GNU gettext.
58563         * lib/c-strcasecmp.c: New file, from GNU gettext.
58564         * lib/c-strncasecmp.c: New file, from GNU gettext.
58565
58566 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58567
58568         * modules/mempcpy (License): GPL -> LGPL.
58569         * modules/strchrnul (License): Likewise.
58570         * modules/sysexits (License): Likewise.
58571
58572 2005-10-08  Simon Josefsson  <jas@extundo.com>
58573
58574         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
58575
58576 2005-10-07  Simon Josefsson  <jas@extundo.com>
58577
58578         * m4/memxor.m4: Remove gl_C_RESTRICT call.
58579
58580 2005-10-06  Simon Josefsson  <jas@extundo.com>
58581
58582         * tests/test-hmac-md5.c: New file.
58583
58584         * modules/hmac-md5-tests: New file.
58585
58586         * modules/hmac-md5: New file.
58587
58588 2005-10-06  Simon Josefsson  <jas@extundo.com>
58589
58590         * m4/hmac-md5.m4: New file.
58591
58592         * m4/memxor.m4: Require gl_C_RESTRICT.
58593
58594 2005-10-06  Simon Josefsson  <jas@extundo.com>
58595
58596         * lib/memxor.c (memxor): Avoid casts and warnings.
58597
58598 2005-10-06  Simon Josefsson  <jas@extundo.com>
58599
58600         * lib/hmac-md5.c: New file.
58601
58602         * lib/hmac.h: New file.
58603
58604 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58605
58606         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
58607         promotes to int, not unsigned int, to catch the AIX 5.3
58608         compiler bug.
58609
58610 2005-10-05  Simon Josefsson  <jas@extundo.com>
58611
58612         * modules/memxor: New file.
58613
58614         * modules/iconv (Files): Move config.rpath to havelib, it is used
58615         there.
58616
58617         * modules/havelib (Files): Add config.rpath.
58618
58619 2005-10-05  Simon Josefsson  <jas@extundo.com>
58620
58621         * m4/memxor.m4: New file.
58622
58623 2005-10-05  Simon Josefsson  <jas@extundo.com>
58624
58625         * lib/memxor.c (memxor): Fix compiler error.
58626
58627         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
58628         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
58629
58630         * lib/memxor.h, lib/memxor.c: New files.
58631
58632         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
58633         we assume all systems have it, suggested by Jim Meyering
58634         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
58635         any systems lack sys/socket.h; mingw32 is known to lack it, but we
58636         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
58637         same reasons.
58638
58639 2005-10-05  Simon Josefsson  <jas@extundo.com>
58640
58641         * config/srclist.txt: Add glibc bug 1423 for md5.h.
58642
58643 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58644
58645         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
58646         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
58647         needed, since the source code now assumes these .h files.
58648
58649 2005-10-05  Derek Price  <derek@ximbiot.com>
58650
58651         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
58652
58653 2005-10-05  Bruno Haible  <bruno@clisp.org>
58654
58655         * modules/stdint (License): Change to LGPL.
58656
58657 2005-10-04  Simon Josefsson  <jas@extundo.com>
58658
58659         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
58660         D. Baushke" <mdb@gnu.org>.
58661
58662 2005-10-04  Bruno Haible  <bruno@clisp.org>
58663
58664         * lib/verify.h (verify_true): Provide alternative definition for C++.
58665
58666 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
58667
58668         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
58669         (SSIZE_MAX): New macro, if not already defined.
58670         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
58671         than 2 GiB.
58672
58673 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58674
58675         Sync from coreutils.
58676         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
58677         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
58678         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
58679         ULLONG_MAX doesn't work with 2.7.2.1.
58680
58681 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58682
58683         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
58684         From Ben Pfaff.
58685
58686         * modules/exclude (Depends-on): Depend on verify.
58687         * modules/strtoimax (Depends-on): Likewise.
58688         * modules/utimecmp (Depends-on): Likewise.
58689
58690 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58691
58692         * lib/exclude.c: Include verify.h.
58693         (verify): Remove.  All callers changed to use verify.h's version.
58694         * lib/strtoimax.c: Likewise.
58695         * lib/utimecmp.c: Likewis.e
58696
58697         Sync from coreutils.
58698         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
58699         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
58700         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
58701         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
58702         bother returning ENOSYS if settimeofday or stime fails; just let
58703         them return whatever errno they want to return.
58704         * lib/utimens.c: Include unistd.h, for dup2.
58705         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
58706         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
58707
58708 2005-10-02  Jim Meyering  <jim@meyering.net>
58709
58710         Sync from coreutils.
58711         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
58712         from glibc-2.2.5 that fails for read-only files.
58713
58714 2005-10-02  Jim Meyering  <jim@meyering.net>
58715
58716         Sync from coreutils.
58717         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
58718         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
58719         `#if HAVE_CONFIG_H'.
58720         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
58721         Remove AT_FDCWD test.
58722         Do not consume the fd unless successful.
58723         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
58724         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
58725         block, so that we don't even try to compile it if settimeofday is
58726         available.  This works around a compilation failure on OSF1 V5.1,
58727         due to stime requiring a `long int*' while tv_sec is `int'.
58728
58729 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
58730
58731         Sync from coreutils.
58732         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
58733         against `yes', rather than just testing for nonempty.
58734
58735 2005-10-01  Simon Josefsson  <jas@extundo.com>
58736
58737         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
58738         and Darwin.
58739
58740         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
58741         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
58742         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
58743         freeaddrinfo and gai_strerror are declared by the POSIX headers.
58744         Check if struct addrinfo is declared.
58745
58746 2005-10-01  Simon Josefsson  <jas@extundo.com>
58747
58748         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
58749         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
58750         AI_* and EAI_* definitions.  Protect function declarations.
58751
58752 2005-10-01  Jim Meyering  <jim@meyering.net>
58753
58754         Sync from coreutils.
58755
58756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
58757         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
58758         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
58759         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58760         in the inet and nsl libraries.  Required on Solaris 5.7.
58761
58762 2005-10-01  Jim Meyering  <jim@meyering.net>
58763
58764         Sync from coreutils.
58765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58766         in the inet and nsl libraries.  Required on Solaris 5.7.
58767
58768 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
58769
58770         * lib/getdelim.c (getdelim): Remove unused variables.
58771
58772 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58773
58774         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
58775         so that the code works even with ancient cpp.  Portability problem
58776         with GCC 2.7.2.1 reported by Thomas M.Ott.
58777
58778 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58779
58780         * modules/regex (Depends-on): Add strcase.
58781
58782         * modules/gethostname (Licence): Change from GPL to LGPL, since
58783         gethostname.c is a trivial implementation of a standard library
58784         function.
58785         * modules/poll (License): Change from GPL to LGPL, since it's
58786         derived from LGPL code.
58787
58788 2005-09-27  Jim Meyering  <jim@meyering.net>
58789
58790         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
58791         HAVE_CONFIG_H.
58792
58793         * lib/intprops.h (signed_type_or_expr__): Define.
58794         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
58795         for unsigned types.
58796
58797 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58798
58799         * lib/verify.h (verify_expr): Remove, replacing with:
58800         (verify_true): New macro that returns true instead of void.
58801         (verify_type__): Remove.
58802         (verify): Use verify_true rather than verify_type__.
58803
58804 2005-09-26  Bruno Haible  <bruno@clisp.org>
58805
58806         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
58807         is necessary.
58808         (lib_SOURCES): Remove mbchar.c.
58809         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
58810         (Files): Add m4/mbrtowc.m4.
58811         * modules/mbiter: Likewise.
58812         * modules/mbuiter: Likewise.
58813
58814 2005-09-26  Bruno Haible  <bruno@clisp.org>
58815
58816         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
58817         compile mbchar.c if they are not both present.
58818         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
58819         * m4/mbiter.m4 (gl_MBITER): Likewise.
58820         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
58821         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
58822         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
58823
58824 2005-09-25  Jim Meyering  <jim@meyering.net>
58825
58826         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
58827         also uses socklen_t.
58828
58829 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
58830
58831         * lib/utimens.c (ENOSYS): Define if not already defined.
58832         (futimens): Support having a null PATH if the file descriptor
58833         is nonnegative.
58834
58835         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
58836         Remove.
58837         (__attribute): Define to empty unless GCC 3.1 or later.
58838         This works around a core dump on OpenBSD 3.4, which has GCC
58839         2.95.3, which dumps core when given __attribute__(()).  It also
58840         simplifies other tests, since we really don't want to bother with
58841         worrying about which ancient version of GCC supported what.
58842         Original problem reported by Yoann Vandoorselaere, with part of
58843         the fix suggested by Derek Price.
58844
58845 2005-09-24  Jim Meyering  <jim@meyering.net>
58846
58847         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
58848         so we can once again use a positive bitfield width of 1 -- now we
58849         don't have to explain why we were using a bitfield width of 2.
58850
58851 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58852
58853         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
58854         and similarly for the other external symbols.  Problem reported
58855         by James Gallager.
58856
58857         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
58858         bug reported by Jim Meyering.
58859
58860         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
58861         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
58862         not needed, since socklen is a prerequisite module.
58863
58864 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58865
58866         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
58867         Problem reported by Eric Blake.
58868         (getaddrinfo): Initialize se so that it's not garbage.
58869         Redo internal storage allocation so that it doesn't make unportable
58870         assumptions about alignment.
58871         Fix a memory leak.
58872
58873         * lib/utimens.c (futimens): Use futimesat if available.
58874         Prefer it to futimes since it doesn't have the futimes bug.
58875
58876         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
58877         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
58878         Instead, declare a function that returns a pointer to an array,
58879         and use verify_type__ to declare the size of the array.
58880         Problem and germ of a solution reported by Bruno Haible.
58881         (verify_type__): Use 2, not 1, for bitfield size, to avoid
58882         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
58883
58884 2005-09-23  Jim Meyering  <jim@meyering.net>
58885
58886         Sync from coreutils.
58887         Correct build failure (socklen_t not defined) on at least
58888         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
58889         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
58890
58891 2005-09-23  Jim Meyering  <jim@meyering.net>
58892
58893         * modules/getaddrinfo (Depends-on): Add socklen.
58894
58895 2005-09-23  Bruno Haible  <bruno@clisp.org>
58896
58897         * tests/test-verify.c: New file.
58898
58899 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58900
58901         Sync from coreutils.
58902
58903         * modules/argmatch (Depends-on): Add verify.
58904         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
58905         unistd-safer.
58906         * modules/save-cwd (Depends-on): Likewise.
58907
58908         * modules/openat (Files): Add lib/openat-die.c.
58909         (Depends-on): Remove error, exitfail.
58910         Add dirname.
58911
58912         * modules/verify: New file.
58913         * MODULES.html.sh (Diagnostics <assert.h>): New section,
58914         with "verify" module.
58915
58916 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58917
58918         Sync from coreutils.
58919
58920         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
58921         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
58922         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
58923         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
58924         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
58925         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
58926         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
58927         Don't bother checking for string.h, stdlib.h, unistd.h.
58928         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
58929         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
58930         module's job.
58931         * m4/jm-macros.m4 (gl_MACROS): Likewise.
58932         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
58933
58934         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
58935         (gl_GETDATE): Use it.
58936
58937         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
58938
58939 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58940
58941         Sync from coreutils.
58942
58943         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
58944         stat-time.h.
58945         * lib/argmatch.h: Include verify.h
58946         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
58947         (ARGMATCH_ASSERT): Remove; unused.
58948         * lib/canonicalize.c: Assume STDC_HEADERS.
58949         * lib/exclude.c: Include "strcase.h".
58950         * lib/regex_internal.h [!defined _LIBC]: Likewise.
58951         * lib/getusershell.c: Include stdio--.h rather than stdio.h
58952         and stdio-safer.h.
58953         (getusershell): Call fopen, not fopen_safer.
58954         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
58955         Do not include unistd-safer.h.
58956         (save_cwd): Don't call fd_safer; no longer needed
58957         now that we include fcntl--.h.
58958
58959         * lib/getdate.y (relative_time): New type.
58960         (RELATIVE_TIME_0): New constant.
58961         (parser_control): Use relative_time instead of doing it ourselves.
58962         (%union): Add new relative_time rel member.
58963         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
58964         Now typeless.
58965         (relunit, relunit_snumber): Now of type rel.
58966         (zone, rel, relunit, get_date): Adjust to above changes.
58967
58968         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
58969         Do not include unistd-safer.h.
58970         (getloadavg): Don't call fd_safer; no longer needed
58971         now that we include fcntl--.h.
58972
58973         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
58974         (make_dir_parents): Treat ENOSYS like EEXIST.
58975
58976         Improve quality of diagnostics on restore_cwd failure.
58977         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
58978         (make_dir_parents): Last arg is now int * (for errno), not bool *.
58979         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
58980         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
58981         each time through the loop.  Do not diagnose restore_cwd failure;
58982         that is the caller's job (and perhaps the caller does not care).
58983
58984         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
58985         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
58986         If the file already exists but is not a directory, don't bother
58987         to try to make its parents.
58988         Close potential file descriptor leak if we can't chdir("/") (!).
58989         Don't always return true if chdir($PWD) fails; return true only
58990         if the requested action was done successfully (except for the
58991         chdir($PWD)).
58992         Don't log final directory unless we actually made it.
58993         Refactor to avoid duplicate code to fix up permissions.
58994         Don't attempt to fix up parent permissions if chdir($PWD) fails.
58995
58996         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
58997         to make it a bit faster and (I hope) clearer.
58998         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
58999         Fix bug in formats like %2N.
59000
59001         * lib/verify.h: New file.
59002
59003 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59004
59005         Sync from coreutils.
59006         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59007
59008 2005-09-22  Jim Meyering  <jim@meyering.net>
59009
59010         Sync from coreutils.
59011
59012         * m4/lstat.m4 (gl_FUNC_LSTAT):
59013         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59014         Remove obsolete comment.
59015         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59016         * m4/xstrtod.m4: Likewise.
59017
59018         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59019
59020 2005-09-22  Jim Meyering  <jim@meyering.net>
59021
59022         Sync from coreutils.
59023
59024         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59025
59026         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59027         the .tm_year member, since otherwise gcc-4.0 would now warn about
59028         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59029
59030         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59031         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59032
59033         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59034         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59035         when run in a time zone for which daylight savings time is in effect
59036         for the starting date.
59037
59038         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59039         stop us from restricting permissions of just-created absolute-named
59040         directories.
59041         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59042         to restore initial working directory.
59043         * lib/mkdir-p.c (make_dir_parents): New parameter:
59044         different_working_dir, to tell caller if/when we change the working
59045         directory and are unable to return to the initial one.
59046         * lib/mkdir-p.h (make_dir_parents): Update prototype.
59047         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
59048         `return false'.  This fixes a bug introduced on 2004-07-30.
59049
59050         * lib/openat.c (fdopendir): Be sure to close the supplied
59051         file descriptor before returning.  This makes our replacement
59052         implementation a little closer to Solaris's, where fdopendir
59053         ties the file descriptor to the returned DIR* pointer.
59054         * lib/openat.c (unlinkat): New function.
59055         * lib/openat.h (unlinkat): Add prototype.
59056         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
59057         (openat_restore_fail): Rename from openat_restore_die.
59058         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
59059
59060         Provide an alternative to exiting immediately upon save_cwd or
59061         restore_cwd failure.  Now, an application can arrange e.g.,
59062         to perform a longjump in that case.
59063         * lib/openat.c: Include dirname.h.
59064         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59065         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59066         and openat_restore_die rather than calling error directly.
59067         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59068
59069         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59070         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59071         define.
59072
59073         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59074         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59075                             int utc, int nanoseconds);
59076         Background:
59077         date should not have to allocate a megabyte of virtual memory to
59078         handle a format argument like +%1048575T.  When implemented with
59079         strftime, it must allocate such a buffer, use strftime to fill it
59080         in, print it, then free it.
59081         With fprintftime, it simply prints everything and exits.
59082         With no need for memory allocation, that's one fewer way to fail.
59083         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59084         optional field width, not before, so we accept %9:z, not %:9z.
59085         (my_strftime): Be sure to use L_('x') for literals.
59086
59087         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59088         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59089         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59090         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59091         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59092         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59093         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59094         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59095         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59096         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59097         * lib/xgethostname.c, lib/xreadlink.c:
59098         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59099
59100         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59101         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59102         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59103         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59104         and don't include <sys/file.h>).
59105
59106 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59107
59108         Sync from coreutils.
59109
59110         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59111         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59112         [!LDAV_DONE]: Avoid unused variable warning.
59113
59114 2005-09-21  Bruno Haible  <bruno@clisp.org>
59115
59116         * lib/unicodeio.h (unicode_to_mb): New declaration.
59117
59118 2005-09-20  Derek Price  <derek@ximbiot.com>
59119
59120         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59121         getaddrinfo.h.
59122
59123 2005-09-20  Bruno Haible  <bruno@clisp.org>
59124
59125         * gnulib-tool: Remove trailing slashes from the values specified for
59126         --source-base, --m4-base, --tests-base, --aux-dir.
59127         Suggested by Simon Josefsson <jas@extundo.com>.
59128
59129 2005-09-20  Bruno Haible  <bruno@clisp.org>
59130
59131         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59132         func_modules_to_filelist, func_import, func_create_testdir): Make all
59133         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59134         change when gnulib-tool is invoked in a different locale.
59135
59136 2005-09-19  Simon Josefsson  <jas@extundo.com>
59137
59138         * m4/socklen.m4: Fix typo.
59139
59140 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59141
59142         Use a consistent style for including <config.h>.
59143         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59144         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59145         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59146         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59147         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59148         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59149         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59150         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59151         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59152         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59153         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59154         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59155         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59156         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59157         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59158         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59159         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59160         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59161         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59162         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59163         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59164         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59165         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59166         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59167         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59168         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59169         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59170         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59171         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59172         lib/xstrtoumax.c, lib/yesno.c:
59173         Standardize inclusion of config.h.
59174         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59175         lib/inttostr.h:  Removed inclusion of config.h from header files.
59176         * lib/inttostr.c:  Adjusted in-tree users.
59177         * lib/timespec.h: Remove superfluous warning to include config.h.
59178         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59179         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59180         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59181         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59182         config.h with HAVE_CONFIG_H.
59183
59184 2005-09-19  Jim Meyering  <jim@meyering.net>
59185
59186         * modules/pathmax (License): Change to LGPL.
59187
59188 2005-09-19  Derek Price  <derek@ximbiot.com>
59189
59190         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59191
59192 2005-09-19  Bruno Haible  <bruno@clisp.org>
59193
59194         * gnulib-tool (import): Provide default for --tests-base.
59195
59196 2005-09-19  Bruno Haible  <bruno@clisp.org>
59197
59198         * doc/quote.texi: New file, extracted from gnulib.texi.
59199         * doc/ctime.texi: New file, extracted from gnulib.texi.
59200         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59201         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59202         * doc/gnulib.texi: Include them.
59203
59204 2005-09-18  Bruno Haible  <bruno@clisp.org>
59205
59206         Portability fix.
59207         * gnulib-tool (func_readlink): New function.
59208         (func_ln_if_changed): Use it.
59209
59210 2005-09-18  Bruno Haible  <bruno@clisp.org>
59211
59212         * gnulib-tool: Support --with-tests also with --import.
59213         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59214         (func_import): Use variables $testsbase and $inctests. Emit a
59215         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59216         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59217         SUBDIRS += $testsdir.
59218         (func_create_testdir): Update.
59219
59220 2005-09-18  Bruno Haible  <bruno@clisp.org>
59221
59222         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59223         instead of $dry_run.
59224         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59225         (func_ln_if_changed): Don't handle dry-run here.
59226         (func_import): In dry-run mode, detect more precisely which actions
59227         would be performed, and don't use "...ing" verbs.
59228
59229 2005-09-18  Bruno Haible  <bruno@clisp.org>
59230
59231         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59232         (func_import): Use join on two temporary files instead of three nested
59233         loops, in order to determine which files are new or old.
59234
59235 2005-09-18  Bruno Haible  <bruno@clisp.org>
59236
59237         * gnulib-tool (func_import): Comment out code that spits out the
59238         new files with --dry-run.
59239
59240 2005-09-18  Bruno Haible  <bruno@clisp.org>
59241
59242         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59243
59244 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59245
59246         * lib/stat-time.h: New file.
59247         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59248         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59249         in a different way.
59250         (timespec_cmp): New function.
59251         * lib/utimecmp.c: Include stat-time.h.
59252         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59253         members exist, not on the obsolescent ST_MTIM_NSEC.
59254         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59255
59256 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59257
59258         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59259
59260 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59261
59262         * MODULES.html.sh (File system functions): Add stat-time.
59263         * modules/stat-time: New file.
59264         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59265         is now done in a different way, by the stat-time module.
59266         * modules/utimecmp (Depends-on): Add stat-time.
59267
59268 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59269
59270         * m4/st_mtim.m4: Remove.  Superseded by...
59271         * m4/stat-time.m4: New file.
59272         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59273         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59274
59275 2005-09-15  Derek Price  <derek@ximbiot.com>
59276
59277         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59278
59279 2005-09-15  Derek Price  <derek@ximbiot.com>
59280
59281         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59282         * lib/regex_internal.c: Ditto, using this...
59283         (__GNUC_PREREQ): ...new macro.
59284         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59285         using...
59286         (__GNUC_PREREQ): ...this new macro.
59287
59288         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59289
59290 2005-09-15  Derek Price  <derek@ximbiot.com>
59291             Paul Eggert  <eggert@cs.ucla.edu>
59292
59293         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59294         changes, consolidating in...
59295         * lib/regex_internal.h: ...this file.
59296
59297 2005-09-13  Jim Meyering  <jim@meyering.net>
59298
59299         * lib/canon-host.c: Filter through gnu indent and reword comments
59300         slightly.
59301         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59302
59303 2005-09-13  Derek Price  <derek@ximbiot.com>
59304
59305         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59306         failure.
59307         Reported by Jim Meyering  <jim@meyering.net>.
59308
59309 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59310
59311         * lib/base64.c: Typo.
59312         (base64_encode): Put b64str in initialized data section.
59313
59314 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59315
59316         Merge glibc and coreutils changes into gnulib, plus a few
59317         extra fixes.
59318         * lib/md5.c: Use #error rather than a string.
59319         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59320         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59321         (__attribute__): Define to empty for non recent-GCC.
59322         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59323         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59324         Renamed from their non-__ counterparts, with new macros replacing
59325         them if not _LIBC.  Add __THROW attribute.
59326         (rol): Remove.
59327         (struct md5_ctx): Align buffer if using GCC.
59328         * lib/sha1.h (struct sha1_ctx): Likewise.
59329         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59330         The old name was backwards.
59331         (NOTSWAP): Remove; not used.
59332         (rol): New macro, moved here from md5.h.
59333         (sha1_process_block): Remove a FIXME that doesn't make sense.
59334
59335 2005-09-12  Derek Price  <derek@ximbiot.com>
59336
59337         Return usable errors from canon-host.
59338         * lib/canon-host.h: New file.
59339         * lib/canon-host.c (canon_host): Wrap...
59340         (canon_host_r): ...this new function, which now relies exclusively on
59341         getaddrinfo.
59342         (ch_strerror): New function.
59343         (last_cherror): New global.
59344         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59345         interface.
59346         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59347         void *.
59348         (freeaddrinfo): Free ai->ai_canonname when set.
59349
59350 2005-09-12  Derek Price  <derek@ximbiot.com>
59351
59352         Make canon-host require getaddrinfo.
59353         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59354         AC_LIBSOURCE canon-host.h.  Call...
59355         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59356         gl_GETADDRINFO.
59357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59358
59359 2005-09-12  Derek Price  <derek@ximbiot.com>
59360
59361         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59362         LGPL.
59363         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59364
59365 2005-09-12  Derek Price  <derek@ximbiot.com>
59366
59367         * lib/gai_strerror.c: Include config.h when available.  Include
59368         getaddrinfo.h before other headers to test interface.
59369         Reported by Larry Jones <lawrence.jones@ugs.com>.
59370
59371 2005-09-12  Derek Price  <derek@ximbiot.com>
59372             Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         * modules/glob (Files): Add glob-libc.h.
59375
59376 2005-09-12  Derek Price  <derek@ximbiot.com>
59377             Paul Eggert  <eggert@cs.ucla.edu>
59378
59379         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59380         glob_.h, glob-libc.h.
59381         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
59382
59383 2005-09-12  Derek Price  <derek@ximbiot.com>
59384             Paul Eggert  <eggert@cs.ucla.edu>
59385
59386         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
59387         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
59388         protecting things that should be done only in gnulib contexts.
59389         * lib/glob_.h: New file, containing only the glob things needed for
59390         gnulib.
59391         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
59392         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
59393         (glob, globfree, glob_pattern_p): Now defined simply in terms of
59394         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
59395         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
59396         and to respect the namespace rules better.
59397
59398 2005-09-08  Simon Josefsson  <jas@extundo.com>
59399
59400         * modules/socklen: New file.
59401
59402 2005-09-08  Simon Josefsson  <jas@extundo.com>
59403
59404         * m4/socklen.m4: New file.
59405
59406 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59407
59408         * modules/utimens (Files): Add m4/utimbuf.m4, since
59409         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
59410         Reported by Sergey Poznyakoff.
59411
59412 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59413
59414         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
59415         definitions, since that's the preferred style in glibc.
59416         Fix a minor spacing issue, and update copyright notice to match
59417         glibc's.
59418
59419 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59420
59421         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
59422
59423 2005-09-06  Simon Josefsson  <jas@extundo.com>
59424
59425         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
59426         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
59427
59428 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59429
59430         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
59431         warning.
59432
59433 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59434
59435         * config/srclist.txt: Add glibc bug 1302.
59436
59437 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
59438
59439         Change bitset word type from unsigned int to unsigned long int,
59440         as this has better performance on typical 64-bit hosts.
59441         Port bitset code to hosts with unusual word sizes.
59442         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
59443         (build_collating_symbol):
59444         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
59445         argument is a bitset.  This is merely a style issue, but it makes
59446         it clearer that an entire array is expected.
59447         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
59448         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
59449         Port to the case where bitset_word is not the same as unsigned int.
59450         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59451         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59452         Likewise.
59453         * lib/regexec.c (check_dst_limits_calc_pos_1,
59454         check_subexp_matching_top):
59455         (build_trtable, group_nodes_into_DFAstates):
59456         Likewise.
59457         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
59458         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
59459         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
59460         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
59461         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
59462         * lib/regcomp.c (optimize_subexps, lower_subexp):
59463         Work even if bitset_word has holes in its bitwise representation.
59464         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
59465         * lib/regexec.c (check_dst_limits_calc_pos_1,
59466         check_subexp_matching_top):
59467         Likewise.
59468         * lib/regex_internal.c (re_string_reconstruct):
59469         Don't assume UCHAR_MAX == 255.
59470         * lib/regex_internal.h (bitset_set_all): Likewise.
59471         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
59472         All uses changed.
59473         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
59474         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
59475         All uses changed.
59476         (BITSET_WORD_MAX): New macro.
59477         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
59478         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
59479         (bitset_empty, bitset_copy):
59480         Prefer sizeof (bitset) to multiplying it out ourselves.
59481         (bitset_not_merge): Remove; unused.
59482         (bitset_contain): Return bool, not unsigned int with one bit on.
59483         All callers changed.
59484         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
59485         alignment than re_node_set; do this by defining a new internal
59486         type struct dests_alloc and using it to allocate memory.
59487
59488 2005-09-05  Bruno Haible  <bruno@clisp.org>
59489
59490         * gnulib-tool (func_import): Fix comparison in handling of symbolic
59491         links.
59492
59493 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
59494
59495         * modules/size_max (Makefile.am): Add size_max.h
59496
59497 2005-09-04  Derek Price  <derek@ximbiot.com>
59498
59499         * gnulib-tool (func_import): Fix reversed $symbolic logic.
59500
59501 2005-09-03  Simon Josefsson  <jas@extundo.com>
59502
59503         * gnulib-tool: Fix typo.
59504
59505 2005-09-03  Simon Josefsson  <jas@extundo.com>
59506
59507         * config/srclist.txt: Add glibc bug 1293.
59508
59509 2005-09-03  Derek Price  <derek@ximbiot.com>
59510
59511         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
59512         From Larry Jones <lawrence.jones@ugs.com>.
59513
59514 2005-09-02  Simon Josefsson  <jas@extundo.com>
59515
59516         * modules/socklen: New file.
59517
59518 2005-09-02  Simon Josefsson  <jas@extundo.com>
59519
59520         * modules/havelib: New module.
59521
59522         * modules/gettext, modules/iconv, modules/lock, modules/readline:
59523         Use havelib.
59524
59525 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59526
59527         Check for arithmetic overflow when calculating sizes, to prevent
59528         some buffer-overflow issues.  These patches are conservative, in the
59529         sense that when I couldn't determine whether an overflow was possible,
59530         I inserted a run-time check.
59531         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
59532         macros.
59533         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
59534         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
59535         (re_xnrealloc, re_x2nrealloc): New inline functions.
59536         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
59537         parse_bracket_exp):
59538         (build_equiv_class, build_charclass): Check for arithmetic overflow
59539         in size expression calculations.
59540         * lib/regex_internal.c (re_string_realloc_buffers):
59541         (build_wcs_upper_buffer, re_node_set_add_intersect):
59542         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
59543         (re_dfa_add_node, register_state): Likewise.
59544         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
59545         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
59546         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
59547         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
59548
59549 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59550
59551         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59552         m4/ulonglong.m4.  Problem reported by Martin Lambers.
59553
59554 2005-09-02  Bruno Haible  <bruno@clisp.org>
59555
59556         Support for lib vs. lib64 distinction on biarch platforms.
59557         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
59558         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
59559         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
59560
59561 2005-09-02  Bruno Haible  <bruno@clisp.org>
59562
59563         * gnulib-tool (import): In the other first-use case, provide defaults
59564         as well.
59565
59566 2005-09-02  Bruno Haible  <bruno@clisp.org>
59567
59568         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
59569         patches not yet found in the latest gettext release.
59570
59571 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59572
59573         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
59574         to avoid a collision with bits/local_lim.h in glibc.
59575         All uses changed.  Problem reported by Dmitry V. Levin in
59576         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
59577
59578         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
59579         bugs in int versus size_t comparisons.
59580         (re_string_context_at): Fix bug where the code assumed that
59581         Idx is signed.
59582
59583         Use bool where appropriate.
59584         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
59585         All callers changed.
59586         (calc_eclosure_iter): Likewise, for ROOT arg.
59587         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
59588         (build_charclass_op): Likewise, for NON_MATCH arg.
59589         * lib/regex_internal.c (re_string_allocate, re_string_construct):
59590         (re_string_construct_common): Likewise, for ICASE arg.
59591         * lib/regexec.c (re_search_2_stub, re_search_stub):
59592         Likewise, for RET_LEN arg.
59593         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
59594         (set_regs): Likewise, for FL_BACKTRACK arg.
59595         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
59596         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
59597         (calc_eclosure_iter, parse_bracket_exp):
59598         Use bool for internal variables that are booleans.
59599         * lib/regexec.c (re_search_internal, check_matching,
59600         proceed_next_node):
59601         (set_regs, build_sifted_states, sift_states_bkref):
59602         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
59603         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59604         (find_collation_sequence_value):
59605         Likewise.
59606         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
59607         (re_node_set_compare):
59608         Return bool, not int. All callers changed.
59609         * lib/regexec.c (check_halt_node_context, check_dst_limits):
59610         (build_trtable, check_node_accept): Likewise.
59611         * lib/regex_internal.h: Include stdbool.h.
59612
59613         Fix bugs uncovered when converting to bool.
59614         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
59615         failure instead of charging ahead blindly.
59616         * lib/regex_internal.c (register_state): Likewise.
59617         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
59618         for freeing internal storage.
59619         (group_nodes_into_DFA_states): Use unsigned int, not int, for
59620         bitset pieces used as boolean, to avoid undefined behavior
59621         on hosts that do int overflow checking.
59622
59623 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59624
59625         * config/srclist.txt: Add glibc bugs 1285-1287.
59626
59627 2005-09-01  Jim Meyering  <jim@meyering.net>
59628
59629         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
59630         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
59631         Require gl_STAT_MACROS, too.
59632
59633 2005-09-01  Bruno Haible  <bruno@clisp.org>
59634
59635         * gnulib-tool (import): In the first-use case, provide defaults.
59636
59637 2005-09-01  Bruno Haible  <bruno@clisp.org>
59638
59639         * gnulib-tool (func_import): Remove the .tmp files.
59640
59641 2005-09-01  Bruno Haible  <bruno@clisp.org>
59642
59643         * gnulib-tool (func_import): Fix handling of symbolic links.
59644
59645 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59646
59647         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
59648         old glibc regex code mishandles strings longer than 2**31 bytes.
59649         This patch fixes this when the regex code is used in gnulib
59650         (i.e., outside glibc).
59651
59652         This patch should not affect the use of the regex code inside
59653         glibc.  No doubt this problem also needs to be handled for glibc
59654         as well, but the result will be an incompatible change to the
59655         glibc ABI, and the old ABI will have to be supported too.  That
59656         can be the the subject for another patch.
59657
59658         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
59659         governing whether the rest of this patch is active.  By default,
59660         the macro is disabled and the patch has no effect.
59661         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
59662         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
59663         (struct re_pattern_buffer, re_search, re_search_2, re_match):
59664         (re_match_2, re_set_registers): Use the new types.
59665         * lib/regex_internal.h (Idx, re_hashval_t): New types.
59666         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
59667         New macros.
59668         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
59669         (re_string_context_at, bin_tree_t, re_dfastate_t):
59670         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
59671         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
59672         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
59673         (re_string_char_size_at, re_string_wchar_at):
59674         (re_string_elem_size_at):
59675         Use the new types and macros to port to 64-bit hosts.
59676         Use unsigned types for internal values, so that the code
59677         mostly works even for arrays larger than SSIZE_MAX.
59678         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
59679         (search_duplicated_node, calc_eclosure_iter, fetch_number):
59680         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
59681         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
59682         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
59683         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
59684         (calc_inveclosure, parse_dup_op, build_range_exp):
59685         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
59686         (fetch_number, create_token_tree, mark_opt_subexp):
59687         Likewise.
59688         * lib/regex_internal.c (re_string_construct_common,
59689         create_ci_newstate):
59690         (create_cd_newstate, re_string_allocate, re_string_construct):
59691         (re_string_realloc_buffers, build_wcs_upper_buffer):
59692         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59693         (re_string_reconstruct, re_string_peek_byte_case):
59694         (re_string_fetch_byte_case, re_string_context_at):
59695         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59696         (re_node_set_init_copy, re_node_set_add_intersect):
59697         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59698         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59699         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59700         (re_acquire_state, re_acquire_state_context, register_state):
59701         Likewise.
59702         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
59703         search_cur_bkref_entry):
59704         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
59705         (re_search_internal, re_search_2_stub, re_search_stub)
59706         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
59707         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
59708         (update_cur_sifted_state, check_dst_limits):
59709         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59710         (check_subexp_limits, sift_states_bkref, merge_state_array):
59711         (check_subexp_matching_top, get_subexp, get_subexp_sub):
59712         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
59713         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59714         (expand_bkref_cache, check_node_accept_bytes):
59715         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
59716         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
59717         (acquire_init_state_context, check_halt_node_context):
59718         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
59719         (sift_states_backward, clean_state_log_if_needed):
59720         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
59721         (find_recover_state, transit_state_sb, transit_state_mb):
59722         (transit_state_bkref, build_trtable, match_ctx_clean):
59723         Likewise.
59724         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
59725         to work around an assumption that REG_MISSING is negative.
59726
59727         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
59728         (seek_collating_symbol_entry) [defined _LIBC]:
59729         (lookup_collation_sequence_value) [defined _LIBC]:
59730         (build_range_exp, build_collating_symbol) [defined _LIBC]:
59731         Use prototypes rather than old-style function definitions.
59732         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
59733         (transit_state_sb) [0]:
59734         (find_collation_sequence_value) [defined _LIBC]: Likewise.
59735
59736         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
59737         rm_eo.
59738
59739         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
59740         (optimize_subexps, lower_subexp):
59741         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
59742         since the signed shift might overflow.  Use 1u<<31 instead.
59743         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59744         Likewise.
59745         * lib/regexec.c (check_dst_limits_calc_pos_1,
59746         check_subexp_matching_top): Likewise.
59747
59748         * lib/regcomp.c (optimize_subexps, lower_subexp):
59749         Use CHAR_BIT rather than 8, for clarity.
59750         * lib/regexec.c (check_dst_limits_calc_pos_1):
59751         (check_subexp_matching_top): Likewise.
59752         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
59753         have to worry about portability issues when shifting it left.
59754         Remove no-longer-needed test for table_size > 0.
59755         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
59756         in a word, as the resulting behavior is undefined.
59757         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
59758         in one case, a <= should have been an <, and in another case the
59759         whole test was missing.
59760         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
59761         the standard name CHAR_BIT.
59762         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
59763         this is not true on one's complement and signed-magnitude hosts.
59764
59765         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
59766         next_last_offset.
59767         (struct re_dfa_t): Remove unused member states_alloc.
59768         * lib/regcomp.c (init_dfa): Don't initialize unused members.
59769
59770 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59771
59772         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
59773         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
59774         and large-file glibc and in 32-bit large-file Solaris.
59775
59776 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59777
59778         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
59779         lengths fit in regoff_t; this isn't true if regoff_t is the same
59780         width as size_t.
59781         * lib/regex.c (re_search_internal): 5th arg is LAST_START
59782         (= START + RANGE) instead of RANGE.  This avoids overflow
59783         problems when regoff_t is the same width as size_t.
59784         All callers changed.
59785         (re_search_2_stub): Check for overflow when adding the
59786         sizes of the two strings.
59787         (re_search_stub): Check for overflow when adding START
59788         to RANGE; if it occurs, substitute the extreme value.
59789
59790 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59791
59792         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
59793
59794 2005-08-31  Jim Meyering  <jim@meyering.net>
59795
59796         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
59797         a pointer-to-const.
59798         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
59799         (register_state): Likewise.
59800         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
59801         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59802         (group_nodes_into_DFAstates): Likewise.
59803
59804 2005-08-31  Jim Meyering  <jim@meyering.net>
59805
59806         * check-module: Add a FIXME comment.
59807
59808 2005-08-31  Eric Blake  <ebb9@byu.net>
59809
59810         * modules/unistd-safer (Files): Add unistd--.h.
59811         * modules/stdio-safer (Files): Add stdio--.h.
59812
59813 2005-08-31  Derek Price  <derek@ximbiot.com>
59814
59815         * lib/getdelim.c (getdelim): Return EOF on EOF.
59816         Reported by Larry Jones <lawrence.jones@ugs.com>.
59817
59818 2005-08-31  Bruno Haible  <bruno@clisp.org>
59819
59820         Avoid unnecessary diffs in the generated lib/Makefile.am.
59821         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
59822         the generated files.
59823         (func_import): Don't set cmd.
59824
59825 2005-08-31  Bruno Haible  <bruno@clisp.org>
59826
59827         * lib/strstr.c: Include <stddef.h>, for NULL.
59828         * lib/strcasestr.c: Likewise.
59829         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59830
59831 2005-08-31  Bruno Haible  <bruno@clisp.org>
59832
59833         * gnulib-tool: New option --macro-prefix.
59834         (func_import): Use macro_prefix.
59835         (import): Handle option --macro-prefix.
59836
59837 2005-08-31  Bruno Haible  <bruno@clisp.org>
59838
59839         * gnulib-tool (import): Rename most ac_* variables to cached_*.
59840         Also use new variables cached_lgpl, cached_libtool.
59841
59842 2005-08-31  Bruno Haible  <bruno@clisp.org>
59843
59844         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
59845         always instantiating them.
59846
59847 2005-08-31  Bruno Haible  <bruno@clisp.org>
59848
59849         * gnulib-tool (func_import): Read the previous cached settings
59850         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
59851         earlier added by gnulib but are now dropped. Warn when a gnulib file
59852         overwrites a non-gnulib file.
59853
59854 2005-08-31  Bruno Haible  <bruno@clisp.org>
59855
59856         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
59857         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
59858         projects that don't keep autogenerated files in CVS. Put into
59859         actioncmd only the specified modules, not the transitive closure.
59860
59861 2005-08-31  Bruno Haible  <bruno@clisp.org>
59862
59863         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
59864         Create directories that shall be filled.
59865         (import): Don't look for gl_* macros in configure.ac. Recurse across
59866         all directories containing a gnulib-cache.m4 files, if meaningful.
59867
59868 2005-08-31  Bruno Haible  <bruno@clisp.org>
59869
59870         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
59871         (import): Set seen_libtool when we see gl_LIBTOOL.
59872
59873 2005-08-31  Bruno Haible  <bruno@clisp.org>
59874
59875         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
59876         declaration macro definitions from generated gnulib.m4.
59877
59878 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
59879
59880         * lib/iconvme.h: Add prototype for iconv_alloc.
59881
59882 2005-08-29  Simon Josefsson  <jas@extundo.com>
59883
59884         * lib/iconvme.c: Fix errno.
59885
59886 2005-08-29  Bruno Haible  <bruno@clisp.org>
59887
59888         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
59889         that it works when the directory contains spaces.
59890
59891 2005-08-29  Bruno Haible  <bruno@clisp.org>
59892
59893         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
59894
59895 2005-08-29  Bruno Haible  <bruno@clisp.org>
59896
59897         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
59898         Emit more advice.
59899
59900 2005-08-29  Bruno Haible  <bruno@clisp.org>
59901         and Stepan Kasal  <kasal@ucw.cz>
59902
59903         * check-module: If more parameters are given, check each of them
59904         separately; add more exceptions, as noted by Jim Meyering.
59905         (check_module): New procedure.
59906         (%exempt_header): Now contains all exceptions.
59907
59908 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
59909
59910         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
59911
59912 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59913
59914         * lib/iconvme.c: Split iconv_string into iconv_alloc.
59915
59916 2005-08-28  Bruno Haible  <bruno@clisp.org>
59917
59918         * m4/gnulib-tool.m4: New file.
59919
59920 2005-08-27  Jim Meyering  <jim@meyering.net>
59921
59922         * modules/unistd-safer (Files): Add pipe-safer.c.
59923         * modules/fcntl-safer (Files): Add creat-safer.c.
59924
59925 2005-08-27  Jim Meyering  <jim@meyering.net>
59926
59927         * m4/stdlib-safer.m4: New file.  From coreutils.
59928         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
59929         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
59930         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
59931         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
59932         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
59933
59934 2005-08-27  Jim Meyering  <jim@meyering.net>
59935
59936         * lib/fopen-safer.c: Merge minor changes from coreutils.
59937         * lib/dup-safer.c: Likewise.
59938         * lib/fd-safer.c: Likewise.
59939
59940         Merge from coreutils.
59941         * lib/stdio--.h: New file.
59942         * lib/stdlib--.h: New file.
59943         * lib/mkstemp-safer.c: New file.
59944
59945         GNU tar needs these.
59946         * lib/pipe-safer.c: New file.
59947         * lib/creat-safer.c: New file.
59948         * lib/fcntl--.h (creat): Define to creat_safer.
59949         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
59950         * lib/unistd--.h (pipe): Define to pipe_safer.
59951         * lib/unistd-safer.h: Declare pipe_safer.
59952
59953 2005-08-26  Simon Josefsson  <jas@extundo.com>
59954
59955         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
59956         Haible <bruno@clisp.org>.
59957
59958 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
59959
59960         * lib/regex_internal.h: Remove all references to
59961         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
59962         or better.
59963         (bitset_not, bitset_merge, bitset_not_merge):
59964         (bitset_mask, re_string_allocate, re_string_construct):
59965         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
59966         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
59967         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
59968         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
59969         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59970         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59971         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
59972         (re_acquire_state_context):
59973         Remove unnecessary forward decls.
59974         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
59975         Put __attribute at function definition,
59976         now that the function decl has been removed.
59977         * lib/regex_internal.c (re_string_peek_byte_case):
59978         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
59979         Likewise.
59980
59981 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
59982
59983         * m4/regex.m4: Add AC_PREREQ(2.50).
59984         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
59985
59986 2005-08-25  Simon Josefsson  <jas@extundo.com>
59987
59988         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
59989         __fsetlocking.
59990
59991 2005-08-25  Simon Josefsson  <jas@extundo.com>
59992
59993         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
59994         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
59995         GLIBC specific code.
59996
59997 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59998
59999         Make regex safe for g++.  This fixes one real bug (an "err"
60000         that should have been "*err").  g++ problem reported by
60001         Sam Steingold.
60002         * lib/regex_internal.h (re_calloc): New macro, consistent with
60003         re_malloc etc.  All callers of calloc changed to use re_calloc.
60004         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60005         not int.  All callers changed.
60006         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60007         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60008         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60009         (find_recover_state): Change "err" to "*err"; this fixes what
60010         appears to be a real bug.
60011         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60012         versus int.
60013
60014 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60015
60016         * modules/regex (Depends-on): Add malloc, since the code
60017         assumes that !malloc(0) means failure.
60018
60019 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60022
60023         alloca modernization/simplification for regex.
60024         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60025         needs to be at the start of the file, and can be moved into
60026         regex_internal.h and simplified.
60027         * lib/regex_internal.h: Include <alloca.h>.
60028         (__libc_use_alloca) [!defined _LIBC]: New macro.
60029         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60030         now works outside glibc.
60031
60032 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60033
60034         * config/srclist.txt: Add glibc bugs 1241, 1245.
60035
60036 2005-08-25  Jim Meyering  <jim@meyering.net>
60037
60038         * lib/open-safer.c: Include <config.h>.
60039         Otherwise, we'd lose LARGEFILE support in any file using
60040         e.g. "fcntl--.h"
60041
60042 2005-08-25  Bruno Haible  <bruno@clisp.org>
60043
60044         * m4/minmax.m4: Require autoconf 2.52.
60045         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
60046         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
60047         alternatives of translit over the alphabet.
60048         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
60049
60050 2005-08-24  Simon Josefsson  <jas@extundo.com>
60051
60052         * tests/test-getpass.c: New file.
60053
60054 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60055
60056         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
60057         for GNU regex features.
60058
60059 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60060
60061         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
60062         * lib/regex.h (regerror): Likewise.
60063
60064         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60065         requires this.  (The code never needed it.)
60066
60067         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60068         All uses of recently-renamed identifiers changed to use the new,
60069         POSIX-compliant names.  The code will build and run just fine
60070         without these changes, but it's better to eat our own dog food
60071         and use the standard-conforming names.
60072
60073         * lib/regex.h: Fix a multitude of POSIX name space violations.
60074         These changes have an effect only for programs that define
60075         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60076         do not change anything for programs compiled in the normal way.
60077         Also, there is no effect on the ABI.
60078
60079         (_REGEX_SOURCE): New macro.
60080         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60081         defined and _GNU_SOURCE is not; this fixes a name space violation.
60082
60083         Rename the following macros to obey POSIX requirements.
60084         The old names are still visible as macros if _REGEX_SOURCE is defined.
60085         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60086         RE_BACKSLASH_ESCAPE_IN_LISTS.
60087         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60088         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60089         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60090         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60091         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60092         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60093         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60094         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60095         (REG_INTERVALS): renamed from RE_INTERVALS.
60096         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60097         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60098         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60099         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60100         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60101         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60102         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60103         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60104         RE_UNMATCHED_RIGHT_PAREN_ORD.
60105         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60106         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60107         (REG_DEBUG): renamed from RE_DEBUG.
60108         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60109         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60110         unusual, since we can't clash with the POSIX REG_ICASE.
60111         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60112         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60113         (REG_NO_SUB): renamed from RE_NO_SUB.
60114         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60115         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60116         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60117         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60118         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60119         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60120         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60121         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60122         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60123         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60124         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60125         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60126         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60127         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60128         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60129         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60130         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60131         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60132         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60133         (REG_FIXED): Renamed from REGS_FIXED.
60134         (REG_NREGS): Renamed from RE_NREGS.
60135
60136         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60137         of other REG_* macros, since POSIX says the user is allowed to
60138         #undef these macros selectively.
60139
60140         (reg_errcode_t): Update comment stating what other tables need
60141         to be consistent.
60142
60143         Rename the following enum values to obey POSIX requirements.
60144         The old names are still visible as macros.
60145         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60146         is not defined, since GNU is supposed to be a superset of POSIX as
60147         much as possible, and since we want reg_errcode_t to be a signed
60148         type for implementation consistency.
60149         (_REG_NOERROR): Renamed from REG_NOERROR.
60150         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60151         (_REG_BADPAT): Renamed from REG_BADPAT.
60152         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60153         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60154         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60155         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60156         (_REG_EBRACK): Renamed from REG_EBRACK.
60157         (_REG_EPAREN): Renamed from REG_EPAREN.
60158         (_REG_EBRACE): Renamed from REG_EBRACE.
60159         (_REG_BADBR): Renamed from REG_BADBR.
60160         (_REG_ERANGE): Renamed from REG_ERANGE.
60161         (_REG_ESPACE): Renamed from REG_ESPACE.
60162         (_REG_BADRPT): Renamed from REG_BADRPT.
60163         (_REG_EEND): Renamed from REG_EEND.
60164         (_REG_ESIZE): Renamed from REG_ESIZE.
60165         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60166         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60167         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60168         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60169         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60170
60171         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60172         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60173         changed.  But support the old name if the new one is not defined
60174         and if _REGEX_SOURCE.
60175
60176         Change the following member names in struct re_pattern_buffer.
60177         The old names are still supported if !_REGEX_SOURCE.
60178         The new names are always supported, regardless of _REGEX_SOURCE.
60179         (re_buffer): Renamed from buffer.
60180         (re_allocated): Renamed from allocated.
60181         (re_used): Renamed from used.
60182         (re_syntax): Renamed from syntax.
60183         (re_fastmap): Renamed from fastmap.
60184         (re_translate): Renamed from translate.
60185         (re_can_be_null): Renamed from can_be_null.
60186         (re_regs_allocated): Renamed from regs_allocated.
60187         (re_fastmap_accurate): Renamed from fastmap_accurate.
60188         (re_no_sub): Renamed from no_sub.
60189         (re_not_bol): Renamed from not_bol.
60190         (re_not_eol): Renamed from not_eol.
60191         (re_newline_anchor): Renamed from newline_anchor.
60192
60193         Change the following member names in struct re_registers.
60194         The old names are still supported if !_REGEX_SOURCE.
60195         The new names are always supported, regardless of _REGEX_SOURCE.
60196         (rm_num_regs): Renamed from num_regs.
60197         (rm_start): Renamed from start.
60198         (rm_end): Renamed from end.
60199
60200         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60201         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60202         Prepend __ to parameter names.
60203
60204         Undo yesterday's changes.
60205
60206 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60207
60208         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60209         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60210         lib/regex.c.
60211
60212 2005-08-24  Jim Meyering  <jim@meyering.net>
60213
60214         Sync from coreutils.
60215         * m4/fcntl-safer.m4: New file.
60216
60217         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60218         and object files for this module.
60219
60220 2005-08-24  Jim Meyering  <jim@meyering.net>
60221
60222         Sync from coreutils.
60223         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60224
60225 2005-08-24  Jim Meyering  <jim@meyering.net>
60226
60227         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60228         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60229
60230 2005-08-24  Jim Meyering  <jim@meyering.net>
60231
60232         * modules/fcntl-safer: New module.
60233         * modules/fts (Depends-on): Add fcntl-safer.
60234         * MODULES.html.sh (File descriptor based Input/Output):
60235         Add fcntl-safer.
60236
60237 2005-08-24  Bruno Haible  <bruno@clisp.org>
60238
60239         Support for unit test modules.
60240         * modules/README: Mention tests modules.
60241         * modules/TEMPLATE-TESTS: New file.
60242         * gnulib-tool: New options --extract-tests-module, --with-tests and
60243         --tests-base (unused for the moment).
60244         (testsbase, inctests): New variables.
60245         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60246         (func_verify_module): Exclude TEMPLATE-TESTS.
60247         (func_verify_nontests_module, func_verify_tests_module): New functions.
60248         (func_get_dependencies): Add implicit dependency for tests modules.
60249         (func_get_tests_module): New function.
60250         (func_modules_transitive_closure): When --with-tests was specified,
60251         include the unit tests as well, unless explicitly avoided.
60252         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60253         (func_emit_tests_Makefile_am): New function.
60254         (func_create_testdir): When --with-tests was specified, emit a
60255         tests/ directory.
60256         * MODULES.html.sh (Future developments): Update.
60257
60258 2005-08-24  Bruno Haible  <bruno@clisp.org>
60259
60260         * modules/tls-tests: New file.
60261         * tests/test-tls.c: New file, from GNU gettext.
60262
60263 2005-08-24  Bruno Haible  <bruno@clisp.org>
60264
60265         * modules/lock-tests: New file.
60266         * tests/test-lock.c: New file, from GNU gettext.
60267
60268 2005-08-24  Bruno Haible  <bruno@clisp.org>
60269
60270         * lib/lock.h: Add multiple inclusion guard.
60271         * lib/tls.h: Add multiple inclusion guard.
60272
60273 2005-08-24  Bruno Haible  <bruno@clisp.org>
60274
60275         * gnulib-tool: Add support for the --aux-dir option to
60276         --create-testdir, --create-megatestdir, --test, --megatest.
60277         (func_create_testdir, func_create_megatestdir): Optionally emit a
60278         AC_CONFIG_AUX_DIR directive.
60279         (create-testdir, create-megatestdir, test, megatest): Provide a
60280         default value for $auxdir.
60281
60282 2005-08-24  Bruno Haible  <bruno@clisp.org>
60283
60284         * gnulib-tool (import): Use compound statement instead of subshell
60285         where possible.
60286
60287 2005-08-24  Bruno Haible  <bruno@clisp.org>
60288
60289         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60290
60291 2005-08-24  Bruno Haible  <bruno@clisp.org>
60292
60293         * gnulib-tool (func_version): Update.
60294
60295 2005-08-24  Bruno Haible  <bruno@clisp.org>
60296
60297         * gnulib-tool (func_import, func_create_testdir,
60298         func_create_megatestdir): Quote all autoconf macro arguments.
60299
60300 2005-08-24  Bruno Haible  <bruno@clisp.org>
60301
60302         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60303         option --force, because --force causes the aclocal.m4 of each
60304         subdirectory to be newer than the corresponding config.h.in.
60305
60306 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60307
60308         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60309         All contents moved to gl_REGEX.
60310         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60311         assume that it does.
60312
60313 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60314
60315         * lib/regex.h (REG_NOSYS)
60316         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60317         Define, since POSIX requires it as of 2001.
60318         (_REG_ENOSYS)
60319         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60320         New private symbol, used to keep the enum signed in all cases.
60321         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60322         Youngman in
60323         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60324
60325         * lib/regex_internal.c (re_string_skip_chars, register_state):
60326         (calc_state_hash):
60327         Remove forward decls; no longer needed now that we use prototypes.
60328         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60329         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60330         (clean_state_log_if_needed): Likewise.
60331
60332 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60333
60334         * config/srclist.txt: Add glibc bugs 1231-1233.
60335
60336 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         Fix problems reported by Sam Steingold in
60339         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60340         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60341         assumed that reg_errcode_t is a signed type, which is not
60342         necessarily true if _XOPEN_SOURCE is not defined.
60343         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60344         since some compilers warn about it otherwise.
60345
60346 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60347
60348         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60349         (init_word_char, create_initial_state, duplicate_node_closure):
60350         (fetch_token, peek_token_bracket, build_range_exp):
60351         (build_collating_symbol): Remove forward decls; no longer needed
60352         now that we use prototypes.
60353
60354         * lib/regcomp.c:
60355         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60356         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60357         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60358         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60359         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60360         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60361         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60362         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60363         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60364         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60365         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60366         (build_charclass, build_charclass_op, fetch_number, create_tree):
60367         (create_token_tree, mark_opt_subexp, duplicate_tree):
60368         Use prototypes rather than old-style definitions.
60369
60370         * lib/regex_internal.c:
60371         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60372         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60373         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60374         (re_string_reconstruct, re_string_peek_byte_case):
60375         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60376         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60377         (re_node_set_init_copy, re_node_set_add_intersect):
60378         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60379         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60380         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60381         (re_acquire_state, re_acquire_state_context, register_state):
60382         (create_ci_newstate, create_cd_newstate, free_state):
60383         Likewise.
60384         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
60385         re_search_2):
60386         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
60387         (re_search_internal, prune_impossible_nodes):
60388         (acquire_init_state_context, check_matching, static):
60389         (check_halt_node_context, check_halt_state_context, proceed_next_node):
60390         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
60391         (update_regs, sift_states_backward, build_sifted_states):
60392         (clean_state_log_if_needed, merge_state_array):
60393         (update_cur_sifted_state, add_epsilon_src_nodes):
60394         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
60395         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
60396         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
60397         (find_recover_state, check_subexp_matching_top, transit_state_mb):
60398         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
60399         (check_arrival, check_arrival_add_next_nodes):
60400         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60401         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60402         (check_node_accept_bytes, check_node_accept, extend_buffers):
60403         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
60404         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
60405         (sift_ctx_init):
60406         Likewise.
60407
60408         * lib/regex_internal.h:
60409         (re_string_allocate, re_string_construct, re_string_reconstruct):
60410         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
60411         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
60412         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
60413         (re_string_context_at, re_string_peek_byte_case):
60414         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
60415         is defined, since we now use prototypes always.
60416
60417         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
60418         C89 or better.  All uses removed.
60419
60420 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60421
60422         * config/srclist.txt: Add glibc bugs 1220-1227.
60423
60424 2005-08-20  Jim Meyering  <jim@meyering.net>
60425
60426         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
60427         of unused local, dfa.
60428
60429 2005-08-20  Bruno Haible  <bruno@clisp.org>
60430
60431         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
60432
60433 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60434
60435         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
60436         (re_node_set_insert_last, re_dfa_add_node):
60437         Rename local variables to avoid GCC shadowing warnings.
60438
60439 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60440
60441         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
60442         [defined lint]: Suppress bogus uninitialized-variable warnings.
60443
60444         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
60445         and let the caller return REG_ESPACE if out of space.  This
60446         removes an uninitialied-variable warning with GCC 4.0.1, and also
60447         avoids taking the address of a local variable.  All callers
60448         changed.
60449
60450 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60451
60452         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60453         $LIBCSRC/posix/regexec.c.
60454         Add glibc bug 1217 for regcomp.c.
60455
60456 2005-08-19  Jim Meyering  <jim@meyering.net>
60457
60458         * lib/regexec.c (proceed_next_node): Redo local variables to
60459         avoid GCC shadowing warnings.
60460
60461 2005-08-18  Bruno Haible  <bruno@clisp.org>
60462
60463         * lib/strstr.c (strstr): Fix return value in multibyte case.
60464         * lib/strcasestr.c (strcasestr): Likewise.
60465
60466 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60467
60468         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
60469
60470 2005-08-17  Jim Meyering  <jim@meyering.net>
60471
60472         Make the %s format (seconds since the epoch) work for a negative
60473         number and when used with a zero-padded field width, e.g. %015s.
60474
60475         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
60476         label so that it precedes the code to set `digits'.  Otherwise,
60477         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
60478         print `00-22'.  Now, it prints `-0022', as it should.
60479
60480 2005-08-17  Bruno Haible  <bruno@clisp.org>
60481
60482         * modules/strstr (Files): Add m4/mbrtowc.m4.
60483         (Depends-on): Add mbuiter.
60484
60485 2005-08-17  Bruno Haible  <bruno@clisp.org>
60486
60487         * modules/strcasestr: New file.
60488         * MODULES.html.sh (String handling, based on ANSI C 89): Add
60489         strcasestr.
60490
60491 2005-08-17  Bruno Haible  <bruno@clisp.org>
60492
60493         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
60494
60495 2005-08-17  Bruno Haible  <bruno@clisp.org>
60496
60497         * modules/mbuiter: New file.
60498         * MODULES.html.sh (Extended multibyte and wide character utilities):
60499         Add mbuiter.
60500
60501 2005-08-17  Bruno Haible  <bruno@clisp.org>
60502
60503         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
60504         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
60505
60506 2005-08-17  Bruno Haible  <bruno@clisp.org>
60507
60508         * m4/strcasestr.m4: New file.
60509
60510 2005-08-17  Bruno Haible  <bruno@clisp.org>
60511
60512         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
60513         * lib/strstr.c: Completely rewritten, with multibyte locale support.
60514
60515 2005-08-17  Bruno Haible  <bruno@clisp.org>
60516
60517         * lib/strcasestr.h: New file.
60518         * lib/strcasestr.c: New file.
60519
60520 2005-08-17  Bruno Haible  <bruno@clisp.org>
60521
60522         * lib/strcasecmp.c: Use mbuiter.h.
60523
60524 2005-08-17  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/mbuiter.h: New file.
60527
60528 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60529
60530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
60531         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
60532         and gl_GETOPT are both invoked via different paths (as happens
60533         with GNU tar CVS because it uses both argp and getopt), the former
60534         wins.
60535
60536 2005-08-16  Bruno Haible  <bruno@clisp.org>
60537
60538         * modules/tls: New file.
60539         * MODULES.html.sh (Multithreading): Add tls.
60540
60541 2005-08-16  Bruno Haible  <bruno@clisp.org>
60542
60543         * modules/strnlen1: New file.
60544         * MODULES.html.sh (String handling): Add strnlen1.
60545
60546 2005-08-16  Bruno Haible  <bruno@clisp.org>
60547
60548         * modules/strcase (Files): Add m4/mbrtowc.m4.
60549         (Depends-on): Add strnlen1, mbchar.
60550
60551 2005-08-16  Bruno Haible  <bruno@clisp.org>
60552
60553         * modules/mbiter: New file.
60554         * MODULES.html.sh (Extended multibyte and wide character utilities):
60555         Add mbiter.
60556
60557 2005-08-16  Bruno Haible  <bruno@clisp.org>
60558
60559         * modules/mbfile: New file.
60560         * MODULES.html.sh (Extended multibyte and wide character utilities):
60561         Add mbfile.
60562
60563 2005-08-16  Bruno Haible  <bruno@clisp.org>
60564
60565         * modules/mbchar: New file.
60566         * MODULES.html.sh (Extended multibyte and wide character utilities):
60567         New section.
60568
60569 2005-08-16  Bruno Haible  <bruno@clisp.org>
60570
60571         * m4/tls.m4: New file, from GNU gettext.
60572
60573 2005-08-16  Bruno Haible  <bruno@clisp.org>
60574
60575         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
60576         always.
60577         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
60578
60579 2005-08-16  Bruno Haible  <bruno@clisp.org>
60580
60581         * m4/mbiter.m4: New file.
60582
60583 2005-08-16  Bruno Haible  <bruno@clisp.org>
60584
60585         * m4/mbfile.m4: New file.
60586
60587 2005-08-16  Bruno Haible  <bruno@clisp.org>
60588
60589         * m4/mbchar.m4: New file.
60590
60591 2005-08-16  Bruno Haible  <bruno@clisp.org>
60592
60593         * lib/tls.h: New file, from GNU gettext.
60594         * lib/tls.c: New file, from GNU gettext.
60595
60596 2005-08-16  Bruno Haible  <bruno@clisp.org>
60597
60598         * lib/strnlen1.h: New file.
60599         * lib/strnlen1.c: New file.
60600
60601 2005-08-16  Bruno Haible  <bruno@clisp.org>
60602
60603         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
60604         (mbi_init): Update.
60605         (mbi_avail, mbi_advance): Let the iteration end before the terminating
60606         NUL byte, not after it.
60607
60608 2005-08-16  Bruno Haible  <bruno@clisp.org>
60609
60610         * lib/strcase.h (strcasecmp): Add note in comments.
60611         * lib/strncasecmp.c: Use code from strcasecmp.c.
60612         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
60613         (strcasecmp): Work correctly in multibyte locales.
60614
60615 2005-08-16  Bruno Haible  <bruno@clisp.org>
60616
60617         * lib/mbiter.h: New file.
60618
60619 2005-08-16  Bruno Haible  <bruno@clisp.org>
60620
60621         * lib/mbfile.h: New file.
60622
60623 2005-08-16  Bruno Haible  <bruno@clisp.org>
60624
60625         * lib/mbchar.h: New file.
60626         * lib/mbchar.c: New file.
60627
60628 2005-08-16  Bruno Haible  <bruno@clisp.org>
60629
60630         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
60631         the valid ones. Makes the comparison operations transitive:
60632         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
60633         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
60634
60635 2005-08-15  Simon Josefsson  <jas@extundo.com>
60636
60637         * modules/ssize_t (License): Change to 'unlimited'.
60638
60639         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
60640
60641 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60642
60643         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
60644         Add comments for each pending glibc patch.
60645
60646 2005-08-15  Bruno Haible  <bruno@clisp.org>
60647
60648         * lib/regex.h (__restrict_arr): Don't define to __restrict if
60649         __cplusplus is defined.
60650
60651 2005-08-14  Jim Meyering  <jim@meyering.net>
60652
60653         Sync from coreutils.
60654
60655         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
60656         Use the hash-table-based cycle-detection code not just when
60657         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
60658         Reported by James Youngman in
60659         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
60660         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
60661         FTS_TIGHT_CYCLE_CHECK.
60662         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
60663         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
60664         once again.
60665         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
60666         * lib/fts.c (fd_safer): Remove decl.
60667         Include fcntl--.h rather than unistd-safer.h
60668         (fts_safe_changedir): Don't call fd_safer; no longer needed
60669         now that we include fcntl--.h.
60670
60671 2005-08-12  Simon Josefsson  <jas@extundo.com>
60672
60673         * modules/getndelim2: Use ssize_t module.
60674         * modules/getnline: Likewise.
60675         * modules/safe-read: Likewise.
60676         * modules/xreadlink: Likewise.
60677
60678         * modules/ssize_t: New file.
60679
60680 2005-08-12  Simon Josefsson  <jas@extundo.com>
60681
60682         * m4/readline.m4: Look for termcap, curses or ncurses if required.
60683
60684 2005-08-12  Simon Josefsson  <jas@extundo.com>
60685
60686         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60687         ssize_t.
60688
60689 2005-08-12  Simon Josefsson  <jas@extundo.com>
60690
60691         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
60692         readline, getdelim and check_version.
60693         (Support for systems lacking ISO C 99: Sizes of integer types):
60694         Add size_max.
60695
60696 2005-08-12  Bruno Haible  <bruno@clisp.org>
60697
60698         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
60699
60700 2005-08-11  Simon Josefsson  <jas@extundo.com>
60701
60702         * modules/readline: New file.
60703
60704         * modules/strnlen (Files): Add strnlen.h.
60705
60706 2005-08-11  Simon Josefsson  <jas@extundo.com>
60707
60708         * m4/readline.m4: New file.
60709
60710 2005-08-11  Simon Josefsson  <jas@extundo.com>
60711
60712         * lib/readline.h, readline.c: New file.
60713
60714 2005-08-11  Simon Josefsson  <jas@extundo.com>
60715
60716         * doc/gnulib.texi (Initial import, Finishing touches): Mention
60717         gl_AVOID.
60718
60719 2005-08-11  Bruno Haible  <bruno@clisp.org>
60720
60721         * lib/strnlen.h (strnlen): Change parameter name to match comment.
60722
60723 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
60724
60725         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
60726
60727 2005-08-10  Simon Josefsson  <jas@extundo.com>
60728
60729         * tests/test-iconvme.c: New file.
60730
60731 2005-08-10  Simon Josefsson  <jas@extundo.com>
60732
60733         * m4/strnlen.m4: New file.
60734
60735         * m4/strndup.m4: Don't check for strnlen declaration, done in
60736         strnlen.m4.
60737
60738 2005-08-10  Simon Josefsson  <jas@extundo.com>
60739
60740         * lib/strndup.c: Use strnlen.h.
60741
60742         * lib/strnlen.h: New file.
60743
60744 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60745
60746         * README: Typos.
60747
60748 2005-08-02  Simon Josefsson  <jas@extundo.com>
60749
60750         * modules/readline: New file.
60751
60752 2005-08-02  Simon Josefsson  <jas@extundo.com>
60753
60754         * modules/getdelim: New file.
60755
60756         * modules/getline: Rewrite, don't use getndelim2.
60757
60758 2005-08-02  Simon Josefsson  <jas@extundo.com>
60759
60760         * m4/getline.m4: Separate out getdelim stuff into separate module.
60761
60762         * m4/getdelim.m4: New file.
60763
60764 2005-08-02  Simon Josefsson  <jas@extundo.com>
60765
60766         * lib/getline.h, getline.c: Rewrite.
60767
60768         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
60769
60770 2005-07-31  Bruno Haible  <bruno@clisp.org>
60771
60772         * lib/lock.h (gl_lock_initializer): New macro.
60773         (gl_lock_define_initialized): Use it.
60774         (gl_rwlock_initializer): New macro.
60775         (gl_rwlock_define_initialized): Use it.
60776         (gl_recursive_lock_initializer): New macro.
60777         (gl_recursive_lock_define_initialized): Use it.
60778
60779 2005-07-30  Karl Berry  <karl@gnu.org>
60780
60781         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
60782         Report from Ben Pfaff, regarding getopt.
60783
60784 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
60785
60786         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
60787         normal way.
60788         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
60789         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
60790         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
60791         (gl_GETOPT): Use the new macros.  Most of the implementation
60792         is moved to the new macros.  This is for programs like Emacs
60793         that don't want all the functionality of gl_GETOPT.
60794
60795 2005-07-26  Bruno Haible  <bruno@clisp.org>
60796
60797         * m4/lock.m4: Update from GNU gettext.
60798
60799 2005-07-26  Bruno Haible  <bruno@clisp.org>
60800
60801         * lib/lock.h: Update from GNU gettext.
60802         * lib/lock.c: Update from GNU gettext.
60803
60804 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
60805
60806         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
60807         obsolescent AC_TRY_RUN.  Include the default includes files, for
60808         'exit'.
60809
60810 2005-07-24  Bruno Haible  <bruno@clisp.org>
60811
60812         * modules/visibility: New file.
60813         * MODULES.html.sh (Misc): Add visibility.
60814
60815 2005-07-24  Bruno Haible  <bruno@clisp.org>
60816
60817         * m4/visibility.m4: New file.
60818
60819 2005-07-24  Bruno Haible  <bruno@clisp.org>
60820
60821         * doc/visibility.texi: New file.
60822
60823 2005-07-22  Bruno Haible  <bruno@clisp.org>
60824
60825         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
60826         $(ALLOCA_H), redundant through BUILT_SOURCES.
60827         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
60828         redundant through BUILT_SOURCES.
60829         * modules/byteswap (Makefile.am): Remove explicit dependency on
60830         $(BYTESWAP_H), redundant through BUILT_SOURCES.
60831         * modules/fnmatch (Makefile.am): Remove explicit dependency on
60832         $(FNMATCH_H), redundant through BUILT_SOURCES.
60833         * modules/getopt (Makefile.am): Remove explicit dependency on
60834         $(GETOPT_H), redundant through BUILT_SOURCES.
60835         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
60836         redundant through BUILT_SOURCES.
60837         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
60838         redundant through BUILT_SOURCES.
60839         * modules/stdbool (Makefile.am): Remove explicit dependency on
60840         $(STDBOOL_H), redundant through BUILT_SOURCES.
60841         * modules/stdint (Makefile.am): Remove explicit dependency on
60842         $(STDINT_H), redundant through BUILT_SOURCES.
60843         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
60844         Remove explicit dependency on $(SYSEXITS_H).
60845         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
60846
60847 2005-07-18  Simon Josefsson  <jas@extundo.com>
60848
60849         * lib/check-version.c (check_version): Accept identical versions too.
60850
60851 2005-07-18  Bruno Haible  <bruno@clisp.org>
60852
60853         * modules/lock: New file.
60854         * MODULES.html.sh (Multithreading): New section.
60855
60856 2005-07-18  Bruno Haible  <bruno@clisp.org>
60857
60858         * m4/lock.m4: New file, from GNU gettext.
60859
60860 2005-07-18  Bruno Haible  <bruno@clisp.org>
60861
60862         * lib/lock.h: New file, from GNU gettext.
60863         * lib/lock.c: New file, from GNU gettext.
60864
60865 2005-07-18  Bruno Haible  <bruno@clisp.org>
60866
60867         * lib/lock.h (gl_once_t): New type.
60868         (gl_once_define, gl_once): New macros.
60869         * lib/lock.c (fresh_once): New variable.
60870         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
60871         functions.
60872
60873 2005-07-16  Simon Josefsson  <jas@extundo.com>
60874
60875         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
60876         workaround, suggested by Bruno.
60877
60878 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60879
60880         * modules/xalloc (Depends-on): Add xalloc-die.
60881         * modules/xvasprintf (Depends-on): Add xalloc-die.
60882
60883 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60884
60885         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
60886         with a minor change.
60887
60888 2005-07-15  Bruno Haible  <bruno@clisp.org>
60889
60890         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
60891         When using lib/poll.c, define poll as rpl_poll.
60892
60893 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
60894
60895         * modules/argp (Depends-on): Remove unlocked-io.
60896
60897 2005-07-14  Derek Price  <derek@ximbiot.com>
60898
60899         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
60900         for glob symlink bug.
60901
60902 2005-07-14  Bruno Haible  <bruno@clisp.org>
60903
60904         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
60905         Instead, test for *_unlocked function declarations directly.
60906
60907 2005-07-11  Simon Josefsson  <jas@extundo.com>
60908
60909         * modules/size_max: New file.
60910
60911         * modules/xsize: Depend on size_max module for size_max.m4.
60912
60913 2005-07-11  Simon Josefsson  <jas@extundo.com>
60914
60915         * lib/size_max.h: New file.
60916
60917 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
60918
60919         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
60920         copyright symbol and the year.
60921         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
60922         (version_etc_va): Use parameterized copyright notice.
60923         Reword to conform to the current GNU coding standards.
60924
60925 2005-07-11  Karl Berry  <karl@gnu.org>
60926
60927         * doc/gnulib.texi (Quoting): new node.
60928         (Initial import): more info, from Patrice.
60929
60930 2005-07-11  Bruno Haible  <bruno@clisp.org>
60931
60932         * gnulib-tool (func_usage): Document option --avoid.
60933         (Command line options): Handle --avoid.
60934         (func_acceptable): New function.
60935         (func_modules_transitive_closure): Use it.
60936
60937 2005-07-11  Bruno Haible  <bruno@clisp.org>
60938
60939         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
60940         Reported by Jim Meyering.
60941
60942 2005-07-10  Bruno Haible  <bruno@clisp.org>
60943
60944         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
60945         Needed when size_t is smaller than 'unsigned int'.
60946         Reported by Paul Eggert.
60947
60948 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60949
60950         * modules/argp (Depends-on): Add unlocked-io
60951
60952 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60953
60954         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
60955         block of defines.
60956
60957 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60958
60959         * config/srclist.txt: Comment out regcomp.c, since we have a porting
60960         fix now.
60961
60962 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
60963         and Paul Eggert  <eggert@cs.ucla.edu>
60964
60965         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
60966         in wint_t, not wchar_t.  Remove now-unnecessary cast.
60967
60968 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60969
60970         * modules/regex (Files): Add lib/regex_internal.c,
60971         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
60972         (Depends-on): Add extensions.
60973         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
60974
60975 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
60978         pathconf.
60979         * m4/same.m4 (gl_SAME): Likewise.
60980         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
60981
60982         * m4/regex.m4: Adjust to new libc regex implementation.
60983         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
60984         all the .c and .h parts of (the new) regex.
60985         Quote the m4 stuff better.
60986         Check for RE_ICASE bug of old gnulib.
60987         Check for REG_STARTEND of recent libc.
60988         Rename local variables from jm_* to gl_*.
60989         Quote operand of "test -f".
60990         Say "recent enough" version of libc, not "version 2".
60991         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
60992         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
60993         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
60994         Remove check for btowc, isascii.
60995         Require AM_LANGINFO_CODESET.
60996
60997 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60998
60999         * lib/regex.c, regex.h: Sync from libc.
61000         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61001         * lib/regexec.c:
61002         New files, synced from libc, except that regex_internal.h
61003         currently has a small porting fix.
61004
61005 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61006
61007         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61008         regex_internal.c, regexec.c.
61009         Add regex_internal.h too, but as a comment, since the libc version
61010         is currently broken in gnulib mode.
61011
61012 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61013
61014         Support programs like Emacs that use gnulib but not gettext.
61015         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61016         * modules/gettext-h: New file.
61017         * modules/gettext (Files): Remove lib/gettext.h.
61018         (Depends-on): Add gettext-h.
61019         (Makefile.am): Remove lib_SOURCES.
61020         * modules/argmatch, modules/c-stack, modules/closeout:
61021         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61022         * modules/execute, modules/file-type, modules/getaddrinfo:
61023         * modules/getopt, modules/human, modules/javacomp:
61024         * modules/javaexec, modules/mkdir-p, modules/obstack:
61025         * modules/openat, modules/pagealign_alloc, modules/pipe:
61026         * modules/quotearg, modules/regex, modules/rpmatch:
61027         * modules/unicodeio, modules/userspec, modules/version-etc:
61028         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61029         * modules/xsetenv:
61030         Depend on gettext-h, not gettext.
61031
61032 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61033
61034         * gnulib-tool (func_import): Add support for 'public domain' license.
61035         * modules/alloca, modules/atexit, modules/memmove:
61036         Now public domain, not GPL.
61037         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61038         * modules/realloc, modules/strerror, modules/strtod:
61039         Now LGPL, not GPL.
61040
61041 2005-07-05  Bruno Haible  <bruno@clisp.org>
61042
61043         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61044         autoconf CVS. Needed for mingw.
61045
61046 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61047
61048         Remove the dependency of the strftime module on the tzset module.
61049         * modules/strftime (Depends-on): Remove dependency on tzset.
61050
61051 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61052
61053         Remove the dependency of the strftime module on the tzset module.
61054         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
61055         gl_FUNC_TZSET_CLOBBER.
61056
61057 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61058
61059         Remove the dependency of the strftime module on the tzset module.
61060         * lib/strftime.c (my_strftime)
61061         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
61062         Copy the input structure, to work around some of the bug with
61063         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
61064         Solaris releases, you should also use the tzset module, but we won't
61065         require it as a dependency any more since we don't want LGPLed code
61066         to depend on GPLed code.
61067
61068 2005-07-02  Jim Meyering  <jim@meyering.net>
61069
61070         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61071         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61072         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61073         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61074
61075 2005-07-02  Jim Meyering  <jim@meyering.net>
61076
61077         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61078
61079 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61080
61081         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61082         declares only 'struct timespec;' (!).
61083
61084 2005-07-01  Jim Meyering  <jim@meyering.net>
61085
61086         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61087         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61088         * lib/save-cwd.c, tempname.c:
61089         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61090         and don't include <sys/file.h>).
61091
61092 2005-06-29  Jim Meyering  <jim@meyering.net>
61093
61094         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61095         type name.  Use the variable name instead.
61096         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61097         Likewise.
61098
61099 2005-06-28  Simon Josefsson  <jas@extundo.com>
61100
61101         * modules/check-version (Files): Add check-version.m4.
61102
61103 2005-06-28  Simon Josefsson  <jas@extundo.com>
61104
61105         * m4/check-version.m4: New file, suggested by Jim Meyering
61106         <jim@meyering.net>.
61107
61108 2005-06-28  Simon Josefsson  <jas@extundo.com>
61109
61110         * lib/check-version.h, lib/check-version.c: New files.
61111
61112 2005-06-28  Simon Josefsson  <jas@extundo.com>
61113
61114         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61115         collision with global variable.  Better indentation.  Don't
61116         increment buffer pointer beyond buffer end.  Based on comments
61117         from Paul Eggert <eggert@cs.ucla.edu>.
61118
61119         * lib/base64.h: Indent.
61120
61121 2005-06-28  Simon Josefsson  <jas@extundo.com>
61122
61123         * doc/gnulib.texi (Library version handling): New section.
61124
61125 2005-06-28  Jim Meyering  <jim@meyering.net>
61126
61127         * check-module (find_included_lib_files): Hard-code another
61128         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61129         but modules/fts-lgpl (correctly) does not list those files.
61130
61131         * modules/canonicalize (Files): Add lib/pathmax.h.
61132
61133 2005-06-25  Simon Josefsson  <jas@extundo.com>
61134
61135         * modules/check-version: New file.
61136
61137 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61138
61139         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61140         initializer of struct addrinfo, as an indication that we don't
61141         care how many members the structure has.
61142
61143 2005-06-24  Derek Price  <derek@ximbiot.com>
61144         and Bruno Haible  <bruno@clisp.org>
61145
61146         Remove stat module & update lstat.
61147         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61148         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61149         * m4/stat.m4: Remove this file.
61150
61151 2005-06-24  Derek Price  <derek@ximbiot.com>
61152         and Bruno Haible  <bruno@clisp.org>
61153
61154         Remove stat module & update lstat.
61155         * lib/stat.c: Remove this file...
61156         (slash_aware_lstat): ...moving this content and its support...
61157         * lib/lstat.c (rpl_lstat): ...into here.
61158         * lib/lstat.h: New file.
61159
61160 2005-06-24  Derek Price  <derek@ximbiot.com>
61161         and Bruno Haible  <bruno@clisp.org>
61162
61163         Remove stat module & update lstat.
61164         * config/srclist.txt (libc sources): Remove stat.
61165
61166 2005-06-24  Derek Price  <derek@ximbiot.com>
61167         and Bruno Haible  <bruno@clisp.org>
61168
61169         Remove stat module & update lstat.
61170         * MODULES.html.sh (stat): Remove.
61171         * MODULES.html: Regenerated.
61172         * modules/lstat (Description): Correct function name.
61173         (Files): Add "lstat.h".
61174         (Depends-on): Remove stat, add xalloc, stat-macros.
61175         * modules/stat: Remove this file.
61176         (Include): Add "lstat.h", remove <sys/stat.h>.
61177
61178 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61179
61180         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61181         (ranged_convert): Don't save conversion in a temporary struct.
61182         This causes a warning with GCC 4.0.0, and anyway in the typical
61183         case it's not worth the extra 100 bytes or so of code.
61184         (ranged_convert, __mktime_internal): When calling a function via a
61185         pointer P, use P () rather than (*P) (), as we now assume C89 or
61186         better.
61187
61188 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61189
61190         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61191         "who -r" failed to give output.  Problem reported by Tim Waugh.
61192
61193         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61194         (xcalloc): Use it to avoid needless tests.
61195         Problem reported by Jim Meyering.
61196
61197 2005-06-20  Derek Price  <derek@ximbiot.com>
61198
61199         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61200         unnecessary for Autoconfs > 2.59c.
61201
61202 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61203
61204         * lib/argp.h (__option_is_short): Check upper limit of
61205         __key. Isprint() requires its argument to have the value
61206         of an unsigned char or EOF.
61207
61208 2005-06-16  Jim Meyering  <jim@meyering.net>
61209
61210         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61211         when either N or S is zero.
61212
61213 2005-06-16  Derek Price  <derek@ximbiot.com>
61214
61215         * m4/bison.m4: Declare YACC & YFLAGS precious.
61216
61217 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61218
61219         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61220         multibyte string or pattern, fall back on unibyte matching.
61221         Problem reported by James Youngman.
61222
61223 2005-06-08  Bruno Haible  <bruno@clisp.org>
61224
61225         * modules/csharpcomp: New file.
61226         * MODULES.html.sh (C#): Add csharpcomp.
61227
61228 2005-06-08  Bruno Haible  <bruno@clisp.org>
61229
61230         * m4/csharpcomp.m4: New file, from GNU gettext.
61231
61232 2005-06-08  Bruno Haible  <bruno@clisp.org>
61233
61234         * lib/csharpcomp.h: New file, from GNU gettext.
61235         * lib/csharpcomp.c: New file, from GNU gettext.
61236         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61237
61238 2005-06-08  Bruno Haible  <bruno@clisp.org>
61239
61240         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61241         warning on mingw.
61242
61243 2005-06-07  Derek Price  <derek@ximbiot.com>
61244
61245         Sync from CVS.
61246         * lib/glob_.h: Indent nested #ifdef.
61247
61248 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61249
61250         Sync from coreutils.
61251         Use "file name" when talking about file names, instead of "filename"
61252         or "path", as per the GNU coding standards.
61253         * lib/mkdir-p.c: Renamed from makepath.c.
61254         (make_dir_parents): Renamed from make_path.  All callers changed.
61255         * lib/mkdir-p.h: Likewise.  All includers changed.
61256         * lib/filenamecat.c: Renamed from path-concat.c.
61257         (file_name_concat): Renamed from path_concat.  All callers changed.
61258         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61259         * lib/filenamecat.h: Likewise.  All includers changed.
61260         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61261         in comments or local variable names.
61262         * lib/basename.c: Likewise.
61263         * lib/canonicalize.c, canonicalize.h: Likewise.
61264         * lib/dirname.c, dirname.h: Likewise.
61265         * lib/euidaccess.c: Likewise.
61266         * lib/exclude.c: Likewise
61267         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61268         * lib/fsusage.c, fsuage.h: Likewise.
61269         * lib/fts.c, fts_.h: Likewise.
61270         * lib/getcwd.c: Likewise.
61271         * lib/getloadavg.c: Likewise.
61272         * lib/mkstemp.c: Likewise.
61273         * lib/mountlist.c, mountlist.h: Likewise.
61274         * lib/openat.c, openat.h: Likewise.
61275         * lib/readlink-stub.c: Likewise.
61276         * lib/readutmp.c, readutmp.h: Likewise.
61277         * lib/rename.c: Likewise.
61278         * lib/rmdir.c: Likewise.
61279         * lib/same.c: Likewise.
61280         * lib/savedir.c: Likewise.
61281         * lib/stripslash.c: Likewise.
61282         * lib/tempname.c: Likewise.
61283         * lib/xreadlink.c: Likewise.
61284         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61285         All uses changed.
61286         * lib/exclude.h: Likewise.
61287
61288         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61289         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61290         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61291         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61292         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61293         files have been getting away with it for years (MORE/BSD 4.3
61294         is extinct now).
61295         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61296         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61297
61298         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61299         Define to 256, not 255, as per modern POSIX.
61300
61301 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61302
61303         Sync from coreutils.
61304         Use "file name" when talking about file names, instead of "filename"
61305         or "path", as per the GNU coding standards.
61306         * MODULES.html.sh: mkdir-p renamed from makepath.
61307         filenamecat renamed from path-concat.
61308         * modules/filenamecat: Renamed from modules/path-concat.
61309         (Files): filenamecat.h and filenamecat.c renamed from
61310         path-concat.h and path-concat.c.
61311         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61312         (Include): filenamecat.h, not path-concat.h.
61313         * modules/mkdir-p: Renamed from modules/makepath.
61314         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61315         makepath.c.
61316         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61317         (Include): mkdir-p.h, not makepath.h.
61318
61319 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61320
61321         Sync from coreutils.
61322         * m4/mkdir-p.m4: Renamed from makepath.m4.
61323         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61324         Rename files from makepath.c to mkdir-p.c, and from
61325         makepath.h to mkdir-p.h.
61326         * m4/filenamecat.m4: Renamed from path-concat.m4.
61327         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61328         Rename files from path-concat.c to filenamecat.c,
61329         and from path-concat.h to filenamecat.h.
61330         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61331         "file name" in local variables or comments.
61332         * m4/rename.m4: Likewise.
61333
61334 2005-06-01  Bruno Haible  <bruno@clisp.org>
61335
61336         * modules/csharpexec: New file.
61337         * MODULES.html.sh (C#): New section.
61338
61339 2005-06-01  Bruno Haible  <bruno@clisp.org>
61340
61341         * m4/csharp.m4: New file, from GNU gettext.
61342         * m4/csharpexec.m4: New file, from GNU gettext.
61343
61344 2005-06-01  Bruno Haible  <bruno@clisp.org>
61345
61346         * lib/csharpexec.h: New file, from GNU gettext.
61347         * lib/csharpexec.c: New file, from GNU gettext.
61348         * lib/csharpexec.sh.in: New file, from GNU gettext.
61349
61350 2005-05-31  Derek Price  <derek@ximbiot.com>
61351             Paul Eggert  <eggert@cs.ucla.edu>
61352
61353         Sync from cvs.
61354         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61355
61356 2005-05-31  Derek Price  <derek@ximbiot.com>
61357             Paul Eggert  <eggert@cs.ucla.edu>
61358
61359         Sync from cvs.
61360         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61361
61362 2005-05-29  Derek Price  <derek@ximbiot.com>
61363
61364         * config/srclist.txt (glob_.h, glob.c): Add these files.
61365
61366 2005-05-29  Derek Price  <derek@ximbiot.com>
61367
61368         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61369         * modules/glob: New file.
61370         * modules/getlogin_r: Add link to POSIX spec in description.
61371
61372 2005-05-29  Derek Price  <derek@ximbiot.com>
61373             Paul Eggert  <eggert@cs.ucla.edu>
61374
61375         * m4/glob.m4: New file.
61376
61377 2005-05-29  Derek Price  <derek@ximbiot.com>
61378             Paul Eggert  <eggert@cs.ucla.edu>
61379
61380         * lib/glob_.h, lib/glob.c: New files.
61381
61382 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61383
61384         * modules/fts (Files): Remove m4/inttypes-pri.m4.
61385         * modules/fts-lgpl (Depends-on): Remove gettext.
61386
61387 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61388
61389         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
61390         and don't require gt_INTTYPES_PRI.
61391
61392 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61393
61394         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
61395
61396         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
61397         the configuration hassle isn't worth it.
61398         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
61399         (LONGEST_MODIFIER, PRIuMAX): Remove.
61400
61401 2005-05-27  Bruno Haible  <bruno@clisp.org>
61402
61403         * lib/getlogin_r.h: Remove second include of <stddef.h>.
61404
61405 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
61406
61407         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
61408         _POSIX_PTHREAD_SEMANTICS for Solaris.
61409
61410 2005-05-25  Derek Price  <derek@ximbiot.com>
61411
61412         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
61413
61414 2005-05-25  Derek Price  <derek@ximbiot.com>
61415             Paul Eggert  <eggert@cs.ucla.edu>
61416
61417         * modules/getlogin_r, m4/getlogin_r.m4: New files.
61418         * lib/getlogin_r.c, getlogin_r.h: New files.
61419
61420 2005-05-25  Bruno Haible  <bruno@clisp.org>
61421             Derek Price  <derek@ximbiot.com>
61422
61423         * lib/getlogin_r.h: Simplify API documentation.
61424
61425 2005-05-23  Derek Price  <derek@ximbiot.com>
61426
61427         * modules/minmax (Files): Add m4/minmax.m4.
61428         (configure.ac): Add gl_MINMAX.
61429
61430 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61431
61432         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
61433         so that unistd-safer.h (GPL'ed code) need not be included.
61434
61435 2005-05-22  Bruno Haible  <bruno@clisp.org>
61436
61437         * m4/minmax.m4: New file.
61438         Based on a patch by Derek Price <derek@ximbiot.com>.
61439
61440 2005-05-22  Bruno Haible  <bruno@clisp.org>
61441
61442         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
61443         (INT64_MIN): Fix definition.
61444         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
61445
61446         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
61447         NEED_SIGNED_INT_TYPES.
61448
61449         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
61450         HAVE_SYSTEM_INTTYPES.
61451
61452 2005-05-22  Bruno Haible  <bruno@clisp.org>
61453
61454         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61455         Also include <sys/param.h> if it defines MIN, MAX.
61456         Based on a patch by Derek Price <derek@ximbiot.com>.
61457
61458 2005-05-21  Jim Meyering  <jim@meyering.net>
61459
61460         * modules/fts (Files): Add m4/inttypes-pri.m4.
61461         (Depends-on): Add lstat and remove gettext.  Alphabetize.
61462
61463 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61464
61465         New fts module.
61466         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
61467         (setup_dir, free_dir): New functions.
61468         (enter_dir, leave_dir): Define trivial
61469         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
61470         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
61471         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
61472         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
61473         Move to fts-cycle.c.
61474         (fts_open): Use setup_dir.
61475         (fts_close): Use free_dir.
61476         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
61477         This adds a label and some gotos, but the alternatives were messier.
61478         Check for memory allocation failure when entering a dir.
61479         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
61480         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
61481         (FTS): New member fts_cycle, that is a union that contains the
61482         old active_dir_ht and cycle_state.  All uses changed to mention
61483         fts_cycle.ht and fts_cycle.state.
61484         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
61485         fts.c, with the following changes:
61486         (setup_dir, free_dir): New functions.
61487         (enter_dir): Now returns bool.  Return true if successful, false
61488         if memory exhausted.  All callers changed.
61489         Do not bother partly cleaning up on
61490         memory allocation failure; that is free_dir's job.
61491         However, free ad if hash_insert fails, to avoid memory leak.
61492         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
61493         fts->fts_options to see which union member to use.
61494
61495 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61496
61497         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
61498         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
61499
61500 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61501
61502         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
61503
61504 2005-05-20  Jim Meyering  <jim@meyering.net>
61505
61506         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
61507         Now a macro, to pacify GCC.
61508
61509 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61510
61511         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
61512         of -1.
61513
61514 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61515
61516         * lib/chown.c (rpl_chown): Return -1 on failure.
61517
61518 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61519
61520         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
61521         Don't check for stddef.h.
61522         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
61523         don't use its results.
61524         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
61525         since we include them unconditionally.  Don't require
61526         AM_STDBOOL_H, since stdbool is a prerequisite.
61527         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
61528         since we assume C89 or better.
61529         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
61530         as we don't use their results.
61531         Don't check for fchdir, memmove, memset, strrchr, as we use
61532         them unconditionally.
61533         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
61534         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
61535
61536 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
61539         Include <stddef.h> unconditionally, since we assume C89 now.
61540         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
61541         * lib/fts.c: Include fts_.h first, to check interface.
61542         Do not include intprops.h; no longer needed.
61543         Include cycle-check.h and hash.h, since fts_.h no longer does.
61544         Remove unnecessary casts of closedir to void.
61545         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
61546         decide whether to decrement nlinks.
61547         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
61548         (FTS): Use struct hash_table * instead of Hash_table, so that
61549         we no longer need to include hash.h here.
61550
61551 2005-05-18  Jim Meyering  <jim@meyering.net>
61552
61553         * modules/dirfd (License): Change to LGPL.  Most of the code
61554         is already in the public domain.
61555
61556 2005-05-18  Jim Meyering  <jim@meyering.net>
61557
61558         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
61559         Reported by Yoann Vandoorselaere.
61560
61561 2005-05-17  Jim Meyering  <jim@meyering.net>
61562
61563         * m4/fts.m4: New file, from coreutils.
61564
61565 2005-05-17  Jim Meyering  <jim@meyering.net>
61566
61567         * lib/fts.c, lib/fts_.h: New files, from coreutils.
61568
61569 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61570
61571         Sync from coreutils.
61572         * m4/unlinkdir.m4: New file.
61573
61574 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61575
61576         Sync from coreutils.
61577         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
61578         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
61579         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
61580         White space changes only.
61581         * lib/makepath.c (make_path): Port to hosts where leading "//" is
61582         special.
61583         * lib/yesno.c: Include getline.h, not ctype.h.
61584         (yesno): Don't remove leading white space; POSIX doesn't allow it.
61585         Use getline to remove arbitrary restriction on response length.
61586
61587 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61588
61589         * config/srclist-update: Spell out "Street" in FSF postal
61590         mail address; this is the style the FSF seems to prefer.
61591
61592         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
61593         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
61594         this updates FSF postal mail address.
61595
61596         Sync from coreutils.
61597         * modules/unlinkdir: New file.
61598         * modules/yesno (Depends-on): Add getline.
61599         * MODULES.html.sh (File system functions): Add unlinkdir.
61600
61601 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61602
61603         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
61604         lib/strsep.h:
61605         Change the initial comment to refer to GPL, not LGPL.
61606         gnulib-tool will change it to LGPL as needed.
61607
61608         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
61609         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
61610         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
61611         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
61612         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
61613         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
61614         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
61615         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
61616         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
61617         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
61618         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
61619         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
61620         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
61621         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
61622         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
61623         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
61624         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
61625         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
61626         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
61627         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
61628         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
61629         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
61630         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
61631         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
61632         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
61633         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
61634         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
61635         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
61636         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
61637         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
61638         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
61639         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
61640         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
61641         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
61642         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
61643         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
61644         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
61645         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
61646         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
61647         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
61648         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
61649         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
61650         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
61651         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
61652         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
61653         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
61654         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
61655         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
61656         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
61657         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
61658         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61659         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
61660         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
61661         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
61662         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
61663         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
61664         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
61665         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
61666         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
61667         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
61668         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
61669         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
61670         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
61671         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
61672         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
61673         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
61674         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
61675         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
61676         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
61677         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
61678         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
61679         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
61680         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
61681         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
61682         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
61683         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
61684         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
61685         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
61686         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
61687         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
61688         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
61689         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
61690         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
61691         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
61692         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
61693         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
61694         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
61695         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
61696         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
61697         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
61698         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
61699         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
61700         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
61701         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
61702         lib/yesno.c, lib/yesno.h:
61703         Update FSF postal mail address.
61704
61705 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61706
61707         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
61708         tests/test-memmem.c, tests/test-stpncpy.c:
61709         Update FSF postal mail address.
61710
61711 2005-05-13  Bruno Haible  <bruno@clisp.org>
61712
61713         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
61714         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
61715         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
61716         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
61717         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
61718         Add support for 64-bit integers in the MSVC compiler.
61719
61720 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61721
61722         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
61723
61724 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
61725
61726         * gnulib-tool (func_import): Sort and uniquify recommended includes.
61727
61728 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
61729
61730         * doc/getdate.texi (General date syntax): Don't say that date
61731         date --iso-8601=ns generates acceptable dates; it doesn't yet.
61732         Problem reported by Nic Ferrier.
61733
61734 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61735
61736         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
61737         specified in ai_socktype. Fix invalid ai_protocol
61738         check. ai_protocol is usually set to 0 or depending on
61739         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
61740         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
61741         ai_socktype / ai_protocol in the returned addrinfo structure.
61742
61743 2005-05-10  Simon Josefsson  <jas@extundo.com>
61744
61745         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
61746         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61747
61748 2005-05-10  Karl Berry  <karl@gnu.org>
61749
61750         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
61751         (from http://www.gnu.org/licenses).
61752         * doc/COPYING.LIB: also rename to COPYING.LESSER.
61753         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
61754         fdl.texi suffices.
61755
61756 2005-05-10  Karl Berry  <karl@gnu.org>
61757
61758         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
61759         (COPYING.DOC): remove.
61760
61761         * config/srclist-update: new FSF address.
61762
61763 2005-05-10  Derek Price  <derek@ximbiot.com>
61764
61765         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
61766         possible.
61767
61768 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61769             Bruno Haible  <bruno@clisp.org>
61770
61771         * modules/inet_ntop: New file.
61772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61773         inet_ntop.
61774
61775 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61776             Bruno Haible  <bruno@clisp.org>
61777
61778         * m4/inet_ntop.m4: New file.
61779
61780 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61781             Bruno Haible  <bruno@clisp.org>
61782
61783         * lib/inet_ntop.h: New file.
61784         * lib/inet_ntop.c: New file, from glibc with modifications.
61785
61786 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
61787
61788         * modules/time_r (License): Change to LGPL.
61789         * modules/extensions (License): Change to LGPL.  Actually,
61790         the license is more permissive than that, but currently gnulib-tool
61791         doesn't know how to handle more-permissive licenses.
61792
61793         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
61794         Problem reported by Dave Love.
61795
61796 2005-05-08  Jim Meyering  <jim@meyering.net>
61797
61798         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
61799         blank.
61800
61801 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61802
61803         * modules/argmatch (Depends-on): Add stdbool.
61804         * modules/backupfile (Depends-on): Likewise.
61805         * modules/chdir-long (Depends-on): Likewise.
61806         * modules/closeout (Depends-on): Likewise.
61807         * modules/cycle-check (Depends-on): Likewise.
61808         * modules/dirname (Depends-on): Likewise.
61809         * modules/fnmatch (Depends-on): Likewise.
61810         * modules/fsusage (Depends-on): Likewise.
61811         * modules/fwriteerror (Depends-on): Likewise.
61812         * modules/getcwd (Depends-on): Likewise.
61813         * modules/getloadavg (Depends-on): Likewise.
61814         * modules/hard-locale (Depends-on): Likewise.
61815         * modules/makepath (Depends-on): Likewise.
61816         * modules/mountlist (Depends-on): Likewise.
61817         * modules/nanosleep (Depends-on): Likewise.
61818         * modules/posixtm (Depends-on): Likewise.
61819         * modules/quotearg (Depends-on): Likewise.
61820         * modules/readtokens (Depends-on): Likewise.
61821         * modules/readtokens0 (Depends-on): Likewise.
61822         * modules/readutmp (Depends-on): Likewise.
61823         * modules/save-cwd (Depends-on): Likewise.
61824         * modules/strftime (Depends-on): Likewise.
61825         * modules/userspec (Depends-on): Likewise.
61826         * modules/utimecmp (Depends-on): Likewise.
61827         * modules/xgetcwd (Depends-on): Likewise.
61828         * modules/xnanosleep (Depends-on): Likewise.
61829         * modules/xstrtod (Depends-on): Likewise.
61830         * modules/yesno (Depends-on): Likewise.
61831
61832 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
61833
61834         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
61835         needless checks.
61836
61837 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61838
61839         Merge from coreutils.  Among other things,
61840         add bulletproofing for cases where stdin, stdout, or stderr are closed.
61841         * lib/fd-safer.c: New file.
61842         * lib/fcntl-safer.h, open-safer.c: Remove.
61843         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
61844         * lib/dup-safer.c: Include unistd-safer.h first.
61845         Don't include errno.h.
61846         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
61847         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
61848         * lib/file-type.c: Rely on file-type.h change.
61849         * lib/getloadavg.c: Include unistd-safer.h.
61850         (getloadavg): Use safer open.
61851         * lib/getusershell.c: Include "stdio-safer.h".
61852         (getusershell): Use safer fopen.
61853         * lib/long-options.c (long_options): Use NULL rather than 0.
61854         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
61855         'free'.
61856         * lib/modechange.c: Likewise.
61857         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
61858         (MODE_DONE): New constant.
61859         (struct mode_change): Remove 'next' member.
61860         (make_node_op_equals): New function; like the old one of the
61861         same name, except it allocates an array.
61862         (mode_compile, mode_create_from_ref): Use it.
61863         (mode_compile): Allocate result as an array, not a linked list.
61864         Parse octal string ourself, so that we catch mistakes like "+0".
61865         (mode_adjust): Arg is an array, not a linked list.
61866         * lib/modechange.c: Include stat-macros.h, xalloc.h.
61867         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
61868         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
61869         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
61870         Remove.  This is now stat-macros.h's job.
61871         (talloc): Remove.  All callers replaced by xalloc, so that
61872         our invokers don't have to worry about reporting memory failures.
61873         (make_node_op_equals): Remove.
61874         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61875         New constants.
61876         (struct mode_change): Moved here from modechange.h.
61877         (mode_append_entry): Remove.
61878         (mode_compile): Remove MASKED_OPS arg, since it encouraged
61879         apps to have incorrect behavior.  Use simpler algorithm for head
61880         and tail.  Don't futz with umask; that's now the job of mode_adjust.
61881         Detect more invalid usages rather than having somewhat-random behavior.
61882         Don't insert an "a=" action, as that leads to incorrect behavior.
61883         (mode_compile, mode_create_from_ref): Return NULL on error instead
61884         of an enum, since now there's only one way to have an error.  All
61885         callers changed.
61886         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
61887         at the correct time.  Simplify calculation of "+u" and its ilk.
61888         Don't mishandle "+X".
61889         (mode_free): Remove "register" and localize decls.
61890         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61891         (struct mode_change): Move to modechange.c; callers don't
61892         need to see this stuff.
61893         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
61894         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
61895         (mode_change, mode_adjust): Reflect the new signatures noted above.
61896         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
61897         that might redefine system include files.
61898         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
61899         (my_usleep): Use NULL rather than (void *) 0.
61900         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
61901         Use siginterrupt to specify that system calls should be interrupted.
61902         (rpl_nanosleep): Move initialization of suspended closer to call of
61903         my_usleep.
61904         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
61905         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
61906         (desirable_utmp_entry): New function.
61907         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
61908         using x2nrealloc, to simplify logic.
61909         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
61910         size calculation.  Do not assume utmp file is a regular file.
61911         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
61912         (READ_UTMP_CHECK_PIDS): New constant.
61913         * lib/save-cwd.c: Include unistd-safer.h.
61914         (save_cwd): Use fd_safer.
61915         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
61916         [!_LIBC] Include "stat-macros.h" instead.
61917         * lib/unistd-safer.h (fd_safer): New decl.
61918
61919 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61920
61921         * modules/getloadavg (Depends-on): Add unistd-safer.
61922         * modules/getusershell (Depends-on): Add stdio-safer.
61923         * modules/lstat (Depends-on): Remove xalloc.
61924         * modules/mkstemp (Depends-on): Add stat-macros.
61925         * modules/modechange (Depends-on): Remove xstrtol.
61926         Add stat-macros, xalloc.
61927         * modules/save-cwd (Depends-on): Add unistd-safer.
61928         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
61929         * modules/unistd-safer (Files): Add lib/fd-safer.c
61930         (Makefile.am): Remove lib_SOURCES.
61931
61932         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
61933         Remove fcntl-safer; unistd-safer supersedes it.
61934
61935 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61936
61937         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
61938         AC_HEADER_STAT.
61939         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
61940         (gl_PREREQ_CHOWN): Remove.
61941         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
61942         it.  Don't require AC_HEADER_STAT.
61943         (gl_PREREQ_LSTAT): Remove.
61944         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
61945         Don't require AC_HEADER_STAT.
61946         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
61947         (gl_PREREQ_RMDIR): Remove.
61948         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
61949         mention stat-macros.h or AC_HEADER_STAT, since we'll make
61950         the stat-macros module a prerequisite.
61951         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
61952         * m4/filemode.m4 (gl_FILEMODE): Likewise.
61953         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
61954         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
61955         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
61956         variable names.
61957         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
61958         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
61959         variable prefixes.
61960         * m4/fcntl-safer.m4: Remove.
61961         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
61962         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
61963         Invoke gl_PREREQ_FD_SAFER.
61964         (gl_PREREQ_FD_SAFER): New macro.
61965         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
61966         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
61967         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
61968         Remove duplicate call to AC_LIBOBJ(readutmp).
61969         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
61970
61971         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
61972         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
61973
61974 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61975
61976         * MODULES.html.sh (Misc): Add byteswap.
61977
61978 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61979
61980         * modules/getcwd (Depends-on): Add extensions.
61981         * modules/openat (Depends-on): Likewise.
61982
61983 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61984
61985         * modules/byteswap: New file.
61986
61987 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61988
61989         * m4/byteswap.m4: New file.
61990
61991 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61992
61993         * lib/byteswap_.h: New file.
61994
61995 2005-04-25  Karl Berry  <karl@gnu.org>
61996
61997         * m4/gettext.m4: Update from GNU gettext 0.14.4.
61998
61999 2005-04-25  Albert Chin  <china@thewrittenword.com>
62000
62001         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62002         Toolkit C bug.
62003
62004 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62005
62006         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62007         (func_ln_if_changed) Remove forcibly for no error message
62008         in case file does not exist.
62009
62010 2005-04-19  Simon Josefsson  <jas@extundo.com>
62011
62012         * gnulib-tool (Options): Make --symlink mean --symbolic.
62013
62014 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62015
62016         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62017
62018 2005-04-16  Simon Josefsson  <jas@extundo.com>
62019
62020         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62021
62022 2005-04-15  Simon Josefsson  <jas@extundo.com>
62023
62024         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62025
62026 2005-04-15  Simon Josefsson  <jas@extundo.com>
62027
62028         * gnulib-tool: Rename --symlink to --symbolic.
62029
62030 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62031
62032         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62033         symbolic links to files instead of copying/moving.  Add --aux-dir,
62034         specifying directory relative --dir where auxiliary build tools
62035         are placed.
62036
62037 2005-04-14  Bruno Haible  <bruno@clisp.org>
62038
62039         * modules/allocsa (License): Change to LGPL.
62040         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62041
62042 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62043
62044         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62045         that "UTC +1 second" continues to work.  Problem reported
62046         by Dmitry V. Levin.
62047         (relunit_snumber): New rule.
62048         (relunit): Use it.
62049
62050 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62051
62052         * lib/getdate.y (universal_time_zone_table): New constant.
62053         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
62054         universal_time_zone_table.
62055         (lookup_zone): Prefer universal_time_zone_table to
62056         local_time_zone_table, so that "GMT" time stamps are allowed in
62057         London during the summer.  Problem reported by Ian Abbott.
62058
62059 2005-04-12  Jim Meyering  <jim@meyering.net>
62060
62061         * lib/human.c (humblock): Set *options even when returning due to
62062         xstrtoumax conversion failure.  Thanks to a used-uninitialized
62063         warning from gcc-4.
62064
62065 2005-04-09  Jim Meyering  <jim@meyering.net>
62066
62067         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62068         -Wuninitialized: initialize tm0.tm_year.
62069
62070 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62073         count, since there's no maximum.  All uses changed.
62074         Add member dsts_seen.
62075         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62076         not being INT_MAX.
62077         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62078         Use pc_rels_seen to decide whther a date is absolute.
62079
62080         * lib/getdate.y (number): Don't overwrite year.
62081         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62082         check.
62083
62084 2005-04-02  Simon Josefsson  <jas@extundo.com>
62085
62086         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62087         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62088
62089 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62090
62091         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62092         where no absolute path name can be longer than PATH_MAX.
62093
62094 2005-03-27  Jim Meyering  <jim@meyering.net>
62095
62096         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62097
62098 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62099
62100         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62101         "one's complement" -> "ones' complement" in comment, as per Knuth.
62102         "value of type" -> "type or expression" in comment.
62103         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62104
62105 2005-03-26  Jim Meyering  <jim@meyering.net>
62106
62107         Comment nits.
62108         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62109         Correct typos: s/or/of/.
62110
62111 2005-03-26  Jim Meyering  <jim@meyering.net>
62112
62113         * modules/check-include-files: Move to ../ and rename to...
62114         * check-module: ...this.
62115
62116 2005-03-25  Jim Meyering  <jim@meyering.net>
62117
62118         * modules/xvasprintf (Files): Add xalloc.h.
62119
62120 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62121
62122         * modules/gettext (Files): config/config.rpath ->
62123         build-aux/config.rpath
62124         * modules/iconv (Files): Likewise.
62125         Problem reported by Oskar Liljeblad.
62126
62127 2005-03-23  Jim Meyering  <jim@meyering.net>
62128
62129         * modules/check-include-files: New script to check for
62130         missing dependencies, multiple includes, etc.
62131
62132         * modules/c-strtold (Depends-on): Add xalloc.
62133         * modules/c-strtod (Depends-on): Add xalloc.
62134         * modules/hash (Depends-on): Add xalloc.
62135         (Files): Remove lib/xalloc.h.
62136
62137         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62138         * modules/userspec (Files): Add lib/inttostr.h.
62139
62140 2005-03-23  Jim Meyering  <jim@meyering.net>
62141
62142         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62143
62144 2005-03-22  Jim Meyering  <jim@meyering.net>
62145
62146         * modules/stat-macros: New module.
62147         * modules/canonicalize, modules/euidaccess, modules/file-type,
62148         * modules/filemode, modules/lchown, modules/makepath,
62149         * modules/rmdir, modules/stat: Depend on new stat-macros module
62150         rather than listing lib/stat-macros.h manually.
62151         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62152
62153 2005-03-22  Jim Meyering  <jim@meyering.net>
62154
62155         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62156
62157 2005-03-22  Bruno Haible  <bruno@clisp.org>
62158
62159         * config/srclist.txt: Replace target directory 'config' with
62160         'build-aux'.
62161         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62162         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62163         ../build-aux/.
62164
62165 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62166
62167         * modules/chdir-long (Depends-on): Add mempcpy.
62168
62169         * modules/acl, modules/backupfile, modules/c-strtod,
62170         modules/c-strtold, modules/canon-host, modules/canonicalize,
62171         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62172         modules/exclude, modules/exitfail, modules/file-type,
62173         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62174         modules/getdate, modules/getline, modules/getpagesize,
62175         modules/getpass, modules/getugroups, modules/group-member,
62176         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62177         modules/inttostr, modules/long-options, modules/makepath,
62178         modules/md5, modules/memcasecmp, modules/memcoll,
62179         modules/modechange, modules/mountlist, modules/path-concat,
62180         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62181         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62182         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62183         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62184         modules/strftime, modules/strndup, modules/strverscmp,
62185         modules/timespec, modules/unlocked-io, modules/userspec,
62186         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62187         modules/yesno:
62188         Remove lib_SOURCES line from Makefile.am section, as this is now
62189         done automatically by the corresponding Autoconf macro.
62190
62191 2005-03-21  Jim Meyering  <jim@meyering.net>
62192
62193         Changes imported from coreutils.
62194
62195         * lib/cycle-check.c: Don't include xalloc.h.
62196
62197         * lib/path-concat.c: Don't include assert.h.
62198         (path_concat): Remove assertion that would have triggered
62199         for ABASE starting with more than one slash.
62200         Reported by Andreas Schwab.
62201
62202         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62203         properly when ABASE is an absolute file name.
62204         Correct the description of this function.
62205         Include <assert.h>.
62206         Add an assertion and a test driver.
62207         This fixes a bug introduced on 2004-07-02.
62208         Andreas Schwab reported the resulting failure of cp --parents:
62209         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62210
62211 2005-03-21  Jim Meyering  <jim@meyering.net>
62212
62213         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62214         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62215
62216 2005-03-21  Jim Meyering  <jim@meyering.net>
62217         and  Paul Eggert  <eggert@cs.ucla.edu>
62218
62219         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62220         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62221         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62222         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62223         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62224         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62225         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62226         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62227         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62228         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62229         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62230         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62231         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62232         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62233         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62234         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62235         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62236         for these modules.
62237
62238 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62239
62240         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62241         (which shouldn't happen), generate nothing instead of returning 0
62242         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62243
62244 2005-03-16  Bruno Haible  <bruno@clisp.org>
62245
62246         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62247         HAVE_LONGLONG_64BIT.
62248
62249 2005-03-16  Bruno Haible  <bruno@clisp.org>
62250
62251         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62252         HAVE_LONGLONG_64BIT.
62253
62254 2005-03-16  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62257         HAVE_LONGLONG_64BIT.
62258
62259 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62260
62261         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62262         reliably distinguish strftime failure from empty output on POSIX
62263         hosts.
62264
62265 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62266
62267         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62268         (iconv_string): Don't guess a size-zero buffer, as that might cause
62269         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62270         result would be 'too large', where 'too large' is (heuristically)
62271         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62272         overflow concerns.  This will prevent some unwanted malloc failures
62273         when the inputs are very large.
62274
62275 2005-03-15  Karl Berry  <karl@gnu.org>
62276
62277         * config/srclist.txt (config.rpath): from gettext.
62278         * config/config.rpath: update.
62279
62280 2005-03-15  Bruno Haible  <bruno@clisp.org>
62281
62282         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62283         to 'negate'.
62284
62285         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62286         variable.
62287
62288         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62289         results.
62290
62291 2005-03-14  Simon Josefsson  <jas@extundo.com>
62292
62293         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62294         <fx@gnu.org>.
62295
62296 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62299         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62300         intprops.h.
62301         * lib/strtol.c: Likewise.
62302
62303 2005-03-14  Jim Meyering  <jim@meyering.net>
62304
62305         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62306         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62307         to be nonzero so that we (and caller) can detect the difference
62308         between a valid zero-length expansion and an error return, even
62309         when the underlying strftime fails before writing anything into
62310         that location.
62311
62312 2005-03-14  Bruno Haible  <bruno@clisp.org>
62313
62314         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62315         Update from GNU gettext 0.14.3.
62316
62317 2005-03-10  Jim Meyering  <jim@meyering.net>
62318
62319         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62320
62321 2005-03-10  Jim Meyering  <jim@meyering.net>
62322
62323         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62324         so that this module works on systems without fchdir.
62325
62326 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62327
62328         Factor int-properties macros into a single file, except for
62329         glibc-related files.
62330         * lib/intprops.h: New file.
62331         * lib/getloadavg.c: Include it instead of limits.h.
62332         (INT_STRLEN_BOUND): Remove.
62333         * lib/human.c: Include intprops.h.
62334         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62335         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62336         302/1000.
62337         * lib/inttostr.h: Include intprops.h instead of limits.h.
62338         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62339         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62340         for consistency with intprops.h.
62341         (time_t_is_integer, twos_complement_arithmetic): Use them.
62342         * lib/sig2str.h: Include <signal.h>, intprops.h.
62343         (INT_STRLEN_BOUND): Remove.
62344         * lib/strftime.c (TYPE_SIGNED): Remove.
62345         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62346         * lib/strtol.c: Adjust comments to match intprops.h.
62347         * lib/userspec.c: Include intprops.h.
62348         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62349         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62350         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62351         instead of rolling our own expressions.
62352         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62353
62354         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62355         instead of int.
62356         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62357         the right thing even if adding 1900 would overflow.  Similarly
62358         for tm_mon + 1 and tm_yday + 1.
62359         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62360         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62361         (DO_SIGNED_NUMBER): New macro.
62362         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62363
62364 2005-03-07  Bruno Haible  <bruno@clisp.org>
62365
62366         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62367
62368 2005-03-07  Bruno Haible  <bruno@clisp.org>
62369
62370         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62371
62372 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62373
62374         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62375         (func_import): Only replace files via --import when they have actually
62376         changed.
62377
62378 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62379
62380         * m4/mmap-anon.m4: New file.
62381         * m4/pagealign_alloc.m4: New file.
62382
62383 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62384             Bruno Haible  <bruno@clisp.org>
62385
62386         * modules/pagealign_alloc: New file.
62387         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
62388
62389 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62390             Bruno Haible  <bruno@clisp.org>
62391
62392         * lib/pagealign_alloc.h: New file.
62393         * lib/pagealign_alloc.c: New file.
62394
62395 2005-03-03  Bruno Haible  <bruno@clisp.org>
62396
62397         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
62398         Use an all-permissive copyright notice, recommended by RMS.
62399
62400 2005-03-02  Bruno Haible  <bruno@clisp.org>
62401
62402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
62403         of AIX, the replacement has to be done only after <string.h> is
62404         included, therefore not in config.h. stpncpy.h does the replacement,
62405         and stpncpy.c uses it.
62406
62407 2005-03-02  Bruno Haible  <bruno@clisp.org>
62408
62409         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
62410         stpncpy.c uses it.
62411
62412 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62413
62414         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
62415         The workaround isn't strictly needed for POSIX conformance, and
62416         it's too much of a pain to configure and maintain.  We'll ask
62417         people to fix their kernels instead.
62418         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
62419         (NANOSLEEP_BUG_WORKAROUND): Remove.
62420         (xnanosleep): Remove the workaround.
62421
62422 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62423
62424         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
62425         Reported by Derek Price.
62426         (Include): Add "timespec.h".
62427
62428         * modules/xnanosleep (Depends-on): Remove gethrxtime.
62429
62430 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
62433         to detect nanosleep bug.
62434
62435 2005-03-01  Bruno Haible  <bruno@clisp.org>
62436
62437         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
62438
62439 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62440
62441         * modules/gethrxtime: New file.
62442         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
62443         (Depends-on): Add gethrxtime.
62444         (configure.ac): Add gl_XNANOSLEEP.
62445         (Makefile.am): Remove lib_SOURCES line.
62446
62447 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62448
62449         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
62450         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62451
62452 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62453
62454         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62455         * lib/timespec.h (gettime): Return void, since it always
62456         succeeds now.  All uses changed.
62457         * lib/gettime.c (gettime) Likewise.
62458         [HAVE_NANOTIME]: Prefer nanotime.
62459         Assume gettimeofday succeeds, as POSIX requires.
62460         Assime time () succeeds, since other code already does.
62461         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
62462         (timespec_subtract): Remove.
62463         (NANOSLEEP_BUG_WORKAROUND): New constant.
62464         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
62465         things considerably.  Use it only on GNU/Linux hosts, since the
62466         workaround shouldn't be needed elsewhere.
62467
62468 2005-02-24  Bruno Haible  <bruno@clisp.org>
62469
62470         * modules/gettext (Files): Add m4/glibc2.m4.
62471
62472 2005-02-24  Bruno Haible  <bruno@clisp.org>
62473
62474         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
62475         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
62476         * m4/progtest.m4:
62477         Update from GNU gettext 0.14.2.
62478         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
62479
62480 2005-02-24  Bruno Haible  <bruno@clisp.org>
62481
62482         * lib/localcharset.c: Update from GNU gettext 0.14.2.
62483         * lib/config.charset: Update from GNU gettext 0.14.2.
62484
62485 2005-02-24  Bruno Haible  <bruno@clisp.org>
62486
62487         * lib/gettext.h: Update from GNU gettext 0.14.2.
62488
62489 2005-02-23  Simon Josefsson  <jas@extundo.com>
62490
62491         * m4/iconvme.m4: New file.
62492
62493 2005-02-23  Jim Meyering  <jim@meyering.net>
62494
62495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
62496         change.
62497         Thanks to Bruno Haible for catching it.
62498
62499 2005-02-22  Simon Josefsson  <jas@extundo.com>
62500
62501         * modules/iconvme: New file.
62502
62503         * MODULES.html.sh: Add iconvme.
62504
62505 2005-02-22  Simon Josefsson  <jas@extundo.com>
62506
62507         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
62508
62509 2005-02-22  Simon Josefsson  <jas@extundo.com>
62510
62511         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
62512
62513 2005-02-22  Jim Meyering  <jim@meyering.net>
62514
62515         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
62516         s/ifndef/ifdef/.
62517
62518 2005-02-20  Neil Conway  <neilc@samurai.com>
62519
62520         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
62521         returned by OSX/Darwin if the specified buffer is not large
62522         enough for the hostname.
62523
62524 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62525
62526         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
62527         pass it to _help, otherwise the latter coredumps trying to
62528         dereference state.root_argp.
62529
62530 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62531
62532         * modules/chdir-long (Depends-on): Add memrchr.
62533         * modules/memrchr (Files): Add lib/memrchr.h.
62534         (Include): "memrchr.h".
62535
62536 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62537
62538         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
62539
62540 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62541
62542         * lib/memrchr.h: New file.
62543         * lib/chdir-long.c: Include it.
62544         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
62545         Don't bother including stddef.h.
62546
62547 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62548
62549         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
62550         inclusion.
62551         Include <sys/types.h>, for dev_t.
62552         (ME_DUMMY, ME_REMOTE): Move from here....
62553         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
62554         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
62555         Dmitry V. Levin.
62556         Include mountlist.h first, to test the interface.
62557
62558 2005-01-29  Bruno Haible  <bruno@clisp.org>
62559
62560         * lib/progname.c (program_name): Initialize.
62561         Needed when linking statically on MacOS X.
62562
62563 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62564
62565         Sync from coreutils.
62566         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
62567         (Depends-on): Add c-strtod.
62568         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
62569
62570 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62571
62572         Sync from coreutils.
62573         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
62574
62575         Remove files that are specific to coreutils.
62576         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
62577
62578 2005-01-28  Bruno Haible  <bruno@clisp.org>
62579
62580         * modules/javacomp: New file.
62581         * MODULES.html.sh (Java): Add javacomp.
62582
62583 2005-01-28  Bruno Haible  <bruno@clisp.org>
62584
62585         * m4/javacomp.m4: New file, from GNU gettext.
62586
62587 2005-01-28  Bruno Haible  <bruno@clisp.org>
62588
62589         * lib/javacomp.sh.in: New file, from GNU gettext.
62590         * lib/javacomp.h: New file, from GNU gettext.
62591         * lib/javacomp.c: New file, from GNU gettext.
62592
62593 2005-01-26  Simon Josefsson  <jas@extundo.com>
62594
62595         * lib/gai_strerror.c: Use GPL in header.
62596
62597 2005-01-26  Bruno Haible  <bruno@clisp.org>
62598
62599         * modules/javaexec: New file.
62600         * MODULES.html.sh (Java): Add javaexec.
62601
62602 2005-01-26  Bruno Haible  <bruno@clisp.org>
62603
62604         * m4/javaexec.m4: New file, from GNU gettext.
62605
62606 2005-01-26  Bruno Haible  <bruno@clisp.org>
62607
62608         * lib/javaexec.sh.in: New file, from GNU gettext.
62609         * lib/javaexec.h: New file, from GNU gettext.
62610         * lib/javaexec.c: New file, from GNU gettext.
62611
62612 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62613
62614         * modules/lchown (Depends-on): Remove lchown.h
62615
62616 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62617
62618         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
62619         must be defined if the header file was not found, in order
62620         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
62621
62622 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62623
62624         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
62625         initializers for struct pentry_state.
62626         (__argp_error): Check return value of __asprintf
62627         (__argp_failure): Translate error message
62628
62629         * lib/argp-parse.c: Removed braces around the expansion of N_()
62630
62631 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
62634         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
62635         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
62636         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
62637         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
62638         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
62639         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
62640         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
62641         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
62642         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
62643         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
62644         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
62645         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
62646         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
62647         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
62648         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
62649         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
62650         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
62651         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
62652         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
62653         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
62654         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
62655         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
62656         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
62657         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
62658         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
62659         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
62660         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
62661         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
62662         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
62663         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
62664         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
62665         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
62666         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
62667         xstrtol.m4, xstrtoumax.m4, yesno.m4:
62668         Use an all-permissive copyright notice, recommended by RMS.
62669
62670 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
62671
62672         * modules/chdir-long (Depends-on): Remove mempcpy.
62673
62674 2005-01-21  Jim Meyering  <jim@meyering.net>
62675
62676         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
62677         same value as for Solaris 9.
62678
62679         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
62680         component length.  This included changing the parameter to be
62681         of type `char *' rather than `char const *'.
62682         * lib/chdir-long.h (chdir_long): Update prototype.
62683
62684         * lib/openat.c (fdopendir, fstatat): New functions.
62685         * lib/openat.h: Include headers required for use of DIR and struct
62686         stat.
62687         [AT_SYMLINK_NOFOLLOW]: Define.
62688         (fdopendir, fstatat): Add prototypes.
62689
62690 2005-01-21  Bruno Haible  <bruno@clisp.org>
62691
62692         * modules/classpath: New file.
62693         * MODULES.html.sh (Java): Add classpath.
62694
62695 2005-01-21  Bruno Haible  <bruno@clisp.org>
62696
62697         * lib/classpath.h: New file, from GNU gettext.
62698         * lib/classpath.c: New file, from GNU gettext.
62699
62700 2005-01-20  Simon Josefsson  <jas@extundo.com>
62701
62702         * modules/version-etc-fsf: New file.
62703
62704 2005-01-20  Simon Josefsson  <jas@extundo.com>
62705
62706         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
62707         * lib/version-etc.c: Remove version_etc_copyright.
62708         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
62709         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
62710
62711 2005-01-20  Simon Josefsson  <jas@extundo.com>
62712
62713         * lib/base64.h (isbase64): Add.
62714
62715         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
62716         using a unsigned prototype, don't inline.
62717         (base64_decode): Use it.
62718
62719 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62720
62721         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
62722         it.
62723
62724 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62725
62726         * lib/save-cwd.c (save_cwd): Remove code to support the case
62727         where fchdir is missing or flaky.
62728
62729 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62730
62731         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
62732
62733 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62734
62735         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
62736         AC_LIBSOURCES now does this.
62737         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
62738         with new ullong_max module.
62739
62740 2005-01-19  Bruno Haible  <bruno@clisp.org>
62741
62742         * modules/sh-quote: New file.
62743         * MODULES.html.sh (Executing programs): Add sh-quote.
62744
62745 2005-01-19  Bruno Haible  <bruno@clisp.org>
62746
62747         * lib/sh-quote.h: New file, from GNU gettext.
62748         * lib/sh-quote.c: New file, from GNU gettext.
62749
62750 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62751
62752         Merge from coreutils.
62753         * m4/ullong_max.m4: New file.
62754         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
62755         (gl_MACROS): Assume localeconv exists.
62756
62757 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62758
62759         Merge changes from coreutils, as described below in several
62760         changelogs dated today.
62761
62762         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
62763         (O_DIRECTORY): Remove; not needed here, since "." must be
62764         a directory.  All uses removed.
62765         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
62766         universal on Suns, and we also need to test for IRIX.
62767         Revamp code to use 'if' rather than '#if'.
62768         Avoid unnecessary comparison of cwd->desc to 0.
62769
62770         * lib/utimens.c (futimens): Robustify the previous patch, by checking
62771         for known valid error numbers rather than observed invalid ones.
62772
62773 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62774
62775         * modules/ullong_max: New file.
62776
62777         * modules/chdir-long, modules/openat: New files.
62778         * modules/save-cwd (Depends-on): Depend on chdir-long.
62779         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
62780
62781 2005-01-18  Jim Meyering  <jim@meyering.net>
62782
62783         Merge from coreutils.
62784         * m4/chdir-long.m4, m4/openat.m4: New files.
62785         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
62786         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
62787         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
62788         is sane and DOES follow symlinks.  Besides, testing 20 different
62789         systems found no broken chown implementations.
62790         Prompted by a change in rsync's copy of this macro.
62791         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
62792
62793         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
62794
62795         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
62796         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
62797         NULL-means-set-to-current-time semantics.
62798         Remove temporary file immediately, rather than waiting
62799         for configure's at-exit trap code to do it.
62800
62801 2005-01-18  Jim Meyering  <jim@meyering.net>
62802
62803         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62804
62805         * lib/utimens.c (futimens): Account for the fact that futimes
62806         can also fail with errno == ENOSYS or errno == ENOENT.
62807         Patch from Dmitry V. Levin.
62808
62809         Change the name of the robust chdir function from chdir to chdir_long.
62810         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
62811         (restore_cwd): Use chdir_long, not chdir.
62812         * lib/chdir-long.c: Renamed from chdir.c.
62813         * lib/chdir-long.h: Renamed from chdir.h.
62814         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
62815         Hurd.
62816
62817 2005-01-18  Bruno Haible  <bruno@clisp.org>
62818
62819         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
62820         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
62821         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
62822         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
62823         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
62824         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
62825         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
62826         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
62827         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
62828         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
62829         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
62830         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
62831         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
62832         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
62833         Use an all-permissive copyright notice, recommended by RMS.
62834
62835 2005-01-18  Bob Proulx  <bob@proulx.com>
62836
62837         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
62838         simplify offsetof() macro construct to avoid compile failure with
62839         native HP-UX 11.0 ANSI C compiler.
62840
62841 2005-01-17  Bruno Haible  <bruno@clisp.org>
62842
62843         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
62844         redundant because stpncpy.m4 takes care of it.
62845
62846 2005-01-17  Bruno Haible  <bruno@clisp.org>
62847
62848         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
62849
62850 2005-01-17  Bruno Haible  <bruno@clisp.org>
62851
62852         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
62853         used.
62854
62855 2005-01-17  Bruno Haible  <bruno@clisp.org>
62856
62857         * lib/fwriteerror.h (fwriteerror): Change specification to include
62858         fclose.
62859         * lib/fwriteerror.c: Include <stdbool.h>.
62860         (fwriteerror): At the end, close the file stream. Record whether
62861         stdout was already closed.
62862
62863 2005-01-17  Bruno Haible  <bruno@clisp.org>
62864
62865         * lib/execute.c (environ): Declare if needed.
62866         * lib/pipe.c (environ): Likewise.
62867         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
62868
62869 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62870
62871         * modules/argp: Depend on vsnprintf
62872
62873 2005-01-10  Jim Meyering  <jim@meyering.net>
62874
62875         * modules/closeout (Depends-on): Add atexit.
62876
62877 2005-01-06  Bruno Haible  <bruno@clisp.org>
62878
62879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
62880
62881 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62882
62883         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
62884         definitions to be after all include files, to avoid collisions.
62885         Problem reported by Bob Proulx.
62886
62887 2005-01-04  Jim Meyering  <jim@meyering.net>
62888
62889         Changes imported from coreutils.
62890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
62891         as the mkstemp template, use a temporary directory and an
62892         8.3-friendly template to avoid trouble on systems like DJGPP.
62893         Reported by Juan M. Guerrero via Stepan Kasal.
62894         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
62895         close. Remove the temporary directory right away, rather than waiting
62896         for configure's at-exit trap code to do it.
62897         Suggestion from Stepan Kasal.
62898
62899 2005-01-01  Simon Josefsson  <jas@extundo.com>
62900
62901         * gnulib-tool: Print #include directives when --import'ing.
62902
62903 2004-12-28  Simon Josefsson  <jas@extundo.com>
62904
62905         * tests/test-base64.c: Include required header files.  Remove
62906         unused variables.
62907
62908 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62909
62910         * modules/error (Depends-on): Remove gettext.
62911
62912 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62913
62914         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
62915         not needed.  This removes a dependency on the gettext module.
62916         [defined _LIBC]: Do not include <libintl.h>; not needed.
62917
62918 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
62919
62920         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
62921         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
62922
62923 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
62924
62925         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
62926         HAVE_DECL_STRTOLD.
62927
62928 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62929
62930         * modules/getdate (Depends-on): Remove alloca-opt.
62931
62932 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62933
62934         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
62935
62936 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62937
62938         * lib/argp-parse.c: Include <stddef.h>.
62939         (alignof, alignto): New macros.
62940         (parser_init): Don't assume that void * is aligned sufficiently
62941         for struct option.
62942
62943         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
62944         need to extend the stack.
62945         (YYINITDEPTH): New macro, so that the initial stack isn't overly
62946         large.
62947
62948 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62949
62950         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
62951
62952 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62953
62954         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
62955         (2004-10-24) change.  Apparently this was a false alarm.
62956
62957         * modules/getdate: Depend on alloca-opt, not alloca.
62958
62959 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62960
62961         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
62962         Remove now-obsolete comment about AIX.
62963         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
62964         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
62965         (YYMAXDEPTH): New macro.
62966
62967 2004-12-18  Simon Josefsson  <jas@extundo.com>
62968
62969         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
62970
62971 2004-12-18  Bruno Haible  <bruno@clisp.org>
62972
62973         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
62974
62975 2004-12-18  Bruno Haible  <bruno@clisp.org>
62976
62977         * lib/fatal-signal.c (fatal_signals): Make non-const.
62978         (init_fatal_signals): New function.
62979         (uninstall_handlers, install_handlers): Ignore signals that were set to
62980         SIG_IGN.
62981         (at_fatal_signal): Call init_fatal_signals.
62982         (init_fatal_signal_set): Likewise. Ignore signals that were set to
62983         SIG_IGN.
62984         Reported by Paul Eggert.
62985
62986 2004-12-18  Bruno Haible  <bruno@clisp.org>
62987
62988         * doc/alloca.texi: New file.
62989         * doc/alloca-opt.texi: New file.
62990
62991 2004-12-17  Jim Meyering  <jim@meyering.net>
62992
62993         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
62994         Otherwise, install-sh could exit with improper exit status when
62995         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
62996
62997 2004-12-16  Simon Josefsson  <jas@extundo.com>
62998
62999         * tests/test-base64.c: Add license.
63000
63001 2004-12-15  Stepan Kasal  <address@hidden>
63002
63003         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63004
63005 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63006
63007         * modules/getcwd (Files): Add m4/d-ino.m4.
63008         Suggested by Mark D. Baushke.
63009
63010 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63011
63012         * lib/getdate.y (textint): New member "negative".
63013         (time_zone_hhmm): New function.
63014         Expect 14 shift-reduce conflicts, not 13.
63015         (o_colon_minutes): New rule.
63016         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63017         (yylex): Set the "negative" member of signed numbers.
63018
63019 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63020
63021         * doc/getdate.texi (Time of day items, Time zone items):
63022         Describe new formats +00:00, UTC+00:00.
63023
63024 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63025
63026         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63027         spurious "-l"s.  Problem reported by Stepan Kasal.
63028
63029 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63030
63031         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63032         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63033
63034 2004-12-04  Simon Josefsson  <jas@extundo.com>
63035
63036         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63037         Vandoorselaere <yoann@prelude-ids.org>.
63038
63039 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63040
63041         Changes imported from coreutils.
63042         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63043         exist.
63044         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63045
63046 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63047
63048         Changes imported from coreutils.
63049         * lib/hard-locale.c: Assume <locale.h> exists.
63050         Include "strdup.h".
63051         (GLIBC_VERSION): New macro.
63052         (hard_locale): Assume setlocale exists.
63053         Rewrite to avoid #ifdef.
63054         Use strdup rather than malloc + strcpy.
63055         * lib/human.c: Assume <locale.h> exists.
63056         (human_readable): Assume localeconv exists.
63057
63058 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63059
63060         * modules/hard-locale (Depends-on): Add strdup.
63061
63062 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63063
63064         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63065         convert T2, not T.  (Imported from libc.)
63066
63067 2004-11-30  Simon Josefsson  <jas@extundo.com>
63068
63069         * modules/restrict (License): Change to LGPL.
63070
63071 2004-11-30  Simon Josefsson  <jas@extundo.com>
63072
63073         * m4/restrict.m4: Add copyright and copying conditions.
63074
63075 2004-11-30  Simon Josefsson  <jas@extundo.com>
63076
63077         * m4/base64.m4: New file.
63078
63079 2004-11-30  Simon Josefsson  <jas@extundo.com>
63080
63081         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63082         base64.
63083
63084         * tests/test-base64.c: New file.
63085
63086         * modules/base64: New file.
63087
63088 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63089
63090         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63091         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63092
63093         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63094
63095 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63096
63097         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63098         (__getcwd.c): Don't restore errno; glibc doesn't.
63099         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63100         first, falling back to our code only if its results look suspicious.
63101         Ensure that the resulting buffer is only as large as necessary.
63102
63103         * lib/readutmp.c: Include readutmp.h first.
63104         Include <errno.h>, since readutmp.h no longer does that.
63105         * lib/readutmp.h: Don't include <errno.h>,
63106         <sys/param.h>, <time.h>; not needed to establish interface.
63107         (errno): Remove decl.
63108         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63109         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63110         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63111
63112 2004-11-28  Simon Josefsson  <jas@extundo.com>
63113
63114         * lib/base64.h, base64.c: New file.
63115
63116 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63117
63118         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63119
63120 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63121
63122         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63123         (Depends-on): Remove pathmax, same.  Add mempcpy.
63124         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63125         (Makefile.am): Append getcwd.h to lib_SOURCES.
63126         (Include): Add getcwd.h.
63127         (Maintainer): Change from Jim Meyering to "all, glibc",
63128         since getdate now uses intended-for-glibc code.
63129         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63130         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63131
63132 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63133
63134         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63135         HP's ANSI C compiler.
63136         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63137         Declaring int functions causes warnings on some modern systems and
63138         shouldn't be needed to compile on ancient ones.
63139         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63140         defined.
63141
63142         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63143         with the following changes.
63144         (__set_errno): Parenthesize properly.
63145         Include <stdbool.h>.
63146         (MIN, MAX, MATCHING_INO): New macros.
63147         (__getcwd): Define with prototype, not K&R form.
63148         Use heuristics to allocate default buffer on stack if possible.
63149         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63150         behavior, and to avoid the PATH_MAX limit when computing
63151         ../../../../...
63152         Use MATCHING_INO to compare inode number to file.
63153         Check for arithmetic overflow in size calculations.
63154         Fix bug in reallocation of dot array that caused getcwd to fail
63155         on directories nested deeper than 75.
63156         Be more careful about saving errno on error.
63157         Do not use realloc; use only free+malloc, as this is a bit
63158         more flexible and avoids a needless copy operation.
63159         Do not inspect st_dev and st_ino for symbolic links; POSIX
63160         doesn't specify the latter.
63161         Check for closedir errors.
63162         Avoid needless casts.
63163         Use "#ifdef weak_alias" around weak_alias, to be like other
63164         glibc code.
63165         The following changes to getcwd.c have effect only when used in
63166         gnulib; they have no effect inside glibc proper.
63167         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63168         as alloca isn't used.
63169         (alloca, __alloca): Likewise.
63170         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63171         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63172         unconditionally, as gnulib assumes C89 or better.
63173         Do not include <sys/param.h>.
63174         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63175         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63176         better.
63177         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63178         Include <dirent.h> in a way that is compatible with modern Autoconf.
63179         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63180         New macros, if not already defined.
63181         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63182         Use "_LIBC", not "defined _LIBC", for consistency.
63183         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63184         a mempcpy module.
63185         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63186         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63187         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63188         credit only to Jim Meyering and adjust the copyright dates.
63189         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63190         <stdlib.h>, <unistd.h>, "pathmax.h".
63191         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63192         (INITIAL_BUFFER_SIZE): Remove.
63193         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63194
63195 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63198         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63199         Use the _ONCE methods, for efficiency.
63200         Check for fcntl.h.  In test program, include <errno.h>
63201         and <fcntl.h> if available.  Remove old K&R cruft from
63202         test program.  Check for common errors in GNU/Linux,
63203         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63204         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63205         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63206         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63207         name accordingly.
63208         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63209         accommodate new getcwd.c.
63210         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63211         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63212         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63213         that's all we need now.
63214
63215 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63216
63217         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63218         argp-parse.c depends on getopt internals, that means we should
63219         always use our getopt, to be on the safe side.
63220         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63221         order not to spoil the result of an eventual previous invocation
63222         of gl_GETOPT_SUBSTITUTE.
63223
63224 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63225
63226         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63227         redefinition warnings. To avoid them, include the defines
63228         in `#if !defined __need_getopt ... #endif'. The only place
63229         where __getopt_argv_const is used is in definitions
63230         of getopt_long and getopt_long_only below, which are as well
63231         protected by `#ifndef __need_getopt'.
63232         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63233         __need_getopt after including <stdio.h> and <unistd.h> These
63234         headers might have defined it.
63235
63236 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63237
63238         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63239
63240 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63241
63242         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63243         (futimens): New function, which uses futimes if available.
63244         (futimens, utimens): Support timespec==NULL, with same semantics
63245         as utime and utimens.
63246         * lib/utimens.h (futimens): New decl.
63247
63248 2004-11-23  Jim Meyering  <jim@meyering.net>
63249
63250         * lib/getopt_.h: Remove trailing blanks.
63251
63252 2004-11-23  Jim Meyering  <jim@meyering.net>
63253
63254         * lib/__fpending.c: Add comment.
63255
63256 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63257
63258         * modules/canonicalize (Depends-on): Add xreadlink.
63259         Problem reported by James Youngman.
63260
63261 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63262
63263         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63264         New macros.
63265         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63266         optopt): Use them instead of invoking ## directly; otherwise, the
63267         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63268
63269 2004-11-19  Bruno Haible  <bruno@clisp.org>
63270
63271         * lib/strtok_r.c: Move comments from here...
63272         * lib/strtok_r.h: ... to here.
63273
63274 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63275
63276         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63277         implementations that mishandle size_t overflow.
63278
63279 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63280
63281         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63282         might fail.  Problem reported by Yoann Vandoorselaere.
63283         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63284         implementations that mishandle size_t overflow.
63285
63286 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * modules/canon-host (Depends-on): Add strdup.
63289
63290 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63291
63292         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63293
63294 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63295
63296         * lib/canon-host.c: Include "strdup.h".
63297         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63298         Use strdup instead of malloc/strcpy to duplicate strings.
63299
63300         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63301         (human_space_before_unit): New constant.
63302         * lib/human.c (human_readable): Support it.
63303
63304         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63305         (xgetcwd): Set errno correctly when failing.
63306         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63307         the failure is actually due to a PATH_MAX problem.
63308
63309         Further getopt changes to make it more likely that glibc will
63310         buy the changes back.
63311         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63312         (getopt): Use it, so to preserve glibc semantic
63313         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63314         when compiling for libc.
63315         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63316         (getopt_long, getopt_long_only): Use it.
63317
63318         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63319         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63320         (getopt): Argv is now char * const *, as per standard.
63321         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63322         not char *__getopt_argv_const *.
63323         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63324         _getopt_long_only_r): Likewise.
63325         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63326         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63327         _getopt_long_r, _getopt_long_only_r): Likewise.
63328         * lib/getopt_.h (__getopt_argv_const): Remove.
63329         (getopt): Argv is now char * const *, as per standard.
63330
63331         * lib/getdate.y (tORDINAL): New token.
63332         (day, relunit): Allow it for relative times.
63333         (relative_time_table): Use tORDINAL for ordinals.
63334
63335 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63336
63337         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63338         Document that "second" isn't allowed as an ordinal number.
63339
63340 2004-11-16  Jim Meyering  <jim@meyering.net>
63341
63342         * modules/closeout (Depends-on): Add fpending.
63343
63344 2004-11-15  Jim Meyering  <jim@meyering.net>
63345
63346         * lib/closeout.c: Include "__fpending.h" once again.
63347         Include <stdbool.h>.
63348         (close_stdout): Don't fail just because stdout was closed initially,
63349         since some programs don't write to stdout in the normal course of
63350         operation (other than --version and --help), and we don't want this
63351         function to make e.g. `touch file >&-' fail.
63352         But do fail if it was closed and someone has tried to write to it.
63353         E.g., `printf foo >&-' must fail.
63354
63355 2004-11-13  Jim Meyering  <jim@meyering.net>
63356
63357         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63358
63359 2004-11-12  Simon Josefsson  <jas@extundo.com>
63360
63361         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63362         small doc fix is still pending.
63363
63364 2004-11-11  Simon Josefsson  <jas@extundo.com>
63365
63366         * modules/strtok_r: New file.
63367
63368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63369         strtok_r.
63370
63371 2004-11-11  Simon Josefsson  <jas@extundo.com>
63372
63373         * m4/strtok_r.m4: New file.
63374
63375         * m4/getopt.m4: Replace opterr.
63376
63377 2004-11-11  Simon Josefsson  <jas@extundo.com>
63378
63379         * lib/strtok_r.h, strtok_r.c: New file.
63380
63381 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
63384         of replacing opterr, getopt, etc.  This should handle the
63385         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
63386
63387 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63388
63389         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
63390         we can stop lying to compilers about the constness of argv when we
63391         are compiled outside glibc.
63392         (getopt, getopt_long, getopt_long_only): Use it.
63393         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63394         _getopt_internal, getopt): Likewise.
63395         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63396         _getopt_long_only_r): Likewise.
63397         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63398         _getopt_long_r, _getopt_long_only_r): Likewise.
63399
63400         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
63401         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
63402         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
63403         the other external symbols.
63404         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
63405         declaration, since the above renaming now works around collisions.
63406
63407 2004-11-11  Jim Meyering  <jim@meyering.net>
63408
63409         * lib/linebreak.c: Remove trailing blanks.
63410         * lib/alloca_.h: Likewise.
63411         * lib/acosl.c: Likewise.
63412         * lib/euidaccess.c: Likewise.
63413         * lib/allocsa.h: Likewise.
63414
63415 2004-11-10  Simon Josefsson  <jas@extundo.com>
63416
63417         * m4/getaddrinfo.m4: New file.
63418
63419 2004-11-10  Simon Josefsson  <jas@extundo.com>
63420
63421         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
63422
63423 2004-11-10  Simon Josefsson  <jas@extundo.com>
63424
63425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63426         getaddrinfo.
63427
63428         * modules/getaddrinfo: New file.
63429
63430 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63431
63432         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
63433
63434 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63435
63436         * lib/mktime.c (SHR): New macro, which is a portable
63437         substitute for >> that should work even on Crays.
63438         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
63439         Problem reported by Mark D. Baushke in
63440         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
63441         * lib/getdate.y (SHR): Likewise.
63442         (tm_diff): Use it.
63443         * lib/strftime.c (SHR): Likewise.
63444         (tm_diff): Use it.
63445         * lib/quotearg.c (struct quoting_options): Use unsigned int for
63446         quote_these_too, so that right shifts are well defined.  All uses
63447         changed.
63448
63449 2004-11-10  Jim Meyering  <jim@meyering.net>
63450
63451         Ensure that no close failure goes unreported.
63452         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63453         return early when it seems there's nothing to flush.
63454         Don't include __fpending.h.
63455
63456 2004-11-10  Jim Meyering  <jim@meyering.net>
63457
63458         * modules/closeout (Depends-on): Remove fpending.
63459
63460 2004-11-10  Jim Meyering  <jim@meyering.net>
63461
63462         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
63463
63464 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63465
63466         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
63467         gl_FUNC_STRFTIME.
63468         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
63469         and AC_REQUIRE when possible, to avoid duplicate checks.
63470         Check for <wchar.h>.
63471
63472 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63473
63474         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
63475
63476 2004-11-09  Bruno Haible  <bruno@clisp.org>
63477
63478         * m4/sockpfaf.m4: New file.
63479
63480 2004-11-05  Bruno Haible  <bruno@clisp.org>
63481
63482         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
63483         Reported by Mark D. Baushke <mdb@cvshome.org>.
63484
63485 2004-11-04  Bruno Haible  <bruno@clisp.org>
63486
63487         2004-09-11  Bruno Haible  <bruno@clisp.org>
63488                 * allocsa.valgrind: New file.
63489         2004-02-06  Bruno Haible  <bruno@clisp.org>
63490                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
63491                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
63492                 Reported by Christopher Seip <chris.seip@hp.com>.
63493
63494 2004-11-04  Bruno Haible  <bruno@clisp.org>
63495
63496         * modules/allocsa (Files): Add lib/allocsa.valgrind.
63497         (Makefile.am): Distribute it.
63498
63499 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63500
63501         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
63502         with errno == ERANGE if the buffer is too small.
63503         Problem reported by Mark D. Baushke.
63504
63505 2004-11-03  Albert Chin  <china@thewrittenword.com>
63506             Paul Eggert  <eggert@cs.ucla.edu>
63507
63508         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
63509         equivalent, substitute $ac_type for equivalent type rather than
63510         blindly using uint32_t *always* which won't work if uint32_t is not
63511         available.  Define _UINT32_T to work around typedef of uint32_t if
63512         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
63513         2.5.1.
63514
63515 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63516
63517         * m4/jm-macros.m4: Sync from coreutils.
63518         (gl_MACROS): Check for mbrlen, for pathchk.
63519         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
63520
63521 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63522
63523         * lib/xreadlink.c (MAXSIZE): New macro.
63524         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
63525         size does not exceed MAXSIZE.  Avoid cast.
63526         As suggested by Mark D. Baushke in
63527         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
63528         if readlink fails with buffer size just under MAXSIZE, try again
63529         with MAXSIZE.
63530
63531 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
63534
63535 2004-11-02  Derek R. Price  <derek@ximbiot.com>
63536         and  Paul Eggert  <eggert@cs.ucla.edu>
63537
63538         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
63539         (get_date): Overparenthesize to avoid GCC warning.
63540
63541 2004-11-02  Bruno Haible  <bruno@clisp.org>
63542
63543         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
63544         returns void.
63545
63546 2004-11-02  Bruno Haible  <bruno@clisp.org>
63547
63548         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
63549         function returns void.
63550
63551 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63552
63553         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
63554         fflush_unlocked, flockfile, funlockfile, funlockfile,
63555         fputs_unlocked, putc_unlocked.
63556
63557 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63558
63559         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63560         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
63561         already declared.
63562
63563 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63564
63565         * modules/getdate (Files): Add doc/getdate.texi.
63566         (Depends-on): Add setenv, xalloc.
63567
63568 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63569
63570         * lib/getdate.y: Add support for TZ="foo" within a date string.
63571         Fix some bugs near time_t boundaries.  Reject dates with
63572         out-of-range components, e.g., "Sept 31".
63573         Include <stdlib.h>, "setenv.h", "xalloc.h".
63574         (ISDIGIT_LOCALE): Remove; unused.
63575         Note that the TZ and time functions used here are not reentrant.
63576         (mktime_ok, get_tz): New functions.
63577         (TZBUFSIZE): New constant.
63578         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
63579         This requires that we sometimes generate our own TZ="XXX..." setting.
63580
63581 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * doc/getdate.texi: New file, from coreutils with modifications for
63584         the new TZ parsing.
63585
63586 2004-10-27  Derek R. Price  <derek@ximbiot.com>
63587
63588         * lib/mktime.c (not_equal_tm): Remove redundant check.
63589
63590 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63591
63592         * modules/regex (lib_SOURCES): Add regex.c.
63593         Reported by James Youngman in
63594         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
63595
63596 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63597
63598         * lib/getdate.y: Use Bison 1.875 features, and some minor
63599         code cleanups.  This change does not affect semantics.
63600         Don't include <stdlib.h>; no longer needed.
63601         Don't include unlocked-io.h; only the "#if TEST" code uses
63602         stdio, and performance isn't crucial there.
63603         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
63604         Bison 1.875 features as described below.
63605         All uses of "PC." replaced by "pc->".
63606         (YYSTYPE): Add a forward declaration.
63607         (yylex, yyerror): Use full prototypes in forward decls.
63608         Use "%pure-parser" rather than obsolescent "%pure_parser".
63609         Use %parse-param and %lex-param instead of obsolescent
63610         YYPARSE_PARAM and YYLEX_PARAM.
63611         (meridian_table, month_and_day_table, time_units_table,
63612         relative_time_table, time_zone_table, military_table,
63613         lookup_zone, lookup_word, get_date):
63614         Use NULL instead of 0 where appropriate.
63615         (to_hour): Avoid abort (), to avoid a dependency on
63616         stdlib.h.
63617         (yyerror, yylex): Now accepts parser_control * arg.
63618         (main) [TEST]: Use '\0' rather than 0 for char.
63619
63620 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
63623
63624 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
63627         It's now the caller's responsibility to handle the case where
63628         !HAVE_GETPAGESIZE && !defined getpagesize.
63629
63630         * lib/mktime.c (leapyear): Arg is long int, not int.
63631
63632 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
63633
63634         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
63635
63636 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63637
63638         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
63639         missing.  Problem reported by James Youngman.
63640
63641 2004-10-16  Simon Josefsson  <jas@extundo.com>
63642
63643         * gnulib-tool: Fix comments.  Fix parse problem.
63644         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
63645
63646 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
63647
63648         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
63649         implementation of getopt_long.  Problem reported by Alexander Taler in:
63650         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
63651
63652 2004-10-15  Bruno Haible  <bruno@clisp.org>
63653
63654         * gnulib-tool: Untabify. Initialize supplied_libname.
63655         (func_usage): More homogenous output.
63656         (func_modules_transitive_closure, func_modules_to_filelist,
63657         func_emit_lib_Makefile_am): New functions.
63658         (func_import): New function, extracted from big case statement. Use
63659         func_get_license, func_modules_transitive_closure,
63660         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
63661         opt_lgpl. Don't use test -a, as it's not portable.
63662         (func_create_testdir): Use func_modules_transitive_closure,
63663         func_modules_to_filelist, func_emit_lib_Makefile_am.
63664
63665 2004-10-15  Bruno Haible  <bruno@clisp.org>
63666
63667         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
63668
63669 2004-10-15  Bruno Haible  <bruno@clisp.org>
63670
63671         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
63672         the portions belonging to each module.
63673         Suggested by Derek Robert Price <derek@ximbiot.com>.
63674
63675 2004-10-12  Simon Josefsson  <jas@extundo.com>
63676
63677         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63678         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
63679         to real functions.
63680
63681 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63682
63683         * modules/vsnprintf: New file.
63684
63685 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63686
63687         * m4/vsnprintf.m4: New file.
63688
63689 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63690
63691         * lib/vsnprintf.h: New file.
63692         * lib/vsnprintf.c: New file.
63693
63694 2004-10-11  Bruno Haible  <bruno@clisp.org>
63695
63696         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
63697         vsnprintf.
63698
63699 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63700
63701         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
63702
63703 2004-10-07  Bruno Haible  <bruno@clisp.org>
63704
63705         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
63706         fits into the provided buffer.
63707
63708 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63709
63710         * lib/diacrit.c, diacrit.h: Add GPL notice.
63711
63712         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
63713         notice.
63714         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
63715         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
63716         This avoids a potential constant-folding bug.
63717
63718 2004-10-05  Bruno Haible  <bruno@clisp.org>
63719
63720         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
63721         for the declaration of strsep.
63722
63723 2004-10-05  Bruno Haible  <bruno@clisp.org>
63724
63725         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
63726
63727 2004-10-04  Simon Josefsson  <jas@extundo.com>
63728
63729         * modules/memmem: New file.
63730         * tests/test-memmem.c: New file.
63731         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
63732
63733 2004-10-04  Simon Josefsson  <jas@extundo.com>
63734
63735         * m4/memmem.m4: New file.
63736
63737 2004-10-04  Simon Josefsson  <jas@extundo.com>
63738
63739         * lib/memmem.h: New file.
63740         * lib/memmem.c: New file, taken from glibc.
63741
63742 2004-10-04  Simon Josefsson  <jas@extundo.com>
63743
63744         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
63745         '#ifdef USE_UNLOCKED_IO'.
63746
63747 2004-10-04  Simon Josefsson  <jas@extundo.com>
63748
63749         * config/srclist.txt: Add memmem from glibc.
63750
63751 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63752
63753         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
63754
63755         * modules/argmatch, modules/argp, modules/closeout, modules/error,
63756         modules/exclude, modules/getdate, modules/getline,
63757         modules/getndelim2, modules/getpass, modules/getpass-gnu,
63758         modules/getusershell, modules/linebuffer, modules/md5,
63759         modules/mountlist, modules/posixtm, modules/readtokens,
63760         modules/readutmp, modules/regex, modules/sha1,
63761         modules/version-etc, modules/yesno:
63762         Remove dependency on unlocked-io.
63763
63764 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
63767
63768         * m4/unlocked-io.m4: Add copyright notice.
63769         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
63770
63771 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63772
63773         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
63774         * lib/xmalloc.c (xmemdup): Likewise.
63775         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
63776         XFREE): Remove these long-obsolescent macros.
63777         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
63778         * lib/xstrdup.c: Remove.
63779
63780         * lib/regex.c (re_comp): Cast gettext return value to char *,
63781         Problem reported by Martin Neitzel via Mark D. Baushke.
63782
63783 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
63786         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
63787         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
63788         regex.c, sha1.c, version-etc.c, yesno.c:
63789         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
63790         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
63791         the includer's responsibility.
63792
63793         Sync from coreutils.
63794
63795         * lib/modechange.c (mode_compile): Don't decrement a pointer that
63796         points to the start of a string, as the C Standard says the
63797         resulting behavior is undefined.
63798
63799         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
63800         simple -> simple_backups, numbered_existing ->
63801         numbered_existing_backups, numbered -> numbered_backups
63802         to avoid shadowing problems.  All uses changed.
63803         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
63804         * lib/backupfile.c (check_extension, numbered_backup):
63805         Rename locals to avoid shadowing 'basename'.
63806         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
63807         once.
63808
63809         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
63810         * lib/.cvsignore: Add getopt.h.
63811
63812 2004-10-04  Bruno Haible  <bruno@clisp.org>
63813
63814         * modules/README: New file.
63815         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
63816         not a module.
63817
63818 2004-10-02  Jim Meyering  <jim@meyering.net>
63819
63820         * lib/dirfd.h, getpagesize.h: Add copyright notice.
63821
63822 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63823
63824         * modules/strsep: New file.
63825
63826 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63827
63828         * m4/strsep.m4: New file.
63829
63830 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63831
63832         * lib/strsep.h: New file.
63833         * lib/strsep.c: New file.
63834
63835 2004-10-01  Simon Josefsson  <jas@extundo.com>
63836
63837         * lib/snprintf.c (snprintf): Handle size==0.
63838
63839 2004-10-01  Simon Josefsson  <jas@extundo.com>
63840             Bruno Haible  <bruno@clisp.org>
63841
63842         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
63843         (snprintf): Declare 'args'.
63844
63845 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
63846
63847         * lib/snprintf.c: Remove comments as to why each header is needed.
63848
63849 2004-10-01  Bruno Haible  <bruno@clisp.org>
63850
63851         * MODULES.html.sh: Add strsep.
63852
63853 2004-09-30  Simon Josefsson  <jas@extundo.com>
63854
63855         * modules/snprintf: New file.
63856
63857 2004-09-30  Simon Josefsson  <jas@extundo.com>
63858
63859         * m4/snprintf.m4: New file.
63860
63861 2004-09-30  Simon Josefsson  <jas@extundo.com>
63862
63863         * lib/snprintf.h, lib/snprintf.c: New files.
63864
63865 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63866
63867         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
63868         (hol_entry_help): Never translate an empty string.
63869         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
63870         * lib/argp.h (OPTION_NO_TRANS): New option.
63871
63872 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63873
63874         * modules/argp (Maintainer): Replace Simon Josefsson
63875         by Sergey Poznyakoff.
63876
63877 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63878
63879         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
63880         changes merged back into glibc.
63881
63882 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63883
63884         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
63885
63886 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63887
63888         * lib/xvasprintf.c: Include xalloc.h.
63889         (xvasprintf): Use xalloc_die, not xmalloc_die.
63890
63891 2004-09-29  Bruno Haible  <bruno@clisp.org>
63892
63893         * modules/alloca-opt: New file, derived from modules/alloca.
63894         * modules/allocsa: Depend on alloca-opt instead of alloca.
63895         * modules/setenv: Likewise.
63896         * modules/vasnprintf: Likewise.
63897         * MODULES.html.sh: Add alloca-opt.
63898
63899 2004-09-28  Simon Josefsson  <jas@extundo.com>
63900
63901         * gnulib-tool: New parameter --lgpl, to asseert that modules are
63902         LGPL, and to replace license template from GPL to LGPL.
63903
63904 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63905
63906         * modules/dummy: Change license to LGPL.
63907
63908 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63909
63910         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
63911
63912 2004-09-24  Simon Josefsson  <jas@extundo.com>
63913
63914         * modules/minmax (License): Change from GPL to LGPL.
63915
63916 2004-09-23  Simon Josefsson  <jas@extundo.com>
63917
63918         * gnulib-tool (--import): Typo.
63919
63920 2004-09-23  Simon Josefsson  <jas@extundo.com>
63921
63922         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
63923
63924 2004-09-22  Bruno Haible  <bruno@clisp.org>
63925
63926         * modules/*: Add 'License' field.
63927         * gnulib-tool: Accept --extract-license option.
63928         (func_get_license): New function.
63929
63930 2004-09-21  Bruno Haible  <bruno@clisp.org>
63931
63932         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
63933         Reported by Simon Josefsson.
63934
63935 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
63938         gl_AC_TYPE_LONG_LONG.
63939
63940 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63941
63942         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
63943
63944 2004-09-18  Simon Josefsson  <jas@extundo.com>
63945         and  Paul Eggert  <eggert@cs.ucla.edu>
63946
63947         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
63948         calls with autoreconf.  Define GL_LIB.
63949
63950 2004-09-14  Karl Berry  <karl@gnu.org>
63951
63952         * config/srclist.txt: unsync setenv.c, sigh.
63953
63954 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63955
63956         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
63957         Problem reported by Bruno Haible in:
63958         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
63959
63960 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63961
63962         * config/srclist.txt: Comment out argp-pvh.c.
63963
63964 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
63965
63966         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
63967         in case some system header has #define'd it.  Problem reported by
63968         Soeren D. Schulze in
63969         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
63970
63971 2004-09-09  Karl Berry  <karl@gnu.org>
63972
63973         * regex.[ch]: delete from the root.  These were supposed to be
63974                 synced with emacs cvs, but this has not happened for about
63975                 a year, and anyway nothing else uses emacs regex.[ch].
63976                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
63977                 lib/regex[.ch] is untouched.
63978
63979 2004-09-09  Bruno Haible  <bruno@clisp.org>
63980
63981         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
63982
63983 2004-09-09  Bruno Haible  <bruno@clisp.org>
63984
63985         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
63986         modifications.
63987         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
63988
63989 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
63990
63991         * modules/xvasprintf: New file.
63992         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
63993
63994 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
63995
63996         * lib/xvasprintf.h: New file.
63997         * lib/xvasprintf.c: New file.
63998         * lib/xasprintf.c: New file.
63999
64000 2004-09-08  Bruno Haible  <bruno@clisp.org>
64001
64002         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64003
64004 2004-09-08  Bruno Haible  <bruno@clisp.org>
64005
64006         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64007         length is > INT_MAX.
64008         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64009         more.
64010
64011 2004-09-08  Bruno Haible  <bruno@clisp.org>
64012
64013         * lib/stdint_.h: New file, taken from GNU clisp.
64014
64015 2004-09-08  Bruno Haible  <bruno@clisp.org>
64016             Oskar Liljeblad  <oskar@osk.mine.nu>
64017
64018         * modules/stdint: New file.
64019         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64020
64021 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64022
64023         Import from coreutils.
64024         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64025         strings on unbounded length.  alloca's performance benefits aren't
64026         that important here.
64027         (V_STRDUP): Remove.
64028         (parse_with_separator): New function, with most of the internals
64029         of the old parse_user_spec.  Allow user to omit both user and group,
64030         for compatibility with FreeBSD.
64031         Clone only the user name, not the entire spec.
64032         Do not set *uid, *gid unless entirely successful.
64033         Avoid memory leak in some failing cases.
64034         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64035         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64036         (parse_user_spec): Rewrite to use parse_with_separator.
64037
64038 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64039
64040         * modules/userspec: Don't depend on alloca.
64041
64042 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64043
64044         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64045
64046 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64047
64048         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
64049         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
64050         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
64051
64052 2004-08-16  Simon Josefsson  <jas@extundo.com>
64053
64054         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
64055         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
64056         Add --dry-run for --import.
64057         Let user provided command line parameters override configure.ac
64058         settings.
64059
64060 2004-08-12  Simon Josefsson  <jas@extundo.com>
64061
64062         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
64063         as discussed with Paul Eggert in threads rooted at
64064         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64065         and
64066         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64067         Before, the test was empty, and relied on ELIDE_CODE in source
64068         code.)
64069         (gl_PREREQ_GETOPT): New macro.
64070         (gl_GETOPT): Use them.
64071
64072 2004-08-12  Simon Josefsson  <jas@extundo.com>
64073
64074         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64075         * lib/getopt_.h: Renamed from getopt.h.
64076
64077 2004-08-12  Simon Josefsson  <jas@extundo.com>
64078
64079         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64080         Change default library name from libfoo to libgnu.
64081         Now, if you have a configure.ac that says:
64082                 gl_SOURCE_BASE(gl)
64083                 gl_M4_BASE(gl/m4)
64084                 gl_MODULES(error getopt etcetera)
64085                 gl_INIT
64086         you can import all you need by running:
64087                 ../gnulib/gnulib-tool --import
64088
64089         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64090         (Makefile.am): Rewrite, use logic from argz.
64091         (Include): Use <getopt.h> instead of "getopt.h".
64092
64093 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64094
64095         * modules/argp (Files): Add m4/unlocked-io.m4.
64096         (Depends-on): Add extensions.
64097
64098 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64099
64100         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64101         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64102         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64103         Check for program_invocation_name, program_invocation_short_name,
64104         flockfile, funlockfile, features.h, _getopt_long_only_r.
64105
64106 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64107
64108         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64109         its complicated substitute.
64110         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64111         and program_invocation_name.
64112         (__argp_basename) [!_LIBC]: Remove; the only use was
64113         replaced by its body.
64114         (__argp_short_program_name): Change condition from
64115         !defined __argp_short_program_name to
64116         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64117         to match argp-namefrob.h.
64118         (__argp_failure): Don't assume strerror_r returns char *.
64119         * lib/argp-parse.c (N_): Define unconditionally.
64120         (argp_default_options): Fill out initializers with 0 to avoid
64121         gcc warnings.
64122
64123 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64124
64125         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64126         getopt1.c.
64127
64128 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64129
64130         Merge from coreutils.
64131
64132         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64133
64134         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64135         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64136
64137 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64138
64139         Merge from coreutils.
64140
64141         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64142         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64143         for Reliant Unix 5.43.
64144
64145         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64146         (union fooround): Use uintmax_t, not long int.
64147         The rest is a merge from libc:
64148         [defined _LIBC]: Include <shlib-compat.h>.
64149         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64150
64151         * lib/settime.c (settime): Recode to avoid warning with
64152         Sun Forte C 6U2.
64153
64154         * lib/strverscmp.c: Convert to UTF-8.
64155
64156 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64157
64158         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64159         m4/uintmax_t.m4.
64160
64161 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64162
64163         * modules/xalloc-die: New file.
64164         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64165
64166         * modules/md5 (Files): Add m4/uint32_t.m4.
64167         * modules/sha1: Renamed from modules/sha.
64168         (Files):
64169         Rename lib/sha.h to lib/sha1.h.
64170         Rename lib/sha.c to lib/sha1.c.
64171         Rename m4/sha.m4 to m4/sha1.m4.
64172         (lib_SOURCES): Likewise.
64173         (configure.ac): Rename gl_SHA to gl_SHA1.
64174         (Include): sha.h -> sha1.h.
64175
64176 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64177
64178         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64179         * m4/sha1.m4: Renamed from sha.m4.
64180         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64181
64182 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64183
64184         * lib/obstack.h (obstack_empty_p):
64185         Don't assume that chunk->contents is suitably aligned.
64186         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64187         Likewise. Problem reported by Benno in
64188         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64189
64190         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64191         readable.  This could be improved further but it'd take some work.
64192
64193 2004-08-08  Simon Josefsson  <jas@extundo.com>
64194
64195         * modules/xgethostname (Depends-on): Remove exit and error (not
64196         used).
64197
64198         * modules/getpass-gnu: Add getpass.h.
64199         (Depends-on): Add stdbool.
64200         * modules/getpass: Add getpass.h.
64201
64202 2004-08-08  Simon Josefsson  <jas@extundo.com>
64203
64204         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64205         Check getpass declaration.
64206
64207 2004-08-08  Simon Josefsson  <jas@extundo.com>
64208
64209         * lib/xgethostname.c: Don't include error.h (not used).
64210
64211         * lib/getpass.h: Add.
64212         * lib/getpass.c: Include getpass.h first.
64213
64214 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64215
64216         * lib/xalloc-die.c: New file.
64217         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64218         All uses removed.
64219         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64220         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64221         xalloc-die.c.
64222         (_, N_, xalloc_die): Move to xalloc-die.c.
64223         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64224         so that we needn't mess with xalloc_msg_memory_exhausted.
64225
64226         * lib/sha1.h: Renamed from sha.h.
64227         (SHA1_H): Renamed from _SHA_H.
64228         (sha1_ctx): Renamed from sha_ctx.
64229         (sha1_init_ctx): Renamed from sha_init_ctx.
64230         (sha1_process_block): Renamed from sha_process_block.
64231         (sha1_process_bytes): Renamed from sha_process_bytes.
64232         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64233         (sha1_read_ctx): Renamed from sha_read_ctx.
64234         (sha1_stream): Renamed from sha_stream.
64235         (sha1_buffer): Renamed from sha_buffer.
64236         * lib/sha1.c: Likewise; renamed from sha.c.
64237         Do not include <sys/types.h>.
64238         Include <stddef.h> rather than <stdlib.h>.
64239
64240 2004-08-08  Bruno Haible  <bruno@clisp.org>
64241
64242         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64243         FILESYSTEM_PREFIX_LEN.
64244         * lib/progreloc.c: Likewise.
64245         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64246
64247 2004-08-06  Simon Josefsson  <jas@extundo.com>
64248
64249         * modules/progname (Depends-on): Don't depend on stdbool.
64250
64251 2004-08-06  Simon Josefsson  <jas@extundo.com>
64252
64253         * modules/getsubopt: New file.
64254         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64255         getsubopt.
64256
64257 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64258
64259         More merge from coreutils.
64260
64261         * m4/utimens.m4, m4/utimecmp.m4: New files.
64262         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64263         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64264         prereq.m4, sha.m4: Import changes from coreutils.
64265
64266 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64267
64268         More merge from coreutils.
64269         * modules/raise, modules/readtokens0, modules/utimens:
64270         * modules/utimecmp, module/xnanosleep: New files.
64271         * modules/strftime: Add lib/strftime.h.
64272         Change include from <time.h> to "strftime.h".
64273         * modules/yesno: Add lib/yesno.h.
64274         * modules/backupfile: Remove lib/addext.c.
64275         * modules/euidaccess: Add stat-macros.h.
64276         * modules/canonicalize, modules/euidaccess,
64277         modules/filemode, modules/lchown, modules/makepath,
64278         modules/rmdir, modules/stat: Likewise.
64279
64280 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         Merge from tar.
64283         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64284         SIZE_MAX is a valid preprocessor constant.
64285         (__argp_basename): Change from "#ifndef _LIBC"
64286         to "#ifndef __argp_short_program_name", so that
64287         we don't compile these functions for tar.
64288
64289         More merges from coreutils.
64290         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64291         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64292         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64293         * lib/addext.c: Remove; no longer needed.
64294         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64295         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64296         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64297         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64298         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64299         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64300         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64301         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64302         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64303         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64304         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64305         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64306         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64307         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64308         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64309         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64310         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64311         Import changes from coreutils.
64312
64313 2004-08-05  Simon Josefsson  <jas@extundo.com>
64314
64315         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64316
64317 2004-08-05  Simon Josefsson  <jas@extundo.com>
64318
64319         * m4/getsubopt.m4: New file.
64320
64321 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64322
64323         Merge from coreutils.
64324
64325         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64326         * m4/getcwd-path-max.m4: New files.
64327
64328         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64329         FILESYSTEM_PREFIX_LEN ->
64330         FILE_SYSTEM_PREFIX_LEN.
64331         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64332         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64333         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64334         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64335
64336         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64337         prerequisite modules now handle the DOS stuff.
64338         Don't check for unistd.h.
64339
64340 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64341
64342         Merge from coreutils.
64343
64344         * lib/.gdb-history: Remove; this doesn't belong here.
64345
64346         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64347         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64348         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64349         * lib/getcwd.c: New files.
64350
64351         * lib/dirname.h: Include <stdbool.h>.
64352         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64353         for consistency with POSIX terminology.  All uses changed.
64354         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64355         (strip_trailing_slashes): Use bool for booleans.
64356         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64357
64358         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64359         sometimes returns a positive errno value even when it succeeds.
64360         (print_errno_message) [!LIBC]: Fall back on strerror if
64361         __strerror_r fails.
64362
64363         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64364         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64365         (longest_relative_suffix): New function.
64366         (path_concat): Use it.  Assume first argument is not NULL.
64367         Port to DOS.  Omit redundant separators.
64368         Report an error instead of returning NULL.
64369         Use mempcpy instead of memcpy.
64370         (xpath_concat): Remove: not declared or used.
64371
64372         * lib/same.h: Include <stdbool.h>
64373         (same_name): Return bool, not int.
64374         * lib/same.c (same_name): Likewise.
64375         (errno): Don't declare; we assume C89 or better now.
64376
64377         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64378         if not already defined.
64379
64380         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
64381         * lib/dup-safer.c (errno): Likewise.
64382
64383 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64384
64385         Merge from coreutils.
64386         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
64387         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
64388         * modules/path-concat: Don't depend on strdup.
64389
64390 2004-08-03  Simon Josefsson  <jas@extundo.com>
64391
64392         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
64393         * lib/progname.h: Don't include stdbool.h.
64394
64395 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64396
64397         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
64398         * MODULES.html.sh (func_all_modules): Remove fatal.
64399
64400 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64401
64402         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
64403
64404 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64405
64406         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
64407         working.
64408
64409 2004-08-02  Simon Josefsson  <jas@extundo.com>
64410
64411         * lib/getsubopt.h: New file, with comments from Bruno Haible.
64412         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
64413         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
64414
64415 2004-08-01  Simon Josefsson  <jas@extundo.com>
64416
64417         * lib/xgetdomainname.c: Include stdlib.h, for free().
64418
64419 2004-07-19  Bruno Haible  <bruno@clisp.org>
64420
64421         * MODULES.html.sh (func_all_modules): Add dummy.
64422
64423 2004-07-16  Simon Josefsson  <jas@extundo.com>
64424
64425         * modules/dummy: New file.
64426
64427 2004-07-16  Simon Josefsson  <jas@extundo.com>
64428
64429         * lib/dummy.c: New file.
64430
64431 2004-07-16  Bruno Haible  <bruno@clisp.org>
64432
64433         * lib/backupfile.h: Add extern "C" for C++.
64434         * lib/closeout.h: Likewise.
64435         * lib/copy-file.h: Likewise.
64436         * lib/findprog.h: Likewise.
64437         * lib/full-write.h: Likewise.
64438         * lib/pathname.h: Likewise.
64439         * lib/progname.h: Likewise.
64440         * lib/stpcpy.h: Likewise.
64441         * lib/stpncpy.h: Likewise.
64442         * lib/strcase.h: Likewise.
64443         * lib/strstr.h: Likewise.
64444         * lib/xalloc.h: Likewise.
64445
64446         * lib/mbswidth.h: Add extern "C" for C++.
64447         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
64448
64449 2004-07-13  Robert Millan  <robertmh@gnu.org>
64450
64451         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64452
64453 2004-07-09  Simon Josefsson  <jas@extundo.com>
64454
64455         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
64456         failed without this.)
64457
64458 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64459
64460         * modules/chown (Files): Add lib/fchown-stub.c, since
64461         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
64462
64463 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64464
64465         * lib/fchown-stub.c: New file.
64466
64467 2004-06-24  Jim Meyering  <jim@meyering.net>
64468
64469         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
64470
64471 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64472
64473         * modules/argz: Omit "#include".
64474
64475         * MODULES.html.sh (func_all_modules): Add calloc, to match
64476         2004-06-01 addition of calloc module.
64477
64478 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64479
64480         * m4/argz.m4: New file, which is autoupdated from libtool.
64481
64482 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64483
64484         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
64485         libtool.
64486
64487 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64488
64489         * config/srclist-update: Don't insist on "USA." before the
64490         close-comment, as libtool omits the period and puts the */ on a
64491         separate line.
64492         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
64493         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
64494
64495 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
64496
64497         * modules/argz: New file.
64498         * MODULES.html.sh (func_all_modules): Add argz.
64499
64500 2004-06-12  Jim Meyering  <jim@meyering.net>
64501         and  Paul Eggert  <eggert@cs.ucla.edu>
64502
64503         * modules/hash (Files): Add lib/xalloc.h.
64504         * modules/pipe (Depends-on): Add wait-process.
64505         * modules/stat (Depends-on): Add xalloc.
64506         * modules/userspec (Files): Add lib/userspec.h.
64507         * modules/xstrto
64508
64509         Upgrade from gettext-0.13.
64510         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
64511         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
64512         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
64513
64514 2004-06-10  Jim Meyering  <jim@meyering.net>
64515
64516         * lib/calloc.c: New file.
64517
64518 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64519
64520         * lib/getdate.y (yylex): Allow space between sign and number.
64521         Problem reported by Dan Jacobson.
64522
64523 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64524
64525         Merge from coreutils CVS.
64526
64527         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
64528         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
64529         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
64530         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
64531         xstrtol.m4: Fix copyright date and/or serial number.
64532
64533         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
64534         See if we need an fchown replacement.
64535         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
64536         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
64537         and use the replacement function if we detect either defect.
64538
64539         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
64540         gl_UTIMECMP.
64541
64542 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64543         and  Jim Meyering  <jim@meyering.net>
64544
64545         Merge from coreutils CVS.
64546
64547         * lib/stat-macros.h: New file, with contents from file-type.h
64548         and coreutils' system.h.
64549         * lib/file-type.c: Include "stat-macros.h".
64550         * lib/file-type.h (file_type): Move all macro definitions to new file,
64551         stat-macros.h.
64552
64553         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
64554         Wrap old code with this conditional.
64555         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
64556         function that does not dereference symlinks.
64557         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
64558
64559         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
64560         dependency problems.
64561         (xreadlink): Accept new arg SIZE, for efficiency.
64562         All decls and uses changed.
64563         * lib/xreadlink.h: Include <stddef.h>, for size_t.
64564
64565         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
64566         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
64567
64568         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
64569         sysexits.h.
64570
64571 2004-06-01  Jim Meyering  <jim@meyering.net>
64572
64573         * m4/calloc.m4: New file.
64574
64575 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
64576
64577         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
64578         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
64579         Also, fix a typo in a diagnostic.
64580
64581 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64582
64583         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
64584         or AC_FUNC_REALLOC.
64585
64586 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
64589         macros to be defined.
64590         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
64591         the allocator returns NULL because the requested size is zero.
64592
64593 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64594
64595         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
64596         var.  Add comment explaining why libc still defines it.  This
64597         merges the following patch from glibc:
64598         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
64599
64600 2004-05-20  Andreas Schwab  <schwab@suse.de>
64601
64602         * m4/free.m4: Replace free if it not known to work, not the other
64603         way round.
64604
64605 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64606
64607         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
64608         present in glibc since revision 1.1 of this file.
64609         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
64610         obstack_alignment_mask, obstack_alloc, obstack_base,
64611         obstack_blank, obstack_blank_fast, obstack_chunk_size,
64612         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
64613         obstack_grow0, obstack_init, obstack_int_grow,
64614         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
64615         obstack_next_free, obstack_object_size, obstack_ptr_grow,
64616         obstack_ptr_grow_fast, obstack_room): Remove declarations of
64617         nonexistent functions.
64618
64619 2004-05-18  Karl Berry  <karl@gnu.org>
64620
64621         * config/srclist.txt: break link for vasnprintf.c.
64622
64623 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64624
64625         Port obstack to the AS/400, where pointers are 16 bytes wide and
64626         you cannot cast an integer to a valid pointer.  This patch is
64627         currently waiting to be integrated into glibc; see
64628         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
64629
64630         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
64631         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
64632         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
64633         (struct obstack): temp member is now a union of a pointer and
64634         an integer, instead of an integer.  All integer uses changed.
64635         This does not affect the physical layout of struct obstack,
64636         except on hosts (like the AS/400) where the size or alignment of
64637         void * is greater than that of ptrdiff_t.
64638         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
64639         __STDC__)]: Store temporary in pointer member of union, not
64640         integer member.
64641         * lib/obstack.c: Include <stddef.h>, for offsetof.
64642         (struct fooalign): Remove; it doesn't need a name.
64643         (union fooround): Change double to long double, and add void *.
64644         (DEFAULT_ALIGNMENT): Use offsetof to compute.
64645         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
64646         not a macro.  Hence the values are always int; so remove all
64647         casts-to-int in uses.
64648
64649 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64650
64651         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
64652         we can get this patch merged into glibc.
64653
64654 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64655             Paul Eggert  <eggert@cs.ucla.edu>
64656
64657         * m4/argp: Depend on alloca.
64658
64659 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64660             Paul Eggert  <eggert@cs.ucla.edu>
64661
64662         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
64663         freecoding.
64664
64665 2004-05-17  Bruno Haible  <bruno@clisp.org>
64666
64667         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
64668         precision that consists of a '.' followed by an empty digit string.
64669         Patch by Tor Lillqvist <tml@iki.fi>.
64670
64671 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64672
64673         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
64674         for backward compatibility with older code.  We need our own
64675         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
64676         it under some other name, and our alloca.h will define it.
64677
64678 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64679             Derek Price  <derek@ximbiot.com>
64680
64681         * lib/alloca.c: Include <alloca.h>, to get our interface.
64682         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
64683         include <alloca.h> first.  Use C89 prototype for alloca; this
64684         requires including <stddef.h> for size_t.  Use extern "C" if C++.
64685         Use #elif for simplicity, since we can assume C89 now.
64686         Don't try to source the system alloca.h since it will not be found
64687         and to prevent recursively including its replacement.
64688         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
64689         * lib/regex.c: Likewise.
64690
64691 2004-05-16  Derek Price  <derek@ximbiot.com>
64692             Paul Eggert  <eggert@cs.ucla.edu>
64693
64694         getline cleanup.  This changes the getndelim2 API: both order of
64695         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
64696         no delimiter).
64697
64698         * lib/getline.c: Don't include stddef.h or stdio.h, since our
64699         interface does that.
64700         (getline): Always use getdelim, so that we don't have two
64701         copies of this code.
64702         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
64703         if available.
64704         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
64705         (GETNDELIM2_MAXIMUM): New macro.
64706         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
64707         instead of the old practice of delim2==0.  All callers changed.
64708         Return -1 on overflow, instead of returning junk.
64709         Do not set *linesize unless allocation succeeds.
64710         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
64711         that we include sys/types.h.
64712         * lib/getnline.h: Likewise.
64713         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
64714         (getndelim2): Reorder arguments.
64715         * lib/getnline.c (getnline, getndelim):
64716         Don't discard the NMAX argument.
64717         (getnline): Invoke getndelim, to avoid code duplication.
64718         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
64719         of (size_t) -1 by callers of the getnline family.
64720
64721 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64722
64723         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
64724         Check for gettimeofday.
64725         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
64726         Check for settimeofday, stime.
64727
64728 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64729
64730         * lib/nanosleep.c (suspended): Change its type from int to
64731         sig_atomic_t volatile.
64732         (first_call): Make it private to rpl_nanosleep, and have it
64733         be zero initially as that's a bit faster.
64734         (my_usleep): Round up fractional times instead of truncating them,
64735         as this is the usual meaning for 'sleep'.
64736
64737         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
64738         doesn't work.
64739         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
64740         (ENOSYS): Define if not defined.
64741         (settime): Fall back on stime if it exists and settimeofday fails.
64742         But don't bother with fallbacks if a method fails with errno == EPERM.
64743
64744 2004-05-11  Jim Meyering  <jim@meyering.net>
64745
64746         Prior to this change, the save_cwd caller required read access to the
64747         current directory on most systems (ones with the fchdir function).
64748
64749         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
64750         fails, try write-only, and finally, resort to using xgetcwd.
64751
64752 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64753
64754         * lib/obstack.c, obstack.h: Import changes from libc.
64755
64756 2004-04-28  Bruno Haible  <bruno@clisp.org>
64757
64758         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
64759         also implicitly appends .exe to executables.
64760         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
64761         accepts Windows pathnames.
64762         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64763         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64764         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64765         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64766         Reported by Derek Robert Price <derek@ximbiot.com>.
64767
64768 2004-04-21  Karl Berry  <karl@gnu.org>
64769
64770         * config/srclist.txt (localcharset.c): break sync.
64771
64772 2004-04-20  Paul Eggert  <eggert@twinsun.com>
64773
64774         * m4/host-os.m4: Add a copyright notice.
64775
64776 2004-04-20  Jim Meyering  <jim@meyering.net>
64777
64778         Change UTILS_ to gl_ in AC_DEFINE'd names.
64779         Change utils_- and jm_-prefixed variables, too.
64780         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
64781         UTILS_FUNC_MKDIR_TRAILING_SLASH.
64782         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
64783
64784         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
64785         Don't emit trailing blanks.
64786         Also rename jm_-prefixed variables to have gl_ prefix.
64787
64788         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
64789         Also rename jm_-prefixed variables to have gl_ prefix.
64790
64791         * m4/jm-macros.m4: Reflect the renamings.
64792         * m4/prereq.m4: Likewise.
64793
64794 2004-04-20  Jim Meyering  <jim@meyering.net>
64795
64796         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
64797         memory.
64798
64799 2004-04-20  Jim Meyering  <jim@meyering.net>
64800             Bruno Haible  <bruno@clisp.org>
64801
64802         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
64803         memory when realloc fails.
64804
64805 2004-04-19  Jim Meyering  <jim@meyering.net>
64806
64807         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
64808         now that readutmp.c may call `free (0)'.
64809
64810 2004-04-19  Bruno Haible  <bruno@clisp.org>
64811
64812         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
64813         * m4/inttypes_h.m4: Likewise.
64814         * m4/stdint_h.m4: Likewise.
64815         * m4/intmax_t.m4: Likewise.
64816         * m4/uintmax_t.m4: Likewise.
64817
64818 2004-04-18  Jim Meyering  <jim@meyering.net>
64819
64820         * m4/prereq.m4: Don't forbid jm_ prefix.
64821
64822         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
64823         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
64824         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
64825         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
64826         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
64827         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
64828         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
64829         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
64830         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
64831         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
64832         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
64833         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
64834         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
64835         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
64836         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
64837         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
64838         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
64839         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
64840         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
64841
64842 2004-04-18  Jim Meyering  <jim@meyering.net>
64843
64844         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
64845         failure, don't leak memory and do call END_UTMP_ENT.
64846
64847 2004-04-16  Jim Meyering  <jim@meyering.net>
64848
64849         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
64850         coreutils' stat program.
64851         (gl_PREREQ): Don't require jm_PREREQ_STAT.
64852
64853 2004-04-11  Paul Eggert  <eggert@twinsun.com>
64854
64855         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
64856         C89.
64857         (CHAR_BIT): Remove, since we assume C89.
64858         Include <stdint.h> if available, as per current Autoconf CVS advice.
64859
64860 2004-03-31  Jim Meyering  <jim@meyering.net>
64861
64862         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
64863         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
64864         * m4/xalloc.m4: Likewise.
64865
64866 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64867
64868         Merge from coreutils.
64869
64870         * m4/inttostr.m4: New file.
64871         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
64872         Require AM_STDBOOL_H and gl_TIMESPEC instead.
64873         Require gl_CLOCK_TIME.
64874         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
64875
64876 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64877
64878         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
64879         not bool, to be more consistent with Unix conventions.
64880         Suggested by Bruno Haible.
64881
64882         Merge from coreutils.
64883
64884         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
64885         * lib/umaxtostr.c: New files.
64886
64887         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
64888         the usual <time.h> dance.
64889         (get_date): Change signature to support fractional time stamps.
64890         All callers changed.
64891         * lib/getdate.y: Include "getdate.h" first, as we can now
64892         assume C89 and don't need to worry about 'const'.
64893         Similarly, include "unlocked-io.h" near start, not in middle.
64894         Include <limits.h>.
64895         (textint.value): Use long int rather than int.
64896         (textint.digits): Use size_t rather than int.
64897         (BILLION, LOG10_BILLION): New constants.
64898         (parser_control): New member rel_ns.  Members day_ordinal,
64899         time_zone, month, day, hour, minutes, rel_year, rel_month,
64900         rel_day, rel_hour, rel_minutes, rel_seconds
64901         are now long int, not int.  Member seconds is now struct timespec,
64902         not int.  New member timespec_seen.  Members dates_seen, days_seen,
64903         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
64904         not int.
64905         (%union.intval): Now long int, not int.
64906         New member timespec.
64907         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
64908         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
64909         (spec): Now is a timespec or an item list.
64910         (timespec, items): New nonterminals.
64911         (time, rel, relunit, number, get_date):
64912         Add support for fractional seconds.
64913         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
64914         (gmtime, localtime, mktime): Remove decls; not needed with C89.
64915         (to_hour): First arg is now long int, not int.
64916         (to_year): Returns long int, not int.
64917         Don't treat year -70 like 70.
64918         (tm_diff): Returns long int, not int.
64919         (lookup_word): Use bool instead of int when appropriate.
64920         (yylex): Use size_t for count, not int.
64921         Detect overflow when parsing large integer constants.
64922         Add support for fractions.
64923         (get_date): Make pointers 'const' if possible.
64924         Use more-portable code to detect integer overflow.
64925         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
64926         Don't use ctime; it's not reliable if the year has >4 digits.
64927
64928         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
64929         This is for compatibility with BSD.
64930
64931         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
64932         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
64933         From coreutils' system.h.
64934
64935         * lib/userspec.c: Don't include "posixver.h".
64936         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
64937         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
64938         compatible extension.  Simplify code by removing a boolean int
64939         that was always nonzero if a string was nonnull.
64940
64941 2004-03-30  Jim Meyering  <jim@meyering.net>
64942
64943         Merge from coreutils.
64944
64945         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
64946         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
64947         on some systems one must include <grp.h> before it.
64948         Reported by Christian Krackowizer.
64949
64950 2004-03-30  Jim Meyering  <jim@meyering.net>
64951
64952         Merge from coreutils.
64953
64954         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
64955
64956         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
64957         an empty input stream.
64958
64959         * lib/readtokens.c: Include <stdbool.h>.
64960         (readtoken): Use `size_t' rather than int/long.
64961         All callers adjusted.
64962         Use `bool' rather than `int' where appropriate.
64963         Use memset rather than an explicit loop.
64964         Use x2nrealloc rather than xrealloc.
64965         Allow the use of `\0' as a delimiter.
64966         (readtokens): Likewise.
64967         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
64968
64969 2004-03-30  Jim Meyering  <jim@meyering.net>
64970
64971         * m4/realloc.m4: Remove file, since now it does no more than
64972         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
64973         the `configure.ac' section of module/realloc.
64974         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
64975
64976 2004-03-30  Bruno Haible  <bruno@clisp.org>
64977
64978         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
64979         nonnull.
64980
64981 2004-03-29  Paul Eggert  <eggert@twinsun.com>
64982
64983         Merge changes to getloadavg.c from coreutils and Emacs.
64984
64985         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
64986         Define to an expression, not to the empty string.
64987         Include cloexec.h and xalloc.h.
64988         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
64989         Use set_cloexec_flag rather than rolling our own.
64990         * lib/cloexec.c, lib/cloexec.h: New files.
64991
64992 2004-03-29  Paul Eggert  <eggert@twinsun.com>
64993
64994         * m4/cloexec.m4: New file.
64995
64996 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64997
64998         * lib/getopt.h: Sync with libc CVS.
64999
65000 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65001             Bruno Haible  <bruno@clisp.org>
65002
65003         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65004         mbswidth.
65005
65006 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65007             Bruno Haible  <bruno@clisp.org>
65008
65009         * lib/mbswidth.h: Include <wchar.h> only if
65010         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65011         <wchar.h>.
65012         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65013
65014 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65015
65016         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65017         Sync with libc CVS.
65018         * lib/getopt_int.h: New file, also synced from libc.
65019
65020 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65021
65022         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65023         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65024         Bring back getopt.c, getopt.h, getopt1.c.
65025
65026 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65027
65028         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65029         All uses changed.  Check for sa_sigaction member; this fixes
65030         a bug first reported by Jason Andrade in
65031         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65032
65033 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65034
65035         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65036         '#if' expressions.  Unlike the code it replaces, it does not
65037         depend on (defined _SC_PAGESIZE).  However, it does depend on
65038         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65039         first reported by Jason Andrade in
65040         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65041
65042 2004-02-25  Simon Josefsson  <jas@extundo.com>
65043
65044         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65045
65046 2004-02-25  Simon Josefsson  <jas@extundo.com>
65047
65048         * lib/strdup.h: New file.
65049         * lib/strdup.c: Include it.
65050         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
65051         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
65052
65053 2004-02-23  Karl Berry  <karl@gnu.org>
65054
65055         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
65056         (from fencepost.gnu.org:/gd/gnuorg).
65057
65058 2004-02-23  Karl Berry  <karl@gnu.org>
65059
65060         * config/srclistvars.sh (GNUORG) [karl]: redefine.
65061         * config/srclist.txt: add maintain/standards documents.
65062
65063 2004-02-18  Bruno Haible  <bruno@clisp.org>
65064
65065         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65066         Reported by Derek Robert Price <derek@ximbiot.com>.
65067
65068 2004-02-16  Karl Berry  <karl@gnu.org>
65069
65070         * config/mkinstalldirs, install-sh: update from automake.
65071
65072 2004-02-06  Karl Berry  <karl@gnu.org>
65073
65074         * m4/po.m4: update from gettext 0.14.1.
65075
65076 2004-02-06  Karl Berry  <karl@gnu.org>
65077
65078         * lib/config.charset: update from gettext 0.14.1.
65079
65080 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65081
65082         Add comments and code, prompted by suggestions from Bruno Haible
65083         for sh-quote.
65084         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65085         describing the enum quoting_style values.
65086         * lib/quotearg.c (quotearg_alloc): New function.
65087         (quotearg_buffer_restyled): Treat lone { and } as special.
65088         Treat = as special.  Work around bug with older shells
65089         that "see" a '\' that is really the 2nd byte of a multibyte char.
65090         Quote empty string with shell_quoting_style.
65091
65092 2004-02-03  Bruno Haible  <bruno@clisp.org>
65093
65094         * m4/pipe.m4: New file, from GNU gettext.
65095
65096 2004-02-03  Bruno Haible  <bruno@clisp.org>
65097
65098         * lib/pipe.h: New file, from GNU gettext.
65099         * lib/pipe.c: New file, from GNU gettext.
65100
65101 2004-01-27  Bruno Haible  <bruno@clisp.org>
65102
65103         * m4/execute.m4: New file, from GNU gettext.
65104
65105 2004-01-27  Bruno Haible  <bruno@clisp.org>
65106
65107         * lib/execute.h: New file, from GNU gettext.
65108         * lib/execute.c: New file, from GNU gettext.
65109         * lib/w32spawn.h: New file, from GNU gettext.
65110
65111 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65112
65113         Merge from diffutils.
65114
65115         * lib/file-type.c (file_type): Add typed memory objects.
65116         * lib/file-type.h (S_TYPEISTMO): New macro.
65117
65118         * lib/c-stack.h (c_stack_action): Remove argv argument.
65119         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65120         (die): Don't calculate message unless segv_action returns.
65121         (get_stack_location, min_address_from_argv, max_address_from_argv,
65122         volatile stack_base, volatile_stack_size): Remove.
65123         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65124         that every segmentation violation is a stack overflow.  (Ouch!)
65125         See Debian bug 136249 (still outstanding) for more info about why
65126         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65127
65128 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65129
65130         Exit-status fix from coreutils.
65131
65132         Use exit_failure consistently in place of EXIT_FAILURE,
65133         so that program exit statuses are consistent on failure.
65134
65135         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65136         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65137         * lib/argmatch.h: Comment fix to match the above.
65138         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65139         Now a macro referring to exit_failure, instead of a separate
65140         variable.  Include "exitfail.h" to get it.
65141         * lib/xstrtol.h: Include "exitfail.h".
65142         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65143
65144         * lib/long-options.c (parse_long_options): Use prototype
65145         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65146         for clarity.
65147
65148 2004-01-21  Jim Meyering  <jim@meyering.net>
65149
65150         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65151         so as not to conflict with a different-sized __mktime_internal
65152         function in GNU libc.
65153         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65154         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65155
65156 2004-01-20  Karl Berry  <karl@gnu.org>
65157
65158         * config/config.guess: update from config.
65159
65160         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65161
65162 2004-01-20  Bruno Haible  <bruno@clisp.org>
65163
65164         Safer stack allocation.
65165         * lib/setenv.c: Include allocsa.h.
65166         (alloca): Remove fallback definition.
65167         (freea): Remove macro.
65168         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65169         instead of freea.
65170
65171 2004-01-20  Bruno Haible  <bruno@clisp.org>
65172
65173         * m4/eealloc.m4: New file, from GNU gettext.
65174
65175 2004-01-20  Bruno Haible  <bruno@clisp.org>
65176
65177         * m4/allocsa.m4: New file, from GNU gettext.
65178
65179 2004-01-20  Bruno Haible  <bruno@clisp.org>
65180
65181         * lib/xallocsa.h: New file, from GNU gettext.
65182         * lib/xallocsa.c: New file, from GNU gettext.
65183
65184 2004-01-20  Bruno Haible  <bruno@clisp.org>
65185
65186         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65187
65188 2004-01-20  Bruno Haible  <bruno@clisp.org>
65189
65190         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65191         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65192         specially.
65193
65194 2004-01-20  Bruno Haible  <bruno@clisp.org>
65195
65196         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65197         patch.
65198
65199 2004-01-20  Bruno Haible  <bruno@clisp.org>
65200
65201         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65202
65203 2004-01-20  Bruno Haible  <bruno@clisp.org>
65204
65205         * lib/eealloc.h: New file.
65206
65207 2004-01-20  Bruno Haible  <bruno@clisp.org>
65208
65209         * lib/binary-io.h: Avoid warnings on Cygwin.
65210
65211 2004-01-20  Bruno Haible  <bruno@clisp.org>
65212
65213         * lib/allocsa.h: New file, from GNU gettext.
65214         * lib/allocsa.c: New file, from GNU gettext.
65215
65216 2004-01-18  Karl Berry  <karl@gnu.org>
65217
65218         * doc/gpl.texi, doc/lgpl.texi: new files.
65219
65220 2004-01-18  Karl Berry  <karl@gnu.org>
65221
65222         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65223         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65224
65225 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65226
65227         Merge from coreutils.
65228
65229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65230         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65231         (gl_DEFAULT_POSIX2_VERSION): Move
65232         the documentation from 'configure' into 'config.hin',
65233         so that 'configure --help' isn't burdened by it and
65234         we don't have to worry about its formatting there.
65235         Reword the documentation so that it's more succinct
65236         and can be run together into a single paragraph.
65237         * m4/same.m4 (gl_SAME): Check for pathconf.
65238
65239 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65240
65241         Merge from coreutils.
65242
65243         * lib/posixver.c: Include posixver.h.
65244
65245         * lib/same.c: Include <stdbool.h>, <limits.h>.
65246         (_POSIX_NAME_MAX): Define if not defined.
65247         (MIN): New macro.
65248         (same_name): If file names are silently truncated, report
65249         that the file names are the same if they are the same after
65250         the silent truncation.
65251
65252         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65253         conversion function.
65254         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65255         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65256         longer needed.
65257
65258 2004-01-15  Jim Meyering  <jim@meyering.net>
65259
65260         Merge from coreutils.
65261
65262         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65263         if no library is required.
65264         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65265         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65266         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65267         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65268         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65269         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65270         value, $ac_cv_search_crypt, if it's "none required".
65271         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65272         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65273         not gl_FUNC_GETLOADAVG.
65274         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65275         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65276
65277 2004-01-15  Jim Meyering  <jim@meyering.net>
65278
65279         Merge from coreutils.
65280
65281         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65282         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65283         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65284
65285         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65286         optional configure-time default.
65287
65288         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65289
65290         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65291
65292 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65293
65294         Merge from coreutils.
65295
65296         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65297         value, $ac_cv_search_nanosleep, if it's "none required".
65298
65299 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65300
65301         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65302         with like-named macro in fnmatch.c.
65303         (EXT): Use an internal constant instead.
65304
65305         Merge fnmatch patches from glibc.
65306         * lib/fnmatch.c (mbsinit): Remove define.
65307         Add libc_hidden_ver (__fnmatch, fnmatch).
65308         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65309         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65310
65311 2004-01-14  Karl Berry  <karl@gnu.org>
65312
65313         * config/install-sh: update from automake.
65314
65315 2004-01-13  Karl Berry  <karl@gnu.org>
65316
65317         * config/install-sh: update from automake.
65318
65319 2004-01-09  Karl Berry  <karl@gnu.org>
65320
65321         * config/install-sh: update from automake.
65322
65323 2004-01-05  Karl Berry  <karl@gnu.org>
65324
65325         * config/config.{sub,guess}: update from config.
65326
65327 2003-12-31  Karl Berry  <karl@gnu.org>
65328
65329         * config/depcomp: update from automake.
65330
65331 2003-12-14  Karl Berry  <karl@gnu.org>
65332
65333         * lib/config.charset: update from gettext-runtime.
65334
65335 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65336
65337         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65338         Bug reported by Alfred M. Szmidt.
65339
65340 2003-12-03  Bruno Haible  <bruno@clisp.org>
65341
65342         * m4/gettext.m4: Upgrade from gettext-0.13.
65343         * m4/po.m4: Upgrade from gettext-0.13.
65344         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65345         * m4/intmax.m4: New file, from gettext-0.13.
65346         * m4/printf-posix.m4: New file, from gettext-0.13.
65347
65348 2003-11-29  Karl Berry  <karl@gnu.org>
65349
65350         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65351
65352 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65353             Bruno Haible  <bruno@clisp.org>
65354
65355         * lib/printf-parse.h: Don't include sys/types.h.
65356         (ARG_NONE): New macro.
65357         (char_directive): Change type of *arg_index fields to size_t.
65358         * lib/printf-parse.c: Don't include sys/types.h.
65359         (SSIZE_MAX): Remove macro.
65360         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65361         Remove unnecessary overflow check.
65362         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65363         fields.
65364
65365 2003-11-25  Bruno Haible  <bruno@clisp.org>
65366
65367         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65368
65369 2003-11-25  Bruno Haible  <bruno@clisp.org>
65370
65371         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65372         gt_TYPE_SSIZE_T.
65373
65374 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65375
65376         * modules/alloca: Remove dependency on xalloc.
65377
65378 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65379
65380         * lib/alloca.c: Remove dependency on xalloc module.
65381         (xalloc_die): Remove.
65382         (memory_full) [!defined emacs]: New macro.
65383         [!defined emacs]: Don't include xalloc.h.
65384         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
65385         address arithmetic overflows.  Change datatypes a bit to avoid
65386         unnecessary casts.
65387
65388 2003-11-22  Jim Meyering  <jim@meyering.net>
65389
65390         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
65391         s/size/size_t/.
65392
65393 2003-11-21  Karl Berry  <karl@gnu.org>
65394
65395         * config/config.{sub,guess}: update from config.
65396
65397 2003-11-18  Karl Berry  <karl@gnu.org>
65398
65399         * config/config.{sub,guess}: update from config.
65400
65401         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
65402
65403 2003-11-17  Paul Eggert  <eggert@twinsun.com>
65404
65405         * README: Mention that S+T cannot overflow if S is the size of
65406         an existing object and T is sufficiently small.
65407
65408 2003-11-17  Jim Meyering  <jim@meyering.net>
65409
65410         On systems without utime and without a utimes function capable of
65411         dealing with a NULL struct utimbuf* argument, this utime replacement
65412         could -- in unusual circumstances -- leak a file descriptor.
65413         * lib/utime.c: Include <unistd.h> and <errno.h>.
65414         (utime_null): Be sure to close `fd' and to preserve errno.
65415         Reported by Geoff Collyer via Arnold Robbins.
65416
65417 2003-11-17  Bruno Haible  <bruno@clisp.org>
65418
65419         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
65420         (Depends-on): Add xsize.
65421
65422 2003-11-17  Bruno Haible  <bruno@clisp.org>
65423
65424         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
65425
65426 2003-11-17  Bruno Haible  <bruno@clisp.org>
65427
65428         * lib/vasnprintf.c (alloca): Remove fallback definition.
65429         (freea): Remove definition.
65430         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
65431         Reported by Paul Eggert.
65432
65433 2003-11-16  Paul Eggert  <eggert@twinsun.com>
65434             Bruno Haible  <bruno@clisp.org>
65435
65436         Protect against address arithmetic overflow.
65437         * lib/printf-args.h: Include stddef.h.
65438         (arguments): Change type of field 'count' to size_t.
65439         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
65440         'unsigned int' where appropriate.
65441         * lib/printf-parse.h: Include sys/types.h.
65442         (char_directive): Change type of *arg_index fields to ssize_t.
65443         (char_directives): Change type of fields 'count', max_*_length to
65444         size_t.
65445         * lib/printf-parse.c: Include sys/types.h and xsize.h.
65446         (SSIZE_MAX): Define fallback value.
65447         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
65448         instead of 'int' where appropriate. Check a_allocated, d_allocated
65449         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
65450         * lib/vasnprintf.c: Include xsize.h.
65451         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65452         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65453         overflow. Avoid wraparound when converting a width or precision from
65454         decimal to binary.
65455
65456 2003-11-16  Bruno Haible  <bruno@clisp.org>
65457
65458         Update from GNU gettext.
65459         * lib/printf-parse.c: Generalize to it can be compiled for wide
65460         strings.
65461         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
65462         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
65463         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
65464         SNPRINTF): New macros.
65465         Don't include <alloca.h> if the file is used inside libintl.
65466         (local_wcslen): New function, for Solaris 2.5.1.
65467         (VASNPRINTF): Use it instead of wcslen.
65468
65469 2003-11-16  Bruno Haible  <bruno@clisp.org>
65470
65471         * lib/xsize.h (xmax): New function.
65472         (xsum, xsum3, xsum4): Declare as "pure" functions.
65473
65474 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65475
65476         * modules/xalloc (Files): Undo latest change, since xalloc.h
65477         no longer needs SIZE_MAX or PTRDIFF_MAX.
65478
65479 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65480
65481         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
65482         gl_PTRDIFF_MAX.
65483
65484 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65485
65486         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
65487         "return", to pacify some unknown compiler.  Problem reported
65488         by Joerg Schilling.
65489
65490 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65491
65492         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
65493         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
65494         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
65495         heuristic is just as accurate as far as we know, and it removes a
65496         dependency on size_max.m4 and ptrdiff_max.m4.
65497
65498 2003-11-11  Bruno Haible  <bruno@clisp.org>
65499
65500         * modules/xsize (Files): Add m4/size_max.m4.
65501         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
65502
65503 2003-11-11  Bruno Haible  <bruno@clisp.org>
65504
65505         * m4/size_max.m4: New file.
65506         * m4/ptrdiff_max.m4: New file.
65507         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
65508         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
65509         (gl_XALLOC): Invoke it.
65510
65511 2003-11-11  Bruno Haible  <bruno@clisp.org>
65512
65513         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
65514         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
65515         defined.
65516
65517 2003-11-10  Paul Eggert  <eggert@twinsun.com>
65518
65519         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
65520         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
65521         rejected some allocations of exactly SIZE_MAX - 2 bytes.
65522         From Bruno Haible.
65523         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
65524         not (size_t) -1, since it's defined here.
65525
65526 2003-11-09  Karl Berry  <karl@gnu.org>
65527
65528         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
65529
65530 2003-11-06  Paul Eggert  <eggert@twinsun.com>
65531
65532         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
65533         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
65534         Reject sizes of exactly SIZE_MAX bytes.
65535         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
65536         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
65537
65538 2003-11-05  Bruno Haible  <bruno@clisp.org>
65539
65540         * lib/xsize.h: Include limits.h, to avoid a possible collision with
65541         SIZE_MAX defined in <limits.h> on Solaris.
65542
65543 2003-11-04  Jim Meyering  <jim@meyering.net>
65544
65545         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
65546         variable names, rather than @VAR@.
65547         * modules/poll: Likewise.
65548
65549 2003-11-04  Bruno Haible  <bruno@clisp.org>
65550
65551         * modules/xsize: New file.
65552         * modules/linebreak: Depend on xsize.
65553         * MODULES.html.sh (func_all_modules): Add xsize.
65554
65555 2003-11-04  Bruno Haible  <bruno@clisp.org>
65556
65557         * m4/xsize.m4: New file.
65558
65559 2003-11-04  Bruno Haible  <bruno@clisp.org>
65560
65561         * lib/xsize.h: New file.
65562         * lib/linebreak.c: Include xsize.h.
65563         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
65564         argument for overflow.
65565         Suggested by Paul Eggert.
65566
65567 2003-11-03  Karl Berry  <karl@gnu.org>
65568
65569         * config/config.{guess,sub}: update from config.
65570
65571 2003-11-03  Jim Meyering  <jim@meyering.net>
65572
65573         * modules/userspec (lib_SOURCES): Add userspec.h.
65574         (Include): Add "userspec.h".
65575         Improve description.
65576
65577 2003-11-03  Jim Meyering  <jim@meyering.net>
65578
65579         * lib/userspec.c: Include "userspec.h".
65580         * lib/userspec.h: New file.
65581
65582 2003-11-03  Bruno Haible  <bruno@clisp.org>
65583
65584         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
65585
65586 2003-11-03  Bruno Haible  <bruno@clisp.org>
65587
65588         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
65589         available, to avoid (extremely rare) race condition.
65590         Suggested by Paul Eggert.
65591
65592 2003-11-02  Karl Berry  <karl@gnu.org>
65593
65594         * config/srclist.txt (vasprintf.c): sync broken, sigh.
65595
65596 2003-10-31  Paul Eggert  <eggert@twinsun.com>
65597
65598         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
65599         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
65600         (read_filesystem_list): Set and use me_type_malloced.
65601         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
65602         whatever the type happens to be), for brevity and consistency.
65603         Check for size calculation overflow on Alphas running OSF/1.
65604
65605 2003-10-31  Jim Meyering  <jim@meyering.net>
65606
65607         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
65608
65609         * lib/linebuffer.c: Include <string.h> for declaration of memset.
65610
65611 2003-10-30  Paul Eggert  <eggert@twinsun.com>
65612             Bruno Haible  <bruno@clisp.org>
65613
65614         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
65615         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
65616
65617 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65618
65619         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
65620         netbsd*-gnu*.  Suggested by Robert Millan.
65621
65622 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65623
65624         * modules/group-member: Depend on stdbool.
65625
65626 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65627
65628         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
65629
65630 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65631
65632         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
65633         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
65634         after the 'gnu' in these cases.  This fixes some bugs in the
65635         previous change, and is based on suggestions by Robert Millan.
65636
65637 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65638
65639         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
65640         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
65641         no longer needed.
65642         * lib/quotearg.c (quotearg_n_options): Use it.
65643         * lib/group-member.c: Include <stdbool.h>.
65644         (free_group_info): Arg is now const *; don't free arg.
65645         (get_group_info): Now returns bool and accepts struct group_info *,
65646         rather than returning a malloc'ed struct group_info *.
65647         All uses changed.  Check for overflow in internal size calculation.
65648
65649         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
65650         rather than xmalloc/xrealloc.
65651         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
65652         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
65653         conformance bug: the old code used a pointer after freeing the
65654         storage that it addressed.
65655         * lib/hash.c (hash_initialize): Simplify the code by using
65656         xalloc_oversized rather than doing it by hand.
65657         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
65658         the buffer preserved.  Use free and xmalloc instead.
65659         * lib/quotearg.c (quotearg_n_options): Likewise.
65660         Use a simpler test for size overflow.  Don't use xalloc_oversized
65661         because unsigned int might be wider than size_t (!); this suggests
65662         that we should switch from unsigned int to size_t for slot numbers.
65663
65664 2003-10-28  Paul Eggert  <eggert@twinsun.com>
65665
65666         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
65667         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
65668         NetBSD kernels.  Requested by Richard Stallman.
65669
65670 2003-10-27  Paul Eggert  <eggert@twinsun.com>
65671
65672         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
65673         to allocate the returned structure.  Do not allocate a subarray,
65674         as x2nrealloc will do that.
65675         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
65676         instead of xnrealloc.
65677         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
65678
65679 2003-10-27  Bruno Haible  <bruno@clisp.org>
65680
65681         * lib/stdbool_.h: Better support for BeOS.
65682
65683 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65684
65685         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
65686         now uses inline.
65687
65688 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65689
65690         * lib/xalloc.h (xalloc_oversized): New static inline function, for
65691         callers that want to do their own size-overflow checking.  Include
65692         <stdbool.h>, since xalloc_oversized returns bool.
65693         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
65694         to use xalloc_oversized.
65695
65696         Add two functions x2realloc, x2nrealloc, for programs that grow
65697         arrays dynamically by doubling their sizes.
65698         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
65699         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
65700         New functions.
65701
65702         Port to C99 semantics for 'inline' of external functions.
65703         Bug reported by Bruno Haible.
65704         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
65705         with the old contents of xnmalloc.
65706         (xnmalloc, xmalloc): Use it.
65707         (xnrealloc_inline): New static inline function,
65708         with the old contents of xnrealloc.
65709         (xnrealloc, xrealloc): Use it.
65710
65711         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
65712         that.
65713
65714 2003-10-26  Karl Berry  <karl@gnu.org>
65715
65716         * config/srclist.txt (COPYING.DOC): no longer available from
65717         /gd/gnuorg; don't know where the ultimate source is.
65718
65719 2003-10-25  Paul Eggert  <eggert@twinsun.com>
65720
65721         Fix several address-calculation bugs in the hash modules,
65722         plus some minor code cleanup.
65723
65724         * lib/hash.h: Include <stdbool.h>, for bool.
65725         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
65726         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
65727         hash_get_n_entries, hash_get_max_bucket_length,
65728         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
65729         hash_rehash): Use size_t rather than unsigned.
65730         * lib/hash.c (struct hash_table, hash_get_n_buckets,
65731         hash_get_n_buckets_used, hash_get_n_entries,
65732         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
65733         hash_get_entries, hash_do_for_each, hash_string, is_prime,
65734         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
65735         Likewise.
65736         (SIZE_MAX): Define if not defined.
65737         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
65738         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
65739         hash_print):
65740         Use const * when possible.
65741         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
65742         (check_tuning): Fix bug: if tuning parameters were very close to
65743         0 or 1, rounding errors could have caused subscript violations.
65744         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
65745         (hash_initialize): Add 'fail:' label
65746         to free table and return NULL, and use it to simplify code.
65747         Use calloc rather than clearing the storage ourself.
65748         (hash_initialize, hash_rehash): Check for arithmetic overflow in
65749         buffer size calculations.
65750         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
65751         Include <stddef.h>, for size_t.
65752         * lib/hash-pjw.c (hash_pjw): Likewise.
65753         Switch to method described by Bruno Haible.
65754         Include <limits.h>, for CHAR_BIT.
65755         (SIZE_BITS): New macro.
65756
65757 2003-10-23  Paul Eggert  <eggert@twinsun.com>
65758
65759         * m4/getline.m4 (AM_FUNC_GETLINE):
65760         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
65761         hosts.  Problem reported by Derek Robert Price in
65762         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
65763         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
65764         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
65765
65766 2003-10-21  Paul Eggert  <eggert@twinsun.com>
65767
65768         * lib/getndelim2.c (getndelim2): When size calculation overflows,
65769         ceiling the allocation at NMAX bytes rather than silently
65770         discarding input bytes before NMAX is reached.  This makes
65771         a difference only if NMAX exceeds SIZE_MAX / 2.
65772
65773         * lib/obstack.c: Merge from glibc.
65774         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
65775         Add libc_hidden_def (_obstack_newchunk).
65776         (_obstack_free) [! defined _LIBC]: Remove.
65777         [defined _LIBC]: Make a strong alias from obstack_free, rather than
65778         a clone of the function body.
65779         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
65780         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
65781
65782         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
65783         glibc.
65784         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
65785         arg to memcpy.
65786
65787         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
65788         (obstack_ptr_grow_fast, obstack_int_grow_fast):
65789         Don't use lvalue casts, as GCC plans to remove support for them
65790         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
65791         was also present in the non-GCC version, indicating that this
65792         code had always been buggy and had never been widely used.
65793         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
65794         Use the fast variant of each macro, rather than copying the
65795         definiens of the fast variant; that way, we'll be more likely to
65796         catch future bugs in the fast variants.
65797
65798 2003-10-20  Bruno Haible  <bruno@clisp.org>
65799
65800         * modules/wait-process: New file.
65801         * MODULES.html.sh (func_all_modules): Add wait-process.
65802
65803 2003-10-20  Bruno Haible  <bruno@clisp.org>
65804
65805         * m4/wait-process.m4: New file.
65806
65807 2003-10-20  Bruno Haible  <bruno@clisp.org>
65808
65809         * lib/wait-process.h: New file, from GNU gettext.
65810         * lib/wait-process.c: New file, from GNU gettext.
65811
65812 2003-10-19  Jim Meyering  <jim@meyering.net>
65813
65814         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
65815         HPUX 10.20.
65816
65817 2003-10-18  Karl Berry  <karl@gnu.org>
65818
65819         * config/config.guess: update from config.
65820
65821 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65822
65823         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
65824         (getgroups): First arg is int, not size_t.
65825         Don't let 'free' mangle errno.
65826
65827 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65828
65829         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
65830
65831 2003-10-16  Karl Berry  <karl@gnu.org>
65832
65833         * config/config.{guess,sub}: update from config.
65834
65835 2003-10-16  Jim Meyering  <jim@meyering.net>
65836
65837         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
65838         memcpy.
65839
65840 2003-10-15  Paul Eggert  <eggert@twinsun.com>
65841
65842         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
65843         (SIZE_MAX): Remove.
65844         (new_exclude, add_exclude_file): Initial size no longer needs to
65845         be a power of 2.
65846         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
65847         our own address arithmetic overflow checking.
65848
65849         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
65850         (fnmatch): Do not alloca more than 2000 wide characters;
65851         instead, use malloc for large buffers.
65852         Check for address arithmetic overflow, and return -1
65853         with errno set to ENOMEM in that case.
65854         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
65855         (NEW_PATTERN): Do not alloca more than 8000 bytes;
65856         instead, return -1.  Check for address arithmetic overflow.
65857
65858 2003-10-14  Paul Eggert  <eggert@twinsun.com>
65859
65860         Handle invalid suffixes and overflow independently, so that
65861         callers can treat them independently as needed.  Fix some bugs in
65862         suffix handling, e.g., "100k@" was not diagnosed as an invalid
65863         suffix for a human-readable blocksize.  The major caller-visible
65864         change is the addition of a new
65865         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
65866         that both overflow and suffix chars were found.
65867
65868         * lib/human.c (humblock): Don't check separately for invalid suffix
65869         char; that is xstrtoumax's job (now that its bug is fixed).
65870         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
65871         INTMAX_MAX]: New macros.
65872         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
65873         TYPE_MAXIMUM): New macros.
65874         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
65875         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
65876         if overflow occurs, as it's what __strtol does and it's more useful
65877         in practice.
65878         (__xstrtol): If __strtol reports some error other than ERANGE,
65879         reflect it to the caller as LONGINT_INVALID.  If it reports
65880         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
65881         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
65882         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
65883         value.
65884         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
65885         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
65886         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
65887         [defined UINTMAX_MAX]: New macros.
65888
65889 2003-10-14  Bruno Haible  <bruno@clisp.org>
65890
65891         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
65892
65893 2003-10-14  Bruno Haible  <bruno@clisp.org>
65894
65895         * m4/sig_atomic_t: New file, from GNU gettext.
65896         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
65897
65898 2003-10-14  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
65901         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
65902         Also use volatile where needed.
65903
65904 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65905
65906         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
65907         Change maintainer from Bruno Haible to 'all'.
65908
65909 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65910
65911         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
65912
65913 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65914
65915         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
65916         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
65917         and define in terms of the other primitives.
65918         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
65919         (SIZE_MAX): Define if not already defined.
65920         (array_size_overflow): New function.
65921         (xalloc_die): Abort instead of exiting if 'error' returns.
65922         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
65923         (xmalloc, xrealloc): Use them.
65924         (xcalloc): Check for address arithmetic overflow.
65925         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
65926         a bit faster than strcpy.
65927
65928 2003-10-10  Simon Josefsson  <jas@extundo.com>
65929
65930         * modules/argp (Depends-on): Add restrict and strcase.
65931
65932 2003-10-10  Simon Josefsson  <jas@extundo.com>
65933
65934         * m4/argp.m4: Add AC_C_INLINE.
65935
65936 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65937
65938         Merge getpass from libc, plus a few fixes.
65939
65940         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
65941         Include <stdbool.h>.
65942         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
65943         __fsetlocking to empty.
65944         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
65945         do include <bits/libc-lock.h>.
65946         Do not include <fcntl.h>; not needed.
65947         [_LIBC]: Include <wchar.h>.
65948         (NOTCANCEL_MODE): New macro.
65949         (flockfile, funlockfile) [_LIBC]: New macros.
65950         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
65951         [!_LIBC]: New macros.
65952         (call_fclose): New function.
65953         (getpass): Use it.  Save tty stream separately; this simplifies the
65954         code and makes it more reliable if stdin happens to equal stdout.
65955         Invoke __fsetlocking on tty.
65956         Handle thread cancellation if needed.
65957         Namespace cleanup (use __tcgetattr, __getline).
65958         Use bool for Booleans.
65959         [USE_IN_LIBIO]: Handle wide streams.
65960         [!_LIBC]: Unconditionally do the fseek, since we don't know what
65961         stream might go where.
65962
65963         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
65964         doesn't have to include <stdio.h> before us.
65965         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
65966         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
65967         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
65968         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
65969         if not declared, so that we can use getpass.c code from libc without
65970         rewriting it.
65971         (flockfile, ftrylockfile, funlockfile): New macros.
65972
65973 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65974
65975         * modules/getpass: Depend on stdbool.
65976
65977 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65978
65979         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
65980
65981 2003-10-07  Karl Berry  <karl@gnu.org>
65982
65983         * config/config.{guess,sub}: update from config.
65984
65985 2003-10-06  Jim Meyering  <jim@meyering.net>
65986             Bruno Haible  <bruno@clisp.org>
65987
65988         This lets translators provide better translations for the
65989         "Written by ..." part of --version output.
65990         * lib/version-etc.h: Include stdarg.h.
65991         (version_etc_copyright): Declare as readonly.
65992         (version_etc): Make this function variadic with a NULL-terminated list
65993         of author name strings.
65994         (version_etc_va): New declaration.
65995         * lib/version-etc.c: Include stdarg.h, stdlib.h.
65996         (version_etc_copyright): Declare as readonly.
65997         (version_etc_va): New function. Provide a different translatable string
65998         for each possible number of authors < 10. Abbreviate when there are 10
65999         authors or more.
66000         (version_etc): Make this function variadic. Call version_etc_va.
66001         Suggestion from Gary V. Vaughan.
66002
66003         * lib/long-options.h (parse_long_options): Change prototype: the
66004         authors string is moved to the end and becomes variadic.
66005         * lib/long-options.c: Include stdarg.h.
66006         (parse_long_options): Make this function variadic, too.
66007         Call version_etc_va, not version_etc.
66008
66009 2003-10-06  Bruno Haible  <bruno@clisp.org>
66010
66011         * modules/version-etc-2: Remove file.
66012         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66013
66014 2003-10-06  Bruno Haible  <bruno@clisp.org>
66015
66016         * modules/fatal-signal: New file.
66017         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66018
66019 2003-10-06  Bruno Haible  <bruno@clisp.org>
66020
66021         * m4/fatal-signal.m4: New file.
66022         * m4/signalblocking.m4: New file, from GNU gettext.
66023
66024 2003-10-06  Bruno Haible  <bruno@clisp.org>
66025
66026         * lib/version-etc-2.h: Remove file.
66027         * lib/version-etc-2.c: Remove file.
66028
66029 2003-10-06  Bruno Haible  <bruno@clisp.org>
66030
66031         * lib/fatal-signal.h: New file, from GNU gettext.
66032         * lib/fatal-signal.c: New file, from GNU gettext.
66033
66034 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66035
66036         * README: Rework advice for preventing empty .o files.
66037         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66038         not <sys/types.h>.
66039
66040 2003-10-04  Karl Berry  <karl@gnu.org>
66041
66042         * lib/argp*: update from libc.
66043
66044 2003-10-04  Karl Berry  <karl@gnu.org>
66045
66046         * config/config.{guess,sub}: update from config.
66047
66048 2003-10-02  Bruno Haible  <bruno@clisp.org>
66049
66050         * modules/lchown (Include): Add lchown.h.
66051         * modules/time_r (Include): Use "..." syntax.
66052         * modules/xgetdomainname (Include): Add xgetdomainname.h.
66053
66054 2003-10-01  Simon Josefsson  <jas@extundo.com>
66055
66056         * MODULES.html.sh (func_all_modules): Move gethostname from section
66057         'based on' to section 'lacking' POSIX:2001.
66058
66059 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
66060
66061         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
66062         to output mode on the same stream.
66063
66064 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66065
66066         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66067         Fix arg typo in previous patch.
66068
66069 2003-09-28  Jim Meyering  <jim@meyering.net>
66070
66071         * lib/error.c: Correct cpp indentation.
66072
66073 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66074
66075         * modules/free: New file.
66076
66077 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66078
66079         * m4/free.m4: New file.
66080
66081 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66082
66083         * lib/minmax.h (MIN, MAX)
66084         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66085         Omit the special code that used __typeof__, since we worry that
66086         it could be more trouble than it's worth.  See:
66087         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66088         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66089
66090         * lib/free.c: New file.
66091
66092 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66093
66094         Trivial fixes to Makefile.am parts of module listings.
66095         * modules/strstr: Append strstr.h to lib_SOURCES.
66096         * modules/strcase: Likewise, for strcase.h.
66097
66098 2003-09-27  Karl Berry  <karl@gnu.org>
66099
66100         * config/mkinstalldirs: update from automake.
66101
66102 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66103
66104         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66105         (error_tail): Do not loop, reallocating temporary buffer, since
66106         the output cannot contain more wide characters than the input
66107         contains bytes, the size must be big enough already.  This avoids
66108         one potential size overflow calculation.  Check for size overflow
66109         when calculating temporary buffer size.  Free temporary buffer
66110         when done, if it was allocated with malloc; this plugs a memory
66111         leak.  Remove casts from void * to pointers, that are no longer
66112         needed now that we're assuming C89 or better.
66113
66114         Merge error changes from glibc.
66115
66116         * lib/error.c, error.h: Update copyright notice header to match glibc.
66117         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66118         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66119         Disable cancellation while printing error.
66120         * lib/error.h: Prepend __ to parameter names.
66121
66122 2003-09-26  Jim Meyering  <jim@meyering.net>
66123
66124         * lib/error.c (error_tail): Move some declarations
66125         into inner scope where the local variables are used.
66126
66127 2003-09-26  Bruno Haible  <bruno@clisp.org>
66128
66129         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66130         stpncpy().
66131         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66132
66133 2003-09-26  Bruno Haible  <bruno@clisp.org>
66134
66135         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66136         (stpncpy): Define as alias for gnu_stpncpy.
66137         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66138
66139 2003-09-25  Simon Josefsson  <jas@extundo.com>
66140
66141         * lib/xgetdomainname.h: New file.
66142         * lib/xgetdomainname.c: New file.
66143
66144 2003-09-25  Simon Josefsson  <jas@extundo.com>
66145             Bruno Haible  <bruno@clisp.org>
66146
66147         * modules/getdomainname: New file.
66148         * modules/xgetdomainname: New file.
66149         * MODULES.html.sh (func_all_modules): Add getdomainname,
66150         xgetdomainname.
66151
66152 2003-09-25  Simon Josefsson  <jas@extundo.com>
66153             Bruno Haible  <bruno@clisp.org>
66154
66155         * m4/getdomainname.m4: New file.
66156
66157 2003-09-25  Simon Josefsson  <jas@extundo.com>
66158             Bruno Haible  <bruno@clisp.org>
66159
66160         * lib/getdomainname.h: New file.
66161         * lib/getdomainname.c: New file.
66162
66163 2003-09-25  Karl Berry  <karl@gnu.org>
66164
66165         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66166
66167 2003-09-25  Karl Berry  <karl@gnu.org>
66168
66169         * config/install-sh: update from automake.
66170
66171 2003-09-25  Bruno Haible  <bruno@clisp.org>
66172
66173         * modules/version-etc-2: New file, from modules/version-etc with
66174         modifications.
66175         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66176
66177 2003-09-25  Bruno Haible  <bruno@clisp.org>
66178
66179         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66180         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66181
66182 2003-09-24  Simon Josefsson  <jas@extundo.com>
66183
66184         * modules/xgethostname: Add xgethostname.h.
66185
66186 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66187
66188         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66189         the buffer associated with the argument.  Bug reported by
66190         Simon Josefsson.
66191
66192 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66193
66194         * README: Document assumptions that 'int' is at least 32 bits
66195         wide, that integer arithmetic is 2's complement without overflow,
66196         that there are no holes in integer values, that adding sizes of
66197         two nonoverlapping objects can't overflow, and that all-bits-zero
66198         yields scalar zero.  Fix spelling and capitalization typos.
66199
66200 2003-09-19  Karl Berry  <karl@gnu.org>
66201
66202         * lib/argp.h: update from libc.
66203
66204 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66205
66206         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66207         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66208         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66209
66210 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66211
66212         * gnulib-tool: Use "test -h", not "test -L", for portability
66213         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66214         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66215         (sed_extract_prog): Issue s commands one-by-one, rather than
66216         using \| in one s command.
66217
66218 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66219
66220         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66221         input error, instead of returning NULL the next time we are called
66222         (and therefore losing track of errno).
66223
66224 2003-09-16  Bruno Haible  <bruno@clisp.org>
66225
66226         * gnulib-tool (func_create_testdir): Warn about duplicated
66227         dependencies.
66228
66229 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66230
66231         * modules/argmatch, modules/fatal, modules/obstack,
66232         modules/xalloc, modules/xgethostname: Sort dependencies by
66233         importance, not alphabetically.
66234
66235 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66236
66237         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66238         fails, so that the caller gets the proper errno.
66239
66240         * lib/readutmp.c (read_utmp): Likewise.
66241         Check for fstat error.  Close stream and free storage
66242         when failing.
66243
66244 2003-09-14  Karl Berry  <karl@gnu.org>
66245
66246         * config/srclist.txt (strdup.c): disable for c89 changes.
66247
66248 2003-09-14  Jim Meyering  <jim@meyering.net>
66249
66250         * lib/getloadavg.c: Correct cpp indentation.
66251         * lib/strdup.c: Likewise.
66252         * lib/vasnprintf.c: Likewise.
66253
66254 2003-09-14  Bruno Haible  <bruno@clisp.org>
66255
66256         * modules/fwriteerror: New file.
66257         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66258
66259 2003-09-14  Bruno Haible  <bruno@clisp.org>
66260
66261         * lib/fwriteerror.h: New file.
66262         * lib/fwriteerror.c: New file.
66263
66264 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66265
66266         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66267         modules/xgethostname, modules/xalloc: Depend on exit.
66268
66269 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66270
66271         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66272
66273         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66274         and AC_MINIX, too, so that their extensions are available.
66275
66276         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66277         This macro has been superseded by gl_BACKUPFILE.
66278
66279         More patches to assume C89 or better.
66280
66281         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66282
66283         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66284         unconditionally.
66285         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66286         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66287         Include <string.h>, <stdlib.h> unconditionally.
66288         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66289         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66290         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66291         headers or for string.h.
66292         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66293         or strtoul.
66294
66295         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66296         headers.
66297         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66298         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66299         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66300         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66301         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66302         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66303         memcpy, memset.
66304         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66305         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66306         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66307         strtol.
66308         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66309         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66310         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66311         strtoul.
66312
66313 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66314
66315         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66316         * lib/obstack.c [!defined _LIBC]: Likewise.
66317         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66318         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66319         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66320
66321         More changes to assume C89 or better.
66322
66323         * lib/error.c (error_tail): Assume vprintf.
66324
66325         * lib/argmatch.c (getenv): Remove decl.
66326         * lib/progreloc.c (get_full_program_name): Define via prototype.
66327         * lib/setenv.c (clearenv): Likewise.
66328         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66329         needed.
66330         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66331         (malloc, memcpy): Remove decls.
66332         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66333         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66334         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66335         (memcpy): Remove macro.
66336         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66337         (__P): Remove.  All uses removed.
66338         (PTR): Remove.  All uses changed to void *.
66339         (CHAR_BIT, NULL): Remove.
66340         (spaces, zeros, memset_space, memset_zero)
66341         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66342         Remove.
66343         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66344         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66345         Define with prototype.
66346         Remove now-unnecessary prototype decl.
66347         (extra_args_spec): Assume ANSI C.  All uses changed.
66348         (extra_args_spec_iso): Remove.
66349         (my_strftime, emacs_strftimeu): Define via prototype.
66350         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66351         unconditionally.
66352         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66353         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66354         (strtoul, strtol): Remove decls.
66355         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66356         LONG_MAX): Remove.
66357         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66358         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66359         (LOCALE_PARAM_PROTO): New macro.
66360         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66361         (INTERNAL (strtol), strtol): Define with a prototype.
66362         (PARAMS): Remove.  All uses removed.
66363         * lib/tempname.c: Include <string.h> unconditionally.
66364         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66365         * lib/xgethostname.c (main): Define with a prototype.
66366         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66367         Include <stdlib.h> unconditionally.
66368         (calloc, malloc, realloc, free): Remove decls.
66369         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66370         Include <stdlib.h> unconditionally.  Sort include file names.
66371         (strtod): Remove.
66372         (xstrtod): Define with a prototype.
66373         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66374         (strtol, strtoul): Remove decls.
66375
66376 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66377
66378         More patches to assume C89 or better.
66379         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66380         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
66381         string.h, memchr, STDC_HEADERS.
66382
66383 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66384
66385         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
66386         Include <stdlib.h>, <string.h> unconditionally.
66387         Remove now-unnecessary cast to char *.
66388         * lib/strnlen.c: Include <string.h> unconditionally.
66389         * lib/yesno.c (yesno): Define with a prototype.
66390
66391 2003-09-11  Bruno Haible  <bruno@clisp.org>
66392
66393         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
66394
66395 2003-09-10  Jim Meyering  <jim@meyering.net>
66396
66397         * lib/error.c: Correct indentation of cpp directives.
66398
66399 2003-09-10  Bruno Haible  <bruno@clisp.org>
66400
66401         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
66402         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
66403         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
66404         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
66405         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
66406         <stdlib.h> and <string.h> checks.
66407         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
66408         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
66409
66410 2003-09-10  Bruno Haible  <bruno@clisp.org>
66411
66412         * lib/strcspn.c: Include <string.h> unconditionally.
66413         * lib/strpbrk.c: Include <string.h> unconditionally.
66414         * lib/strstr.c: Include <string.h> unconditionally.
66415         * lib/unicodeio.c: Include <string.h> unconditionally.
66416         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
66417         * lib/unsetenv.c: Likewise.
66418         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
66419         * lib/yesno.c: Include <stdlib.h> unconditionally.
66420         (rpmatch): Add prototype.
66421
66422 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66423
66424         More patches to assume C89 or better.
66425         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
66426         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
66427         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
66428         or for string.h.
66429         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
66430         stdlib.h.
66431         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
66432         C headers.
66433         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
66434         string.h.
66435         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
66436         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
66437         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
66438         or for string.h.
66439         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
66440         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
66441         C headers.
66442         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
66443         memcpy.
66444         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
66445         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
66446         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
66447         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
66448         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
66449         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
66450         string.h, free.
66451         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66452         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66453         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66454         C headers, or for string.h.
66455         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
66456         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
66457         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
66458         headers, memory.h, stdlib.h, string.h, strings.h.
66459         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
66460         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
66461         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
66462         strchr.
66463         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
66464         headers, memory.h, string.h.
66465         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
66466         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
66467         free.
66468         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
66469         headers.
66470         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
66471         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
66472         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
66473         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
66474         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
66475
66476 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66477
66478         More K&R removal.
66479
66480         * lib/acosl.c (main): Use a prototype.
66481         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
66482         tanl.c: Likewise.
66483
66484         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
66485
66486         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
66487         (getopt, etopt_long, getopt_long_only, _getopt_internal)
66488         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
66489         with a prototype.
66490         * lib/getopt.c (const): Remove macro.
66491         Include <string.h> unconditionally.
66492         (my_index): Remove; all uses changed to strchr.
66493         (strlen): Remove decl.
66494         (exchange): Remove forward decl; no longer needed.
66495         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
66496         Define with prototype.
66497         * lib/getopt1.c (const): Remove macro.
66498         (getopt_long, getopt_long_only, main): Define with prototype.
66499
66500         * lib/getugroups.c: Include <string.h> unconditionally.
66501
66502         * lib/getusershell.c: Include <stdlib.h> unconditionally.
66503         (getusershell, setusershell, endusershell, readname, main):
66504         Define with prototypes.
66505
66506         * lib/group-member.c: Include group-member.h first.
66507         Include <stdlib.h> unconditionally.
66508
66509         * lib/hard-locale.c: Include hard-locale.h first.
66510         Include <stdlib.h>, <string.h> unconditionally.
66511
66512         * lib/hash.c (free, malloc): Remove decls.
66513         Include <stdlib.h> unconditionally.
66514
66515         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
66516         (getenv): Do not declare.
66517
66518         * lib/idcache.c: Include <string.h> unconditionally.
66519
66520         * lib/long-options.c: Include long-options.h first, to test interface.
66521         Include <stdlib.h> unconditionally.
66522
66523         * lib/makepath.c: Include makepath.h first, to test interface.
66524         Include <stdlib.h> and <string.h> unconditionally.
66525
66526         * lib/linebuffer.c: Include <stdlib.h>.
66527         (free): Remove decl.
66528
66529         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
66530         stddef.h. rpl_malloc returns void *, not char *.
66531         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
66532         prototype.
66533
66534         * lib/md5.h: Include <limits.h> unconditionally.
66535         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
66536         (__P): Remove; all uses removed.
66537         * lib/md5.c: Include "md5.h" first.
66538         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
66539         md5_buffer, md5_process_bytes, md5_process_block):
66540         Define with prototypes.
66541         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
66542         * lib/sha.c: Include "sha.h" first.
66543         Include <stdlib.h>, <string.h> unconditionally.
66544
66545         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
66546         * lib/memcmp.c (__ptr_t): Likewise.
66547         * lib/memrchr.c (__ptr_t): Likewise.
66548         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
66549         Include <string.h> unconditionally.
66550         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
66551         * lib/memchr.c: Include <stdlib.h> unconditionally.
66552         * lib/memchr.c (LONG_MAX): Remove.
66553         * lib/memrchr.c (LONG_MAX): Likewise.
66554         * lib/memchr.c (__memchr): Define via a prototype.
66555         * lib/memrchr.c (__memrchr): Likewise.
66556         * lib/memcmp.c (__P): Remove, and remove all uses.
66557         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
66558         Remove forward decls; no longer needed.
66559         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
66560         Use types required by C89 in prototype.
66561
66562         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
66563         * lib/savedir.c: Likewise.
66564         * lib/mkdir.c (free): Remove decl.
66565         * lib/rmdir.c (rmdir): Define with a prototype.
66566         * lib/savedir.c: Include savedir.h first, to test interface.
66567
66568         * lib/mktime.c (STDC_HEADERS): Remove.
66569         Include <stdlib.h>, <string.h> unconditionally.
66570
66571         * lib/modechange.c: Include <stdlib.h> unconditionally.
66572         (malloc): Remove decl.
66573
66574         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
66575         (free): Remove decl.
66576
66577         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
66578         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
66579         (This type really should be intptr_t, but that's a C99ism.)
66580         (_obstack_memcpy): Remove: all uses changed to memcpy.
66581         Include <string.h> unconditionally.
66582         (struct obstack): Assume __STDC__ for types of members
66583         chunkfun, freefun, extra_arg.
66584         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
66585         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
66586         obstack_begin, obstack_specify_allocation,
66587         obstack_specify_allocation_with_arg, obstack_chunkfun,
66588         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
66589         Remove unprototyped decls and the macros that use them.
66590         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
66591         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
66592         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
66593         (defined __STDC__ && __STDC__)]:
66594         Remove nonprototyped code.
66595         Include <stdlib.h> unconditionally.
66596         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
66597         _obstack_allocated_p, _obstack_free, obstack_free,
66598         _obstack_memory_used, print_and_abort):
66599         Define using prototypes.
66600         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
66601         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
66602         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
66603         obstack_next_free, obstack_object_size, obstack_room) [0]:
66604         Remove unused, unprototyped code.
66605
66606         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
66607
66608         * lib/physmem.c (physmem_total, physmem_available, main): Define
66609         with prototypes.
66610
66611         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
66612         (main): Define with a prototype.
66613
66614         * lib/posixver.c (getenv): Remove decl.
66615
66616         * lib/putenv.c (malloc): Returns void *, not char *.
66617         Include <string.h> unconditionally.
66618         (strchr, memcpy, NULL): Do not define.
66619
66620         * lib/readtokens.c: Include readtokens.h first, to test interface.
66621         Include <stdlib.h>, <string.h> unconditionally.
66622         (init_tokenbuffer): Define with a prototype.
66623
66624         * lib/regex.c (PARAMS): Remove.  All uses removed.
66625         All uses of _RE_ARGS removed, too.
66626         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66627         unconditionally.
66628         (bzero): Assume memset exists.
66629         (memcmp, memcpy, NULL): Remove.
66630         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
66631         char, or assignments to local vars of type signed char.
66632         (init_syntax_once, PREFIX(extract_number_and_incr),
66633         PREFIX(print_partial_compiled_pattern),
66634         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
66635         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
66636         PREFIX(regex_grow_registers), PREFIX(regex_compile),
66637         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
66638         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
66639         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
66640         wcs_compile_range, byte_compile_range, truncate_wchar,
66641         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
66642         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
66643         count_mbs_length, wcs_re_match_2_internal,
66644         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
66645         PREFIX(alt_match_null_string_p),
66646         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
66647         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
66648         regfree, PREFIX(extract_number)): Define with prototype.  Remove
66649         now-unnecessary declaration, if any.
66650         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
66651         regcomp, regexec):
66652         Remove now-unnecessary casts among pointer types.
66653         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
66654
66655         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
66656         (free): Remove decl.
66657
66658         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
66659
66660         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
66661         (free): Remove decl.
66662
66663         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
66664         * lib/xgetcwd.c: Likewise.
66665
66666         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
66667         (free): Remove decl.
66668
66669         * lib/strchrnul.c (strchrnul): Define with a prototype.
66670         Fix bug: c_in was not converted to char before searching.
66671
66672         The following changes are not K&R related:
66673
66674         * lib/group-member.h: Include <sys/types.h>, so that this file is
66675         self-contained.
66676         * lib/makepath.h: Likewise.
66677
66678         * lib/getusershell.c (readname, default_index, line_size, readname):
66679         Use size_t, not int, for sizes.
66680         (readname): If the size overflows, report an error instead of
66681         looping forever.
66682
66683 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66684
66685         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
66686         libc.
66687
66688 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66689
66690         * README: New section: portability guidelines.
66691
66692 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66693
66694         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
66695         C89 spec.
66696
66697 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66698
66699         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
66700
66701 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66702
66703         Assume C89 or better; remove K&R cruft.
66704         A few of these changes were first proposed by Derek Robert Price
66705         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
66706
66707         * lib/addext.c: Include <string.h> unconditionally.
66708         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
66709         Don't declare getenv or malloc.
66710
66711         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
66712         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
66713         (NULL): Remove.
66714         (find_stack_direction, alloca): Use prototypes.
66715
66716         * lib/atexit.c (atexit): Define using a prototype.
66717
66718         * lib/basename.c, dirname.c, stripslash.c:
66719         Include <string.h> unconditionally.
66720
66721         * lib/bcopy.c: Include <stddef.h>.
66722         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
66723
66724         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
66725
66726         * lib/error.h (error, error_at_line, error_print_progname)
66727         [! (defined (__STDC__) && __STDC__)]: Remove decls.
66728         * lib/error.c: Include error.h first, to check interface.
66729         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66730         (VA_START): Remove; all uses changeed to va_start.
66731         (exit, strerror): Remove decls.
66732         (error_print_progname): Prototype uncondionally.
66733         Don't include <errno.h>; no longer needed.
66734         (private_strerror): Remove.
66735         (error_tail): Always define.
66736         (error, error_at_line): Assume C89 or better; always use prototypes.
66737         * lib/fatal.c: Include "fatal.h" first, to test interface.
66738         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66739         (VA_START): Remove; all uses changed to va_start.
66740         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
66741         this case.
66742         (exit): Remove decl.
66743         (fatal): Prototype unconditionally.  Assume va_start works.
66744         Abort at end, to pacify gcc.
66745
66746         * lib/euidaccess.c (main): Define with a prototype.
66747
66748         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
66749
66750         * lib/exitfail.c: Include <stdlib.h> unconditionally.
66751
66752         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
66753         prototypes.
66754         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
66755         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
66756         (getenv): Remove decl.
66757         (fnmatch): Define using a prototype.
66758         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
66759         (FCT): Define using a prototype.
66760
66761         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
66762
66763         * lib/gethostname.c: Include <stddef.h>.
66764         (gethostname): Define with prototype.  Length is size_t, not int.
66765
66766 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66767
66768         Assume C89 or better; remove K&R cruft.
66769         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
66770         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
66771         string.h, getenv, malloc.
66772         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
66773         headers.
66774         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
66775         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
66776         do not check for strerror.
66777         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
66778         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
66779         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
66780         do not check for doprnt or vprintf.
66781         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
66782         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
66783
66784 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66785
66786         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
66787         getversion.c should have been removed then, but was accidentally
66788         preserved.
66789
66790         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
66791         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
66792
66793 2003-09-08  Karl Berry  <karl@gnu.org>
66794
66795         * config/config.sub, config.guess, srclistvars.sh: update from savannah
66796                 config, forget about prep.
66797
66798         * config/depcomp, missing: update from automake.
66799
66800 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66801
66802         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
66803         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66804
66805 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66806
66807         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
66808         copy_tm_result.  Bug reported by Simon Josefsson in
66809         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66810
66811 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66812
66813         * m4/time_r.m4: New file.
66814         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
66815         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
66816         is. Check for timegm declaration.
66817         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
66818         Do not check for gmtime_r.
66819         Replace mktime if __mktime_internal does not exist and if mktime
66820         hasn't been replaced already.
66821
66822 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66823
66824         * lib/time_r.c, lib/time_r.h: New files.
66825
66826         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
66827         __localtime_r.
66828         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
66829         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
66830
66831         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
66832         __gmtime_r.
66833         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
66834         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
66835         Include <time_r.h>.
66836
66837         * lib/timegm.c: Switch to glibc implementation, with the following
66838         changes:
66839         [defined HAVE_CONFIG_H]: Include <config.h>.
66840         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
66841         (__mktime_internal) [!defined _LIBC]: New decl.
66842         (__gmtime_r) [!defined _LIBC]: New macro and function.
66843         (timegm): Use a prototype, since gnulib assumes C89.
66844         Do not bother declaring tmp to be const, as it's not really usefu.
66845         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
66846         (timegm): Declare only if HAVE_DECL_TIMEGM.
66847
66848 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66849
66850         * MODULES.html.sh (func_all_modules): Add time_r.
66851         * modules/time_r: New file.
66852         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
66853         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
66854
66855 2003-09-03  Paul Eggert  <eggert@twinsun.com>
66856
66857         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
66858         Bug reported by Lute Kamstra in
66859         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
66860
66861         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
66862         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
66863         course with correspondingly smaller numbers for tomorrow and
66864         yesterday.  From Tadayoshi Funaba.  Originally installed into
66865         sh-utils on 1999-08-07, but the patch got lost (I guess during the
66866         coreutils merge?).
66867
66868 2003-08-31  Simon Josefsson  <jas@extundo.com>
66869
66870         * modules/timegm: New file.
66871         * MODULES.html.sh (func_all_modules): Add timegm.
66872
66873 2003-08-31  Simon Josefsson  <jas@extundo.com>
66874
66875         * m4/timegm.m4: New file.
66876
66877 2003-08-31  Simon Josefsson  <jas@extundo.com>
66878
66879         * lib/timegm.h: New file.
66880         * lib/timegm.c: New file.  Based on
66881         wget-1.8.2/src/http.c:mktime_from_utc.
66882
66883 2003-08-31  Karl Berry  <karl@gnu.org>
66884
66885         * lib/argp.h: update from libc.
66886
66887 2003-08-28  Bruno Haible  <bruno@clisp.org>
66888
66889         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
66890         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
66891         followed by '#define fnmatch fnmatch_posix' gives an error.
66892
66893 2003-08-28  Bruno Haible  <bruno@clisp.org>
66894
66895         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
66896         warning on QNX, which defines O_BINARY to 000000.
66897
66898 2003-08-27  Jim Meyering  <jim@meyering.net>
66899
66900         * m4/mkstemp.m4: Require that the system mkstemp be able to create
66901         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
66902         would fail after 32.  Reported by Danny Levinson.  Details here:
66903         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
66904
66905 2003-08-24  Bruno Haible  <bruno@clisp.org>
66906
66907         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
66908         MSVC7 <stdio.h> is included later.
66909
66910 2003-08-22  Simon Josefsson  <jas@extundo.com>
66911
66912         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
66913
66914 2003-08-20  Karl Berry  <karl@gnu.org>
66915
66916         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
66917
66918 2003-08-20  Bruno Haible  <bruno@clisp.org>
66919
66920         * modules/progname: New file.
66921         * MODULES.html.sh (func_all_modules): Add progname.
66922
66923 2003-08-20  Bruno Haible  <bruno@clisp.org>
66924
66925         * lib/progname.h: New file, from GNU gettext.
66926         * lib/progname.c: New file, from GNU gettext.
66927         * lib/progreloc.c: New file, from GNU gettext.
66928
66929 2003-08-19  Jim Meyering  <jim@meyering.net>
66930
66931         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
66932         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
66933
66934 2003-08-19  Bruno Haible  <bruno@clisp.org>
66935
66936         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
66937         more.
66938
66939 2003-08-19  Bruno Haible  <bruno@clisp.org>
66940
66941         * lib/xstrdup.c: Assume <string.h> exists.
66942
66943 2003-08-18  Paul Eggert  <eggert@twinsun.com>
66944
66945         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
66946         in makefile rules.
66947
66948 2003-08-18  Jim Meyering  <jim@meyering.net>
66949
66950         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
66951         * m4/lib-ld.m4: Likewise.
66952
66953 2003-08-18  Jim Meyering  <jim@meyering.net>
66954
66955         * lib/setenv.h: Indent nested cpp directive.
66956         * lib/vasnprintf.c: Remove trailing blanks.
66957
66958 2003-08-17  Simon Josefsson  <jas@extundo.com>
66959
66960         * modules/xstrndup: New file.
66961         * MODULES.html.sh (func_all_modules): Add xstrndup.
66962
66963 2003-08-17  Simon Josefsson  <jas@extundo.com>
66964
66965         * modules/argp: Fix autoconf macro name. Add more dependencies.
66966
66967 2003-08-17  Simon Josefsson  <jas@extundo.com>
66968
66969         * m4/xstrndup.m4: New file.
66970
66971 2003-08-17  Simon Josefsson  <jas@extundo.com>
66972
66973         * m4/argp.m4: New file.
66974
66975 2003-08-17  Simon Josefsson  <jas@extundo.com>
66976             Bruno Haible  <bruno@clisp.org>
66977
66978         * lib/xstrndup.h: New file.
66979         * lib/xstrndup.c: New file.
66980
66981 2003-08-17  Bruno Haible  <bruno@clisp.org>
66982
66983         * modules/strndup (Files, Include): Add lib/strndup.h.
66984
66985 2003-08-17  Bruno Haible  <bruno@clisp.org>
66986
66987         * modules/euidaccess (Files): Add lib/euidaccess.h.
66988
66989 2003-08-17  Bruno Haible  <bruno@clisp.org>
66990
66991         * lib/strndup.h: New file.
66992
66993 2003-08-17  Bruno Haible  <bruno@clisp.org>
66994
66995         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
66996         like AC_GNU_SOURCE.
66997         * modules/extensions (configure.ac): Comment out the invocation of
66998         gl_USE_SYSTEM_EXTENSIONS.
66999
67000 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67001
67002         Merges from coreutils, etc.
67003         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67004         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67005         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67006         fixing a typo.
67007         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67008         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67009
67010 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67011
67012         Document merge from coreutils.
67013         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67014         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67015         * modules/utime: Add m4/utimes-null.m4.
67016
67017 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67018
67019         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67020         space, undoing this 2003-08-12 change:
67021         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67022
67023 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67024
67025         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67026         strtoul.c from libc, undoing this 2003-08-12 change:
67027         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67028
67029 2003-08-16  Jim Meyering  <jim@meyering.net>
67030
67031         Merges from coreutils.
67032         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67033         prefix.  Adjust cache variables similarly.  Create 500 rather than
67034         just 300 files, to exercise bug on Darwin6.5, too.
67035         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67036         $missing_dir.
67037         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67038         AM_SYS_POSIX_TERMIOS.
67039         Reported by mkc@mathdogs.com.
67040         Also change use of $am_cv_sys_posix_termios
67041         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67042         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67043         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67044         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67045         in /proc/mounts until it finds one with matching device number.  This
67046         is unnecessary when the FILE argument *is* a mount point.  No stat call
67047         is necessary in that case.  So, disable the statvfs-testing code on
67048         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
67049         as RedHat bug# 84846.
67050         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67051         to 1MB, so as not to render systems with no stack size limit (e.g.,
67052         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67053         Include <unistd.h>.  On some systems,
67054         it is required for the definition of _SC_PAGESIZE.
67055
67056 2003-08-16  Jim Meyering  <jim@meyering.net>
67057
67058         Merge from coreutils.
67059         * lib/xstrtoimax.c: #else #if -> #elif.
67060         * lib/xstrtoumax.c: Likewise.
67061
67062 2003-08-16  Jim Meyering  <jim@meyering.net>
67063
67064         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67065         * m4/utimes.m4: Removed.
67066         * m4/utimes-null.m4: Renamed from utimes.m4.
67067
67068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67069         to 1MB, so as not to render systems with no stack size limit (e.g.,
67070         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67071         Include <unistd.h>.  On some systems,
67072         it is required for the definition of _SC_PAGESIZE.
67073
67074 2003-08-16  Jim Meyering  <jim@meyering.net>
67075         and Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         Merges from coreutils, etc.
67078
67079         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67080         using the latest version from cvs.  This avoids problems with #line
67081         directives using a vendor (Sun) compiler.
67082         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67083         Don't set GETGROUPS_LIB here; now it's
67084         done via getgroups.m4's wrapper function.
67085         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67086         rather than just in sh-util/configure.in, so that the
67087         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67088         same.
67089         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67090         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67091         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67092         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67093         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67094         Remove code that is now done by the newly-required macros.
67095         Append $(EXEEXT) to DF_PROG.
67096         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67097         Do not invoke or require the following here,
67098         since prereq.m4 or some gnulib .m4 now does this for us:
67099         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67100         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67101         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67102         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67103         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67104         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67105         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67106         AC_FUNC_OBSTACK.
67107         Do not replace the following functions, as this is now the job
67108         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67109         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67110         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67111         atexit getpass, strdup, getpagesize.
67112         Replace 'raise'.
67113         Do not check for the following functions, as this is now the job
67114         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67115         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67116         setregid.
67117         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67118         Check for sys/sysctl.h.
67119         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67120         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67121         of checking for ssize_t ourselves.
67122
67123         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67124         Require every macro that gnulib/modules/* suggests for us.
67125         (jm_PREREQ_ADDEXT): New macro.
67126         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67127         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67128
67129         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67130         (gl_PHYSMEM): Use it.
67131         Also check for `table' function.
67132         Check for new headers and functions.
67133         Add check for sys/sysmp.h.
67134         With suggestions from Kaveh Ghazi.
67135         Ignore headers that are present but cannot be compiled.  This
67136         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67137         C 5.4.
67138
67139 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67140
67141         Document merge from coreutils.
67142         * modules/userspec: Depend on posixver.
67143         * modules/strftime: Depend on tzset.
67144
67145 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67146
67147         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67148         rather than tab, after '#' in shell-script copyright notices.
67149         Suggested by Bruno Haible.
67150
67151 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67152
67153         * config/srclist-update: Use three spaces, rather than tab, after '#'
67154         in shell-script copyright notices.  Suggested by Bruno Haible.
67155         Remove unnecessary parenthesization in regular expression.
67156
67157 2003-08-15  Jim Meyering  <jim@meyering.net>
67158
67159         Merge from coreutils.
67160         * lib/xgethostname.c: Include <stdlib.h>.
67161         (xghostname): Don't exit for anything other than memory-related
67162         failure; just return NULL.
67163         * lib/userspec.c: Include "posixver.h".
67164         (parse_user_spec): Accept `.' as a separator only
67165         in pre-POSIX-200112 mode.
67166         * lib/strtoimax.c: Use #elif rather than #else #if.
67167         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67168         Remove function, now that we can rely on a working tzset function.
67169         [!_LIBC]: Ensure that the required autoconf test has been run.
67170         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67171         Use underlying_strftime for %r.
67172         * lib/sha.c: Merge in some clean-up and optimization changes from
67173         glibc.
67174         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67175         Ensure that it is a multiple of 64.
67176         Rearrange loop exit tests so as to avoid performing an
67177         additional fread after encountering an error or EOF.
67178         * lib/realloc.c: Update copyright date.
67179
67180 2003-08-15  Jim Meyering  <jim@meyering.net>
67181         and Paul Eggert  <eggert@twinsun.com>
67182
67183         Merge from coreutils.
67184         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67185         member but strut utmpx does not.  Needed for AIX 4.3.3.
67186         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67187
67188 2003-08-15  Jim Meyering  <jim@meyering.net>
67189         and Paul Eggert  <eggert@cs.ucla.edu>
67190
67191         Merges from coreutils, etc.
67192         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67193         Require gl_FUNC_TZSET_CLOBBER.
67194         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67195         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67196         members.
67197
67198 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67199
67200         Help the merge from coreutils.
67201         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67202         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67203         * m4/tzset.m4: Use it too.
67204
67205 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67206
67207         * modules/tzset: New file.
67208
67209 2003-08-14  Jim Meyering  <jim@meyering.net>
67210
67211         Merges from coreutils.
67212         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67213         variable names, rather than @FNMATCH_H@.
67214         * modules/alloca: Likewise for $(ALLOCA_H).
67215
67216         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67217         the three copies of the literal target, `fnmatch.h'.
67218         * modules/alloca (alloca.h): Likewise.
67219
67220 2003-08-14  Jim Meyering  <jim@meyering.net>
67221
67222         Merge from coreutils.
67223         * m4/tzset.m4: New file.
67224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67225         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67226         otherwise, AIX 5.1 systems would end up using the latter.
67227         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67228         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67229         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67230         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67231
67232 2003-08-14  Jim Meyering  <jim@meyering.net>
67233
67234         Merge from coreutils.
67235         * lib/obstack.h: Whitespace changes.
67236         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67237         and xcalloc return values.
67238         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67239         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67240         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67241         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67242         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67243         error from mntctl.
67244         Use mntctl's return value to drive the entry-processing loop, since
67245         we can't rely on the value of the vmt_length member in the last
67246         entry.  On some systems doing so could result in exhausting
67247         virtual memory.  Based in part on a patch from Mike Jetzer.
67248
67249 2003-08-14  Jim Meyering  <jim@meyering.net>
67250         and Paul Eggert  <eggert@twinsun.com>
67251
67252         Merges from coreutils, plus other fixes.
67253         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67254         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67255         for credits and details.  Thanks to Kaveh Ghazi for helping
67256         to keep these files in sync.
67257         (ARRAY_SIZE): Define it.
67258         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67259         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67260         (memcasecmp): Don't assume size_t fits in unsigned int.
67261         Remove casts and duplicate code.
67262         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67263         (memcpy): Remove definition.
67264         Merge in some clean-up and optimization changes from glibc.
67265         [BLOCKSIZE]: Move definition to top of file.
67266         Ensure that it is a multiple of 64.
67267         Rearrange loop exit tests so as to avoid performing an
67268         additional fread after encountering an error or EOF.
67269         * lib/md5.h (md5_uintptr): Define.
67270         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67271         return to the initial working directory.  Preserve errno
67272         for caller.
67273         * lib/idcache.c: Include "xalloc.h".
67274         (xmalloc, xrealloc): Remove decls.
67275         (getuser): Remove casts no longer required in C89.
67276         * lib/human.c: Include stdio.h, for sprintf.
67277         * lib/group-member.c: Include "xalloc.h".
67278         (xmalloc, xrealloc): Remove decls.
67279         (get_group_info): Remove casts no longer required in C89.
67280         * lib/getusershell.c (readname): Remove casts no longer required in
67281         C89.
67282         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67283         * lib/getline.c: Whitespace fix, from coreutils.
67284
67285 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67286
67287         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67288         Check for isascii.
67289
67290         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67291         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67292         Undo previous (whitespace-only) change.
67293
67294 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67295
67296         * lib/exclude.c: Include <ctype.h>
67297         (IN_CTYPE_DOMAIN): New macro.
67298         (is_space): New fn.
67299         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67300         and empty lines.
67301
67302         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67303         Undo previous (whitespace-only) change.
67304
67305 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67306
67307         * config/srclist-update: Change update back to the old behavior,
67308         leaving whitespace alone.  Use one 'sed' command rather than a
67309         pipeline.
67310         (fixlicense): Now a variable, not a function.
67311         (remove_trailing_blanks): Remove.
67312         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67313         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67314         Undo previous (whitespace-only) change.
67315
67316 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67317
67318         Merge from coreutils.
67319         * modules/euidaccess: Add lib_SOURCES, include for new
67320         file euidaccess.h
67321
67322 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67323
67324         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67325         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67326         Normalize leading white space and remove trailing white space.
67327
67328         Merge from coreutils
67329         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67330
67331         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67332         0.12.1.  These files are now being upgraded automatically by
67333         ../config/srclist-update.
67334
67335 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67336
67337         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67338         Normalize leading white space and remove trailing white space.
67339         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67340         notice, as per ../config/srclist-update.
67341
67342         Merge from coreutils.
67343         * lib/euidaccess.h: New file.
67344         * lib/euidaccess.c: Include it.
67345         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67346         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67347         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67348
67349 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67350
67351         * config/srclist-update: Add copyright notice.
67352         (remove_id_lines, remove_trailing_blanks): New constants.
67353         (fixfile): Use them to normalize spacing a bit in copied files.
67354         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67355         Normalize leading white space and remove trailing white space.
67356
67357         * config/texinfo.tex: Sync with texinfo.
67358
67359         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67360         strtoul.c from libc, to merge coreutils whitespace changes.
67361
67362         * config/srclist.txt: Get the following m4 files from gettext:
67363         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67364         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67365         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67366         wint_t.m4.
67367
67368 2003-08-12  Karl Berry  <karl@gnu.org>
67369
67370         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67371         been made.
67372
67373 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67374
67375         * modules/gnu-source, m4/gnu-source.m4:
67376         Remove; we're assuming Autoconf 2.54 or later now.
67377         Suggested by Bruno Haible.
67378         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67379
67380 2003-08-11  Bruno Haible  <bruno@clisp.org>
67381
67382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
67383
67384 2003-08-11  Bruno Haible  <bruno@clisp.org>
67385
67386         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
67387         (vasnprintf): Use it instead of wcslen.
67388
67389 2003-08-11  Bruno Haible  <bruno@clisp.org>
67390
67391         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
67392         value to ensure that _Bool promotes to int. Use #define for _Bool when
67393         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
67394
67395 2003-08-10  Karl Berry  <karl@gnu.org>
67396
67397         * lib/regex.h: update from libc (whitespace fix).
67398
67399 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67400
67401         Merge some files from coreutils.  These changes were
67402         originally made by Jim Meyering.
67403         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
67404         many older Unixes require this.
67405         * lib/alloca.c (alloca): Remove cast to argument of free;
67406         no longer needed in C89.
67407         * lib/alloca_.h, regex.h: Fix white space to match
67408         what GNU indent does.
67409
67410 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67411
67412         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
67413         apparently Emacs's Unicode mode got confused before my 2003-08-05
67414         checkin.
67415
67416 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67417
67418         * m4/extensions.m4: New file.
67419         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
67420         Require gl_USE_SYSTEM_EXTENSIONS.
67421         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
67422         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
67423
67424 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67425
67426         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
67427         * modules/extensions, modules/gnu-source: New files.
67428         * modules/timespec, modules/unlocked-io: Depend on extensions.
67429
67430 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67431
67432         * modules/restrict: New file.
67433         * MODULES.html.sh (func_all_modules): Add restrict.
67434         * modules/regex: Depend on restrict.
67435
67436 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67437
67438         * m4/restrict.m4: New file.
67439         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
67440
67441 2003-08-07  Bruno Haible  <bruno@clisp.org>
67442
67443         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
67444         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
67445
67446 2003-08-07  Bruno Haible  <bruno@clisp.org>
67447
67448         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
67449         makes the module 'getndelim2' compatible with the module 'getline'.
67450
67451 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67452
67453         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67454         byte with "\201" to avoid glitches when editing that source file
67455         with multi-gnome-terminal.
67456
67457 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67458
67459         * lib/bumpalloc.h: Remove.
67460
67461 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67462
67463         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
67464         * modules/bumpalloc: Remove.
67465
67466 2003-08-04  Paul Eggert  <eggert@twinsun.com>
67467
67468         * lib/getloadavg.c: Change copyright notice and spacing to conform to
67469         GNU coding style.
67470
67471         Merge from coreutils.
67472         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
67473         1. From glibc.
67474         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
67475         from Karl Berry, implemented by Jim Meyering.
67476         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
67477         from Dmitry V. Levin.
67478         Remove anachronistic cast of xrealloc.
67479         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
67480         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
67481         type. Otherwise, it wouldn't compile with at least /bin/cc on
67482         ymp-cray-unicos9.0.2.X.
67483         Combine two mostly-identical uses of alloca into one.
67484         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
67485
67486 2003-08-04  Dave Love  <d.love@dl.ac.uk>
67487
67488         [From Emacs.]
67489
67490         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
67491         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
67492         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
67493         obsolete NLIST_NAME_UNION.
67494         [__GNU__]: Undef BSD and FSCALE.
67495         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
67496
67497 2003-08-03  Paul Eggert  <eggert@twinsun.com>
67498
67499         * lib/stdbool_.h (_Bool): Make it signed char, instead of
67500         an enum type, so that it's guaranteed to promote to int.  See:
67501         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
67502
67503 2003-08-03  Karl Berry  <karl@gnu.org>
67504
67505         * config/depcomp: update from automake.
67506
67507 2003-07-31  Paul Eggert  <eggert@twinsun.com>
67508
67509         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
67510         (strerror): Don't assume that a printable int fits in 14 bytes.
67511
67512 2003-07-31  Bruno Haible  <bruno@clisp.org>
67513
67514         * modules/getpass-gnu: New file.
67515         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
67516
67517 2003-07-31  Bruno Haible  <bruno@clisp.org>
67518
67519         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
67520
67521 2003-07-24  Karl Berry  <karl@gnu.org>
67522
67523         * config/missing: update from automake.
67524
67525 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
67526             Bruno Haible  <bruno@clisp.org>
67527
67528         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
67529         * lib/getline.c (getline, getdelim): Likewise.
67530         Remove _GNU_SOURCE define; now it's defined in config.h through
67531         m4/getline.m4.
67532
67533 2003-07-23  Karl Berry  <karl@gnu.org>
67534
67535         * config/config.sub: update from prep.
67536
67537 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67538
67539         * modules/xalloc (Depends-on): Add exitfail.
67540         * modules/xmemcoll: Likewise.
67541
67542 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67543
67544         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
67545         over-parenthesization in macros.
67546
67547         Sync with coreutils.
67548
67549         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
67550         required by C99.
67551
67552         Use `exit_failure' for xalloc and xmemcoll instead of their own
67553         private exit-failure variables.
67554         * lib/xalloc.h (xalloc_exit_failure): Remove.
67555         * lib/xmalloc.c: Likewise.  Include exitfail.h.
67556         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
67557         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
67558         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
67559         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
67560
67561 2003-07-20  Jim Meyering  <jim@meyering.net>
67562
67563         * modules/closeout (Depends-on): Add exitfail.
67564         Suggestion from Bruno Haible.
67565
67566 2003-07-19  Karl Berry  <karl@gnu.org>
67567
67568         * config/config.sub: update from prep.
67569
67570 2003-07-18  Paul Eggert  <eggert@twinsun.com>
67571
67572         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
67573         Remove.
67574         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
67575         to test that it can stand by itself.  Include "exitfail.h".
67576         Clients should set exit_failure instead.
67577         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
67578
67579 2003-07-18  Bruno Haible  <bruno@clisp.org>
67580
67581         * modules/getndelim2: New file.
67582         * modules/getline: Share files with module getndelim2.
67583         * modules/getnline: Depend on getndelim2 instead of sharing files with
67584         it. Add getnline.c to lib_SOURCES.
67585         * MODULES.html.sh (func_all_modules): Add getndelim2.
67586
67587 2003-07-18  Bruno Haible  <bruno@clisp.org>
67588
67589         * m4/getndelim2.m4: New file.
67590         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
67591         invoke gl_PREREQ_GETNDELIM2.
67592         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
67593         gl_PREREQ_GETNDELIM2.
67594         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
67595         gl_GETNDELIM2.
67596
67597 2003-07-18  Bruno Haible  <bruno@clisp.org>
67598
67599         * lib/getndelim2.h: New file.
67600         * lib/getndelim2.c: Make into a module of its own. Include config.h,
67601         getndelim2.h.
67602         (getndelim2): Make non-static. Change return type to ssize_t.
67603         * lib/getline.h: Change argument names.
67604         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
67605         * lib/getnline.c: Include getndelim2.h.
67606
67607 2003-07-18  Andreas Schwab  <schwab@suse.de>
67608
67609         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
67610
67611 2003-07-17  Karl Berry  <karl@gnu.org>
67612
67613         * config/config.sub: update from prep.
67614
67615 2003-07-17  Bruno Haible  <bruno@clisp.org>
67616
67617         * modules/getnline: New file.
67618         * modules/getline: Add lib/getndelim2.c to source file list.
67619         * MODULES.html.sh (func_all_modules): Add getnline.
67620
67621 2003-07-17  Bruno Haible  <bruno@clisp.org>
67622
67623         * m4/getnline.m4: New file.
67624
67625 2003-07-17  Bruno Haible  <bruno@clisp.org>
67626
67627         * m4/Makefile.am.in: Remove file.
67628         * m4/Makefile.am: Remove file.
67629         * m4/Makefile.in: Remove file.
67630
67631 2003-07-17  Bruno Haible  <bruno@clisp.org>
67632
67633         * lib/getnline.h: New file.
67634         * lib/getnline.c: New file.
67635         * lib/getndelim2.c: New file, extracted from getline.c.
67636         (getndelim2): Renamed from getdelim2, with added nmax argument.
67637         * lib/getline.c: Include getndelim2.c.
67638         (getdelim2): Moved out to getndelim2.c.
67639         (getline, getdelim): Update.
67640
67641 2003-07-17  Bruno Haible  <bruno@clisp.org>
67642
67643         * lib/Makefile.am: Remove file.
67644         * lib/Makefile.in: Remove file.
67645
67646 2003-07-17  Bruno Haible  <bruno@clisp.org>
67647
67648         * configure.in: Remove file.
67649         * Makefile.in: Remove file.
67650
67651 2003-07-17  Bruno Haible  <bruno@clisp.org>
67652
67653         * MODULES.html.sh: Put the </BODY> right before </HTML>.
67654
67655 2003-07-16  Karl Berry  <karl@gnu.org>
67656
67657         * config/srclist-update: was running fixlicense twice, which caused
67658                 texinfo.tex to be nullified for some reason.  Simplify,
67659                 $gplsrc is no longer needed as far as I can see?
67660
67661 2003-07-16  Jim Meyering  <jim@meyering.net>
67662
67663         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
67664
67665 2003-07-15  Paul Eggert  <eggert@twinsun.com>
67666
67667         * config/srclist.txt: Get the following files from gettext-runtime/intl
67668         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
67669         ref-del.sin.  From Bruno Haible.
67670         * config/srclist-update (fixfile): Change grep pattern again, since the
67671         previous fix didn't work (there was another trailing $).  Use
67672         '[$]' to escape the $s.
67673
67674 2003-07-15  Karl Berry  <karl@gnu.org>
67675
67676         * lib/vasnprintf.c: update from gettext.
67677
67678 2003-07-15  Karl Berry  <karl@gnu.org>
67679
67680         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
67681         gets expanded when surrounded by '$'.
67682
67683 2003-07-15  Jim Meyering  <jim@meyering.net>
67684
67685         * modules/save-cwd: Don't depend on error.  From Derek Price.
67686
67687 2003-07-15  Jim Meyering  <jim@meyering.net>
67688
67689         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
67690
67691 2003-07-14  Simon Josefsson  <jas@extundo.com>
67692
67693         * modules/mempcpy: New file.
67694         * MODULES.html.sh (func_all_modules): Add mempcpy.
67695
67696 2003-07-14  Simon Josefsson  <jas@extundo.com>
67697
67698         * m4/mempcpy.m4: New file.
67699
67700 2003-07-14  Simon Josefsson  <jas@extundo.com>
67701
67702         * lib/mempcpy.h: New file.
67703         * lib/mempcpy.c: New file.
67704
67705 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67706
67707         * modules/getdate, modules/posixtm: Depend on mktime.
67708
67709 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67710
67711         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
67712         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
67713         unicodeio.c, unicodeio.h, unlocked-io.h:
67714         Switch from LGPL to GPL.
67715
67716 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67717
67718         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
67719         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
67720         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
67721         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
67722         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
67723         updated automatically by ../config/srclist-update.  This changes
67724         their license from LPGL to GPL.
67725
67726 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67727
67728         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
67729         assumed to refer to the root of the most recent stable gettext version.
67730         * config/srclistvars.sh: Add defaults for eggert.
67731         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
67732         Match "This program" as well as "The program".  This is needed
67733         for gettext.
67734
67735 2003-07-14  Jim Meyering  <jim@meyering.net>
67736
67737         Don't emit diagnostics.  Let callers do that.
67738         * lib/save-cwd.c: Don't include "error.h".
67739         (save_cwd): Don't call error.  Ensure that errno is valid
67740         when returning nonzero.
67741
67742         * lib/save-cwd.h (restore_cwd): Update prototype.
67743         * lib/save-cwd.c (restore_cwd): Remove two parameters.
67744         Simplify.  Don't call error upon failure.  Let callers do that.
67745         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
67746         when auditing is enabled.  But don't bother updating the #if.
67747
67748 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
67749
67750         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
67751         it breaks C++ compilation.
67752         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
67753
67754 2003-07-10  Simon Josefsson  <jas@extundo.com>
67755
67756         * modules/strchrnul (Makefile.am): Add strchrnul.h.
67757
67758 2003-07-10  Jim Meyering  <jim@meyering.net>
67759
67760         * m4/clock_time.m4: Remove trailing blank.
67761         * m4/intmax_t.m4: Likewise.
67762
67763 2003-07-10  Jim Meyering  <jim@meyering.net>
67764
67765         * lib/vasnprintf.c: Remove trailing blanks.
67766         Make cpp indentation consistent.
67767
67768 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67769
67770         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
67771         posixver.c, strftime.c, strnlen.c, strverscmp.c:
67772         Switch from LGPL to GPL.
67773
67774 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67775
67776         * config/srclist.txt: Sort sublists.  Add
67777         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
67778         that differ from gnulib for one reason or another; we'd like this list
67779         to be smaller but for now let's document what we have.
67780
67781 2003-07-08  Paul Eggert  <eggert@twinsun.com>
67782
67783         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
67784         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
67785         and sweeter "eval x=$x".
67786         * config/srclist.txt: Get lib/argp* from glibc.
67787
67788 2003-07-07  Paul Eggert  <eggert@twinsun.com>
67789
67790         * lib/mktime.c: Fix some boundary cases and remove need for floating
67791         point.
67792
67793         Issue a compile-time diagnostic if time_t is floating point, or if
67794         two's complement arithmetic is not in effect, or if arithmetic
67795         right shift does not propagate the sign.  These assumptions were
67796         all in the original code but they weren't checked.
67797
67798         (TIME_T_MIDPOINT, verify): New macros.
67799         (__isleap): Remove; it has integer overflow problems.
67800         (leapyear): New function, without those problems.
67801         (ydhms_tm_diff): Remove; splitting into two parts.
67802         (ydhms_diff): New function, containing the arithmetic part of
67803         the old ydhms_tm_diff function.  Issue a compile-time
67804         diagnostic if we are not using C99 integer division.
67805         Avoid casts when possible.
67806         (guess_time_tm): New function, containing the checking part of
67807         the old ydhms_tm_diff function.  Return the new value, rather than
67808         the difference between it and the old.  Accept a new argument T
67809         so that *T specifies the old value.  Check for overflow in the result.
67810
67811         (__mktime_internal): Use a time_t offset, not a long int offset.
67812         This undoes the 2003-06-04 change, which is no longer needed now
67813         that we have better overflow checking.
67814         (localtime_offset): Likewise.
67815
67816         (__mktime_internal): Avoid harmful overflow on hosts where time_t
67817         and long are 64-bit but int is only 32-bit.
67818         (ydhms_diff): Use long int to store year1 and yday1.
67819         Issue a compile-time diagnostic if long int is not wide enough.
67820
67821         (__mktime_internal): Use long int to store adjusted year and yday.
67822         Use plain C rather than preprocessor commands, if that doesn't
67823         affect efficiency.
67824         Check for overflow (and try to repair) after each probe
67825         rather than checking only at the very end.  This avoids some bugs
67826         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
67827         does not equal GMT offset at maximum time).
67828         Use integer to check for overflow rather than floating point; this
67829         is more portable to non-IEEE hosts, and is a tad faster.
67830         When we detect that we are oscillating between two values,
67831         don't check whether tm_isdst has the requested value, since
67832         we already know the answer.  When tm_isdst has the wrong value,
67833         use a different heuristic to find the right one, based on the
67834         extreme values actually observed in practice in tz2003a,
67835         rather than the (overly optimistic) "previous 3 calendar quarters".
67836
67837         (not_equal_tm, print_tm, check_result): Use "const T" rather than
67838         "T const" to accommodate glibc style.
67839         (check_result): Use less-confusing report format.  "long" -> "long int.
67840         (main): Likewise.
67841         Don't loop if the iteration overflows time_t.
67842         Allow a negative step in the iteration.
67843
67844 2003-07-06  Karl Berry  <karl@gnu.org>
67845
67846         * config/depcomp: update from automake.
67847         * config/config.sub: update from prep.
67848
67849 2003-07-03  Karl Berry  <karl@gnu.org>
67850
67851         * config/config.guess: update from prep.
67852
67853 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67854
67855         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
67856         xreadlink.c now includes it unconditionally.
67857
67858 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67859
67860         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
67861         having it depend on HAVE_SYS_TYPES_H.
67862
67863 2003-07-01  Bruno Haible  <bruno@clisp.org>
67864
67865         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
67866         <sys/types.h> should be sufficient.
67867         Reported by Paul Eggert.
67868
67869 2003-06-26  Karl Berry  <karl@gnu.org>
67870
67871         * config/depcomp: update from automake.
67872
67873 2003-06-26  Bruno Haible  <bruno@clisp.org>
67874
67875         * modules/human: Depend on module stdbool.
67876
67877 2003-06-25  Bruno Haible  <bruno@clisp.org>
67878
67879         * modules/readlink: New file.
67880         * modules/xreadlink: Depend on it.
67881         * MODULES.html.sh (func_all_modules): Add readlink.
67882
67883 2003-06-25  Bruno Haible  <bruno@clisp.org>
67884
67885         * m4/readlink.m4: New file.
67886
67887 2003-06-25  Bruno Haible  <bruno@clisp.org>
67888
67889         * lib/readlink.c: New file.
67890
67891 2003-06-22  Karl Berry  <karl@gnu.org>
67892
67893         * config/srclist.txt: update mkinstalldirs from automake.
67894         * config/mkinstalldirs: update.
67895
67896 2003-06-22  Bruno Haible  <bruno@clisp.org>
67897
67898         Portability to mingw32.
67899         * m4/ssize_t.m4: New file, from GNU gettext.
67900         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
67901         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
67902
67903 2003-06-22  Bruno Haible  <bruno@clisp.org>
67904
67905         * modules/safe-read: Add m4/ssize_t.m4.
67906         * modules/xreadlink: Add m4/ssize_t.m4.
67907
67908 2003-06-20  Bruno Haible  <bruno@clisp.org>
67909
67910         Assume C89, so PARAMS isn't needed.
67911         * lib/unicodeio.h (PARAMS): Remove.
67912         * lib/unicodeio.c: Don't use PARAMS.
67913
67914 2003-06-18  Karl Berry  <karl@gnu.org>
67915
67916         * config/config.{guess,sub}: update from prep.
67917
67918 2003-06-18  Jim Meyering  <jim@meyering.net>
67919
67920         Merge changes from coreutils.
67921         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
67922         Remove explicit declarations of xmalloc and realloc.
67923         Include xalloc.h.
67924         (read_utmp): Remove anachronistic cast of xmalloc.
67925
67926 2003-06-17  Paul Eggert  <eggert@twinsun.com>
67927
67928         Assume C89, so PARAMS isn't needed.
67929         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
67930         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
67931         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
67932         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
67933         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
67934         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
67935         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
67936         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
67937         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
67938         lib/xstrtod.h, lib/xstrtol.h: Likewise.
67939         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
67940         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
67941         no longer needed. Anyway, config.h should always be included before any
67942         other file.
67943
67944 2003-06-11  Simon Josefsson  <jas@extundo.com>
67945
67946         * modules/sysexits: New file.
67947         * MODULES.html.sh (func_all_modules): Add sysexits.
67948
67949 2003-06-11  Simon Josefsson  <jas@extundo.com>
67950
67951         * lib/sysexit_.h: New file.
67952
67953 2003-06-11  Derek Price  <derek@ximbiot.com>
67954
67955         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
67956         necessary.
67957
67958 2003-06-11  Bruno Haible  <bruno@clisp.org>
67959
67960         * m4/sysexits.m4: New file.
67961
67962 2003-06-10  Simon Josefsson  <jas@extundo.com>
67963
67964         * lib/argp.h: New file, from glibc.
67965         * lib/argp-ba.c: New file, from glibc.
67966         * lib/argp-eexst.c: New file, from glibc.
67967         * lib/argp-fmtstream.c: New file, from glibc.
67968         * lib/argp-fmtstream.h: New file, from glibc.
67969         * lib/argp-fs-xinl.c: New file, from glibc.
67970         * lib/argp-help.c: New file, from glibc.
67971         * lib/argp-namefrob.h: New file, from glibc.
67972         * lib/argp-parse.c: New file, from glibc.
67973         * lib/argp-pv.c: New file, from glibc.
67974         * lib/argp-pvh.c: New file, from glibc.
67975         * lib/argp-xinl.c: New file, from glibc.
67976
67977 2003-06-10  Simon Josefsson  <jas@extundo.com>
67978
67979         * modules/strchrnul: New file.
67980
67981 2003-06-10  Simon Josefsson  <jas@extundo.com>
67982
67983         * modules/argp: New file.
67984
67985 2003-06-10  Simon Josefsson  <jas@extundo.com>
67986
67987         * m4/strchrnul.m4: New file.
67988
67989 2003-06-10  Simon Josefsson  <jas@extundo.com>
67990
67991         * lib/strchrnul.h: New file.
67992         * lib/strchrnul.c: New file.
67993
67994 2003-06-10  Bruno Haible  <bruno@clisp.org>
67995
67996         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
67997
67998 2003-06-07  Karl Berry  <karl@gnu.org>
67999
68000         * config/config.{guess,sub}: update from prep.
68001
68002 2003-06-07  Jim Meyering  <jim@meyering.net>
68003
68004         * modules/strtod: Use $(...) notation, not @...@ for
68005         AC_REPLACE'd variables.
68006         * modules/localcharset: Likewise.
68007
68008 2003-06-07  Jim Meyering  <jim@meyering.net>
68009
68010         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68011         in place of my name in the copyright comment.
68012         Remove definition and uses of __P.
68013
68014         From coreutils.
68015         * lib/stat.c: Don't declare xmalloc explicitly.
68016         Instead, include "xalloc.h".
68017         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68018         xrealloc, and xcalloc return values.
68019         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68020         Improve comment.
68021         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68022
68023 2003-06-07  Bruno Haible  <bruno@clisp.org>
68024
68025         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68026         avoid AC_CONFIG_LINKS.
68027         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68028         fnmatch.h, to avoid AC_CONFIG_LINKS.
68029         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68030
68031 2003-06-07  Bruno Haible  <bruno@clisp.org>
68032
68033         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68034         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68035         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68036         directory.
68037         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68038         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68039         directory.
68040
68041 2003-06-06  Jim Meyering  <jim@meyering.net>
68042
68043         Merge from coreutils.
68044         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68045         Consolidate declarations and initializations of *_base* locals.
68046
68047         Merge from coreutils.
68048         This avoids a core dump on systems without GNU putenv,
68049         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
68050         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
68051         (unsetenv): New static function, from GNU libc.
68052         (rpl_putenv): Use it.
68053
68054         * lib/modechange.c: Remove trailing blanks.
68055
68056         Merge from coreutils.
68057         * lib/fsusage.c: Remove declaration of statfs.
68058         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
68059
68060         * lib/posixtm.c: Include <stdbool.h> unconditionally.
68061
68062 2003-06-06  Jim Meyering  <jim@meyering.net>
68063
68064         * lib/stdbool_.h: Renamed from stdbool.h.in.
68065
68066 2003-06-06  Jim Meyering  <jim@meyering.net>
68067             Bruno Haible  <bruno@clisp.org>
68068
68069         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68070         Adjust Makefile.am snippet not to redirect directly to target.
68071         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68072
68073 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68074
68075         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68076         mismatch, look in future quarters as well as past.  This fixes a
68077         bug when processing fall-backwards gaps immediately after a long
68078         period of daylight-saving time.
68079
68080         * lib/mktime.c: Assume freestanding C89 or better.
68081         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68082         (__P): Remove; not used.
68083         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68084         (mktime, not_equal_tm, print_tm, check_result,
68085         main): Use prototypes.  Use const * where appropriate.
68086         (main): Fix typo in testing code that uncovered by above changes.
68087         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68088
68089 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68090
68091         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68092         locale.h, localeconv.  This merges changes from coreutils.
68093
68094         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68095         It can be removed after the next Autoconf is released.
68096         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68097         needed.
68098
68099 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68100
68101         * lib/mktime.c: Fix Debian bug 177940
68102         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68103         (localtime_offset): Now long int, not time_t, because we want it
68104         to be guaranteed to be signed.  All uses changed.
68105         (__mktime_internal): If overflow would occur when adding offset,
68106         don't add it.
68107
68108         Merge 'human' changes from coreutils.  Rewrite to support
68109         locale-specific notations like thousands separators.
68110         * lib/human.c: Simplify authorship notice.
68111         Include human.h immediately after config.h.
68112         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68113         <limits.h>: Do not include, since human.h does.
68114         (SIZE_MAX, UINTMAX_MAX): New macros.
68115         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68116         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68117         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68118         (power_letter): Renamed from suffixes.
68119         (generate_suffix_backwards): Remove.
68120         (adjust_value): Now takes int style (because of human.h changes)
68121         and long double value (for greater precision on some platforms).
68122         (group_number): New function.
68123         (human_readable): Use it.  Use integer options, not enum.
68124         Put the options before the sizes in the arg list.
68125         Support all the new options.
68126         The old human_readable function has been removed;
68127         use inttostr.h instead.
68128         (human_readable, default_block_size, humblock):
68129         Use uintmax_t, not int, for block sizes.
68130         (human_readable_inexact, block_size_types): Remove.
68131         (block_size_opts): New constant.
68132         (human_options): Renamed from human_block_size, with new signature
68133         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68134         * lib/human.h: Add copyright and authorship notice.
68135         Include <limits.h> and <stdbool.h> unconditionally.
68136         (PARAMS): Remove.  All uses removed.
68137         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68138         (enum human_inexact_style): Remove tag; now a nameless enum.
68139         (human_floor, human_ceiling, human_round_to_even): Now have
68140         values 2, 0, 1 rather than -1, 1, 0.
68141         (human_group_digits, human_suppress_point_zero, human_autoscale,
68142         human_base_1024, human_SI, human_B): New constants.
68143         (human_readable_inexact, human_block_size): Remove.
68144         (human_readable): Size args are now uintmax_t, not int.
68145         (human_options): New decl.
68146
68147         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68148         unnecessary now that we assume C89 or better.  This change
68149         imported from coreutils.
68150
68151         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68152         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68153         in the 2003-05-30 sync from glibc.
68154
68155         .h files should stand alone, but we shouldn't include <sys/types.h>
68156         if we can get away with just <stddef.h>.
68157
68158         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68159         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68160         rather than <sys/types.h>, as we merely need size_t.
68161         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68162         to get size_t.
68163         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68164         Include <stdio.h>, to get FILE.
68165         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68166         memcasecmp.h has included <stddef.h> and all we need is size_t.
68167         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68168         our interface, instead of including <sys/types.h>
68169
68170 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68171
68172         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68173         now, as glibc mktime is buggy on non-glibc systems.
68174
68175 2003-06-03  Karl Berry  <karl@gnu.org>
68176
68177         * config/config.sub: update from prep.
68178
68179 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68180
68181         [from coreutils]
68182         Fix some minor time-related bugs with POSIX time arguments.
68183         Some valid time stamps were being rejected (notably -1, and
68184         time stamps before 1900 on 64-bit hosts).  And some invalid
68185         time stamps were being accepted, e.g. September 31.
68186
68187         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68188         that we can return (time_t) -1 successfully.
68189         * lib/posixtm.c: Likewise.
68190         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68191         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68192         (t): Remove static var.
68193         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68194         of static var.  All uses changed.
68195         (year): Do not reject years before 1900; they can occur with
68196         64-bit time_t.
68197         (posix_time_parse): Do not check for out-of-range components;
68198         that is now the caller's responsibility, since our checks were
68199         only approximations.
68200         (posixtime): Use mktime to check for out-of-range components,
68201         since it knows them exactly.
68202         If mktime returns (time_t) -1, check whether an error actually occurred
68203         by invoking localtime on -1.
68204         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68205         posixtime failures better.
68206         Improve the test data (in comments only).
68207
68208 2003-06-02  Karl Berry  <karl@gnu.org>
68209
68210         * config/mkinstalldirs (version): new variable.
68211         (--version): new option.
68212         (usage): improve message.
68213
68214 2003-05-30  Karl Berry  <karl@gnu.org>
68215
68216         * lib/mktime.c: update from libc.
68217
68218 2003-05-30  Bruno Haible  <bruno@clisp.org>
68219
68220         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68221         * config/config.rpath: Upgrade to gettext-0.12.1.
68222
68223 2003-05-30  Bruno Haible  <bruno@clisp.org>
68224
68225         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68226         * m4/nls.m4: New file, from gettext-0.12.1.
68227         * m4/po.m4: New file, from gettext-0.12.1.
68228         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68229
68230 2003-05-30  Bruno Haible  <bruno@clisp.org>
68231
68232         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68233         * lib/localcharset.h: Likewise.
68234         * lib/localcharset.c: Likewise.
68235
68236 2003-05-29  Karl Berry  <karl@gnu.org>
68237
68238         * config/config.rpath: update from gettext.
68239
68240 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68241
68242         Assume the headers required for C89 freestanding compilers.
68243         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68244         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68245         * m4/human.m4 (gl_HUMAN): Likewise.
68246         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68247         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68248         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68249         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68250         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68251         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68252
68253 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68254
68255         Assume the headers required for C89 freestanding compilers.
68256         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68257         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68258         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68259         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68260         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68261         define, since <limits.h> is guaranteed to do that.
68262         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68263         * lib/exclude.c: Include <stdbool.h> unconditionally.
68264         * lib/tempname.c: Include <stddef.h> unconditionally.
68265         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68266         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68267         <stddef.h> does that.
68268         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68269         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68270         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68271         needed.
68272         * lib/xstrtol.c: Likewise.
68273         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68274         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68275
68276         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68277         warnings on some platforms.
68278
68279         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68280         arbitrarily.
68281
68282 2003-05-26  Jim Meyering  <jim@meyering.net>
68283
68284         Merge in a change from coreutils:
68285         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68286         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68287         that condition, rather than `-1' which is slightly misleading.
68288         Change the name of the cache variable to have the gl_ prefix.
68289         Prompted by a patch from Richard Dawe for DJGPP.
68290
68291 2003-05-24  Karl Berry  <karl@gnu.org>
68292
68293         * config/config.guess: update from prep.
68294
68295 2003-05-22  Karl Berry  <karl@gnu.org>
68296
68297         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68298
68299 2003-05-20  Karl Berry  <karl@gnu.org>
68300
68301         * config/config.guess: update from prep.
68302
68303 2003-05-18  Karl Berry  <karl@gnu.org>
68304
68305         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68306         might actually be set by the user.
68307
68308         * config/depcomp, install-sh, mdate-sh: update from automake.
68309
68310 2003-05-17  Bruno Haible  <bruno@clisp.org>
68311
68312         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68313         invalid expansion for AC_EGREP_CPP.
68314         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68315         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68316         Suggested by Akim Demaille <akim@epita.fr> in
68317         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68318
68319 2003-05-12  Jim Meyering  <jim@meyering.net>
68320
68321         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68322         the space-padded-by-default conversion specifiers, %e, %k, %l.
68323
68324 2003-05-12  Bruno Haible  <bruno@clisp.org>
68325
68326         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68327         the string is longer than 4 KB.
68328
68329 2003-05-11  Karl Berry  <karl@gnu.org>
68330
68331         * config/config.{guess,sub}: update from prep.
68332
68333 2003-05-09  Bruno Haible  <bruno@clisp.org>
68334
68335         * modules/error: Add m4/strerror_r.m4 to file list.
68336
68337 2003-05-03  Bruno Haible  <bruno@clisp.org>
68338
68339         Upgrade to Unicode-4.0.
68340         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68341         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68342         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68343         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68344         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68345         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68346         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68347         Change width of U+E0100..U+E01EF from 1 to 0.
68348
68349 2003-04-25  Jim Meyering  <jim@meyering.net>
68350
68351         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68352         of type size_t, not int.
68353
68354 2003-04-25  Bruno Haible  <bruno@clisp.org>
68355
68356         * lib/copy-file.c: Include <stddef.h>, for size_t.
68357
68358 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68359
68360         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68361         code which expansion is under static control.  Patch imported from
68362         Akim Demaille's patch to Bison; see
68363         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68364
68365 2003-04-14  Bruno Haible  <bruno@clisp.org>
68366
68367         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68368
68369 2003-04-11  Jim Meyering  <jim@meyering.net>
68370
68371         Merge changes from Coreutils.
68372
68373         2003-03-22  Jim Meyering  <jim@meyering.net>
68374
68375         * lib/strftime.c (widen): Cast alloca return value to proper type.
68376
68377         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68378
68379         From GNU libc.
68380         * lib/strftime.c (my_strftime): Handle very large width
68381         specifications for numeric values correctly.  Improve checks for
68382         overflow.
68383
68384         2003-01-19  Jim Meyering  <jim@meyering.net>
68385
68386         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
68387         definitions.
68388         (nl_get_alt_digit) [! defined my_strftime]: Define.
68389         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
68390         _nl_get_alt_digit and _nl_get_walt_digit.
68391
68392         * lib/strftime.c (my_strftime): Merge in locale-related changes from
68393         libc. These changes have no effect outside of _LIBC.
68394
68395 2003-04-10  Bruno Haible  <bruno@clisp.org>
68396
68397         * modules/findprog: New file.
68398         * MODULES.html.sh (func_all_modules): Add it.
68399
68400 2003-04-10  Bruno Haible  <bruno@clisp.org>
68401
68402         * m4/findprog.m4: New file.
68403         * m4/eaccess.m4: New file.
68404
68405 2003-04-10  Bruno Haible  <bruno@clisp.org>
68406
68407         * lib/findprog.h: New file, from GNU gettext.
68408         * lib/findprog.c: New file, from GNU gettext.
68409
68410 2003-04-05  Jim Meyering  <jim@meyering.net>
68411
68412         Merge changes from Coreutils.
68413
68414         * lib/exclude.h (PARAMS): Remove definition and uses.
68415         * lib/exclude.c: Remove uses of `PARAMS'.
68416
68417         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
68418         Add test-cases for DOS filenames. Declare program_name.
68419         (main): Set up program_name.  Patch by Rich Dawe.
68420
68421         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68422         error from mntctl.
68423         Use mntctl's return value to drive the entry-processing loop, since
68424         we can't rely on the value of the vmt_length member in the last
68425         entry.  On some systems doing so could result in exhausting
68426         virtual memory.  Based in part on a patch from Mike Jetzer.
68427
68428 2003-04-04  Bruno Haible  <bruno@clisp.org>
68429
68430         * modules/linebreak: New file.
68431         * MODULES.html.sh (func_all_modules): Add it.
68432
68433 2003-04-04  Bruno Haible  <bruno@clisp.org>
68434
68435         * m4/linebreak.m4: New file.
68436
68437 2003-04-04  Bruno Haible  <bruno@clisp.org>
68438
68439         * lib/linebreak.h: New file, from GNU gettext.
68440         * lib/linebreak.c: New file, from GNU gettext with slight
68441         modifications.
68442         * lib/lbrkprop.h: New file, from GNU gettext.
68443
68444 2003-04-03  Bruno Haible  <bruno@clisp.org>
68445
68446         * modules/utf8-ucs4: New file.
68447         * modules/utf16-ucs4: New file.
68448         * modules/ucs4-utf8: New file.
68449         * modules/ucs4-utf16: New file.
68450         * MODULES.html.sh (func_all_modules): Add them.
68451
68452 2003-04-03  Bruno Haible  <bruno@clisp.org>
68453
68454         * m4/utf-ucs4.m4: New file.
68455         * m4/ucs4-utf.m4: New file.
68456
68457 2003-04-03  Bruno Haible  <bruno@clisp.org>
68458
68459         * lib/utf8-ucs4.h: New file, from GNU gettext.
68460         * lib/utf16-ucs4.h: New file, from GNU gettext.
68461         * lib/ucs4-utf8.h: New file, from GNU gettext.
68462         * lib/ucs4-utf16.h: New file, from GNU gettext.
68463
68464 2003-04-02  Bruno Haible  <bruno@clisp.org>
68465
68466         * modules/binary-io: New file.
68467         * MODULES.html.sh (func_all_modules): Add it.
68468
68469 2003-04-02  Bruno Haible  <bruno@clisp.org>
68470
68471         * lib/binary-io.h: New file, from GNU gettext.
68472
68473 2003-04-01  Bruno Haible  <bruno@clisp.org>
68474
68475         * modules/pathname: New file.
68476         * MODULES.html.sh (func_all_modules): Add it.
68477
68478 2003-04-01  Bruno Haible  <bruno@clisp.org>
68479
68480         * lib/pathname.h: New file, from GNU gettext.
68481         * lib/concatpath.c: New file, from GNU gettext.
68482
68483 2003-03-30  Bruno Haible  <bruno@clisp.org>
68484
68485         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
68486
68487 2003-03-30  Bruno Haible  <bruno@clisp.org>
68488
68489         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
68490         function chown() doesn't exist.
68491
68492 2003-03-28  Bruno Haible  <bruno@clisp.org>
68493
68494         * modules/copy-file: New file.
68495         * MODULES.html.sh (func_all_modules): Add it.
68496
68497 2003-03-28  Bruno Haible  <bruno@clisp.org>
68498
68499         * m4/copy-file.m4: New file.
68500
68501 2003-03-28  Bruno Haible  <bruno@clisp.org>
68502
68503         * lib/copy-file.h: New file, from GNU gettext.
68504         * lib/copy-file.c: New file, from GNU gettext.
68505
68506 2003-03-18  Jim Meyering  <jim@meyering.net>
68507
68508         * lib/quote.c (quote_n): Fix typo in comment.
68509
68510 2003-03-18  Bruno Haible  <bruno@clisp.org>
68511
68512         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
68513         checking.
68514         * m4/onceonly_2_57.m4: Likewise.
68515
68516 2003-03-17  Bruno Haible  <bruno@clisp.org>
68517
68518         * m4/onceonly.m4: Require autoconf 2.54 or newer.
68519         (m4_quote): Remove macro.
68520         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
68521
68522 2003-03-14  Jim Meyering  <jim@meyering.net>
68523
68524         Merge changes from Coreutils.
68525         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
68526         to be const, in order to avoid warnings.
68527         (obstack_room): Likewise.
68528         (obstack_empty_p): Likewise.
68529
68530 2003-03-14  Bruno Haible  <bruno@clisp.org>
68531
68532         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
68533         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
68534
68535 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68536
68537         Merge changes from Bison.
68538         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
68539         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
68540         when compiling Bison 1.875's `bitset bset = obstack_alloc
68541         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
68542         * lib/hash.c: Include <stdbool.h> unconditionally.
68543
68544 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68545
68546         * m4/onceonly.m4 (m4_quote): New macro.
68547         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
68548         Quote AC_FOREACH variable-expansions properly.
68549
68550 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68551
68552         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
68553
68554 2003-03-09  Paul Eggert  <eggert@twinsun.com>
68555
68556         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
68557         Reported by Bruce Becker; see:
68558         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
68559
68560 2003-03-03  Paul Eggert  <eggert@twinsun.com>
68561             Bruno Haible  <bruno@clisp.org>
68562
68563         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
68564         Reported by John Hughes, see
68565         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
68566
68567 2003-02-20  Bruno Haible  <bruno@clisp.org>
68568
68569         * MODULES.html.sh (func_all_modules): Add poll.
68570
68571 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68572
68573         * modules/poll: New file.
68574
68575 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68576
68577         * lib/poll_.h: New file.
68578         * lib/poll.c: New file.
68579
68580 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68581
68582         * m4/poll.m4: New file.
68583
68584 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68585
68586         * modules/mathl: New file.
68587
68588 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68589
68590         * lib/mathl.h: New file.
68591         * lib/acosl.c: New file.
68592         * lib/asinl.c: New file.
68593         * lib/atanl.c: New file.
68594         * lib/ceill.c: New file.
68595         * lib/cosl.c: New file.
68596         * lib/expl.c: New file.
68597         * lib/floorl.c: New file.
68598         * lib/frexpl.c: New file.
68599         * lib/ldexpl.c: New file.
68600         * lib/logl.c: New file.
68601         * lib/sincosl.c: New file.
68602         * lib/sinl.c: New file.
68603         * lib/sqrtl.c: New file.
68604         * lib/tanl.c: New file.
68605         * lib/trigl.c: New file.
68606         * lib/trigl.h: New file.
68607
68608 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68609
68610         * m4/mathl.m4: New file.
68611
68612 2003-02-18  Bruno Haible  <bruno@clisp.org>
68613
68614         * MODULES.html.sh (func_all_modules): Add mathl.
68615
68616 2003-02-17  Bruno Haible  <bruno@clisp.org>
68617
68618         * modules/mkdtemp: New module.
68619         * MODULES.html.sh (func_all_modules): Add it.
68620
68621 2003-02-17  Bruno Haible  <bruno@clisp.org>
68622
68623         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
68624
68625 2003-02-17  Bruno Haible  <bruno@clisp.org>
68626
68627         * lib/mkdtemp.h: New file, from GNU gettext.
68628         * lib/mkdtemp.c: New file, from GNU gettext.
68629
68630 2003-02-02  Jim Meyering  <jim@meyering.net>
68631
68632         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
68633         e.g. glibc-2.2.93.
68634
68635 2003-01-31  Bruno Haible  <bruno@clisp.org>
68636
68637         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
68638         'rpl_rename'.
68639         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
68640         'rpl_strnlen'.
68641         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
68642         'rpl_strtod'.
68643         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
68644         'rpl_utime'.
68645
68646 2003-01-31  Bruno Haible  <bruno@clisp.org>
68647
68648         * lib/rename.c: #undef rename before defining rpl_rename.
68649         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
68650
68651 2003-01-30  Bruno Haible  <bruno@clisp.org>
68652
68653         * modules/vasnprintf, modules/vasprintf: New modules.
68654         * MODULES.html.sh (func_all_modules): Add them.
68655
68656 2003-01-30  Bruno Haible  <bruno@clisp.org>
68657
68658         * m4/signed.m4: New file, from GNU gettext.
68659         * m4/longdouble.m4: New file, from GNU gettext.
68660         * m4/wchar_t.m4: New file, from GNU gettext.
68661         * m4/wint_t.m4: New file, from GNU gettext.
68662         * m4/vasnprintf.m4: New file.
68663         * m4/vasprintf.m4: New file.
68664
68665 2003-01-30  Bruno Haible  <bruno@clisp.org>
68666
68667         * lib/printf-args.h: New file, from GNU gettext.
68668         * lib/printf-args.c: New file, from GNU gettext.
68669         * lib/printf-parse.h: New file, from GNU gettext.
68670         * lib/printf-parse.c: New file, from GNU gettext.
68671         * lib/vasnprintf.h: New file, from GNU gettext.
68672         * lib/vasnprintf.c: New file, from GNU gettext.
68673         * lib/asnprintf.c: New file, from GNU gettext.
68674         * lib/vasprintf.h: New file, from GNU gettext with modifications.
68675         * lib/vasprintf.c: New file, from GNU gettext.
68676         * lib/asprintf.c: New file, from GNU gettext.
68677
68678 2003-01-29  Bruno Haible  <bruno@clisp.org>
68679
68680         * modules/stpncpy: New module.
68681         * MODULES.html.sh (func_all_modules): Add it.
68682
68683 2003-01-29  Bruno Haible  <bruno@clisp.org>
68684
68685         * m4/stpncpy.m4: New file.
68686
68687 2003-01-29  Bruno Haible  <bruno@clisp.org>
68688
68689         * lib/stpncpy.h: New file, from GNU gettext with modifications.
68690         * lib/stpncpy.c: New file, from GNU gettext with modifications.
68691
68692 2003-01-28  Bruno Haible  <bruno@clisp.org>
68693
68694         * modules/c-ctype: New module.
68695         * MODULES.html.sh (func_all_modules): Add it.
68696
68697 2003-01-28  Bruno Haible  <bruno@clisp.org>
68698
68699         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
68700         Paul Eggert.
68701         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
68702         Paul Eggert.
68703
68704 2003-01-27  Bruno Haible  <bruno@clisp.org>
68705
68706         * modules/xsetenv: New module.
68707         * MODULES.html.sh (func_all_modules): Add it.
68708
68709 2003-01-27  Bruno Haible  <bruno@clisp.org>
68710
68711         * lib/xsetenv.h: New file, from GNU gettext.
68712         * lib/xsetenv.c: New file, from GNU gettext.
68713
68714 2003-01-23  Jim Meyering  <jim@meyering.net>
68715
68716         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
68717         from working on systems without dirfd (at least Irix and OSF1/Tru64).
68718
68719 2003-01-23  Bruno Haible  <bruno@clisp.org>
68720
68721         * modules/minmax: New module.
68722         * MODULES.html.sh (func_all_modules): Add it.
68723
68724 2003-01-23  Bruno Haible  <bruno@clisp.org>
68725
68726         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
68727         Eggert.
68728
68729 2003-01-22  Bruno Haible  <bruno@clisp.org>
68730
68731         * modules/exit: New module.
68732         * MODULES.html.sh (func_all_modules): Add it.
68733
68734 2003-01-22  Bruno Haible  <bruno@clisp.org>
68735
68736         * lib/exit.h: New file, from GNU gettext.
68737
68738 2003-01-19  Bruno Haible  <bruno@clisp.org>
68739
68740         * gnulib-tool: Recognize option --extract-maintainer.
68741         (func_get_maintainer): New function.
68742         * modules/*: Add Maintainer entry.
68743
68744 2003-01-16  Jim Meyering  <jim@meyering.net>
68745
68746         * m4/regex.m4: The `regex' struct is both input and output.
68747         Initialize it before each use.  Patch by Tim Waugh.
68748
68749 2003-01-16  Bruno Haible  <bruno@clisp.org>
68750
68751         * MODULES.html.sh: Add a table of contents. Add the module name as
68752         leftmost column. Add hyperlinks.
68753
68754 2003-01-15  Bruno Haible  <bruno@clisp.org>
68755
68756         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
68757
68758 2003-01-15  Bruno Haible  <bruno@clisp.org>
68759
68760         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
68761         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
68762         suffix.
68763
68764 2003-01-15  Bruno Haible  <bruno@clisp.org>
68765
68766         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
68767
68768 2003-01-15  Bruno Haible  <bruno@clisp.org>
68769
68770         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
68771         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
68772
68773 2003-01-14  Jim Meyering  <jim@meyering.net>
68774
68775         * lib/same.c (same_name): Tweak a comment.
68776
68777 2003-01-14  Bruno Haible  <bruno@clisp.org>
68778
68779         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
68780         when a string comparison is sufficient.
68781
68782 2003-01-14  Bruno Haible  <bruno@clisp.org>
68783
68784         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
68785         'unsigned int'.
68786
68787 2003-01-14  Bruno Haible  <bruno@clisp.org>
68788
68789         * lib/hash-pjw.c: Add comment about low quality of this function.
68790
68791 2003-01-13  Bruno Haible  <bruno@clisp.org>
68792
68793         * modules/stpcpy: Distribute lib/stpcpy.h.
68794         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
68795
68796 2003-01-13  Bruno Haible  <bruno@clisp.org>
68797
68798         * modules/*: Add a description.
68799         * modules/strpbrk: Fix Makefile.am snippet.
68800         * modules/strtoimax: Fix dependencies.
68801         * modules/strtoumax: Likewise.
68802
68803 2003-01-13  Bruno Haible  <bruno@clisp.org>
68804
68805         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
68806         * modules/alloca (Makefile.am): All object files depend on alloca.h.
68807         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
68808
68809 2003-01-13  Bruno Haible  <bruno@clisp.org>
68810
68811         * gnulib-tool (func_create_testdir): Store config/* files in the main
68812         directory.
68813         * config.rpath: Move to ...
68814         * config/config.rpath: ... here.
68815         * modules/gettext: Contains config/config.rpath, not config.rpath.
68816         * modules/iconv: Likewise.
68817
68818 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68819
68820         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68821         to avoid collisions with libcurses and libreadline.
68822
68823         * m4/getstr.m4: Remove.
68824         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
68825
68826 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68827
68828         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68829         to avoid collisions with libcurses and libreadline.
68830
68831         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
68832         * lib/getstr.h, getstr.c: Remove.
68833         * lib/getline.c: Include "getline.h", to check interface.
68834         Move body of old getstr.c here: this defines MIN_CHUNK and
68835         declares getdelim2, which is renamed from getstr.
68836         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
68837
68838         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
68839         All uses changed.
68840         * lib/linebuffer.h: Likewise.
68841         (readline): Remove backward-compatibility macro.
68842
68843 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68844
68845         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68846         to avoid collisions with libcurses and libreadline.
68847         * getstr: Remove.
68848         * MODULES.html.sh: Remove getstr.
68849         * modules/getline: Depend on unlocked-io, not getstr.
68850
68851 2003-01-12  Jim Meyering  <jim@meyering.net>
68852
68853         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
68854
68855 2003-01-10  Bruno Haible  <bruno@clisp.org>
68856
68857         * modules/alloca: Change Makefile.am requirements. Simplify Include
68858         requirements. Add lib/alloca_.h to file list.
68859
68860 2003-01-10  Bruno Haible  <bruno@clisp.org>
68861
68862         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
68863
68864 2003-01-10  Bruno Haible  <bruno@clisp.org>
68865
68866         * lib/alloca_.h: New file.
68867         * lib/getdate.y: Unconditionally include alloca.h.
68868         * lib/makepath.c: Likewise.
68869         * lib/setenv.c: Likewise.
68870         * lib/userspec.c: Likewise.
68871
68872 2003-01-09  Karl Berry  <karl@gnu.org>
68873
68874         * MODULES.html.sh: include `dirname $0` in PATH, to find
68875         gnulib-tool.
68876
68877 2003-01-09  Bruno Haible  <bruno@clisp.org>
68878
68879         * modules/stdbool: Change configure.ac, Makefile.am requirements.
68880         Simplify Include requirements. Add lib/stdbool.h.in to file list.
68881
68882 2003-01-09  Bruno Haible  <bruno@clisp.org>
68883
68884         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
68885
68886 2003-01-09  Bruno Haible  <bruno@clisp.org>
68887
68888         * lib/stdbool.h.in: New file.
68889
68890 2003-01-09  Bruno Haible  <bruno@clisp.org>
68891
68892         * gnulib-tool (func_all_modules): Ignore files ending in ~.
68893         * MODULES.html.sh: Likewise.
68894
68895 2003-01-08  Jim Meyering  <jim@meyering.net>
68896
68897         * lib/full-write.c: Undefine and define-away `const' after inclusion
68898         of errno.h, not before.  Suggestion from Bruno Haible.
68899
68900 2003-01-08  Bruno Haible  <bruno@clisp.org>
68901
68902         * modules/full-read: Depend on full-write.
68903
68904 2003-01-08  Bruno Haible  <bruno@clisp.org>
68905
68906         * lib/safe-read.c: Include specification header first, to ensure its
68907         selfcontainedness.
68908         * lib/full-write.c: Likewise.
68909
68910 2003-01-07  Jim Meyering  <jim@meyering.net>
68911
68912         * lib/full-write.c: Rework so that it may serve to define full_read,
68913         too.
68914         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
68915
68916 2003-01-07  Bruno Haible  <bruno@clisp.org>
68917
68918         * lib/strtoimax.c: Include <stdint.h> as an alternative to
68919         <inttypes.h>.
68920         * lib/xstrtol.h: Likewise.
68921         * lib/xstrtoimax.c: Likewise.
68922         * lib/xstrtoumax.c: Likewise.
68923         * lib/human.h: Likewise.
68924
68925         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
68926         on systems that have <inttypes.h> but not <stdint.h>.
68927
68928 2003-01-07  Bruno Haible  <bruno@clisp.org>
68929
68930         * MODULES.html.sh: Add copyright notice.
68931         (missed_files): Omit CVS directory entries.
68932         (func_module): Make it work with sed-3.02.
68933         * MODULES.txt: Remove file.
68934
68935 2003-01-06  Jim Meyering  <jim@meyering.net>
68936
68937         * lib/version-etc.c: Update year in translatable copyright string.
68938
68939 2003-01-03  Karl Berry  <karl@gnu.org>
68940
68941         * config/config.{guess,sub}: update from prep.
68942
68943 2003-01-02  Karl Berry  <karl@gnu.org>
68944
68945         * doc/COPYING.DOC: belatedly updated to 1.2.
68946
68947 2003-01-01  Karl Berry  <karl@gnu.org>
68948
68949         * gnulib-tool (func_verify_module): report module name $module in
68950         error message, not $1.
68951         * gnulib-tool (create-testdir): don't complain if destdir couldn't
68952         be created, only if it doesn't exist.
68953         * gnulib-tool (last_checkin_date): don't expand the $Date here.
68954
68955 2002-12-31  Paul Eggert  <eggert@twinsun.com>
68956
68957         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
68958
68959 2002-12-31  Paul Eggert  <eggert@twinsun.com>
68960
68961         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
68962         memcmp if strcoll doesn't work.
68963
68964 2002-12-31  Bruno Haible  <bruno@clisp.org>
68965
68966         * lib/utime.c (utime_null): No need to call ftruncate if the file was
68967         nonempty.
68968
68969 2002-12-31  Bruno Haible  <bruno@clisp.org>
68970
68971         * lib/memcoll.c (STRCOLL): New macro.
68972         (memcoll): Use it.
68973
68974 2002-12-31  Bruno Haible  <bruno@clisp.org>
68975
68976         * lib/localcharset.h: New file.
68977         * lib/localcharset.c: Include it.
68978         * lib/unicodeio.c: Likewise.
68979
68980 2002-12-31  Bruno Haible  <bruno@clisp.org>
68981
68982         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
68983         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
68984
68985 2002-12-31  Bruno Haible  <bruno@clisp.org>
68986
68987         * lib/getline.h: Include <stddef.h>, for size_t.
68988
68989         * lib/unicodeio.h: Include <stddef.h>, for size_t.
68990         * lib/unicodeio.c: Don't include <stddef.h>.
68991
68992 2002-12-31  Bruno Haible  <bruno@clisp.org>
68993
68994         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
68995         HAVE_TM_ZONE.
68996
68997 2002-12-24  Karl Berry  <karl@gnu.org>
68998
68999         * config/config.guess: update from prep.
69000
69001 2002-12-24  Bruno Haible  <bruno@clisp.org>
69002
69003         General infrasructure.
69004         * m4/README: Rewritten.
69005         * m4/onceonly.m4: New file.
69006         * m4/onceonly_2_57.m4: New file.
69007
69008         Module atexit.
69009         * m4/atexit.m4: New file.
69010
69011         Module strtod.
69012         * m4/strtod.m4: New file.
69013
69014         Module strtol.
69015         * m4/strtol.m4: New file.
69016
69017         Module strtoul.
69018         * m4/strtoul.m4: New file.
69019
69020         Module memchr.
69021         * m4/memchr.m4: New file.
69022
69023         Module memcmp.
69024         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69025         (jm_FUNC_MEMCMP): Invoke it.
69026
69027         Module memcpy.
69028         * m4/memcpy.m4: New file.
69029
69030         Module memmove.
69031         * m4/memmove.m4: New file.
69032
69033         Module memset.
69034         * m4/memset.m4: New file.
69035
69036         Module strcspn.
69037         * m4/strcspn.m4: New file.
69038
69039         Module strpbrk.
69040         * m4/strpbrk.m4: New file.
69041
69042         Module strstr.
69043         * m4/strstr.m4: New file.
69044
69045         Module strerror.
69046         * m4/strerror.m4: New file.
69047
69048         Module mktime.
69049         * m4/mktime.m4: Renamed from jm-mktime.m4.
69050         (gl_PREREQ_MKTIME): New macro.
69051         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
69052
69053         Module malloc.
69054         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
69055         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
69056         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
69057
69058         Module realloc.
69059         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
69060         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
69061         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
69062
69063         Module strftime.
69064         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69065         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69066         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69067         gl_TM_GMTOFF.
69068         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69069
69070         Module xalloc.
69071         * m4/xalloc.m4: New file.
69072
69073         Module alloca.
69074         * m4/alloca.m4: New file.
69075
69076         Module putenv.
69077         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69078         (jm_FUNC_PUTENV): Invoke it.
69079
69080         Module setenv.
69081         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69082         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69083         when invoked twice.
69084         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69085         gt_FUNC_SETENV.
69086
69087         Module memrchr.
69088         * m4/memrchr.m4: New file.
69089
69090         Module stpcpy.
69091         * m4/stpcpy.m4: New file.
69092
69093         Module strcase.
69094         * m4/strcase.m4: New file.
69095
69096         Module strdup.
69097         * m4/strdup.m4: New file.
69098
69099         Module strnlen.
69100         * m4/strnlen.m4: New file.
69101
69102         Module strndup.
69103         * m4/strndup.m4: New file.
69104
69105         Module xstrtod.
69106         * m4/xstrtod.m4: New file.
69107
69108         Module xstrtol.
69109         * m4/xstrtol.m4: New file.
69110
69111         Module getdate.
69112         * m4/getdate.m4: New file.
69113
69114         Module unlocked-io.
69115         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69116         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69117         * m4/jm-glibc-io.m4n: Remove file.
69118
69119         Module long-options.
69120         * m4/long-options.m4: New file.
69121
69122         Module md5.
69123         * m4/md5.m4: New file.
69124
69125         Module sha.
69126         * m4/sha.m4: New file.
69127
69128         Module getstr.
69129         * m4/getstr.m4: New file.
69130
69131         Module getline.
69132         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69133         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69134         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69135         simply getline. Infoke gl_PREREQ_GETLINE.
69136
69137         Module obstack.
69138         * m4/obstack.m4: New file.
69139
69140         Module hash.
69141         * m4/hash.m4: New file.
69142
69143         Module readtokens.
69144         * m4/readtokens.m4: New file.
69145
69146         Module strverscmp.
69147         * m4/strverscmp.m4: New file.
69148
69149         Module stdbool.
69150         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69151         OSF/1.
69152
69153         Module strtoll.
69154         * m4/strtoll.m4: New file.
69155
69156         Module strtoull.
69157         * m4/strtoull.m4: New file.
69158
69159         Module strtoimax.
69160         * m4/strtoimax.m4: New file.
69161
69162         Module strtoumax.
69163         * m4/strtoumax.m4: New file.
69164
69165         Module xstrtoimax.
69166         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69167         jm_AC_PREREQ_XSTRTOIMAX.
69168         Moved the strtol prerequisites to strtol.m4.
69169         Moved the strtoll prerequisites to strtoll.m4.
69170         Moved the strtoimax prerequisites to strtoimax.m4.
69171
69172         Module xstrtoumax.
69173         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69174         jm_AC_PREREQ_XSTRTOUMAX.
69175         Moved the strtoul prerequisites to strtoul.m4.
69176         Moved the strtoull prerequisites to strtoull.m4.
69177         Moved the strtoumax prerequisites to strtoumax.m4.
69178
69179         Module chown.
69180         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69181         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69182
69183         Module dup2.
69184         * m4/dup2.m4: New file.
69185
69186         Module ftruncate.
69187         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69188         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69189
69190         Module getgroups.
69191         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69192         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69193
69194         Module gettimeofday.
69195         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69196         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69197         gl_PREREQ_GETTIMEOFDAY.
69198
69199         Module mkdir.
69200         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69201         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69202
69203         Module mkstemp.
69204         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69205         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69206         jm_AC_TYPE_UINTMAX_T.
69207         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69208
69209         Module stat.
69210         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69211         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69212
69213         Module lstat.
69214         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69215         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69216
69217         Module timespec.
69218         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69219         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69220         * m4/st_mtim.m4: Indentation.
69221
69222         Module nanosleep.
69223         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69224         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69225         gl_PREREQ_NANOSLEEP.
69226
69227         Module regex.
69228         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69229         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69230         (gl_REGEX): New macro.
69231
69232         Module rename.
69233         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69234         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69235
69236         Module rmdir.
69237         * m4/rmdir.m4: New file.
69238
69239         Module utime.
69240         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69241         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69242         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69243
69244         Module dirname.
69245         * m4/dirname.m4: New file.
69246
69247         Module getopt.
69248         * m4/getopt.m4: New file.
69249
69250         Module unistd-safer.
69251         * m4/unistd-safer.m4: New file.
69252
69253         Module fnmatch.
69254         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69255         declaration.
69256         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69257         (gl_FUNC_FNMATCH_POSIX): New macro.
69258         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69259         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69260         simply fnmatch.
69261
69262         Module exclude.
69263         * m4/exclude.m4: New file.
69264
69265         Module human.
69266         * m4/human.m4: New file.
69267
69268         Module acl.
69269         * m4/acl.m4: Nop.
69270
69271         Module backupfile.
69272         * m4/backupfile.m4: New file.
69273         * m4/d-ino.m4: Indentation.
69274
69275         Module fsusage.
69276         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69277         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69278         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69279
69280         Module dirfd.
69281         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69282         requirements.
69283
69284         Module euidaccess.
69285         * m4/euidaccess.m4: New file.
69286
69287         Module file-type.
69288         * m4/file-type.m4: New file.
69289
69290         Module fileblocks.
69291         * m4/fileblocks.m4: New file.
69292
69293         Module filemode.
69294         * m4/filemode.m4: New file.
69295
69296         Module isdir.
69297         * m4/isdir.m4: New file.
69298
69299         Module lchown.
69300         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69301         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69302
69303         Module makepath.
69304         * m4/makepath.m4: New file.
69305
69306         Module modechange.
69307         * m4/modechange.m4: New file.
69308
69309         Module mountlist.
69310         * m4/mountlist.m4: New file.
69311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69312         Indentation.
69313
69314         Module path-concat.
69315         * m4/path-concat.m4: New file.
69316
69317         Module pathmax.
69318         * m4/pathmax.m4: New file.
69319
69320         Module same.
69321         * m4/same.m4: New file.
69322
69323         Module save-cwd.
69324         * m4/save-cwd.m4: New file.
69325
69326         Module savedir.
69327         * m4/savedir.m4: New file.
69328
69329         Module xgetcwd.
69330         * m4/xgetcwd.m4: New file.
69331         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69332
69333         Module xreadlink.
69334         * m4/xreadlink.m4: New file.
69335
69336         Module safe-read.
69337         * m4/safe-read.m4: New file.
69338
69339         Module safe-write.
69340         * m4/safe-write.m4: New file.
69341
69342         Module closeout.
69343         * m4/closeout.m4: New file.
69344
69345         Module stdio-safer.
69346         * m4/stdio-safer.m4: New file.
69347
69348         Module getpass.
69349         * m4/getpass.m4: New file.
69350
69351         Module getugroups.
69352         * m4/getugroups.m4: New file.
69353
69354         Module group-member.
69355         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69356         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69357
69358         Module idcache.
69359         * m4/idcache.m4: New file.
69360
69361         Module userspec.
69362         * m4/userspec.m4: New file.
69363
69364         Module gettime.
69365         * m4/clock_time.m4: New file.
69366         * m4/gettime.m4: New file.
69367
69368         Module settime.
69369         * m4/settime.m4: New file.
69370
69371         Module posixtm.
69372         * m4/posixtm.m4: New file.
69373
69374         Module gethostname.
69375         * m4/gethostname.m4: New file.
69376
69377         Module canon-host.
69378         * m4/canon-host.m4: New file.
69379
69380         Module gettext.
69381         * m4/codeset.m4: New file, from gettext-0.11.5.
69382         * m4/gettext.m4: New file, from gettext-0.11.5.
69383         * m4/glibc21.m4: New file, from gettext-0.11.5.
69384         * m4/iconv.m4: New file, from gettext-0.11.5.
69385         * m4/intdiv0.m4: New file, from gettext-0.11.5.
69386         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
69387         * m4/inttypes.m4: New file, from gettext-0.11.5.
69388         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
69389         * m4/isc-posix.m4: New file, from gettext-0.11.5.
69390         * m4/lcmessage.m4: New file, from gettext-0.11.5.
69391         * m4/lib-ld.m4: New file, from gettext-0.11.5.
69392         * m4/lib-link.m4: New file, from gettext-0.11.5.
69393         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
69394         * m4/progtest.m4: New file, from gettext-0.11.5.
69395         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
69396         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
69397         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
69398
69399         Module localcharset.
69400         * m4/localcharset.m4: New file.
69401
69402         Module hard-locale.
69403         * m4/hard-locale.m4: New file.
69404
69405         Module mbswidth.
69406         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
69407         onceonly macros.
69408         * m4/mbrtowc.m4: Add comment.
69409
69410         Module memcasecmp.
69411         * m4/memcasecmp.m4: New file.
69412
69413         Module memcoll.
69414         * m4/memcoll.m4: New file.
69415
69416         Module unicodeio.
69417         * m4/unicodeio.m4: New file.
69418
69419         Module rpmatch.
69420         * m4/rpmatch.m4: New file.
69421
69422         Module yesno.
69423         * m4/yesno.m4: New file.
69424
69425         Module exitfail.
69426         * m4/exitfail.m4: New file.
69427
69428         Module c-stack.
69429         * m4/c-stack.m4 (gl_C_STACK): New macro.
69430         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
69431
69432         Module error.
69433         * m4/error.m4 (gl_ERROR): New macro.
69434         (jm_PREREQ_ERROR): Use onceonly macros.
69435
69436         Module fatal.
69437         * m4/fatal.m4: New file.
69438
69439         Module getloadavg.
69440         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
69441         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
69442
69443         Module getpagesize.
69444         * m4/getpagesize.m4: New file.
69445
69446         Module getusershell.
69447         * m4/getusershell.m4: New file.
69448
69449         Module physmem.
69450         * m4/physmem.m4: New file.
69451
69452         Module posixver.
69453         * m4/posixver.m4: New file.
69454
69455         Module quotearg.
69456         * m4/quotearg.m4: New file.
69457
69458         Module quote.
69459         * m4/quote.m4: New file.
69460
69461         Module readutmp.
69462         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
69463
69464         Module sig2str.
69465         * m4/sig2str.m4: New file.
69466
69467         Other.
69468         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
69469         ulonglong.m4.
69470         * m4/intmax_t.m4: New file.
69471         * m4/d-type.m4: Indentation.
69472         * m4/jm-macros.m4: Update.
69473         * m4/prereq.m4 (jm_PREREQ): Update.
69474         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
69475         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
69476         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
69477         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
69478         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
69479         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
69480         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
69481         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
69482         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
69483         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
69484         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
69485         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
69486         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
69487         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
69488         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
69489         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
69490         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
69491         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
69492         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
69493
69494 2002-12-24  Bruno Haible  <bruno@clisp.org>
69495
69496         * MODULES.txt: Update according to m4/ changes.
69497
69498         Module gettext.
69499         * config.rpath: New file, from gettext-0.11.5.
69500
69501         * modules/*: New module descriptions.
69502         * gnulib-tool: New file.
69503         * MODULES.html.sh: New file.
69504
69505 2002-12-21  Karl Berry  <karl@gnu.org>
69506
69507         * doc/fdl.texi: update to version 1.2.
69508
69509 2002-12-19  Karl Berry  <karl@gnu.org>
69510
69511         * config/config.guess: update from prep.
69512
69513 2002-12-18  Bruno Haible  <bruno@clisp.org>
69514
69515         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
69516         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
69517
69518 2002-12-17  Bruno Haible  <bruno@clisp.org>
69519
69520         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
69521         stdlib.h, string.h.
69522
69523 2002-12-17  Bruno Haible  <bruno@clisp.org>
69524
69525         * lib/canon-host.c (strdup): Remove unused declaration.
69526
69527         * lib/fsusage.c: Include full_read.h.
69528         (get_fs_usage): Use full_read instead of safe_read.
69529
69530         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
69531
69532 2002-12-12  Karl Berry  <karl@gnu.org>
69533
69534         * config/config.guess: update from prep.
69535
69536 2002-12-11  Bruno Haible  <bruno@clisp.org>
69537
69538         * m4/setenv.m4: New file, from gettext-0.11.5.
69539
69540 2002-12-11  Bruno Haible  <bruno@clisp.org>
69541
69542         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
69543         not unsetenv().
69544         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
69545         modifications:
69546
69547         2002-12-11  Bruno Haible  <bruno@clisp.org>
69548
69549                 * setenv.c (alloca): Fall back to malloc.
69550                 (freea): New macro.
69551                 (setenv): Use freea() to free memory allocated with alloca().
69552
69553         2002-11-13  Bruno Haible  <bruno@clisp.org>
69554
69555                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
69556                 function declarations.
69557                 * unsetenv.c (unsetenv): Likewise.
69558
69559         2002-03-04  Bruno Haible  <bruno@clisp.org>
69560
69561                 Portability to AIX 4.3.3.
69562                 * unsetenv.c: New file, extracted from setenv.c.
69563                 * setenv.c: Move the unsetenv() function to unsetenv.c.
69564
69565         2001-12-20  Bruno Haible  <bruno@clisp.org>
69566
69567                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
69568                 use malloc instead. For SunOS 4.
69569
69570         2001-12-11  Bruno Haible  <bruno@clisp.org>
69571
69572                 * setenv.c: Declare alloca.
69573                 (compar_fn_t): New typedef.
69574                 (KNOWN_VALUE, STORE_VALUE): Use it.
69575
69576         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
69577         setenv.h.
69578
69579 2002-12-10  Paul Eggert  <eggert@twinsun.com>
69580
69581         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
69582         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
69583         Choose values that are less likely to collide with system fnmatch
69584         options.
69585         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
69586         defined (e.g., a pure POSIX system).
69587         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
69588         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
69589
69590 2002-12-06  Paul Eggert  <eggert@twinsun.com>
69591
69592         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
69593         a pain in practice to deal with generated m4 files.  This change
69594         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
69595
69596         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
69597         and jm-glibc-io.m4, as they are no longer a special case.
69598         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
69599         kludge and the auto-generation stuff.  Check only whether the
69600         functions are declared, not whether they exist, since older hosts
69601         that don't declare the functions can't use the optimization anyway.
69602
69603 2002-12-06  Jim Meyering  <jim@meyering.net>
69604
69605         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
69606
69607         Merge in changes from libc's misc/error.c, in preparation
69608         for the merge of gnulib's changes back into libc.
69609
69610         * lib/error.c (_): Define only if not already defined.
69611         Move definition to follow all #include directives.
69612         Include unlocked-io.h only if !_LIBC.
69613         [_LIBC]: Include <libio/libioP.h>.
69614         [USE_IN_LIBIO]: Include <libio/iolibio.h>
69615         (fflush): Tweak definition to use INTUSE.
69616         (putc): Define.
69617
69618 2002-12-05  Paul Eggert  <eggert@twinsun.com>
69619
69620         * lib/alloca.c [defined emacs]: Include "lisp.h".
69621         (xalloc_die) [defined emacs]: New macro.
69622         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
69623         [! defined emacs]: Include <xalloc.h>.
69624         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
69625         (pointer): Typedef to POINTER_TYPE *.
69626         (malloc): Remove decl; we now always use xmalloc.
69627         (alloca): Use old-style definition, since Emacs needs this.
69628         Check for arithmetic overflow when computing combined size.
69629
69630 2002-12-04  Paul Eggert  <eggert@twinsun.com>
69631
69632         Do not generate unlocked-io.h automatically, since it's easier to
69633         maintain it by hand.
69634
69635         * lib/unlocked-io.h: New file, from GNU diffutils,
69636         but with proper copyright notice and attribution.
69637         * lib/gen-uio: Remove.
69638         * lib/Makefile.am: Add copyright notice.
69639         (libfetish_a_SOURCES): Add unlocked-io.h.
69640         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
69641         (DISTCLEANFILES, io_functions): Remove macros.
69642         (EXTRA_DIST): Remove gen_uio.
69643         (unlocked-io.h): Remove rule.
69644
69645 2002-12-04  Jim Meyering  <jim@meyering.net>
69646
69647         Reflect the fact that stat.c and lstat.c are no longer generated.
69648         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
69649         (DISTCLEANFILES): Likewise.
69650         (EXTRA_DIST): Likewise.
69651         (all_local): Don't depend on stat.c or lstat.c.
69652         (stat.c, lstat.c): Remove rules.
69653         (EXTRA_DIST): Remove xstat.in.
69654
69655         * lib/xstat.in: Remove file.  Contents moved into stat.c.
69656         * lib/stat.c: New file.  Contents mostly from xstat.in.
69657         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
69658         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
69659
69660         * lib/safe-read.c: Rework so that it may serve to define safe_write,
69661         too.
69662         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
69663
69664 2002-12-03  Jim Meyering  <jim@meyering.net>
69665
69666         * lib/safe-read.c, safe-write.c: Change variable names and comments,
69667         but not semantics, to minimize the differences between these two files.
69668         (safe_read): Change comment to mention SAFE_READ_ERROR.
69669
69670         * lib/safe-read.c (IS_EINTR): Define.
69671         (safe_read): Use IS_EINTR in place of in-function cpp directives.
69672
69673 2002-12-02  Jim Meyering  <jim@meyering.net>
69674
69675         * lib/safe-read.c (EINTR): Define.
69676         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69677         (INT_MAX): Provide fallback.
69678         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
69679
69680         * lib/safe-read.h (SAFE_READ_ERROR): Define.
69681
69682 2002-12-02  Bruno Haible  <bruno@clisp.org>
69683
69684         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
69685         Define, taken from safe-read.c.
69686         (INT_MAX): Provide fallback.
69687         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
69688         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
69689
69690         * lib/safe-read.c (EINTR): Remove definition.
69691         (safe_read): Don't use EINTR if it is absent.
69692
69693 2002-12-01  Jim Meyering  <jim@meyering.net>
69694
69695         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
69696         zero.
69697         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
69698
69699 2002-11-27  Paul Eggert  <eggert@twinsun.com>
69700
69701         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
69702         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
69703         with `if (! (value < limit)) abort ();', for readability.
69704
69705 2002-11-26  Karl Berry  <karl@gnu.org>
69706
69707         * lib/strdup.c: copy from libc again, with jim's ok.
69708         * lib/.cppi-disable: re-add strdup.c
69709
69710 2002-11-25  Karl Berry  <karl@gnu.org>
69711
69712         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
69713         instead of "strtol.c".
69714
69715 2002-11-25  Karl Berry  <karl@gnu.org>
69716
69717         * config/install-sh: update from automake for variable quoting, $0 in
69718         error msgs, etc.
69719
69720         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
69721         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
69722         entry.
69723
69724 2002-11-25  Jim Meyering  <jim@meyering.net>
69725
69726         * lib/mktime.c: Sync from libc, now that it has the latest fix.
69727
69728 2002-11-24  Karl Berry  <karl@gnu.org>
69729
69730         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
69731         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
69732
69733 2002-11-24  Jim Meyering  <jim@meyering.net>
69734
69735         Update from coreutils:
69736
69737         * lib/mktime.c: Merge in changes from libc.
69738
69739         Avoid a link-time failure on some Linux systems.
69740         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
69741         (otherwise).
69742         (__mon_yday): Declare with the STATIC attribute.
69743         (__mktime_internal): Likewise.
69744         Based on a report from Greg Schafer.
69745
69746 2002-11-23  Jim Meyering  <jim@meyering.net>
69747
69748         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
69749         Use `unsigned', not `int', as type of index.
69750
69751         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
69752
69753         * lib/fsusage.c: Remove unneeded parentheses around operands of
69754         `defined'.
69755
69756 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69757
69758         * lib/quotearg.h: Allow multiple inclusion by surrounding with
69759         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
69760         so that we can be included first.
69761         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
69762         * lib/quotearg.c: Include quotearg.h immediately after config.h.
69763         No need to include stddef.h or sys/types.h any more.
69764         Surround local include files with "", not "<>".
69765         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
69766         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
69767         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
69768         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
69769         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
69770         (ISPRINT): Remove; no longer needed now that we assume C89.
69771
69772         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
69773         Preserve errno.
69774
69775         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
69776         quotearg_char): Use SIZE_MAX rather than
69777         (size_t) -1 when we are talking about "infinity".
69778
69779         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
69780
69781 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69782
69783         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
69784         hint that one should use `if (! x) abort ();' rather than `assert
69785         (x);', and anyway it's one less thing to worry about configuring.
69786         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
69787         hash_rehash, hash_insert): Use abort rather than assert.
69788
69789 2002-11-22  Bruno Haible  <bruno@clisp.org>
69790
69791         * lib/safe-read.h: Assume C89. Add comments.
69792         (safe_read): Change return type to size_t.
69793         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
69794         byte counts > SSIZE_MAX correctly.
69795         * lib/safe-write.h: New file.
69796         * lib/safe-write.c: New file.
69797         * lib/full-read.h: New file.
69798         * lib/full-read.c: New file.
69799         * lib/full-write.h: Assume C89. Add comments.
69800         * lib/full-write.c: Include safe-write.h.
69801         (full_write): Rewritten to use safe_write.
69802         Suggested by Jim Meyering and Paul Eggert.
69803
69804 2002-11-21  Jim Meyering  <jim@meyering.net>
69805
69806         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
69807
69808         Merge in changes from the coreutils.
69809
69810         2002-09-25  Paul Eggert  <eggert@twinsun.com>
69811         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
69812         <stdint.h>.
69813         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
69814         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
69815         int.  Work more efficiently if X is the same width as uintmax_t.
69816         Do not compare X to -1, to avoid bogus compiler warning.
69817         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
69818         Don't assume that f_frsize and f_bsize are the same type.
69819
69820         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
69821         warning on FreeBSD.
69822
69823         * lib/makepath.c (make_path): Restore umask *before* creating the final
69824         component.
69825         (make_path): Minor reformatting.
69826
69827         * lib/xmalloc.c: Adjust to work with new autoconf macros,
69828         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
69829         HAVE_MALLOC/HAVE_REALLOC.
69830
69831         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
69832         dummy ones.  At least on GNU/Linux systems, `auto' means something
69833         else.
69834         From Michael Stone.
69835
69836 2002-11-21  Bruno Haible  <bruno@clisp.org>
69837
69838         Remove case insensitive option matching.
69839         * lib/argmatch.h (argcasematch): Remove declaration.
69840         (ARGCASEMATCH): Remove macro.
69841         (__xargmatch_internal): Remove case_sensitive argument.
69842         (XARGMATCH): Update.
69843         (XARGCASEMATCH): Remove macro.
69844         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
69845         case_sensitive argument.
69846         (argcasematch): Remove function.
69847         (__xargmatch_internal): Remove case_sensitive argument.
69848         (main): Use XARGMATCH instead of XARGCASEMATCH.
69849
69850         * lib/xmalloc.c: Change compile-time error message. Add comment about
69851         required autoconf version.
69852
69853 2002-11-20  Paul Eggert  <eggert@twinsun.com>
69854
69855         Merge argmatch cleanups from Bison.  Assume C89.
69856
69857         * lib/argmatch.c: Include config.h here, not in argmatch.h.
69858         Include stdlib.h, for EXIT_FAILURE.
69859         Always include <string.h>, since we assume C89.
69860         (EXIT_FAILURE): Remove pre-C89 bug workaround.
69861         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
69862         Include <stddef.h> instead, since it's all we need for size_t.
69863         (PARAMS): Remove.  All uses removed.
69864         (ARRAY_CARDINALITY): Do not bother to #undef.
69865         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
69866         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69867         Remove unnecessary parentheses.
69868         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69869         Insert necessary parentheses.
69870         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
69871         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
69872
69873 2002-11-19  Bruno Haible  <bruno@clisp.org>
69874
69875         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
69876         * lib/mbswidth.h: Include <stddef.h>, for size_t.
69877
69878         * lib/mbswidth.h (PARAMS): Remove macro.
69879         (mbswidth, mbsnwidth): Use ANSI C function declarations.
69880         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
69881
69882         * lib/gcd.h (PARAMS): Remove macro.
69883         (gcd): Use ANSI C function declarations.
69884         * lib/gcd.c (gcd): Likewise.
69885
69886 2002-11-15  Bruno Haible  <bruno@clisp.org>
69887
69888         * lib/strcspn.c: Include <stddef.h>.
69889         (strcspn): Use ANSI C function declaration. Change return type to
69890         size_t. Use NULL.
69891         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
69892         (strpbrk): Use NULL.
69893         * lib/strpbrk.h (PARAMS): Remove macro.
69894         (strpbrk): Use ANSI C function declaration.
69895         * lib/strstr.c: Don't include <sys/types.h>.
69896         * lib/strstr.h (PARAMS): Remove macro.
69897         (strstr): Use ANSI C function declarations.
69898
69899 2002-11-14  Karl Berry  <karl@gnu.org>
69900
69901         * config/mkinstalldirs: `do' on separate line, instead of
69902         `for var; do'.
69903
69904 2002-11-06  Bruno Haible  <bruno@clisp.org>
69905
69906         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
69907         * lib/gcd.c (gcd): Likewise.
69908
69909 2002-11-05  Bruno Haible  <bruno@clisp.org>
69910
69911         * lib/gcd.h: New file, from gettext-0.11.5.
69912         * lib/gcd.c: New file, from gettext-0.11.5.
69913
69914 2002-11-05  Bruno Haible  <bruno@clisp.org>
69915
69916         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69917         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69918         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69919         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69920
69921         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
69922         <libintl.h>.
69923         * lib/makepath.c: Include gettext.h instead of <locale.h> and
69924         <libintl.h>.
69925
69926         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
69927         * lib/human.c: Include gettext.h instead of <libintl.h>.
69928         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
69929         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
69930         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
69931         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
69932         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
69933         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
69934         (textdomain): Remove definition.
69935         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
69936
69937         * lib/long-options.c: Remove include of <libintl.h> and definition of
69938         _.
69939         * lib/same.c: Remove include of <libintl.h> and definition of _.
69940
69941 2002-11-04  Owen Taylor  <otaylor@redhat.com>
69942
69943         * lib/config.charset: A few additions for Solaris.
69944
69945 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
69946
69947         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
69948         * lib/localcharset.c (locale_charset): Declare as extern "C".
69949
69950 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
69951
69952         * lib/config.charset: msdos in uk_UA uses CP1125.
69953
69954 2002-11-04  Bruno Haible  <bruno@clisp.org>
69955
69956         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
69957         * lib/strcase.h: New file, from GNU gettext-0.11.5.
69958         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
69959         * lib/strstr.h: New file, from GNU gettext-0.11.5.
69960         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
69961
69962 2002-11-04  Bruno Haible  <bruno@clisp.org>
69963
69964         * lib/localcharset.c (locale_charset): Don't return an empty string.
69965
69966 2002-11-04  Bruno Haible  <bruno@clisp.org>
69967
69968         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
69969         aliases.
69970
69971 2002-11-04  Bruno Haible  <bruno@clisp.org>
69972
69973         * lib/config.charset: Update for newest glibc. Add canonical names
69974         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
69975
69976 2002-11-04  Bruno Haible  <bruno@clisp.org>
69977
69978         * lib/config.charset: Add support for NetBSD.
69979
69980 2002-11-04  Bruno Haible  <bruno@clisp.org>
69981
69982         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
69983
69984 2002-11-01  Bruno Haible  <bruno@clisp.org>
69985
69986         * configure.in: Add AC_CONFIG_AUX_DIR call.
69987         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
69988         test/Makefile.
69989         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
69990
69991 2002-09-28  Karl Berry  <karl@gnu.org>
69992
69993         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
69994         installed automake until the next release, since changes have been
69995         made.
69996
69997 2002-09-25  Karl Berry  <karl@gnu.org>
69998
69999         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70000         * lib/getopt*: copy from libc/posix.
70001         * lib/gettext.h: copy from gettext.
70002         * lib/.cppi-disable: add strdup.c, gettext.h.
70003
70004 2002-09-25  Karl Berry  <karl@gnu.org>
70005
70006         * config/srclist.txt: enable gettext.h check.
70007         * config/config.{guess,sub}: update from prep.
70008         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70009                 from automake 1.6.3.
70010         See srclist*.
70011
70012 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70013
70014         * regex.c (PATFETCH): Remove the translating fetch.
70015         (PATFETCH_RAW): Rename to PATFETCH.
70016         (set_image_of_range): New fun.
70017         (SET_RANGE_TABLE_WORK_AREA): Use it.
70018         (regex_compile): Don't translate the pattern chars so eagerly.
70019         Only do it when inserting an `exactn' bytecode or when handling
70020         a char-range.
70021         (mutually_exclusive_p): Avoid empty statement.
70022
70023 2002-07-06  Jim Meyering  <meyering@lucent.com>
70024
70025         * m4/README: Don't mention Makefile.am.in.
70026         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70027
70028 2002-07-01  Jim Meyering  <meyering@lucent.com>
70029
70030         * lib/c-stack.c: Include sys/time.h.
70031         From Volker Borchert.
70032
70033 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70034
70035         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70036
70037 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70038
70039         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70040         New macro.  Use it uniformly instead of
70041         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70042         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70043         reported by Vin Shelton.
70044
70045 2002-06-22  Paul Eggert  <eggert@twinsun.com>
70046
70047         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
70048         Do not assume SA_SIGINFO behavior.
70049         Bug reported by Jim Meyering on NetBSD 1.5.2.
70050
70051 2002-06-22  Jim Meyering  <meyering@lucent.com>
70052
70053         * m4/c-stack.m4: New file, from diffutils-2.8.2.
70054         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
70055
70056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
70057         now that configure.ac uses AC_GNU_SOURCE.
70058         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
70059         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
70060
70061         Update to latest tools.  Suggestions from Paul Eggert.
70062         * m4/stdbool.m4: New file, from diffutils-2.8.2.
70063         * m4/gnu-source.m4: Update from diffutils-2.8.2.
70064         * m4/fnmatch.m4: Likewise.
70065         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70066         to AC_HEADER_STDBOOL
70067
70068 2002-06-22  Jim Meyering  <meyering@lucent.com>
70069
70070         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70071         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70072
70073 2002-06-22  Jim Meyering  <meyering@lucent.com>
70074
70075         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70076
70077         * lib/exitfail.c, exitfail.h: Likewise.
70078         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70079
70080         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70081         of fnmatch.h.
70082         (EXTRA_DIST): Add fnmatch_loop.c.
70083         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70084
70085         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70086         * lib/fnmatch.c: Update from diffutils-2.8.2.
70087         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70088         * lib/fnmatch.h: Remove file.
70089
70090 2002-06-21  Jim Meyering  <meyering@lucent.com>
70091
70092         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70093         * m4/mbrtowc.m4: Likewise.
70094
70095         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70096         * m4/mbswidth.m4: Reflect name change:
70097         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70098         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70099
70100         * m4/lib-link.m4: Update from gettext-0.11.2.
70101         * m4/gettext.m4: Likewise.
70102
70103         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70104         From Alfred M. Szmidt.
70105
70106 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70107
70108         * lib/file-type.h: Report an error if neither S_ISREG nor
70109         S_IFREG is defined, instead of using a test specific to glibc
70110         2.2.  This should be safe, since POSIX requires S_ISREG and
70111         Unix Version 7 had S_IFREG.  We don't need to check for
70112         <sys/types.h> since we don't use any symbols that it defines.
70113
70114 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70115
70116         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70117         $@-t, so that each temporary file name is unique and valid in the first
70118         8 characters, for operation under DOS.
70119
70120 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70121
70122         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70123
70124 2002-06-15  Jim Meyering  <meyering@lucent.com>
70125
70126         Work even with DJGPP 2.03, which lacks support for symlinks.
70127         From Richard Dawe.
70128         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70129         is defined.
70130         * lib/lchown.c (S_ISLNK): Likewise.
70131
70132 2002-06-15  Jim Meyering  <meyering@lucent.com>
70133
70134         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70135         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70136         have been included before this file.
70137
70138 2002-06-14  Jim Meyering  <meyering@lucent.com>
70139
70140         * lib/file-type.h: Use the version from diffutils-2.8.2.
70141         * lib/file-type.c: Likewise.
70142
70143 2002-06-07  Jim Meyering  <meyering@lucent.com>
70144
70145         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70146         They're needed at least for NetBSD 1.5.2.
70147         ($statxfs_includes): Include those same headers.
70148         ($statxfs_includes): Include sys/vfs.h if available.
70149         ($statxfs_includes): Likewise for sys/statvfs.h.
70150         Check for the following members in both structs statfs and statvfs:
70151         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70152
70153 2002-06-01  Jim Meyering  <meyering@lucent.com>
70154
70155         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70156         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70157
70158 2002-05-28  Jim Meyering  <meyering@lucent.com>
70159
70160         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70161         Reported by Volker Borchert.
70162
70163 2002-05-27  Jim Meyering  <meyering@lucent.com>
70164
70165         Fix a problem seen only on nonconforming systems whereby ls.c's
70166         use of localtime, and then of gettimeofday would cause trouble:
70167         the localtime call used to initialize rpl_gettimeofday's save
70168         mechanism would clobber ls's current local time information so
70169         that in any long listing the first file would always be listed
70170         with date 1970-01-01.  Analysis by Volker Borchert.
70171
70172         * lib/gettimeofday.c (localtime): Undefine.
70173         (rpl_localtime): New function.
70174
70175 2002-05-27  Jim Meyering  <meyering@lucent.com>
70176
70177         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70178         localtime.
70179
70180         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70181         use the replacement function; it wouldn't resolve at link time.
70182         Reported by Volker Borchert.
70183
70184 2002-05-22  Jim Meyering  <meyering@lucent.com>
70185
70186         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70187         file-type.h.
70188         * lib/file-type.h: New file.
70189         * lib/file-type.c (file_type): New file/function.  Extracted from
70190         diffutils.
70191
70192 2002-04-30  Jim Meyering  <meyering@lucent.com>
70193
70194         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70195
70196 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70197
70198         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70199
70200 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70201
70202         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70203         Do not check for alloca.h (no longer used) or stdbool.h (was never
70204         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70205
70206 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70207
70208         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70209
70210 2002-04-29  Jim Meyering  <meyering@lucent.com>
70211
70212         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70213         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70214         Use AC_FUNC_STRNLEN here instead.
70215
70216         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70217         With autoconf-2.53a, it's part of AC_PROG_CC.
70218
70219 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70220
70221         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70222         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70223
70224 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70225
70226         * lib/sig2str.h, lib/sig2str.c: New files.
70227         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70228
70229 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70230
70231         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70232         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70233         of 127, since 64 is the largest conceivable number for ancient
70234         nonstandard hosts.
70235         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70236
70237 2002-04-28  Jim Meyering  <meyering@lucent.com>
70238
70239         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70240
70241 2002-04-24  Jim Meyering  <meyering@lucent.com>
70242
70243         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70244         (jm_PREREQ): Use it.
70245
70246         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70247         mach/mach.h fcntl.h.
70248         Check for this function: setlocale.
70249
70250 2002-04-24  Jim Meyering  <meyering@lucent.com>
70251
70252         * lib/gettext.h: New file, from Gettext.
70253         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70254         (libfetish_a_SOURCES): Add gettext.h.
70255
70256 2002-04-16  Jim Meyering  <meyering@lucent.com>
70257
70258         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70259         ut_pid, ut_id, ut_exit.
70260
70261 2002-04-16  Jim Meyering  <meyering@lucent.com>
70262
70263         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70264         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70265         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70266
70267 2002-04-12  Jim Meyering  <meyering@lucent.com>
70268
70269         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70270         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70271         existence of the getmntinfo function.  Needed for Darwin 5.3.
70272
70273         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70274         This is necessary at least on Darwin 5.3.
70275
70276         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70277         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70278         strnlen.o in the library, and that makes some versions of ranlib
70279         object.
70280
70281 2002-04-12  Jim Meyering  <meyering@lucent.com>
70282
70283         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70284
70285 2002-04-09  Jim Meyering  <meyering@lucent.com>
70286
70287         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70288         to be more precise.  Rather than saying we're checking whether the
70289         function `works', say what we're testing.
70290         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70291         Reported by Bruno Haible.
70292
70293 2002-03-10  Jim Meyering  <meyering@lucent.com>
70294
70295         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70296         Suggestion from Santiago Vila.
70297
70298 2002-03-08  Jim Meyering  <meyering@lucent.com>
70299
70300         * lib/rename.c: Mention that this wrapper is needed also on
70301         mips-dec-ultrix4.4 systems.
70302
70303 2002-03-02  Jim Meyering  <meyering@lucent.com>
70304
70305         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70306         not HAVE_CLOCK_SETTIME.
70307
70308 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70309
70310         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70311         Check for clock_settime.
70312
70313 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70314
70315         * lib/nanosleep.h: Rename to....
70316         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70317
70318         * lib/gettime.c: New file.
70319         * lib/settime.c: New file.
70320         * lib/stime.c: Remove.
70321
70322         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70323         timespec.h.  Remove nanosleep.h.
70324
70325 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70326
70327         * m4/acl.m4: New file.
70328         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70329         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70330
70331 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70332
70333         * lib/acl.c, lib/acl.h: New files.
70334         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70335
70336 2002-02-24  Jim Meyering  <meyering@lucent.com>
70337
70338         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70339         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70340         cause trouble.  Reported by Nelson Beebe.
70341
70342 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70343
70344         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70345         compilers that don't know that xalloc_die never returns.
70346
70347 2002-02-20  Jim Meyering  <meyering@lucent.com>
70348
70349         * lib/getdate.c: Regenerate using bison-1.33.
70350
70351 2002-02-17  Jim Meyering  <meyering@lucent.com>
70352
70353         * config/config.guess (main): Don't use `head -1'; it's no longer
70354         portable. Use `sed 1q' instead.
70355
70356 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70357
70358         * m4/codeset.m4: Upgrade to gettext-0.11.
70359         * m4/gettext.m4: Upgrade to gettext-0.11.
70360         * m4/glibc21.m4: Upgrade to gettext-0.11.
70361         * m4/iconv.m4: Upgrade to gettext-0.11.
70362         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70363         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70364         * m4/lib-ld.m4: New file, from gettext-0.11.
70365         * m4/lib-link.m4: New file, from gettext-0.11.
70366         * m4/lib-prefix.m4: New file, from gettext-0.11.
70367         * m4/progtest.m4: Upgrade to gettext-0.11.
70368
70369 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70370
70371         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70372         (jm_PREREQ): Use it.
70373
70374 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70375
70376         * lib/posixver.c, lib/posixver.h: New files.
70377         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70378
70379 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70380             Bruno Haible  <bruno@clisp.org>
70381
70382         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
70383         (fwrite_success_callback): New declaration.
70384         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
70385         print_unicode_char. Call failure callback instead of error.
70386         (fwrite_success_callback): New function.
70387         (exit_failure_callback): New function.
70388         (fallback_failure_callback): New function.
70389         (print_unicode_char): Call unicode_to_mb.
70390
70391 2002-01-26  Jim Meyering  <meyering@lucent.com>
70392
70393         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
70394         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
70395
70396 2002-01-26  Jim Meyering  <meyering@lucent.com>
70397
70398         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
70399
70400 2002-01-22  Paul Eggert  <eggert@twinsun.com>
70401
70402         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
70403
70404 2002-01-22  Jim Meyering  <meyering@lucent.com>
70405
70406         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
70407         Otherwise, some versions of automake would omit the rule that makes
70408         Makefile from Makefile.in.
70409
70410 2002-01-21  Paul Eggert  <eggert@twinsun.com>
70411
70412         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
70413         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70414         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
70415         (memcoll): Set errno to zero if there is no error.
70416
70417         * lib/quotearg.c (quotearg_buffer_restyled):
70418         Fix bug with quoting buffers containing NUL when backslashing escapes.
70419         This bug was exposed by the other changes in this patch.
70420         (quotearg_n_options): New arg ARGSIZE.
70421         All callers changed.
70422         (quoting_options_from_style): New function.
70423         (quotearg_n_style): Use it.
70424         (quotearg_n_style_mem): New function.
70425
70426         * lib/quotearg.h (quotearg_n_style_mem): New function.
70427
70428 2002-01-19  Jim Meyering  <meyering@lucent.com>
70429
70430         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
70431         Remove useless quotes: DF_PROG="df".
70432         * m4/strnlen.m4: New file.
70433
70434 2002-01-16  Paul Eggert  <eggert@twinsun.com>
70435
70436         * lib/backupfile.c (ISDIGIT): Comment fix.
70437         * lib/getdate.y (ISDIGIT): Likewise.
70438         * lib/posixtm.c (ISDIGIT, year): Likewise.
70439         * lib/strverscmp.c (ISDIGIT): Likewise.
70440         * lib/userspec.c (ISDIGIT): Likewise.
70441
70442 2002-01-16  Jim Meyering  <meyering@lucent.com>
70443
70444         * lib/getdate.y: Add three semicolons, each just before a closing
70445         brace. Bison (as of version 1.31) no longer papers over that mistake.
70446
70447 2002-01-05  Jim Meyering  <meyering@lucent.com>
70448
70449         * lib/version-etc.c (version_etc_copyright): Update copyright year.
70450
70451 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70452
70453         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70454         not silently exit merely because the output buffer happens to
70455         have nothing pending.
70456
70457 2001-12-18  Paul Eggert  <eggert@twinsun.com>
70458
70459         See the big note in ../ChangeLog.
70460         * lib/human.c (suffixes): Prefer K to k for 1024.
70461         (generate_suffix_backwards): New function.
70462         (human_readable_inexact): Use it.
70463         * lib/xstrtol.c (__xstrtol): If there is no number but there
70464         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
70465         Accept 'K' as well as 'k'.
70466
70467 2001-12-15  Jim Meyering  <meyering@lucent.com>
70468
70469         * lib/regex.h (__restrict_arr): Update from libc.
70470
70471         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
70472         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
70473         (STREQ): Define.
70474
70475 2001-12-14  Jim Meyering  <meyering@lucent.com>
70476
70477         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
70478         Suggestion from Bruno Haible.
70479
70480 2001-12-10  Jim Meyering  <meyering@lucent.com>
70481
70482         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
70483         xrealloc, Instead, include "xalloc.h".
70484         (initbuffer): Don't cast xmalloc return value to char*.
70485         (readline): Reword comment.
70486         Don't cast xrealloc return value to char*
70487         Return NULL, not 0.
70488
70489 2001-12-09  Jim Meyering  <meyering@lucent.com>
70490
70491         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
70492         about `signed and unsigned type in conditional expression'.
70493         * lib/posixtm.c (posix_time_parse): Likewise.
70494
70495         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
70496
70497         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
70498         to avoid a pedantic warning.
70499
70500         * lib/getstr.c: Don't include assert.h.
70501         (getstr): Remove warning-evoking assertions.
70502         Return -1 if offset parameter is out of bounds.
70503         Change the type of a local from int to size_t.
70504
70505         * lib/strftime.c (my_strftime_localtime_r): Include this function
70506         definition in the `#if ! HAVE_TM_GMTOFF' block.
70507
70508         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
70509         Include xalloc.h instead.
70510
70511 2001-12-02  Jim Meyering  <meyering@lucent.com>
70512
70513         * lib/tempname.c: Don't declare getenv, thus reverting the change of
70514         2001-11-18.  It's no longer necessary, now that stdlib.h is always
70515         included.
70516
70517         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
70518         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
70519
70520 2001-11-30  Akim Demaille  <akim@epita.fr>
70521
70522         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
70523         before being defined.
70524
70525 2001-11-27  Paul Eggert  <eggert@twinsun.com>
70526
70527         * lib/quotearg.h (quotearg_n, quotearg_n_style):
70528         First arg is int, not unsigned.
70529         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
70530         (SIZE_MAX, UINT_MAX): New macros.
70531         (quotearg_n_options): Abort if N is negative.
70532         Avoid overflow check on hosts where size_t is 64 bits and int
70533         is 32 bits, as overflow is impossible there.
70534         Fix off-by-one typo that caused unnecessary reallocation.
70535
70536 2001-11-27  Jim Meyering  <meyering@lucent.com>
70537
70538         * lib/tempname.c: Merge with version from libc.
70539         * lib/regex.c: Likewise.
70540
70541         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
70542         systems for which STDC_HEADERS is 0, it was not included, resulting in
70543         a warning about an integer-to-pointer conversion problem with getenv.
70544         Reported by Volker Borchert.
70545
70546 2001-11-26  Jim Meyering  <meyering@lucent.com>
70547
70548         * lib/gtod.h: Remove file.
70549         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
70550         * lib/gettimeofday.c: Don't include gtod.h.
70551         (GTOD_init): Remove function.
70552         (rpl_gettimeofday): Do its job here instead, rather than aborting.
70553         Suggestion from Volker Borchert.
70554
70555 2001-11-23  Jim Meyering  <meyering@lucent.com>
70556
70557         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
70558         it.
70559         * lib/hash.c (struct hash_table): Define it here instead.
70560
70561 2001-11-22  Jim Meyering  <meyering@lucent.com>
70562
70563         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
70564
70565 2001-11-20  Jim Meyering  <meyering@lucent.com>
70566
70567         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
70568         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
70569
70570 2001-11-19  Jim Meyering  <meyering@lucent.com>
70571
70572         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
70573         directory.  Use "conftestXXXXXX" as the template.
70574         Suggestion from Paul Eggert.
70575
70576         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
70577         immediately, so the test doesn't mistakenly hit the max-open-files
70578         limit.
70579
70580 2001-11-18  Paul Eggert  <eggert@twinsun.com>
70581
70582         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
70583         (TEMPORARIES): New macro.
70584         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
70585         removes an artificial limitation (e.g. HP-UX 10.20, where
70586         TMP_MAX is 17576).
70587
70588 2001-11-18  Jim Meyering  <meyering@lucent.com>
70589
70590         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
70591
70592 2001-11-18  Jim Meyering  <meyering@lucent.com>
70593
70594         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
70595         on SunOS 4.
70596
70597         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
70598         files will be created before anything else.
70599
70600 2001-11-17  Paul Eggert  <eggert@twinsun.com>
70601
70602         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
70603         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
70604
70605 2001-11-17  Jim Meyering  <meyering@lucent.com>
70606
70607         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
70608         Prompted by a report from Bob Proulx.
70609
70610         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
70611         Instead, require UTILS_FUNC_MKSTEMP.
70612
70613 2001-11-17  Jim Meyering  <meyering@lucent.com>
70614
70615         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
70616         Now, that's done as part of AC_FUNC_STRTOD.
70617
70618 2001-11-17  Jim Meyering  <meyering@lucent.com>
70619
70620         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
70621         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
70622         rather than group writable.  Patch by Juan F. Codagnone.
70623
70624         * lib/readtokens.c: Remove explicit declarations of xmalloc and
70625         xrealloc, Instead, include "xalloc.h".
70626
70627         * lib/mountlist.c: Include unlocked-io.h after all system headers.
70628         Remove explicit declarations of xmalloc, xrealloc,
70629         and xstrdup.  Instead, include "xalloc.h".
70630
70631         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
70632         unlocked-io.h.
70633         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
70634         Likewise.
70635         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
70636
70637         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
70638         Reported by Padraig Brady.
70639
70640         * lib/mkstemp.c: #undef mkstemp.
70641         Include config.h.
70642         (rpl_mkstemp): Rename from mkstemp.
70643         Protoize.
70644
70645 2001-11-16  Jim Meyering  <meyering@lucent.com>
70646
70647         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
70648         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
70649         determine the amount of total physical memory, use pstat_getstatic.
70650         HPUX-11 doesn't define _SC_PHYS_PAGES.
70651         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
70652         If sysconf couldn't be used to determine the amount of available
70653         physical memory, use both pstat_getstatic and pstat_getdynamic.
70654         Based on a patch from Bob Proulx.
70655
70656 2001-11-10  Jim Meyering  <meyering@lucent.com>
70657
70658         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
70659         (jm_PREREQ): Use it.
70660
70661 2001-11-09  Jim Meyering  <meyering@lucent.com>
70662
70663         * m4/jm-macros.m4: Require autoconf-2.52f.
70664         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
70665         Use these AC_-prefixed names, not the AM_-prefixed ones.
70666
70667         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
70668
70669 2001-11-05  Jim Meyering  <meyering@lucent.com>
70670
70671         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
70672
70673 2001-11-04  Jim Meyering  <meyering@lucent.com>
70674
70675         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
70676         $DEFS.
70677
70678 2001-11-03  Jim Meyering  <meyering@lucent.com>
70679
70680         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
70681         of AC_DEFUN.
70682
70683         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
70684         know the name of the variable in the macro definition.
70685
70686 2001-11-03  Jim Meyering  <meyering@lucent.com>
70687
70688         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
70689         in argmatch_to_argument call.
70690
70691         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
70692         argument.
70693
70694         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
70695         e.g., a fault due to an attempt to free a NULL pointer.
70696
70697 2001-11-01  Jim Meyering  <meyering@lucent.com>
70698
70699         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
70700         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
70701
70702 2001-11-01  Jim Meyering  <meyering@lucent.com>
70703
70704         * lib/dirfd.c, lib/dirfd.h: New files.
70705         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
70706
70707         * lib/hash.c (hash_print) [TESTING]: Clean up.
70708
70709 2001-10-22  Paul Eggert  <eggert@twinsun.com>
70710
70711         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
70712         to avoid a warning if -Wall.
70713
70714 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
70715
70716         * README: New file
70717         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
70718         (per RMS's instructions, this is now the canonical source)
70719         * lgpl/, gpl/: New directories.
70720
70721 2001-10-21  Paul Eggert  <eggert@twinsun.com>
70722
70723         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
70724
70725 2001-10-21  Jim Meyering  <meyering@lucent.com>
70726
70727         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
70728         this code would end up calling gettext even in packages built
70729         with --disable-nls.
70730         * lib/getopt.c (_): Likewise.
70731         * lib/regex.c (_): Likewise.
70732
70733 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70734
70735         * m4/error.m4 (jm_PREREQ_ERROR):
70736         Do not invoke AC_CHECK_FUNCS with strerror_r, as
70737         AC_FUNC_STRERROR_R does that.
70738         Check for strerror declaration.
70739
70740         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
70741         are supposed to have them these days.
70742         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
70743         Merge changes from latest Autoconf CVS.
70744         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
70745         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
70746         POSIX decided to standardize on the int flavor of strerror_r.
70747
70748 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70749
70750         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
70751         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
70752         Use strerror_r that is only a macro, even if it is not a function.
70753         (strerror): Check for HAVE_DECL_STRERROR before declaring.
70754         (private_strerror): Use prototypes, not old-style function definition.
70755         (print_errno_message): New function.
70756         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
70757         char*-flavored one.
70758         (error_tail, error, error_at_line): Use it.
70759
70760 2001-10-11  Jim Meyering  <meyering@lucent.com>
70761
70762         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
70763         and quote_n (1, ... to avoid clobbering a buffer.
70764
70765 2001-10-05  Jim Meyering  <meyering@lucent.com>
70766
70767         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
70768         hash-pjw.h.
70769         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
70770         * lib/hash-pjw.h: New file.
70771
70772 2001-09-30  Jim Meyering  <meyering@lucent.com>
70773
70774         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
70775         `struct fsstat' has the `f_fstypename' member.
70776         Use that to define FS_TYPE, which is now used to make
70777         the getfsstat link test tighter.
70778
70779 2001-09-30  Jim Meyering  <meyering@lucent.com>
70780
70781         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
70782         Include <sys/ucred.h>, for Apple Darwin.
70783         Include sys/mount.h and sys/fs_types.h only if available.
70784         (FS_TYPE): Define.
70785         (read_filesystem_list): Use FS_TYPE.
70786
70787 2001-09-29  Paul Eggert  <eggert@twinsun.com>
70788
70789         * lib/exclude.c (excluded_filename): 0 -> false, since it's
70790         a boolean context.
70791
70792 2001-09-29  Jim Meyering  <meyering@lucent.com>
70793
70794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70795         [one-argument getmntent function]): Include stdio.h before mntent.h.
70796         SunOS 4.1.x needs it for the declaration of `FILE'.
70797         Patch by Volker Borchert.
70798
70799         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70800         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
70801         sys/fs_types.h, and make the link-test for getfsstat guard #include
70802         directives with appropriate #if HAVE_*_H tests so that we can
70803         detect getfsstat on Apple Darwin1.3.7 systems.
70804         Reported by Nelson Beebe.
70805         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
70806
70807 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70808
70809         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70810         #defines strtoimax.  Also treat the other strto* functions
70811         like strtoimax.
70812
70813         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
70814         Check for strtoul and strtoumax,
70815         as those declarations are made even in the signed case.
70816         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
70817         Likewise, for strtol and strtoimax.
70818
70819 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70820
70821         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70822         #defines strtoimax.  Also treat the other strto* functions
70823         like strtoimax.
70824
70825         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
70826         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
70827         (strtoimax, strtoumax): Do not declare if already defined as a macro.
70828
70829 2001-09-26  Jim Meyering  <meyering@lucent.com>
70830
70831         Most macros in unlocked-io.h had the wrong number of arguments.
70832         * lib/gen-uio: New script.
70833         (USE_UNLOCKED_IO): Define to 1 if not already defined.
70834         * lib/unlocked-io.hin: Remove file.
70835         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
70836         rather than trying to embed it here.
70837         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
70838         Reported by Padraig Brady.
70839
70840 2001-09-25  Volker Borchert  <bt@teknon.de>
70841
70842         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
70843         `result'.
70844
70845 2001-09-24  Jim Meyering  <meyering@lucent.com>
70846
70847         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
70848
70849 2001-09-23  Jim Meyering  <meyering@lucent.com>
70850
70851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
70852         instead of the mere test for existence of mntent.h.  The latter
70853         would get a false-positive on AIX 3.4 systems.
70854         In the outer getmntent if-block, don't die if neither of the getmntent
70855         tests succeeds.  Instead, just fall through and continue with the
70856         remaining tests.
70857
70858 2001-09-23  Jim Meyering  <meyering@lucent.com>
70859
70860         * lib/mountlist.c: Remove useless parentheses in #if directives.
70861         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
70862         the deprecated MOUNTED symbol is no longer defined in mntent.h.
70863
70864 2001-09-22  Jim Meyering  <meyering@lucent.com>
70865
70866         * m4/gettext.m4: New file.  From gettext.
70867         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
70868         * m4/progtest.m4: Likewise
70869         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
70870         * m4/glibc21.m4: Likewise.
70871
70872         * m4/libintl.m4: Remove.  No longer used.
70873
70874 2001-09-22  Jim Meyering  <meyering@lucent.com>
70875
70876         * lib/localcharset.c: Update from latest gettext.
70877         * lib/config.charset: Likewise.
70878
70879 2001-09-20  Jim Meyering  <meyering@lucent.com>
70880
70881         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
70882         strtoimax.
70883         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
70884         strtoumax.
70885
70886 2001-09-20  Jim Meyering  <meyering@lucent.com>
70887
70888         * lib/xstrtol.c (strtoimax): Guard declaration with
70889         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
70890         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
70891         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
70892         (strtoumax): Likewise, for completeness (it wasn't necessary).
70893
70894 2001-09-17  Paul Eggert  <eggert@twinsun.com>
70895
70896         * lib/strtoimax.c (HAVE_LONG_LONG):
70897         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
70898         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
70899         to work around bug in IBM C compiler.
70900
70901 2001-09-17  Jim Meyering  <meyering@lucent.com>
70902
70903         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
70904         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
70905         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
70906         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
70907         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
70908         whenever the right hand side need not be expanded by the shell.
70909
70910 2001-09-16  Paul Eggert  <eggert@twinsun.com>
70911
70912         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
70913         library.  It's not correct, as some older glibcs are buggy.
70914         fnmatch wasn't fixed until glibc 2.2.
70915
70916         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
70917         special shell magic here.
70918
70919 2001-09-16  Jim Meyering  <meyering@lucent.com>
70920
70921         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
70922         * m4/jm-macros.m4: Require it.
70923
70924 2001-09-16  Jim Meyering  <meyering@lucent.com>
70925
70926         * lib/mkdir.c: New file.
70927
70928 2001-09-15  Jim Meyering  <meyering@lucent.com>
70929
70930         * m4/jm-macros.m4: Check for help2man.
70931
70932 2001-09-11  Jim Meyering  <meyering@lucent.com>
70933
70934         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
70935         The body, by Paul Eggert, was moved here from configure.in.
70936         * m4/jm-macros.m4: Require UTILS_HOST_OS.
70937
70938 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70939
70940         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
70941         (jm_PREREQ): Use it.
70942
70943 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70944
70945         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
70946         Use ssize_t, not int, to store result of readlink.
70947         Check for ssize_t overflow as well as size_t overflow,
70948         as POSIX says the result of readlink is implementation-defined
70949         when ssize_t overflows.
70950         Remove unnecessary cast to char*.
70951         Use free+malloc instead of realloc, as the storage doesn't need
70952         to be preserved and it's clearer and can be more efficient that way.
70953         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
70954         * lib/xreadlink.h (xreadlink): Update prototype.
70955
70956 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70957
70958         * lib/xgetcwd.c: Revert some of the previous change; intead,
70959         fix the HAVE_GETCWD_NULL code to behave more like the
70960         !HAVE_GETCWD_NULL code used to.
70961
70962         Include "xalloc.h".
70963         (xgetcwd): Do not return NULL when memory is exhausted; instead,
70964         invoke xalloc_die.
70965
70966 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70967
70968         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
70969         sys/param.h, as pathmax.h includes them.
70970
70971 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70972
70973         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
70974         (jm_PREREQ_XGETCWD): New macro.
70975
70976         * m4/getcwd.m4: New file.
70977
70978 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70979
70980         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
70981         like the HAVE_GETCWD_NULL code.
70982         Include pathmax.h if not HAVE_GETCWD.
70983         Do not include xalloc.h.
70984         (INITIAL_BUFFER_SIZE): New symbol.
70985         Do not use xmalloc / xrealloc, since the caller is responsible for
70986         handling errors.  Preserve errno around `free' during failure.
70987         Do not overrun buffer when using getwd.
70988
70989 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70990
70991         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
70992         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
70993         getcwd (NULL, 0).
70994
70995 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70996
70997         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
70998         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
70999         spotted by Jim Meyering.
71000
71001 2001-09-03  Jim Meyering  <meyering@lucent.com>
71002
71003         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71004         failure.
71005
71006 2001-09-02  Jim Meyering  <meyering@lucent.com>
71007
71008         * lib/error.c: Update from GNU libc.
71009
71010 2001-09-01  Jim Meyering  <meyering@lucent.com>
71011
71012         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71013         Used by df.
71014
71015 2001-09-01  Jim Meyering  <meyering@lucent.com>
71016
71017         * lib/xreadlink.c: New file.
71018         * lib/xreadlink.h: New file.
71019         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71020         xreadlink.h.
71021
71022         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71023         doesn't conflict with sparc Solaris 7's definition in
71024         /usr/include/sys/int_types.h.
71025
71026         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71027         files.
71028         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71029         and strncasecmp as r-values.  Unixware didn't have declarations.
71030
71031 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71032
71033         * lib/xstrtol.h: Add copyright notice.
71034         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71035         LONGINT_INVALID_SUFFIX_CHAR.
71036
71037 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71038
71039         * lib/xstrtol.c (strtoimax): New decl.
71040
71041 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71042
71043         * lib/xgetcwd.c: Don't include pathmax.h.
71044         Include stdlib.h and unistd.h if available.
71045         Include xalloc.h.
71046         (xmalloc, xstrdup, free): Remove decls.
71047         (xgetcwd): Don't assume sizes fit in unsigned.
71048         Check for overflow when computing sizes.
71049         Simplify reallocation code.
71050
71051 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71052
71053         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
71054         a directory's st_size can have an arbitrary value, so the old
71055         usage could waste an arbitrary amount of memory.  All uses
71056         changed.
71057         * lib/savedir.h: Update prototype.
71058
71059 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71060
71061         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
71062
71063         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
71064         old strtoimax.c.
71065
71066         Also, make the following further changes to make this file's
71067         configuration more similar to that of strtol.c:
71068         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71069         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71070         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71071         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71072         changed to signed values.
71073
71074         And make the following changes as well:
71075         Fix copyright notice, as 1999 was missing.
71076         (verify): New macro.
71077         (strtoimax): Check sizes at compile-time, not run-time.
71078         Prefer strtol to strtoll if both work.
71079         (main): Remove; it was not that useful and was a pain to maintain.
71080
71081         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71082
71083 2001-08-31  Jim Meyering  <meyering@lucent.com>
71084
71085         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71086         Use an initial, malloc'd, buffer of length 128 rather than
71087         a statically allocated one of length 1024.
71088
71089 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71090
71091         Simplify code, partly by assuming autoconf 2.52 semantics.
71092
71093         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71094
71095         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71096         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71097         All uses removed.
71098         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71099         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71100         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71101         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71102         jm_AC_HEADER_INTTYPES_H.
71103         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71104
71105         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71106
71107         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71108         Quote first arg of AC_DEFUN.
71109         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71110         since they are needed to parse the include file even if we need
71111         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71112         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71113         but with opposite signedness.
71114
71115 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71116
71117         Merge 'exclude' changes from tar 1.13.22.
71118         This fixes one or two unlikely storage allocation overflow bugs,
71119         but doesn't change user-visible behavior otherwise.
71120
71121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71122
71123         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71124         (jm_PREREQ_EXCLUDE): New macro.
71125
71126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71127
71128         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71129         tm to be declared.
71130
71131 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71132
71133         * lib/hash.c: Remove '2001' from copyright notice.
71134
71135 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71136
71137         * lib/full-write.h: New file.
71138         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71139         * lib/full-write.c: Correct credits, as cccp.c no longer
71140         exists and anyway it was so heavily changed from the old cccp
71141         code as to be unrecognizable.  Include full-write.h.
71142         (full_write) Return size_t, with short writes meaning failure.
71143         All callers changed.  This fixes a bug with large buffers
71144         on 64-bit hosts.
71145         * lib/utime.c: Include full-write.h.
71146
71147 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71148
71149         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71150         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71151         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71152         Include if available.
71153         (<xalloc.h>): Include
71154         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71155         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71156         collide with FNM macros.
71157         (struct patopts): New struct.
71158         (struct exclude): Use it, as exclude patterns now come with options.
71159         (new_exclude): Support above changes.
71160         (new_exclude, add_exclude_file):
71161         Initial size must now be a power of two to simplify overflow checking.
71162         (free_exclude, fnmatch_no_wildcards): New function.
71163         (excluded_filename): No longer requires options arg, as the options
71164         are determined by add_exclude.  Now returns bool, not int.
71165         (excluded_filename, add_exclude):
71166         Add support for the fancy new exclusion options.
71167         (add_exclude, add_exclude_file): Now takes int options arg.
71168         Check for arithmetic overflow when computing sizes.
71169         (add_exclude_file): xrealloc might modify errno, so don't
71170         realloc until after errno might be used.
71171
71172         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71173         New macros.
71174         (free_exclude): New decl.
71175         (add_exclude, add_exclude_file): Now takes int options arg.
71176         (excluded_filename): No longer requires options arg, as the options
71177         are determined by add_exclude.  Now returns bool, not int.
71178
71179 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71180
71181         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71182
71183 2001-08-27  Jim Meyering  <meyering@lucent.com>
71184
71185         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71186
71187         * lib/version-etc.c (N_): Remove definition.
71188         Revert most of last change.
71189         Instead, simply don't mark the `Copyright...' string for translation.
71190         Based on advice from Paul Eggert.
71191
71192         * lib/strtoxmax.c: Tweak comment.
71193
71194 2001-08-26  Jim Meyering  <meyering@lucent.com>
71195
71196         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71197
71198         * m4/xstrtoimax.m4: New file.
71199         * m4/xstrtoumax.m4: Add comments explaining why we
71200         AC_REPLACE_FUNCS(strtol).
71201
71202 2001-08-26  Jim Meyering  <meyering@lucent.com>
71203
71204         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71205         of copyright with `%s' so translators don't get an untranslated
71206         message in 2002.
71207         (COPYRIGHT_YEAR): Define.
71208         (version_etc): Use fprintf rather than fputs.
71209         Suggestion from Ulrich Drepper.
71210
71211         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71212
71213         * lib/strtoll.c: New file, from GNU libc.
71214         * lib/xstrtoimax.c: New file.
71215
71216         * lib/xstrtol.h: Add xstrtoimax.
71217         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71218         * lib/strtoimax.c: New file.  Likewise, but first define
71219         STRTOUXMAX_SIGNED.
71220
71221         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71222         ...
71223         * lib/strtoxmax.c: ... then renamed to this.
71224
71225 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71226
71227         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71228         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71229         (jm_AC_TYPE_INTMAX_T): New macro.
71230         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71231
71232         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71233
71234         * m4/longlong.m4: Renamed from ulonglong.m4.
71235         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71236         * m4/uintmax_t.m4: Removed.
71237
71238 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71239
71240         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71241         Port to Solaris 8, where 'sed' requires a space after the 'r'
71242         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71243         Redirect output to $tmp just once.
71244
71245 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71246
71247         * lib/addext.c (<errno.h>): Include.
71248         (errno): Declare if not defined.
71249         (addext): Work correctly when pathconf returns -1 and leaves
71250         errno alone because there is no limit.  Also, work even if
71251         pathconf returns a value greater than SIZE_MAX.
71252
71253 2001-08-12  Jim Meyering  <meyering@lucent.com>
71254
71255         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71256         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71257         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71258         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71259         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71260         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71261         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71262         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71263         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71264         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71265         utime.m4, utimes.m4, xstrtoumax.m4:
71266         Quote the first argument in each use of AC_DEFUN.
71267
71268 2001-08-12  Jim Meyering  <meyering@lucent.com>
71269
71270         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71271         Simply `return getcwd (NULL, 0);'.
71272         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71273         Use 1300 as initial value for length, not PATH_MAX.
71274
71275         * lib/pathmax.h: Clean up cpp syntax.
71276
71277 2001-08-12  Jim Meyering  <meyering@lucent.com>
71278
71279         * lib/gettimeofday.c: New file.
71280         * lib/gtod.h: New file.
71281         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71282
71283 2001-08-05  Jim Meyering  <meyering@lucent.com>
71284
71285         * m4/jm-macros.m4: Require autoconf-2.52.
71286
71287 2001-08-04  Jim Meyering  <meyering@lucent.com>
71288
71289         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71290         stmt, to get in sync with glibc.
71291
71292 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71293
71294         The following changes are from gettext 0.10.39 as maintained by
71295         Bruno Haible.
71296
71297         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71298         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71299         with inverted sense.  All uses changed.
71300
71301         * lib/mbswidth.c: Don't include <limits.h>.
71302         Include <stdlib.h> and <string.h> unconditionally.
71303         (iswcntrl, mbsinit, ISCNTRL): New macros.
71304         (mbsnwidth): Use K&R style function declarations.
71305         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71306         can optimize it when MB_CUR_MAX == 1.
71307         The width of control characters is zero, not 1.
71308
71309 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71310
71311         The following changes are from gettext 0.10.39 as maintained by
71312         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71313
71314         * m4/codeset.m4: Upgrade to serial AM1.
71315         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71316         all uses changed.  Quote first arg of AC_DEFUN.
71317         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71318
71319         * m4/iconv.m4: Upgrade to serial AM2.
71320         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71321         Add --with-libconv-prefix.
71322         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71323         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71324         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71325         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71326         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71327
71328         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71329         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71330         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71331         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71332         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71333         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71334         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71335         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71336         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71337
71338         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71339         string.h any more.
71340
71341         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71342         not the default value.
71343
71344         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71345         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71346         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71347         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71348         Also check for iswcntrl, used for wcwidth fallback.
71349         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71350         to Autoconf 2.13.
71351
71352 2001-08-03  Jim Meyering  <meyering@lucent.com>
71353
71354         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71355         as it was in the original.  Reported by Paul Eggert.
71356
71357 2001-07-16  Jim Meyering  <meyering@lucent.com>
71358
71359         * m4/gettimeofday.m4: New file.
71360         Prompted by a report from Bernhard Baehr.
71361
71362 2001-07-15  Jim Meyering  <meyering@lucent.com>
71363
71364         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71365         stuff. Now it's in ../Makefile.cfg.
71366
71367 2001-07-15  Jim Meyering  <meyering@lucent.com>
71368
71369         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71370         (BUILT_SOURCES): Add unlocked-io.h.
71371         (io_functions): Define.
71372         (unlocked-io.h): New rule.
71373         (DISTCLEANFILES): Add unlocked-io.h.
71374         (all-local): Depend on unlocked-io.h, to ensure it is created.
71375
71376         * lib/unlocked-io.hin: New file
71377
71378         * lib/regex.c: Update from glibc.
71379
71380 2001-07-05  Jim Meyering  <meyering@lucent.com>
71381
71382         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
71383         recommendation.
71384         (libfetish_a_SOURCES): Put all .h files here instead.
71385         Remove a thus-exposed (better checks in automake) duplicate and
71386         two unnecessary .h files.
71387
71388 2001-07-04  Jim Meyering  <meyering@lucent.com>
71389
71390         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
71391         that generates jm-glibc-io.m4 so that it doesn't trigger any make
71392         distcheck failure.
71393
71394 2001-07-02  Jim Meyering  <meyering@lucent.com>
71395
71396         The following changes were prompted by suggestions from Bruno Haible.
71397
71398         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
71399         is now generated.
71400         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
71401         definition of EXTRA_DIST.
71402         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
71403         ensure that the generated file is created/updated whenever the list
71404         of $(unlocked_functions) is changed.
71405         (jm-glibc-io.m4): New rule.
71406         (unlocked-io.h): New rule -- currently unused.
71407
71408 2001-06-24  Jim Meyering  <meyering@lucent.com>
71409
71410         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
71411         unmatched right bracket, rather than kludging it with an extra,
71412         falsely-matching quote in a comment.  Patch by Akim Demaille.
71413
71414 2001-06-11  Jim Meyering  <meyering@lucent.com>
71415
71416         * lib/regex.c: Update from GNU libc.
71417
71418 2001-05-27  Jim Meyering  <meyering@lucent.com>
71419
71420         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
71421         Check for ut_type in struct utmp.
71422
71423 2001-05-27  Jim Meyering  <meyering@lucent.com>
71424
71425         * lib/readutmp.h (UT_TYPE): Define.
71426
71427 2001-05-24  Jim Meyering  <meyering@lucent.com>
71428
71429         * lib/argmatch.c: Include "quote.h".
71430         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
71431         quote function.  Reported by Göran Uddeborg.
71432
71433 2001-05-22  Jim Meyering  <meyering@lucent.com>
71434
71435         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
71436         now that we use the package-supplied version unconditionally.
71437         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
71438
71439 2001-05-21  Jim Meyering  <meyering@lucent.com>
71440
71441         * m4/regex.m4: Change a couple backticks to single quotes to avoid
71442         shell syntax errors.
71443
71444 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71445
71446         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
71447
71448 2001-05-20  Paul Eggert  <eggert@twinsun.com>
71449
71450         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71451         Don't bother to check library strftime, since
71452         we'll be using our own my_strftime function anyway.
71453         Define my_strftime instead of strftime.
71454
71455 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
71456
71457         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
71458         which is not yet declared.
71459
71460 2001-05-15  Jim Meyering  <meyering@lucent.com>
71461
71462         * m4/regex.m4: Use proper quoting so brackets appear in the test
71463         program.
71464         Reported by, and with help from, Bruno Haible.
71465
71466 2001-05-13  Jim Meyering  <meyering@lucent.com>
71467
71468         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
71469         undefined.
71470
71471 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71472
71473         dirname code cleanup.  base_name now behaves more compatibly
71474         with POSIX basename when given file names that have trailing
71475         slashes, and similarly for dir_name.  Add new primitives
71476         base_len and dir_len.  Put the directory-name-related decls
71477         into dirname.h.
71478
71479         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
71480         * lib/backupfile.c (base_name): Likewise.
71481         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
71482         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
71483         * lib/makepath.c (strip_trailing_slashes): Likewise.
71484         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
71485         ISSLASH): Likewise.
71486         * lib/rename.c (strip_trailing_slashes): Likewise.
71487         * lib/same.c (base_name): Likewise.
71488         * lib/stripslash.c (ISSLASH): Likewise.
71489
71490         * lib/addext.c: Include <dirname.h> after size_t is defined.
71491         * lib/backupfile.c: Likewise.
71492
71493         * lib/addext.c (addext): Use base_len to trim redundant
71494         trailing slashes instead of doing it ourselves.
71495         But do not trim the last slash if it is not redundant.
71496
71497         * lib/backupfile.c (find_backup_file_name,
71498         max_backup_version): Use base_len instead of rolling it ourselves.
71499         Handle the case of "" and (on DOS) "C:" correctly.
71500
71501         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
71502         needed. Include <string.h>, <dirname.h>.
71503         (base_name): Allow file names ending in slashes, other than names
71504         that are all slashes.  In this case, return the basename followed
71505         by the slashes.  This is more general, and can be used in places
71506         where the original base_name purposely had an assertion failure.
71507         (base_len): New function.
71508
71509         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
71510         Do not include <assert.h>; no longer needed.
71511         Include xalloc.h.
71512         (memrchr): Remove decl.
71513         (dir_name_r): Remove.
71514         (dir_len): Renamed from dirlen.  All callers changed.
71515         Rewrite in terms of base_name, for simplicity and consistency.
71516         (dir_name): Never return NULL.  All callers changed.
71517         Do not include <stdlib.h> in test program; no longer needed.
71518         return 0; is fine for test program.
71519
71520         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
71521         New macros.
71522         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
71523
71524         * lib/path-concat.c (path_concat): Use base_len to compute
71525         base length, not strlen; this means we cannot rely on memcpy
71526         to null-terminate.
71527
71528         * lib/same.c (STREQ): Remove.
71529         (same_name): Handle the case where the basename ends in trailing '/'.
71530
71531         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
71532         a slash was stripped.  Do not strip the last slash after a
71533         file system prefix.
71534
71535 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71536
71537         * lib/Makefile.am (libfetish_a_SOURCES):
71538         Add strftime.c, since we now compile it on all hosts.
71539
71540         * lib/strftime.c (my_strftime):
71541         Define to nstrftime if emacs, but only if my_strftime is not defined.
71542         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
71543         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
71544         Add one more extra argument: a nanoseconds value.
71545         All uses changed.
71546         (ns): New macro.
71547         (my_strftime function): Add %N format.
71548         (emacs_strftimeu): Renamed from emacs_strftime,
71549         with extra ut argument.
71550
71551 2001-05-09  Paul Eggert  <eggert@twinsun.com>
71552
71553         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
71554
71555 2001-04-21  Jim Meyering  <meyering@lucent.com>
71556
71557         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
71558         doesn't interfere.
71559
71560 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71561
71562         * m4/ftruncate.m4: Check for chsize.
71563         Link with ftruncate.o unconditionally if ftruncate is missing.
71564         This was required when cross-compiling to i586-mingw32msvc.
71565
71566 2001-04-08  Jim Meyering  <meyering@lucent.com>
71567
71568         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
71569         recomputed; that's necessary when the offset spans a DST transition.
71570         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
71571
71572 2001-04-02  Jim Meyering  <meyering@lucent.com>
71573
71574         * lib/regex.h, regex.c: Update from GNU libc.
71575
71576 2001-03-24  Jim Meyering  <meyering@lucent.com>
71577
71578         * m4/jm-macros.m4: Require autoconf-2.49d.
71579
71580 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
71581
71582         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
71583
71584 2001-03-19  Paul Eggert  <eggert@twinsun.com>
71585
71586         * lib/version-etc.c (version_etc_copyright): Update to 2001.
71587
71588 2001-03-17  Jim Meyering  <meyering@lucent.com>
71589
71590         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
71591         now that the version in autoconf is equivalent.
71592         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
71593
71594         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
71595         Suggestion from Akim Demaille.
71596
71597         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
71598         (jm_PREREQ_TEMPNAME): New function.
71599
71600 2001-03-16  Paul Eggert  <eggert@twinsun.com>
71601
71602         * lib/tempname.c (uint64_t): Define to uintmax_t if
71603         not defined, and if UINT64_MAX is not defined.
71604         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
71605         Reported by John David Anglin.
71606
71607 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
71608
71609         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
71610         resolve alias if codeset is empty.
71611         * lib/config.charset (BeOS): Use wildcard syntax.
71612
71613 2001-03-13  Jim Meyering  <meyering@lucent.com>
71614
71615         * lib/path-concat.c (path_concat)
71616         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
71617         concatenating e.g., `C:' and `foo'.
71618         From Bruno Haible.
71619
71620 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71621
71622         * lib/localcharset.c (locale_charset): Don't use
71623         setlocale(LC_CTYPE,NULL). Don't return NULL.
71624         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
71625
71626 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71627
71628         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
71629         support for DOS/DJGPP.
71630
71631 2001-03-01  Paul Eggert  <eggert@twinsun.com>
71632
71633         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
71634         lacks mkstemp.  Compile our own tempname.c if we compile our own
71635         mkstemp.c, as mkstemp relies on tempname.
71636
71637 2001-03-01  Jim Meyering  <meyering@lucent.com>
71638
71639         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
71640         AH_VERBATIM really does output its argument verbatim.
71641
71642 2001-02-28  Paul Eggert  <eggert@twinsun.com>
71643
71644         * lib/Makefile.am (libfetish_a_SOURCES):
71645         Add dup-safer.c, fopen-safer.c.
71646         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
71647
71648         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
71649         * lib/unistd-safer.h: New files.
71650
71651 2001-02-25  Paul Eggert  <eggert@twinsun.com>
71652
71653         The mkstemp replacement is taken from glibc 2.2.2, with some
71654         portability fixes for use outside glibc, as follows:
71655
71656         * lib/tempname.c (struct_stat64): New macro.
71657         (direxists, __gen_tempname): Use it.
71658         This avoids a portability problem with Solaris 8.
71659
71660         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
71661         (<stddef.h>, <stdint.h>, <string.h>):
71662         Include only if STDC_HEADERS || _LIBC.
71663         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
71664         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
71665         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
71666         (__set_errno): Define this macro if <errno.h> doesn't.
71667         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
71668         Define these macros if <stdio.h> doesn't.
71669         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
71670         Define these macros if <sys/stat.h>
71671         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
71672         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
71673         __xstat64): Define if not _LIBC.
71674         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
71675         (__gen_tempname): Invoke gettimeofday only if
71676         HAVE_GETTIMEOFDAY || _LIBC;
71677         otherwise, fall back on plain "time".
71678         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
71679
71680         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
71681
71682         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
71683
71684 2001-02-18  Paul Eggert  <eggert@twinsun.com>
71685
71686         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
71687
71688 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71689
71690         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
71691         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
71692         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
71693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71694
71695 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71696
71697         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
71698         Remove workaround macros for hosts that have mbrtowc but not
71699         mbstate_t, as we now insist on proper declarations for both
71700         before using mbrtowc.
71701
71702 2001-02-17  Jim Meyering  <meyering@lucent.com>
71703
71704         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
71705         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
71706         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
71707         UnixWare 7.1.1.
71708
71709         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
71710         rather than AC_CACHE_VAL.
71711
71712 2001-02-17  Jim Meyering  <meyering@lucent.com>
71713
71714         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
71715         around included file name.
71716
71717         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
71718
71719         * lib/strftime.c: Update from GNU libc (the only changes were to
71720         comments).
71721
71722 2001-02-17  Jim Meyering  <meyering@lucent.com>
71723
71724         * lib/regex.c: Update from libc.
71725
71726 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
71727
71728         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
71729         clash.
71730
71731 2001-02-16  Paul Eggert  <eggert@twinsun.com>
71732
71733         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
71734         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
71735         Reported by Mark Hounschell via Paul Eggert.
71736
71737 2001-02-07  Jim Meyering  <meyering@lucent.com>
71738
71739         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
71740
71741 2001-02-05  Jim Meyering  <meyering@lucent.com>
71742
71743         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
71744         it includes the patch required for `large file' support with at least
71745         HP-UX's 10.20 /bin/cc.
71746
71747 2001-02-03  Jim Meyering  <meyering@lucent.com>
71748
71749         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
71750         AS_IF, now that it works once again (mysteriously).
71751         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71752
71753 2001-01-30  Jim Meyering  <meyering@lucent.com>
71754
71755         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
71756         * m4/chown.m4: Rename conftestchown to conftest.chown.
71757         * m4/rename.m4: s/conftestdir/conftest.d1/ and
71758         s/conftestdir2/conftest.d2/.
71759         * m4/utimes.m4: s/conftestdata/conftest.data/
71760         Inspired by Pavel Roskin's change in autoconf.
71761
71762 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
71763
71764         * lib/config.charset: Update for FreeBSD 4.2.
71765
71766 2001-01-27  Jim Meyering  <meyering@lucent.com>
71767
71768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
71769         a use of AS_IF.
71770         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71771
71772 2001-01-26  Jim Meyering  <meyering@lucent.com>
71773
71774         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
71775         quotearg.c includes it.
71776
71777 2001-01-26  Jim Meyering  <meyering@lucent.com>
71778
71779         * lib/quotearg.c: Include stddef.h.
71780         * lib/quote.c: Include stddef.h.
71781         Reported by Axel Kittenberger.
71782
71783         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
71784         line in double quotes so that it evokes a better diagnostic.
71785         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
71786         Reported by Axel Kittenberger.
71787
71788 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
71789
71790         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
71791         as if it was a `charset'.
71792
71793 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71794
71795         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
71796         has const.
71797
71798 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71799
71800         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
71801         to avoid a warning.  Add back 'const' to inptr.
71802
71803 2001-01-20  Jim Meyering  <meyering@lucent.com>
71804
71805         Be sure that headers are checked before used in code compiled
71806         for the type checks.
71807         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
71808         In place of that, invoke jm_CHECK_ALL_TYPES.
71809         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
71810         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
71811         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
71812         The check for ssize_t was mistakenly run before the test for unistd.h.
71813
71814         The configure-time check for stdbool.h was missing.
71815         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
71816         (jm_PREREQ_HASH): New function.
71817
71818 2001-01-17  Jim Meyering  <meyering@lucent.com>
71819
71820         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
71821         for autoconf-2.49c.
71822         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
71823
71824 2001-01-16  Jim Meyering  <meyering@lucent.com>
71825
71826         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
71827         From Bruno Haible.
71828
71829 2001-01-14  Jim Meyering  <meyering@lucent.com>
71830
71831         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
71832         foo and bar.  Create conftestdir/ in the script, not in the C code.
71833         Remove directories in the script, not in the C code.
71834         Remove conftestdir{,2} before trying to create the directory.
71835         Make the entire configure script fail if the mkdir fails.
71836
71837 2001-01-14  Jim Meyering  <meyering@lucent.com>
71838
71839         * lib/rename.c: New file.  From Volker Borchert.
71840         Include stdlib.h, string.h or strings.h, and xalloc.h.
71841         Use strip_trailing_slashes rather than open-coding it.
71842
71843 2001-01-03  Paul Eggert  <eggert@twinsun.com>
71844
71845         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
71846
71847 2001-01-03  Jim Meyering  <meyering@lucent.com>
71848
71849         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
71850         of local `inptr' to avoid warning with some system declarations of
71851         iconv.
71852
71853 2001-01-02  Volker Borchert  <bt@teknon.de>
71854
71855         * m4/rename.m4: New file.
71856         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
71857
71858 2001-01-01  Jim Meyering  <meyering@lucent.com>
71859
71860         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
71861         even on systems with utmpx.h.  It's necessary for the declaration of
71862         utmp's ut_user member.  Reported by Andreas Jaeger.
71863
71864         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
71865         available. They are required for the declarations of getgrgid and
71866         getpwuid resp.
71867         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
71868         Reported by Andreas Jaeger.
71869
71870 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
71871
71872         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
71873         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
71874         so `make install' also works in VPATH builds.
71875
71876 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
71877
71878         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
71879         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
71880         can be used in subdirectories.
71881
71882 2000-12-29  Paul Eggert  <eggert@twinsun.com>
71883
71884         * lib/modechange.c: Do not assume that mode_t uses the
71885         traditional octal encoding.  E.g. "chmod 1 FOO" should set
71886         the other-execute bit of FOO even if S_IXOTH != 1.
71887
71888         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
71889         WOTH, XOTH, ALLM): New macros.
71890         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
71891          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
71892         Use them.
71893         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
71894         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
71895         (mode_compile):
71896         No need to use uintmax_t; unsigned long is long enough.
71897         Don't bother to get suffix since we don't use it.
71898
71899 2000-12-26  Jim Meyering  <meyering@lucent.com>
71900
71901         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
71902         better with autoheader.
71903
71904 2000-12-24  Jim Meyering  <meyering@lucent.com>
71905
71906         * lib/hash.c (is_prime): Return explicit boolean values.
71907         (hash_get_first): Return NULL to appease Irix5.6's 89.
71908         Reported by Nelson Beebe.
71909
71910 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
71911
71912         * lib/localcharset.c (locale_charset): Add support for Win32.
71913
71914 2000-12-18  Paul Eggert  <eggert@twinsun.com>
71915
71916         * lib/physmem.h, lib/physmem.c: New files.
71917
71918         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
71919         (noinst_HEADERS): Add physmem.h.
71920
71921         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
71922         't' for compatibility with Solaris 8 sort.
71923
71924 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
71925
71926         * lib/config.charset: Add support for BeOS.
71927
71928 2000-12-17  Jim Meyering  <meyering@lucent.com>
71929
71930         * m4/dos.m4 (jm_AC_DOS): New file and macro.
71931         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
71932
71933 2000-12-16  Jim Meyering  <meyering@lucent.com>
71934
71935         This bug had a serious impact on chown: `chown N:M FILE' (for integer
71936         N and M) would have treated it like `chown N:N FILE'.
71937
71938         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
71939
71940 2000-12-16  Jim Meyering  <meyering@lucent.com>
71941
71942         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
71943         SHELLS_FILE to a file name that's useful on djgpp systems.
71944         Include stdlib.h.
71945         (ADDITIONAL_DEFAULT_SHELLS): Define.
71946         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
71947         Based mostly on a patch from Prashant TR.
71948
71949 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
71950
71951         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
71952         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
71953         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
71954
71955 2000-12-08  Andreas Schwab  <schwab@suse.de>
71956
71957         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
71958         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
71959
71960 2000-12-07  Jim Meyering  <meyering@lucent.com>
71961
71962         * lib/stripslash.c (ISSLASH): Define.
71963         (strip_trailing_slashes): Use ISSLASH rather than comparing against
71964         `/'.
71965         From Prashant TR.
71966
71967         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
71968         (dir_name_r): Declare this function as static.
71969         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
71970         manifest itself on a name containing a mix of slashes and
71971         backslashes.
71972         Make this function work with names starting with a DOS-style
71973         drive letter and colon prefix.
71974         (dir_name): Append `.' if necessary.
71975         Based mostly on patches from Prashant TR and Eli Zaretskii.
71976
71977         * lib/dirname.h (dir_name_r): Remove prototype.
71978
71979 2000-12-06  Paul Eggert  <eggert@twinsun.com>
71980
71981         * m4/off_t-format.m4: Remove this file.
71982         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
71983
71984 2000-12-06  Jim Meyering  <meyering@lucent.com>
71985
71986         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
71987         replacement strtoull, we may well need the replacement strtoul, too.
71988         Check for declarations of strtoul and strtoull.
71989         Check for strtol.  Mainly as a cue to cause automake to include
71990         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
71991         Check for limits.h -- strtol.c needs it.
71992
71993 2000-12-05  Jim Meyering  <meyering@lucent.com>
71994
71995         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
71996
71997 2000-12-04  Jim Meyering  <meyering@lucent.com>
71998
71999         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72000         Also include memory.h, stdlib.h, unistd.h if appropriate.
72001         Reported by Andreas Jaeger (conflicting declaration of malloc).
72002
72003 2000-12-02  Jim Meyering  <meyering@lucent.com>
72004
72005         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72006         * m4/jm-macros.m4 (jm_MACROS): require it.
72007
72008 2000-12-02  Jim Meyering  <meyering@lucent.com>
72009
72010         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72011
72012 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72013
72014         * lib/memrchr.c: Include <config.h> before any system include file.
72015
72016 2000-11-30  Jim Meyering  <meyering@lucent.com>
72017
72018         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72019
72020 2000-11-30  Jim Meyering  <meyering@lucent.com>
72021
72022         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72023
72024 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72025
72026         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72027
72028 2000-11-26  Jim Meyering  <meyering@lucent.com>
72029
72030         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72031
72032 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72033
72034         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72035         size of (size_t) -1; it's not portable.
72036
72037 2000-11-17  Jim Meyering  <meyering@lucent.com>
72038
72039         * lib/strstr.c: Update from GNU libc.
72040
72041 2000-11-17  Akim Demaille  <akim@epita.fr>
72042
72043         * lib/obstack.h: Formatting changes.
72044         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72045         prevent type checking.
72046         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
72047         cast the value to (void *): assigning a `foo *' to a `void *'
72048         variable is valid.
72049         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
72050
72051 2000-11-16  Jim Meyering  <meyering@lucent.com>
72052
72053         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
72054
72055 2000-11-11  Jim Meyering  <meyering@lucent.com>
72056
72057         * lib/error.c: Add a couple #includes, merging from GNU libc version.
72058
72059 2000-11-10  Jim Meyering  <meyering@lucent.com>
72060
72061         * lib/obstack.h: Update from GNU libc.
72062         * lib/obstack.c: Likewise.
72063
72064 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72065
72066         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72067
72068 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72069
72070         * lib/getusershell.c (setusershell): Use rewind rather than
72071         fseek/fseeko, to avoid configuration hassles with fseeko.
72072         Don't bother opening SHELLS_FILE if shellstream is NULL;
72073         it's not necessary.
72074
72075 2000-11-05  Jim Meyering  <meyering@lucent.com>
72076
72077         * lib/makepath.h (make_dir): Declare.
72078         * lib/makepath.c (make_dir): Remove `static' attribute.
72079         Tweak a comment.
72080
72081 2000-11-04  Jim Meyering  <meyering@lucent.com>
72082
72083         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72084
72085 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72086
72087         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72088         last one in a bucket, advance to the next bucket.
72089
72090 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72091
72092         * lib/fnmatch.c: Do not comment out all the code if we are using
72093         the GNU C library, because in some cases we are replacing buggy
72094         code in the GNU C library itself.
72095
72096 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72097
72098         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72099         (regex_compile): Catch bogus \(\1\).
72100
72101 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72102
72103         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72104         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72105         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72106
72107 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72108
72109         * lib/error.h, getline.h, modechange.h:
72110         Remove "2000" from Copyright line, as the file hasn't been
72111         changed this year other than in the copyright notice.
72112
72113         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72114         was changed this year.
72115
72116 2000-10-29  Jim Meyering  <meyering@lucent.com>
72117
72118         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72119         renaming.
72120         * m4/ls-mntd-fs.m4: Likewise
72121
72122 2000-10-29  Jim Meyering  <meyering@lucent.com>
72123
72124         * lib/xstat.in: Fix grammar in comment.
72125
72126 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72127
72128         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72129         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72130         doesn't define __restrict_arr.
72131
72132 2000-10-28  Jim Meyering  <meyering@lucent.com>
72133
72134         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72135         (jm_PREREQ_MEMCHR): New function.
72136
72137 2000-10-28  Jim Meyering  <meyering@lucent.com>
72138
72139         * lib/memchr.c: Update from libc.
72140         Adjust for portability:
72141         [HAVE_STDLIB_H]: Include stdlib.h.
72142         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72143         Undef __memchr, too.
72144         [!weak_alias]: Define __memchr to memchr.
72145
72146         * lib/regex.c: Update from libc.
72147         * lib/regex.h: Likewise.
72148         * lib/getopt1.c: Likewise.
72149         * lib/memcmp.c: Likewise.
72150
72151         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72152         Avoid using fseek, when possible -- it's broken by design.
72153         Patch by Ulrich Drepper.
72154
72155 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72156
72157         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72158         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72159         Giving in to popular pressure to shut up the compiler with casts.
72160
72161 2000-10-26  Jim Meyering  <meyering@lucent.com>
72162
72163         * lib/strftime.c: Update from libc.
72164
72165 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72166
72167         * regex.c: More `unsigned char' -> `re_char' changes.
72168         Also change several `int' into `re_wchar_t'.
72169         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72170         (PUSH_FAILURE_POINTER): Don't cast any more.
72171         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72172         We want GCC to complain, since this piece of code makes
72173         re_match non-reentrant, which *should* be fixed.
72174         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72175         (EXTEND_BUFFER): Use RETALLOC.
72176         (SET_LIST_BIT): Don't cast.
72177         (re_wchar_t): New type.
72178         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72179         that those two functions will always properly return.
72180         (IMMEDIATE_QUIT_CHECK): Cast to void.
72181         (analyse_first): Use recursion rather than an explicit stack.
72182         (re_compile_fastmap): Can't fail anymore.
72183         (re_search_2): Don't check re_compile_fastmap for failure.
72184         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72185         Now also sets the new value (passed in a new argument).
72186         (re_match_2_internal): Use it.
72187         Also, use a new var `reg' of type size_t when looping through regs
72188         rather than reuse the inappropriate `mcnt'.
72189
72190 2000-10-25  Jim Meyering  <meyering@lucent.com>
72191
72192         * lib/obstack.c: Update from libc.
72193
72194 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72195
72196         * regex.c (regex_compile): Change the way of handling a range from
72197         a char less than 256 to a char not less than 256.
72198
72199 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72200
72201         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72202         NT-Emacs only.
72203         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72204         so that re_search functions only quit when callers expect them to.
72205
72206 2000-10-23  Jim Meyering  <meyering@lucent.com>
72207
72208         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72209         wrong.  That set_locale call must not have any side effects.
72210         From Paul Eggert.
72211
72212 2000-10-22  Jim Meyering  <meyering@lucent.com>
72213
72214         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72215         [CYCLIC]: Remove now-unused definition.
72216
72217         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72218         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72219         Suggestion from Ulrich Drepper.
72220
72221 2000-10-21  Jim Meyering  <meyering@lucent.com>
72222
72223         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72224         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72226
72227 2000-10-21  Jim Meyering  <meyering@lucent.com>
72228
72229         * lib/dirname.c (memrchr): Declare if necessary.
72230         (dir_name): Remove the restriction that there be no
72231         trailing slashes.  Now, this code skips past them, effectively
72232         ignoring them.
72233         [TEST_DIRNAME] (main): New unit tests.
72234
72235         * lib/memrchr.c: New file from GNU libc.
72236         Undef __memrchr, too.
72237         [!weak_alias]: Define __memrchr to memrchr.
72238         Guard weak_alias use with `#ifdef weak_alias'.
72239
72240 2000-10-21  Jim Meyering  <meyering@lucent.com>
72241
72242         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72243         (dir_name): Use dir_name_r.
72244         * lib/dirname.h (dir_name_r): Declare it.
72245
72246 2000-10-17  Jim Meyering  <meyering@lucent.com>
72247
72248         * lib/quote.h (PARAMS): Define and use.
72249         Reported by Akim Demaille.
72250
72251         * lib/getopt.c: Update from libc.
72252
72253 2000-10-16  Jim Meyering  <meyering@lucent.com>
72254
72255         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72256         setlocale.
72257         From Jan Fedak.
72258
72259 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72260
72261         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72262
72263 2000-09-25  Jim Meyering  <meyering@lucent.com>
72264
72265         * lib/md5.h (rol): Define (from GnuPG).
72266
72267         * lib/sha.c: Give credit (GnuPG) where due.
72268         (M): Use rol rather than open-coding it.
72269         Add a FIXME comment.
72270
72271 2000-09-21  Jim Meyering  <meyering@lucent.com>
72272
72273         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72274         Reported by Michael Stone.
72275
72276 2000-09-20  Jim Meyering  <meyering@lucent.com>
72277
72278         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72279         (noinst_HEADERS): Add sha.h.
72280         Based on code from Scott G. Miller and from GnuPG.
72281
72282 2000-09-18  Jim Meyering  <meyering@lucent.com>
72283
72284         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72285         LIBS. Otherwise, everyone ends up linking with -lelf for some
72286         configurations.
72287         Reported by Mike Stone.
72288
72289 2000-09-15  Jim Meyering  <meyering@lucent.com>
72290
72291         * lib/regex.c: Update from libc.
72292
72293 2000-09-10  Jim Meyering  <meyering@lucent.com>
72294
72295         * lib/getopt.c (_getopt_internal): Update from glibc.
72296
72297 2000-09-09  Jim Meyering  <meyering@lucent.com>
72298
72299         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72300         think it should be used as a general replacement for isascii.
72301         * lib/fnmatch.c: Likewise.
72302         * lib/mbswidth.c: Likewise
72303         * lib/regex.c: Likewise.
72304
72305         Don't use atoi.
72306         * lib/userspec.c: Include sys/param.h and limits.h.
72307         Include xstrtol.h.
72308         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72309         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72310         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72311         UID, GID.  Check range.
72312
72313 2000-09-06  Jim Meyering  <meyering@lucent.com>
72314
72315         * lib/getopt.c (_getopt_internal): Update from glibc.
72316
72317 2000-08-30  Jim Meyering  <meyering@lucent.com>
72318
72319         * lib/strftime.c: Merge in changes from GNU libc.
72320
72321 2000-08-26  Jim Meyering  <meyering@lucent.com>
72322
72323         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72324         * m4/fpending.m4: New file.
72325
72326 2000-08-26  Jim Meyering  <meyering@lucent.com>
72327
72328         * lib/closeout.c: Include "__fpending.h".
72329         (close_stdout_status): Return right away if there's nothing to flush.
72330
72331         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72332         * lib/__fpending.c: New file.
72333         * lib/__fpending.h: New file.
72334
72335 2000-08-20  Jim Meyering  <meyering@lucent.com>
72336
72337         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72338         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72339         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72340
72341 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72342
72343         Improve fileutils installation on systems where running
72344         programs (like install) can't be unlinked.
72345         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72346         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72347
72348 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72349
72350         Standardize on "memory exhausted" instead of "Memory exhausted"
72351         or "virtual memory exhausted".
72352         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72353         "virtual memory exhausted".
72354         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72355         our own message.
72356         * lib/userspec.c (parse_user_spec): Likewise.
72357         * lib/bumpalloc.h: comment fix
72358         * lib/same.c, userspec.c: Include xalloc.h.
72359
72360         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72361         not char *const and pointing to a constant array.
72362         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72363         (xrealloc): Comment fix.
72364
72365         * lib/userspec.c (parse_user_spec):
72366         Don't translate a message until just before returning,
72367         to avoid unnecessary translation.
72368
72369 2000-08-07  Jim Meyering  <meyering@lucent.com>
72370
72371         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72372         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72373         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72374         getgroups.c, gethostname.c, getopt.h, group-member.c,
72375         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72376         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72377         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72378         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72379         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72380         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
72381         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
72382         yesno.c: Back out Copyright date changes for each file with no change
72383         this year.  This eases coordination with other programs using the same
72384         source code modules.  From Paul Eggert.
72385
72386 2000-08-06  Paul Eggert  <eggert@twinsun.com>
72387
72388         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
72389         not char, for compatibility with glibc 2.1.3 strftime.c.
72390
72391 2000-08-03  Greg McGary  <greg@mcgary.org>
72392
72393         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
72394         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
72395         (EXTEND_BUFFER): Use them.
72396
72397 2000-08-01  Jim Meyering  <meyering@lucent.com>
72398
72399         * lib/dirname.c (ISSLASH): Define.
72400         (BACKSLASH_IS_PATH_SEPARATOR): Define.
72401         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
72402         both `\' and `/' may be use as path separators.
72403         Based on a patch from Prashant TR.
72404
72405 2000-07-31  Paul Eggert  <eggert@twinsun.com>
72406
72407         * lib/quotearg.c (quotearg_n_options): Don't make the initial
72408         slot vector a constant, since it might get modified.
72409
72410 2000-07-31  Jim Meyering  <meyering@lucent.com>
72411
72412         * lib/xmalloc.c: Use `virtual memory exhausted', not
72413         `Memory exhausted'.
72414         * lib/obstack.c (print_and_abort): Likewise.
72415
72416 2000-07-30  Paul Eggert  <eggert@twinsun.com>
72417
72418         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
72419         buffer, so that the caller can always quote one small
72420         component of a "memory exhausted" message in slot 0.
72421         From a suggestion by Jim Meyering.
72422
72423 2000-07-30  Jim Meyering  <meyering@lucent.com>
72424
72425         * lib/makepath.c (make_path): Quote the other instance, too.
72426
72427         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
72428         (STATIC_BUF_SIZE): Define.
72429         (quotearg_n_options): Use only statically allocated storage when
72430         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
72431         than STATIC_BUF_SIZE.
72432
72433 2000-07-29  Jim Meyering  <meyering@lucent.com>
72434
72435         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
72436         * lib/dirname.c (dir_name): Likewise.
72437
72438         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
72439         `/'.
72440
72441         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
72442         (dir_name): Assert that there are no trailing slashes.
72443
72444 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
72445
72446         * lib/mbswidth.h (mbswidth): Add a flags argument.
72447         (mbswidth): New declaration.
72448         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
72449         * lib/mbswidth.c (mbswidth): Add a flags argument.
72450         (mbsnwidth): New function.
72451
72452 2000-07-24  Jim Meyering  <meyering@lucent.com>
72453
72454         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72455
72456 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72457
72458         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
72459
72460 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72461
72462         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
72463         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
72464         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
72465         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
72466         invoke multibyte primitives.
72467
72468 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72469
72470         * lib/quotearg.c:
72471         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
72472         so that mbstate_t is always defined.
72473
72474         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
72475         be 1 in at least one GCC installation, and this configuration
72476         error is likely to be common.  Ignoring MB_LEN_MAX hurts
72477         performance on hosts that have mbrtowc but have only unibyte
72478         locales, but I assume these hosts are rare.
72479
72480 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72481
72482         * lib/mbswidth.c (_XOPEN_SOURCE):
72483         Don't define; this causes problems on Solaris 7.
72484         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
72485
72486 2000-07-23  Jim Meyering  <meyering@lucent.com>
72487
72488         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
72489         too: getgrgid, getpwuid, getuid.
72490
72491 2000-07-23  Jim Meyering  <meyering@lucent.com>
72492
72493         * lib/basename.c (base_name): Add an assertion.
72494
72495 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
72496
72497         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
72498         shadow its mbsinit function.
72499
72500 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72501
72502         * lib/mbswidth.h: New file.
72503         * lib/mbswidth.c: New file.
72504         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
72505         (noinst_HEADERS): Add mbswidth.h.
72506
72507 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72508
72509         * lib/config.charset: Add support for FreeBSD. Improve support for
72510         HP-UX and IRIX 6.
72511
72512 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
72513
72514         * m4/mbswidth.m4: New file.
72515         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
72516
72517 2000-07-15  Jim Meyering  <meyering@lucent.com>
72518
72519         * lib/makepath.c: Include quote.h.
72520         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
72521         corresponding argument in a `quote (...)' call.
72522         Give better diagnostics.
72523
72524         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
72525         (noinst_HEADERS): Add quote.h.
72526
72527         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
72528         from tar's src/misc.c.
72529         * lib/quote.h: New file.  Prototypes for same.
72530
72531 2000-07-14  Paul Eggert  <eggert@twinsun.com>
72532
72533         From a suggestion by Bruno Haible.
72534         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
72535         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
72536         to decide whether to define the BeOS workaround macro;
72537         this adjusts to the change to AC_MBSTATE_T.
72538
72539 2000-07-14  Jim Meyering  <meyering@lucent.com>
72540
72541         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
72542         jm_AC_TYPE_UINTMAX_T.
72543
72544 2000-07-13  Paul Eggert  <eggert@twinsun.com>
72545
72546         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
72547
72548         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
72549         quotearg_buffer_restyled): Add support for
72550         clocale_quoting_style.  Undo previous change to
72551         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
72552         and "{RIGHT QUOTATION MARK}" msgids.
72553
72554 2000-07-10  Paul Eggert  <eggert@twinsun.com>
72555
72556         From a suggestion by Bruno Haible.
72557         * m4/mbstate_t.m4 (AC_MBSTATE_T):
72558         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
72559         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
72560         and mbstate_t, to a single-part test that simply defines mbstate_t.
72561         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
72562         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
72563
72564 2000-07-10  Jim Meyering  <meyering@lucent.com>
72565
72566         * m4/strerror_r.m4: Mirror the correction made in autoconf.
72567
72568         * m4/gnu-source.m4: Output to confdefs.h directly.
72569         Suggestion from Akim Demaille.
72570
72571 2000-07-09  Paul Eggert  <eggert@twinsun.com>
72572
72573         The old behavior of quoting `like this' doesn't look good with
72574         newer, ISO-style fonts.  See:
72575         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
72576
72577         Instead, quote "like this" by default.  Let the translator
72578         tailor the locale-specific quoting behavior by providing
72579         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
72580
72581         * lib/quotearg.c (N_): New macro.
72582         (gettext_default): New function.
72583         (quotearg_buffer_restyled): Use
72584         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
72585         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
72586
72587 2000-07-09  Jim Meyering  <meyering@lucent.com>
72588
72589         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
72590         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
72591
72592         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
72593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
72594
72595 2000-07-09  Jim Meyering  <meyering@lucent.com>
72596
72597         * lib/Most files: Update copyright dates to include 2000.
72598
72599 2000-07-08  Jim Meyering  <meyering@lucent.com>
72600
72601         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
72602         if not defined.
72603         (xgethostname): Remove now-unnecessary #ifdef.
72604         Move declaration of `err' into loop where it's used.
72605
72606 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72607         and Bruno Haible  <haible@clisp.cons.org>
72608
72609         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
72610         only if the test for an object-type mbstate_t fails.  This
72611         prevents us from mistakenly reporting that mbstate_t is a
72612         system object type after we "#define mbstate_t int" to work
72613         around its lack.
72614
72615 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72616         and Bruno Haible  <haible@clisp.cons.org>
72617
72618         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
72619
72620 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72621
72622         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
72623         to strerror_r.
72624         Include <ctype.h> for use of isalpha.
72625
72626 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72627
72628         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
72629         by allocating a larger buffer. Test the gethostname return value for
72630         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
72631         returns an error and ENAMETOOLONG isn't defined.
72632
72633 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72634
72635         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
72636         dimension.
72637
72638 2000-07-04  Jim Meyering  <meyering@lucent.com>
72639
72640         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
72641         of the deprecated AC_CHECKING.
72642
72643 2000-07-04  Jim Meyering  <meyering@lucent.com>
72644
72645         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
72646         Reported by Bruno Haible.
72647
72648 2000-07-04  Jim Meyering  <meyering@lucent.com>
72649
72650         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
72651         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
72652         lacks mbrtowc.
72653
72654 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72655
72656         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
72657         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
72658
72659 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72660         and Bruno Haible  <haible@clisp.cons.org>
72661
72662         * lib/quotearg.c (mbrtowc):
72663         Assign to *pwc, and return 1 only if result is nonzero.
72664         (iswprint): Use ISPRINT when substituting our own mbrtowc.
72665
72666 2000-07-03  Jim Meyering  <meyering@lucent.com>
72667
72668         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
72669
72670 2000-07-03  Jim Meyering  <meyering@lucent.com>
72671
72672         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
72673         This is necessary to get a definition of e.g., UTMP_FILE on
72674         HP-UX 10.20.
72675         From Bob Proulx.
72676
72677 2000-07-02  Jim Meyering  <meyering@lucent.com>
72678
72679         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
72680
72681         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
72682         AC_LIBOBJ(function_name).
72683         * m4/chown.m4: Likewise.
72684         * m4/fnmatch.m4: Likewise.
72685         * m4/ftruncate.m4: Likewise.
72686         * m4/getgroups.m4: Likewise.
72687         * m4/getline.m4: Likewise.
72688         * m4/group-member.m4: Likewise.
72689         * m4/jm-macros.m4: Likewise.
72690         * m4/lstat.m4: Likewise.
72691         * m4/malloc.m4: Likewise.
72692         * m4/memcmp.m4: Likewise.
72693         * m4/nanosleep.m4: Likewise.
72694         * m4/putenv.m4: Likewise.
72695         * m4/realloc.m4: Likewise.
72696         * m4/regex.m4: Likewise.
72697         * m4/stat.m4: Likewise.
72698         * m4/strftime.m4: Likewise.
72699
72700 2000-07-02  Jim Meyering  <meyering@lucent.com>
72701
72702         * lib/quotearg.c (mbstate_t): Don't define here.
72703
72704 2000-07-02  Jim Meyering  <meyering@lucent.com>
72705
72706         * lib/nanosleep.c (SIGCONT): Define if not already defined.
72707
72708 2000-07-01  Jim Meyering  <meyering@lucent.com>
72709
72710         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
72711
72712 2000-07-01  Jim Meyering  <meyering@lucent.com>
72713
72714         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
72715         problem.
72716
72717 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72718
72719         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
72720         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
72721
72722 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72723
72724         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
72725         per change in ../m4/ls-mntd-fs.m4.
72726         (read_filesystem_list): Ignore symbolic links.
72727
72728 2000-06-29  Jim Meyering  <meyering@lucent.com>
72729
72730         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
72731         for declaration of strcmp.
72732
72733         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
72734
72735         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
72736         Avoid warning by casting result to `char *' to remove `const'.
72737
72738 2000-06-28  Jim Meyering  <meyering@lucent.com>
72739
72740         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
72741         included by quotearg.c, for which we perform this test.  From
72742         Bruno Haible.
72743
72744 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72745
72746         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
72747         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
72748         <utmpx.h> exists, put readutmp.o into LIBOBJS.
72749
72750 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72751
72752         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
72753
72754 2000-06-26  Paul Eggert  <eggert@twinsun.com>
72755
72756         savedir now sets errno on failure and invokes xmalloc to get memory.
72757         Fix a couple of other minor bugs while we're at it.
72758
72759         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
72760         (NAMLEN): Remove macro.
72761         (malloc, realloc): Remove decls.
72762         (stpcpy): Likewise.
72763         ("xalloc.h"): Include.
72764         (NAME_SIZE_DEFAULT): New macro.
72765         (savedir): Use xmalloc / xrealloc to allocate memory.
72766         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
72767         Skip "" directory entries.
72768         Use strlen to calculate directory entry length, since the old method
72769         is rarely used these days and isn't worth supporting.
72770         Don't use a pointer after freeing it.
72771         Check for integer overflow when calculating allocation size.
72772         Use memcpy to copy entries, instead of stpcpy.
72773         Set errno properly when returning NULL.
72774         Check for readdir error.
72775
72776 2000-06-26  Jim Meyering  <meyering@lucent.com>
72777
72778         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
72779
72780 2000-06-25  Jim Meyering  <meyering@lucent.com>
72781
72782         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
72783         Linux header bug when _XOPEN_SOURCE is defined to 500.
72784
72785 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72786
72787         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
72788         deficiency.
72789
72790 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72791
72792         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
72793         Include xalloc.h.
72794         Don't include <stdlib.h>.  Don't declare malloc, realloc.
72795
72796 2000-06-24  Jim Meyering  <meyering@lucent.com>
72797
72798         * m4/strerror_r.m4: Revive this file -- to try out an experimental
72799         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
72800         for which strerror does return char*, but which lacks a conveniently
72801         accessible declaration of the function.  If the compile-test says
72802         strerror_r doesn't work, then resort to a `run'-test that works on
72803         BeOS and segfaults on DEC Unix.
72804
72805 2000-06-24  Jim Meyering  <meyering@lucent.com>
72806
72807         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
72808
72809 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72810
72811         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
72812         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
72813
72814 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72815
72816         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
72817         (mbrtowc, mbstate_t): Define substitutes if
72818         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
72819         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
72820         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
72821
72822 2000-06-23  Jim Meyering  <meyering@lucent.com>
72823
72824         * m4/afs.m4: Add missing AC_MSG_RESULT.
72825         Reported by Bruno Haible.
72826
72827         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
72828         Suggestion from Bruno Haible.
72829
72830 2000-06-23  Jim Meyering  <meyering@lucent.com>
72831
72832         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
72833
72834 2000-06-21  Jim Meyering  <meyering@lucent.com>
72835
72836         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
72837
72838 2000-06-21  Jim Meyering  <meyering@lucent.com>
72839
72840         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
72841         (noinst_HEADERS): Add getstr.h.
72842
72843         * lib/getline.c (getstr): Move into a separate file.
72844         * lib/getstr.c (getstr): New file, extracted from getline.c, with
72845         the following changes: new parameter, delim2; both delim[12]
72846         parameters have type `int', not `char'.  The latter would lose
72847         with 8-bit delimiters.
72848         * lib/getstr.h: New file.
72849
72850 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72851
72852         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
72853         than 1024, return a memory chunk of least possible size, instead
72854         of size PATH_MAX + 2. In the loop, increment the size proportionally.
72855         Use free/xmalloc instead of xrealloc to avoid copying for very long
72856         paths.
72857
72858 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72859
72860         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
72861         the empty string.
72862
72863 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72864
72865         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
72866         address, not strdup.  Include <stdlib.h> and don't declare free().
72867
72868 2000-06-19  Jim Meyering  <meyering@lucent.com>
72869
72870         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
72871
72872 2000-06-18  Jim Meyering  <meyering@lucent.com>
72873
72874         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
72875
72876         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
72877         `checking whether...' message to be consistent with that of the
72878         lstat test.
72879
72880 2000-06-18  Jim Meyering  <meyering@lucent.com>
72881
72882         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
72883         Besides, these days every porting target provides a mkdir function.
72884
72885         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
72886         needed. (this snippet comes from src/system.h).
72887
72888 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
72889
72890         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
72891
72892 2000-06-15  Paul Eggert  <eggert@twinsun.com>
72893
72894         * lib/human.c (adjust_value): New function.
72895         (human_readable_inexact): Apply rounding style even when
72896         printing approximate values.
72897
72898 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72899
72900         * lib/human.c (human_readable_inexact): Allow an input block
72901         size that is not a multiple of the output block size, and vice versa.
72902         Reported by Piergiorgio Sartor.
72903
72904 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72905
72906         * lib/getdate.y (get_date): Apply relative times after time
72907         zone indicator, not before.  Reported by Todd A. Jacobs.
72908
72909 2000-06-13  Jim Meyering  <meyering@lucent.com>
72910
72911         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
72912
72913         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
72914
72915 2000-06-12  Paul Eggert  <eggert@twinsun.com>
72916
72917         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
72918
72919 2000-06-12  Jim Meyering  <meyering@lucent.com>
72920
72921         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
72922         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
72923         optional argument.
72924         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
72925         the optional argument, `lib'.
72926
72927 2000-06-08  Jim Meyering  <meyering@lucent.com>
72928
72929         * m4/largefile.m4: Remove file (now that it's part of autoconf).
72930
72931 2000-06-04  Paul Eggert  <eggert@twinsun.com>
72932
72933         Rewrite largefile configuration so that we don't need to run
72934         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
72935         AC_CANONICAL_HOST in configure.in -- jmm]
72936
72937         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
72938         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
72939         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
72940         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
72941         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
72942         All uses changed.
72943         Instead of inspecting the output of getconf, try to compile the
72944         test program without and with the macro definition.
72945         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
72946         for getconf.  Instead, check for the needed flags by compiling
72947         test programs.
72948
72949 2000-06-04  Paul Eggert  <eggert@twinsun.com>
72950
72951         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
72952
72953 2000-06-04  Jim Meyering  <meyering@lucent.com>
72954
72955         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
72956         SunOS 4.1.4 for which gid_t is an unsigned type.
72957
72958 2000-06-03  Jim Meyering  <meyering@lucent.com>
72959
72960         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
72961         now that autoconf requires that.
72962
72963         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
72964         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
72965         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
72966
72967 2000-06-03  Jim Meyering  <meyering@lucent.com>
72968
72969         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
72970
72971 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
72972
72973         * m4/glibc21.m4: New file.
72974         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
72975
72976 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
72977
72978         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
72979         newer, don't install charset.alias.
72980         * lib/config.charset: Change the Linux/glibc rules so they become empty
72981         on glibc-2.1 or newer.
72982
72983 2000-06-02  Jim Meyering  <meyering@lucent.com>
72984
72985         * lib/mountlist.c: Back out last change.  Instead, do this...
72986         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
72987         me_dummy member using the same `ignore'-testing code.
72988         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
72989         fs_type strings.
72990         From Mark D. Roth.
72991
72992 2000-05-29  Jim Meyering  <meyering@lucent.com>
72993
72994         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
72995         mounts with the `ignore' attribute.  Based on a patch from
72996         Mark D. Roth.
72997
72998 2000-05-28  Jim Meyering  <meyering@lucent.com>
72999
73000         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73001         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73002         * m4/stat.m4: Likewise.
73003         * m4/lstat.m4: Likewise.
73004         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73005
73006         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73007         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73008
73009 2000-05-26  Jim Meyering  <meyering@lucent.com>
73010
73011         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73012
73013 2000-05-24  Jim Meyering  <meyering@lucent.com>
73014
73015         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73016         autoconf requires that.
73017         * m4/lib-check.m4: Likewise.
73018         * m4/jm-macros.m4: Likewise.
73019         * m4/strftime.m4: Likewise.
73020
73021         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73022         AC_CHECK_DECLS, now that autoconf requires that.
73023
73024 2000-05-22  Jim Meyering  <meyering@lucent.com>
73025
73026         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73027         * m4/lstat.m4: Likewise.
73028
73029 2000-05-22  Jim Meyering  <meyering@lucent.com>
73030
73031         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73032
73033 2000-05-20  Jim Meyering  <meyering@lucent.com>
73034
73035         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73036         (jm_PREREQ): Use it.
73037
73038 2000-05-18  Jim Meyering  <meyering@lucent.com>
73039
73040         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73041         back, too, since it may have been modified by allocate_entry.
73042         (hash_delete): Rewrite to use neither the assignment operator
73043         nor the comma operator in an if-expression.
73044
73045 2000-05-15  Paul Eggert  <eggert@twinsun.com>
73046
73047         * lib/closeout.c:
73048         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
73049         Remove; no longer needed.
73050         "quotearg.h": Add include.
73051         (file_name): Do not bother to explicitly initialize to NULL; it's less
73052         efficient on some hosts.
73053         (close_stdout_status): Remove test as to whether stdout was already
73054         closed; it breaks for the case "echo x | sort >&-".
73055         Quote file name colons.
73056         Do not assume that _("write error") lacks format strings.
73057
73058 2000-05-15  Jim Meyering  <meyering@lucent.com>
73059
73060         * lib/version-etc.c (version_etc_copyright): Update the copyright
73061         string used in all --version output.
73062
73063 2000-05-14  Jim Meyering  <meyering@lucent.com>
73064
73065         * lib/closeout.c (close_stdout_set_file_name): New function.
73066         (close_stdout_status): Use new file-scoped global.
73067         Return right away if fstat says the stdout file descriptor is invalid.
73068         * lib/closeout.h (close_stdout_set_file_name): Declare.
73069
73070 2000-05-10  Jim Meyering  <meyering@lucent.com>
73071
73072         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73073         (close_stdout_set_status): New function.
73074         * lib/closeout.h (close_stdout_set_status): Declare.
73075
73076 2000-05-09  Jim Meyering  <meyering@lucent.com>
73077
73078         * m4/gettext.m4: Rename this...
73079         * m4/libintl.m4: ...to this.
73080
73081 2000-05-08  Jim Meyering  <meyering@lucent.com>
73082
73083         * lib/long-options.c: Don't include closeout.h.
73084         (parse_long_options): Don't call close_stdout for --version.
73085
73086 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73087
73088         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73089         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73090         2.1.3 bug.  This avoids a clash when files like regex.c define
73091         _GNU_SOURCE.
73092
73093 2000-05-06  Jim Meyering  <meyering@lucent.com>
73094
73095         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73096         (AC_REPLACE_FUNCS): Add strnlen.
73097
73098         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73099         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73100
73101         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73102         AC_SEARCH_LIBS call for nanosleep.
73103         (LIB_NANOSLEEP): Set and AC_SUBST.
73104
73105 2000-05-06  Jim Meyering  <meyering@lucent.com>
73106
73107         * lib/strnlen.c: Undefine __strnlen and strnlen.
73108         [!weak_alias]: Define __strnlen to strnlen.
73109
73110         * lib/atexit.c: New file, from libiberty.
73111
73112 2000-05-06  Jim Meyering  <meyering@lucent.com>
73113
73114         * lib/closeout.c (close_stdout_status): Also check for errors on the
73115         stderr stream.
73116
73117 2000-05-05  Jim Meyering  <meyering@lucent.com>
73118
73119         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73120         AC_SEARCH_LIBS call for clock_gettime.
73121         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73122
73123         * m4/search-libs.m4: Update from autoconf.
73124
73125         su doesn't work on Solaris 2.6.
73126         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73127         <shadow.h>.  Reported by Dragos Harabor.
73128
73129 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73130
73131         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73132         memcpy instead of xmalloc, xrealloc, path_concat.
73133         (locale_charset): Treat empty environment variables as absent.
73134         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73135
73136 2000-05-04  Jim Meyering  <meyering@lucent.com>
73137
73138         * lib/getopt.c: Update from glibc.
73139         * lib/obstack.c: Likewise.
73140         * lib/obstack.h: Likewise.
73141         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73142         file
73143
73144         * lib/regex.h: Likewise.
73145         * lib/strndup.c: Likewise.
73146         * lib/strnlen.c: New file, from glibc.
73147
73148 2000-05-03  Jim Meyering  <meyering@lucent.com>
73149
73150         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73151
73152 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73153
73154         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73155         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73156         compile-time test, rather than inspecting host and OS, to
73157         decide whether to define _LARGEFILE_SOURCE.
73158
73159 2000-05-01  Jim Meyering  <meyering@lucent.com>
73160
73161         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73162
73163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73164         Based on a patch from Bruno Haible.
73165
73166 2000-05-01  Jim Meyering  <meyering@lucent.com>
73167
73168         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73169
73170 2000-04-29  Jim Meyering  <meyering@lucent.com>
73171
73172         * lib/path-concat.c: Declare strdup only if it's not defined.
73173         * lib/canon-host.c: Likewise.
73174
73175 2000-04-28  Jim Meyering  <meyering@lucent.com>
73176
73177         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73178         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73179         is included first, then limits.h is included by locale.h by libintl.h.
73180         From John David Anglin.
73181
73182 2000-04-25  Jim Meyering  <meyering@lucent.com>
73183
73184         * lib/makepath.c (S_IRWXUGO): Define.
73185         (make_path): Always perform explicit chmod if MODE specifies any
73186         of the `special' permission bits.  Prompted by a bug report against
73187         install from Mate Wierdl and Joost van Baal.
73188
73189 2000-04-18  Jim Meyering  <meyering@lucent.com>
73190
73191         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73192         (jm_PREREQ): Use it.
73193
73194 2000-04-18  Jim Meyering  <meyering@lucent.com>
73195
73196         * lib/README: New file.
73197
73198         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73199         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73200
73201 2000-04-17  Jim Meyering  <meyering@lucent.com>
73202
73203         Get it right :-)
73204         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73205         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73206         Suggestion from Akim Demaille.
73207
73208 2000-04-17  Jim Meyering  <meyering@lucent.com>
73209
73210         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73211         the definition of it to rpl_strftime also defined-away the system's
73212         declaration.
73213
73214 2000-04-15  Jim Meyering  <meyering@lucent.com>
73215
73216         Use `C' to denote so-called `contiguous' files, the same way
73217         that tar does.
73218         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73219         (ftypelet): Use S_ISCTG.
73220         From Michael Deutschmann.
73221
73222 2000-04-14  Jim Meyering  <meyering@lucent.com>
73223
73224         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73225         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73226         clobbered.
73227
73228 2000-04-14  Jim Meyering  <meyering@lucent.com>
73229
73230         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73231
73232 2000-04-13  Jim Meyering  <meyering@lucent.com>
73233
73234         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73235         AH_VERBATIM to insert required #ifndef into config.h.in.
73236         Suggestion from Akim Demaille.
73237
73238 2000-04-12  Jim Meyering  <meyering@lucent.com>
73239
73240         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73241         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73242         Christian Krackowizer.
73243
73244         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73245         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73246         (AC_SYS_LARGEFILE): Require.
73247         (AM_C_PROTOTYPES): Require.
73248
73249 2000-04-08  Jim Meyering  <meyering@lucent.com>
73250
73251         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73252         names don't conflict.  Reported by Eli Zaretskii.
73253
73254 2000-04-07  Jim Meyering  <meyering@lucent.com>
73255
73256         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73257         sys/types.h, to work around system header problems on AIX 3.2.5.
73258         From Bruno Haible.
73259
73260 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73261
73262         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73263         bug.  Deal with the different error behavior of Irix iconv.
73264
73265 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73266
73267         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73268         IRIX if the installer said otherwise.
73269
73270 2000-04-05  Jim Meyering  <meyering@lucent.com>
73271
73272         Portability tweaks required for ultrix4.3.
73273         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73274         (jm_CHECK_DECLS): Add getutent to the list of functions.
73275         (_jm_DECL_HEADERS): Add utmpx.h.
73276         From John David Anglin.
73277
73278         * m4/strftime.m4: Back out the 2000-04-02 change.
73279         Instead of that change, simply undefine putenv in the test program.
73280
73281 2000-04-05  Jim Meyering  <meyering@lucent.com>
73282
73283         Portability tweaks required for ultrix4.3.
73284         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73285         getutent.
73286         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73287         * lib/canon-host.c: Declare strdup.
73288         * lib/path-concat.c: Likewise.
73289         From John David Anglin.
73290
73291 2000-04-04  Jim Meyering  <meyering@lucent.com>
73292
73293         Be more DOS 8.3-friendly.
73294         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73295         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73296         * lib/Makefile.am: Reflect renaming.
73297         Reported by Eli Zaretskii.
73298
73299         Use a temporary file name that won't clash with `charset.alias'
73300         in the DOS 8.3 name space.
73301         * lib/Makefile.am (charset_tmp): Define.
73302         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73303         (uninstall-local): Likewise.
73304         Reported by Eli Zaretskii.
73305
73306 2000-04-03  Jim Meyering  <meyering@lucent.com>
73307
73308         * m4/gettext.m4: Fix typo in comment.
73309
73310         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73311         textutils/configure.in).  Suggestion from Paul Eggert.
73312         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73313
73314 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73315
73316         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73317         variable in the shell rather than using putenv, which isn't
73318         portable.  This avoids the configure-time inter-test dependency
73319         on the potentially-renamed putenv function.
73320
73321 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73322
73323         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73324         before checking struct stat.st_blksize, so that
73325         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73326
73327 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73328
73329         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73330         since strftime.c uses HAVE_STRFTIME to decide whether to use
73331         the underlying strftime.
73332
73333 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73334
73335         * lib/time/strftime.c (my_strftime): Make sure we call the system
73336         strftime, not ourselves, when invoking the underlying strftime.
73337
73338 2000-03-24  Jim Meyering  <meyering@lucent.com>
73339
73340         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73341         (charset_alias): Define.
73342         (install-exec-local): Factor out common code.
73343         (uninstall-local): Split lines longer than 80.
73344         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73345         (SUFFIXES): Define.
73346         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73347         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73348
73349 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73350
73351         * lib/config.charset: Output a line containing "Packages using this
73352         file".
73353         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73354         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73355         ref-del.sed): New rules.
73356
73357 2000-03-17  Jim Meyering  <meyering@lucent.com>
73358
73359         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73360         Otherwise, include <strings.h>
73361
73362 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73363
73364         * lib/unicodeio.c (utf8_wctomb): New function.
73365         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73366         format instead of in UCS-4 with platform dependent endianness.
73367
73368 2000-03-10  Jim Meyering  <meyering@lucent.com>
73369
73370         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73371         From Marco Franzen.
73372
73373 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73374
73375         * lib/savedir.c (savedir): Work even if directory size is
73376         negative; this can happen with some screwy NFS configurations.
73377
73378 2000-03-06  Jim Meyering  <meyering@lucent.com>
73379
73380         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
73381         if it's NULL (because we ran out of memory).  From Bruno Haible.
73382
73383 2000-03-05  Jim Meyering  <meyering@lucent.com>
73384
73385         * lib/localcharset.c ("path-concat.h"): Include.
73386         (get_charset_aliases): Use path_concat instead of ANSI string
73387         concatenation.
73388
73389         * lib/unicodeio.h (PARAMS): Define.
73390         Use it to guard prototype.
73391
73392 2000-03-04  Jim Meyering  <meyering@lucent.com>
73393
73394         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
73395         for lib/localcharset.c.
73396
73397 2000-03-04  Jim Meyering  <meyering@lucent.com>
73398
73399         * lib/Makefile.am (install-exec-local): Create $(libdir) before
73400         installing into it.
73401         (uninstall-local): Uncomment this rule so `make distcheck' works
73402         once again.
73403
73404         * lib/unicodeio.c (<errno.h>): Include it.
73405         (errno): Declare if not defined.
73406
73407         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
73408
73409         * lib/config.charset: New version, incorporating remarks from a linux
73410         i18n mailing list.  From Bruno Haible.
73411
73412 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
73413
73414         * m4/codeset.m4: New file.
73415         * m4/iconv.m4: New file.
73416         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
73417
73418 2000-03-03  Jim Meyering  <meyering@lucent.com>
73419
73420         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
73421
73422 2000-03-02  Jim Meyering  <meyering@lucent.com>
73423
73424         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
73425         the messages come out on separate lines.
73426
73427         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
73428         rather than jm_CHECK_DECLARATIONS.
73429         * m4/decl.m4: Remove now-unused file.
73430
73431         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
73432         geteuid.
73433
73434 2000-03-02  Jim Meyering  <meyering@lucent.com>
73435
73436         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
73437
73438 2000-03-01  Jim Meyering  <meyering@lucent.com>
73439
73440         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
73441         * lib/unicodeio.c: Likewise.
73442
73443 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
73444
73445         * lib/config.charset: New file.
73446         * lib/localcharset.c: New file.
73447         * lib/unicodeio.h, lib/unicodeio.c: New files.
73448         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
73449         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
73450         (noinst_HEADERS): Add unicodeio.h.
73451         (all-local, install-exec-local, charset.alias): New targets.
73452
73453 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73454
73455         * lib/quotearg.c (ALERT_CHAR): New macro.
73456         (quotearg_buffer_restyled): Use it.
73457
73458 2000-02-27  Jim Meyering  <meyering@lucent.com>
73459
73460         * m4/check-decl.m4: Add getenv to the list.
73461
73462 2000-02-27  Jim Meyering  <meyering@lucent.com>
73463
73464         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73465         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
73466
73467         * lib/backupfile.c: Guard inclusion of stdlib.h with
73468         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
73469         Declare malloc if needed.
73470
73471         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
73472         `#ifndef HAVE_DECL..'
73473         now that autoconf always defines the HAVE_DECL_ symbols.
73474         * lib/human.c: Likewise.
73475         * lib/same.c: Likewise.
73476         * lib/strtoumax.c: Likewise.
73477
73478         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
73479         declaration check was not run.
73480         * lib/hash.c: Likewise.
73481         * lib/human.c: Likewise.
73482         * lib/same.c: Likewise.
73483         * lib/strtoumax.c: Likewise.
73484
73485         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
73486         `.', then first look up the entire `.'-containing string as a login
73487         name.
73488
73489 2000-02-23  Jim Meyering  <meyering@lucent.com>
73490
73491         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
73492         in place of my hack.
73493
73494 2000-02-18  Paul Eggert  <eggert@twinsun.com>
73495
73496         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
73497         (textint): New typedef.
73498         (parser_control): Member year changed from int to textint.
73499         All uses changed.
73500         (YYSTYPE): Removed; replaced by %union with int and textint members.
73501         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
73502         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
73503         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
73504         (tSNUMBER, tUNUMBER): Now of type <textintval>.
73505         (date, number, to_year): Use width of number in digits, not its value,
73506         to determine whether it's a 2-digit year, or a 2-digit time.
73507         (yylex): Store number of digits of numeric tokens.
73508         Reported by John Kendall.
73509
73510         (parser_control): Changed from struct parser_control to typedef (for
73511         consistency).  All uses changed.
73512
73513         (tID): Removed; not used.
73514         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
73515
73516 2000-02-14  Paul Eggert  <eggert@twinsun.com>
73517
73518         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
73519         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
73520
73521 2000-02-12  Jim Meyering  <meyering@lucent.com>
73522
73523         * lib/userspec.c (ISDIGIT): Define it.
73524         (isdigit): Remove definition.
73525         (is_number): Use ISDIGIT, not isdigit.
73526         <libintl.h>: Include.
73527         (_ and N_): Define.
73528         (parse_user_spec): Mark translatable strings.
73529
73530 2000-02-10  Jim Meyering  <meyering@lucent.com>
73531
73532         With these changes, nanosleep.[ch] are finally enough like the other
73533         lib/* replacement files to compile on a few more losing systems.
73534
73535         * lib/nanosleep.h: Don't include config.h.
73536         Remove prototype from declaration of nanosleep.
73537         (PARAMS): Remove now-unneeded definition.
73538         * lib/nanosleep.c: #undef nanosleep.
73539         (rpl_nanosleep): Rename from nanosleep.
73540
73541 2000-02-10  Jim Meyering  <meyering@lucent.com>
73542
73543         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
73544         gnu_nanosleep to rpl_nanosleep.
73545
73546 2000-02-09  Jim Meyering  <meyering@lucent.com>
73547
73548         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
73549         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
73550
73551 2000-02-08  Akim Demaille  <akim@epita.fr>
73552
73553         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
73554         `[' and `]' and remove uses of `changequote'.
73555         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
73556         (AC_SYS_LARGEFILE): Likewise.
73557         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
73558         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
73559         of changequote.
73560         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
73561         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
73562         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
73563         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
73564
73565 2000-02-05  Jim Meyering  <meyering@lucent.com>
73566
73567         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
73568         Remove explicit use of AC_HEADER_TIME.  It is required by
73569         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
73570         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
73571         in autoconf whereby the expansion of the latter ended up preceding
73572         the expansion of its prerequisite, AC_HEADER_TIME.
73573         Reported by Volker Borchert.
73574
73575 2000-02-03  Jim Meyering  <meyering@lucent.com>
73576
73577         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
73578
73579 2000-02-03  Jim Meyering  <meyering@lucent.com>
73580
73581         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
73582         rather than with `#if HAVE_UTMPNAME'.
73583
73584 2000-02-02  Jim Meyering  <meyering@lucent.com>
73585
73586         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
73587         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
73588         Reported by Eli Zaretskii.
73589
73590 2000-02-01  Jim Meyering  <meyering@lucent.com>
73591
73592         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
73593
73594 2000-01-31  Jim Meyering  <meyering@lucent.com>
73595
73596         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
73597         functions.  Add the time.h and sys/time.h headers along with the
73598         AC_REQUIRE'ment of AC_HEADER_TIME.
73599
73600 2000-01-31  Jim Meyering  <meyering@lucent.com>
73601
73602         * lib/nanosleep.h (nanosleep): Guard declaration with
73603         `#if ! HAVE_DECL_NANOSLEEP'.
73604         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
73605         the declaration in that vendor's sys/timers.h.
73606         Reported by Christian Krackowizer.
73607
73608         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
73609         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
73610         (ISPRINT): Likewise.
73611         Reported by Tom Tromey.
73612
73613 2000-01-30  Jim Meyering  <meyering@lucent.com>
73614
73615         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
73616
73617         * m4/prereq.m4 (utmp_includes): Define.
73618         Check for ut_user and ut_name members in both struct utmpx
73619         and struct utmp.
73620
73621 2000-01-30  Jim Meyering  <meyering@lucent.com>
73622
73623         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
73624         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
73625         header files where only utmpx.ut_user is declared.
73626
73627         * lib/readutmp.h (UT_USER): Define.
73628
73629 2000-01-29  Jim Meyering  <meyering@lucent.com>
73630
73631         * m4/lib-check.m4: New file containing library-related checks from
73632         fileutils and sh-utils (textutils had none).
73633
73634 2000-01-28  Jim Meyering  <meyering@lucent.com>
73635
73636         * m4/perl.m4: Change format of warning message to look more like that
73637         from the missing script.  Suggestion from François Pinard.
73638
73639 2000-01-25  Jim Meyering  <meyering@lucent.com>
73640
73641         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
73642         well as time.h in the compile check.
73643         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
73644         Fix typo in cross-compiling case: s/yes/no/.
73645
73646 2000-01-23  Jim Meyering  <meyering@lucent.com>
73647
73648         * m4/jm-macros.m4: Move df-related tests here from
73649         fileutils/configure.in
73650
73651         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
73652         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
73653
73654         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
73655         s/space/ac_fsusage_space/.
73656         (jm_FILE_SYSTEM_USAGE): Take two parameters.
73657
73658         * m4/ftruncate.m4: New file (derived from part of
73659         fileutils/configure.in).
73660         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
73661         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
73662
73663         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
73664         AC_SUBST these here, rather than just in sh-util/configure.in, so
73665         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
73666         all the same.
73667         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
73668         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
73669         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
73670         (AC_SUBST(POW_LIBM)): Likewise.
73671         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
73672
73673 2000-01-23  Jim Meyering  <meyering@lucent.com>
73674
73675         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
73676         obstack.c.
73677
73678 2000-01-22  Jim Meyering  <meyering@lucent.com>
73679
73680         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
73681
73682         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
73683
73684         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
73685         configure.in
73686         (AC_CHECK_HEADERS): Likewise for sh-utils.
73687         (AC_CHECK_HEADERS): Likewise for textutils.
73688         Merge the three lists of headers.
73689
73690         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
73691         from fileutils' configure.in.
73692
73693         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
73694         code. Moved tests into their own function (_jm_DECL_HEADERS) in
73695         check-decl.m4.
73696
73697         * m4/check-decl.m4: Use #if rather than #ifdef.
73698         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
73699         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
73700         (_jm_DECL_HEADERS): Define new function.
73701         (jm_CHECK_DECLARATIONS): Require it.
73702
73703 2000-01-22  Jim Meyering  <meyering@lucent.com>
73704
73705         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
73706         [! HAVE_DECL_STRTOULL]: Declare strtoull.
73707         Required for some AIX systems.  Reported by Christian Krackowizer.
73708         [TESTING] (main): New function.
73709
73710         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
73711         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
73712         letters.
73713
73714         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
73715         iswprint.
73716
73717         * lib/strverscmp.c (ISDIGIT): Define.
73718         (strverscmp): Use ISDIGIT, not isdigit.
73719
73720 2000-01-19  Jim Meyering  <meyering@lucent.com>
73721
73722         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
73723         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
73724         defines `struct timespec' in <sys/time.h>
73725
73726         * m4/c-bs-a.m4: Remove uses of changequote altogether.
73727         Thanks to Akim for explaining.
73728
73729 2000-01-17  Paul Eggert  <eggert@twinsun.com>
73730
73731         * lib/nanosleep.c (nanosleep):
73732         Don't use SA_INTERRUPT to decide whether to call sigaction, as
73733         POSIX.1 doesn't require SA_INTERRUPT and some systems
73734         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
73735         it's been part of POSIX.1 since day 1 (in 1988).
73736
73737 2000-01-17  Jim Meyering  <meyering@lucent.com>
73738
73739         * lib/interlock: Remove unused file.  Reported by François Pinard.
73740
73741 2000-01-16  Paul Eggert  <eggert@twinsun.com>
73742
73743         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
73744         alert, backslash, formfeed, and vertical tab unnecessarily in
73745         shell quoting style.
73746
73747 2000-01-16  Jim Meyering  <meyering@lucent.com>
73748
73749         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
73750         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
73751         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
73752         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
73753
73754 2000-01-16  Jim Meyering  <meyering@lucent.com>
73755
73756         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
73757         because the latter didn't work.
73758
73759 2000-01-15  Jim Meyering  <meyering@lucent.com>
73760
73761         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
73762         (AC_REPLACE_FUNCS): Add memcpy and memset.
73763         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
73764         Add strpbrk.
73765         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
73766
73767 2000-01-12  Jim Meyering  <meyering@lucent.com>
73768
73769         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
73770         (jm_PREREQ): Use it.
73771         (jm_PREREQ_READUTMP): New macro.
73772         (jm_PREREQ): Use it.
73773
73774 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73775
73776         Quote multibyte characters correctly.
73777         * m4/c-bs-a.m4: New file.
73778         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
73779         (jm_PREREQ): Use it.
73780
73781 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73782
73783         * m4/uintmax_t.m4: Port to autoconf 2.13.
73784
73785 2000-01-08  Jim Meyering  <meyering@ascend.com>
73786
73787         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
73788         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
73789
73790 2000-01-04  Jim Meyering  <meyering@ascend.com>
73791
73792         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
73793         jm_STRUCT_DIRENT_D_TYPE.
73794         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
73795         jm_STRUCT_DIRENT_D_INO.
73796         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
73797         jm_STRUCT_UTIMBUF.
73798         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
73799         renamings.
73800         * m4/utime.m4: Likewise.
73801
73802         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
73803         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
73804
73805 2000-01-03  Paul Eggert  <eggert@twinsun.com>
73806
73807         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
73808         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
73809
73810 2000-01-02  Jim Meyering  <meyering@ascend.com>
73811
73812         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
73813         remember if this is necessary.
73814
73815 1999-12-26  Jim Meyering  <meyering@ascend.com>
73816
73817         * m4/jm-macros.m4: Use it here.
73818         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
73819
73820 1999-12-23  Jim Meyering  <meyering@ascend.com>
73821
73822         * m4/jm-macros.m4: Check for clock_gettime (moved from
73823         fileutils/configure.in)
73824         Check for gettimeofday.
73825
73826 1999-12-20  Jim Meyering  <meyering@ascend.com>
73827
73828         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
73829         autoconf-2.14a-1999-12-20.
73830
73831 1999-12-19  Jim Meyering  <meyering@ascend.com>
73832
73833         * m4/lstat-slash.m4: New file.
73834         * m4/jm-macros.m4: Use the new macro:
73835         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73836
73837 1999-12-07  Jim Meyering  <meyering@ascend.com>
73838
73839         * m4/perl.m4: Require that File::Compare be available, too.
73840         Too many systems seem to lack it.
73841
73842         * m4/strftime.m4: Add checks for most of the cpp macros tested in
73843         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
73844
73845 1999-11-18  Paul Eggert  <eggert@twinsun.com>
73846
73847         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
73848         problem with the QNX 4.25 shell, which doesn't propagate exit
73849         status of failed commands inside shell assignments.
73850
73851 1999-11-17  Jim Meyering  <meyering@ascend.com>
73852
73853         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
73854
73855 1999-11-07  Jim Meyering  <meyering@ascend.com>
73856
73857         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
73858
73859 1999-11-06  Jim Meyering  <meyering@ascend.com>
73860
73861         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
73862         * m4/jm-macros.m4 (jm_MACROS): Use it here.
73863
73864 1999-11-05  Jim Meyering  <meyering@ascend.com>
73865
73866         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
73867         configure.in of textutils, fileutils, and sh-utils into this one
73868         (shared between those packages) file.
73869         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
73870         AC_STRUCT_ST_BLKSIZE.
73871
73872 1999-11-03  Jim Meyering  <meyering@ascend.com>
73873
73874         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
73875         of AC_CHECK_TYPE checks includes unistd.h.
73876         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
73877         Suggestion from Akim Demaille.
73878
73879 1999-10-30  Jim Meyering  <meyering@ascend.com>
73880
73881         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
73882         m4-quoted string.
73883         * m4/ls-mntd-fs.m4: Likewise.
73884         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
73885         * m4/jm-winsz1.m4: Likewise.
73886
73887         * m4/const.m4: Remove file, since the fix made it into the experimental
73888         version of autoconf.
73889         * m4/mktime.m4: Likewise.
73890
73891         * m4/check-type.m4: Remove file, now that the latest version of
73892         AC_CHECK_TYPE takes a third arg to specify additional #includes.
73893
73894         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
73895         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
73896         AC_CHECK_TYPE.
73897
73898 1999-10-04  Jim Meyering  <meyering@ascend.com>
73899
73900         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
73901
73902 1999-09-22  Paul Eggert  <eggert@twinsun.com>
73903
73904         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
73905         2.95.1 bug with HP-UX 10.20.
73906
73907 1999-09-17  Jim Meyering  <meyering@ascend.com>
73908
73909         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
73910         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
73911         due to missing strdup (against sh-utils-2.0).
73912
73913 1999-08-29  Jim Meyering  <meyering@ascend.com>
73914
73915         * m4/jm-macros.m4: Require jm_BISON.
73916         * m4/bison.m4: New file.
73917
73918 1999-08-17  Paul Eggert  <eggert@twinsun.com>
73919
73920         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
73921         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
73922
73923 1999-08-05  Jim Meyering  <meyering@ascend.com>
73924
73925         * m4/getline.m4: Rename test file from conftestdata to conftest.data
73926         to avoid conflicts with `conftest' on 8+3 filesystems.
73927         Suggestion from Eli Zaretskii.
73928
73929 1999-08-04  Jim Meyering  <meyering@ascend.com>
73930
73931         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
73932         fileutils and sh-utils (textutils's getline test was inadequate).
73933         (AM_FUNC_GETLINE): Run this test.
73934         (AC_CHECK_FUNCS): Check for getdelim.
73935         Reported by Bob Proulx.
73936
73937 1999-08-02  Jim Meyering  <meyering@ascend.com>
73938
73939         * m4/jm-macros.m4: Add a comment.
73940
73941 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73942
73943         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
73944         <inttypes.h> defines strtoumax as a macro (and not as a
73945         function).
73946
73947 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73948
73949         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
73950         that we can shift, multiply and divide unsigned long long
73951         values; Ultrix cc can't do it.
73952
73953 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73954
73955         * m4/mktime.m4: New file, which is a preview of what should appear
73956         in the next public autoconf release.
73957
73958 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73959
73960         * m4/lfs.m4: Remove this file.
73961         * m4/largefile.m4: New file.  It contains the old contents of
73962         lfs.m4, except that all names with prefix AC_LFS have been
73963         changed to use the prefix AC_SYS_LARGEFILE instead, to be
73964         compatible with future autoconf versions.  Also, some minor m4
73965         quoting problems have been fixed.
73966
73967 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73968
73969         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
73970         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
73971         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
73972         and simplify the shell code.
73973
73974 1999-08-01  Jim Meyering  <meyering@ascend.com>
73975
73976         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
73977         m4.
73978
73979 1999-07-20  Jim Meyering  <meyering@ascend.com>
73980
73981         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
73982
73983 1999-07-15  Jim Meyering  <meyering@ascend.com>
73984
73985         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
73986
73987 1999-05-22  Jim Meyering  <meyering@ascend.com>
73988
73989         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
73990
73991 1999-05-20  Jim Meyering  <meyering@ascend.com>
73992
73993         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
73994         Add a colon after each `then' in case $4 is empty.
73995
73996 1999-05-16  Jim Meyering  <meyering@ascend.com>
73997
73998         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
73999
74000 1999-05-10  Jim Meyering  <meyering@ascend.com>
74001
74002         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74003
74004         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74005         AC_FUNC_MKTIME.
74006
74007 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74008
74009         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74010
74011 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74012
74013         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74014         not CPPFLAGS, so that linking works correctly in IRIX.
74015
74016 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74017
74018         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74019
74020 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74021
74022         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74023         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74024         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74025         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74026         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74027
74028         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74029
74030 1999-04-20  Jim Meyering  <meyering@ascend.com>
74031
74032         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74033         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74034         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74035
74036 1999-04-18  Jim Meyering  <meyering@ascend.com>
74037
74038         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74039         * m4/jm-macros.m4: Use it.
74040
74041 1999-04-06  Jim Meyering  <meyering@ascend.com>
74042
74043         * m4/strftime.m4: Remove test for %f.
74044
74045 1999-03-29  Jim Meyering  <meyering@ascend.com>
74046
74047         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
74048         superset of the AC_TYPE_* checks in the textutils, fileutils,
74049         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
74050         AC_TYPE_PID_T.
74051
74052 1999-03-28  Jim Meyering  <meyering@ascend.com>
74053
74054         * m4/jm-macros.m4: Define GNU_PACKAGE here.
74055         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
74056         replaced e.g., in the *.sh files of the sh-utils.
74057
74058 1999-03-20  Jim Meyering  <meyering@ascend.com>
74059
74060         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
74061         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
74062         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
74063
74064 1999-03-19  Jim Meyering  <meyering@ascend.com>
74065
74066         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74067
74068 1999-03-12  Jim Meyering  <meyering@ascend.com>
74069
74070         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74071
74072 1999-03-07  Jim Meyering  <meyering@ascend.com>
74073
74074         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74075         declared.
74076
74077 1999-02-17  Jim Meyering  <meyering@ascend.com>
74078
74079         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74080         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74081
74082 1999-02-07  Jim Meyering  <meyering@ascend.com>
74083
74084         * m4/group-member.m4: New file -- extracted from sh-utils'
74085         configure.in.
74086
74087         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74088         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74089
74090 1999-02-06  Jim Meyering  <meyering@ascend.com>
74091
74092         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74093         * m4/fnmatch.m4: Likewise.
74094         * m4/getgroups.m4: Likewise.
74095         * m4/lstat.m4: Likewise.
74096         * m4/malloc.m4: Likewise.
74097         * m4/putenv.m4: Likewise.
74098         * m4/realloc.m4: Likewise.
74099         * m4/regex.m4: Likewise.
74100         * m4/stat.m4: Likewise.
74101         * m4/strftime.m4: Likewise.
74102         Suggestion from Alain Magloire.
74103
74104         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74105         * m4/fnmatch.m4: Likewise.
74106         * m4/getgroups.m4: Likewise.
74107         * m4/getline.m4: Likewise.
74108         * m4/lstat.m4: Likewise.
74109         * m4/malloc.m4: Likewise.
74110         * m4/memcmp.m4: Likewise.
74111         * m4/putenv.m4: Likewise.
74112         * m4/realloc.m4: Likewise.
74113         * m4/regex.m4: Likewise.
74114         * m4/stat.m4: Likewise.
74115         * m4/strftime.m4: Likewise.
74116         Suggestion from Alain Magloire.
74117
74118         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74119         an argument.
74120
74121         * m4/regex.m4: Add a run-time Test for proper operation of
74122         re_compile_pattern.
74123
74124 1999-01-31  Jim Meyering  <meyering@ascend.com>
74125
74126         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74127
74128 1999-01-30  Jim Meyering  <meyering@ascend.com>
74129
74130         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74131
74132         * m4/jm-mktime.m4: Make this a wrapper around the official
74133         AM_FUNC_MKTIME rather than my private copy, now that the official one
74134         is up to date.
74135         * m4/mktime.m4: Remove file.
74136
74137         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74138         * m4/uptime.m4: Likewise.
74139         * m4/uintmax_t.m4: Likewise.
74140
74141 1999-01-28  Jim Meyering  <meyering@ascend.com>
74142
74143         * m4/jm-macros.m4: Use jm_AFS.
74144         * m4/afs.m4: New file (from fileutils' configure.in).
74145
74146         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74147         * m4/chown.m4: Likewise.
74148         * m4/d-ino.m4: Likewise.
74149         * m4/d-type.m4: Likewise.
74150         * m4/fnmatch.m4: Likewise.
74151         * m4/getgroups.m4: Likewise.
74152         * m4/gettext.m4: Likewise.
74153         * m4/jm-mktime.m4: Likewise.
74154         * m4/jm-winsz2.m4: Likewise.
74155         * m4/lcmessage.m4: Likewise.
74156         * m4/ls-mntd-fs.m4: Likewise.
74157         * m4/malloc.m4: Likewise.
74158         * m4/memcmp.m4: Likewise.
74159         * m4/putenv.m4: Likewise.
74160         * m4/realloc.m4: Likewise.
74161         * m4/st_mtim.m4: Likewise.
74162         * m4/strftime.m4: Likewise.
74163
74164 1999-01-16  Jim Meyering  <meyering@ascend.com>
74165
74166         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74167         (ARGMATCH_DIE_DECL): Define.
74168
74169 1999-01-12  Jim Meyering  <meyering@ascend.com>
74170
74171         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74172         Reported by Lars Hecking.
74173
74174 1999-01-10  Jim Meyering  <meyering@ascend.com>
74175
74176         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74177         gross kludge.
74178         * m4/inttypes_h.m4: Likewise.
74179         * m4/lstat.m4: Likewise.
74180         * m4/malloc.m4: Likewise.
74181         * m4/readdir.m4: Likewise.
74182         * m4/realloc.m4: Likewise.
74183         * m4/st_dm_mode.m4: Likewise.
74184         * m4/stat.m4: Likewise.
74185         * m4/utimbuf.m4: Likewise.
74186         * m4/utimes.m4: Likewise.
74187
74188         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74189         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74190         comments in config.h.in are meaningful.
74191
74192         * m4/jm-macros.m4: Require autoconf-2.13 here.
74193
74194         * m4/regex.m4: By default, don't use the included regex.c on systems
74195         with glibc 2.  Suggestion from Uli Drepper.
74196
74197 1999-01-02  Jim Meyering  <meyering@ascend.com>
74198
74199         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74200
74201 1998-12-18  Jim Meyering  <meyering@ascend.com>
74202
74203         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74204         Based on a suggestion from Lars Hecking.
74205
74206 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74207
74208         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74209
74210 1998-11-16  Jim Meyering  <meyering@ascend.com>
74211
74212         * m4/lfs.m4: Double-quote the `uname...` expression.
74213
74214 1998-11-14  Jim Meyering  <meyering@ascend.com>
74215
74216         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74217         * m4/stat.m4: Likewise.
74218
74219 1998-11-03  Jim Meyering  <meyering@ascend.com>
74220
74221         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74222         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74223
74224 1998-10-18  Jim Meyering  <meyering@ascend.com>
74225
74226         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74227
74228 1998-10-17  Jim Meyering  <meyering@ascend.com>
74229
74230         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74231         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74232         calls for those previously hard-coded headers.  Instead, take a new
74233         parameter.
74234         (jm_CHECK_DECLARATIONS): Reflect interface change.
74235         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74236         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74237
74238         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74239
74240 1998-10-14  Jim Meyering  <meyering@ascend.com>
74241
74242         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74243         instead of "TZ=America/Vancouver".  From Paul Eggert.
74244
74245 1998-10-11  Jim Meyering  <meyering@ascend.com>
74246
74247         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74248         This adds a test for a recently added compatibility fix for mktime.c.
74249         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74250
74251 1998-09-27  Jim Meyering  <meyering@ascend.com>
74252
74253         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74254
74255         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74256         ../configure.in, including a change from Gordon Matzigkeit to allow
74257         cross-compiling for the Hurd.
74258
74259         * m4/glibc.m4: New file/macro to test for the GNU C Library
74260         versions 1 and 2.  From Gordon Matzigkeit.
74261         Indent.
74262
74263 1998-09-21  Jim Meyering  <meyering@ascend.com>
74264
74265         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74266
74267 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74268
74269         Port nanosecond-resolution times to UnixWare 2.1.2 and
74270         pedantic Solaris 2.6.
74271
74272         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74273         AC_STRUCT_ST_MTIM.
74274         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74275         Generate name of ns member, instead of just 1 or undef.
74276         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74277
74278 1998-08-15  Jim Meyering  <meyering@ascend.com>
74279
74280         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74281         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74282         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74283         instead of jm_TYPE_SSIZE_T.
74284
74285 1998-08-12  Jim Meyering  <meyering@ascend.com>
74286
74287         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74288
74289 1998-08-02  Jim Meyering  <meyering@ascend.com>
74290
74291         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74292         in acconfig.h manually.
74293
74294 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74295
74296         * m4/st_mtim.m4: New file.
74297
74298 1998-07-28  Jim Meyering  <meyering@ascend.com>
74299
74300         * m4/utimes.m4: Undef stat.
74301
74302 1998-07-25  Jim Meyering  <meyering@ascend.com>
74303
74304         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74305         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74306
74307 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74308
74309         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74310         uid and gid actually remain unchanged.
74311
74312 1998-07-07  Jim Meyering  <meyering@ascend.com>
74313
74314         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74315
74316 1998-07-04  Jim Meyering  <meyering@ascend.com>
74317
74318         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74319         to prove that this macro can be used in packages without regex.c.
74320
74321 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74322
74323         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74324         is to be used.
74325
74326 1998-07-03  Jim Meyering  <meyering@ascend.com>
74327
74328         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74329
74330         * m4/gettext.m4: New file -- from gettext-0.10.35.
74331         * m4/lcmessage.m4: Likewise.
74332         * m4/progtest.m4: Likewise.
74333
74334         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74335         * m4/jm-macros.m4: Require the new macro.
74336
74337 1998-06-29  Jim Meyering  <meyering@ascend.com>
74338
74339         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74340         for the definition of NGROUPS (used in a system header included
74341         by sys/mount.h).
74342
74343 1998-06-28  Jim Meyering  <meyering@ascend.com>
74344
74345         * m4/ls-mntd-fs.m4: New file.
74346         * m4/fstypename.m4: New file.
74347
74348         * m4/jm-macros.m4: Require the new macro.
74349         * m4/jm-glibc-io.m4: New file.
74350
74351 1998-05-19  Jim Meyering  <meyering@ascend.com>
74352
74353         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74354         * m4/lchown.m4: New file.
74355
74356         * m4/Makefile.am.in: New file.
74357         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74358
74359 1998-05-14  Jim Meyering  <meyering@ascend.com>
74360
74361         * m4/Makefile.am (EXTRA_DIST): Add them.
74362         * m4/jm-macros.m4: New file.
74363         * m4/utimbuf.m4: New file.
74364
74365 1998-05-12  Jim Meyering  <meyering@ascend.com>
74366
74367         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74368
74369 1998-05-11  Jim Meyering  <meyering@ascend.com>
74370
74371         * m4/isc-posix.m4: New file.
74372
74373 1998-05-10  Jim Meyering  <meyering@ascend.com>
74374
74375         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74376
74377 1998-05-09  Jim Meyering  <meyering@ascend.com>
74378
74379         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74380         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
74381         with automake.
74382
74383         * m4/ssize_t.m4: New file.
74384         * m4/mktime.m4: Remove file -- the new automake has this now.
74385
74386 1998-04-26  Jim Meyering  <meyering@ascend.com>
74387
74388         * m4/assert.m4: New file.
74389         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
74390
74391 1998-04-05  Jim Meyering  <meyering@ascend.com>
74392
74393         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
74394         (jm_PREREQ): Use it here.
74395
74396 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
74397
74398         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
74399         in acconfig.h.
74400
74401 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
74402
74403         * m4/prereq.m4: New file.
74404         * m4/error.m4: New file.
74405         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
74406
74407 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
74408
74409         * m4/getline.m4: Don't set am_cv_func_working_getline before the
74410         cache-check for the same variable -- that defeated the purpose of
74411         the test; the test program was never run.  This was a problem only
74412         on systems with losing getline functions -- HP-UX 10.20 is one.
74413         Reported by Bjorn Helgaas.
74414
74415 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
74416
74417         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
74418
74419 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
74420
74421         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
74422
74423         * m4/const.m4: New file.  Use an initializer in this declaration
74424         typedef int charset[2]; const charset x;
74425         Reported by Bob Glickstein.
74426
74427 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
74428
74429         * m4/chown.m4: Fix reversed types on -1 args to chown.
74430         From Kaveh Ghazi.
74431
74432 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
74433
74434         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
74435         Add lseek and memchr.
74436
74437         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
74438         T.E.Dickey <dickey@clark.net> said that some older preprocessors
74439         have a 20-character limit on names.
74440
74441 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
74442
74443         * m4/inttypes_h.m4: New file.
74444         * m4/uintmax_t.m4: New file.
74445         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
74446
74447
74448         -----
74449
74450         Local Variables:
74451         coding: utf-8
74452         End:
74453
74454         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74455
74456         Copying and distribution of this file, with or without
74457         modification, are permitted provided the copyright notice
74458         and this notice are preserved.